X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=configure;h=4468086def95b02c742a2bdd48bdde94697c0956;hb=5ffbc97e759f4e44a9ac33567901de1f5ff5528a;hp=57023eb2e0566f5c739d09568c22900387f39201;hpb=40592166a84f0a28c12ca0bfba132f82beffba64;p=vlc diff --git a/configure b/configure index 57023eb2e0..4468086def 100755 --- a/configure +++ b/configure @@ -44,16 +44,26 @@ ac_help="$ac_help --enable-dvdread dvdread input module (default disabled)" ac_help="$ac_help --with-dvdread=PATH libdvdread headers and libraries" +ac_help="$ac_help + --enable-dvdplay dvdplay input module (default disabled)" +ac_help="$ac_help + --with-dvdplay=PATH libdvdplay headers and libraries" ac_help="$ac_help --enable-dvbpsi dvbpsi ts demux module (default disabled)" ac_help="$ac_help --with-dvbpsi=PATH libdvbpsi headers and libraries" +ac_help="$ac_help + --with-dvbpsi-tree=PATH libdvbpsi tree for static linking" +ac_help="$ac_help + --enable-v4l Video4Linux input support (default disabled)" ac_help="$ac_help --enable-vcd VCD support for Linux, FreeBSD and MacOS X (default enabled)" ac_help="$ac_help --enable-satellite satellite card support (default disabled)" ac_help="$ac_help --enable-avi AVI demux module (default enabled)" +ac_help="$ac_help + --enable-aac AAC demux module (default enabled)" ac_help="$ac_help Codec plugins:" ac_help="$ac_help @@ -69,11 +79,25 @@ ac_help="$ac_help ac_help="$ac_help --with-ffmpeg-tree=PATH ffmpeg tree for static linking" ac_help="$ac_help - --enable-a52 AC3 support with liba52 (default enabled)" + --enable-faad faad codec (default disabled)" +ac_help="$ac_help + --with-faad=PATH path to faad installation" +ac_help="$ac_help + --with-faad-tree=PATH faad tree for static linking" +ac_help="$ac_help + --enable-mp4 MP4 demux module (default enabled)" +ac_help="$ac_help + --enable-a52 A/52 support with liba52 (default enabled)" +ac_help="$ac_help + --with-a52=PATH a52 headers and libraries" ac_help="$ac_help --with-a52-tree=PATH a52dec tree for static linking " +ac_help="$ac_help + --enable-cinepak Cinepak decoder (default enabled)" ac_help="$ac_help --enable-vorbis Ogg/Vorbis decoder support (default enabled)" +ac_help="$ac_help + --enable-dv DV decoder support (default disabled)" ac_help="$ac_help Video plugins:" ac_help="$ac_help @@ -87,7 +111,7 @@ ac_help="$ac_help ac_help="$ac_help --enable-directx Win32 DirectX support (default enabled on Win32)" ac_help="$ac_help - --with-directx=PATH Win32 DirectX headers and libraries" + --with-directx=PATH Win32 DirectX headers" ac_help="$ac_help --enable-fb Linux framebuffer support (default enabled on Linux)" ac_help="$ac_help @@ -105,7 +129,7 @@ ac_help="$ac_help ac_help="$ac_help Audio plugins:" ac_help="$ac_help - --enable-dsp Linux /dev/dsp support (enabled on Linux)" + --enable-oss Linux OSS /dev/dsp support (enabled on Linux)" ac_help="$ac_help --enable-esd Esound library support (default disabled)" ac_help="$ac_help @@ -120,12 +144,18 @@ ac_help="$ac_help --enable-gtk Gtk+ support (default enabled)" ac_help="$ac_help --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)" +ac_help="$ac_help + --enable-familiar Familiar Gtk+ support (default disabled)" +ac_help="$ac_help + --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)" ac_help="$ac_help --enable-gnome Gnome interface support (default disabled)" ac_help="$ac_help --enable-qt Qt interface support (default disabled)" ac_help="$ac_help --enable-kde KDE interface support (default disabled)" +ac_help="$ac_help + --enable-qte Qt embedded interface support (default disabled)" ac_help="$ac_help --enable-macosx MacOS X support (default enabled on MacOS X)" ac_help="$ac_help @@ -136,6 +166,8 @@ ac_help="$ac_help --with-bcbuilder=PATH Borland C++ Builder installation path" ac_help="$ac_help --enable-ncurses ncurses interface support (default disabled)" +ac_help="$ac_help + --enable-xosd xosd interface support (default disabled)" ac_help="$ac_help --enable-lirc lirc support (default disabled)" ac_help="$ac_help @@ -150,6 +182,8 @@ ac_help="$ac_help --enable-pth GNU Pth support (default disabled)" ac_help="$ac_help --enable-st State Threads (default disabled)" +ac_help="$ac_help + --enable-mozilla build a vlc-based Mozilla plugin (default disabled)" ac_help="$ac_help --disable-plugins make all plug-ins built-in (default plug-ins enabled)" @@ -710,7 +744,7 @@ 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:714: checking host system type" >&5 +echo "configure:748: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -731,7 +765,7 @@ 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:735: checking target system type" >&5 +echo "configure:769: checking target system type" >&5 target_alias=$target case "$target_alias" in @@ -749,7 +783,7 @@ 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:753: checking build system type" >&5 +echo "configure:787: checking build system type" >&5 build_alias=$build case "$build_alias" in @@ -783,7 +817,7 @@ save_CFLAGS="${CFLAGS}" save_LDFLAGS="${LDFLAGS}" echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:787: checking whether ${MAKE-make} sets \${MAKE}" >&5 +echo "configure:821: 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 @@ -812,7 +846,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:816: checking for $ac_word" >&5 +echo "configure:850: 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 @@ -842,7 +876,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:846: checking for $ac_word" >&5 +echo "configure:880: 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 @@ -893,7 +927,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:897: checking for $ac_word" >&5 +echo "configure:931: 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 @@ -925,7 +959,7 @@ fi fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:929: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo "configure:963: 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. @@ -936,12 +970,12 @@ cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext << EOF -#line 940 "configure" +#line 974 "configure" #include "confdefs.h" main(){return(0);} EOF -if { (eval echo configure:945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:979: \"$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 @@ -967,12 +1001,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:971: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:1005: 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:976: checking whether we are using GNU C" >&5 +echo "configure:1010: 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 @@ -981,7 +1015,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:985: \"$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:1019: \"$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 @@ -1000,7 +1034,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:1004: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:1038: 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 @@ -1032,7 +1066,7 @@ else fi echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:1036: checking how to run the C preprocessor" >&5 +echo "configure:1070: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= @@ -1047,13 +1081,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:1057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1091: \"$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 : @@ -1064,13 +1098,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:1074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1108: \"$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 : @@ -1081,13 +1115,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:1091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1125: \"$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 : @@ -1121,7 +1155,7 @@ fi # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1125: checking for $ac_word" >&5 +echo "configure:1159: 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 @@ -1153,7 +1187,7 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1157: checking for $ac_word" >&5 +echo "configure:1191: 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 @@ -1188,7 +1222,7 @@ fi # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1192: checking for $ac_word" >&5 +echo "configure:1226: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1220,7 +1254,7 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1224: checking for $ac_word" >&5 +echo "configure:1258: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1256,7 +1290,7 @@ fi # Extract the first word of "gmake", so it can be a program name with args. set dummy gmake; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1260: checking for $ac_word" >&5 +echo "configure:1294: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1289,9 +1323,9 @@ else echo "$ac_t""no" 1>&6 fi -if test "x$GMAKE" = "xno"; then +if test "x${GMAKE}" = "xno"; then echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6 -echo "configure:1295: checking whether GNU make is installed" >&5 +echo "configure:1329: checking whether GNU make is installed" >&5 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1310,20 +1344,20 @@ else VLC_MAKE="gmake" fi -ALL_LINGUAS="de en_GB fr ja no ru nl pl" +ALL_LINGUAS="de en_GB fr ja no ru nl pl se" cat >> confdefs.h <> confdefs.h <&6 -echo "configure:1327: checking for $ac_word" >&5 +echo "configure:1361: 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 @@ -1352,7 +1386,7 @@ fi echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 -echo "configure:1356: checking for strerror in -lcposix" >&5 +echo "configure:1390: checking for strerror in -lcposix" >&5 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1360,7 +1394,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lcposix $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1409: \"$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 @@ -1394,12 +1428,12 @@ fi echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:1398: checking for ANSI C header files" >&5 +echo "configure:1432: 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 @@ -1407,7 +1441,7 @@ else #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1445: \"$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* @@ -1424,7 +1458,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 @@ -1442,7 +1476,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 @@ -1463,7 +1497,7 @@ if test "$cross_compiling" = yes; then : else cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -1474,7 +1508,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } EOF -if { (eval echo configure:1478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:1512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -1498,12 +1532,12 @@ EOF fi echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:1502: checking for working const" >&5 +echo "configure:1536: 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:1590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else @@ -1573,21 +1607,21 @@ EOF fi echo $ac_n "checking for inline""... $ac_c" 1>&6 -echo "configure:1577: checking for inline" >&5 +echo "configure:1611: checking for inline" >&5 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_inline=$ac_kw; break else @@ -1613,12 +1647,12 @@ EOF esac echo $ac_n "checking for off_t""... $ac_c" 1>&6 -echo "configure:1617: checking for off_t" >&5 +echo "configure:1651: checking for off_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -1646,12 +1680,12 @@ EOF fi echo $ac_n "checking for size_t""... $ac_c" 1>&6 -echo "configure:1650: checking for size_t" >&5 +echo "configure:1684: 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 @@ -1681,19 +1715,19 @@ fi # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 -echo "configure:1685: checking for working alloca.h" >&5 +echo "configure:1719: checking for working alloca.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { char *p = alloca(2 * sizeof(int)); ; return 0; } EOF -if { (eval echo configure:1697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_header_alloca_h=yes else @@ -1714,12 +1748,12 @@ EOF fi echo $ac_n "checking for alloca""... $ac_c" 1>&6 -echo "configure:1718: checking for alloca" >&5 +echo "configure:1752: checking for alloca" >&5 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+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:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_func_alloca_works=yes else @@ -1779,12 +1813,12 @@ EOF echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 -echo "configure:1783: checking whether alloca needs Cray hooks" >&5 +echo "configure:1817: checking whether alloca needs Cray hooks" >&5 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:1813: checking for $ac_func" >&5 +echo "configure:1847: 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:1875: \"$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 @@ -1864,7 +1898,7 @@ done fi echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 -echo "configure:1868: checking stack direction for C alloca" >&5 +echo "configure:1902: checking stack direction for C alloca" >&5 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1872,7 +1906,7 @@ else ac_cv_c_stack_direction=0 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:1929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_c_stack_direction=1 else @@ -1916,17 +1950,17 @@ 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:1920: checking for $ac_hdr" >&5 +echo "configure:1954: 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:1930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1964: \"$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* @@ -1955,12 +1989,12 @@ done for ac_func in getpagesize do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:1959: checking for $ac_func" >&5 +echo "configure:1993: 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:2021: \"$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 @@ -2008,7 +2042,7 @@ fi done echo $ac_n "checking for working mmap""... $ac_c" 1>&6 -echo "configure:2012: checking for working mmap" >&5 +echo "configure:2046: 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 @@ -2016,7 +2050,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:2194: \"$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 @@ -2180,12 +2214,12 @@ fi echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6 -echo "configure:2184: checking whether we are using the GNU C Library 2.1 or newer" >&5 +echo "configure:2218: checking whether we are using the GNU C Library 2.1 or newer" >&5 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -2221,17 +2255,17 @@ stdlib.h string.h unistd.h sys/param.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2225: checking for $ac_hdr" >&5 +echo "configure:2259: 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:2235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2269: \"$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* @@ -2262,12 +2296,12 @@ getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \ strdup strtoul tsearch __argz_count __argz_stringify __argz_next do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2266: checking for $ac_func" >&5 +echo "configure:2300: 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:2328: \"$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 @@ -2330,7 +2364,7 @@ fi echo $ac_n "checking for iconv""... $ac_c" 1>&6 -echo "configure:2334: checking for iconv" >&5 +echo "configure:2368: checking for iconv" >&5 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2338,7 +2372,7 @@ else am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no cat > conftest.$ac_ext < #include @@ -2348,7 +2382,7 @@ iconv_t cd = iconv_open("",""); iconv_close(cd); ; return 0; } EOF -if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* am_cv_func_iconv=yes else @@ -2360,7 +2394,7 @@ rm -f conftest* am_save_LIBS="$LIBS" LIBS="$LIBS -liconv" cat > conftest.$ac_ext < #include @@ -2370,7 +2404,7 @@ iconv_t cd = iconv_open("",""); iconv_close(cd); ; return 0; } EOF -if { (eval echo configure:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* am_cv_lib_iconv=yes am_cv_func_iconv=yes @@ -2391,13 +2425,13 @@ echo "$ac_t""$am_cv_func_iconv" 1>&6 EOF echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6 -echo "configure:2395: checking for iconv declaration" >&5 +echo "configure:2429: checking for iconv declaration" >&5 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -2416,7 +2450,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:2420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* am_cv_proto_iconv_arg1="" else @@ -2445,19 +2479,19 @@ EOF echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6 -echo "configure:2449: checking for nl_langinfo and CODESET" >&5 +echo "configure:2483: checking for nl_langinfo and CODESET" >&5 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { char* cs = nl_langinfo(CODESET); ; return 0; } EOF -if { (eval echo configure:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* am_cv_langinfo_codeset=yes else @@ -2480,19 +2514,19 @@ EOF if test $ac_cv_header_locale_h = yes; then echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 -echo "configure:2484: checking for LC_MESSAGES" >&5 +echo "configure:2518: checking for LC_MESSAGES" >&5 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { return LC_MESSAGES ; return 0; } EOF -if { (eval echo configure:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* am_cv_val_LC_MESSAGES=yes else @@ -2513,7 +2547,7 @@ EOF fi fi echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 -echo "configure:2517: checking whether NLS is requested" >&5 +echo "configure:2551: checking whether NLS is requested" >&5 # Check whether --enable-nls or --disable-nls was given. if test "${enable_nls+set}" = set; then enableval="$enable_nls" @@ -2535,7 +2569,7 @@ fi EOF echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 -echo "configure:2539: checking whether included gettext is requested" >&5 +echo "configure:2573: checking whether included gettext is requested" >&5 # Check whether --with-included-gettext or --without-included-gettext was given. if test "${with_included_gettext+set}" = set; then withval="$with_included_gettext" @@ -2555,17 +2589,17 @@ fi ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 -echo "configure:2559: checking for libintl.h" >&5 +echo "configure:2593: checking for libintl.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:2569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2603: \"$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* @@ -2582,12 +2616,12 @@ fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6 -echo "configure:2586: checking for GNU gettext in libc" >&5 +echo "configure:2620: checking for GNU gettext in libc" >&5 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < extern int _nl_msg_cat_cntr; @@ -2596,7 +2630,7 @@ bindtextdomain ("", ""); return (int) gettext ("") + _nl_msg_cat_cntr ; return 0; } EOF -if { (eval echo configure:2600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* gt_cv_func_gnugettext1_libc=yes else @@ -2612,14 +2646,14 @@ echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6 -echo "configure:2616: checking for GNU gettext in libintl" >&5 +echo "configure:2650: checking for GNU gettext in libintl" >&5 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else gt_save_LIBS="$LIBS" LIBS="$LIBS -lintl $LIBICONV" cat > conftest.$ac_ext < extern int _nl_msg_cat_cntr; @@ -2628,7 +2662,7 @@ bindtextdomain ("", ""); return (int) gettext ("") + _nl_msg_cat_cntr ; return 0; } EOF -if { (eval echo configure:2632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* gt_cv_func_gnugettext1_libintl=yes else @@ -2661,12 +2695,12 @@ EOF for ac_func in dcgettext do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2665: checking for $ac_func" >&5 +echo "configure:2699: 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:2727: \"$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 @@ -2718,7 +2752,7 @@ done # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2722: checking for $ac_word" >&5 +echo "configure:2756: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2752,7 +2786,7 @@ fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2756: checking for $ac_word" >&5 +echo "configure:2790: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2789,7 +2823,7 @@ fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2793: checking for $ac_word" >&5 +echo "configure:2827: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2839,7 +2873,7 @@ fi # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2843: checking for $ac_word" >&5 +echo "configure:2877: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2873,7 +2907,7 @@ fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2877: checking for $ac_word" >&5 +echo "configure:2911: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2909,7 +2943,7 @@ fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2913: checking for $ac_word" >&5 +echo "configure:2947: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2980,7 +3014,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2984: checking for $ac_word" >&5 +echo "configure:3018: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3013,7 +3047,7 @@ done ac_verc_fail=yes else echo $ac_n "checking version of bison""... $ac_c" 1>&6 -echo "configure:3017: checking version of bison" >&5 +echo "configure:3051: checking version of bison" >&5 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` case $ac_prog_version in '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; @@ -3060,7 +3094,7 @@ echo "configure:3017: checking version of bison" >&5 LINGUAS= else echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 -echo "configure:3064: checking for catalogs to be installed" >&5 +echo "configure:3098: checking for catalogs to be installed" >&5 NEW_LINGUAS= for presentlang in $ALL_LINGUAS; do useit=no @@ -3112,7 +3146,7 @@ echo "configure:3064: checking for catalogs to be installed" >&5 # 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:3116: checking for a BSD compatible install" >&5 +echo "configure:3150: 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 @@ -3165,9 +3199,125 @@ 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:3204: 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:3258: \"$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 + +echo $ac_n "checking for inline""... $ac_c" 1>&6 +echo "configure:3279: checking for inline" >&5 +if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_c_inline=$ac_kw; break +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* +done + +fi + +echo "$ac_t""$ac_cv_c_inline" 1>&6 +case "$ac_cv_c_inline" in + inline | yes) ;; + no) cat >> confdefs.h <<\EOF +#define inline +EOF + ;; + *) cat >> confdefs.h <&6 -echo "configure:3197: checking for $ac_word" >&5 +echo "configure:3348: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3225,7 +3376,7 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "windres", so it can be a program name with args. set dummy windres; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3229: checking for $ac_word" >&5 +echo "configure:3380: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3257,7 +3408,7 @@ else fi fi - save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long" + save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"; CFLAGS="${save_CFLAGS}" vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix" vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32" ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32" @@ -3270,12 +3421,15 @@ fi x11_LDFLAGS="${x11_LDFLAGS} -lsocket" xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket" ;; + xsolaris*) + SYS=solaris + ;; xbeos) SYS=beos - save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual" + save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"; CFLAGS="${save_CFLAGS}" vlc_LDFLAGS="${vlc_LDFLAGS} -lbe" plugins_LDFLAGS="${plugins_LDFLAGS} -nostart" - beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker" + beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker -lstdc++.r4" ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind" ;; x*) @@ -3283,24 +3437,25 @@ fi ;; esac -if test x"${SYS}" = xmingw32 +if test "x${SYS}" = "xmingw32" then plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct" else plugins_CFLAGS="${plugins_CFLAGS} -fPIC" + plugins_LDFLAGS="${plugins_LDFLAGS} -fPIC" fi -save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`" +save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"; CFLAGS="${save_CFLAGS}" -for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 +for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll strndup do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3299: checking for $ac_func" >&5 +echo "configure:3454: 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:3482: \"$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 @@ -3349,12 +3504,12 @@ done echo $ac_n "checking for connect""... $ac_c" 1>&6 -echo "configure:3353: checking for connect" >&5 +echo "configure:3508: 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:3536: \"$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 @@ -3396,7 +3551,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 -echo "configure:3400: checking for connect in -lsocket" >&5 +echo "configure:3555: 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 @@ -3404,7 +3559,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:3574: \"$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 @@ -3440,12 +3595,12 @@ fi fi echo $ac_n "checking for send""... $ac_c" 1>&6 -echo "configure:3444: checking for send" >&5 +echo "configure:3599: checking for send" >&5 if eval "test \"`echo '$''{'ac_cv_func_send'+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:3627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_send=yes" else @@ -3487,7 +3642,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for send in -lsocket""... $ac_c" 1>&6 -echo "configure:3491: checking for send in -lsocket" >&5 +echo "configure:3646: checking for send in -lsocket" >&5 ac_lib_var=`echo socket'_'send | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3495,7 +3650,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:3665: \"$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 @@ -3530,12 +3685,12 @@ fi fi echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 -echo "configure:3534: checking for gethostbyname" >&5 +echo "configure:3689: 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:3717: \"$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 @@ -3577,7 +3732,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 -echo "configure:3581: checking for gethostbyname in -lnsl" >&5 +echo "configure:3736: 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 @@ -3585,7 +3740,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:3755: \"$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 @@ -3612,62 +3767,11 @@ fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl" -else - echo "$ac_t""no" 1>&6 -fi - - -fi - -echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 -echo "configure:3624: 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 < -/* 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 gethostbyname(); - -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_gethostbyname) || defined (__stub___gethostbyname) -choke me -#else -gethostbyname(); -#endif - -; return 0; } -EOF -if { (eval echo configure:3652: \"$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 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_gethostbyname=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then - echo "$ac_t""yes" 1>&6 - : else echo "$ac_t""no" 1>&6 - echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6 -echo "configure:3671: checking for gethostbyname in -lbind" >&5 + echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6 +echo "configure:3775: checking for gethostbyname in -lbind" >&5 ac_lib_var=`echo bind'_'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 @@ -3675,7 +3779,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lbind $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3794: \"$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 @@ -3706,63 +3810,61 @@ else echo "$ac_t""no" 1>&6 fi +fi + fi -for ac_func in nanosleep -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3716: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then +have_nanosleep=0 +echo $ac_n "checking for nanosleep""... $ac_c" 1>&6 +echo "configure:3821: 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 < /* 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(); +char nanosleep(); 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) +#if defined (__stub_nanosleep) || defined (__stub___nanosleep) choke me #else -$ac_func(); +nanosleep(); #endif ; return 0; } EOF -if { (eval echo configure:3744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3849: \"$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" + eval "ac_cv_func_nanosleep=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - eval "ac_cv_func_$ac_func=no" + eval "ac_cv_func_nanosleep=no" fi rm -f conftest* fi -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then +if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6 -echo "configure:3766: checking for nanosleep in -lrt" >&5 + + echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6 +echo "configure:3868: 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 @@ -3770,7 +3872,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:3887: \"$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 @@ -3796,11 +3898,11 @@ LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - vlc_LDFLAGS="${vlc_LDFLAGS} -lrt" + vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"; have_nanosleep=1 else echo "$ac_t""no" 1>&6 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 -echo "configure:3804: checking for nanosleep in -lposix4" >&5 +echo "configure:3906: 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 @@ -3808,7 +3910,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:3925: \"$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 @@ -3834,7 +3936,7 @@ LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4" + vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"; have_nanosleep=1 else echo "$ac_t""no" 1>&6 fi @@ -3844,15 +3946,62 @@ fi fi -done + +if test x$have_nanosleep = x1; then + cat >> confdefs.h <<\EOF +#define HAVE_NANOSLEEP 1 +EOF + +fi +# HP/UX port +echo $ac_n "checking for sem_init in -lrt""... $ac_c" 1>&6 +echo "configure:3959: checking for sem_init in -lrt" >&5 +ac_lib_var=`echo rt'_'sem_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="-lrt $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 + vlc_LDFLAGS="${vlc_LDFLAGS} -lrt" +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for inet_aton""... $ac_c" 1>&6 -echo "configure:3851: checking for inet_aton" >&5 +echo "configure:4000: 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:4028: \"$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 @@ -3894,7 +4043,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6 -echo "configure:3898: checking for inet_aton in -lresolv" >&5 +echo "configure:4047: 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 @@ -3902,7 +4051,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:4066: \"$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 @@ -3937,12 +4086,12 @@ fi fi echo $ac_n "checking for textdomain""... $ac_c" 1>&6 -echo "configure:3941: checking for textdomain" >&5 +echo "configure:4090: checking for textdomain" >&5 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+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:4118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_textdomain=yes" else @@ -3984,7 +4133,7 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6 -echo "configure:3988: checking for textdomain in -lintl" >&5 +echo "configure:4137: checking for textdomain in -lintl" >&5 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3992,7 +4141,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lintl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4156: \"$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 @@ -4019,6 +4168,8 @@ fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 vlc_LDFLAGS="${vlc_LDFLAGS} -lintl" + plugins_LDFLAGS="${plugins_LDFLAGS} -lintl" + else echo "$ac_t""no" 1>&6 fi @@ -4029,12 +4180,12 @@ fi NEED_GETOPT=0 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6 -echo "configure:4033: checking for getopt_long" >&5 +echo "configure:4184: 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:4212: \"$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 @@ -4079,7 +4230,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:4083: checking for getopt_long in -lgnugetopt" >&5 +echo "configure:4234: 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 @@ -4087,7 +4238,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:4253: \"$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 @@ -4126,12 +4277,12 @@ fi echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 -echo "configure:4130: checking return type of signal handlers" >&5 +echo "configure:4281: 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 @@ -4148,7 +4299,7 @@ int main() { int i; ; return 0; } EOF -if { (eval echo configure:4152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_signal=void else @@ -4167,7 +4318,7 @@ EOF echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 -echo "configure:4171: checking for dlopen in -ldl" >&5 +echo "configure:4322: 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 @@ -4175,7 +4326,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:4341: \"$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 @@ -4207,7 +4358,7 @@ else fi echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6 -echo "configure:4211: checking for cos in -lm" >&5 +echo "configure:4362: checking for cos in -lm" >&5 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4215,7 +4366,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:4381: \"$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 @@ -4248,7 +4399,7 @@ else fi echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6 -echo "configure:4252: checking for pow in -lm" >&5 +echo "configure:4403: 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 @@ -4256,7 +4407,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:4422: \"$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 @@ -4286,7 +4437,8 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then imdct_LDFLAGS="${imdct_LDFLAGS} -lm" imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm" imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm" - chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm" + i420_rgb_LDFLAGS="${i420_rgb_LDFLAGS} -lm" + faad_LDFLAGS="${faad_LDFLAGS} -lm" else echo "$ac_t""no" 1>&6 @@ -4294,28 +4446,24 @@ fi 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:4300: checking for pthread_attr_init in -lpthread" >&5 -ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'` +if test "x${THREAD_LIB}" = "xerror"; then + echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6 +echo "configure:4452: checking for main in -lpthread" >&5 +ac_lib_var=`echo pthread'_'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 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:4467: \"$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 @@ -4336,28 +4484,24 @@ else fi fi -if test "x${THREAD_LIB}" = xerror; then - echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6 -echo "configure:4342: checking for pthread_attr_init in -lpthreads" >&5 -ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'` +if test "x${THREAD_LIB}" = "xerror"; then + echo $ac_n "checking for main in -lpthreads""... $ac_c" 1>&6 +echo "configure:4490: checking for main in -lpthreads" >&5 +ac_lib_var=`echo pthreads'_'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 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:4505: \"$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 @@ -4378,28 +4522,24 @@ else fi fi -if test "x${THREAD_LIB}" = xerror; then - echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6 -echo "configure:4384: checking for pthread_attr_init in -lc_r" >&5 -ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'` +if test "x${THREAD_LIB}" = "xerror"; then + echo $ac_n "checking for main in -lc_r""... $ac_c" 1>&6 +echo "configure:4528: checking for main in -lc_r" >&5 +ac_lib_var=`echo c_r'_'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 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:4543: \"$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 @@ -4420,49 +4560,49 @@ else fi fi -if test "x${THREAD_LIB}" = xerror; then - echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6 -echo "configure:4426: checking for pthread_attr_init" >&5 -if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then +if test "x${THREAD_LIB}" = "xerror"; then + echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6 +echo "configure:4566: checking for pthread_mutex_lock" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_lock'+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 pthread_attr_init(); +char pthread_mutex_lock(); 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_pthread_attr_init) || defined (__stub___pthread_attr_init) +#if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock) choke me #else -pthread_attr_init(); +pthread_mutex_lock(); #endif ; return 0; } EOF -if { (eval echo configure:4454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4594: \"$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" + eval "ac_cv_func_pthread_mutex_lock=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - eval "ac_cv_func_pthread_attr_init=no" + eval "ac_cv_func_pthread_mutex_lock=no" fi rm -f conftest* fi -if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then +if eval "test \"`echo '$ac_cv_func_'pthread_mutex_lock`\" = yes"; then echo "$ac_t""yes" 1>&6 : else @@ -4473,7 +4613,7 @@ fi fi echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6 -echo "configure:4477: checking for cthread_fork in -lthreads" >&5 +echo "configure:4617: 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 @@ -4481,7 +4621,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lthreads $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4636: \"$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 @@ -4514,7 +4654,7 @@ fi cat > conftest.$ac_ext < EOF @@ -4530,7 +4670,7 @@ fi rm -f conftest* cat > conftest.$ac_ext < EOF @@ -4546,7 +4686,7 @@ fi rm -f conftest* cat > conftest.$ac_ext < EOF @@ -4566,17 +4706,17 @@ for ac_hdr in stdint.h getopt.h strings.h inttypes.h sys/int_types.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:4570: checking for $ac_hdr" >&5 +echo "configure:4710: 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:4580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4720: \"$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* @@ -4606,17 +4746,17 @@ for ac_hdr in sys/sockio.h fcntl.h sys/types.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:4610: checking for $ac_hdr" >&5 +echo "configure:4750: 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:4620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4760: \"$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* @@ -4646,17 +4786,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:4650: checking for $ac_hdr" >&5 +echo "configure:4790: 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:4660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4800: \"$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* @@ -4686,17 +4826,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:4690: checking for $ac_hdr" >&5 +echo "configure:4830: 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:4700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4840: \"$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* @@ -4726,17 +4866,17 @@ for ac_hdr in machine/param.h sys/shm.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:4730: checking for $ac_hdr" >&5 +echo "configure:4870: 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:4740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4880: \"$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* @@ -4766,17 +4906,17 @@ for ac_hdr in linux/version.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:4770: checking for $ac_hdr" >&5 +echo "configure:4910: 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:4780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4920: \"$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* @@ -4804,12 +4944,12 @@ done echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 -echo "configure:4808: checking whether time.h and sys/time.h may both be included" >&5 +echo "configure:4948: 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 @@ -4818,7 +4958,7 @@ int main() { struct tm *tp; ; return 0; } EOF -if { (eval echo configure:4822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_time=yes else @@ -4840,7 +4980,7 @@ fi cat > conftest.$ac_ext < EOF @@ -4858,7 +4998,7 @@ rm -f conftest* cat > conftest.$ac_ext < EOF @@ -4879,17 +5019,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:4883: checking for $ac_hdr" >&5 +echo "configure:5023: 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:4893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5033: \"$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* @@ -4916,30 +5056,31 @@ fi done -if test x$SYS != xmingw32 +if test "x${x_includes}" = "xNONE"; then + x_includes="/usr/X11R6/include" +fi +if test "x${x_libraries}" = "xNONE"; then + x_libraries="/usr/X11R6/lib" +fi + +if test "x${SYS}" != "xmingw32" then - if test x$x_includes = xNONE; then - x_includes=/usr/X11R6/include - fi - if test x$x_libraries = xNONE; then - x_libraries=/usr/X11R6/lib - fi - CPPFLAGS="$save_CPPFLAGS -I$x_includes" + CPPFLAGS="${save_CPPFLAGS} -I${x_includes}" for ac_hdr in X11/extensions/dpms.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:4933: checking for $ac_hdr" >&5 +echo "configure:5074: 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:4943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5084: \"$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* @@ -4961,7 +5102,7 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then EOF cat > conftest.$ac_ext < EOF @@ -4983,24 +5124,24 @@ else fi done - CPPFLAGS="$save_CPPFLAGS" + CPPFLAGS="${save_CPPFLAGS}" fi echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6 -echo "configure:4991: checking for ntohl in sys/param.h" >&5 +echo "configure:5132: checking for ntohl in sys/param.h" >&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:5004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_ntohl_sys_param_h=yes else @@ -5013,7 +5154,7 @@ 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 +if test "x${ac_cv_c_ntohl_sys_param_h}" != "xno"; then cat >> confdefs.h <<\EOF #define NTOHL_IN_SYS_PARAM_H 1 EOF @@ -5021,20 +5162,20 @@ EOF fi echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6 -echo "configure:5025: checking if \$CC accepts -finline-limit" >&5 +echo "configure:5166: 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:5179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_inline_limit=yes else @@ -5047,25 +5188,25 @@ 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" +if test "x${ac_cv_c_inline_limit}" != "xno"; then + save_CFLAGS="${save_CFLAGS} -finline-limit-30000"; CFLAGS="${save_CFLAGS}" fi echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6 -echo "configure:5056: checking if \$CC accepts -Wall -Winline" >&5 +echo "configure:5197: checking if \$CC accepts -Wall -Winline" >&5 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else CFLAGS="-Wall -Winline ${save_CFLAGS}" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_Wall_Winline=yes else @@ -5078,24 +5219,24 @@ rm -f conftest* fi echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6 -if test x"$ac_cv_c_Wall_Winline" != x"no"; then - save_CFLAGS="-Wall -Winline ${save_CFLAGS}" +if test "x${ac_cv_c_Wall_Winline}" != "xno"; then + save_CFLAGS="-Wall -Winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}" else echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6 -echo "configure:5086: checking if \$CC accepts -wall -winline" >&5 +echo "configure:5227: checking if \$CC accepts -wall -winline" >&5 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else CFLAGS="-wall -winline ${save_CFLAGS}" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_wall_winline=yes else @@ -5108,26 +5249,26 @@ rm -f conftest* fi echo "$ac_t""$ac_cv_c_wall_winline" 1>&6 - if test x"$ac_cv_c_wall_winline" != x"no"; then - save_CFLAGS="-wall -winline ${save_CFLAGS}" + if test "x${ac_cv_c_wall_winline}" != "xno"; then + save_CFLAGS="-wall -winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}" fi fi echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6 -echo "configure:5118: checking if \$CC accepts -pipe" >&5 +echo "configure:5259: checking if \$CC accepts -pipe" >&5 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else CFLAGS="${save_CFLAGS} -pipe" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_pipe=yes else @@ -5140,25 +5281,25 @@ rm -f conftest* fi echo "$ac_t""$ac_cv_c_pipe" 1>&6 -if test x"$ac_cv_c_pipe" != x"no"; then - save_CFLAGS="${save_CFLAGS} -pipe" +if test "x${ac_cv_c_pipe}" != "xno"; then + save_CFLAGS="${save_CFLAGS} -pipe"; CFLAGS="${save_CFLAGS}" fi echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6 -echo "configure:5149: checking if \$CC accepts -O3" >&5 +echo "configure:5290: checking if \$CC accepts -O3" >&5 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else CFLAGS="${save_CFLAGS} -O3" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_o3=yes else @@ -5171,24 +5312,24 @@ rm -f conftest* fi echo "$ac_t""$ac_cv_c_o3" 1>&6 -if test x"$ac_cv_c_o3" != x"no"; then +if test "x${ac_cv_c_o3}" != "xno"; then CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3" else echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6 -echo "configure:5179: checking if \$CC accepts -O2" >&5 +echo "configure:5320: checking if \$CC accepts -O2" >&5 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else CFLAGS="${save_CFLAGS} -O2" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_o2=yes else @@ -5201,24 +5342,24 @@ rm -f conftest* fi echo "$ac_t""$ac_cv_c_o2" 1>&6 - if test x"$ac_cv_c_o2" != x"no"; then + if test "x${ac_cv_c_o2}" != "xno"; then CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2" else echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6 -echo "configure:5209: checking if \$CC accepts -O" >&5 +echo "configure:5350: checking if \$CC accepts -O" >&5 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else CFLAGS="${save_CFLAGS} -O" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_o=yes else @@ -5231,27 +5372,27 @@ rm -f conftest* fi echo "$ac_t""$ac_cv_c_o" 1>&6 - if test x"$ac_cv_c_o" != x"no"; then + if test "x${ac_cv_c_o}" != "xno"; then CFLAGS_OPTIM="${CFLAGS_OPTIM} -O" fi fi fi echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6 -echo "configure:5242: checking if \$CC accepts -ffast-math" >&5 +echo "configure:5383: checking if \$CC accepts -ffast-math" >&5 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else CFLAGS="${save_CFLAGS} -ffast-math" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_fast_math=yes else @@ -5264,25 +5405,25 @@ rm -f conftest* fi echo "$ac_t""$ac_cv_c_fast_math" 1>&6 -if test x"$ac_cv_c_fast_math" != x"no"; then +if test "x${ac_cv_c_fast_math}" != "xno"; then CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math" fi echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6 -echo "configure:5273: checking if \$CC accepts -funroll-loops" >&5 +echo "configure:5414: checking if \$CC accepts -funroll-loops" >&5 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else CFLAGS="${save_CFLAGS} -funroll-loops" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_unroll_loops=yes else @@ -5295,25 +5436,25 @@ rm -f conftest* fi echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6 -if test x"$ac_cv_c_unroll_loops" != x"no"; then +if test "x${ac_cv_c_unroll_loops}" != "xno"; then CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops" fi echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6 -echo "configure:5304: checking if \$CC accepts -fomit-frame-pointer" >&5 +echo "configure:5445: checking if \$CC accepts -fomit-frame-pointer" >&5 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else CFLAGS="${save_CFLAGS} -fomit-frame-pointer" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_omit_frame_pointer=yes else @@ -5326,25 +5467,27 @@ rm -f conftest* fi echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6 -if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then +if test "x${ac_cv_c_omit_frame_pointer}" != "xno"; then CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer" + # this plugin does not compile without -fomit-frame-pointer, damn gcc! + i420_yuy2_mmx_CFLAGS="${i420_yuy2_mmx_CFLAGS} -fomit-frame-pointer" fi echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6 -echo "configure:5335: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5 +echo "configure:5478: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&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 -lcc_dynamic" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_ld_darwin=yes else @@ -5357,25 +5500,25 @@ rm -f conftest* fi echo "$ac_t""$ac_cv_ld_darwin" 1>&6 -if test x"$ac_cv_ld_darwin" != x"no"; then +if test "x${ac_cv_ld_darwin}" != "xno"; then plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic" fi echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6 -echo "configure:5366: checking if \$CC accepts -shared" >&5 +echo "configure:5509: checking if \$CC accepts -shared" >&5 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else CFLAGS="${save_CFLAGS} -shared" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_ld_plugins=yes else @@ -5388,18 +5531,18 @@ rm -f conftest* fi echo "$ac_t""$ac_cv_ld_plugins" 1>&6 -if test x"$ac_cv_ld_plugins" != x"no"; then +if test "x${ac_cv_ld_plugins}" != "xno"; then plugins_LDFLAGS="${plugins_LDFLAGS} -shared" fi echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6 -echo "configure:5397: checking for variadic cpp macros" >&5 +echo "configure:5540: checking for variadic cpp macros" >&5 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else CFLAGS="${save_CFLAGS}" cat > conftest.$ac_ext < #define a(b,c...) printf(b,##c) @@ -5407,7 +5550,7 @@ int main() { a("foo");a("%s","bar");a("%s%s","baz","quux"); ; return 0; } EOF -if { (eval echo configure:5411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_cpp_variadic_macros=yes else @@ -5420,7 +5563,7 @@ rm -f conftest* fi echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6 -if test x"$ac_cv_cpp_variadic_macros" != x"no"; then +if test "x${ac_cv_cpp_variadic_macros}" != "xno"; then cat >> confdefs.h <<\EOF #define HAVE_VARIADIC_MACROS 1 EOF @@ -5428,7 +5571,7 @@ EOF fi echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6 -echo "configure:5432: checking __attribute__ ((aligned ())) support" >&5 +echo "configure:5575: 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 @@ -5436,33 +5579,34 @@ else CFLAGS="${save_CFLAGS} -Werror" for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try + ac_cv_c_attribute_aligned="${ac_cv_c_attr_align_try}" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* done + CFLAGS="${save_CFLAGS}" fi echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6 -if test x"$ac_cv_c_attribute_aligned" != x"0"; then +if test "x${ac_cv_c_attribute_aligned}" != "x0"; then cat >> confdefs.h <&6 -echo "configure:5485: checking if \$CC groks MMX inline assembly" >&5 +echo "configure:5647: 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 CFLAGS="${save_CFLAGS}" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_mmx_inline=yes else @@ -5507,25 +5669,25 @@ rm -f conftest* fi echo "$ac_t""$ac_cv_mmx_inline" 1>&6 -if test x"$ac_cv_mmx_inline" != x"no"; then +if test "x${ac_cv_mmx_inline}" != "xno"; 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:5516: checking if \$CC groks MMX EXT inline assembly" >&5 +echo "configure:5678: 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 CFLAGS="${save_CFLAGS}" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_mmxext_inline=yes else @@ -5538,25 +5700,25 @@ rm -f conftest* fi echo "$ac_t""$ac_cv_mmxext_inline" 1>&6 -if test x"$ac_cv_mmxext_inline" != x"no"; then +if test "x${ac_cv_mmxext_inline}" != "xno"; 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:5547: checking if \$CC groks 3D Now! inline assembly" >&5 +echo "configure:5709: 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 CFLAGS="${save_CFLAGS}" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_3dnow_inline=yes else @@ -5569,7 +5731,7 @@ rm -f conftest* fi echo "$ac_t""$ac_cv_3dnow_inline" 1>&6 -if test x"$ac_cv_3dnow_inline" != x"no"; then +if test "x${ac_cv_3dnow_inline}" != "xno"; then cat >> confdefs.h <<\EOF #define CAN_COMPILE_3DNOW 1 EOF @@ -5578,20 +5740,20 @@ EOF fi echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6 -echo "configure:5582: checking if \$CC groks SSE inline assembly" >&5 +echo "configure:5744: 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 CFLAGS="${save_CFLAGS}" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_sse_inline=yes else @@ -5604,7 +5766,7 @@ rm -f conftest* fi echo "$ac_t""$ac_cv_sse_inline" 1>&6 -if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then +if test "x${ac_cv_sse_inline}" != "xno" -a "x${SYS}" != "xmingw32"; then cat >> confdefs.h <<\EOF #define CAN_COMPILE_SSE 1 EOF @@ -5614,38 +5776,38 @@ fi # don't try to grok AltiVec with native mingw32 it doesn't work right now # we should be able to remove this test with future versions of mingw32 -if test x$SYS != xmingw32; then +if test "x${SYS}" != "xmingw32"; then echo $ac_n "checking if \$CC groks AltiVec inline assembly""... $ac_c" 1>&6 -echo "configure:5620: checking if \$CC groks AltiVec inline assembly" >&5 +echo "configure:5782: 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 CFLAGS="${save_CFLAGS}" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_altivec_inline=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - CFLAGS="$save_CFLAGS -Wa,-m7400" + CFLAGS="${save_CFLAGS} -Wa,-m7400" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_altivec_inline="-Wa,-m7400" else @@ -5661,36 +5823,36 @@ rm -f conftest* fi echo "$ac_t""$ac_cv_altivec_inline" 1>&6 -if test x"$ac_cv_altivec_inline" != x"no"; then +if test "x${ac_cv_altivec_inline}" != "xno"; then cat >> confdefs.h <<\EOF #define CAN_COMPILE_ALTIVEC 1 EOF - if test x"$ac_cv_altivec_inline" != x"yes"; then - idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline" - motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline" - memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline" - vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline" + if test "x${ac_cv_altivec_inline}" != "xyes"; then + idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_altivec_inline}" + motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_altivec_inline}" + memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_altivec_inline}" + vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_altivec_inline}" fi ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}" fi echo $ac_n "checking if \$CC groks AltiVec C extensions""... $ac_c" 1>&6 -echo "configure:5680: checking if \$CC groks AltiVec C extensions" >&5 +echo "configure:5842: 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 - CFLAGS="$save_CFLAGS -faltivec" + CFLAGS="${save_CFLAGS} -faltivec" # Darwin test cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_altivec=-faltivec else @@ -5699,16 +5861,16 @@ else rm -rf conftest* # Linux/PPC test - CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec" + CFLAGS="${save_CFLAGS} ${idctaltivec_CFLAGS} -fvec" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_altivec="-fvec" else @@ -5721,37 +5883,37 @@ 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 +if test "x${ac_cv_c_altivec}" != "xno"; then cat >> confdefs.h <<\EOF #define CAN_COMPILE_C_ALTIVEC 1 EOF - idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec" - motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec" - memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec" - vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec" + idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_c_altivec}" + motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_c_altivec}" + memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_c_altivec}" + vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_c_altivec}" ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}" fi echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6 -echo "configure:5742: checking if linker needs -framework vecLib" >&5 +echo "configure:5904: 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 - LDFLAGS="$vlc_LDFLAGS -framework vecLib" + LDFLAGS="${vlc_LDFLAGS} -framework vecLib" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_ld_altivec=yes else @@ -5761,11 +5923,12 @@ else 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 +if test "x${ac_cv_ld_altivec}" != "xno"; then idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib" motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib" memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib" @@ -5793,16 +5956,16 @@ if test "${with_tuning+set}" = set; then : fi -if test "x$with_tuning" != "x"; then - TUNING="$with_tuning" +if test "x${with_tuning}" != "x"; then + TUNING="${with_tuning}" 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" + 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 + if test "x${target_cpu}" = "xpowerpc"; then TUNING="750"; fi fi fi -if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386 +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" PLUGINS="${PLUGINS} ${ACCEL_MODULES}" @@ -5811,7 +5974,7 @@ fi # Check whether --enable-optimizations or --disable-optimizations was given. if test "${enable_optimizations+set}" = set; then enableval="$enable_optimizations" - if test x$enable_optimizations = xno; then OPTIMS=0; fi + if test "x${enable_optimizations}" = "xno"; then OPTIMS=0; fi else OPTIMS=1 fi @@ -5820,10 +5983,10 @@ fi # Check whether --enable-altivec or --disable-altivec was given. if test "${enable_altivec+set}" = set; then enableval="$enable_altivec" - if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec"; + if test "x${enable_altivec}" = "xyes"; then ARCH="${ARCH} altivec"; BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi else - if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec"; + if test "x${target_cpu}" = "xpowerpc"; then ARCH="${ARCH} altivec"; BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi fi @@ -5832,7 +5995,7 @@ DEBUG=0 # Check whether --enable-debug or --disable-debug was given. if test "${enable_debug+set}" = set; then enableval="$enable_debug" - if test x$enable_debug = xyes; then DEBUG=1; fi + if test "x${enable_debug}" = "xyes"; then DEBUG=1; fi fi @@ -5840,7 +6003,7 @@ RELEASE=0 # Check whether --enable-release or --disable-release was given. if test "${enable_release+set}" = set; then enableval="$enable_release" - if test x$enable_release = xyes; then RELEASE=1; fi + if test "x${enable_release}" = "xyes"; then RELEASE=1; fi else VERSION="${VERSION}_`date +%Y-%m-%d`" fi @@ -5860,7 +6023,7 @@ if test "${enable_dvd+set}" = set; then : fi -if test "x$enable_dvd" != "xno" +if test "x${enable_dvd}" != "xno" then # Check whether --with-dvdcss or --without-dvdcss was given. if test "${with_dvdcss+set}" = set; then @@ -5874,25 +6037,25 @@ if test "${with_dvdcss_tree+set}" = set; then : fi - case "x$with_dvdcss" in + case "x${with_dvdcss}" in x|xyes) - if test "x$with_dvdcss_tree" = x + if test "x${with_dvdcss_tree}" = x then for ac_hdr in dvdcss/dvdcss.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:5886: checking for $ac_hdr" >&5 +echo "configure:6049: 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:5896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:6059: \"$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* @@ -5912,7 +6075,7 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then cat >> confdefs.h <&6 @@ -5923,9 +6086,9 @@ done else echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6 -echo "configure:5927: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5 +echo "configure:6090: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5 real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`" - if test "x$real_dvdcss_tree" = x + if test "x${real_dvdcss_tree}" = "x" then echo "$ac_t""no" 1>&6 { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; } @@ -5933,7 +6096,7 @@ echo "configure:5927: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5 if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a" then echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6 - BUILTINS="${BUILTINS} dvd" + BUILTINS="${BUILTINS} access/dvd/dvd" dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a" dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src" else @@ -5943,17 +6106,17 @@ echo "configure:5927: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5 fi ;; xno) - PLUGINS="${PLUGINS} dvd" + PLUGINS="${PLUGINS} access/dvd/dvd" dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA" dvd_LDFLAGS="${dvd_LDFLAGS} -ldl" ;; *) echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6 -echo "configure:5953: checking for dvdcss headers in ${with_dvdcss}" >&5 +echo "configure:6116: checking for dvdcss headers in ${with_dvdcss}" >&5 if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h then echo "$ac_t""yes" 1>&6 - PLUGINS="${PLUGINS} dvd" + PLUGINS="${PLUGINS} access/dvd/dvd" dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss" dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include" else @@ -5970,7 +6133,7 @@ if test "${enable_dvdread+set}" = set; then : fi -if test "x$enable_dvdread" != "xno" +if test "x${enable_dvdread}" != "xno" then # Check whether --with-dvdread or --without-dvdread was given. if test "${with_dvdread+set}" = set; then @@ -5978,7 +6141,7 @@ if test "${with_dvdread+set}" = set; then : fi - if test "x$with_dvdread" = x + if test "x${with_dvdread}" = "x" then test_LDFLAGS="" test_CFLAGS="" @@ -5986,22 +6149,22 @@ fi test_LDFLAGS="-L${with_dvdread}/lib" test_CFLAGS="-I${with_dvdread}/include" fi - CPPFLAGS="$save_CPPFLAGS $test_CFLAGS" + CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}" for ac_hdr in dvdread/dvd_reader.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:5995: checking for $ac_hdr" >&5 +echo "configure:6158: 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:6005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:6168: \"$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* @@ -6022,19 +6185,18 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then #define $ac_tr_hdr 1 EOF - CFLAGS="${save_CFLAGS}" cat > conftest.$ac_ext < int main() { -void foo() { int i=DVD_VIDEO_LB_LEN; } +int foo() { return DVD_VIDEO_LB_LEN; } ; return 0; } EOF -if { (eval echo configure:6035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - PLUGINS="${PLUGINS} dvdread" + PLUGINS="${PLUGINS} access/dvdread/dvdread" dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread" dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}" @@ -6043,7 +6205,7 @@ else cat conftest.$ac_ext >&5 rm -rf conftest* - if test "x$enable_dvdread" != x + if test "x${enable_dvdread}" != "x" then { echo "configure: error: Cannot find DVD_VIDEO_LB_LEN in dvdread/dvd_reader.h, please install libdvdread version 0.9.2 or later" 1>&2; exit 1; } fi @@ -6053,9 +6215,9 @@ rm -f conftest* else echo "$ac_t""no" 1>&6 -if test "x$enable_dvdread" != x +if test "x${enable_dvdread}" != "x" then - if test "x$with_dvdread" != x + if test "x${with_dvdread}" != "x" then { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; } else @@ -6069,42 +6231,44 @@ done CPPFLAGS="$save_CPPFLAGS" fi -# Check whether --enable-dvbpsi or --disable-dvbpsi was given. -if test "${enable_dvbpsi+set}" = set; then - enableval="$enable_dvbpsi" +# Check whether --enable-dvdplay or --disable-dvdplay was given. +if test "${enable_dvdplay+set}" = set; then + enableval="$enable_dvdplay" : fi -if test "x$enable_dvbpsi" != "xno" +if test "x$enable_dvdplay" != "xno" then - # Check whether --with-dvbpsi or --without-dvbpsi was given. -if test "${with_dvbpsi+set}" = set; then - withval="$with_dvbpsi" + # Check whether --with-dvdplay or --without-dvdplay was given. +if test "${with_dvdplay+set}" = set; then + withval="$with_dvdplay" : fi - if test "x$with_dvbpsi" = x + if test "x$with_dvdplay" = x then test_LDFLAGS="" test_CFLAGS="" else - test_LDFLAGS="-L${with_dvbpsi}/lib" - test_CFLAGS="-I${with_dvbpsi}/include" + test_LDFLAGS="-L${with_dvdplay}/lib" + test_CFLAGS="-I${with_dvdplay}/include" fi CPPFLAGS="$save_CPPFLAGS $test_CFLAGS" - ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6 -echo "configure:6098: checking for dvbpsi/dr.h" >&5 + for ac_hdr in dvdplay/dvdplay.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:6262: 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 < +#include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:6108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:6272: \"$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* @@ -6120,24 +6284,234 @@ rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 - - PLUGINS="${PLUGINS} mpeg_ts_dvbpsi" - mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi" - mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}" + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +if test "x$enable_dvdplay" != x + then + if test "x$with_dvdplay" != x + then + { echo "configure: error: Cannot find dvdplay/dvdplay.h in ${with_dvdplay}/include" 1>&2; exit 1; } + else + { echo "configure: error: Cannot find dvdplay/dvdplay.h" 1>&2; exit 1; } + fi + fi + +fi +done + + CPPFLAGS="${save_CPPFLAGS}" +fi + + +# Check whether --enable-dvbpsi or --disable-dvbpsi was given. +if test "${enable_dvbpsi+set}" = set; then + enableval="$enable_dvbpsi" + : +fi + +if test "x${enable_dvbpsi}" != "xno" +then + # Check whether --with-dvbpsi or --without-dvbpsi was given. +if test "${with_dvbpsi+set}" = set; then + withval="$with_dvbpsi" + : +fi + + # Check whether --with-dvbpsi or --without-dvbpsi was given. +if test "${with_dvbpsi+set}" = set; then + withval="$with_dvbpsi" + : +fi + + case "x${with_dvbpsi}" in + x|xyes) + if test "x${with_dvbpsi_tree}" = "x" + then + for ac_hdr in dvbpsi/dr.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:6344: 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:6354: \"$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 - if test "x$enable_dvbpsi" != x + else + echo $ac_n "checking for libdvbpsi.a in ${with_dvbpsi_tree}""... $ac_c" 1>&6 +echo "configure:6383: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5 + real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`" + if test "x${real_dvbpsi_tree}" = "x" + then + echo "$ac_t""no" 1>&6 + { echo "configure: error: cannot cd to ${with_dvbpsi_tree}" 1>&2; exit 1; } + fi + if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" + then + echo "$ac_t""${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" 1>&6 + BUILTINS="${BUILTINS} demux/mpeg/ts_dvbpsi" + ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" + ts_dvbpsi_CFLAGS="${ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src" + else + echo "$ac_t""no" 1>&6 + { echo "configure: error: cannot find ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a, make sure you compiled libdvbpsi in ${with_dvbpsi_tree}" 1>&2; exit 1; } + fi + fi + ;; + xno) + ;; + *) + echo $ac_n "checking for dvbpsi headers in ${with_dvbpsi}""... $ac_c" 1>&6 +echo "configure:6406: checking for dvbpsi headers in ${with_dvbpsi}" >&5 + if test "x${with_dvbpsi}" = "x" then - { echo "configure: error: Could not find libdvbpsi on your system: you may get it from www.videolan.org, you'll need at least version 0.1.1" 1>&2; exit 1; } + test_LDFLAGS="" + test_CFLAGS="" + else + test_LDFLAGS="-L${with_dvbpsi}/lib" + test_CFLAGS="-I${with_dvbpsi}/include" fi + CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}" + ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6 +echo "configure:6418: checking for dvbpsi/dr.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:6428: \"$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 + PLUGINS="${PLUGINS} demux/mpeg/ts_dvbpsi" + ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi" + ts_dvbpsi_CFLAGS="${ts_dvbpsi_CFLAGS} ${test_CFLAGS}" + +else + echo "$ac_t""no" 1>&6 + + if test "x${enable_dvbpsi}" != "x" + then + { echo "configure: error: Could not find libdvbpsi on your system: you may get it from www.videolan.org, you'll need at least version 0.1.1" 1>&2; exit 1; } + fi + fi - CPPFLAGS="$save_CPPFLAGS" + CPPFLAGS="${save_CPPFLAGS}" + ;; + esac +fi + +# Check whether --enable-v4l or --disable-v4l was given. +if test "${enable_v4l+set}" = set; then + enableval="$enable_v4l" + : +fi + +if test "x${enable_v4l}" = "xyes" +then + for ac_hdr in libv4l/v4l.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:6476: 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:6486: \"$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-vcd or --disable-vcd was given. if test "${enable_vcd+set}" = set; then enableval="$enable_vcd" @@ -6145,10 +6519,10 @@ if test "${enable_vcd+set}" = set; then fi -if test x$enable_vcd != xno +if test "x${enable_vcd}" != "xno" then cat > conftest.$ac_ext < EOF @@ -6156,14 +6530,14 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "cdrom_msf0" >/dev/null 2>&1; then rm -rf conftest* - PLUGINS="${PLUGINS} vcd" + PLUGINS="${PLUGINS} access/vcd/vcd" fi rm -f conftest* cat > conftest.$ac_ext < EOF @@ -6171,7 +6545,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "ioc_toc_header " >/dev/null 2>&1; then rm -rf conftest* - PLUGINS="${PLUGINS} vcd" + PLUGINS="${PLUGINS} access/vcd/vcd" cat >> confdefs.h <<\EOF #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1 EOF @@ -6183,7 +6557,7 @@ rm -f conftest* if test "x${SYS}" = "xbsdi" then - PLUGINS="${PLUGINS} vcd" + PLUGINS="${PLUGINS} access/vcd/vcd" fi if test "x${SYS}" = "xdarwin" @@ -6196,23 +6570,23 @@ fi # Check whether --enable-satellite or --disable-satellite was given. if test "${enable_satellite+set}" = set; then enableval="$enable_satellite" - if test x$enable_satellite = xyes + if test "x${enable_satellite}" = "xyes" then - PLUGINS="${PLUGINS} satellite" + PLUGINS="${PLUGINS} access/satellite/satellite" fi fi -if test x$SYS != xnto && test "x$SYS" != "xmingw32" +if test "x${SYS}" != "xnto" && test "x${SYS}" != "xmingw32" then - CFLAGS="$save_CFLAGS" + have_ipv6=0 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6 -echo "configure:6211: checking for inet_pton" >&5 +echo "configure:6585: checking for inet_pton" >&5 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+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:6613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_inet_pton=yes" else @@ -6249,18 +6623,81 @@ fi if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then echo "$ac_t""yes" 1>&6 - PLUGINS="${PLUGINS} ipv6" + have_ipv6=1 +else + echo "$ac_t""no" 1>&6 + + echo $ac_n "checking for inet_pton in -lresolv""... $ac_c" 1>&6 +echo "configure:6632: checking for inet_pton in -lresolv" >&5 +ac_lib_var=`echo resolv'_'inet_pton | 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="-lresolv $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 + have_ipv6=1 + ipv6_LDFLAGS="${ipv6_LDFLAGS} -lresolv" else echo "$ac_t""no" 1>&6 fi + +fi + + echo $ac_n "checking for sockaddr_in6 in netinet/in.h""... $ac_c" 1>&6 +echo "configure:6676: checking for sockaddr_in6 in netinet/in.h" >&5 + cat > conftest.$ac_ext < +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "sockaddr_in6" >/dev/null 2>&1; then + rm -rf conftest* + echo "$ac_t""yes" 1>&6 +else + rm -rf conftest* + echo "$ac_t""no" 1>&6; have_ipv6=0 +fi +rm -f conftest* + + if test x$have_ipv6 = x1; then + PLUGINS="${PLUGINS} misc/network/ipv6" + fi fi -if test "x$SYS" = "xmingw32" +if test "x${SYS}" = "xmingw32" then echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6 -echo "configure:6262: checking for getaddrinfo in ws2tcpip.h" >&5 +echo "configure:6699: checking for getaddrinfo in ws2tcpip.h" >&5 cat > conftest.$ac_ext < EOF @@ -6268,7 +6705,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "addrinfo" >/dev/null 2>&1; then rm -rf conftest* echo "$ac_t""yes" 1>&6 - PLUGINS="${PLUGINS} ipv6" + PLUGINS="${PLUGINS} misc/network/ipv6" else rm -rf conftest* echo "$ac_t""no" 1>&6 @@ -6283,9 +6720,20 @@ if test "${enable_avi+set}" = set; then : fi -if test x$enable_avi != xno +if test "x${enable_avi}" != "xno" +then + PLUGINS="${PLUGINS} demux/avi/avi" +fi + +# Check whether --enable-aac or --disable-aac was given. +if test "${enable_aac+set}" = set; then + enableval="$enable_aac" + : +fi + +if test "x${enable_aac}" != "xno" then - PLUGINS="${PLUGINS} avi" + PLUGINS="${PLUGINS} demux/aac/aac" fi @@ -6302,7 +6750,7 @@ if test "${enable_mad+set}" = set; then : fi -if test x$enable_mad = xyes +if test "x${enable_mad}" = "xyes" then # Check whether --with-mad or --without-mad was given. if test "${with_mad+set}" = set; then @@ -6310,10 +6758,10 @@ if test "${with_mad+set}" = set; then : fi - if test "x$with_mad" != "xno" -a "x$with_mad" != "x" + if test "x${with_mad}" != "xno" -a "x${with_mad}" != "x" then - mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include" - mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib" + mad_CFLAGS="${mad_CFLAGS} -I${with_mad}/include" + mad_LDFLAGS="${mad_LDFLAGS} -L${with_mad}/lib" fi # Check whether --with-mad-tree or --without-mad-tree was given. @@ -6322,25 +6770,24 @@ if test "${with_mad_tree+set}" = set; then : fi - if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x" + if test "x${with_mad_tree}" != "xno" -a "x${with_mad_tree}" != "x" then real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`" - if test "x$real_mad_tree" = x + if test "x${real_mad_tree}" = "x" then echo "$ac_t""no" 1>&6 { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; } fi echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6 -echo "configure:6335: checking for mad.h in ${real_mad_tree}/libmad" >&5 +echo "configure:6783: checking for mad.h in ${real_mad_tree}/libmad" >&5 if test -f ${real_mad_tree}/libmad/mad.h then echo "$ac_t""yes" 1>&6 mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad" mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs" - save_LDFLAGS=$LDFLAGS - LDFLAGS=$mad_LDFLAGS + LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}" echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6 -echo "configure:6344: checking for mad_bit_init in -lmad" >&5 +echo "configure:6791: checking for mad_bit_init in -lmad" >&5 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6348,7 +6795,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lmad $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6810: \"$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 @@ -6375,7 +6822,7 @@ fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - BUILTINS="${BUILTINS} mad" + BUILTINS="${BUILTINS} codec/mad/mad" mad_LDFLAGS="${mad_LDFLAGS} -lmad" else @@ -6384,29 +6831,29 @@ else fi - LDFLAGS=$save_LDFLAGS + LDFLAGS="${save_LDFLAGS}" else echo "$ac_t""no" 1>&6 { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; } fi else - CFLAGS="$vlc_CFLAGS $mad_CFLAGS" - LDFLAGS="$vlc_LDFLAGS $mad_LDFLAGS" + CFLAGS="${save_CFLAGS} ${mad_CFLAGS}" + LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}" for ac_hdr in mad.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:6400: checking for $ac_hdr" >&5 +echo "configure:6847: 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:6410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:6857: \"$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* @@ -6434,7 +6881,7 @@ fi done echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6 -echo "configure:6438: checking for mad_bit_init in -lmad" >&5 +echo "configure:6885: checking for mad_bit_init in -lmad" >&5 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6442,7 +6889,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lmad $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6904: \"$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 @@ -6469,48 +6916,101 @@ fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - PLUGINS="${PLUGINS} mad" + PLUGINS="${PLUGINS} codec/mad/mad" mad_LDFLAGS="${mad_LDFLAGS} -lmad" else echo "$ac_t""no" 1>&6 { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; } fi + CFLAGS="${save_CFLAGS}" + LDFLAGS="${save_LDFLAGS}" fi fi -# Check whether --enable-ffmpeg or --disable-ffmpeg was given. -if test "${enable_ffmpeg+set}" = set; then - enableval="$enable_ffmpeg" - : -fi - -if test "x$enable_ffmpeg" = "xyes" -then - # Check whether --with-ffmpeg or --without-ffmpeg was given. -if test "${with_ffmpeg+set}" = set; then - withval="$with_ffmpeg" - : -fi - - if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x" +for ac_hdr in id3tag.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:6936: 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:6946: \"$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 + + +# Check whether --enable-ffmpeg or --disable-ffmpeg was given. +if test "${enable_ffmpeg+set}" = set; then + enableval="$enable_ffmpeg" + : +fi + +if test "x${enable_ffmpeg}" = "xyes" +then + # Check whether --with-ffmpeg or --without-ffmpeg was given. +if test "${with_ffmpeg+set}" = set; then + withval="$with_ffmpeg" + : +fi + + if test "x${with_ffmpeg}" != "xno" -a "x${with_ffmpeg}" != "x" then - ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I$with_ffmpeg/include/libffmpeg" - ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L$with_ffmpeg/lib" + ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${with_ffmpeg}/include/libffmpeg" + ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L${with_ffmpeg}/lib" + fi + + PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_c" + if test "x${ac_cv_mmx_inline}" != "xno"; then + PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_mmx" + fi + + if test "x${ac_cv_mmxext_inline}" != "xno"; then + PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_mmxext" fi + # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given. if test "${with_ffmpeg_tree+set}" = set; then withval="$with_ffmpeg_tree" : fi - if test "x$with_ffmpeg_tree" != "x" + if test "x${with_ffmpeg_tree}" != "x" then echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6 -echo "configure:6512: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5 +echo "configure:7012: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5 real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`" - if test "x$real_ffmpeg_tree" = x + if test "x${real_ffmpeg_tree}" = x then echo "$ac_t""no" 1>&6 { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; } @@ -6518,20 +7018,18 @@ echo "configure:6512: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5 if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a" then echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6 - BUILTINS="${BUILTINS} ffmpeg" - ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm" + BUILTINS="${BUILTINS} codec/ffmpeg/ffmpeg" + ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a" ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec" else echo "$ac_t""no" 1>&6 { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; } fi else - save_CFLAGS=$CFLAGS - save_LDFLAGS=$LDFLAGS - CFLAGS="$CFLAGS $ffmpeg_CFLAGS" - LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS -lm" + CFLAGS="${save_CFLAGS} ${ffmpeg_CFLAGS}" + LDFLAGS="${save_LDFLAGS} ${ffmpeg_LDFLAGS}" echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6 -echo "configure:6535: checking for avcodec_init in -lavcodec" >&5 +echo "configure:7033: checking for avcodec_init in -lavcodec" >&5 ac_lib_var=`echo avcodec'_'avcodec_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 @@ -6539,7 +7037,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lavcodec $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7052: \"$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 @@ -6566,22 +7064,209 @@ fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - BUILTINS="${BUILTINS} ffmpeg" - ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm" + BUILTINS="${BUILTINS} codec/ffmpeg/ffmpeg" + ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec" else echo "$ac_t""no" 1>&6 { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; } fi - CFLAGS=$save_CFLAGS - LDFLAGS=$save_LDFLAGS + LDFLAGS="${save_LDFLAGS}" + CFLAGS="${save_CFLAGS}" fi fi +# Check whether --enable-faad or --disable-faad was given. +if test "${enable_faad+set}" = set; then + enableval="$enable_faad" + : +fi -if test x$SYS = xbeos +if test "x${enable_faad}" = "xyes" then - PLUGINS="${PLUGINS} beos" + # Check whether --with-faad or --without-faad was given. +if test "${with_faad+set}" = set; then + withval="$with_faad" + : +fi + + if test "x${with_faad}" != "xno" -a "x${with_faad}" != "x" + then + faad_CFLAGS="${faad_CFLAGS} -I${with_faad}/include" + faad_LDFLAGS="${faad_LDFLAGS} -L${with_faad}/lib" + fi + faad_LDFLAGS="${faad_LDFLAGS}" + + # Check whether --with-faad-tree or --without-faad-tree was given. +if test "${with_faad_tree+set}" = set; then + withval="$with_faad_tree" + : +fi + + if test "x${with_faad_tree}" != "x" + then + echo $ac_n "checking for libfaad.a in ${with_faad_tree}""... $ac_c" 1>&6 +echo "configure:7110: checking for libfaad.a in ${with_faad_tree}" >&5 + real_faad_tree="`cd ${with_faad_tree} 2>/dev/null && pwd`" + if test "x${real_faad_tree}" = x + then + echo "$ac_t""no" 1>&6 + { echo "configure: error: cannot cd to ${with_faad_tree}" 1>&2; exit 1; } + fi + if test -f "${real_faad_tree}/libfaad/.libs/libfaad.a" + then + echo "$ac_t""${real_faad_tree}/libfaad/.libs/libfaad.a" 1>&6 + BUILTINS="${BUILTINS} codec/faad/faad" + faad_LDFLAGS="${faad_LDFLAGS} ${real_faad_tree}/libfaad/.libs/libfaad.a" + faad_CFLAGS="${faad_CFLAGS} -I${real_faad_tree}/include" + else + echo "$ac_t""no" 1>&6 + { echo "configure: error: cannot find ${real_faad_tree}/libfaad/.libs/libfaad.a, make sure you compiled libfaad in ${with_faad_tree}" 1>&2; exit 1; } + fi + else + CFLAGS="${save_CFLAGS} ${faad_CFLAGS}" + LDFLAGS="${save_LDFLAGS} ${faad_LDFLAGS}" + for ac_hdr in faad.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:7134: 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:7144: \"$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: Cannot find development headers for libfaad..." 1>&2; exit 1; } +fi +done + + echo $ac_n "checking for faacDecOpen in -lfaad""... $ac_c" 1>&6 +echo "configure:7172: checking for faacDecOpen in -lfaad" >&5 +ac_lib_var=`echo faad'_'faacDecOpen | 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="-lfaad $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 + + PLUGINS="${PLUGINS} codec/faad/faad" + faad_LDFLAGS="${faad_LDFLAGS} -lfaad" +else + echo "$ac_t""no" 1>&6 + { echo "configure: error: Cannot find libfaad library..." 1>&2; exit 1; } +fi + + LDFLAGS="${save_LDFLAGS}" + CFLAGS="${save_CFLAGS}" + fi +fi + + + +# Check whether --enable-mp4 or --disable-mp4 was given. +if test "${enable_mp4+set}" = set; then + enableval="$enable_mp4" + : +fi + +if test "x${enable_mp4}" != "xno" +then + + PLUGINS="${PLUGINS} demux/mp4/mp4" + for ac_hdr in zlib.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:7235: 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:7245: \"$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-a52 or --disable-a52 was given. @@ -6590,33 +7275,38 @@ if test "${enable_a52+set}" = set; then : fi -if test "x$enable_a52" != "xno" +if test "x${enable_a52}" != "xno" then + # Check whether --with-a52 or --without-a52 was given. +if test "${with_a52+set}" = set; then + withval="$with_a52" + : +fi + # Check whether --with-a52-tree or --without-a52-tree was given. if test "${with_a52_tree+set}" = set; then withval="$with_a52_tree" : fi - if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x" + if test "x${with_a52_tree}" != "xno" -a "x${with_a52_tree}" != "x" then real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`" - if test "x$real_a52_tree" = x + if test "x${real_a52_tree}" = "x" then echo "$ac_t""no" 1>&6 { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; } fi echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6 -echo "configure:6611: checking for a52.h in ${real_a52_tree}/include" >&5 +echo "configure:7302: checking for a52.h in ${real_a52_tree}/include" >&5 if test -f ${real_a52_tree}/include/a52.h then echo "$ac_t""yes" 1>&6 a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}" a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs" - save_LDFLAGS=$LDFLAGS - LDFLAGS="$a52_LDFLAGS $LDFLAGS" + LDFLAGS="${save_LDFLAGS} ${a52_LDFLAGS}" echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6 -echo "configure:6620: checking for a52_free in -la52" >&5 +echo "configure:7310: checking for a52_free in -la52" >&5 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6624,7 +7314,7 @@ else ac_save_LIBS="$LIBS" LIBS="-la52 -lm $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7329: \"$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 @@ -6651,7 +7341,7 @@ fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - BUILTINS="${BUILTINS} a52" + BUILTINS="${BUILTINS} codec/a52" a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm" a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE" @@ -6667,26 +7357,39 @@ else fi - LDFLAGS=$save_LDFLAGS + LDFLAGS="${save_LDFLAGS}" else echo "$ac_t""no" 1>&6 { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; } fi - else for ac_hdr in a52dec/a52.h + else + if test "x${with_a52}" = "x" + then + test_LDFLAGS="" + test_CFLAGS="" + else + test_LDFLAGS="-L${with_a52}/lib" + test_CFLAGS="-I${with_a52}/include" + fi + save_CPPFLAGS="${CPPFLAGS}" + save_LDFLAGS="${LDFLAGS}" + CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}" + LDFLAGS="${save_LDFLAGS} ${test_LDFLAGS}" + for ac_hdr in a52dec/a52.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:6680: checking for $ac_hdr" >&5 +echo "configure:7383: 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:6690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:7393: \"$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* @@ -6708,7 +7411,7 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then EOF echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6 -echo "configure:6712: checking for a52_free in -la52" >&5 +echo "configure:7415: checking for a52_free in -la52" >&5 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -6716,7 +7419,7 @@ else ac_save_LIBS="$LIBS" LIBS="-la52 -lm $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7434: \"$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 @@ -6743,12 +7446,18 @@ fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - BUILTINS="${BUILTINS} a52" - a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm" - a52_CFLAGS="${a52_CFLAGS}" + BUILTINS="${BUILTINS} codec/a52" + a52_LDFLAGS="${a52_LDFLAGS} ${test_LDFLAGS} -la52 -lm" + a52_CFLAGS="${a52_CFLAGS} ${test_CFLAGS}" else echo "$ac_t""no" 1>&6 + + if test "x${enable_dvbpsi}" != "x" + then + { echo "configure: error: Could not find a52 on your system: you may get it from http://liba52.sf.net" 1>&2; exit 1; } + fi + fi @@ -6757,32 +7466,45 @@ else fi done + CPPFLAGS="${save_CPPFLAGS}" + LDFLAGS="${save_LDFLAGS}" fi fi +# Check whether --enable-cinepak or --disable-cinepak was given. +if test "${enable_cinepak+set}" = set; then + enableval="$enable_cinepak" + : +fi + +if test "x${enable_cinepak}" != "xno" +then + PLUGINS="${PLUGINS} codec/cinepak/cinepak" +fi + # Check whether --enable-vorbis or --disable-vorbis was given. if test "${enable_vorbis+set}" = set; then enableval="$enable_vorbis" : fi -if test "x$enable_vorbis" != "xno" +if test "x${enable_vorbis}" != "xno" then for ac_hdr in ogg/ogg.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:6776: checking for $ac_hdr" >&5 +echo "configure:7498: 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:6786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:7508: \"$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* @@ -6803,7 +7525,7 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then #define $ac_tr_hdr 1 EOF - #PLUGINS="${PLUGINS} vorbis" + #PLUGINS="${PLUGINS} demux/ogg/ogg codec/vorbis/vorbis" vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis" else @@ -6813,6 +7535,59 @@ done fi +# Check whether --enable-dv or --disable-dv was given. +if test "${enable_dv+set}" = set; then + enableval="$enable_dv" + : +fi + +if test "x${enable_dv}" = "xyes" +then + for ac_hdr in libdv/dv.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:7551: 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:7561: \"$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 --with- or --without- was given. if test "${with_+set}" = set; then @@ -6827,30 +7602,24 @@ if test "${enable_x11+set}" = set; then : fi -if test x$enable_x11 != xno && - (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then - if test x$x_includes = xNONE; then - x_includes=/usr/X11R6/include - fi - if test x$x_libraries = xNONE; then - x_libraries=/usr/X11R6/lib - fi - CPPFLAGS="$save_CPPFLAGS -I$x_includes" +if test "x${enable_x11}" != "xno" && + (test "x${SYS}" != "xmingw32" || test "x${enable_x11}" = "xyes"); then + CPPFLAGS="${save_CPPFLAGS} -I${x_includes}" for ac_hdr in X11/Xlib.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:6844: checking for $ac_hdr" >&5 +echo "configure:7613: 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:6854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:7623: \"$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* @@ -6871,16 +7640,16 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then #define $ac_tr_hdr 1 EOF - PLUGINS="${PLUGINS} x11" - x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext" - x11_CFLAGS="${x11_CFLAGS} -I$x_includes" + PLUGINS="${PLUGINS} video_output/x11/x11" + x11_LDFLAGS="${x11_LDFLAGS} -L${x_libraries} -lX11 -lXext" + x11_CFLAGS="${x11_CFLAGS} -I${x_includes}" else echo "$ac_t""no" 1>&6 fi done - CPPFLAGS="$save_CPPFLAGS" + CPPFLAGS="${save_CPPFLAGS}" fi # Check whether --enable-xvideo or --disable-xvideo was given. @@ -6889,30 +7658,24 @@ if test "${enable_xvideo+set}" = set; then : fi -if test x$enable_xvideo != xno && - (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then - if test x$x_includes = xNONE; then - x_includes=/usr/X11R6/include - fi - if test x$x_libraries = xNONE; then - x_libraries=/usr/X11R6/lib - fi - CPPFLAGS="$save_CPPFLAGS -I$x_includes" +if test "x${enable_xvideo}" != "xno" && + (test "x${SYS}" != "xmingw32" || test "x${enable_xvideo}" = "xyes"); then + CPPFLAGS="${save_CPPFLAGS} -I${x_includes}" for ac_hdr in X11/extensions/Xv.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:6906: checking for $ac_hdr" >&5 +echo "configure:7669: 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:6916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:7679: \"$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* @@ -6933,28 +7696,28 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then #define $ac_tr_hdr 1 EOF - CFLAGS="$save_CFLAGS -L$x_libraries -lX11 -lXext" - echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6 -echo "configure:6939: checking for XvSetPortAttribute in -lXv_pic" >&5 -ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'` + CFLAGS="${save_CFLAGS} -L${x_libraries} -lX11 -lXext" + echo $ac_n "checking for XvPutImage in -lXv_pic""... $ac_c" 1>&6 +echo "configure:7702: checking for XvPutImage in -lXv_pic" >&5 +ac_lib_var=`echo Xv_pic'_'XvPutImage | 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="-lXv_pic $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7721: \"$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 @@ -6970,19 +7733,63 @@ fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 # We have Xv_pic, that's good, we can build an xvideo.so plugin ! - PLUGINS="${PLUGINS} xvideo" - xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic" - xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes" + PLUGINS="${PLUGINS} video_output/x11/xvideo" + xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv_pic" + xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}" +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for XvPutImage in -lXv""... $ac_c" 1>&6 +echo "configure:7743: checking for XvPutImage in -lXv" >&5 +ac_lib_var=`echo Xv'_'XvPutImage | 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="-lXv $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 + # We don't have Xv_pic, but we have Xv, let's make xvideo.a as builtin + PLUGINS="${PLUGINS} video_output/x11/xvideo" + xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv" + xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}" else echo "$ac_t""no" 1>&6 -# We don't have Xv_pic, let's make xvideo.a as builtin - BUILTINS="${BUILTINS} xvideo" - xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv" - xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes" +# Otherwise... well, do nothing. + : + fi + +fi + + CFLAGS="${save_CFLAGS}" - CPPFLAGS="$save_CPPFLAGS" + CPPFLAGS="${save_CPPFLAGS}" else echo "$ac_t""no" 1>&6 fi @@ -6996,22 +7803,22 @@ if test "${enable_sdl+set}" = set; then : fi -if test "x$enable_sdl" != "xno" +if test "x${enable_sdl}" != "xno" then - SDL_PATH=$PATH + 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$with_sdl_config_path" != "xno" + if test "x${with_sdl_config_path}" != "xno" then - SDL_PATH="$with_sdl_config_path:$PATH" + SDL_PATH="${with_sdl_config_path}:${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:7015: checking for $ac_word" >&5 +echo "configure:7822: 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 @@ -7024,7 +7831,7 @@ else ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$SDL_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 @@ -7044,14 +7851,14 @@ else echo "$ac_t""no" 1>&6 fi - SDL_CONFIG=${SDL12_CONFIG} + SDL_CONFIG="${SDL12_CONFIG}" SDL_HEADER="SDL12/SDL.h" - if test x${SDL_CONFIG} = xno + 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:7055: checking for $ac_word" >&5 +echo "configure:7862: 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 @@ -7064,7 +7871,7 @@ else ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$SDL_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 @@ -7087,12 +7894,12 @@ fi SDL_CONFIG=${SDL11_CONFIG} SDL_HEADER="SDL11/SDL.h" fi - if test x${SDL_CONFIG} = xno + 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:7096: checking for $ac_word" >&5 +echo "configure:7903: 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 @@ -7105,7 +7912,7 @@ else ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$SDL_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 @@ -7127,27 +7934,27 @@ fi SDL_HEADER="SDL/SDL.h" fi - if test x${SDL_CONFIG} != xno + if test "x${SDL_CONFIG}" != "xno" then - PLUGINS="${PLUGINS} sdl" + PLUGINS="${PLUGINS} video_output/sdl audio_output/sdl" sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`" sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`" - CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS" + CPPFLAGS="${save_CPPFLAGS} ${sdl_CFLAGS}" 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:7141: checking for $ac_hdr" >&5 +echo "configure:7948: 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:7151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:7958: \"$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* @@ -7180,14 +7987,14 @@ Please install it and try again. Alternatively you can also configure with fi done - CPPFLAGS="$save_CPPFLAGS" - if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null + CPPFLAGS="${save_CPPFLAGS}" + if expr 1.1.5 \> `${SDL_CONFIG} --version` >/dev/null then { echo "configure: error: The development package for SDL is not installed. Please install it and try again. Alternatively you can also configure with --disable-sdl." 1>&2; exit 1; } fi - elif test "x$enable_sdl" = "xyes" + 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. @@ -7201,9 +8008,9 @@ if test "${enable_directx+set}" = set; then : fi -if test "x$enable_directx" != "xno" +if test "x${enable_directx}" != "xno" then - if test x$SYS = xmingw32 + if test "x${SYS}" = "xmingw32" then # Check whether --with-directx or --without-directx was given. if test "${with_directx+set}" = set; then @@ -7211,23 +8018,23 @@ if test "${with_directx+set}" = set; then : fi - if test "x$with_directx" = "x" + if test "x${with_directx}" = "x" then for ac_hdr in ddraw.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:7221: checking for $ac_hdr" >&5 +echo "configure:8028: 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:7231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8038: \"$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* @@ -7247,7 +8054,7 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then cat >> confdefs.h <&6 @@ -7256,11 +8063,11 @@ done else echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6 -echo "configure:7260: checking for directX headers in ${with_directx}" >&5 +echo "configure:8067: checking for directX headers in ${with_directx}" >&5 if test -f ${with_directx}/ddraw.h then - PLUGINS="${PLUGINS} directx" - directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32" + PLUGINS="${PLUGINS} video_output/directx/directx" + directx_LDFLAGS="${directx_LDFLAGS} -lgdi32" directx_CFLAGS="${directx_CFLAGS} -I${with_directx}" echo "$ac_t""yes" 1>&6 else @@ -7277,23 +8084,23 @@ if test "${enable_fb+set}" = set; then : fi - if test x$enable_fb != xno + if test "x${enable_fb}" != "xno" then for ac_hdr in linux/fb.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:7287: checking for $ac_hdr" >&5 +echo "configure:8094: 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:7297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8104: \"$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* @@ -7314,7 +8121,7 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then #define $ac_tr_hdr 1 EOF - PLUGINS="${PLUGINS} fb" + PLUGINS="${PLUGINS} video_output/fb" else echo "$ac_t""no" 1>&6 @@ -7326,9 +8133,9 @@ done # Check whether --enable-mga or --disable-mga was given. if test "${enable_mga+set}" = set; then enableval="$enable_mga" - if test x$enable_mga = xyes + if test "x${enable_mga}" = "xyes" then - PLUGINS="${PLUGINS} mga xmga" + PLUGINS="${PLUGINS} video_output/mga/mga video_output/mga/xmga" fi fi @@ -7339,17 +8146,17 @@ if test "${enable_ggi+set}" = set; then : fi -if test x$enable_ggi = xyes +if test "x${enable_ggi}" = "xyes" then - PLUGINS="${PLUGINS} ggi" + PLUGINS="${PLUGINS} video_output/ggi" ggi_LDFLAGS="${ggi_LDFLAGS} -lggi" # Check whether --with-ggi or --without-ggi was given. if test "${with_ggi+set}" = set; then withval="$with_ggi" - if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x" + if test "x${with_ggi}" != "xno" -a "x${with_ggi}" != "x" then - CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include" - ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib" + CFLAGS_GGI="${CFLAGS_GGI} -I${with_ggi}/include" + ggi_LDFLAGS="${ggi_LDFLAGS} -L${with_ggi}/lib" fi fi @@ -7361,18 +8168,18 @@ if test "${enable_glide+set}" = set; then : fi -if test x$enable_glide = xyes +if test "x${enable_glide}" = "xyes" then - PLUGINS="${PLUGINS} glide" + PLUGINS="${PLUGINS} video_output/glide" glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm" glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide" # Check whether --with-glide or --without-glide was given. if test "${with_glide+set}" = set; then withval="$with_glide" - if test "x$with_glide" != "xno" -a "x$with_glide" != "x" + if test "x${with_glide}" != "xno" -a "x${with_glide}" != "x" then - glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include" - glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib" + glide_CFLAGS="${glide_CFLAGS} -I${with_glide}/include" + glide_LDFLAGS="${glide_LDFLAGS} -L${with_glide}/lib" fi fi @@ -7384,21 +8191,21 @@ if test "${enable_aa+set}" = set; then : fi -if test x$enable_aa = xyes +if test "x${enable_aa}" = "xyes" then ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for aalib.h""... $ac_c" 1>&6 -echo "configure:7392: checking for aalib.h" >&5 +echo "configure:8199: checking for aalib.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:7402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8209: \"$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* @@ -7420,9 +8227,9 @@ else have_aa="false" fi - if test x$have_aa = xtrue + if test "x${have_aa}" = "xtrue" then - PLUGINS="${PLUGINS} aa" + PLUGINS="${PLUGINS} video_output/aa" aa_LDFLAGS="${aa_LDFLAGS} -laa" fi fi @@ -7435,31 +8242,31 @@ if test "${with_+set}" = set; then fi -# Check whether --enable-dsp or --disable-dsp was given. -if test "${enable_dsp+set}" = set; then - enableval="$enable_dsp" +# Check whether --enable-oss or --disable-oss was given. +if test "${enable_oss+set}" = set; then + enableval="$enable_oss" : fi -if test x$enable_dsp != xno && - (test x$SYS != xmingw32 || test x$enable_dsp = xyes) +if test "x${enable_oss}" != "xno" && + (test "x${SYS}" != "xmingw32" || test "x${enable_oss}" = "xyes") then for ac_hdr in soundcard.h 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:7453: checking for $ac_hdr" >&5 +echo "configure:8260: 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:7463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8270: \"$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* @@ -7480,9 +8287,9 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then #define $ac_tr_hdr 1 EOF - PLUGINS="${PLUGINS} dsp" + PLUGINS="${PLUGINS} audio_output/oss" echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6 -echo "configure:7486: checking for main in -lossaudio" >&5 +echo "configure:8293: checking for main in -lossaudio" >&5 ac_lib_var=`echo ossaudio'_'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 @@ -7490,14 +8297,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lossaudio $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8308: \"$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 @@ -7512,7 +8319,7 @@ LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio" + oss_LDFLAGS="${oss_LDFLAGS} -lossaudio" else echo "$ac_t""no" 1>&6 fi @@ -7528,12 +8335,12 @@ fi # Check whether --enable-esd or --disable-esd was given. if test "${enable_esd+set}" = set; then enableval="$enable_esd" - if test x$enable_esd = xyes + 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:7537: checking for $ac_word" >&5 +echo "configure:8344: 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 @@ -7566,9 +8373,9 @@ else echo "$ac_t""no" 1>&6 fi - if test x${ESD_CONFIG} != xno + if test "x${ESD_CONFIG}" != "xno" then - PLUGINS="${PLUGINS} esd" + PLUGINS="${PLUGINS} audio_output/esd" esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`" esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`" fi @@ -7579,12 +8386,12 @@ fi # Check whether --enable-arts or --disable-arts was given. if test "${enable_arts+set}" = set; then enableval="$enable_arts" - if test x$enable_arts = xyes + if test "x${enable_arts}" = "xyes" then # Extract the first word of "artsc-config", so it can be a program name with args. set dummy artsc-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:7588: checking for $ac_word" >&5 +echo "configure:8395: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7606,45 +8413,257 @@ else fi done IFS="$ac_save_ifs" - test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no" + test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no" + ;; +esac +fi +ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG" +if test -n "$ARTS_CONFIG"; then + echo "$ac_t""$ARTS_CONFIG" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + if test "x${ARTS_CONFIG}" != "xno" + then + PLUGINS="${PLUGINS} audio_output/arts" + arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`" + arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `" + fi + fi +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 "alsa/asoundlib.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6 +echo "configure:8445: checking for alsa/asoundlib.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8455: \"$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 + echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6 +echo "configure:8472: 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 +else + ac_save_LIBS="$LIBS" +LIBS="-lasound $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 + have_alsa="true" +else + echo "$ac_t""no" 1>&6 +have_alsa="false" +fi + +else + echo "$ac_t""no" 1>&6 +have_alsa="false" +fi + + if test "x${have_alsa}" = "xtrue" + then + PLUGINS="${PLUGINS} audio_output/alsa" + alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl" + fi + fi +fi + + +# Check whether --enable-waveout or --disable-waveout was given. +if test "${enable_waveout+set}" = set; then + enableval="$enable_waveout" + : +fi + +if test "x${enable_waveout}" != "xno" -a "x${SYS}" = "xmingw32" + then + PLUGINS="${PLUGINS} audio_output/waveout" + waveout_LDFLAGS="-lwinmm" +fi + + +# Check whether --with- or --without- was given. +if test "${with_+set}" = set; then + withval="$with_" + : +fi + + +if test "x${SYS}" = "xbeos" +then + PLUGINS="${PLUGINS} gui/beos/beos" +fi + +# Check whether --enable-gtk or --disable-gtk was given. +if test "${enable_gtk+set}" = set; then + enableval="$enable_gtk" + : +fi + +if test "x${enable_gtk}" != "xno" +then + GTK_PATH="${PATH}" + # Check whether --with-gtk-config-path or --without-gtk-config-path was given. +if test "${with_gtk_config_path+set}" = set; then + withval="$with_gtk_config_path" + if test "x${with_gtk_config_path}" != "xno" + then + GTK_PATH="${with_gtk_config_path}:${PATH}" + fi +fi + + # look for gtk-config + # Extract the first word of "gtk12-config", so it can be a program name with args. +set dummy gtk12-config; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:8569: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case "$GTK12_CONFIG" in + /*) + ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="${GTK_PATH}" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no" + ;; +esac +fi +GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG" +if test -n "$GTK12_CONFIG"; then + echo "$ac_t""$GTK12_CONFIG" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + GTK_CONFIG=${GTK12_CONFIG} + if test "x${GTK_CONFIG}" = "xno" + then + # 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:8608: 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 + case "$GTK_CONFIG" in + /*) + ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="${GTK_PATH}" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" ;; esac fi -ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG" -if test -n "$ARTS_CONFIG"; then - echo "$ac_t""$ARTS_CONFIG" 1>&6 +GTK_CONFIG="$ac_cv_path_GTK_CONFIG" +if test -n "$GTK_CONFIG"; then + echo "$ac_t""$GTK_CONFIG" 1>&6 else echo "$ac_t""no" 1>&6 fi - if test x${ARTS_CONFIG} != xno - then - PLUGINS="${PLUGINS} arts" - arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`" - arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `" - fi - fi -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 "alsa/asoundlib.h" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6 -echo "configure:7638: checking for alsa/asoundlib.h" >&5 + fi + if test "x${GTK_CONFIG}" != "xno" + then + if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null + then + { echo "configure: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-gtk." 1>&2; exit 1; } + fi + gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`" + gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`" + # now look for the gtk.h header + CPPFLAGS="${save_CPPFLAGS} ${gtk_CFLAGS}" + ac_cv_gtk_headers=yes + for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:8657: 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 < +#include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:7648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8667: \"$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* @@ -7660,92 +8679,43 @@ rm -f conftest* 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:7665: 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 -else - ac_save_LIBS="$LIBS" -LIBS="-lasound $LIBS" -cat > conftest.$ac_ext <> confdefs.h <&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 - have_alsa="true" -else - echo "$ac_t""no" 1>&6 -have_alsa="false" -fi - + else echo "$ac_t""no" 1>&6 -have_alsa="false" -fi - - if test x$have_alsa = xtrue - then - PLUGINS="${PLUGINS} alsa" - alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl" - fi - fi -fi - - -# Check whether --enable-waveout or --disable-waveout was given. -if test "${enable_waveout+set}" = set; then - enableval="$enable_waveout" - : -fi - -if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32 - then - PLUGINS="${PLUGINS} waveout" - waveout_LDFLAGS="-lwinmm" +ac_cv_gtk_headers=no + echo "Cannot find gtk development headers." + fi +done - -# Check whether --with- or --without- was given. -if test "${with_+set}" = set; then - withval="$with_" - : + if test "x${ac_cv_gtk_headers}" = "xyes" + then + PLUGINS="${PLUGINS} gui/gtk/gtk" + ALIASES="${ALIASES} gvlc" + fi + CPPFLAGS="${save_CPPFLAGS}" + fi fi - -# Check whether --enable-gtk or --disable-gtk was given. -if test "${enable_gtk+set}" = set; then - enableval="$enable_gtk" +# Check whether --enable-familiar or --disable-familiar was given. +if test "${enable_familiar+set}" = set; then + enableval="$enable_familiar" : fi -if test x$enable_gtk != xno +if test "x${enable_familiar}" = "xyes" then - GTK_PATH=$PATH + GTK_PATH="${PATH}" # Check whether --with-gtk-config-path or --without-gtk-config-path was given. if test "${with_gtk_config_path+set}" = set; then withval="$with_gtk_config_path" - if test "x$with_gtk_config_path" != "xno" + if test "x${with_gtk_config_path}" != "xno" then - GTK_PATH="$with_gtk_config_path:$PATH" + GTK_PATH="${with_gtk_config_path}:${PATH}" fi fi @@ -7753,7 +8723,7 @@ fi # Extract the first word of "gtk12-config", so it can be a program name with args. set dummy gtk12-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:7757: checking for $ac_word" >&5 +echo "configure:8727: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7766,7 +8736,7 @@ else ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$GTK_PATH" + ac_dummy="${GTK_PATH}" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then @@ -7787,12 +8757,12 @@ else fi GTK_CONFIG=${GTK12_CONFIG} - if test x${GTK_CONFIG} = xno + if test "x${GTK_CONFIG}" = "xno" then # 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:7796: checking for $ac_word" >&5 +echo "configure:8766: 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 @@ -7805,7 +8775,7 @@ else ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$GTK_PATH" + ac_dummy="${GTK_PATH}" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then @@ -7826,32 +8796,32 @@ else fi fi - if test x${GTK_CONFIG} != xno + if test "x${GTK_CONFIG}" != "xno" then - if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null + if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null then - { echo "configure: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-gtk." 1>&2; exit 1; } + { echo "configure: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-familiar." 1>&2; exit 1; } fi - gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`" - gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`" + familiar_CFLAGS="${familiar_CFLAGS} `${GTK_CONFIG} --cflags gtk`" + familiar_LDFLAGS="${familiar_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`" # now look for the gtk.h header - CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS" + CPPFLAGS="${save_CPPFLAGS} ${familiar_CFLAGS}" ac_cv_gtk_headers=yes for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:7845: checking for $ac_hdr" >&5 +echo "configure:8815: 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:7855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8825: \"$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* @@ -7880,24 +8850,23 @@ ac_cv_gtk_headers=no fi done - if test "x$ac_cv_gtk_headers" = xyes + if test "x${ac_cv_gtk_headers}" = "xyes" then - PLUGINS="${PLUGINS} gtk" - ALIASES="${ALIASES} gvlc" + PLUGINS="${PLUGINS} gui/familiar/familiar" fi - CPPFLAGS="$save_CPPFLAGS" + CPPFLAGS="${save_CPPFLAGS}" fi fi # Check whether --enable-gnome or --disable-gnome was given. if test "${enable_gnome+set}" = set; then enableval="$enable_gnome" - if test x$enable_gnome = xyes; then + if test "x${enable_gnome}" = "xyes"; then # 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:7901: checking for $ac_word" >&5 +echo "configure:8870: 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 @@ -7936,22 +8905,22 @@ fi gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`" fi # now look for the gnome.h header - CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS" + CPPFLAGS="${save_CPPFLAGS} ${gnome_CFLAGS}" 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:7945: checking for $ac_hdr" >&5 +echo "configure:8914: 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:7955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8924: \"$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* @@ -7972,7 +8941,7 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then #define $ac_tr_hdr 1 EOF - PLUGINS="${PLUGINS} gnome" + PLUGINS="${PLUGINS} gui/gtk/gnome" ALIASES="${ALIASES} gnome-vlc" else @@ -7983,7 +8952,7 @@ developement tools or remove the --enable-gnome option" 1>&2; exit 1; } fi done - CPPFLAGS="$save_CPPFLAGS" + CPPFLAGS="${save_CPPFLAGS}" fi fi @@ -7991,8 +8960,8 @@ fi # Check whether --enable-qt or --disable-qt was given. if test "${enable_qt+set}" = set; then enableval="$enable_qt" - if test x$enable_qt = xyes; then - PLUGINS="${PLUGINS} qt" + if test "x${enable_qt}" = "xyes"; then + PLUGINS="${PLUGINS} gui/qt/qt" ALIASES="${ALIASES} qvlc" qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib" qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include" @@ -8009,8 +8978,8 @@ 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" + if test "x${enable_kde}" = "xyes"; then + PLUGINS="${PLUGINS} gui/kde/kde" ALIASES="${ALIASES} kvlc" kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile" kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt" @@ -8025,30 +8994,48 @@ if test "${enable_kde+set}" = set; then fi +# Check whether --enable-qte or --disable-qte was given. +if test "${enable_qte+set}" = set; then + enableval="$enable_qte" + if test "x${enable_qte}" = "xyes"; then + PLUGINS="${PLUGINS} gui/qte/qte" + qte_LDFLAGS="${qte_LDFLAGS} -lqte -L${QTEDIR}/lib" + qte_CFLAGS="${qte_CFLAGS} -I/usr/include/qte -I${QTEDIR}/include" + if test -x ${QTEDIR}/bin/moc + then + MOC=${QTEDIR}/bin/moc + else + MOC=moc + fi + fi +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 + if test "x${enable_macosx}" = "xyes" then - BUILTINS="${BUILTINS} macosx" - macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC" + BUILTINS="${BUILTINS} gui/macosx/macosx" + macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC" fi else for ac_hdr in Cocoa/Cocoa.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:8042: checking for $ac_hdr" >&5 +echo "configure:9029: 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:8052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:9039: \"$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* @@ -8068,8 +9055,8 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then cat >> confdefs.h <&6 @@ -8085,23 +9072,23 @@ if test "${enable_qnx+set}" = set; then : fi - if test x$enable_qnx != xno + 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:8095: checking for $ac_hdr" >&5 +echo "configure:9082: 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:8105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:9092: \"$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* @@ -8122,7 +9109,7 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then #define $ac_tr_hdr 1 EOF - PLUGINS="${PLUGINS} qnx" + PLUGINS="${PLUGINS} gui/qnx/qnx" qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph" else @@ -8135,7 +9122,7 @@ done # Check whether --enable-intfwin or --disable-intfwin was given. if test "${enable_intfwin+set}" = set; then enableval="$enable_intfwin" - if test "x$enable_intfwin" != "xno" + if test "x${enable_intfwin}" != "xno" then # Check whether --with-bcbuilder or --without-bcbuilder was given. if test "${with_bcbuilder+set}" = set; then @@ -8143,11 +9130,11 @@ if test "${with_bcbuilder+set}" = set; then : fi - if test "x$with_bcbuilder" != "x" + if test "x${with_bcbuilder}" != "x" then - BCBUILDER="$with_bcbuilder" + BCBUILDER="${with_bcbuilder}" fi - PLUGINS="${PLUGINS} intfwin" + PLUGINS="${PLUGINS} gui/win32/win32" fi fi @@ -8155,34 +9142,103 @@ fi # Check whether --enable-ncurses or --disable-ncurses was given. if test "${enable_ncurses+set}" = set; then enableval="$enable_ncurses" - if test x$enable_ncurses = xyes; then - PLUGINS="${PLUGINS} ncurses" + if test "x${enable_ncurses}" = "xyes"; then + PLUGINS="${PLUGINS} gui/ncurses/ncurses" ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses" fi fi +# Check whether --enable-xosd or --disable-xosd was given. +if test "${enable_xosd+set}" = set; then + enableval="$enable_xosd" + : +fi + +if test "x${enable_xosd}" = "xyes" +then + ac_safe=`echo "xosd.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for xosd.h""... $ac_c" 1>&6 +echo "configure:9163: checking for xosd.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:9173: \"$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 + have_xosd="true" +else + echo "$ac_t""no" 1>&6 +have_xosd="false" +fi + + cat > conftest.$ac_ext < +int main() { +void foo() { xosd_init("foo","bar",12,XOSD_top,2,12,42); } +; return 0; } +EOF +if { (eval echo configure:9203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + : +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + cat >> confdefs.h <<\EOF +#define HAVE_OLD_XOSD_H 1 +EOF + +fi +rm -f conftest* + if test "x${have_xosd}" = "xtrue" + then + PLUGINS="${PLUGINS} visualization/xosd/xosd" + xosd_LDFLAGS="${xosd_LDFLAGS} -lxosd" + fi +fi + # Check whether --enable-lirc or --disable-lirc was given. if test "${enable_lirc+set}" = set; then enableval="$enable_lirc" : fi -if test x$enable_lirc = xyes +if test "x${enable_lirc}" = "xyes" then ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6 -echo "configure:8176: checking for lirc/lirc_client.h" >&5 +echo "configure:9232: checking for lirc/lirc_client.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:8186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:9242: \"$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* @@ -8199,7 +9255,7 @@ fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6 -echo "configure:8203: checking for lirc_init in -llirc_client" >&5 +echo "configure:9259: checking for lirc_init in -llirc_client" >&5 ac_lib_var=`echo lirc_client'_'lirc_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 @@ -8207,7 +9263,7 @@ else ac_save_LIBS="$LIBS" LIBS="-llirc_client $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:9278: \"$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 @@ -8244,9 +9300,9 @@ else have_lirc="false" fi - if test x$have_lirc = xtrue + if test "x${have_lirc}" = "xtrue" then - PLUGINS="${PLUGINS} lirc" + PLUGINS="${PLUGINS} control/lirc/lirc" lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client" fi fi @@ -8264,7 +9320,7 @@ if test "${with_words+set}" = set; then : fi - case "x$with_words" in + case "x${with_words}" in xbig) ac_cv_c_bigendian=yes ;; @@ -8273,11 +9329,11 @@ fi ;; *) echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6 -echo "configure:8277: checking whether the byte order is big-endian" >&5 +echo "configure:9333: checking whether the byte order is big-endian" >&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 + ac_cv_c_bigendian="unknown" cat >conftest.c <&6 - if test x$ac_cv_c_bigendian = xunknown + if test "x${ac_cv_c_bigendian}" = "xunknown" then { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; } fi ;; esac -if test $ac_cv_c_bigendian = yes +if test "${ac_cv_c_bigendian}" = "yes" then cat >> confdefs.h <<\EOF #define WORDS_BIGENDIAN 1 @@ -8327,7 +9383,7 @@ GPROF=0 # Check whether --enable-gprof or --disable-gprof was given. if test "${enable_gprof+set}" = set; then enableval="$enable_gprof" - if test "x$enable_gprof" = "xyes" + if test "x${enable_gprof}" = "xyes" then GPROF=1 PROFILING="gprof" @@ -8340,9 +9396,9 @@ CPROF=0 # Check whether --enable-cprof or --disable-cprof was given. if test "${enable_cprof+set}" = set; then enableval="$enable_cprof" - if test "x$enable_cprof" = "xyes" + if test "x${enable_cprof}" = "xyes" then - LDFLAGS="${LDFLAGS} -lcprof" + save_LDFLAGS="${save_LDFLAGS} -lcprof"; LDFLAGS="${save_LDFLAGS}" CPROF=1 PROFILING="cprof" fi @@ -8353,9 +9409,9 @@ fi # Check whether --enable-pth or --disable-pth was given. if test "${enable_pth+set}" = set; then enableval="$enable_pth" - if test "x$enable_pth" = "xyes"; then + if test "x${enable_pth}" = "xyes"; then echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6 -echo "configure:8359: checking for pth_init in -lpth" >&5 +echo "configure:9415: 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 @@ -8363,7 +9419,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lpth $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:9434: \"$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 @@ -8402,7 +9458,7 @@ else fi cat > conftest.$ac_ext < EOF @@ -8426,9 +9482,9 @@ fi # Check whether --enable-st or --disable-st was given. if test "${enable_st+set}" = set; then enableval="$enable_st" - if test "x$enable_st" = "xyes"; then + if test "x${enable_st}" = "xyes"; then echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6 -echo "configure:8432: checking for st_init in -lst" >&5 +echo "configure:9488: checking for st_init in -lst" >&5 ac_lib_var=`echo st'_'st_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 @@ -8436,7 +9492,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lst $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:9507: \"$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 @@ -8475,7 +9531,7 @@ else fi cat > conftest.$ac_ext < EOF @@ -8499,10 +9555,109 @@ fi vlc_LDFLAGS="${vlc_LDFLAGS} ${THREAD_LIB}" plugins_LDFLAGS="${plugins_LDFLAGS} ${THREAD_LIB}" +MOZILLA=0 +# Check whether --enable-mozilla or --disable-mozilla was given. +if test "${enable_mozilla+set}" = set; then + enableval="$enable_mozilla" + : +fi + +if test "x${enable_mozilla}" = "xyes" +then + # Extract the first word of "mozilla-config", so it can be a program name with args. +set dummy mozilla-config; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:9571: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_MOZILLA_CONFIG'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case "$MOZILLA_CONFIG" in + /*) + ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_MOZILLA_CONFIG="$MOZILLA_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_MOZILLA_CONFIG="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_path_MOZILLA_CONFIG" && ac_cv_path_MOZILLA_CONFIG="no" + ;; +esac +fi +MOZILLA_CONFIG="$ac_cv_path_MOZILLA_CONFIG" +if test -n "$MOZILLA_CONFIG"; then + echo "$ac_t""$MOZILLA_CONFIG" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + if test "x${MOZILLA_CONFIG}" != "xno" + then + if test "x${SYS}" != "xmingw32"; then + LDFLAGS="${save_LDFLAGS} -L${x_libraries}" + echo $ac_n "checking for XtStrings in -lXt""... $ac_c" 1>&6 +echo "configure:9609: checking for XtStrings in -lXt" >&5 +ac_lib_var=`echo Xt'_'XtStrings | 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="-lXt $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 + + mozilla_LDFLAGS="${mozilla_LDFLAGS} -L${x_libraries} -lXt" + +else + echo "$ac_t""no" 1>&6 +fi + + LDFLAGS="${save_LDFLAGS}" + fi + MOZILLA=1 + mozilla_CFLAGS="${mozilla_CFLAGS} `${MOZILLA_CONFIG} --cflags plugin java --defines | xargs`" + mozilla_LDFLAGS="${mozilla_LDFLAGS} `${MOZILLA_CONFIG} --libs | sed 's#-I\(.*\)/mozilla/\([^ ]*\)#-I\1/\2 -I\1/mozilla/\2#g'`" + 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 + if test "x${enable_plugins}" = "xno" then BUILTINS="${BUILTINS} ${PLUGINS}" PLUGINS= @@ -8510,7 +9665,7 @@ if test "${enable_plugins+set}" = set; then fi -if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32 +if test "x${ac_cv_header_dlfcn_h}" = "xno" -a "x${ac_cv_header_image_h}" = "xno" -a "x${SYS}" != "xmingw32" then echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled" echo "as built-in" @@ -8519,25 +9674,25 @@ then fi cat >> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <> confdefs.h <> $CONFIG_STATUS <> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then @@ -9171,6 +10364,7 @@ chmod +x $CONFIG_STATUS rm -fr confdefs* $ac_clean_files test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 +chmod a+x vlc-config echo " vlc configuration @@ -9184,13 +10378,13 @@ debug mode : ${DEBUG} release : ${RELEASE} profiling : ${PROFILING} need builtin getopt : ${NEED_GETOPT} -built-in modules :${BUILTINS} -plug-in modules :${PLUGINS} +modules : (see Makefile.config) +mozilla plugin : ${MOZILLA} vlc aliases :${ALIASES} -You may now tune Makefile.opts at your convenience, for instance to choose -which modules get compiled as plugins. +You may now tune Makefile.config and Makefile.opts at your convenience, for +instance to choose which modules get compiled as plugins, or tune CFLAGS. -To build vlc and its plugins, type \`$VLC_MAKE'. +To build vlc and its plugins, type \`${VLC_MAKE}'. "