diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-08-28 20:52:02 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-08-28 20:52:02 +0000 |
commit | fd44bbee3de65f95bdd9e5108b17277f1cac3d59 (patch) | |
tree | 4652fa878c4ee165fbea28d8d59abdcb3cfbabdc /configure | |
parent | 5e59ee334476b6fa1b557cb87d1dca8be24e02c3 (diff) | |
download | mpv-fd44bbee3de65f95bdd9e5108b17277f1cac3d59.tar.bz2 mpv-fd44bbee3de65f95bdd9e5108b17277f1cac3d59.tar.xz |
freetype 2.0/2.1+ support - disabled by default until bugs fixed
patch by Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7123 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 41 |
1 files changed, 39 insertions, 2 deletions
@@ -168,6 +168,7 @@ Optional features: --disable-cdparanoia Disable cdparanoia support [autodetect] --disable-big-endian Force byte order to little endian [autodetect] --enable-big-endian Force byte order to big endian [autodetect] + --enable-freetype Enable freetype support [disabled] Video: --enable-gl build with OpenGL render support [autodetect] @@ -978,6 +979,7 @@ _sighandler=yes _libdv=auto _cdparanoia=auto _big_endian=auto +_freetype=no for ac_option do case "$ac_option" in @@ -1136,6 +1138,8 @@ for ac_option do --disable-cdparanoia) _cdparanoia=no ;; --enable-big-endian) _big_endian=yes ;; --disable-big-endian) _big_endian=no ;; + --enable-freetype) _freetype=yes ;; + --disable-freetype) _freetype=no ;; --enable-dga) _dga=auto ;; # as we don't know if it's 1 or 2 --enable-dga=*) _dga=`echo $ac_option | cut -d '=' -f 2` ;; @@ -3185,7 +3189,7 @@ if test "$_cdparanoia" = auto ; then int main(void) { return 1; } EOF _cdparanoia=no - cc_check $_inc_cdparnoia $_ld_cdparanoia -lcdda_interface -lcdda_paranoia && _cdparanoia=yes + cc_check $_inc_cdparanoia $_ld_cdparanoia -lcdda_interface -lcdda_paranoia && _cdparanoia=yes fi if test "$_cdparanoia" = yes ; then _def_cdparanoia='#define HAVE_CDDA' @@ -3197,6 +3201,34 @@ else fi echores "$_cdparanoia" +echocheck "freetype 2" +if test "$_freetype" = yes ; then + if ( freetype-config --version ) >/dev/null 2>&1 ; then + cat > $TMPC << EOF +#include <freetype/freetype.h> +#if !(FREETYPE_MAJOR >= 2) +#error "Need FreeType 2.0 or newer" +#endif +int main() +{ + return 0; +} +EOF + _freetype=no + cc_check `freetype-config --cflags` && _freetype=yes + else + _freetype=no + fi +fi +if test "$_freetype" = yes ; then + _def_freetype='#define HAVE_FREETYPE' + _inc_freetype=`freetype-config --cflags` + _ld_freetype=`freetype-config --libs` +else + _def_freetype='#undef HAVE_FREETYPE' +fi +echores "$_freetype" + echocheck "zlib" cat > $TMPC << EOF #include <zlib.h> @@ -4274,8 +4306,10 @@ MENCODER = $_mencoder ENCORE_LIB = $_ld_encore $_ld_mp3lame DIRECTFB_INC = $_inc_directfb DIRECTFB_LIB = $_ld_directfb -CDPARANOIA_INC = $_inc_cdparnoia +CDPARANOIA_INC = $_inc_cdparanoia CDPARANOIA_LIB = $_ld_cdparanoia +FREETYPE_INC = $_inc_freetype +FREETYPE_LIB = $_ld_freetype # --- Some stuff for autoconfigure ---- $_target_arch @@ -4609,6 +4643,9 @@ $_def_jpg $_def_gif $_def_gif_4 +/* enable FreeType support */ +$_def_freetype + /* libmad support */ $_def_mad |