X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=configure;h=a4781ab7cde1b5df8deba013074a6c46bff59cb1;hb=2be071915d0b90bef9edc114818b02c7be830ca4;hp=9a9e750ad55b2bafcdb0bf8744931e9ede97a3bb;hpb=7a9a6f5b591dbb7947965d48ea35c8672198b2c4;p=vlc diff --git a/configure b/configure index 9a9e750ad5..a4781ab7cd 100755 --- a/configure +++ b/configure @@ -12,41 +12,55 @@ ac_help= ac_default_prefix=/usr/local # Any additions from configure.in: ac_help="$ac_help - --disable-ppro Disable PentiumPro optimizations (default enabled for x86)" + --with-words=endianness Set endianness (big or little)" +ac_help="$ac_help + --with-tuning=[arch] Enable special tuning for an architecture + (default i686 on IA-32 and 750 on PPC)" +ac_help="$ac_help + --enable-release Activate extra optimizations (default disabled)" ac_help="$ac_help --disable-mmx Disable MMX optimizations (default enabled for x86)" ac_help="$ac_help - --enable-altivec Enable altivec optimizations (default disabled since it is broken)" + --disable-altivec Disable altivec optimizations (default enabled on PPC)" ac_help="$ac_help --enable-debug Enable debug mode (default disabled)" -ac_help="$ac_help - --enable-stats Enable printing of statistics (default disabled)" ac_help="$ac_help --enable-trace Enable trace mode (default disabled)" ac_help="$ac_help - --enable-profiling Enable gprof profiling (default disabled)" + --enable-gprof Enable gprof profiling (default disabled)" +ac_help="$ac_help + --enable-cprof Enable cprof profiling (default disabled)" ac_help="$ac_help --disable-optimizations Disable compiler optimizations (default enabled)" ac_help="$ac_help --enable-pth Enable GNU Pth support (default disabled)" ac_help="$ac_help - --disable-css Disable DVD CSS decryption (default enabled)" + --with-dvdcss[=name] way to use libdvdcss, either 'yes' or 'no', + or 'local-static', 'local-shared', or a path to + another libdvdcss such as '/usr/local' + (default 'local-static')" +ac_help="$ac_help + --enable-dvdread Enable dvdread support (default disabled)" +ac_help="$ac_help + --enable-vcd VCD support for Linux (default enabled)" ac_help="$ac_help --disable-dummy dummy module (default enabled)" ac_help="$ac_help --disable-null Null module (default enabled)" ac_help="$ac_help - --disable-rc rc module (default enabled)" + --disable-rc Remote Control module (default enabled)" +ac_help="$ac_help + --with-mad[=PATH] libmad module (default disabled)" ac_help="$ac_help --disable-dsp Linux /dev/dsp support (default enabled)" ac_help="$ac_help --enable-esd Esound library support (default disabled)" ac_help="$ac_help - --enable-darwin Darwin sound support (default disabled)" + --enable-arts aRts sound server (default disabled)" ac_help="$ac_help - --enable-macosx Mac OS X interface support (default enabled in Mac OS X)" + --enable-macosx MacOS X support (default enabled on MacOS X)" ac_help="$ac_help - --disable-qnx QNX RTOS support (default enabled)" + --disable-qnx QNX RTOS support (default enabled on QNX RTOS)" ac_help="$ac_help --enable-fb Linux framebuffer support (default disabled)" ac_help="$ac_help @@ -54,7 +68,11 @@ ac_help="$ac_help ac_help="$ac_help --disable-sdl SDL support (default enabled)" ac_help="$ac_help - --with-directx[=name] Windows DirectX support (default enabled)" + --with-sdl-config-path=path sdl-config path (default search in \$PATH)" +ac_help="$ac_help + --disable-directx Windows DirectX support (default enabled on WIN32)" +ac_help="$ac_help + --with-directx-path=path Windows DirectX headers and libraries" ac_help="$ac_help --with-glide[=name] Glide (3dfx) support (default disabled)" ac_help="$ac_help @@ -67,12 +85,17 @@ ac_help="$ac_help --enable-gnome Gnome interface support (default disabled)" ac_help="$ac_help --disable-gtk Gtk+ support (default enabled)" +ac_help="$ac_help + --with-gtk-config-path=path gtk-config path (default search in \$PATH)" ac_help="$ac_help --disable-x11 X11 support (default enabled)" ac_help="$ac_help --disable-xvideo XVideo support (default enabled)" ac_help="$ac_help - --enable-alsa Alsa sound drivers support (Only for linux) (default disabled)" + --enable-alsa Alsa sound drivers support (Only for linux) + (default disabled)" +ac_help="$ac_help + --disable-plugins Make all plug-ins built-in (default plug-ins enabled)" # Initialize some variables set by options. # The variables have the same names as the options, with @@ -513,7 +536,7 @@ echo > confdefs.h # A filename unique to this package, relative to the directory that # configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=include/main.h +ac_unique_file=include/common.h # Find the source files, if location was not specified. if test -z "$srcdir"; then @@ -605,13 +628,34 @@ ac_config_sub=$ac_aux_dir/config.sub ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. +# Do some error checking and defaulting for the host and target type. +# The inputs are: +# configure --host=HOST --target=TARGET --build=BUILD NONOPT +# +# The rules are: +# 1. You are not allowed to specify --host, --target, and nonopt at the +# same time. +# 2. Host defaults to nonopt. +# 3. If nonopt is not specified, then host defaults to the current host, +# as determined by config.guess. +# 4. Target and build default to nonopt. +# 5. If nonopt is not specified, then target and build default to host. + +# The aliases save the names the user supplied, while $host etc. +# will get canonicalized. +case $host---$target---$nonopt in +NONE---*---* | *---NONE---* | *---*---NONE) ;; +*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; +esac + + # Make sure we can run config.sub. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:615: checking host system type" >&5 +echo "configure:659: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -631,18 +675,75 @@ host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 +echo $ac_n "checking target system type""... $ac_c" 1>&6 +echo "configure:680: checking target system type" >&5 + +target_alias=$target +case "$target_alias" in +NONE) + case $nonopt in + NONE) target_alias=$host_alias ;; + *) target_alias=$nonopt ;; + esac ;; +esac + +target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` +target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` +echo "$ac_t""$target" 1>&6 + +echo $ac_n "checking build system type""... $ac_c" 1>&6 +echo "configure:698: checking build system type" >&5 + +build_alias=$build +case "$build_alias" in +NONE) + case $nonopt in + NONE) build_alias=$host_alias ;; + *) build_alias=$nonopt ;; + esac ;; +esac + +build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` +build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` +echo "$ac_t""$build" 1>&6 -VLC_VERSION=0.2.80 +test "$host_alias" != "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" = \ + NONENONEs,x,x, && + program_prefix=${target_alias}- -LIBDVDCSS_VERSION=0.0.1 -VLC_CODENAME=Ourumov +HAVE_VLC=0 +if test -r src/interface/main.c; then + HAVE_VLC=1 + VLC_VERSION="0.2.92-dev" + + VLC_CODENAME=Ourumov + +fi + +HAVE_LIBDVDCSS=0 +if test -r extras/libdvdcss/libdvdcss.c; then + HAVE_LIBDVDCSS=1 + LIBDVDCSS_VERSION="1.0.1-dev" + + if test -r extras/libdvdcss/csskeys.h; then + cat >> confdefs.h <<\EOF +#define HAVE_CSSKEYS 1 +EOF + fi +fi save_CFLAGS="${CFLAGS}" +save_LDFLAGS="${LDFLAGS}" echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:646: checking whether ${MAKE-make} sets \${MAKE}" >&5 +echo "configure:747: checking whether ${MAKE-make} sets \${MAKE}" >&5 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -671,7 +772,7 @@ fi # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:675: checking for $ac_word" >&5 +echo "configure:776: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -701,7 +802,7 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:705: checking for $ac_word" >&5 +echo "configure:806: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -752,7 +853,7 @@ fi # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:756: checking for $ac_word" >&5 +echo "configure:857: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -784,7 +885,7 @@ fi fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:788: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo "configure:889: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -795,12 +896,12 @@ cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext << EOF -#line 799 "configure" +#line 900 "configure" #include "confdefs.h" main(){return(0);} EOF -if { (eval echo configure:804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -826,12 +927,12 @@ if test $ac_cv_prog_cc_works = no; then { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:830: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:931: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:835: checking whether we are using GNU C" >&5 +echo "configure:936: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -840,7 +941,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -859,7 +960,7 @@ ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:863: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:964: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -891,7 +992,7 @@ else fi echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:895: checking how to run the C preprocessor" >&5 +echo "configure:996: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= @@ -906,13 +1007,13 @@ else # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -923,13 +1024,13 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -940,13 +1041,13 @@ else rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -970,10 +1071,48 @@ else fi echo "$ac_t""$CPP" 1>&6 -# Extract the first word of "ranlib", so it can be a program name with args. +if test $host != $build; then + ac_tool_prefix=${host_alias}- +else + ac_tool_prefix= +fi + +# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1084: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +RANLIB="$ac_cv_prog_RANLIB" +if test -n "$RANLIB"; then + echo "$ac_t""$RANLIB" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + +if test -z "$ac_cv_prog_RANLIB"; then +if test -n "$ac_tool_prefix"; then + # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:977: checking for $ac_word" >&5 +echo "configure:1116: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1000,6 +1139,11 @@ else echo "$ac_t""no" 1>&6 fi +else + RANLIB=":" +fi +fi + # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or @@ -1013,7 +1157,7 @@ fi # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:1017: checking for a BSD compatible install" >&5 +echo "configure:1161: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1066,92 +1210,16 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:1071: checking for working const" >&5 -if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext <j = 5; -} -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ - const int foo = 10; -} - -; return 0; } -EOF -if { (eval echo configure:1125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_c_const=yes -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_c_const=no -fi -rm -f conftest* -fi - -echo "$ac_t""$ac_cv_c_const" 1>&6 -if test $ac_cv_c_const = no; then - cat >> confdefs.h <<\EOF -#define const -EOF - -fi - - if test x${cross_compiling} != xyes; then echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 -echo "configure:1148: checking whether byte ordering is bigendian" >&5 +echo "configure:1216: checking whether byte ordering is bigendian" >&5 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_c_bigendian=unknown # See if sys/param.h defines the BYTE_ORDER macro. cat > conftest.$ac_ext < #include @@ -1162,11 +1230,11 @@ int main() { #endif ; return 0; } EOF -if { (eval echo configure:1166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* # It does; now see whether it defined to BIG_ENDIAN or not. cat > conftest.$ac_ext < #include @@ -1177,7 +1245,7 @@ int main() { #endif ; return 0; } EOF -if { (eval echo configure:1181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_bigendian=yes else @@ -1197,7 +1265,7 @@ if test "$cross_compiling" = yes; then { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:1282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_c_bigendian=no else @@ -1233,17 +1301,74 @@ EOF fi +else + # Check whether --with-words or --without-words was given. +if test "${with_words+set}" = set; then + withval="$with_words" + : +fi + + case "x$withval" in + xbig) + ac_cv_c_bigendian=yes + ;; + xlittle) + ac_cv_c_bigendian=no + ;; + *) + ac_cv_c_bigendian=unknown + echo $ac_n "checking what the byte order looks to be""... $ac_c" 1>&6 +echo "configure:1322: checking what the byte order looks to be" >&5 + cat >conftest.c <config.log 2>&1 \ + && test -f conftest.o + then + if test `grep -l BIGenDianSyS conftest.o` + then + echo "$ac_t"""big endian"" 1>&6 + ac_cv_c_bigendian=yes + fi + if test `grep -l LiTTleEnDian conftest.o` + then + echo "$ac_t"""little endian"" 1>&6 + ac_cv_c_bigendian=no + fi + fi + fi + if test $ac_cv_c_bigendian = xunknown + then + { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; } + fi + if test $ac_cv_c_bigendian = yes + then + cat >> confdefs.h <<\EOF +#define WORDS_BIGENDIAN 1 +EOF + fi + ;; + esac fi for ac_func in gettimeofday select strerror strtod strtol do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:1242: checking for $ac_func" >&5 +echo "configure:1367: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -1293,12 +1418,12 @@ done for ac_func in setenv putenv do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:1297: checking for $ac_func" >&5 +echo "configure:1422: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -1346,12 +1471,12 @@ fi done echo $ac_n "checking for connect""... $ac_c" 1>&6 -echo "configure:1350: checking for connect" >&5 +echo "configure:1475: checking for connect" >&5 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_connect=yes" else @@ -1393,7 +1518,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 -echo "configure:1397: checking for connect in -lsocket" >&5 +echo "configure:1522: checking for connect in -lsocket" >&5 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1401,7 +1526,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lsocket $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1436,12 +1561,12 @@ fi fi echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 -echo "configure:1440: checking for gethostbyname" >&5 +echo "configure:1565: checking for gethostbyname" >&5 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_gethostbyname=yes" else @@ -1483,7 +1608,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 -echo "configure:1487: checking for gethostbyname in -lnsl" >&5 +echo "configure:1612: checking for gethostbyname in -lnsl" >&5 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1491,7 +1616,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lnsl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1526,12 +1651,12 @@ fi fi echo $ac_n "checking for nanosleep""... $ac_c" 1>&6 -echo "configure:1530: checking for nanosleep" >&5 +echo "configure:1655: checking for nanosleep" >&5 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_nanosleep=yes" else @@ -1573,7 +1698,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6 -echo "configure:1577: checking for nanosleep in -lrt" >&5 +echo "configure:1702: checking for nanosleep in -lrt" >&5 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1581,7 +1706,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lrt $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1612,7 +1737,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 -echo "configure:1616: checking for nanosleep in -lposix4" >&5 +echo "configure:1741: checking for nanosleep in -lposix4" >&5 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1620,7 +1745,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lposix4 $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1660,12 +1785,12 @@ fi for ac_func in usleep do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:1664: checking for $ac_func" >&5 +echo "configure:1789: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -1713,12 +1838,12 @@ fi done echo $ac_n "checking for inet_aton""... $ac_c" 1>&6 -echo "configure:1717: checking for inet_aton" >&5 +echo "configure:1842: checking for inet_aton" >&5 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_inet_aton=yes" else @@ -1760,7 +1885,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6 -echo "configure:1764: checking for inet_aton in -lresolv" >&5 +echo "configure:1889: checking for inet_aton in -lresolv" >&5 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1768,7 +1893,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lresolv $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1805,12 +1930,12 @@ fi for ac_func in vasprintf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:1809: checking for $ac_func" >&5 +echo "configure:1934: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -1860,12 +1985,67 @@ done for ac_func in swab do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:1864: checking for $ac_func" >&5 +echo "configure:1989: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in memalign valloc +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:2044: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -1916,12 +2096,12 @@ done for ac_func in sigrelse do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:1920: checking for $ac_func" >&5 +echo "configure:2100: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -1969,13 +2149,14 @@ fi done +NEED_GETOPT=0 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6 -echo "configure:1974: checking for getopt_long" >&5 +echo "configure:2155: checking for getopt_long" >&5 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_getopt_long=yes" else @@ -2020,7 +2201,7 @@ else echo "$ac_t""no" 1>&6 # FreeBSD has a gnugetopt library for this: echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6 -echo "configure:2024: checking for getopt_long in -lgnugetopt" >&5 +echo "configure:2205: checking for getopt_long in -lgnugetopt" >&5 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2028,7 +2209,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lgnugetopt $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2060,28 +2241,27 @@ EOF LIB="${LIB} -lgnugetopt" else echo "$ac_t""no" 1>&6 -GETOPT=1 +NEED_GETOPT=1 fi fi - for ac_hdr in unistd.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2075: checking for $ac_hdr" >&5 +echo "configure:2255: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2110,12 +2290,12 @@ done for ac_func in getpagesize do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2114: checking for $ac_func" >&5 +echo "configure:2294: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -2163,7 +2343,7 @@ fi done echo $ac_n "checking for working mmap""... $ac_c" 1>&6 -echo "configure:2167: checking for working mmap" >&5 +echo "configure:2347: checking for working mmap" >&5 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2171,7 +2351,7 @@ else ac_cv_func_mmap_fixed_mapped=no else cat > conftest.$ac_ext < #include #include -#include -#include - -#ifdef HAVE_UNISTD_H -# include -#endif /* This mess was copied from the GNU getpagesize.h. */ #ifndef HAVE_GETPAGESIZE +# ifdef HAVE_UNISTD_H +# include +# endif /* Assume that all systems that can run configure have sys/param.h. */ # ifndef HAVE_SYS_PARAM_H @@ -2261,7 +2438,7 @@ main() /* * First, make a file with some known garbage in it. */ - data = (char*)malloc(pagesize); + data = malloc(pagesize); if (!data) exit(1); for (i = 0; i < pagesize; ++i) @@ -2282,7 +2459,7 @@ main() fd = open("conftestmmap", O_RDWR); if (fd < 0) exit(1); - data2 = (char*)malloc(2 * pagesize); + data2 = malloc(2 * pagesize); if (!data2) exit(1); data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); @@ -2300,7 +2477,7 @@ main() */ for (i = 0; i < pagesize; ++i) *(data2 + i) = *(data2 + i) + 1; - data3 = (char*)malloc(pagesize); + data3 = malloc(pagesize); if (!data3) exit(1); if (read(fd, data3, pagesize) != pagesize) @@ -2314,7 +2491,7 @@ main() } EOF -if { (eval echo configure:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_func_mmap_fixed_mapped=yes else @@ -2337,12 +2514,12 @@ EOF fi echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 -echo "configure:2341: checking return type of signal handlers" >&5 +echo "configure:2518: checking return type of signal handlers" >&5 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -2359,7 +2536,7 @@ int main() { int i; ; return 0; } EOF -if { (eval echo configure:2363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_signal=void else @@ -2378,7 +2555,7 @@ EOF echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 -echo "configure:2382: checking for dlopen in -ldl" >&5 +echo "configure:2559: checking for dlopen in -ldl" >&5 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2386,7 +2563,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2417,8 +2594,48 @@ else echo "$ac_t""no" 1>&6 fi +echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6 +echo "configure:2599: checking for cos in -lm" >&5 +ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lm $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + LIB_IMDCT="${LIB_IMDCT} -lm" +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6 -echo "configure:2422: checking for pow in -lm" >&5 +echo "configure:2639: checking for pow in -lm" >&5 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2426,7 +2643,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lm $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2458,12 +2675,10 @@ else fi -CPPFLAGS="${CPPFLAGS} -I/usr/local/include" -CFLAGS="${CFLAGS} -I/usr/local/include" - -PTHREAD_LIBS=error -echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6 -echo "configure:2467: checking for pthread_attr_init in -lpthread" >&5 +THREAD_LIB=error +if test "x${THREAD_LIB}" = xerror; then + echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6 +echo "configure:2682: checking for pthread_attr_init in -lpthread" >&5 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2471,7 +2686,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lpthread $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2502,9 +2717,10 @@ else echo "$ac_t""no" 1>&6 fi +fi if test "x${THREAD_LIB}" = xerror; then echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6 -echo "configure:2508: checking for pthread_attr_init in -lpthreads" >&5 +echo "configure:2724: checking for pthread_attr_init in -lpthreads" >&5 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2512,7 +2728,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lpthreads $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2546,7 +2762,7 @@ fi fi if test "x${THREAD_LIB}" = xerror; then echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6 -echo "configure:2550: checking for pthread_attr_init in -lc_r" >&5 +echo "configure:2766: checking for pthread_attr_init in -lc_r" >&5 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2554,7 +2770,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lc_r $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2587,14 +2803,13 @@ fi fi if test "x${THREAD_LIB}" = xerror; then - THREAD_LIBS="" echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6 -echo "configure:2593: checking for pthread_attr_init" >&5 +echo "configure:2808: checking for pthread_attr_init" >&5 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_pthread_attr_init=yes" else @@ -2636,12 +2851,54 @@ else echo "$ac_t""no" 1>&6 fi + THREAD_LIB="" fi +echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6 +echo "configure:2859: checking for cthread_fork in -lthreads" >&5 +ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lthreads $LIBS" cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char cthread_fork(); + +int main() { +cthread_fork() +; return 0; } +EOF +if { (eval echo configure:2878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + THREAD_LIB="-lthreads" +else + echo "$ac_t""no" 1>&6 +fi + + +cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "pthread_cond_t" >/dev/null 2>&1; then @@ -2655,7 +2912,7 @@ fi rm -f conftest* cat > conftest.$ac_ext < EOF @@ -2675,17 +2932,17 @@ for ac_hdr in stddef.h getopt.h strings.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2679: checking for $ac_hdr" >&5 +echo "configure:2936: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2711,21 +2968,21 @@ else fi done -for ac_hdr in sys/sockio.h fcntl.h sys/time.h unistd.h +for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2719: checking for $ac_hdr" >&5 +echo "configure:2976: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2755,17 +3012,17 @@ for ac_hdr in sys/soundcard.h machine/soundcard.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2759: checking for $ac_hdr" >&5 +echo "configure:3016: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2795,17 +3052,17 @@ for ac_hdr in dlfcn.h image.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2799: checking for $ac_hdr" >&5 +echo "configure:3056: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2835,17 +3092,17 @@ for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2839: checking for $ac_hdr" >&5 +echo "configure:3096: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2875,17 +3132,17 @@ for ac_hdr in machine/param.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2879: checking for $ac_hdr" >&5 +echo "configure:3136: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2916,17 +3173,17 @@ for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2920: checking for $ac_hdr" >&5 +echo "configure:3177: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2953,165 +3210,348 @@ fi done -CFLAGS="${save_CFLAGS} -Wall -Werror" echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6 -echo "configure:2959: checking for ntohl in sys/param.h" >&5 -cat > conftest.$ac_ext <&5 +if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + CFLAGS="${save_CFLAGS} -Wall -Werror" + cat > conftest.$ac_ext < -void foo() { int meuh; ntohl(meuh); } int main() { - +void foo() { int meuh; ntohl(meuh); } ; return 0; } EOF -if { (eval echo configure:2969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - cat >> confdefs.h <<\EOF + ac_cv_c_ntohl_sys_param_h=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_c_ntohl_sys_param_h=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6 +if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then + cat >> confdefs.h <<\EOF #define NTOHL_IN_SYS_PARAM_H 1 EOF - echo "$ac_t""yes" 1>&6 +fi + +echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6 +echo "configure:3249: checking if \$CC accepts -finline-limit" >&5 +if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + CFLAGS="${save_CFLAGS} -finline-limit-30000" + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_c_inline_limit=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - echo "$ac_t""no" 1>&6 + ac_cv_c_inline_limit=no fi rm -f conftest* +fi -CFLAGS="${save_CFLAGS} -finline-limit=12" -echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6 -echo "configure:2986: checking if \$CC accepts -finline-limit" >&5 -cat > conftest.$ac_ext <&6 +if test x"$ac_cv_c_inline_limit" != x"no"; then + save_CFLAGS="${save_CFLAGS} -finline-limit-30000" +fi + +echo $ac_n "checking if \$CC accepts -bundle -undefined error""... $ac_c" 1>&6 +echo "configure:3280: checking if \$CC accepts -bundle -undefined error" >&5 +if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + CFLAGS="${save_CFLAGS} -bundle -undefined error" + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - save_CFLAGS="${save_CFLAGS} -finline-limit=31337"; echo "$ac_t""yes" 1>&6 + ac_cv_ld_darwin=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - echo "$ac_t""no" 1>&6 + ac_cv_ld_darwin=no fi rm -f conftest* +fi -CFLAGS="${save_CFLAGS} -bundle -undefined suppress" -echo $ac_n "checking if \$CC compiles plugins with -bundle -undefined suppress""... $ac_c" 1>&6 -echo "configure:3008: checking if \$CC compiles plugins with -bundle -undefined suppress" >&5 -cat > conftest.$ac_ext <&6 +if test x"$ac_cv_ld_darwin" != x"no"; then + PLCFLAGS="${PLCFLAGS} -bundle -undefined error" +fi + +echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6 +echo "configure:3311: checking if \$CC accepts -shared" >&5 +if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + CFLAGS="${save_CFLAGS} -shared" + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - PLCFLAGS="${PLCFLAGS} -bundle -undefined suppress"; echo "$ac_t""yes" 1>&6 + ac_cv_ld_plugins=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - echo "$ac_t""no" 1>&6 + ac_cv_ld_plugins=no fi rm -f conftest* +fi -CFLAGS="${save_CFLAGS} -shared" -echo $ac_n "checking if \$CC compiles plugins with -shared""... $ac_c" 1>&6 -echo "configure:3030: checking if \$CC compiles plugins with -shared" >&5 -cat > conftest.$ac_ext <&6 +if test x"$ac_cv_ld_plugins" != x"no"; then + PLCFLAGS="${PLCFLAGS} -shared" +fi + +if test x"${SOFLAGS}" = x; then + echo $ac_n "checking for soname setting""... $ac_c" 1>&6 +echo "configure:3343: checking for soname setting" >&5 +if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + # Standard + try_SOFLAGS="-Wl,-soname -Wl," + LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0" + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - PLCFLAGS="${PLCFLAGS} -shared"; echo "$ac_t""yes" 1>&6 + ac_cv_ld_soname="${try_SOFLAGS}" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - echo "$ac_t""no" 1>&6 + + # SunOS + try_SOFLAGS="-Wl,-h -Wl," + LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_ld_soname="${try_SOFLAGS}" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_ld_soname=none +fi +rm -f conftest* + +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_ld_soname" 1>&6 + if test x"$ac_cv_ld_soname" != x"none"; then + SOFLAGS=$ac_cv_ld_soname + else + echo " +------------ +Your system doesn't seem to have support for dynamic linking. You may +have problems using libdvdcss. +------------ +" + fi +fi + +echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6 +echo "configure:3407: checking __attribute__ ((aligned ())) support" >&5 +if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_cv_c_attribute_aligned=0 + CFLAGS="${save_CFLAGS} -Werror" + for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 fi rm -f conftest* + done +fi + +echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6 +if test x"$ac_cv_c_attribute_aligned" != x"0"; then + cat >> confdefs.h <&6 -echo "configure:3053: checking for boolean_t in sys/types.h" >&5 -cat > conftest.$ac_ext <&5 +if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < -void quux() { boolean_t foo; } int main() { - +boolean_t foo; ; return 0; } EOF -if { (eval echo configure:3063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - cat >> confdefs.h <<\EOF -#define BOOLEAN_T_IN_SYS_TYPES_H 1 -EOF - - echo "$ac_t""yes" 1>&6 + ac_cv_c_boolean_t_sys_types_h=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - echo "$ac_t""no" 1>&6 + ac_cv_c_boolean_t_sys_types_h=no fi rm -f conftest* +fi + +echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6 +if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then + cat >> confdefs.h <<\EOF +#define BOOLEAN_T_IN_SYS_TYPES_H 1 +EOF + +fi + echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6 -echo "configure:3078: checking for boolean_t in pthread.h" >&5 -cat > conftest.$ac_ext <&5 +if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < -void quux() { boolean_t foo; } int main() { - +boolean_t foo; ; return 0; } EOF -if { (eval echo configure:3088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - cat >> confdefs.h <<\EOF + ac_cv_c_boolean_t_pthread_h=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_c_boolean_t_pthread_h=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6 +if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then + cat >> confdefs.h <<\EOF #define BOOLEAN_T_IN_PTHREAD_H 1 EOF - echo "$ac_t""yes" 1>&6 +fi + +echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6 +echo "configure:3511: checking for boolean_t in cthreads.h" >&5 +if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +int main() { +boolean_t foo; +; return 0; } +EOF +if { (eval echo configure:3523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_c_boolean_t_cthreads_h=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - echo "$ac_t""no" 1>&6 + ac_cv_c_boolean_t_cthreads_h=no fi rm -f conftest* +fi + +echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6 +if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then + cat >> confdefs.h <<\EOF +#define BOOLEAN_T_IN_CTHREADS_H 1 +EOF + +fi echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:3104: checking for working const" >&5 +echo "configure:3544: checking for working const" >&5 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else @@ -3175,12 +3615,12 @@ EOF fi echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:3179: checking for ANSI C header files" >&5 +echo "configure:3619: checking for ANSI C header files" >&5 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -3188,7 +3628,7 @@ else #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3205,7 +3645,7 @@ rm -f conftest* if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -3223,7 +3663,7 @@ fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -3244,7 +3684,7 @@ if test "$cross_compiling" = yes; then : else cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -3255,7 +3695,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } EOF -if { (eval echo configure:3259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:3699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -3279,12 +3719,12 @@ EOF fi echo $ac_n "checking for size_t""... $ac_c" 1>&6 -echo "configure:3283: checking for size_t" >&5 +echo "configure:3723: checking for size_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -3312,12 +3752,12 @@ EOF fi echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 -echo "configure:3316: checking whether time.h and sys/time.h may both be included" >&5 +echo "configure:3756: checking whether time.h and sys/time.h may both be included" >&5 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -3326,7 +3766,7 @@ int main() { struct tm *tp; ; return 0; } EOF -if { (eval echo configure:3330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_time=yes else @@ -3347,153 +3787,689 @@ EOF fi -ARCH=${host_cpu} -BUILTINS="${BUILTINS} es ps ts yuv idct idctclassic motion imdct downmix" -PLUGINS="${PLUGINS}" +ARCH=${target_cpu} -MMX_MODULES="yuvmmx idctmmx motionmmx" -MMXEXT_MODULES="idctmmxext motionmmxext imdct3dn imdctsse downmix3dn downmixsse" +#BUILTINS="${BUILTINS} mpeg_es mpeg_ps mpeg_ts memcpy yuv2rgb8 idct idctclassic motion imdct downmix mpeg_adec lpcm_adec ac3_adec mpeg_vdec" +BUILTINS="${BUILTINS} mpeg_es mpeg_ps mpeg_ts memcpy idct idctclassic motion imdct downmix mpeg_adec lpcm_adec ac3_adec mpeg_vdec" +PLUGINS="${PLUGINS} ac3_spdif spudec" + +MMX_MODULES="memcpymmx idctmmx motionmmx" +MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext" +THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn" +SSE_MODULES="imdctsse downmixsse" +ALTIVEC_MODULES="idctaltivec motionaltivec" echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6 -echo "configure:3360: checking if \$CC groks MMX inline assembly" >&5 -cat > conftest.$ac_ext <&5 +if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}" - echo "$ac_t""yes" 1>&6 + ac_cv_mmx_inline=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - echo "$ac_t""no" 1>&6 + ac_cv_mmx_inline=no fi rm -f conftest* +fi -echo $ac_n "checking if \$CC groks MMX EXT or SSE inline assembly""... $ac_c" 1>&6 -echo "configure:3382: checking if \$CC groks MMX EXT or SSE inline assembly" >&5 -cat > conftest.$ac_ext <&6 +if test x"$ac_cv_mmx_inline" != x"no"; then + ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}" +fi + +echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6 +echo "configure:3835: checking if \$CC groks MMX EXT inline assembly" >&5 +if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}" - echo "$ac_t""yes" 1>&6 + ac_cv_mmxext_inline=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - echo "$ac_t""no" 1>&6 + ac_cv_mmxext_inline=no fi rm -f conftest* +fi +echo "$ac_t""$ac_cv_mmxext_inline" 1>&6 +if test x"$ac_cv_mmxext_inline" != x"no"; then + ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}" +fi -for ac_hdr in winioctl.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3408: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then +echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6 +echo "configure:3865: checking if \$CC groks 3D Now! inline assembly" >&5 +if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < + +int main() { +void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p)); +; return 0; } EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then +if { (eval echo configure:3877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" + ac_cv_3dnow_inline=yes else - echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" + ac_cv_3dnow_inline=no fi rm -f conftest* fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 +if test x"$ac_cv_3dnow_inline" != x"no"; then + cat >> confdefs.h <<\EOF +#define CAN_COMPILE_3DNOW 1 EOF - - LIBDVDCSS=1 -else - echo "$ac_t""no" 1>&6 + ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}" fi -done - -for ac_hdr in sys/ioctl.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3451: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then +echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6 +echo "configure:3899: checking if \$CC groks SSE inline assembly" >&5 +if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < + +int main() { +void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p)); +; return 0; } EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then +if { (eval echo configure:3911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" + ac_cv_sse_inline=yes else - echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" + ac_cv_sse_inline=no fi rm -f conftest* fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 +if test x"$ac_cv_sse_inline" != x"no"; then + cat >> confdefs.h <<\EOF +#define CAN_COMPILE_SSE 1 EOF - - LIBDVDCSS=1 - for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3487: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + + ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}" +fi + +echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6 +echo "configure:3933: checking if \$CC groks Altivec inline assembly" >&5 +if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } + +int main() { +asm volatile("vperm 0,1,2,3"); +; return 0; } +EOF +if { (eval echo configure:3945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_altivec_inline=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + save_CFLAGS=$CFLAGS + CFLAGS="$CFLAGS -Wa,-m7400" + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_altivec_inline="-Wa,-m7400" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_altivec_inline=no +fi +rm -f conftest* + CFLAGS=$save_CFLAGS + +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_altivec_inline" 1>&6 +if test x"$ac_cv_altivec_inline" != x"no"; then + cat >> confdefs.h <<\EOF +#define CAN_COMPILE_ALTIVEC 1 +EOF + + if test x"$ac_cv_altivec_inline" != x"yes"; then + CFLAGS_ALTIVEC="$CFLAGS_ALTIVEC $ac_cv_altivec_inline" + fi + ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}" +fi + +echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6 +echo "configure:3991: checking if \$CC groks Altivec C extensions" >&5 +if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + save_CFLAGS=$CFLAGS + CFLAGS="$CFLAGS -faltivec" + # Darwin test + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_c_altivec=-faltivec +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + # Linux/PPC test + CFLAGS="$save_CFLAGS $CFLAGS_ALTIVEC -fvec" + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_c_altivec="-fvec" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_c_altivec=no +fi +rm -f conftest* + +fi +rm -f conftest* + CFLAGS=$save_CFLAGS + +fi + +echo "$ac_t""$ac_cv_c_altivec" 1>&6 +if test x"$ac_cv_c_altivec" != x"no"; then + cat >> confdefs.h <<\EOF +#define CAN_COMPILE_C_ALTIVEC 1 +EOF + + CFLAGS_ALTIVEC="$CFLAGS_ALTIVEC $ac_cv_c_altivec" + ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}" +fi + +echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6 +echo "configure:4052: checking if linker needs -framework vecLib" >&5 +if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + save_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS -framework vecLib" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_ld_altivec=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_ld_altivec=no +fi +rm -f conftest* + LDFLAGS=$save_LDFLAGS + +fi + +echo "$ac_t""$ac_cv_ld_altivec" 1>&6 +if test x"$ac_cv_ld_altivec" != x"no"; then + LIB_ALTIVEC="-framework vecLib" +fi + +case ${target_os} in + linux*) + SYS=linux + ;; + bsdi*) + SYS=bsdi + ;; + darwin*) + SYS=darwin + ;; + *mingw32*) + SYS=mingw32 + ;; + *nto*) + SYS=nto + LIB_X11="${LIB_X11} -lsocket" + LIB_XVIDEO="${LIB_XVIDEO} -lsocket" + ;; + *) + SYS=${target_os} + ;; +esac + +if test $SYS = mingw32; then +# Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. +set dummy ${ac_tool_prefix}windres; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:4112: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$WINDRES"; then + ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_WINDRES="${ac_tool_prefix}windres" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +WINDRES="$ac_cv_prog_WINDRES" +if test -n "$WINDRES"; then + echo "$ac_t""$WINDRES" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + +if test -z "$ac_cv_prog_WINDRES"; then +if test -n "$ac_tool_prefix"; then + # Extract the first word of "windres", so it can be a program name with args. +set dummy windres; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:4144: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$WINDRES"; then + ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_WINDRES="windres" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":" +fi +fi +WINDRES="$ac_cv_prog_WINDRES" +if test -n "$WINDRES"; then + echo "$ac_t""$WINDRES" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +else + WINDRES=":" +fi +fi + +LIB_MPEG_TS="-lws2_32" +LIB_RC="-lws2_32" +fi + + +CAN_BUILD_LIBDVDCSS=0 + +for ac_hdr in winioctl.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:4187: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:4197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + + +for ac_hdr in sys/ioctl.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:4230: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:4240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +echo "configure:4266: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:4276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + + BSD_DVD_STRUCT=0 + LINUX_DVD_STRUCT=0 + OPENBSD_DVD_STRUCT=0 + cat > conftest.$ac_ext < +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "dvd_struct" >/dev/null 2>&1; then + rm -rf conftest* + + cat >> confdefs.h <<\EOF +#define DVD_STRUCT_IN_SYS_CDIO_H 1 +EOF + + cat > conftest.$ac_ext < +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "struct dvd_struct" >/dev/null 2>&1; then + rm -rf conftest* + + BSD_DVD_STRUCT=1 +else + rm -rf conftest* + LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1 +fi +rm -f conftest* + + +fi +rm -f conftest* + + cat > conftest.$ac_ext < +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "dvd_struct" >/dev/null 2>&1; then + rm -rf conftest* + + cat >> confdefs.h <<\EOF +#define DVD_STRUCT_IN_SYS_DVDIO_H 1 +EOF + + cat > conftest.$ac_ext < +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "struct dvd_struct" >/dev/null 2>&1; then + rm -rf conftest* + + BSD_DVD_STRUCT=1 +else + rm -rf conftest* + LINUX_DVD_STRUCT=1 +fi +rm -f conftest* + + +fi +rm -f conftest* + + cat > conftest.$ac_ext < +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "dvd_struct" >/dev/null 2>&1; then + rm -rf conftest* + + cat >> confdefs.h <<\EOF +#define DVD_STRUCT_IN_LINUX_CDROM_H 1 +EOF + + LINUX_DVD_STRUCT=1 + +fi +rm -f conftest* + + NEED_BSDI_LIBDVD=0 + cat > conftest.$ac_ext < +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "dvd_struct" >/dev/null 2>&1; then + rm -rf conftest* + + cat >> confdefs.h <<\EOF +#define DVD_STRUCT_IN_DVD_H 1 +EOF + + LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd" + LINUX_DVD_STRUCT=1 + +else + rm -rf conftest* + + for ac_hdr in /sys/dev/scsi/scsi_ioctl.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:4413: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:4423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <> confdefs.h <<\EOF +#define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1 +EOF + + OBJ_LIBDVDCSS="${OBJ_LIBDVDCSS} bsdi_dvdioctl.o" + LINUX_DVD_STRUCT=1 + +else + echo "$ac_t""no" 1>&6 +fi +done + + +fi +rm -f conftest* + + ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6 +echo "configure:4463: checking for sys/scsi/scsi_types.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:4473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3509,76 +4485,69 @@ rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 +echo "configure:4492: checking for sys/scsi/impl/uscsi.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 else - echo "$ac_t""no" 1>&6 -fi -done - - BSD_DVD_STRUCT=0 - cat > conftest.$ac_ext < conftest.$ac_ext < +#include EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "dvd_struct" >/dev/null 2>&1; then +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:4502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then rm -rf conftest* - - cat >> confdefs.h <<\EOF -#define DVD_STRUCT_IN_SYS_DVDIO_H 1 -EOF - - BSD_DVD_STRUCT=1 - + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* - - cat > conftest.$ac_ext < -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "dvd_struct" >/dev/null 2>&1; then - rm -rf conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF -#define DVD_STRUCT_IN_SYS_CDIO_H 1 + cat >> confdefs.h <<\EOF +#define SOLARIS_USCSI 1 EOF - BSD_DVD_STRUCT=1 + +else + echo "$ac_t""no" 1>&6 +fi + +else + echo "$ac_t""no" 1>&6 fi -rm -f conftest* - if test x$BSD_DVD_STRUCT = x1; then + if test x$LINUX_DVD_STRUCT = x1; then cat >> confdefs.h <<\EOF -#define HAVE_BSD_DVD_STRUCT 1 +#define HAVE_LINUX_DVD_STRUCT 1 EOF - fi - cat > conftest.$ac_ext < -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "dvd_struct" >/dev/null 2>&1; then - rm -rf conftest* - - cat >> confdefs.h <<\EOF -#define DVD_STRUCT_IN_LINUX_CDROM_H 1 + if test x$OPENBSD_DVD_STRUCT = x1; then + cat >> confdefs.h <<\EOF +#define HAVE_OPENBSD_DVD_STRUCT 1 EOF - -fi -rm -f conftest* + fi + else + if test x$BSD_DVD_STRUCT = x1; then + cat >> confdefs.h <<\EOF +#define HAVE_BSD_DVD_STRUCT 1 +EOF + fi + fi else echo "$ac_t""no" 1>&6 @@ -3586,21 +4555,41 @@ fi done -case ${host_os} in + +case ${target_os} in + bsdi*) + SYS=bsdi + ;; darwin*) SYS=darwin ;; *) - SYS=${host_os} + SYS=${target_os} ;; esac -# Check whether --enable-ppro or --disable-ppro was given. -if test "${enable_ppro+set}" = set; then - enableval="$enable_ppro" - if test x$enableval = xyes; then ARCH="${ARCH} ppro"; fi +# Check whether --with-tuning or --without-tuning was given. +if test "${with_tuning+set}" = set; then + withval="$with_tuning" + : +fi + +if test "x$withval" != "x"; then + TUNING=$withval +else + if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro" + else + if test x${target_cpu} = xpowerpc; then TUNING="750"; fi + fi +fi + +# Check whether --enable-release or --disable-release was given. +if test "${enable_release+set}" = set; then + enableval="$enable_release" + if test x$enableval = xyes; then RELEASE=1; fi else - if test x${host_cpu} = xi686; then ARCH="${ARCH} ppro"; fi + VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`"; + LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`"; fi @@ -3608,10 +4597,10 @@ fi if test "${enable_mmx+set}" = set; then enableval="$enable_mmx" if test x$enableval = xyes; then ARCH="${ARCH} mmx"; - BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi + BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi else - if test x${host_cpu} = xi686 -o x${host_cpu} = xi586 -o x${host_cpu} = xx86 -o x${host_cpu} = xi386; then ARCH="${ARCH} mmx"; - BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi + if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386; then ARCH="${ARCH} mmx"; + BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi fi @@ -3619,13 +4608,14 @@ fi if test "${enable_altivec+set}" = set; then enableval="$enable_altivec" if test x$enableval = xyes; then ARCH="${ARCH} altivec"; - BUILTINS="${BUILTINS} idctaltivec" - LIB_IDCTALTIVEC="-framework vecLib" - fi + BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi +else + if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec"; + BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi fi -#[ if test -d /System/Library/Frameworks/vecLib.framework; then ARCH="${ARCH} altivec"; PLUGINS="${PLUGINS} idctaltivec"; fi ]) +DEBUG=0 # Check whether --enable-debug or --disable-debug was given. if test "${enable_debug+set}" = set; then enableval="$enable_debug" @@ -3633,13 +4623,7 @@ if test "${enable_debug+set}" = set; then fi -# Check whether --enable-stats or --disable-stats was given. -if test "${enable_stats+set}" = set; then - enableval="$enable_stats" - if test x$enableval = xyes; then STATS=1; fi -fi - - +TRACE=0 # Check whether --enable-trace or --disable-trace was given. if test "${enable_trace+set}" = set; then enableval="$enable_trace" @@ -3647,10 +4631,24 @@ if test "${enable_trace+set}" = set; then fi -# Check whether --enable-profiling or --disable-profiling was given. -if test "${enable_profiling+set}" = set; then - enableval="$enable_profiling" - if test x$enableval = xyes; then PROFILING=1; fi +GPROF=0 +# Check whether --enable-gprof or --disable-gprof was given. +if test "${enable_gprof+set}" = set; then + enableval="$enable_gprof" + if test x$enableval = xyes; then GPROF=1; fi +fi + + +CPROF=0 +# Check whether --enable-cprof or --disable-cprof was given. +if test "${enable_cprof+set}" = set; then + enableval="$enable_cprof" + if test x$enableval = xyes; + then + LIB="${LIB} -lcprof" + CPROF=1 + fi + fi @@ -3668,7 +4666,7 @@ if test "${enable_pth+set}" = set; then enableval="$enable_pth" if test x$enableval = xyes; then echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6 -echo "configure:3672: checking for pth_init in -lpth" >&5 +echo "configure:4670: checking for pth_init in -lpth" >&5 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3676,7 +4674,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lpth $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3715,7 +4713,7 @@ else fi cat > conftest.$ac_ext < EOF @@ -3738,34 +4736,189 @@ fi LIB="${LIB} ${THREAD_LIB}" -# Check whether --enable-css or --disable-css was given. -if test "${enable_css+set}" = set; then - enableval="$enable_css" - if test x$enableval = xyes; then CSS=1; else CSS=0; fi +NEED_LIBDVDCSS=0 +STATIC_LIBDVDCSS=0 +DUMMY_LIBDVDCSS=0 +# Check whether --with-dvdcss or --without-dvdcss was given. +if test "${with_dvdcss+set}" = set; then + withval="$with_dvdcss" + case "x${withval}" in + xlocal-static|xyes) + # local libdvdcss, statically linked + if test x${CAN_BUILD_LIBDVDCSS} = x1 + then + NEED_LIBDVDCSS=1 + STATIC_LIBDVDCSS=1 + BUILTINS="${BUILTINS} dvd" + CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss" + LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}" + LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}" + fi + ;; + xlocal-shared) + # local libdvdcss, dynamically linked + if test x${CAN_BUILD_LIBDVDCSS} = x1 + then + NEED_LIBDVDCSS=1 + BUILTINS="${BUILTINS} dvd" + CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss" + LIB_DVD="${LIB_DVD} -Llib -ldvdcss" + LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L../../lib -ldvdcss" + fi + ;; + xno) + # don't use libdvdcss at all, build a DVD module that can dlopen() it + DUMMY_LIBDVDCSS=1 + BUILTINS="${BUILTINS} dvd" + OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o" + CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA" + CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\"" + LIB_DVD="${LIB_DVD} -ldl" + LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl" + ;; + *) + # existing libdvdcss + BUILTINS="${BUILTINS} dvd" + if test "x$withval" != "xyes" + then + LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -L"$withval"/lib" + CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include" + fi + LIB_DVD="${LIB_DVD} -ldvdcss" + LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldvdcss" + esac else - CSS=1; + # user didn't decide, we choose to use local libdvdcss and link statically + # if libdvdcss is in the archive, or to use the dummy replacement otherwise. + if test x${CAN_BUILD_LIBDVDCSS} = x1 + then + NEED_LIBDVDCSS=1 + STATIC_LIBDVDCSS=1 + BUILTINS="${BUILTINS} dvd" + CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss" + LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}" + LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} ../../lib/libdvdcss.a ${LIB_LIBDVDCSS}" + else + # XXX: no check for libdl is done, don't try this at home ! + DUMMY_LIBDVDCSS=1 + BUILTINS="${BUILTINS} dvd" + OBJ_DVD="${OBJ_DVD} dummy_dvdcss.o" + CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA" + LIB_DVD="${LIB_DVD} -ldl" + LIB_DVD_PLUGIN="${LIB_DVD_PLUGIN} -ldl" + fi +fi + + +# Check whether --enable-dvdread or --disable-dvdread was given. +if test "${enable_dvdread+set}" = set; then + enableval="$enable_dvdread" + if test x$enableval = xyes + then + NEED_LIBDVDCSS=1 + STATIC_LIBDVDCSS=1 + BUILTINS="${BUILTINS} dvdread" + CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread" + LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a lib/libdvdcss.a" + fi +fi + + +# Check whether --enable-vcd or --disable-vcd was given. +if test "${enable_vcd+set}" = set; then + enableval="$enable_vcd" + : fi -if test x${CSS} = x1; then cat >> confdefs.h <<\EOF -#define HAVE_CSS 1 + +if test x$enable_vcd != xno +then + cat > conftest.$ac_ext < EOF - fi +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "cdrom_msf0" >/dev/null 2>&1; then + rm -rf conftest* + + BUILTINS="${BUILTINS} vcd" + +fi +rm -f conftest* + +fi + +if test x$enable_vcd != xno -a "${SYS}" = "bsdi" +then + BUILTINS="${BUILTINS} vcd" +fi + +# Check whether --enable-dummy or --disable-dummy was given. +if test "${enable_dummy+set}" = set; then + enableval="$enable_dummy" + : +fi + + +if test x$enable_dummy != xno +then + BUILTINS="${BUILTINS} dummy" +fi + +# Check whether --enable-null or --disable-null was given. +if test "${enable_null+set}" = set; then + enableval="$enable_null" + : +fi + + +if test x$enable_null != xno +then + BUILTINS="${BUILTINS} null" +fi + +# Check whether --enable-rc or --disable-rc was given. +if test "${enable_rc+set}" = set; then + enableval="$enable_rc" + : +fi + + +if test x$enable_rc != xno +then + BUILTINS="${BUILTINS} rc" +fi -for ac_hdr in videolan/dvdcss.h +# Check whether --with-mad or --without-mad was given. +if test "${with_mad+set}" = set; then + withval="$with_mad" + if test "x$with_val" != "xno"; then + if test -n $with_val; then + CFLAGS_MAD="-I$with_val/include" + LIB_MAD="-L$with_val/lib -lmad" + else + LIB_MAD="-lmad" + fi + save_CFLAGS=$CFLAGS + save_LDFLAGS=$LDFLAGS + CFLAGS="$CFLAGS $CFLAGS_MAD" + LDFLAGS="$LDFLAGS $LIB_MAD" + for ac_hdr in mad.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3759: checking for $ac_hdr" >&5 +echo "configure:4912: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3786,49 +4939,73 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then #define $ac_tr_hdr 1 EOF - # installed libdvdcss - BUILTINS="${BUILTINS} dvd" - LIB_DVD="${LIB_DVD} -ldvdcss" else echo "$ac_t""no" 1>&6 -if test x${LIBDVDCSS} = x1; then - # local libdvdcss - LOCAL_LIBDVDCSS=1 - BUILTINS="${BUILTINS} dvd" - CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss" - fi +echo "Cannot find development headers for libmad..." + exit 1 + fi done + echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6 +echo "configure:4952: checking for mad_bit_init in -lmad" >&5 +ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lmad $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" fi +rm -f conftest* +LIBS="$ac_save_LIBS" -if test x$enable_dummy != xno; then - BUILTINS="${BUILTINS} dummy"; fi - -# Check whether --enable-null or --disable-null was given. -if test "${enable_null+set}" = set; then - enableval="$enable_null" - : fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <&6 + echo "Cannot find libmad library..." + exit 1 + fi -if test x$enable_rc != xno; then - BUILTINS="${BUILTINS} rc"; fi + CFLAGS=$save_CFLAGS + LDFLAGS=$save_LDFLAGS + PLUGINS="${PLUGINS} mad" + fi +fi -if test x$SYS = xbeos; then + +if test x$SYS = xbeos +then BUILTINS="${BUILTINS} beos" LIB_BEOS="-lbe -lgame -lroot -ltracker" PLCFLAGS="${PLCFLAGS} -nostart" @@ -3841,8 +5018,12 @@ if test "${enable_dsp+set}" = set; then : fi -if test x$enable_dsp != xno; then - if test -c /dev/dsp; then + +if test x$enable_dsp != xno && + (test $SYS != mingw32 || test x$enable_dsp = xyes) +then + if test -c /dev/dsp + then PLUGINS="${PLUGINS} dsp" fi fi @@ -3850,11 +5031,12 @@ fi # Check whether --enable-esd or --disable-esd was given. if test "${enable_esd+set}" = set; then enableval="$enable_esd" - if test x$enable_esd = xyes; then + if test x$enable_esd = xyes + then # Extract the first word of "esd-config", so it can be a program name with args. set dummy esd-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3858: checking for $ac_word" >&5 +echo "configure:5040: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3887,20 +5069,63 @@ else echo "$ac_t""no" 1>&6 fi - if test x${ESD_CONFIG} != xno; then + if test x${ESD_CONFIG} != xno + then PLUGINS="${PLUGINS} esd" + CFLAGS_ESD="`${ESD_CONFIG} --cflags`" LIB_ESD="`${ESD_CONFIG} --libs`" fi fi fi -# Check whether --enable-darwin or --disable-darwin was given. -if test "${enable_darwin+set}" = set; then - enableval="$enable_darwin" - if test x$enable_darwin = xyes; then - PLUGINS="${PLUGINS} darwin" - LIB_DARWIN="-framework CoreAudio" +# Check whether --enable-arts or --disable-arts was given. +if test "${enable_arts+set}" = set; then + enableval="$enable_arts" + if test x$enable_arts = xyes + then + # Extract the first word of "artsc-config", so it can be a program name with args. +set dummy artsc-config; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:5091: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case "$ARTS_CONFIG" in + /*) + ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no" + ;; +esac +fi +ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG" +if test -n "$ARTS_CONFIG"; then + echo "$ac_t""$ARTS_CONFIG" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + if test x${ARTS_CONFIG} != xno + then + PLUGINS="${PLUGINS} arts" + CFLAGS_ARTS="`${ARTS_CONFIG} --cflags`" + LIB_ARTS="`${ARTS_CONFIG} --libs `" + fi fi fi @@ -3908,28 +5133,28 @@ fi # Check whether --enable-macosx or --disable-macosx was given. if test "${enable_macosx+set}" = set; then enableval="$enable_macosx" - if test x$enable_macosx = xyes; then + if test x$enable_macosx = xyes + then BUILTINS="${BUILTINS} macosx" - LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL" - LIB_TS="${LIB_TS} -framework AGL -framework Carbon" - LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon" + LIB_MACOSX="-framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime" + LIB="${LIB} -ObjC" fi else - for ac_hdr in Carbon/Carbon.h + for ac_hdr in Cocoa/Cocoa.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3923: checking for $ac_hdr" >&5 +echo "configure:5148: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3950,9 +5175,8 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then #define $ac_tr_hdr 1 EOF BUILTINS="${BUILTINS} macosx" - LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL" - LIB_TS="${LIB_TS} -framework AGL -framework Carbon" - LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon" + LIB_MACOSX="-framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime" + LIB="${LIB} -ObjC" else echo "$ac_t""no" 1>&6 @@ -3968,22 +5192,23 @@ if test "${enable_qnx+set}" = set; then : fi - if test x$enable_qnx != xno; then + if test x$enable_qnx != xno + then for ac_hdr in Ph.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3977: checking for $ac_hdr" >&5 +echo "configure:5202: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -4017,17 +5242,20 @@ done # Check whether --enable-fb or --disable-fb was given. if test "${enable_fb+set}" = set; then enableval="$enable_fb" - if test x$enable_fb = xyes; then PLUGINS="${PLUGINS} fb"; fi + if test x$enable_fb = xyes + then + PLUGINS="${PLUGINS} fb" + fi fi # Check whether --with-ggi or --without-ggi was given. if test "${with_ggi+set}" = set; then withval="$with_ggi" - if test "x$withval" != "xno"; + if test "x$withval" != "xno" then - PLUGINS="${PLUGINS} ggi"; - if test "x$withval" != "xyes"; + PLUGINS="${PLUGINS} ggi" + if test "x$withval" != "xyes" then LIB_GGI="-l"$withval else @@ -4041,103 +5269,105 @@ fi if test "${enable_sdl+set}" = set; then enableval="$enable_sdl" : -fi - -if test "x$withval" != "xno"; -then - cat >> confdefs.h <<\EOF -#define HAVE_SDL_SDL_H 0 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_SDL11_SDL_H 0 -EOF +fi - cat >> confdefs.h <<\EOF -#define HAVE_SDL12_SDL_H 0 -EOF +if test "x$enable_sdl" != "xno" +then + SDL_PATH=$PATH + # Check whether --with-sdl-config-path or --without-sdl-config-path was given. +if test "${with_sdl_config_path+set}" = set; then + withval="$with_sdl_config_path" + if test "x$withval" != "xno" + then + SDL_PATH=$withval:$PATH + fi +fi - # Extract the first word of "sdl-config", so it can be a program name with args. -set dummy sdl-config; ac_word=$2 + # Extract the first word of "sdl12-config", so it can be a program name with args. +set dummy sdl12-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4064: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then +echo "configure:5290: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - case "$SDL_CONFIG" in + case "$SDL12_CONFIG" in /*) - ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. + ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path. ;; ?:/*) - ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path. + ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" + ac_dummy="$SDL_PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then - ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word" + ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" - test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" + test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no" ;; esac fi -SDL_CONFIG="$ac_cv_path_SDL_CONFIG" -if test -n "$SDL_CONFIG"; then - echo "$ac_t""$SDL_CONFIG" 1>&6 +SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG" +if test -n "$SDL12_CONFIG"; then + echo "$ac_t""$SDL12_CONFIG" 1>&6 else echo "$ac_t""no" 1>&6 fi - SDL_HEADER="SDL/SDL.h" - if test x${SDL_CONFIG} = xno; then + SDL_CONFIG=${SDL12_CONFIG} + SDL_HEADER="SDL12/SDL.h" + if test x${SDL_CONFIG} = xno + then # Extract the first word of "sdl11-config", so it can be a program name with args. set dummy sdl11-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4102: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then +echo "configure:5330: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - case "$SDL_CONFIG" in + case "$SDL11_CONFIG" in /*) - ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. + ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path. ;; ?:/*) - ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path. + ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" + ac_dummy="$SDL_PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then - ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word" + ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" - test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" + test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no" ;; esac fi -SDL_CONFIG="$ac_cv_path_SDL_CONFIG" -if test -n "$SDL_CONFIG"; then - echo "$ac_t""$SDL_CONFIG" 1>&6 +SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG" +if test -n "$SDL11_CONFIG"; then + echo "$ac_t""$SDL11_CONFIG" 1>&6 else echo "$ac_t""no" 1>&6 fi + SDL_CONFIG=${SDL11_CONFIG} SDL_HEADER="SDL11/SDL.h" fi - if test x${SDL_CONFIG} = xno; then - # Extract the first word of "sdl12-config", so it can be a program name with args. -set dummy sdl12-config; ac_word=$2 + if test x${SDL_CONFIG} = xno + then + # Extract the first word of "sdl-config", so it can be a program name with args. +set dummy sdl-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4141: checking for $ac_word" >&5 +echo "configure:5371: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4150,7 +5380,7 @@ else ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" + ac_dummy="$SDL_PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then @@ -4170,24 +5400,30 @@ else echo "$ac_t""no" 1>&6 fi - SDL_HEADER="SDL12/SDL.h" + SDL_HEADER="SDL/SDL.h" fi - if test x${SDL_CONFIG} != xno; then - for ac_hdr in $SDL_HEADER + if test x${SDL_CONFIG} != xno + then + PLUGINS="${PLUGINS} sdl" + CFLAGS_SDL="`${SDL_CONFIG} --cflags`" + LIB_SDL="`${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`" + save_CPPFLAGS=$CPPFLAGS + CPPFLAGS="$CPPFLAGS $CFLAGS_SDL" + for ac_hdr in ${SDL_HEADER} do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:4181: checking for $ac_hdr" >&5 +echo "configure:5417: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -4207,103 +5443,67 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then cat >> confdefs.h <> confdefs.h < +EOF + else echo "$ac_t""no" 1>&6 -echo "The development package for SDL is not installed. Please install it" - echo "and try again." - exit +{ echo "configure: error: The development package for SDL is not installed. +Please install it and try again. Alternatively you can also configure with +--disable-sdl." 1>&2; exit 1; } + fi done - if expr 1.1.7 \> $($SDL_CONFIG --version); then - echo "You need SDL version 1.1.7 or later." - exit + CPPFLAGS=$save_CPPFLAGS + if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null + then + { echo "configure: error: The development package for SDL is not installed. +Please install it and try again. Alternatively you can also configure with +--disable-sdl." 1>&2; exit 1; } fi - PLUGINS="${PLUGINS} sdl" - CFLAGS_SDL="`${SDL_CONFIG} --cflags`" - LIB_SDL="`${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`" - elif test "x$withval" = "xyes"; then - echo "I couldn't find the SDL package. You can download libSDL from" - echo "http://www.libsdl.org/." - exit + elif test "x$enable_sdl" = "xyes" + then + { echo "configure: error: I couldn't find the SDL package. You can download libSDL +from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day. + " 1>&2; exit 1; } fi fi -# Check whether --with-directx or --without-directx was given. -if test "${with_directx+set}" = set; then - withval="$with_directx" - if test "x$withval" != "xno"; - then - PLUGINS="${PLUGINS} directx"; - if test "x$withval" != "xyes"; - then - LIB_DIRECTX="${LIB_DIRECTX} -L"$withval"/lib -lgdi32 -ldxguid" - INCLUDE="${INCLUDE} -I"$withval"/include" - else - for ac_hdr in directx.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:4249: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -echo "Cannot find DirectX headers !"; exit +# Check whether --enable-directx or --disable-directx was given. +if test "${enable_directx+set}" = set; then + enableval="$enable_directx" + : fi -done - LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid" - fi - fi +if test "x$enableval" != "xno" +then + if test $SYS = mingw32 + then + # Check whether --with-directx-path or --without-directx-path was given. +if test "${with_directx_path+set}" = set; then + withval="$with_directx_path" + : fi - if test "x$withval" = "x"; + if test "x$with_directx_path" = "x" then for ac_hdr in directx.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:4297: checking for $ac_hdr" >&5 +echo "configure:5497: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -4323,22 +5523,37 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then cat >> confdefs.h <&6 fi done + else + echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6 +echo "configure:5536: checking for directX headers in ${withval}" >&5 + if test -f ${withval}/include/directx.h + then + PLUGINS="${PLUGINS} directx" + LIB_DIRECTX="-L${withval}/lib -lgdi32 -ldxguid" + INCLUDE="${INCLUDE} -I${withval}/include" + echo "$ac_t""yes" 1>&6 + else + echo "$ac_t""no" 1>&6 + { echo "configure: error: Cannot find ${withval}/include/directx.h!" 1>&2; exit 1; } + fi fi + fi +fi # Check whether --with-glide or --without-glide was given. if test "${with_glide+set}" = set; then withval="$with_glide" - if test "x$withval" != "xno"; + if test "x$withval" != "xno" then - PLUGINS="${PLUGINS} glide"; - if test "x$withval" != "xyes"; + PLUGINS="${PLUGINS} glide" + if test "x$withval" != "xyes" then LIB_GLIDE="-l"$withval" -lm" else @@ -4365,7 +5580,7 @@ if test "${enable_qt+set}" = set; then PLUGINS="${PLUGINS} qt" ALIASES="${ALIASES} qvlc" LIB_QT="-lqt -L${QTDIR}/lib" - if test -x ${QTDIR}/bin/moc ; + if test -x ${QTDIR}/bin/moc then MOC=${QTDIR}/bin/moc else @@ -4379,9 +5594,15 @@ fi if test "${enable_kde+set}" = set; then enableval="$enable_kde" if test x$enable_kde = xyes; then - PLUGINS="${PLUGINS} kde"; - ALIASES="${ALIASES} kvlc"; - LIB_KDE="-lkfile" + PLUGINS="${PLUGINS} kde" + ALIASES="${ALIASES} kvlc" + LIB_KDE="-L${KDEDIR}/lib -lkfile" + if test -x ${QTDIR}/bin/moc + then + MOC=${QTDIR}/bin/moc + else + MOC=moc + fi fi fi @@ -4390,10 +5611,100 @@ fi if test "${enable_gnome+set}" = set; then enableval="$enable_gnome" if test x$enable_gnome = xyes; then - PLUGINS="${PLUGINS} gnome" - ALIASES="${ALIASES} gnome-vlc" - LIB_GNOME="`gnome-config --libs gnomeui | sed 's,-rdynamic,,'`" - fi + # look for gnome-config + # Extract the first word of "gnome-config", so it can be a program name with args. +set dummy gnome-config; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:5619: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case "$GNOME_CONFIG" in + /*) + ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" + ;; +esac +fi +GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG" +if test -n "$GNOME_CONFIG"; then + echo "$ac_t""$GNOME_CONFIG" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + if test -x ${GNOME_CONFIG} + then + CFLAGS_GNOME="`${GNOME_CONFIG} --cflags gnomeui`" + LIB_GNOME="`${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`" + fi + # now look for the gnome.h header + saved_CPPFLAGS=$CPPFLAGS + CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME" + for ac_hdr in gnome.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:5664: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:5674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +{ echo "configure: error: Can't find gnome headers. Please install the gnome +developement librairie or remove the --enable-gnome option" 1>&2; exit 1; } + +fi +done + + + CPPFLAGS=$saved_CPPFLAGS + fi fi @@ -4403,11 +5714,23 @@ if test "${enable_gtk+set}" = set; then : fi -if test x$enable_gtk != xno; then +if test x$enable_gtk != xno +then + GTK_PATH=$PATH + # Check whether --with-gtk-config-path or --without-gtk-config-path was given. +if test "${with_gtk_config_path+set}" = set; then + withval="$with_gtk_config_path" + if test "x$withval" != "xno" + then + GTK_PATH=$withval:$PATH + fi +fi + + # look for gtk-config # Extract the first word of "gtk-config", so it can be a program name with args. set dummy gtk-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4411: checking for $ac_word" >&5 +echo "configure:5734: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4420,7 +5743,7 @@ else ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" + ac_dummy="$GTK_PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then @@ -4440,12 +5763,63 @@ else echo "$ac_t""no" 1>&6 fi - if test x${GTK_CONFIG} != xno; then - PLUGINS="${PLUGINS} gtk" - ALIASES="${ALIASES} gvlc" + if test -x ${GTK_CONFIG} + then CFLAGS_GTK="`${GTK_CONFIG} --cflags gtk`" LIB_GTK="`${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`" fi + # now look for the gtk.h header + saved_CPPFLAGS=$CPPFLAGS + CPPFLAGS="$CPPFLAGS $CFLAGS_GTK" + FOUND= + for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:5780: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:5790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +FOUND=no + echo "Cannot find gtk development headers." + +fi +done + + if test -z $FOUND; then + PLUGINS="${PLUGINS} gtk" + ALIASES="${ALIASES} gvlc" + fi + CPPFLAGS=$saved_CPPFLAGS fi # Check whether --enable-x11 or --disable-x11 was given. @@ -4454,7 +5828,8 @@ if test "${enable_x11+set}" = set; then : fi -if test x$enable_x11 != xno; then +if test x$enable_x11 != xno && + (test $SYS != mingw32 || test x$enable_x11 = xyes); then if test x$x_includes = xNONE; then x_includes=/usr/X11R6/include fi @@ -4467,17 +5842,17 @@ if test x$enable_x11 != xno; then do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:4471: checking for $ac_hdr" >&5 +echo "configure:5846: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -4498,7 +5873,7 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then #define $ac_tr_hdr 1 EOF - PLUGINS="${PLUGINS} x11" + #PLUGINS="${PLUGINS} x11" LIB_X11="-L$x_libraries -lX11 -lXext" CFLAGS_X11="-I$x_includes" @@ -4516,7 +5891,8 @@ if test "${enable_xvideo+set}" = set; then : fi -if test x$enable_xvideo != xno; then +if test x$enable_xvideo != xno && + (test $SYS != mingw32 || test x$enable_xvideo = xyes); then if test x$x_includes = xNONE; then x_includes=/usr/X11R6/include fi @@ -4529,17 +5905,17 @@ if test x$enable_xvideo != xno; then do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:4533: checking for $ac_hdr" >&5 +echo "configure:5909: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -4560,7 +5936,7 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then #define $ac_tr_hdr 1 EOF - PLUGINS="${PLUGINS} xvideo" + BUILTINS="${BUILTINS} xvideo" LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv" CFLAGS_X11="-I$x_includes" @@ -4575,19 +5951,21 @@ fi # Check whether --enable-alsa or --disable-alsa was given. if test "${enable_alsa+set}" = set; then enableval="$enable_alsa" - if test x$enable_alsa = xyes; then ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6 -echo "configure:4581: checking for sys/asoundlib.h" >&5 + if test x$enable_alsa = xyes + then + ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6 +echo "configure:5959: checking for alsa/asoundlib.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < +#include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -4604,7 +5982,7 @@ fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6 -echo "configure:4608: checking for main in -lasound" >&5 +echo "configure:5986: checking for main in -lasound" >&5 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4612,14 +5990,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lasound $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4644,15 +6022,49 @@ else echo "$ac_t""no" 1>&6 have_alsa="false" fi - if test x$have_alsa = xtrue; then - PLUGINS="${PLUGINS} alsa" - LIB_ALSA="-lasound" - fi; fi + + if test x$have_alsa = xtrue + then + PLUGINS="${PLUGINS} alsa" + LIB_ALSA="-lasound" + fi + fi fi fi +# Check whether --enable-plugins or --disable-plugins was given. +if test "${enable_plugins+set}" = set; then + enableval="$enable_plugins" + if test x$enable_plugins = xno + then + BUILTINS="${BUILTINS} ${PLUGINS}" + PLUGINS= + fi +fi + + + + + + + + + + + + + + + + + + + + + + @@ -4842,9 +6254,19 @@ s%@host_alias@%$host_alias%g s%@host_cpu@%$host_cpu%g s%@host_vendor@%$host_vendor%g s%@host_os@%$host_os%g +s%@target@%$target%g +s%@target_alias@%$target_alias%g +s%@target_cpu@%$target_cpu%g +s%@target_vendor@%$target_vendor%g +s%@target_os@%$target_os%g +s%@build@%$build%g +s%@build_alias@%$build_alias%g +s%@build_cpu@%$build_cpu%g +s%@build_vendor@%$build_vendor%g +s%@build_os@%$build_os%g s%@VLC_VERSION@%$VLC_VERSION%g -s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g s%@VLC_CODENAME@%$VLC_CODENAME%g +s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g s%@SET_MAKE@%$SET_MAKE%g s%@CC@%$CC%g s%@CPP@%$CPP%g @@ -4852,9 +6274,13 @@ s%@RANLIB@%$RANLIB%g s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g s%@INSTALL_DATA@%$INSTALL_DATA%g -s%@GETOPT@%$GETOPT%g +s%@WINDRES@%$WINDRES%g s%@ESD_CONFIG@%$ESD_CONFIG%g +s%@ARTS_CONFIG@%$ARTS_CONFIG%g +s%@SDL12_CONFIG@%$SDL12_CONFIG%g +s%@SDL11_CONFIG@%$SDL11_CONFIG%g s%@SDL_CONFIG@%$SDL_CONFIG%g +s%@GNOME_CONFIG@%$GNOME_CONFIG%g s%@GTK_CONFIG@%$GTK_CONFIG%g s%@SYS@%$SYS%g s%@ARCH@%$ARCH%g @@ -4864,44 +6290,61 @@ s%@ALIASES@%$ALIASES%g s%@DEFINE@%$DEFINE%g s%@INCLUDE@%$INCLUDE%g s%@DEBUG@%$DEBUG%g -s%@STATS@%$STATS%g s%@ASM@%$ASM%g s%@TRACE@%$TRACE%g -s%@PROFILING@%$PROFILING%g +s%@CPROF@%$CPROF%g +s%@GPROF@%$GPROF%g s%@OPTIMS@%$OPTIMS%g -s%@CSS@%$CSS%g +s%@TUNING@%$TUNING%g +s%@RELEASE@%$RELEASE%g +s%@NEED_GETOPT@%$NEED_GETOPT%g s%@MOC@%$MOC%g -s%@WINDRES@%$WINDRES%g s%@LCFLAGS@%$LCFLAGS%g s%@PLCFLAGS@%$PLCFLAGS%g +s%@SOFLAGS@%$SOFLAGS%g s%@LIB@%$LIB%g s%@LIB_ALSA@%$LIB_ALSA%g +s%@LIB_ALTIVEC@%$LIB_ALTIVEC%g +s%@LIB_ARTS@%$LIB_ARTS%g s%@LIB_BEOS@%$LIB_BEOS%g s%@LIB_DARWIN@%$LIB_DARWIN%g +s%@LIB_DIRECTX@%$LIB_DIRECTX%g s%@LIB_DVD@%$LIB_DVD%g +s%@LIB_DVD_PLUGIN@%$LIB_DVD_PLUGIN%g +s%@LIB_DVDREAD@%$LIB_DVDREAD%g +s%@LIB_DVDREAD_PLUGIN@%$LIB_DVDREAD_PLUGIN%g s%@LIB_ESD@%$LIB_ESD%g s%@LIB_GGI@%$LIB_GGI%g s%@LIB_GLIDE@%$LIB_GLIDE%g s%@LIB_GNOME@%$LIB_GNOME%g s%@LIB_GTK@%$LIB_GTK%g -s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g s%@LIB_KDE@%$LIB_KDE%g +s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g s%@LIB_MACOSX@%$LIB_MACOSX%g -s%@LIB_QNX@%$LIB_QNX%g +s%@LIB_MAD@%$LIB_MAD%g +s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g s%@LIB_NCURSES@%$LIB_NCURSES%g +s%@LIB_QNX@%$LIB_QNX%g s%@LIB_QT@%$LIB_QT%g -s%@LIB_TS@%$LIB_TS%g +s%@LIB_RC@%$LIB_RC%g s%@LIB_SDL@%$LIB_SDL%g -s%@LIB_DIRECTX@%$LIB_DIRECTX%g s%@LIB_X11@%$LIB_X11%g s%@LIB_XVIDEO@%$LIB_XVIDEO%g s%@LIB_YUV@%$LIB_YUV%g s%@CFLAGS_VLC@%$CFLAGS_VLC%g +s%@CFLAGS_ALTIVEC@%$CFLAGS_ALTIVEC%g s%@CFLAGS_DVD@%$CFLAGS_DVD%g +s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g +s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g +s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g +s%@CFLAGS_ESD@%$CFLAGS_ESD%g s%@CFLAGS_GTK@%$CFLAGS_GTK%g +s%@CFLAGS_MAD@%$CFLAGS_MAD%g s%@CFLAGS_SDL@%$CFLAGS_SDL%g s%@CFLAGS_X11@%$CFLAGS_X11%g -s%@LOCAL_LIBDVDCSS@%$LOCAL_LIBDVDCSS%g +s%@OBJ_DVD@%$OBJ_DVD%g +s%@OBJ_LIBDVDCSS@%$OBJ_LIBDVDCSS%g +s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g CEOF EOF @@ -5128,24 +6571,48 @@ global configuration system : ${SYS} architecture : ${ARCH} optimizations : ${OPTIMS} -inline assembly : ${ASM} +tuning: : ${TUNING} +release: : ${RELEASE}" +if test x${HAVE_VLC} = x1 +then + echo " vlc configuration ----------------- vlc version : ${VLC_VERSION} debug mode : ${DEBUG} -statistics : ${STATS} trace mode : ${TRACE} -profiling : ${PROFILING} -need builtin getopt : ${GETOPT} +cprof/gprof support : ${CPROF}/${GPROF} +need builtin getopt : ${NEED_GETOPT} built-in modules :${BUILTINS} -plugin modules :${PLUGINS} -vlc aliases :${ALIASES} +plug-in modules :${PLUGINS} +vlc aliases :${ALIASES}" +fi +echo " libdvdcss configuration ----------------------- -CSS decryption : ${CSS} +can be built : ${CAN_BUILD_LIBDVDCSS} +will be built : ${NEED_LIBDVDCSS}" +if test x${NEED_LIBDVDCSS} = x1 +then + echo "need BSDI libdvd : ${NEED_BSDI_LIBDVD}" + echo "link statically : ${STATIC_LIBDVDCSS}" +else + echo "use dummy replacement : ${DUMMY_LIBDVDCSS}" +fi -You may now tune Makefile.opts at your convenience. To build vlc, type -\`make vlc'. To build libdvdcss only, type \`make libdvdcss'." +echo " +You may now tune Makefile.opts at your convenience, for instance to choose +which modules get compiled as plugins. +" +if test x${HAVE_VLC} = x1 +then + echo "To build vlc and its plugins, type \`make vlc'." +fi +if test x${HAVE_LIBDVDCSS} = x1 +then + echo "To build libdvdcss only, type \`make libdvdcss'." +fi +echo ""