1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

simplify freetype check

Originally committed as revision 7919 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Måns Rullgård 2007-02-11 11:35:56 +00:00
parent f5d28d106e
commit 4f562a6624

7
configure vendored
View File

@ -1657,13 +1657,10 @@ fi
freetype2=no
if test "x$targetos" != "xBeOS"; then
if (freetype-config --version) >/dev/null 2>&1 ; then
if freetype-config --version >/dev/null 2>&1; then
temp_cflags `freetype-config --cflags`
temp_extralibs `freetype-config --libs`
check_ld <<EOF && freetype2=yes
#include <ft2build.h>
int main( void ) { return (int) FT_Init_FreeType(0); }
EOF
check_lib ft2build.h FT_Init_FreeType && enable freetype2
restore_flags
fi
fi