diff options
author | Philip Gladstone <philipjsg@users.sourceforge.net> | 2003-02-11 04:00:03 +0000 |
---|---|---|
committer | Philip Gladstone <philipjsg@users.sourceforge.net> | 2003-02-11 04:00:03 +0000 |
commit | 04511d5326a8bab67537f09185691b58d01e656f (patch) | |
tree | 6ffa4120b380c21b959bff08556ab12193cf502d /configure | |
parent | ae2d2d6c41c3b55ba06a021a3681a3173502423f (diff) | |
download | ffmpeg-04511d5326a8bab67537f09185691b58d01e656f.tar.gz |
Add checking for the existience of freetype2
Originally committed as revision 1575 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -549,6 +549,19 @@ if $cc -o $TMPE $TMPC -lImlib2 2> /dev/null ; then imlib2=yes fi +cat > $TMPC << EOF +#include <ft2build.h> +int main( void ) { return (int) FT_Init_FreeType(0); } +EOF + +freetype2=no +which freetype-config > /dev/null +if test $? -eq 0; then + if $cc -o $TMPE $TMPC `freetype-config --cflags` `freetype-config --libs` 2> /dev/null ; then + freetype2=yes + fi +fi + if test x"$1" = x"-h" -o x"$1" = x"--help" ; then cat << EOF @@ -623,6 +636,7 @@ echo "risky / patent encumbered codecs $risky" if test "$vhook" = "yes" ; then echo "Imlib2 support $imlib2" +echo "freetype support $freetype2" fi echo "Creating config.mak and config.h" @@ -702,6 +716,9 @@ fi if test "$imlib2" = "yes" ; then echo "HAVE_IMLIB2=yes" >> config.mak fi +if test "$freetype2" = "yes" ; then + echo "HAVE_FREETYPE2=yes" >> config.mak +fi if test "$have_lrintf" = "yes" ; then echo "#define HAVE_LRINTF 1" >> $TMPH fi |