X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=configure;h=dc3bb00e1d84b58d367727928171cc59e0725098;hb=34487b0b6c6389d7f061dc09e571551ff8176622;hp=b75b5741a53cbdee8c03686ee93c1ff3844ecac4;hpb=1ac785a293dffb84c78250f078b12ea397458cdb;p=vlc diff --git a/configure b/configure index b75b5741a5..dc3bb00e1d 100755 --- a/configure +++ b/configure @@ -12,41 +12,57 @@ ac_help= ac_default_prefix=/usr/local # Any additions from configure.in: 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)" + --with-words=endianness Set endianness (big or little)" ac_help="$ac_help - --disable-ppro Disable PentiumPro optimizations (default enabled for x86)" + --with-tuning=[arch] Enable special tuning for an architecture + (default i686 on IA-32 and 750 on PPC)" 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)" -ac_help="$ac_help - --disable-css Disable DVD CSS decryption (default enabled)" + --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-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 + --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 + --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)" 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-darwin Darwin sound support (default enabled on MacOS X)" +ac_help="$ac_help + --enable-macosx MacOS X support (default enabled on MacOS X)" ac_help="$ac_help - --enable-macosx Mac OS X interface support (default enabled in Mac OS X)" + --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 --with-ggi[=name] GGI support (default disabled)" ac_help="$ac_help - --with-sdl[=name] SDL support (default enabled)" + --disable-sdl SDL support (default enabled)" +ac_help="$ac_help + --with-sdl-config-path=path sdl-config path (default search in \$PATH)" +ac_help="$ac_help + --with-directx[=name] Windows DirectX support (default enabled)" ac_help="$ac_help --with-glide[=name] Glide (3dfx) support (default disabled)" ac_help="$ac_help @@ -64,7 +80,10 @@ ac_help="$ac_help 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 @@ -505,7 +524,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=src/interface/main.c +ac_unique_file=include/common.h # Find the source files, if location was not specified. if test -z "$srcdir"; then @@ -597,13 +616,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:607: checking host system type" >&5 +echo "configure:647: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -623,16 +663,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:668: 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:686: checking build system type" >&5 -VLC_VERSION=0.2.73 +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 + +test "$host_alias" != "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" = \ + NONENONEs,x,x, && + program_prefix=${target_alias}- + + +HAVE_VLC=0 +if test -r src/interface/main.c; then + HAVE_VLC=1 + VLC_VERSION=0.2.90 + + VLC_CODENAME=Ourumov + +fi -VLC_CODENAME=Ourumov +HAVE_LIBDVDCSS=0 +if test -r extras/libdvdcss/libdvdcss.c; then + HAVE_LIBDVDCSS=1 + LIBDVDCSS_VERSION=0.0.3 + + 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:636: checking whether ${MAKE-make} sets \${MAKE}" >&5 +echo "configure:735: 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 @@ -661,7 +760,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:665: checking for $ac_word" >&5 +echo "configure:764: 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 @@ -691,7 +790,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:695: checking for $ac_word" >&5 +echo "configure:794: 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 @@ -742,7 +841,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:746: checking for $ac_word" >&5 +echo "configure:845: 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 @@ -774,7 +873,7 @@ fi fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo "configure:877: 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. @@ -785,12 +884,12 @@ cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext << EOF -#line 789 "configure" +#line 888 "configure" #include "confdefs.h" main(){return(0);} EOF -if { (eval echo configure:794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:893: \"$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 @@ -816,12 +915,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:820: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:919: 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:825: checking whether we are using GNU C" >&5 +echo "configure:924: 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 @@ -830,7 +929,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:834: \"$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:933: \"$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 @@ -849,7 +948,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:853: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:952: 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 @@ -881,7 +980,7 @@ else fi echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:885: checking how to run the C preprocessor" >&5 +echo "configure:984: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= @@ -896,13 +995,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:906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1005: \"$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 : @@ -913,13 +1012,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:923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1022: \"$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 : @@ -930,13 +1029,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:940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1039: \"$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 : @@ -963,7 +1062,7 @@ echo "$ac_t""$CPP" 1>&6 # 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:967: checking for $ac_word" >&5 +echo "configure:1066: 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 @@ -1003,7 +1102,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:1007: checking for a BSD compatible install" >&5 +echo "configure:1106: 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 @@ -1056,92 +1155,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:1061: 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:1115: \"$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:1138: checking whether byte ordering is bigendian" >&5 +echo "configure:1161: 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 @@ -1152,11 +1175,11 @@ int main() { #endif ; return 0; } EOF -if { (eval echo configure:1156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1179: \"$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 @@ -1167,7 +1190,7 @@ int main() { #endif ; return 0; } EOF -if { (eval echo configure:1171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_bigendian=yes else @@ -1187,7 +1210,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:1227: \"$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 @@ -1223,17 +1246,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:1267: 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:1232: checking for $ac_func" >&5 +echo "configure:1312: 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:1340: \"$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 @@ -1283,12 +1363,12 @@ done for ac_func in setenv putenv do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:1287: 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 @@ -1336,12 +1416,12 @@ fi done echo $ac_n "checking for connect""... $ac_c" 1>&6 -echo "configure:1340: checking for connect" >&5 +echo "configure:1420: 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:1448: \"$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 @@ -1383,7 +1463,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 -echo "configure:1387: checking for connect in -lsocket" >&5 +echo "configure:1467: 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 @@ -1391,7 +1471,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:1486: \"$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 @@ -1426,12 +1506,12 @@ fi fi echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 -echo "configure:1430: checking for gethostbyname" >&5 +echo "configure:1510: 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:1538: \"$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 @@ -1473,7 +1553,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 -echo "configure:1477: checking for gethostbyname in -lnsl" >&5 +echo "configure:1557: 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 @@ -1481,7 +1561,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:1576: \"$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 @@ -1516,12 +1596,12 @@ fi fi echo $ac_n "checking for nanosleep""... $ac_c" 1>&6 -echo "configure:1520: checking for nanosleep" >&5 +echo "configure:1600: 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:1628: \"$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 @@ -1563,7 +1643,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6 -echo "configure:1567: checking for nanosleep in -lrt" >&5 +echo "configure:1647: 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 @@ -1571,7 +1651,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:1666: \"$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 @@ -1602,7 +1682,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 -echo "configure:1606: checking for nanosleep in -lposix4" >&5 +echo "configure:1686: 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 @@ -1610,7 +1690,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:1705: \"$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 @@ -1650,12 +1730,12 @@ fi for ac_func in usleep do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:1654: checking for $ac_func" >&5 +echo "configure:1734: 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:1762: \"$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 @@ -1703,12 +1783,12 @@ fi done echo $ac_n "checking for inet_aton""... $ac_c" 1>&6 -echo "configure:1707: checking for inet_aton" >&5 +echo "configure:1787: 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:1815: \"$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 @@ -1750,7 +1830,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6 -echo "configure:1754: checking for inet_aton in -lresolv" >&5 +echo "configure:1834: 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 @@ -1758,7 +1838,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:1853: \"$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 @@ -1795,12 +1875,12 @@ fi for ac_func in vasprintf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:1799: checking for $ac_func" >&5 +echo "configure:1879: 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:1907: \"$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 @@ -1850,12 +1930,123 @@ done for ac_func in swab do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:1854: 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 < +/* 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: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 + 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: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 sigrelse +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:2045: 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:2073: \"$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 @@ -1903,13 +2094,14 @@ fi done +NEED_GETOPT=0 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6 -echo "configure:1908: checking for getopt_long" >&5 +echo "configure:2100: 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:2128: \"$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 @@ -1954,7 +2146,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:1958: checking for getopt_long in -lgnugetopt" >&5 +echo "configure:2150: 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 @@ -1962,7 +2154,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:2169: \"$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 @@ -1994,28 +2186,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:2009: checking for $ac_hdr" >&5 +echo "configure:2200: 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:2019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2210: \"$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* @@ -2044,12 +2235,12 @@ done for ac_func in getpagesize do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2048: checking for $ac_func" >&5 +echo "configure:2239: 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:2267: \"$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 @@ -2097,7 +2288,7 @@ fi done echo $ac_n "checking for working mmap""... $ac_c" 1>&6 -echo "configure:2101: checking for working mmap" >&5 +echo "configure:2292: 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 @@ -2105,7 +2296,7 @@ else ac_cv_func_mmap_fixed_mapped=no 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:2440: \"$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 @@ -2268,12 +2459,12 @@ EOF fi echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 -echo "configure:2272: checking return type of signal handlers" >&5 +echo "configure:2463: 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 @@ -2290,7 +2481,7 @@ int main() { int i; ; return 0; } EOF -if { (eval echo configure:2294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_signal=void else @@ -2309,7 +2500,7 @@ EOF echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 -echo "configure:2313: checking for dlopen in -ldl" >&5 +echo "configure:2504: 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 @@ -2317,7 +2508,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:2523: \"$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 @@ -2349,7 +2540,7 @@ else fi echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6 -echo "configure:2353: checking for pow in -lm" >&5 +echo "configure:2544: 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 @@ -2357,7 +2548,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:2563: \"$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 @@ -2389,12 +2580,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:2398: 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:2587: 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 @@ -2402,7 +2591,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:2606: \"$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 @@ -2428,14 +2617,15 @@ LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - PTHREAD_LIBS="-lpthread" + THREAD_LIB="-lpthread" else echo "$ac_t""no" 1>&6 fi -if test "x$PTHREAD_LIBS" = xerror; then +fi +if test "x${THREAD_LIB}" = xerror; then echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6 -echo "configure:2439: checking for pthread_attr_init in -lpthreads" >&5 +echo "configure:2629: 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 @@ -2443,7 +2633,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:2648: \"$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 @@ -2469,15 +2659,15 @@ LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - PTHREAD_LIBS="-lpthreads" + THREAD_LIB="-lpthreads" else echo "$ac_t""no" 1>&6 fi fi -if test "x$PTHREAD_LIBS" = xerror; then +if test "x${THREAD_LIB}" = xerror; then echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6 -echo "configure:2481: checking for pthread_attr_init in -lc_r" >&5 +echo "configure:2671: 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 @@ -2485,7 +2675,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:2690: \"$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 @@ -2511,21 +2701,20 @@ LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - PTHREAD_LIBS="-lc_r" + THREAD_LIB="-lc_r" else echo "$ac_t""no" 1>&6 fi fi -if test "x$PTHREAD_LIBS" = xerror; then - PTHREAD_LIBS="" +if test "x${THREAD_LIB}" = xerror; then echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6 -echo "configure:2524: checking for pthread_attr_init" >&5 +echo "configure:2713: 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:2741: \"$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 @@ -2567,15 +2756,56 @@ else echo "$ac_t""no" 1>&6 fi + THREAD_LIB="" fi -LIB="${LIB} ${PTHREAD_LIBS}" +echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6 +echo "configure:2764: 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 "$ac_cpp conftest.$ac_ext") 2>&5 | +if { (eval echo configure:2783: \"$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 rm -rf conftest* @@ -2583,12 +2813,11 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | #define PTHREAD_COND_T_IN_PTHREAD_H 1 EOF - fi rm -f conftest* cat > conftest.$ac_ext < EOF @@ -2600,7 +2829,6 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | #define STRNCASECMP_IN_STRINGS_H 1 EOF - fi rm -f conftest* @@ -2609,17 +2837,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:2613: checking for $ac_hdr" >&5 +echo "configure:2841: 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:2623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2851: \"$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* @@ -2645,21 +2873,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:2653: checking for $ac_hdr" >&5 +echo "configure:2881: 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:2663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2891: \"$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* @@ -2689,17 +2917,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:2693: checking for $ac_hdr" >&5 +echo "configure:2921: 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:2703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2931: \"$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* @@ -2729,17 +2957,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:2733: checking for $ac_hdr" >&5 +echo "configure:2961: 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:2743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2971: \"$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* @@ -2769,17 +2997,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:2773: checking for $ac_hdr" >&5 +echo "configure:3001: 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:2783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3011: \"$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* @@ -2809,17 +3037,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:2813: checking for $ac_hdr" >&5 +echo "configure:3041: 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:2823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3051: \"$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* @@ -2850,17 +3078,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:2854: checking for $ac_hdr" >&5 +echo "configure:3082: 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:2864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3092: \"$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* @@ -2887,116 +3115,307 @@ fi done -CFLAGS="${CFLAGS} -Wall -Werror" echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6 -echo "configure:2893: 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 < +int main() { void foo() { int meuh; ntohl(meuh); } +; return 0; } +EOF +if { (eval echo configure:3133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + 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 + +fi + +echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6 +echo "configure:3154: 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 +if { (eval echo configure:3167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - cat >> confdefs.h <<\EOF -#define NTOHL_IN_SYS_PARAM_H 1 + ac_cv_c_inline_limit=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_c_inline_limit=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_c_inline_limit" 1>&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:3185: 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 + rm -rf conftest* + ac_cv_ld_darwin=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_ld_darwin=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_ld_darwin" 1>&6 +if test x"$ac_cv_ld_darwin" != x"no"; then + PLCFLAGS="${PLCFLAGS} -bundle -undefined error" +fi - echo "$ac_t""yes" 1>&6 +echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6 +echo "configure:3216: 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 + rm -rf conftest* + 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="${CFLAGS} -rdynamic -Wall -Werror" -echo $ac_n "checking if \$CC miserably fails with the -rdynamic flag""... $ac_c" 1>&6 -echo "configure:2920: checking if \$CC miserably fails with the -rdynamic flag" >&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:3248: 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:3264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - LCFLAGS="${LCFLAGS} -rdynamic" - echo "$ac_t""no" 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""yes" 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 CFLAGS="${save_CFLAGS}" +LDFLAGS="${save_LDFLAGS}" echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6 -echo "configure:2944: 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() { - +void quux() { boolean_t foo; } ; return 0; } EOF -if { (eval echo configure:2954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3327: \"$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:2969: 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() { - +void quux() { boolean_t foo; } ; return 0; } EOF -if { (eval echo configure:2979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3360: \"$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:3381: 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() { +void quux() { boolean_t foo; } +; return 0; } +EOF +if { (eval echo configure:3393: \"$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:2995: checking for working const" >&5 +echo "configure:3414: 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:3468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else @@ -3066,12 +3485,12 @@ EOF fi echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:3070: checking for ANSI C header files" >&5 +echo "configure:3489: 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 @@ -3079,7 +3498,7 @@ else #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3502: \"$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* @@ -3096,7 +3515,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 @@ -3114,7 +3533,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 @@ -3135,7 +3554,7 @@ if test "$cross_compiling" = yes; then : else cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -3146,7 +3565,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } EOF -if { (eval echo configure:3150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:3569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -3170,12 +3589,12 @@ EOF fi echo $ac_n "checking for size_t""... $ac_c" 1>&6 -echo "configure:3174: checking for size_t" >&5 +echo "configure:3593: 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 @@ -3203,12 +3622,12 @@ EOF fi echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 -echo "configure:3207: checking whether time.h and sys/time.h may both be included" >&5 +echo "configure:3626: 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 @@ -3217,7 +3636,7 @@ int main() { struct tm *tp; ; return 0; } EOF -if { (eval echo configure:3221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_time=yes else @@ -3238,130 +3657,443 @@ EOF fi -ARCH=${host_cpu} - -BUILTINS="${BUILTINS} es ps ts yuv idct idctclassic motion imdct downmix" - -case x$host_os in - xmingw32msvc) - MMX_PLUGINS="idctmmx motionmmx" - ;; - *) - MMX_PLUGINS="yuvmmx idctmmx motionmmx" - ;; -esac - -echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6 -echo "configure:3256: checking if \$CC groks MMX inline assembly" >&5 -cat > conftest.$ac_ext <&6 +echo "configure:3662: 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 + 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 +if { (eval echo configure:3676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - ACCEL_PLUGINS="${ACCEL_PLUGINS} ${MMX_PLUGINS}" - echo "$ac_t""yes" 1>&6 + ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 - rm -rf conftest* - echo "$ac_t""no" 1>&6 fi rm -f conftest* + done +fi -echo $ac_n "checking if \$CC groks MMX EXT or SSE inline assembly""... $ac_c" 1>&6 -echo "configure:3278: checking if \$CC groks MMX EXT or SSE inline assembly" >&5 -cat > conftest.$ac_ext <&6 +if test x"$ac_cv_c_attribute_aligned" != x"0"; then + cat >> confdefs.h <&6 +echo "configure:3709: checking if \$CC groks MMX inline assembly" >&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:3721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - ACCEL_PLUGINS="${ACCEL_PLUGINS} idctmmxext motionmmxext imdctsse downmix3dn downmixsse" - 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 -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:3303: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then +echo "$ac_t""$ac_cv_mmx_inline" 1>&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:3739: 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 < + +int main() { +void quux(){void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));} +; return 0; } EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3313: \"$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:3751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" + ac_cv_mmxext_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_mmxext_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 -echo "configure:3339: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + +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 + +echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6 +echo "configure:3769: 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 quux(){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:3349: \"$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:3781: \"$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___%'` + +echo "$ac_t""$ac_cv_3dnow_inline" 1>&6 +if test x"$ac_cv_3dnow_inline" != x"no"; then + cat >> confdefs.h <<\EOF +#define HAVE_3DNOW 1 +EOF + + ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}" +fi + +echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6 +echo "configure:3803: 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 <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_sse_inline=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_sse_inline=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_sse_inline" 1>&6 +if test x"$ac_cv_sse_inline" != x"no"; then + cat >> confdefs.h <<\EOF +#define HAVE_SSE 1 +EOF + + ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}" +fi + +echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6 +echo "configure:3837: 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 <&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=yes; CFLAGS_ALTIVEC="-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 HAVE_ALTIVEC 1 +EOF + + ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}" +fi + +echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6 +echo "configure:3892: 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 HAVE_C_ALTIVEC 1 +EOF + + CFLAGS_ALTIVEC="$CFLAGS_ALTIVEC $ac_cv_c_altivec" +fi + +echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6 +echo "configure:3952: 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 + + +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:3992: 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:4002: \"$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:4035: 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:4045: \"$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:4071: 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:4081: \"$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 < conftest.$ac_ext < EOF @@ -3391,7 +4124,7 @@ fi rm -f conftest* cat > conftest.$ac_ext < EOF @@ -3403,39 +4136,436 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | #define DVD_STRUCT_IN_SYS_CDIO_H 1 EOF - BSD_DVD_STRUCT=1 - -fi -rm -f conftest* + BSD_DVD_STRUCT=1 + +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: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 <> 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:4237: 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:4247: \"$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_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6 +echo "configure:4266: 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 + 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 + + cat >> confdefs.h <<\EOF +#define SOLARIS_USCSI 1 +EOF + + +else + echo "$ac_t""no" 1>&6 +fi + + +else + echo "$ac_t""no" 1>&6 +fi + + if test x$LINUX_DVD_STRUCT = x1; then + cat >> confdefs.h <<\EOF +#define HAVE_LINUX_DVD_STRUCT 1 +EOF + + 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 +fi +done + + + +case ${target_os} in + bsdi*) + SYS=bsdi + ;; + darwin*) + SYS=darwin + ;; + *) + SYS=${target_os} + ;; +esac + +# 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-mmx or --disable-mmx was given. +if test "${enable_mmx+set}" = set; then + enableval="$enable_mmx" + if test x$enableval = xyes; then ARCH="${ARCH} mmx"; + BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi +else + 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 + + +# Check whether --enable-altivec or --disable-altivec was given. +if test "${enable_altivec+set}" = set; then + enableval="$enable_altivec" + if test x$enableval = xyes; then ARCH="${ARCH} altivec"; + BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi +else + if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec"; + BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi +fi + + +DEBUG=0 +# Check whether --enable-debug or --disable-debug was given. +if test "${enable_debug+set}" = set; then + enableval="$enable_debug" + if test x$enableval = xyes; then DEBUG=1; fi +fi + + +TRACE=0 +# Check whether --enable-trace or --disable-trace was given. +if test "${enable_trace+set}" = set; then + enableval="$enable_trace" + if test x$enableval = xyes; then TRACE=1; fi +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 + + +# Check whether --enable-optimizations or --disable-optimizations was given. +if test "${enable_optimizations+set}" = set; then + enableval="$enable_optimizations" + if test x$enableval = xno; then OPTIMS=0; fi +else + OPTIMS=1 +fi + + +# Check whether --enable-pth or --disable-pth was given. +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:4428: 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 +else + ac_save_LIBS="$LIBS" +LIBS="-lpth $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 + ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <> confdefs.h <<\EOF -#define HAVE_BSD_DVD_STRUCT 1 -EOF +else + echo "$ac_t""no" 1>&6 +fi - fi - 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 + egrep "pth_init" >/dev/null 2>&1; then rm -rf conftest* - cat >> confdefs.h <<\EOF -#define DVD_STRUCT_IN_LINUX_CDROM_H 1 + cat >> confdefs.h <<\EOF +#define PTH_INIT_IN_PTH_H 1 EOF - + THREAD_LIB="-lpth" + fi fi rm -f conftest* +fi + + +LIB="${LIB} ${THREAD_LIB}" + +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 - echo "$ac_t""no" 1>&6 + # 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 -done # Check whether --enable-dummy or --disable-dummy was given. @@ -3444,8 +4574,11 @@ if test "${enable_dummy+set}" = set; then : fi -if test x$enable_dummy != xno; then - BUILTINS="${BUILTINS} 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 @@ -3453,8 +4586,11 @@ if test "${enable_null+set}" = set; then : fi -if test x$enable_null != xno; then - BUILTINS="${BUILTINS} 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 @@ -3462,186 +4598,391 @@ if test "${enable_rc+set}" = set; then : fi -if test x$enable_rc != xno; then - BUILTINS="${BUILTINS} rc"; fi -# 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 +if test x$enable_rc != xno +then + BUILTINS="${BUILTINS} rc" +fi + +if test x$SYS = xbeos +then + BUILTINS="${BUILTINS} beos" + LIB_BEOS="-lbe -lgame -lroot -ltracker" + PLCFLAGS="${PLCFLAGS} -nostart" + else - if test x${host_cpu} = xi686; then ARCH="${ARCH} ppro"; fi + +# Check whether --enable-dsp or --disable-dsp was given. +if test "${enable_dsp+set}" = set; then + enableval="$enable_dsp" + : fi -# Check whether --enable-mmx or --disable-mmx was given. -if test "${enable_mmx+set}" = set; then - enableval="$enable_mmx" - if test x$enableval = xyes; then ARCH="${ARCH} mmx"; - BUILTINS="${BUILTINS} ${ACCEL_PLUGINS}"; fi +if test x$enable_dsp != xno +then + if test -c /dev/dsp + then + PLUGINS="${PLUGINS} dsp" + fi +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 + # 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:4639: 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 + case "$ESD_CONFIG" in + /*) + ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_ESD_CONFIG="$ESD_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_ESD_CONFIG="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no" + ;; +esac +fi +ESD_CONFIG="$ac_cv_path_ESD_CONFIG" +if test -n "$ESD_CONFIG"; then + echo "$ac_t""$ESD_CONFIG" 1>&6 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_PLUGINS}"; fi + echo "$ac_t""no" 1>&6 +fi + + if test x${ESD_CONFIG} != xno + then + PLUGINS="${PLUGINS} esd" + LIB_ESD="`${ESD_CONFIG} --libs`" + fi + fi fi -# Check whether --enable-altivec or --disable-altivec was given. -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 +# 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" + fi fi -#[ if test -d /System/Library/Frameworks/vecLib.framework; then ARCH="${ARCH} altivec"; PLUGINS="${PLUGINS} idctaltivec"; fi ]) -# 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 +# 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 + BUILTINS="${BUILTINS} macosx macosx_qt" + LIB_MACOSX="-framework CoreAudio -framework Carbon -framework AGL -framework QuickTime" + LIB_TS="${LIB_TS} -framework AGL -framework Carbon" + LIB_SDL="${LIB_SDL} -framework AGL -framework Carbon" + fi +else + for ac_hdr in Carbon/Carbon.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:4706: 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:4716: \"$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 - CSS=1; + 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 - -if test x${CSS} = x1; then cat >> confdefs.h <<\EOF -#define HAVE_CSS 1 +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 -# Check whether --enable-debug or --disable-debug was given. -if test "${enable_debug+set}" = set; then - enableval="$enable_debug" - if test x$enableval = xyes; then DEBUG=1; fi 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 +# Check whether --enable-qnx or --disable-qnx was given. +if test "${enable_qnx+set}" = set; then + enableval="$enable_qnx" + : +fi + + 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:4761: 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:4771: \"$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 + fi -# Check whether --enable-trace or --disable-trace was given. -if test "${enable_trace+set}" = set; then - enableval="$enable_trace" - if test x$enableval = xyes; then TRACE=1; fi +# 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 fi -# Check whether --enable-optimizations or --disable-optimizations was given. -if test "${enable_optimizations+set}" = set; then - enableval="$enable_optimizations" - if test x$enableval = xno; then OPTIMS=0; fi -else - OPTIMS=1 +# Check whether --with-ggi or --without-ggi was given. +if test "${with_ggi+set}" = set; then + withval="$with_ggi" + if test "x$withval" != "xno" + then + PLUGINS="${PLUGINS} ggi" + if test "x$withval" != "xyes" + then + LIB_GGI="-l"$withval + else + LIB_GGI="-lggi" + fi + fi fi -SYS=${host_os} +# Check whether --enable-sdl or --disable-sdl was given. +if test "${enable_sdl+set}" = set; then + enableval="$enable_sdl" + : +fi -if test x$host_os = xbeos; then - BUILTINS="${BUILTINS} beos" - LIB_BEOS="-lbe -lgame -lroot -ltracker" +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 "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:4849: 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 - -# Check whether --enable-dsp or --disable-dsp was given. -if test "${enable_dsp+set}" = set; then - enableval="$enable_dsp" - : + case "$SDL12_CONFIG" in + /*) + ac_cv_path_SDL12_CONFIG="$SDL12_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 dos path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + 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_SDL12_CONFIG="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no" + ;; +esac fi - -if test x$enable_dsp != xno; then - if test -c /dev/dsp; then - PLUGINS="${PLUGINS} dsp" - fi +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 -# 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 - # Extract the first word of "esd-config", so it can be a program name with args. -set dummy esd-config; ac_word=$2 + 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:3570: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then +echo "configure:4889: 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 "$ESD_CONFIG" in + case "$SDL11_CONFIG" in /*) - ac_cv_path_ESD_CONFIG="$ESD_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_ESD_CONFIG="$ESD_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_ESD_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_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no" + test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no" ;; esac fi -ESD_CONFIG="$ac_cv_path_ESD_CONFIG" -if test -n "$ESD_CONFIG"; then - echo "$ac_t""$ESD_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 - if test x${ESD_CONFIG} != xno; then - PLUGINS="${PLUGINS} esd" - LIB_ESD="`${ESD_CONFIG} --libs`" - fi - fi + SDL_CONFIG=${SDL11_CONFIG} + SDL_HEADER="SDL11/SDL.h" + fi + 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:4930: 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 + case "$SDL_CONFIG" in + /*) + ac_cv_path_SDL_CONFIG="$SDL_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. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + 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" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" + ;; +esac 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" - fi +SDL_CONFIG="$ac_cv_path_SDL_CONFIG" +if test -n "$SDL_CONFIG"; then + echo "$ac_t""$SDL_CONFIG" 1>&6 +else + echo "$ac_t""no" 1>&6 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 - 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" - fi -else - for ac_hdr in Carbon/Carbon.h + SDL_HEADER="SDL/SDL.h" + fi + 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:3635: checking for $ac_hdr" >&5 +echo "configure:4976: 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:3645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4986: \"$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* @@ -3661,68 +5002,60 @@ 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 "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 -fi - - -# 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 -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"; + CPPFLAGS=$save_CPPFLAGS + if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null then - PLUGINS="${PLUGINS} ggi"; - if test "x$withval" != "xyes"; - then - LIB_GGI="-l"$withval - else - LIB_GGI="-lggi" - fi - fi + { 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 + 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-sdl or --without-sdl was given. -if test "${with_sdl+set}" = set; then - withval="$with_sdl" - if test "x$withval" != "xno"; +# 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} sdl"; - if test "x$withval" != "xyes"; + PLUGINS="${PLUGINS} directx" + if test "x$withval" != "xyes" then - LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -L"$withval"/lib -lSDL" + LIB_DIRECTX="${LIB_DIRECTX} -L"$withval"/lib -lgdi32 -ldxguid" INCLUDE="${INCLUDE} -I"$withval"/include" else - for ac_hdr in SDL/SDL.h + 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:3716: checking for $ac_hdr" >&5 +echo "configure:5049: 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:3726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5059: \"$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* @@ -3745,32 +5078,33 @@ EOF else echo "$ac_t""no" 1>&6 -echo "Cannot find SDL headers !"; exit +{ echo "configure: error: Cannot find DirectX headers !" 1>&2; exit 1; } + fi done - LIB_SDL="${LIB_SDL} -L/usr/X11R6/lib -lSDL" + LIB_DIRECTX="${LIB_DIRECTX} -L/usr/lib -lgdi32 -ldxguid" fi fi fi - if test "x$withval" = "x"; + if test "x$withval" = "x" then - for ac_hdr in SDL/SDL.h + 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:3764: checking for $ac_hdr" >&5 +echo "configure:5098: 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:3774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5108: \"$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* @@ -3790,8 +5124,8 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then cat >> confdefs.h <&6 fi @@ -3802,14 +5136,14 @@ done # 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 + LIB_GLIDE="-l"$withval" -lm" else - LIB_GLIDE="-lglide2x" + LIB_GLIDE="-lglide2x -lm" fi fi fi @@ -3832,7 +5166,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 @@ -3845,7 +5179,17 @@ fi # Check whether --enable-kde or --disable-kde was given. if test "${enable_kde+set}" = set; then enableval="$enable_kde" - if test x$enable_kde = xyes; then PLUGINS="${PLUGINS} kde"; ALIASES="${ALIASES} kvlc"; fi + if test x$enable_kde = xyes; then + 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 @@ -3853,10 +5197,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:5205: 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:5250: 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:5260: \"$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 @@ -3866,11 +5300,13 @@ if test "${enable_gtk+set}" = set; then : fi -if test x$enable_gtk != xno; then +if test x$enable_gtk != xno +then + # 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:3874: checking for $ac_word" >&5 +echo "configure:5310: 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 @@ -3903,12 +5339,58 @@ 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" + for ac_hdr in gtk/gtk.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:5355: 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:5365: \"$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 + + CPPFLAGS=$saved_CPPFLAGS fi # Check whether --enable-x11 or --disable-x11 was given. @@ -3930,17 +5412,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:3934: checking for $ac_hdr" >&5 +echo "configure:5416: 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:3944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5426: \"$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* @@ -3992,17 +5474,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:3996: checking for $ac_hdr" >&5 +echo "configure:5478: 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:4006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5488: \"$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* @@ -4023,7 +5505,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" @@ -4038,19 +5520,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_%'` + 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:4044: checking for sys/asoundlib.h" >&5 +echo "configure:5528: checking for sys/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 < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5538: \"$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* @@ -4067,7 +5551,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:4071: checking for main in -lasound" >&5 +echo "configure:5555: 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 @@ -4075,14 +5559,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:5570: \"$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 @@ -4107,15 +5591,51 @@ 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 + + + + + + + + + + + + + + + + + + + + + + + + @@ -4293,8 +5813,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%@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 @@ -4302,8 +5833,11 @@ 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%@ESD_CONFIG@%$ESD_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 @@ -4313,33 +5847,52 @@ 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%@CPROF@%$CPROF%g +s%@GPROF@%$GPROF%g s%@OPTIMS@%$OPTIMS%g -s%@CSS@%$CSS%g +s%@TUNING@%$TUNING%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_BEOS@%$LIB_BEOS%g s%@LIB_DARWIN@%$LIB_DARWIN%g +s%@LIB_DVD@%$LIB_DVD%g +s%@LIB_DVD_PLUGIN@%$LIB_DVD_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_LIBDVDCSS@%$LIB_LIBDVDCSS%g +s%@LIB_KDE@%$LIB_KDE%g s%@LIB_MACOSX@%$LIB_MACOSX%g +s%@LIB_QNX@%$LIB_QNX%g s%@LIB_NCURSES@%$LIB_NCURSES%g s%@LIB_QT@%$LIB_QT%g s%@LIB_TS@%$LIB_TS%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_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g s%@CFLAGS_GTK@%$CFLAGS_GTK%g +s%@CFLAGS_SDL@%$CFLAGS_SDL%g s%@CFLAGS_X11@%$CFLAGS_X11%g +s%@OBJ_DVD@%$OBJ_DVD%g +s%@OBJ_LIBDVDCSS@%$OBJ_LIBDVDCSS%g +s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g CEOF EOF @@ -4561,20 +6114,52 @@ test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 echo " +global configuration +-------------------- +system : ${SYS} +architecture : ${ARCH} +optimizations : ${OPTIMS} +tuning: : ${TUNING}" + +if test x${HAVE_VLC} = x1 +then + echo " vlc configuration ----------------- vlc version : ${VLC_VERSION} -system : ${SYS} -architecture : ${ARCH} debug mode : ${DEBUG} -statistics : ${STATS} trace mode : ${TRACE} -optimizations : ${OPTIMS} -CSS decryption : ${CSS} -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 +----------------------- +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." +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 ""