comparison configure @ 7122:0dc9cb756b68

freetype 2.0/2.1+ support - disabled by default until bugs fixed patch by Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
author arpi
date Wed, 28 Aug 2002 20:52:02 +0000
parents b1397d95471f
children dc48f2130a76
comparison
equal deleted inserted replaced
7121:6abc330b5b32 7122:0dc9cb756b68
166 --disable-mpdvdkit Disable mpdvdkit support [autodetect] 166 --disable-mpdvdkit Disable mpdvdkit support [autodetect]
167 --disable-css Disable oldstyle libcss DVD support [autodetect] 167 --disable-css Disable oldstyle libcss DVD support [autodetect]
168 --disable-cdparanoia Disable cdparanoia support [autodetect] 168 --disable-cdparanoia Disable cdparanoia support [autodetect]
169 --disable-big-endian Force byte order to little endian [autodetect] 169 --disable-big-endian Force byte order to little endian [autodetect]
170 --enable-big-endian Force byte order to big endian [autodetect] 170 --enable-big-endian Force byte order to big endian [autodetect]
171 --enable-freetype Enable freetype support [disabled]
171 172
172 Video: 173 Video:
173 --enable-gl build with OpenGL render support [autodetect] 174 --enable-gl build with OpenGL render support [autodetect]
174 --enable-dga[=n] build with DGA [n in {1, 2} ] support [autodetect] 175 --enable-dga[=n] build with DGA [n in {1, 2} ] support [autodetect]
175 --enable-vesa build with VESA support [autodetect] 176 --enable-vesa build with VESA support [autodetect]
976 _setlocale=auto 977 _setlocale=auto
977 _sighandler=yes 978 _sighandler=yes
978 _libdv=auto 979 _libdv=auto
979 _cdparanoia=auto 980 _cdparanoia=auto
980 _big_endian=auto 981 _big_endian=auto
982 _freetype=no
981 983
982 for ac_option do 984 for ac_option do
983 case "$ac_option" in 985 case "$ac_option" in
984 # Skip 1st pass 986 # Skip 1st pass
985 --target=*) ;; 987 --target=*) ;;
1134 --disable-linux-devfs) _linux_devfs=no ;; 1136 --disable-linux-devfs) _linux_devfs=no ;;
1135 --enable-cdparanoia) _cdparanoia=yes ;; 1137 --enable-cdparanoia) _cdparanoia=yes ;;
1136 --disable-cdparanoia) _cdparanoia=no ;; 1138 --disable-cdparanoia) _cdparanoia=no ;;
1137 --enable-big-endian) _big_endian=yes ;; 1139 --enable-big-endian) _big_endian=yes ;;
1138 --disable-big-endian) _big_endian=no ;; 1140 --disable-big-endian) _big_endian=no ;;
1141 --enable-freetype) _freetype=yes ;;
1142 --disable-freetype) _freetype=no ;;
1139 1143
1140 --enable-dga) _dga=auto ;; # as we don't know if it's 1 or 2 1144 --enable-dga) _dga=auto ;; # as we don't know if it's 1 or 2
1141 --enable-dga=*) _dga=`echo $ac_option | cut -d '=' -f 2` ;; 1145 --enable-dga=*) _dga=`echo $ac_option | cut -d '=' -f 2` ;;
1142 --disable-dga) _dga=no ;; 1146 --disable-dga) _dga=no ;;
1143 1147
3183 #include <cdda_paranoia.h> 3187 #include <cdda_paranoia.h>
3184 // This need a better test. How ? 3188 // This need a better test. How ?
3185 int main(void) { return 1; } 3189 int main(void) { return 1; }
3186 EOF 3190 EOF
3187 _cdparanoia=no 3191 _cdparanoia=no
3188 cc_check $_inc_cdparnoia $_ld_cdparanoia -lcdda_interface -lcdda_paranoia && _cdparanoia=yes 3192 cc_check $_inc_cdparanoia $_ld_cdparanoia -lcdda_interface -lcdda_paranoia && _cdparanoia=yes
3189 fi 3193 fi
3190 if test "$_cdparanoia" = yes ; then 3194 if test "$_cdparanoia" = yes ; then
3191 _def_cdparanoia='#define HAVE_CDDA' 3195 _def_cdparanoia='#define HAVE_CDDA'
3192 _inputmodules="cdda $_inputmodules" 3196 _inputmodules="cdda $_inputmodules"
3193 _ld_cdparanoia="$_ld_cdparanoia -lcdda_interface -lcdda_paranoia" 3197 _ld_cdparanoia="$_ld_cdparanoia -lcdda_interface -lcdda_paranoia"
3194 else 3198 else
3195 _def_cdparanoia='#undef HAVE_CDDA' 3199 _def_cdparanoia='#undef HAVE_CDDA'
3196 _noinputmodules="cdda $_noinputmodules" 3200 _noinputmodules="cdda $_noinputmodules"
3197 fi 3201 fi
3198 echores "$_cdparanoia" 3202 echores "$_cdparanoia"
3203
3204 echocheck "freetype 2"
3205 if test "$_freetype" = yes ; then
3206 if ( freetype-config --version ) >/dev/null 2>&1 ; then
3207 cat > $TMPC << EOF
3208 #include <freetype/freetype.h>
3209 #if !(FREETYPE_MAJOR >= 2)
3210 #error "Need FreeType 2.0 or newer"
3211 #endif
3212 int main()
3213 {
3214 return 0;
3215 }
3216 EOF
3217 _freetype=no
3218 cc_check `freetype-config --cflags` && _freetype=yes
3219 else
3220 _freetype=no
3221 fi
3222 fi
3223 if test "$_freetype" = yes ; then
3224 _def_freetype='#define HAVE_FREETYPE'
3225 _inc_freetype=`freetype-config --cflags`
3226 _ld_freetype=`freetype-config --libs`
3227 else
3228 _def_freetype='#undef HAVE_FREETYPE'
3229 fi
3230 echores "$_freetype"
3199 3231
3200 echocheck "zlib" 3232 echocheck "zlib"
3201 cat > $TMPC << EOF 3233 cat > $TMPC << EOF
3202 #include <zlib.h> 3234 #include <zlib.h>
3203 int main(void) { (void) inflate(0, Z_NO_FLUSH); return 0; } 3235 int main(void) { (void) inflate(0, Z_NO_FLUSH); return 0; }
4272 DECORE_LIB = $_ld_decore $_ld_libdv 4304 DECORE_LIB = $_ld_decore $_ld_libdv
4273 MENCODER = $_mencoder 4305 MENCODER = $_mencoder
4274 ENCORE_LIB = $_ld_encore $_ld_mp3lame 4306 ENCORE_LIB = $_ld_encore $_ld_mp3lame
4275 DIRECTFB_INC = $_inc_directfb 4307 DIRECTFB_INC = $_inc_directfb
4276 DIRECTFB_LIB = $_ld_directfb 4308 DIRECTFB_LIB = $_ld_directfb
4277 CDPARANOIA_INC = $_inc_cdparnoia 4309 CDPARANOIA_INC = $_inc_cdparanoia
4278 CDPARANOIA_LIB = $_ld_cdparanoia 4310 CDPARANOIA_LIB = $_ld_cdparanoia
4311 FREETYPE_INC = $_inc_freetype
4312 FREETYPE_LIB = $_ld_freetype
4279 4313
4280 # --- Some stuff for autoconfigure ---- 4314 # --- Some stuff for autoconfigure ----
4281 $_target_arch 4315 $_target_arch
4282 $_confcygwin 4316 $_confcygwin
4283 TARGET_CPU=$iproc 4317 TARGET_CPU=$iproc
4606 $_def_jpg 4640 $_def_jpg
4607 4641
4608 /* enable GIF support */ 4642 /* enable GIF support */
4609 $_def_gif 4643 $_def_gif
4610 $_def_gif_4 4644 $_def_gif_4
4645
4646 /* enable FreeType support */
4647 $_def_freetype
4611 4648
4612 /* libmad support */ 4649 /* libmad support */
4613 $_def_mad 4650 $_def_mad
4614 4651
4615 /* enable OggVorbis support */ 4652 /* enable OggVorbis support */