--- uae/configure 2018/04/24 16:39:37 1.1.1.4 +++ uae/configure 2018/04/24 16:59:39 1.1.1.15 @@ -1,7 +1,7 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.12 +# Generated automatically using autoconf version 2.13 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. # # This configure script is free software; the Free Software Foundation @@ -18,8 +18,6 @@ ac_help="$ac_help ac_help="$ac_help --with-svgalib Use SVGAlib for graphics output" ac_help="$ac_help - --with-ggi Use GGI for graphics output" -ac_help="$ac_help --with-asciiart Use ncurses ascii art for graphics output" ac_help="$ac_help --enable-dga X11 version: Use the DGA extension" @@ -36,13 +34,11 @@ ac_help="$ac_help ac_help="$ac_help --disable-gtktest Do not try to compile and run a test GTK program" ac_help="$ac_help - --enable-threads Enable filesystem thread support" -ac_help="$ac_help - --enable-penguins Enable threads that only make sense on SMP machines" + --enable-threads Enable some generally useful thread support" ac_help="$ac_help - --enable-sound Enable sound support" + --enable-file-sound Enable sound output to file" ac_help="$ac_help - --enable-file-sound Enable sound output to file" + --enable-scsi-device Enable the uaescsi.device" # Initialize some variables set by options. # The variables have the same names as the options, with @@ -81,6 +77,7 @@ mandir='${prefix}/man' # Initialize some other variables. subdirs= MFLAGS= MAKEFLAGS= +SHELL=${CONFIG_SHELL-/bin/sh} # Maximum number of lines to put in a shell here document. ac_max_here_lines=12 @@ -364,7 +361,7 @@ EOF verbose=yes ;; -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.12" + echo "configure generated by autoconf version 2.13" exit 0 ;; -with-* | --with-*) @@ -534,9 +531,11 @@ ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross +ac_exeext= +ac_objext=o if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then @@ -555,15 +554,16 @@ 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:559: checking for $ac_word" >&5 +echo "configure:558: 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 if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="gcc" @@ -591,9 +591,10 @@ else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_prog_rejected=no - for ac_dir in $PATH; do + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then @@ -628,25 +629,61 @@ else echo "$ac_t""no" 1>&6 fi + if test -z "$CC"; then + case "`uname -s`" in + *win32* | *WIN32*) + # 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:639: 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 + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_CC="cl" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +CC="$ac_cv_prog_CC" +if test -n "$CC"; then + echo "$ac_t""$CC" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + ;; + esac + fi test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:636: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo "configure:671: 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. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross -cat > conftest.$ac_ext < conftest.$ac_ext << EOF + +#line 682 "configure" #include "confdefs.h" + main(){return(0);} EOF -if { (eval echo configure:650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:687: \"$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 @@ -660,18 +697,24 @@ else ac_cv_prog_cc_works=no fi rm -fr conftest* +ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 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:670: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:713: 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:675: checking whether we are using GNU C" >&5 +echo "configure:718: 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 @@ -680,7 +723,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:684: \"$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:727: \"$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 @@ -691,11 +734,15 @@ echo "$ac_t""$ac_cv_prog_gcc" 1>&6 if test $ac_cv_prog_gcc = yes; then GCC=yes - 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:699: checking whether ${CC-cc} accepts -g" >&5 +else + GCC= +fi + +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:746: 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 @@ -710,21 +757,25 @@ rm -f conftest* fi echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then +if test "$ac_test_CFLAGS" = set; then + CFLAGS="$ac_save_CFLAGS" +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then CFLAGS="-g -O2" else - CFLAGS="-O2" + CFLAGS="-g" fi else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi fi echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:728: checking how to run the C preprocessor" >&5 +echo "configure:779: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= @@ -739,14 +790,14 @@ 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:749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out` +{ (eval echo configure:800: \"$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 : else @@ -756,14 +807,31 @@ 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:817: \"$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 + : +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + 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:766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out` +{ (eval echo configure:834: \"$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 : else @@ -776,6 +844,8 @@ fi rm -f conftest* fi rm -f conftest* +fi +rm -f conftest* ac_cv_prog_CPP="$CPP" fi CPP="$ac_cv_prog_CPP" @@ -785,7 +855,7 @@ fi echo "$ac_t""$CPP" 1>&6 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:789: checking whether ${MAKE-make} sets \${MAKE}" >&5 +echo "configure:859: 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 @@ -811,10 +881,46 @@ else SET_MAKE="MAKE=${MAKE-make}" fi +# Extract the first word of "makedepend", so it can be a program name with args. +set dummy makedepend; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:888: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_MAKEDEPPRG'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case "$MAKEDEPPRG" in + /*) + ac_cv_path_MAKEDEPPRG="$MAKEDEPPRG" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_MAKEDEPPRG="$MAKEDEPPRG" # 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_MAKEDEPPRG="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_path_MAKEDEPPRG" && ac_cv_path_MAKEDEPPRG="not-found" + ;; +esac +fi +MAKEDEPPRG="$ac_cv_path_MAKEDEPPRG" +if test -n "$MAKEDEPPRG"; then + echo "$ac_t""$MAKEDEPPRG" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + # Extract the first word of "file", so it can be a program name with args. set dummy file; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:818: checking for $ac_word" >&5 +echo "configure:924: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_FILEPRG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -822,9 +928,13 @@ else /*) ac_cv_path_FILEPRG="$FILEPRG" # Let the user override the test with a path. ;; + ?:/*) + ac_cv_path_FILEPRG="$FILEPRG" # Let the user override the test with a dos path. + ;; *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do + 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_FILEPRG="$ac_dir/$ac_word" @@ -843,11 +953,83 @@ else echo "$ac_t""no" 1>&6 fi +# Extract the first word of "wrc", so it can be a program name with args. +set dummy wrc; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:960: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_WRCPRG'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case "$WRCPRG" in + /*) + ac_cv_path_WRCPRG="$WRCPRG" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_WRCPRG="$WRCPRG" # 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_WRCPRG="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_path_WRCPRG" && ac_cv_path_WRCPRG="not-found" + ;; +esac +fi +WRCPRG="$ac_cv_path_WRCPRG" +if test -n "$WRCPRG"; then + echo "$ac_t""$WRCPRG" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +# Extract the first word of "rcl", so it can be a program name with args. +set dummy rcl; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:996: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_RCLPRG'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case "$RCLPRG" in + /*) + ac_cv_path_RCLPRG="$RCLPRG" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_RCLPRG="$RCLPRG" # 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_RCLPRG="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_path_RCLPRG" && ac_cv_path_RCLPRG="not-found" + ;; +esac +fi +RCLPRG="$ac_cv_path_RCLPRG" +if test -n "$RCLPRG"; then + echo "$ac_t""$RCLPRG" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for AIX""... $ac_c" 1>&6 -echo "configure:849: checking for AIX" >&5 +echo "configure:1031: checking for AIX" >&5 cat > conftest.$ac_ext <&6 -echo "configure:873: checking for POSIXized ISC" >&5 +echo "configure:1055: checking for POSIXized ISC" >&5 if test -d /etc/conf/kconfig.d && grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 then @@ -890,9 +1072,121 @@ else fi +echo $ac_n "checking for Watcom C""... $ac_c" 1>&6 +echo "configure:1077: checking for Watcom C" >&5 +cat > conftest.$ac_ext <&5 | + egrep "yes" >/dev/null 2>&1; then + rm -rf conftest* + uae_cv_prog_cc_watcom=yes +else + rm -rf conftest* + uae_cv_prog_cc_watcom=no +fi +rm -f conftest* + +echo "$ac_t""$uae_cv_prog_cc_watcom" 1>&6 + +echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6 +echo "configure:1099: checking for Cygwin32 environment" >&5 +if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + am_cv_cygwin32=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + am_cv_cygwin32=no +fi +rm -f conftest* +rm -f conftest* +fi + +echo "$ac_t""$am_cv_cygwin32" 1>&6 +CYGWIN32= +test "$am_cv_cygwin32" = yes && CYGWIN32=yes +echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6 +echo "configure:1128: checking for Mingw32 environment" >&5 +if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + am_cv_mingw32=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + am_cv_mingw32=no +fi +rm -f conftest* +rm -f conftest* +fi + +echo "$ac_t""$am_cv_mingw32" 1>&6 +MINGW32= +test "$am_cv_mingw32" = yes && MINGW32=yes + + +echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 +echo "configure:1159: checking for executable suffix" >&5 +if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then +am_cv_exeext=.exe +else +cat > am_c_test.c << 'EOF' +int main() { +/* Nothing needed here */ +} +EOF +${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 +am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//` +rm -f am_c_test* +fi + +test x"${am_cv_exeext}" = x && am_cv_exeext=no +fi +EXEEXT="" +test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext} +echo "$ac_t""${am_cv_exeext}" 1>&6 + + NR_WARNINGS=0 NR_ERRORS=0 +tmp_save_dir=`pwd` +cd $srcdir +abssrcdir=`pwd` +cd $tmp_save_dir + NEED_THREAD_SUPPORT=no ADDITIONAL_CFLAGS= @@ -900,11 +1194,12 @@ OPTIMIZE_CFLAGS= WARNING_CFLAGS= DEBUG_CFLAGS= NO_SCHED_CFLAGS= +LDFLAGS="$LDFLAGS -L." HAVE_BEOS=no HAVE_POS=no echo $ac_n "checking for main in -lMedia_s""... $ac_c" 1>&6 -echo "configure:908: checking for main in -lMedia_s" >&5 +echo "configure:1203: checking for main in -lMedia_s" >&5 ac_lib_var=`echo Media_s'_'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 @@ -912,14 +1207,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lMedia_s $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:1218: \"$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 @@ -941,7 +1236,7 @@ HAVE_MEDIA_LIB=no fi echo $ac_n "checking for main in -lNeXT_s""... $ac_c" 1>&6 -echo "configure:945: checking for main in -lNeXT_s" >&5 +echo "configure:1240: checking for main in -lNeXT_s" >&5 ac_lib_var=`echo NeXT_s'_'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 @@ -949,14 +1244,14 @@ else ac_save_LIBS="$LIBS" LIBS="-lNeXT_s $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:1255: \"$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 @@ -977,8 +1272,49 @@ else HAVE_NEXT_LIB=no fi +echo $ac_n "checking for cos in -lmoto""... $ac_c" 1>&6 +echo "configure:1277: checking for cos in -lmoto" >&5 +ac_lib_var=`echo moto'_'cos | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lmoto $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_MOTO_LIB=yes +else + echo "$ac_t""no" 1>&6 +HAVE_MOTO_LIB=no +fi + echo $ac_n "checking for OpenLibrary in -lamiga""... $ac_c" 1>&6 -echo "configure:982: checking for OpenLibrary in -lamiga" >&5 +echo "configure:1318: checking for OpenLibrary in -lamiga" >&5 ac_lib_var=`echo amiga'_'OpenLibrary | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -986,7 +1322,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lamiga $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:1337: \"$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 @@ -1019,7 +1355,7 @@ HAVE_AMIGA_LIB=n fi echo $ac_n "checking for vga_setmode in -lvga""... $ac_c" 1>&6 -echo "configure:1023: checking for vga_setmode in -lvga" >&5 +echo "configure:1359: checking for vga_setmode in -lvga" >&5 ac_lib_var=`echo vga'_'vga_setmode | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1027,7 +1363,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lvga $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:1378: \"$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 @@ -1060,7 +1396,7 @@ HAVE_SVGA_LIB=no fi echo $ac_n "checking for AFOpenAudioConn in -lAF""... $ac_c" 1>&6 -echo "configure:1064: checking for AFOpenAudioConn in -lAF" >&5 +echo "configure:1400: checking for AFOpenAudioConn in -lAF" >&5 ac_lib_var=`echo AF'_'AFOpenAudioConn | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1068,7 +1404,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lAF $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:1419: \"$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 @@ -1100,27 +1436,27 @@ else HAVE_AF_LIB=no fi -echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6 -echo "configure:1105: checking for waddch in -lncurses" >&5 -ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'` +echo $ac_n "checking for waveOutGetNumDevs in -lmme""... $ac_c" 1>&6 +echo "configure:1441: checking for waveOutGetNumDevs in -lmme" >&5 +ac_lib_var=`echo mme'_'waveOutGetNumDevs | 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="-lncurses $LIBS" +LIBS="-lmme $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:1460: \"$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 @@ -1135,33 +1471,33 @@ LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - HAVE_NCURSES_LIB=yes + HAVE_MME_LIB=yes else echo "$ac_t""no" 1>&6 -HAVE_NCURSES_LIB=no +HAVE_MME_LIB=no fi -echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 -echo "configure:1146: checking for pthread_create in -lpthread" >&5 -ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` +echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6 +echo "configure:1482: checking for waddch in -lncurses" >&5 +ac_lib_var=`echo ncurses'_'waddch | 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" +LIBS="-lncurses $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:1501: \"$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 @@ -1176,14 +1512,14 @@ LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - HAVE_PTHREAD_LIB=yes + HAVE_NCURSES_LIB=yes else echo "$ac_t""no" 1>&6 -HAVE_PTHREAD_LIB=no +HAVE_NCURSES_LIB=no fi echo $ac_n "checking for sem_init in -lposix4""... $ac_c" 1>&6 -echo "configure:1187: checking for sem_init in -lposix4" >&5 +echo "configure:1523: checking for sem_init in -lposix4" >&5 ac_lib_var=`echo posix4'_'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 @@ -1191,7 +1527,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lposix4 $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:1542: \"$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 @@ -1223,27 +1559,27 @@ else HAVE_POSIX4_LIB=no fi -echo $ac_n "checking for ggiInit in -lggi""... $ac_c" 1>&6 -echo "configure:1228: checking for ggiInit in -lggi" >&5 -ac_lib_var=`echo ggi'_'ggiInit | sed 'y%./+-%__p_%'` +echo $ac_n "checking for sem_init in -lrt""... $ac_c" 1>&6 +echo "configure:1564: 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="-lggi $LIBS" +LIBS="-lrt $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:1583: \"$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 @@ -1258,43 +1594,60 @@ LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - HAVE_GGI_LIB=yes + HAVE_RT_LIB=yes else echo "$ac_t""no" 1>&6 -HAVE_GGI_LIB=no +HAVE_RT_LIB=no fi - -if [ $target = "p.os" ]; then - HAVE_POS=yes +echo $ac_n "checking for alOpenPort in -laudio""... $ac_c" 1>&6 +echo "configure:1605: checking for alOpenPort in -laudio" >&5 +ac_lib_var=`echo audio'_'alOpenPort | 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="-laudio $LIBS" +cat > conftest.$ac_ext <conftest.c << EOF -int main() -{ -#ifdef __POS__ -printf("POS\n"); -#endif -return 0; -} +int main() { +alOpenPort() +; return 0; } EOF -$CC $CFLAGS conftest.c -c -o conftest.o -$CC conftest.o -o conftest -./conftest >conftest.file -if grep POS conftest.file >/dev/null; then - HAVE_POS=yes +if { (eval echo configure:1624: \"$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 - HAVE_POS=no + 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_SGIAUDIO_LIB=yes +else + echo "$ac_t""no" 1>&6 +HAVE_SGIAUDIO_LIB=no fi + # If we find X, set shell vars x_includes and x_libraries to the # paths, otherwise set no_x=yes. # Uses ac_ vars as temps to allow command line to override cache and checks. # --without-x overrides everything else, but does not touch the cache. echo $ac_n "checking for X""... $ac_c" 1>&6 -echo "configure:1298: checking for X" >&5 +echo "configure:1651: checking for X" >&5 # Check whether --with-x or --without-x was given. if test "${with_x+set}" = set; then @@ -1356,13 +1709,13 @@ if test "$ac_x_includes" = NO; then # First, try using that file with no special directory specified. cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out` +{ (eval echo configure:1718: \"$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* # We can compile using X headers with no special include directory. @@ -1430,14 +1783,14 @@ if test "$ac_x_libraries" = NO; then ac_save_LIBS="$LIBS" LIBS="-l$x_direct_test_library $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* LIBS="$ac_save_LIBS" # We can link X programs with no special library path. @@ -1543,17 +1896,17 @@ else case "`(uname -sr) 2>/dev/null`" in "SunOS 5"*) echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 -echo "configure:1547: checking whether -R must be followed by a space" >&5 +echo "configure:1900: checking whether -R must be followed by a space" >&5 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:1910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_R_nospace=yes else @@ -1569,14 +1922,14 @@ rm -f conftest* else LIBS="$ac_xsave_LIBS -R $x_libraries" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:1933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_R_space=yes else @@ -1608,7 +1961,7 @@ rm -f conftest* # libraries were built with DECnet support. And karl@cs.umb.edu says # the Alpha needs dnet_stub (dnet does not exist). echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 -echo "configure:1612: checking for dnet_ntoa in -ldnet" >&5 +echo "configure:1965: checking for dnet_ntoa in -ldnet" >&5 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1616,7 +1969,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldnet $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:1984: \"$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 @@ -1649,7 +2002,7 @@ fi if test $ac_cv_lib_dnet_dnet_ntoa = no; then echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 -echo "configure:1653: checking for dnet_ntoa in -ldnet_stub" >&5 +echo "configure:2006: checking for dnet_ntoa in -ldnet_stub" >&5 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1657,7 +2010,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldnet_stub $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:2025: \"$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 @@ -1697,12 +2050,12 @@ fi # The nsl library prevents programs from opening the X display # on Irix 5.2, according to dickey@clark.net. echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 -echo "configure:1701: checking for gethostbyname" >&5 +echo "configure:2054: 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; then +if { (eval echo configure:2082: \"$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 @@ -1746,7 +2099,7 @@ fi if test $ac_cv_func_gethostbyname = no; then echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 -echo "configure:1750: checking for gethostbyname in -lnsl" >&5 +echo "configure:2103: 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 @@ -1754,7 +2107,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lnsl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:2122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1795,12 +2148,12 @@ fi # -lsocket must be given before -lnsl if both are needed. # We assume that if connect needs -lnsl, so does gethostbyname. echo $ac_n "checking for connect""... $ac_c" 1>&6 -echo "configure:1799: checking for connect" >&5 +echo "configure:2152: 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; then +if { (eval echo configure:2180: \"$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 @@ -1844,7 +2197,7 @@ fi if test $ac_cv_func_connect = no; then echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 -echo "configure:1848: checking for connect in -lsocket" >&5 +echo "configure:2201: 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 @@ -1852,7 +2205,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lsocket $X_EXTRA_LIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:2220: \"$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 @@ -1887,12 +2240,12 @@ fi # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. echo $ac_n "checking for remove""... $ac_c" 1>&6 -echo "configure:1891: checking for remove" >&5 +echo "configure:2244: checking for remove" >&5 if eval "test \"`echo '$''{'ac_cv_func_remove'+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; then +if { (eval echo configure:2272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_remove=yes" else @@ -1936,7 +2289,7 @@ fi if test $ac_cv_func_remove = no; then echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 -echo "configure:1940: checking for remove in -lposix" >&5 +echo "configure:2293: checking for remove in -lposix" >&5 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1944,7 +2297,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lposix $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:2312: \"$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 @@ -1979,12 +2332,12 @@ fi # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. echo $ac_n "checking for shmat""... $ac_c" 1>&6 -echo "configure:1983: checking for shmat" >&5 +echo "configure:2336: checking for shmat" >&5 if eval "test \"`echo '$''{'ac_cv_func_shmat'+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; then +if { (eval echo configure:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_shmat=yes" else @@ -2028,7 +2381,7 @@ fi if test $ac_cv_func_shmat = no; then echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 -echo "configure:2032: checking for shmat in -lipc" >&5 +echo "configure:2385: checking for shmat in -lipc" >&5 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2036,7 +2389,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lipc $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:2404: \"$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 @@ -2080,15 +2433,15 @@ fi # libraries we check for below, so use a different variable. # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 -echo "configure:2084: checking for IceConnectionNumber in -lICE" >&5 +echo "configure:2437: checking for IceConnectionNumber in -lICE" >&5 ac_lib_var=`echo ICE'_'IceConnectionNumber | 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="-lICE $LIBS" +LIBS="-lICE $X_EXTRA_LIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:2456: \"$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 @@ -2130,12 +2483,12 @@ for ac_hdr in dirent.h sys/ndir.h sys/di do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 -echo "configure:2134: checking for $ac_hdr that defines DIR" >&5 +echo "configure:2487: checking for $ac_hdr that defines DIR" >&5 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include <$ac_hdr> @@ -2143,7 +2496,7 @@ int main() { DIR *dirp = 0; ; return 0; } EOF -if { (eval echo configure:2147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_header_dirent_$ac_safe=yes" else @@ -2168,7 +2521,7 @@ done # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. if test $ac_header_dirent = dirent.h; then echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 -echo "configure:2172: checking for opendir in -ldir" >&5 +echo "configure:2525: checking for opendir in -ldir" >&5 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2176,7 +2529,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldir $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:2544: \"$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 @@ -2209,7 +2562,7 @@ fi else echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 -echo "configure:2213: checking for opendir in -lx" >&5 +echo "configure:2566: checking for opendir in -lx" >&5 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2217,7 +2570,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lx $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:2585: \"$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 @@ -2251,12 +2604,12 @@ fi fi echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:2255: checking for ANSI C header files" >&5 +echo "configure:2608: 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 @@ -2264,8 +2617,8 @@ else #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out` +{ (eval echo configure:2621: \"$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* ac_cv_header_stdc=yes @@ -2281,7 +2634,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 @@ -2299,7 +2652,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 @@ -2320,7 +2673,7 @@ if test "$cross_compiling" = yes; then : else cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -2331,7 +2684,7 @@ if (XOR (islower (i), ISLOWER (i)) || to exit (0); } EOF -if { (eval echo configure:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:2688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -2359,18 +2712,18 @@ for ac_hdr in unistd.h fcntl.h sys/time. do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2363: checking for $ac_hdr" >&5 +echo "configure:2716: 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:2373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out` +{ (eval echo configure:2726: \"$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" @@ -2395,22 +2748,22 @@ else fi done -for ac_hdr in sys/vfs.h sys/mount.h sys/select.h sys/param.h sys/statfs.h sys/statvfs.h sys/stat.h +for ac_hdr in sys/soundcard.h machine/soundcard.h sun/audioio.h sys/audioio.h getopt.h features.h sys/termios.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2403: checking for $ac_hdr" >&5 +echo "configure:2756: 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:2413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out` +{ (eval echo configure:2766: \"$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" @@ -2435,22 +2788,22 @@ else fi done -for ac_hdr in sys/soundcard.h machine/soundcard.h sun/audioio.h sys/audioio.h getopt.h features.h sys/termios.h +for ac_hdr in posix_opt.h sys/ioctl.h sys/ipc.h sys/shm.h sys/stat.h sys/utime.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2443: checking for $ac_hdr" >&5 +echo "configure:2796: 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:2453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out` +{ (eval echo configure:2806: \"$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" @@ -2475,22 +2828,22 @@ else fi done -for ac_hdr in posix_opt.h sys/ioctl.h sys/ipc.h sys/shm.h +for ac_hdr in windows.h ddraw.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2483: checking for $ac_hdr" >&5 +echo "configure:2836: 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:2493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out` +{ (eval echo configure:2846: \"$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" @@ -2515,22 +2868,56 @@ else fi done -for ac_hdr in ggi/libggi.h +ac_safe=`echo "be_math.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for be_math.h""... $ac_c" 1>&6 +echo "configure:2874: checking for be_math.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:2884: \"$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_BEOS=yes +else + echo "$ac_t""no" 1>&6 +HAVE_BEOS=no +fi + +for ac_hdr in machine/joystick.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2523: checking for $ac_hdr" >&5 +echo "configure:2910: 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:2533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out` +{ (eval echo configure:2920: \"$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" @@ -2555,20 +2942,22 @@ else fi done -ac_safe=`echo "be_math.h" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for be_math.h""... $ac_c" 1>&6 -echo "configure:2561: checking for be_math.h" >&5 +for ac_hdr in devices/ahi.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:2950: 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:2571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out` +{ (eval echo configure:2960: \"$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" @@ -2583,15 +2972,99 @@ rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 - HAVE_BEOS=yes + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 -HAVE_BEOS=no fi +done + +for ac_hdr in dmedia/audio.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:2990: 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:3000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_hdr in libraries/cybergraphics.h cybergraphx/cybergraphics.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3030: 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:3040: \"$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 echo $ac_n "checking size of char""... $ac_c" 1>&6 -echo "configure:2595: checking size of char" >&5 +echo "configure:3068: checking size of char" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2599,7 +3072,7 @@ else ac_cv_sizeof_char=1 else cat > conftest.$ac_ext < main() @@ -2610,7 +3083,7 @@ main() exit(0); } EOF -if { (eval echo configure:2614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:3087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_char=`cat conftestval` else @@ -2630,7 +3103,7 @@ EOF echo $ac_n "checking size of short""... $ac_c" 1>&6 -echo "configure:2634: checking size of short" >&5 +echo "configure:3107: checking size of short" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2638,7 +3111,7 @@ else ac_cv_sizeof_short=2 else cat > conftest.$ac_ext < main() @@ -2649,7 +3122,7 @@ main() exit(0); } EOF -if { (eval echo configure:2653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:3126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_short=`cat conftestval` else @@ -2669,7 +3142,7 @@ EOF echo $ac_n "checking size of int""... $ac_c" 1>&6 -echo "configure:2673: checking size of int" >&5 +echo "configure:3146: checking size of int" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2677,7 +3150,7 @@ else ac_cv_sizeof_int=4 else cat > conftest.$ac_ext < main() @@ -2688,7 +3161,7 @@ main() exit(0); } EOF -if { (eval echo configure:2692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:3165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_int=`cat conftestval` else @@ -2708,7 +3181,7 @@ EOF echo $ac_n "checking size of long""... $ac_c" 1>&6 -echo "configure:2712: checking size of long" >&5 +echo "configure:3185: checking size of long" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2716,7 +3189,7 @@ else ac_cv_sizeof_long=4 else cat > conftest.$ac_ext < main() @@ -2727,7 +3200,7 @@ main() exit(0); } EOF -if { (eval echo configure:2731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:3204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_long=`cat conftestval` else @@ -2747,7 +3220,7 @@ EOF echo $ac_n "checking size of long long""... $ac_c" 1>&6 -echo "configure:2751: checking size of long long" >&5 +echo "configure:3224: checking size of long long" >&5 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2755,7 +3228,7 @@ else ac_cv_sizeof_long_long=8 else cat > conftest.$ac_ext < main() @@ -2766,7 +3239,7 @@ main() exit(0); } EOF -if { (eval echo configure:2770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:3243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_long_long=`cat conftestval` else @@ -2785,14 +3258,53 @@ cat >> confdefs.h <&6 +echo "configure:3263: checking size of __int64" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + ac_cv_sizeof___int64=8 +else + cat > conftest.$ac_ext < +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(__int64)); + exit(0); +} +EOF +if { (eval echo configure:3282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + ac_cv_sizeof___int64=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof___int64=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof___int64" 1>&6 +cat >> confdefs.h <&6 -echo "configure:2791: checking for working const" >&5 +echo "configure:3303: 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:3357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else @@ -2862,21 +3374,21 @@ EOF fi echo $ac_n "checking for inline""... $ac_c" 1>&6 -echo "configure:2866: checking for inline" >&5 +echo "configure:3378: 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:3392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_inline=$ac_kw; break else @@ -2905,12 +3417,12 @@ if [ "x$ac_cv_c_inline" = "xno" ]; then ac_cv_c_inline= fi echo $ac_n "checking for mode_t""... $ac_c" 1>&6 -echo "configure:2909: checking for mode_t" >&5 +echo "configure:3421: checking for mode_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -2919,7 +3431,7 @@ else #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then rm -rf conftest* ac_cv_type_mode_t=yes else @@ -2938,12 +3450,12 @@ EOF fi echo $ac_n "checking for off_t""... $ac_c" 1>&6 -echo "configure:2942: checking for off_t" >&5 +echo "configure:3454: 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 @@ -2952,7 +3464,7 @@ else #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then rm -rf conftest* ac_cv_type_off_t=yes else @@ -2971,12 +3483,12 @@ EOF fi echo $ac_n "checking for pid_t""... $ac_c" 1>&6 -echo "configure:2975: checking for pid_t" >&5 +echo "configure:3487: checking for pid_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -2985,7 +3497,7 @@ else #endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then rm -rf conftest* ac_cv_type_pid_t=yes else @@ -3004,12 +3516,12 @@ EOF fi echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6 -echo "configure:3008: checking for st_blocks in struct stat" >&5 +echo "configure:3520: checking for st_blocks in struct stat" >&5 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -3017,7 +3529,7 @@ int main() { struct stat s; s.st_blocks; ; return 0; } EOF -if { (eval echo configure:3021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_st_blocks=yes else @@ -3036,16 +3548,16 @@ if test $ac_cv_struct_st_blocks = yes; t EOF else - LIBOBJS="$LIBOBJS fileblocks.o" + LIBOBJS="$LIBOBJS fileblocks.${ac_objext}" fi echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 -echo "configure:3044: checking whether time.h and sys/time.h may both be included" >&5 +echo "configure:3556: 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 @@ -3054,7 +3566,7 @@ int main() { struct tm *tp; ; return 0; } EOF -if { (eval echo configure:3058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_time=yes else @@ -3075,12 +3587,12 @@ EOF fi echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 -echo "configure:3079: checking whether struct tm is in sys/time.h or time.h" >&5 +echo "configure:3591: checking whether struct tm is in sys/time.h or time.h" >&5 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -3088,7 +3600,7 @@ int main() { struct tm *tp; tp->tm_sec; ; return 0; } EOF -if { (eval echo configure:3092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_tm=time.h else @@ -3111,13 +3623,13 @@ fi if test $ac_cv_prog_gcc = yes; then echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 -echo "configure:3115: checking whether ${CC-cc} needs -traditional" >&5 +echo "configure:3627: checking whether ${CC-cc} needs -traditional" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_pattern="Autoconf.*'x'" cat > conftest.$ac_ext < Autoconf TIOCGETP @@ -3135,7 +3647,7 @@ rm -f conftest* if test $ac_cv_prog_gcc_traditional = no; then cat > conftest.$ac_ext < Autoconf TCGETA @@ -3157,7 +3669,7 @@ echo "$ac_t""$ac_cv_prog_gcc_traditional fi echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6 -echo "configure:3161: checking for 8-bit clean memcmp" >&5 +echo "configure:3673: checking for 8-bit clean memcmp" >&5 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3165,7 +3677,7 @@ else ac_cv_func_memcmp_clean=no else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:3691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_func_memcmp_clean=yes else @@ -3190,15 +3702,15 @@ fi fi echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6 -test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o" +test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}" echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 -echo "configure:3197: checking return type of signal handlers" >&5 +echo "configure:3709: 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 @@ -3215,7 +3727,7 @@ int main() { int i; ; return 0; } EOF -if { (eval echo configure:3219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_signal=void else @@ -3234,7 +3746,7 @@ EOF echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6 -echo "configure:3238: checking whether utime accepts a null argument" >&5 +echo "configure:3750: checking whether utime accepts a null argument" >&5 if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3244,7 +3756,7 @@ if test "$cross_compiling" = yes; then ac_cv_func_utime_null=no else cat > conftest.$ac_ext < #include @@ -3255,7 +3767,7 @@ exit(!(stat ("conftestdata", &s) == 0 && && t.st_mtime - s.st_mtime < 120)); } EOF -if { (eval echo configure:3259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:3771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_func_utime_null=yes else @@ -3278,15 +3790,15 @@ EOF fi -for ac_func in getcwd getopt strdup gettimeofday sigaction mkdir rmdir select strerror strstr statfs +for ac_func in getcwd getopt strdup gettimeofday sigaction mkdir rmdir select strerror strstr do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3285: checking for $ac_func" >&5 +echo "configure:3797: 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; then +if { (eval echo configure:3825: \"$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 @@ -3333,15 +3845,15 @@ else fi done -for ac_func in tcgetattr cfmakeraw readdir_r +for ac_func in tcgetattr cfmakeraw readdir_r vprintf vsprintf vfprintf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3340: checking for $ac_func" >&5 +echo "configure:3852: 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; then +if { (eval echo configure:3880: \"$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 @@ -3389,100 +3901,1158 @@ fi done -echo $ac_n "checking how many args statfs takes""... $ac_c" 1>&6 -echo "configure:3394: checking how many args statfs takes" >&5 -if [ "x$ac_cv_func_statfs" = "xyes" ]; then +DO_FILEUTILS_CHECK=yes +if test $uae_cv_prog_cc_watcom = yes -o $am_cv_mingw32 = yes; then + DO_FILEUTILS_CHECK=no +fi +if test $DO_FILEUTILS_CHECK = yes; then + +for ac_hdr in fcntl.h sys/param.h sys/statfs.h sys/fstyp.h \ +mnttab.h mntent.h sys/statvfs.h sys/vfs.h sys/mount.h \ +sys/filsys.h sys/fs_types.h sys/fs/s5param.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3917: 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:3927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + +for ac_func in bcopy endgrent endpwent fchdir ftime ftruncate \ +getcwd getmntinfo gettimeofday isascii lchown \ +listmntent memcpy mkfifo strchr strerror strrchr +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:3959: 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 < -#endif -#ifdef HAVE_SYS_PARAM_H -#include -#endif -#ifdef HAVE_SYS_MOUNT_H -#include +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); #endif -#ifdef HAVE_SYS_SELECT_H -#include + +; return 0; } +EOF +if { (eval echo configure:3987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +fi +done + + +# Determine how to get the list of mounted filesystems. +list_mounted_fs= + +# If the getmntent function is available but not in the standard library, +# make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX). +# getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware. +echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6 +echo "configure:4019: checking for getmntent in -lsun" >&5 +ac_lib_var=`echo sun'_'getmntent | 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="-lsun $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 + LIBS="-lsun $LIBS" +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6 +echo "configure:4057: checking for getmntent in -lseq" >&5 +ac_lib_var=`echo seq'_'getmntent | 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="-lseq $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 + LIBS="-lseq $LIBS" +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6 +echo "configure:4095: checking for getmntent in -lgen" >&5 +ac_lib_var=`echo gen'_'getmntent | 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="-lgen $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 + LIBS="-lgen $LIBS" +else + echo "$ac_t""no" 1>&6 +fi + +fi + +fi + +echo $ac_n "checking for getmntent""... $ac_c" 1>&6 +echo "configure:4139: checking for getmntent" >&5 +if eval "test \"`echo '$''{'ac_cv_func_getmntent'+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 getmntent(); + +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_getmntent) || defined (__stub___getmntent) +choke me +#else +getmntent(); #endif -#ifdef HAVE_SYS_VFS_H -#include + +; return 0; } +EOF +if { (eval echo configure:4167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_getmntent=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_getmntent=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define HAVE_GETMNTENT 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +# This test must precede the ones for getmntent because Unicos-9 is +# reported to have the getmntent function, but its support is incompatible +# with other getmntent implementations. + +# NOTE: Normally, I wouldn't use a check for system type as I've done for +# `CRAY' below since that goes against the whole autoconf philosophy. But +# I think there is too great a chance that some non-Cray system has a +# function named listmntent to risk the false positive. + +if test -z "$list_mounted_fs"; then +# Cray UNICOS 9 +echo $ac_n "checking for listmntent of Cray/Unicos-9""... $ac_c" 1>&6 +echo "configure:4202: checking for listmntent of Cray/Unicos-9" >&5 +if eval "test \"`echo '$''{'fu_cv_sys_mounted_cray_listmntent'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + fu_cv_sys_mounted_cray_listmntent=no +cat > conftest.$ac_ext <&5 | + egrep "yes" >/dev/null 2>&1; then + rm -rf conftest* + test $ac_cv_func_listmntent = yes \ +&& fu_cv_sys_mounted_cray_listmntent=yes + +fi +rm -f conftest* + + + +fi + +echo "$ac_t""$fu_cv_sys_mounted_cray_listmntent" 1>&6 +if test $fu_cv_sys_mounted_cray_listmntent = yes; then +list_mounted_fs=found +cat >> confdefs.h <<\EOF +#define MOUNTED_LISTMNTENT 1 +EOF + +fi +fi + +if test $ac_cv_func_getmntent = yes; then + +# This system has the getmntent function. +# Determine whether it's the one-argument variant or the two-argument one. + +if test -z "$list_mounted_fs"; then +# 4.3BSD, SunOS, HP-UX, Dynix, Irix +echo $ac_n "checking for one-argument getmntent function""... $ac_c" 1>&6 +echo "configure:4246: checking for one-argument getmntent function" >&5 +if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntent1'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + test $ac_cv_header_mntent_h = yes \ +&& fu_cv_sys_mounted_getmntent1=yes \ +|| fu_cv_sys_mounted_getmntent1=no +fi + +echo "$ac_t""$fu_cv_sys_mounted_getmntent1" 1>&6 +if test $fu_cv_sys_mounted_getmntent1 = yes; then +list_mounted_fs=found +cat >> confdefs.h <<\EOF +#define MOUNTED_GETMNTENT1 1 +EOF + +fi +fi + +if test -z "$list_mounted_fs"; then +# SVR4 +echo $ac_n "checking for two-argument getmntent function""... $ac_c" 1>&6 +echo "configure:4268: checking for two-argument getmntent function" >&5 +if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntent2'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "getmntent" >/dev/null 2>&1; then + rm -rf conftest* + fu_cv_sys_mounted_getmntent2=yes +else + rm -rf conftest* + fu_cv_sys_mounted_getmntent2=no +fi +rm -f conftest* + +fi + +echo "$ac_t""$fu_cv_sys_mounted_getmntent2" 1>&6 +if test $fu_cv_sys_mounted_getmntent2 = yes; then +list_mounted_fs=found +cat >> confdefs.h <<\EOF +#define MOUNTED_GETMNTENT2 1 +EOF + +fi +fi + +if test -z "$list_mounted_fs"; then +{ echo "configure: error: could not determine how to read list of mounted filesystems" 1>&2; exit 1; } +fi + +fi + +if test -z "$list_mounted_fs"; then +# DEC Alpha running OSF/1. +echo $ac_n "checking for getfsstat function""... $ac_c" 1>&6 +echo "configure:4308: checking for getfsstat function" >&5 +if eval "test \"`echo '$''{'fu_cv_sys_mounted_getsstat'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +#include +int main() { +struct statfs *stats; +int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT); +; return 0; } +EOF +if { (eval echo configure:4324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + fu_cv_sys_mounted_getsstat=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + fu_cv_sys_mounted_getsstat=no +fi +rm -f conftest* +fi + +echo "$ac_t""$fu_cv_sys_mounted_getsstat" 1>&6 +if test $fu_cv_sys_mounted_getsstat = yes; then +list_mounted_fs=found +cat >> confdefs.h <<\EOF +#define MOUNTED_GETFSSTAT 1 +EOF + +fi +fi + +if test -z "$list_mounted_fs"; then +# AIX. +echo $ac_n "checking for mntctl function and struct vmount""... $ac_c" 1>&6 +echo "configure:4349: checking for mntctl function and struct vmount" >&5 +if eval "test \"`echo '$''{'fu_cv_sys_mounted_vmount'+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:4359: \"$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* + fu_cv_sys_mounted_vmount=yes +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + fu_cv_sys_mounted_vmount=no +fi +rm -f conftest* +fi + +echo "$ac_t""$fu_cv_sys_mounted_vmount" 1>&6 +if test $fu_cv_sys_mounted_vmount = yes; then +list_mounted_fs=found +cat >> confdefs.h <<\EOF +#define MOUNTED_VMOUNT 1 +EOF + +fi +fi + +if test -z "$list_mounted_fs"; then +# SVR3 +echo $ac_n "checking for FIXME existence of three headers""... $ac_c" 1>&6 +echo "configure:4387: checking for FIXME existence of three headers" >&5 +if eval "test \"`echo '$''{'fu_cv_sys_mounted_fread_fstyp'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < -#endif -#ifdef HAVE_SYS_STATVFS_H +#include +#include +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:4400: \"$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* + fu_cv_sys_mounted_fread_fstyp=yes +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + fu_cv_sys_mounted_fread_fstyp=no +fi +rm -f conftest* +fi + +echo "$ac_t""$fu_cv_sys_mounted_fread_fstyp" 1>&6 +if test $fu_cv_sys_mounted_fread_fstyp = yes; then +list_mounted_fs=found +cat >> confdefs.h <<\EOF +#define MOUNTED_FREAD_FSTYP 1 +EOF + +fi +fi + +if test -z "$list_mounted_fs"; then +# 4.4BSD and DEC OSF/1. +echo $ac_n "checking for getmntinfo function""... $ac_c" 1>&6 +echo "configure:4428: checking for getmntinfo function" >&5 +if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntinfo'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + +ok= +if test $ac_cv_func_getmntinfo = yes; then +cat > conftest.$ac_ext < +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "f_type;" >/dev/null 2>&1; then + rm -rf conftest* + ok=yes +fi +rm -f conftest* + +fi +test -n "$ok" \ +&& fu_cv_sys_mounted_getmntinfo=yes \ +|| fu_cv_sys_mounted_getmntinfo=no + +fi + +echo "$ac_t""$fu_cv_sys_mounted_getmntinfo" 1>&6 +if test $fu_cv_sys_mounted_getmntinfo = yes; then +list_mounted_fs=found +cat >> confdefs.h <<\EOF +#define MOUNTED_GETMNTINFO 1 +EOF + +fi +fi + +# FIXME: add a test for netbsd-1.1 here + +if test -z "$list_mounted_fs"; then +# Ultrix +echo $ac_n "checking for getmnt function""... $ac_c" 1>&6 +echo "configure:4469: checking for getmnt function" >&5 +if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmnt'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:4481: \"$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* + fu_cv_sys_mounted_getmnt=yes +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + fu_cv_sys_mounted_getmnt=no +fi +rm -f conftest* +fi + +echo "$ac_t""$fu_cv_sys_mounted_getmnt" 1>&6 +if test $fu_cv_sys_mounted_getmnt = yes; then +list_mounted_fs=found +cat >> confdefs.h <<\EOF +#define MOUNTED_GETMNT 1 +EOF + +fi +fi + +if test -z "$list_mounted_fs"; then +# SVR2 +echo $ac_n "checking whether it is possible to resort to fread on /etc/mnttab""... $ac_c" 1>&6 +echo "configure:4509: checking whether it is possible to resort to fread on /etc/mnttab" >&5 +if eval "test \"`echo '$''{'fu_cv_sys_mounted_fread'+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:4519: \"$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* + fu_cv_sys_mounted_fread=yes +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + fu_cv_sys_mounted_fread=no +fi +rm -f conftest* +fi + +echo "$ac_t""$fu_cv_sys_mounted_fread" 1>&6 +if test $fu_cv_sys_mounted_fread = yes; then +list_mounted_fs=found +cat >> confdefs.h <<\EOF +#define MOUNTED_FREAD 1 +EOF + +fi +fi + +if test -z "$list_mounted_fs"; then +{ echo "configure: error: could not determine how to read list of mounted filesystems" 1>&2; exit 1; } +# FIXME -- no need to abort building the whole package +# Can't build mountlist.c or anything that needs its functions +fi + +echo "checking how to get filesystem space usage" 1>&6 +echo "configure:4551: checking how to get filesystem space usage" >&5 +space=no + +# Perform only the link test since it seems there are no variants of the +# statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs) +# because that got a false positive on SCO OSR5. Adding the declaration +# of a `struct statvfs' causes this test to fail (as it should) on such +# systems. That system is reported to work fine with STAT_STATFS4 which +# is what it gets when this test fails. +if test $space = no; then +# SVR4 +echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6 +echo "configure:4563: checking statvfs function (SVR4)" >&5 +if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < #include -#endif int main() { -struct statfs statbuf;statfs("/",&statbuf); +struct statvfs fsd; statvfs (0, &fsd); ; return 0; } EOF -if { (eval echo configure:3426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* - echo "$ac_t""2" 1>&6 -STATFS_NO_ARGS=2 + fu_cv_sys_stat_statvfs=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - echo "$ac_t""4" 1>&6 -STATFS_NO_ARGS=4 + fu_cv_sys_stat_statvfs=no fi rm -f conftest* fi -echo $ac_n "checking whether to use f_bavail or f_bfree""... $ac_c" 1>&6 -echo "configure:3441: checking whether to use f_bavail or f_bfree" >&5 -if [ "x$ac_cv_func_statfs" = "xyes" ]; then +echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6 +if test $fu_cv_sys_stat_statvfs = yes; then +space=yes +cat >> confdefs.h <<\EOF +#define STAT_STATVFS 1 +EOF + +fi +fi + +if test $space = no; then +# DEC Alpha running OSF/1 +echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6 +echo "configure:4601: checking for 3-argument statfs function (DEC OSF/1)" >&5 +if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + fu_cv_sys_stat_statfs3_osf1=no +else cat > conftest.$ac_ext < #include -#endif +#include +main () +{ +struct statfs fsd; +fsd.f_fsize = 0; +exit (statfs (".", &fsd, sizeof (struct statfs))); +} +EOF +if { (eval echo configure:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + fu_cv_sys_stat_statfs3_osf1=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + fu_cv_sys_stat_statfs3_osf1=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6 +if test $fu_cv_sys_stat_statfs3_osf1 = yes; then +space=yes +cat >> confdefs.h <<\EOF +#define STAT_STATFS3_OSF1 1 +EOF + +fi +fi + +if test $space = no; then +# AIX +echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6 +echo "configure:4649: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5 +if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + fu_cv_sys_stat_statfs2_bsize=no +else + cat > conftest.$ac_ext < #endif #ifdef HAVE_SYS_MOUNT_H #include #endif -#ifdef HAVE_SYS_SELECT_H -#include -#endif #ifdef HAVE_SYS_VFS_H #include #endif -#ifdef HAVE_SYS_STATFS_H +main () +{ +struct statfs fsd; +fsd.f_bsize = 0; +exit (statfs (".", &fsd)); +} +EOF +if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + fu_cv_sys_stat_statfs2_bsize=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + fu_cv_sys_stat_statfs2_bsize=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6 +if test $fu_cv_sys_stat_statfs2_bsize = yes; then +space=yes +cat >> confdefs.h <<\EOF +#define STAT_STATFS2_BSIZE 1 +EOF + +fi +fi + +if test $space = no; then +# SVR3 +echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6 +echo "configure:4703: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5 +if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + fu_cv_sys_stat_statfs4=no +else + cat > conftest.$ac_ext < #include +main () +{ +struct statfs fsd; +exit (statfs (".", &fsd, sizeof fsd, 0)); +} +EOF +if { (eval echo configure:4721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + fu_cv_sys_stat_statfs4=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + fu_cv_sys_stat_statfs4=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6 +if test $fu_cv_sys_stat_statfs4 = yes; then +space=yes +cat >> confdefs.h <<\EOF +#define STAT_STATFS4 1 +EOF + +fi +fi + +if test $space = no; then +# 4.4BSD and NetBSD +echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6 +echo "configure:4748: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5 +if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + fu_cv_sys_stat_statfs2_fsize=no +else + cat > conftest.$ac_ext < +#ifdef HAVE_SYS_PARAM_H +#include #endif -#ifdef HAVE_SYS_STATVFS_H -#include +#ifdef HAVE_SYS_MOUNT_H +#include +#endif +main () +{ +struct statfs fsd; +fsd.f_fsize = 0; +exit (statfs (".", &fsd)); +} +EOF +if { (eval echo configure:4772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + fu_cv_sys_stat_statfs2_fsize=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + fu_cv_sys_stat_statfs2_fsize=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6 +if test $fu_cv_sys_stat_statfs2_fsize = yes; then +space=yes +cat >> confdefs.h <<\EOF +#define STAT_STATFS2_FSIZE 1 +EOF + +fi +fi + +if test $space = no; then +# Ultrix +echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6 +echo "configure:4799: checking for two-argument statfs with struct fs_data (Ultrix)" >&5 +if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + fu_cv_sys_stat_fs_data=no +else + cat > conftest.$ac_ext < +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#ifdef HAVE_SYS_MOUNT_H +#include +#endif +#ifdef HAVE_SYS_FS_TYPES_H +#include +#endif +main () +{ +struct fs_data fsd; +/* Ultrix's statfs returns 1 for success, +0 for not mounted, -1 for failure. */ +exit (statfs (".", &fsd) != 1); +} +EOF +if { (eval echo configure:4827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + fu_cv_sys_stat_fs_data=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + fu_cv_sys_stat_fs_data=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6 +if test $fu_cv_sys_stat_fs_data = yes; then +space=yes +cat >> confdefs.h <<\EOF +#define STAT_STATFS2_FS_DATA 1 +EOF + +fi +fi + +if test $space = no; then +# SVR2 +cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:4859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + cat >> confdefs.h <<\EOF +#define STAT_READ_FILSYS 1 +EOF + space=yes +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* +fi + +if test -n "$list_mounted_fs" && test $space != no; then +DF_PROG="df" +LIBOBJS="$LIBOBJS fsusage.o" +LIBOBJS="$LIBOBJS mountlist.o" +fi + +for ac_func in ftruncate +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:4884: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:4912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +ftruncate_missing=yes +fi +done + + +if test "$ftruncate_missing" = yes; then +echo $ac_n "checking fcntl emulation of ftruncate""... $ac_c" 1>&6 +echo "configure:4940: checking fcntl emulation of ftruncate" >&5 +if eval "test \"`echo '$''{'fu_cv_sys_ftruncate_emulation'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include +int main() { + +#if !defined(F_CHSIZE) && !defined(F_FREESP) +chsize(); #endif + +; return 0; } +EOF +if { (eval echo configure:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + fu_cv_sys_ftruncate_emulation=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + fu_cv_sys_ftruncate_emulation=no +fi +rm -f conftest* +fi + +echo "$ac_t""$fu_cv_sys_ftruncate_emulation" 1>&6 +if test $fu_cv_sys_ftruncate_emulation = yes; then +LIBOBJS="$LIBOBJS ftruncate.o" +fi +fi + +case "$LIBOBJS" in +*rename.o*) +MVDIR_PROG="mvdir" +;; +esac + +# Check for SunOS statfs brokenness wrt partitions 2GB and larger. +# If exists and struct statfs has a member named f_spare, +# enable the work-around code in fsusage.c. +echo $ac_n "checking for statfs that truncates block counts""... $ac_c" 1>&6 +echo "configure:4986: checking for statfs that truncates block counts" >&5 +if eval "test \"`echo '$''{'fu_cv_sys_truncating_statfs'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +#include int main() { -struct statfs statbuf;statbuf.f_bavail; +struct statfs t; long c = *(t.f_spare); ; return 0; } EOF -if { (eval echo configure:3473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - echo "$ac_t""f_bavail" 1>&6 -STATBUF_BAVAIL=f_bavail + fu_cv_sys_truncating_statfs=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - echo "$ac_t""f_bfree" 1>&6 -STATBUF_BAVAIL=f_bfree + fu_cv_sys_truncating_statfs=no fi rm -f conftest* fi +if test $fu_cv_sys_truncating_statfs = yes; then +cat >> confdefs.h <<\EOF +#define STATFS_TRUNCATES_BLOCK_COUNTS 1 +EOF + +fi +echo "$ac_t""$fu_cv_sys_truncating_statfs" 1>&6 + +echo "checking for AFS" 1>&6 +echo "configure:5024: checking for AFS" >&5 +test -d /afs && cat >> confdefs.h <<\EOF +#define AFS 1 +EOF + + +fi + +if [ $target = "p.os" ]; then + HAVE_POS=yes +else + echo $ac_n "checking for pOS""... $ac_c" 1>&6 +echo "configure:5036: checking for pOS" >&5 + cat > conftest.$ac_ext <&5 | + egrep "yes" >/dev/null 2>&1; then + rm -rf conftest* + echo "$ac_t""yes" 1>&6; HAVE_POS=yes +else + rm -rf conftest* + echo "$ac_t""no" 1>&6; HAVE_POS=no +fi +rm -f conftest* + +fi + if [ "x$HAVE_NCURSES_LIB" = "xyes" ]; then if [ "x$ac_cv_header_ncurses_h" = "xno" -a "x$ac_cv_header_curses_h" = "xno" ]; then @@ -3492,16 +5062,16 @@ if [ "x$HAVE_NCURSES_LIB" = "xyes" ]; th else if [ "x$ac_cv_header_ncurses_h" = "xno" ]; then echo $ac_n "checking for attr_t in curses.h""... $ac_c" 1>&6 -echo "configure:3496: checking for attr_t in curses.h" >&5 +echo "configure:5066: checking for attr_t in curses.h" >&5 cat > conftest.$ac_ext < int main() { { attr_t a; a = A_NORMAL; } ; return 0; } EOF -if { (eval echo configure:3505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 else @@ -3518,16 +5088,16 @@ fi rm -f conftest* else echo $ac_n "checking for attr_t in ncurses.h""... $ac_c" 1>&6 -echo "configure:3522: checking for attr_t in ncurses.h" >&5 +echo "configure:5092: checking for attr_t in ncurses.h" >&5 cat > conftest.$ac_ext < int main() { { attr_t a; a = A_NORMAL; } ; return 0; } EOF -if { (eval echo configure:3531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 else @@ -3546,8 +5116,81 @@ rm -f conftest* fi fi + +echo $ac_n "checking for pthread library""... $ac_c" 1>&6 +echo "configure:5122: checking for pthread library" >&5 +TMP_SAVE_CFLAGS=$CFLAGS +TMP_SAVE_LIBS=$LIBS +LIBS="$LIBS -lpthread" +cat > conftest.$ac_ext < +#endif +#include +int main() { + +pthread_exit (0); + +; return 0; } +EOF +if { (eval echo configure:5141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + HAVE_PTHREAD_LIB=yes +echo "$ac_t""yes" 1>&6 +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + HAVE_PTHREAD_LIB=no +echo "$ac_t""no" 1>&6 +fi +rm -f conftest* +CFLAGS=$TMP_SAVE_CFLAGS +LIBS=$TMP_SAVE_LIBS + +echo $ac_n "checking for DirectX""... $ac_c" 1>&6 +echo "configure:5157: checking for DirectX" >&5 +TMP_SAVE_CFLAGS=$CFLAGS +TMP_SAVE_LIBS=$LIBS +CFLAGS="$CFLAGS $X_CFLAGS" +LIBS="$LIBS -lddraw" +cat > conftest.$ac_ext < +#endif +#include +#include +int main() { + +LPDIRECTDRAW lpDD; +IDirectDraw_CreateSurface(lpDD, 0, 0, 0); + +; return 0; } +EOF +if { (eval echo configure:5179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + HAVE_DIRECTX=yes +echo "$ac_t""yes" 1>&6 +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + HAVE_DIRECTX=no +echo "$ac_t""no" 1>&6 +fi +rm -f conftest* +CFLAGS=$TMP_SAVE_CFLAGS +LIBS=$TMP_SAVE_LIBS + DO_PROFILING=no -WANT_GGI=dunno WANT_SVGALIB=dunno WANT_ASCIIART=dunno WANT_UI=dunno @@ -3568,12 +5211,6 @@ if test "${with_svgalib+set}" = set; the WANT_SVGALIB=$withval fi -# Check whether --with-ggi or --without-ggi was given. -if test "${with_ggi+set}" = set; then - withval="$with_ggi" - WANT_GGI=$withval -fi - # Check whether --with-asciiart or --without-asciiart was given. if test "${with_asciiart+set}" = set; then withval="$with_asciiart" @@ -3607,8 +5244,8 @@ fi if [ "x$WANT_DGA" = "xyes" ]; then - if [ "x$WANT_SVGALIB" = "xyes" -o "x$WANT_GGI" = "xyes" -o "x$WANT_ASCIIART" = "xyes" ]; then - echo "You can't enable DGA for SVGAlib, GGI and ncurses targets!" + if [ "x$WANT_SVGALIB" = "xyes" -o "x$WANT_ASCIIART" = "xyes" ]; then + echo "You can't enable DGA for SVGAlib and ncurses targets!" NR_ERRORS=`expr $NR_ERRORS + 1` WANT_DGA=no fi @@ -3637,27 +5274,12 @@ if [ "x$WANT_SVGALIB" = "xyes" ]; then fi fi -if [ "x$WANT_GGI" = "xyes" ]; then - if [ "x$HAVE_GGI_LIB" = "xno" ]; then - echo "Could not find libggi, disabling GGI support." - NR_ERRORS=`expr $NR_ERRORS + 1` - WANT_GGI=no - else if [ "x$WANT_SVGALIB" = "xyes" ]; then - echo "You can't configure for both SVGAlib and GGI. Disabling GGI." - NR_ERRORS=`expr $NR_ERRORS + 1` - WANT_GGI=no - else - no_x=yes - fi - fi -fi - if [ "x$WANT_ASCIIART" = "xyes" ]; then if [ "x$HAVE_NCURSES_LIB" = "xno" ]; then echo "Could not find libncurses, disabling ascii art support." NR_ERRORS=`expr $NR_ERRORS + 1` WANT_ASCIIART=no - else if [ "x$WANT_SVGALIB" = "xyes" -o "x$WANT_GGI" = "xyes" ]; then + else if [ "x$WANT_SVGALIB" = "xyes" ]; then echo "You can't configure for both ncurses and another target. Disabling ncurses." NR_ERRORS=`expr $NR_ERRORS + 1` WANT_ASCIIART=no @@ -3672,7 +5294,7 @@ if [ "x$WANT_DGA" = "xyes" ]; then TMP_SAVE_LIBS=$LIBS LIBS="$X_LIBS $LIBS" echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6 -echo "configure:3676: checking for XF86DGAQueryExtension in -lXxf86dga" >&5 +echo "configure:5298: checking for XF86DGAQueryExtension in -lXxf86dga" >&5 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3680,7 +5302,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lXxf86dga $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:5317: \"$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 @@ -3724,7 +5346,7 @@ if [ "x$WANT_VIDMODE" = "xyes" ]; then TMP_SAVE_LIBS=$LIBS LIBS="$X_LIBS $LIBS" echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6 -echo "configure:3728: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5 +echo "configure:5350: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5 ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3732,7 +5354,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lXxf86vm $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:5369: \"$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 @@ -3813,7 +5435,7 @@ fi # 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:3817: checking for $ac_word" >&5 +echo "configure:5439: 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 @@ -3821,9 +5443,13 @@ else /*) 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="${IFS}:" - for ac_dir in $PATH; do + 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_GTK_CONFIG="$ac_dir/$ac_word" @@ -3844,7 +5470,7 @@ fi min_gtk_version=0.99.7 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 -echo "configure:3848: checking for GTK - version >= $min_gtk_version" >&5 +echo "configure:5474: checking for GTK - version >= $min_gtk_version" >&5 no_gtk="" if test "$GTK_CONFIG" = "no" ; then no_gtk=yes @@ -3867,7 +5493,7 @@ echo "configure:3848: checking for GTK - echo $ac_n "cross compiling; assumed OK... $ac_c" else cat > conftest.$ac_ext < @@ -3930,7 +5556,7 @@ main () } EOF -if { (eval echo configure:3934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -3964,7 +5590,7 @@ fi CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS" cat > conftest.$ac_ext < @@ -3974,7 +5600,7 @@ int main() { return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ; return 0; } EOF -if { (eval echo configure:3978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:5604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding GTK or finding the wrong" @@ -4013,28 +5639,17 @@ rm -f conftest* rm -f conf.gtktest -if [ "x$WANT_UI" = "xyes" -a "x$WANT_DGA" = "xyes" ]; then - echo "Can't use a GUI with DGA - disabling DGA." - NR_ERRORS=`expr $NR_ERRORS + 1` - WAMT_DGA=no - WANT_VIDMODE=no -fi - -if [ "x$WANT_DGA" = "xyes" ]; then - WANT_UI=no -fi - SHM_SUPPORT_LINKS=0 -if [ "x$no_x" != "xyes" -a "x$WANT_DGA" != "xyes" -a "x$ac_cv_header_sys_ipc_h" = "xyes" -a "x$ac_cv_header_sys_shm_h" = "xyes" ]; then +if [ "x$no_x" != "xyes" -a "x$ac_cv_header_sys_ipc_h" = "xyes" -a "x$ac_cv_header_sys_shm_h" = "xyes" ]; then echo $ac_n "checking whether the X11 MIT-SHM extension can be compiled in""... $ac_c" 1>&6 -echo "configure:4032: checking whether the X11 MIT-SHM extension can be compiled in" >&5 +echo "configure:5647: checking whether the X11 MIT-SHM extension can be compiled in" >&5 TMP_SAVE_CFLAGS=$CFLAGS TMP_SAVE_LIBS=$LIBS CFLAGS="$CFLAGS $X_CFLAGS" LIBS="$X_LIBS $LIBS $X_PRE_LIBS -lX11 -lXext $X_EXTRA_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:5677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* SHM_SUPPORT_LINKS=1 echo "$ac_t""yes" 1>&6 @@ -4080,9 +5693,16 @@ MATHLIB=-lm DEBUGOBJS="debug.o" echo $ac_n "checking which target to use""... $ac_c" 1>&6 -echo "configure:4084: checking which target to use" >&5 +echo "configure:5697: checking which target to use" >&5 -if [ "x$HAVE_BEOS" = "xyes" ]; then +if [ "x$HAVE_DIRECTX" = "xyes" ]; then + echo "$ac_t""Win32/DirectX" 1>&6 + MATHLIB= + TARGET=win32 + TARGETDEP=t-win32.h + GFXOBJS="osdep/win32.o osdep/win32gui.o osdep/parser.o osdep/keyboard.o osdep/posixemu.o" + RESOBJS="osdep/winuae.res" +else if [ "x$HAVE_BEOS" = "xyes" ]; then echo "$ac_t""BeOS" 1>&6 MATHLIB= TARGET=beos @@ -4113,28 +5733,17 @@ else if [ "x$HAVE_NEXT_LIB" = "xyes" ]; else if [ "x$no_x" = "xyes" ]; then - if [ "x$WANT_SVGALIB" != "xyes" -a "x$WANT_GGI" != "xyes" -a "x$WANT_ASCIIART" != "xyes" ]; then + if [ "x$WANT_SVGALIB" != "xyes" -a "x$WANT_ASCIIART" != "xyes" ]; then if [ "x$WANT_SVGALIB" != "xno" -a "x$HAVE_SVGA_LIB" = "xyes" ]; then WANT_SVGALIB=yes - else if [ "x$WANT_GGI" != "xno" -a "x$HAVE_GGI_LIB" = "xyes" ]; then - WANT_GGI=yes else if [ "x$WANT_ASCIIART" != "xno" -a "x$HAVE_NCURSES_LIB" = "xyes" ]; then WANT_ASCIIART=yes fi fi - fi fi fi - if [ "x$WANT_GGI" = "xyes" ]; then - echo "$ac_t""GGI" 1>&6 - TARGET=ggilib - TARGETDEP=t-ggi.h - WANT_NCURSES_UI=yes - GFXOBJS=ggi.o - LIBRARIES="-ldl -lggi" - LDFLAGS="-rdynamic $LDFLAGS" - else if [ "x$WANT_SVGALIB" = "xyes" ]; then + if [ "x$WANT_SVGALIB" = "xyes" ]; then echo "$ac_t""SVGAlib" 1>&6 TARGET=svgalib TARGETDEP=t-svgalib.h @@ -4180,7 +5789,6 @@ else fi else echo "Using gtk+ GUI." - LIBRARIES="-lgtk -lgdk -lglib $LIBRARIES" NEED_THREAD_SUPPORT=yes ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DUSING_GTK_GUI" GUIOBJS=gtkui.o @@ -4189,7 +5797,7 @@ else fi fi fi - fi +fi fi fi fi @@ -4225,81 +5833,81 @@ OSDEP=od-generic THREADDEP=td-none SOUNDDEP=od-generic -USE_PENGUINS=no +FPP_H=fpp-unknown.h USE_THREADS=no -USE_SOUND=no USE_FILE_SOUND=no +USE_SCSI_DEVICE=no + +USE_UNDERSCORE=dunno -HAVEELF=no HAVELINUX=no +HAVEBSD=no HAVEGCC27=no HAVEI386=no HAVE68K=no +HAVEPPC=no HAVEGLIBC2=no ASMOBJS= CPUOBJS=cpuemu.o echo $ac_n "checking for GCC 2.7 or higher""... $ac_c" 1>&6 -echo "configure:4245: checking for GCC 2.7 or higher" >&5 -cat >conftest.c << EOF -int main() -{ -#if defined(__GNUC__) && defined(__GNUC_MINOR__) -#if __GNUC__ > 2 || __GNUC_MINOR__ > 6 -printf("GNU\n"); -#endif +echo "configure:5856: checking for GCC 2.7 or higher" >&5 +cat > conftest.$ac_ext < 1 || __GNUC_MINOR__ - 1 > 5 + yes #endif -return 0; -} -EOF -$CC conftest.c -c -o conftest.o -$CC conftest.o -o conftest -./conftest >conftest.file -if grep GNU conftest.file >/dev/null; then - echo "$ac_t""yes" 1>&6 - HAVEGCC27=yes +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "yes" >/dev/null 2>&1; then + rm -rf conftest* + echo "$ac_t""yes" 1>&6; HAVEGCC27=yes else + rm -rf conftest* echo "$ac_t""no" 1>&6 - if [ "x$CC" = "xgcc" ]; then +fi +rm -f conftest* + + +if test $ac_cv_prog_gcc = yes; then + if test $HAVEGCC27 != yes; then echo "I suggest you upgrade to at least version 2.7 of GCC" - else + fi +else + if test $uae_cv_prog_cc_watcom != yes; then echo "Couldn't find GCC. UAE may or may not compile and run correctly." NR_WARNINGS=`expr $NR_WARNINGS + 1` fi fi -echo $ac_n "checking for glibc-2.0 or higher""... $ac_c" 1>&6 -echo "configure:4275: checking for glibc-2.0 or higher" >&5 if [ "x$ac_cv_header_features_h" = "xyes" ]; then - cat >conftest.c << EOF + echo $ac_n "checking for glibc-2.0 or higher""... $ac_c" 1>&6 +echo "configure:5889: checking for glibc-2.0 or higher" >&5 + cat > conftest.$ac_ext < -int main() -{ -#if defined(__GLIBC__) -#if __GLIBC__ >= 2 -printf("GNU\n"); -#endif +#if __GLIBC__ - 1 >= 1 + yes #endif -return 0; -} -EOF - $CC conftest.c -c -o conftest.o - $CC conftest.o -o conftest - ./conftest >conftest.file - if grep GNU conftest.file >/dev/null; then - HAVEGLIBC2=yes - echo "$ac_t""yes" 1>&6 - else - echo "$ac_t""no" 1>&6 - fi +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "yes" >/dev/null 2>&1; then + rm -rf conftest* + echo "$ac_t""yes" 1>&6; HAVEGLIBC2=yes else + rm -rf conftest* echo "$ac_t""no" 1>&6 fi +rm -f conftest* + +fi -if [ "x$CC" = "xgcc" ]; then +if test $ac_cv_prog_gcc = yes; then WARNING_CFLAGS="-Wall -Wno-unused -Wno-format -W -Wmissing-prototypes -Wstrict-prototypes" OPTIMIZE_CFLAGS="-O2 -fomit-frame-pointer" CFLAGS= @@ -4325,33 +5933,72 @@ else CFLAGS="$CFLAGS -DGCCCONSTFUNC=" fi -cat >conftest.c << EOF -int main() -{ +echo $ac_n "checking for x86 target CPU""... $ac_c" 1>&6 +echo "configure:5938: checking for x86 target CPU" >&5 +cat > conftest.$ac_ext <&5 | + egrep "yes" >/dev/null 2>&1; then + rm -rf conftest* + echo "$ac_t""yes" 1>&6; HAVEI386=yes +else + rm -rf conftest* + echo "$ac_t""no" 1>&6 +fi +rm -f conftest* + -$CC conftest.c -c -o conftest.o -$CC conftest.o -o conftest -./conftest >conftest.file -if grep 386 conftest.file >/dev/null; then - HAVEI386=yes - echo "You seem to be using a x86 CPU (UAE will require a 486 to run)" -else if grep 68k conftest.file >/dev/null; then - HAVE68K=yes - echo "You seem to be using a 68k CPU." +echo $ac_n "checking for m68k target CPU""... $ac_c" 1>&6 +echo "configure:5960: checking for m68k target CPU" >&5 +cat > conftest.$ac_ext <&5 | + egrep "yes" >/dev/null 2>&1; then + rm -rf conftest* + echo "$ac_t""yes" 1>&6; HAVE68K=yes else - echo "No special hacks for your CPU, sorry." -fi; fi + rm -rf conftest* + echo "$ac_t""no" 1>&6 +fi +rm -f conftest* + + +echo $ac_n "checking for ppc target CPU""... $ac_c" 1>&6 +echo "configure:5982: checking for ppc target CPU" >&5 +cat > conftest.$ac_ext <&5 | + egrep "yes" >/dev/null 2>&1; then + rm -rf conftest* + echo "$ac_t""yes" 1>&6; HAVEPPC=yes +else + rm -rf conftest* + echo "$ac_t""no" 1>&6 +fi rm -f conftest* + if MACHINE=`uname -a 2>/dev/null`; then case "$MACHINE" in Linux*) @@ -4361,30 +6008,29 @@ if MACHINE=`uname -a 2>/dev/null`; then fi -echo $ac_n "checking whether we are on an ELF system""... $ac_c" 1>&6 -echo "configure:4366: checking whether we are on an ELF system" >&5 - -if [ "x$SYSTEM_IS_ELF" = "xdunno" ]; then - cat >conftest.c << EOF -int main() { return 0; } +echo $ac_n "checking whether assembler symbols need an underscore""... $ac_c" 1>&6 +echo "configure:6013: checking whether assembler symbols need an underscore" >&5 +cat >conftest1.S << EOF + .text + .globl _symbol +_symbol: +EOF +cat >conftest2.c << EOF +extern void symbol (); +int main () +{ +symbol (); +} EOF - - gcc conftest.c -o conftest - if [ "x$FILEPRG" = "xnot-found" ]; then - cp conftest conftest.file - else - $FILEPRG conftest >conftest.file - fi - if grep ELF conftest.file >/dev/null; then - HAVEELF=yes - echo "$ac_t""yes" 1>&6 - else - echo "$ac_t""no" 1>&6 - fi +$CC conftest1.S -c -o conftest1.o >/dev/null 2>&1 +$CC conftest2.c -c -o conftest2.o >/dev/null 2>&1 +if $CC conftest1.o conftest2.o -o conftest >/dev/null 2>&1; then + USE_UNDERSCORE=yes + CFLAGS="$CFLAGS -DUSE_UNDERSCORE" else - echo "$ac_t""overriden: $SYSTEM_IS_ELF" 1>&6 - HAVEELF=$SYSTEM_IS_ELF + USE_UNDERSCORE=no fi +echo "$ac_t""$USE_UNDERSCORE" 1>&6 rm -f conftest* @@ -4394,20 +6040,14 @@ if test "${enable_threads+set}" = set; t USE_THREADS=$enableval fi -# Check whether --enable-penguins or --disable-penguins was given. -if test "${enable_penguins+set}" = set; then - enableval="$enable_penguins" - USE_PENGUINS=$enableval -fi - if [ "x$NEED_THREAD_SUPPORT" = "xyes" ]; then - if [ "x$USE_THREADS" != "xyes" -a "x$USE_PENGUINS" != "xyes" ]; then + if [ "x$USE_THREADS" != "xyes" ]; then echo "The gtk+ GUI needs threads; enabling thread support." fi fi -if [ "x$USE_THREADS" = "xyes" -o "x$USE_PENGUINS" = "xyes" -o "x$NEED_THREAD_SUPPORT" = "xyes" ]; then +if [ "x$USE_THREADS" = "xyes" -o "x$NEED_THREAD_SUPPORT" = "xyes" ]; then if [ "x$HAVE_PTHREAD_LIB" = "xyes" ]; then THREADDEP=td-posix CFLAGS="$CFLAGS -DSUPPORT_THREADS -D_REENTRANT" @@ -4419,16 +6059,9 @@ if [ "x$USE_THREADS" = "xyes" -o "x$USE_ if [ "x$USE_THREADS" = "xyes" ]; then CFLAGS="$CFLAGS -DUAE_FILESYS_THREADS" fi - if [ "x$USE_PENGUINS" = "xyes" ]; then - CFLAGS="$CFLAGS -DSUPPORT_PENGUINS" - fi if [ "x$HAVELINUX" = "xno" -o "x$HAVEGLIBC2" = "xno" ]; then - echo "*** Thread support has only been tested on Linux systems with glibc-2.0" - echo "*** There are known problems with libc5-based Linux systems and threads!" - if [ "x$NEED_THREAD_SUPPORT" = "xyes" ]; then - echo "*** Use 'configure --disable-ui' if you have problems." - fi + echo "Thread support has only been tested on Linux systems with glibc-2.0" NR_WARNINGS=`expr $NR_WARNINGS + 1` fi if [ "x$TARGET" = "xsvgalib" ]; then @@ -4447,14 +6080,14 @@ if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI3 SAVECFLAGS=$CFLAGS CFLAGS="$CFLAGS -mno-schedule-prologue" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* NO_SCHED_CFLAGS="-mno-schedule-prologue" else @@ -4465,20 +6098,42 @@ rm -f conftest* CFLAGS=$SAVECFLAGS fi +if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" ]; then + SAVECFLAGS=$CFLAGS + CFLAGS="$CFLAGS -mpreferred-stack-boundary=2" + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + SAVECFLAGS=$CFLAGS +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* + CFLAGS=$SAVECFLAGS +fi + if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" ]; then SAVECFLAGS=$CFLAGS CFLAGS="$CFLAGS -fno-exceptions" NOEXCEPTIONS=no cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* NOEXCEPTIONS=yes else @@ -4495,17 +6150,30 @@ fi if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" -a "x$DO_PROFILING" = "xno" ]; then MACHDEP=md-i386-gcc - CFLAGS="$CFLAGS -DX86_ASSEMBLY -DUNALIGNED_PROFITABLE -fno-strength-reduce -DREGPARAM=\"__attribute__((regparm(3)))\"" - ASMOBJS=machdep/X86.o - CPUOBJS="cpufast.o" - if [ "x$HAVEELF" != "xyes" ]; then - CFLAGS="$CFLAGS -DUSE_UNDERSCORE" + CFLAGS="$CFLAGS -DUNALIGNED_PROFITABLE -fno-strength-reduce -DREGPARAM=\"__attribute__((regparm(3)))\"" + + CFLAGS="$CFLAGS -DX86_ASSEMBLY -DOPTIMIZED_FLAGS" + ASMOBJS=md-X86.o + CPUOBJS=cpufast.o +else if test $uae_cv_prog_cc_watcom = yes; then + MACHDEP=md-i386-watcom + echo CFLAGS before: $CFLAGS + CFLAGS=`echo $CFLAGS | sed 's, -g , ,' |sed 's,^-g ,,'` + CFLAGS="$CFLAGS --/--bm --/--mf --/--w4 --/--s --/--ei --/--zp4 --/--5r" + CFLAGS="$CFLAGS --/--oe=50 --/--oi --/--ok --/--ol --/--ot --/--oh --/--or --/--zq" + CFLAGS="$CFLAGS -DREGPARAM= -DUNALIGNED_PROFITABLE" + echo CFLAGS after: $CFLAGS +else if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEPPC" = "xyes" ]; then + MACHDEP=md-ppc-gcc + CFLAGS="$CFLAGS -DREGPARAM=" + if [ "x$HAVE_MOTO_LIB" = "xyes" ]; then + MATHLIB="-lmoto $MATHLIB" fi else if [ "x$TARGET" = "xp_os" ]; then CPU=`uname -m` if [ "x$CPU" = "xm68k" ]; then MACHDEP=md-68k - CFLAGS="$CFLAGS -DREGPARAM=\"__attribute__((regparm(4)))\" -DM68K_FLAG_OPT=1" + CFLAGS="$CFLAGS -DUNALIGNED_PROFITABLE -DREGPARAM=\"__attribute__((regparm(4)))\" -DM68K_FLAG_OPT=1" else if [ "x$CPU" = "xppc" ]; then MACHDEP=md-ppc CFLAGS="$CFLAGS -DREGPARAM=" @@ -4521,15 +6189,20 @@ else if [ "x$TARGET" = "xp_os" ]; then CFLAGS="$CFLAGS -nostdinc -I/gg/include -I/p/../inc -D__POS__" OSDEP=od-pos CPUOBJS="cpufast.o" -else if [ "x$HAVEGCC27" = "xyes" -a "x$HAVE68K" = "xyes" -a "x$TARGET" = "xamigaos" ]; then - MACHDEP=md-68k - OSDEP=od-amiga - CFLAGS="$CFLAGS -DREGPARAM=\"__attribute__((regparm(4)))\" -DM68K_FLAG_OPT=1" - CPUOBJS="cpufast.o" -else if [ "x$TARGET" = "xamigaos" ]; then - MACHDEP=md-generic +else if [ "x$TARGET" = "xamigaos" ]; then OSDEP=od-amiga - CFLAGS="$CFLAGS -DREGPARAM=" + CPU=`uname -m` + if [ "x$HAVEGCC27" = "xyes" -a "x$HAVE68K" = "xyes" ]; then + MACHDEP=md-68k + CFLAGS="$CFLAGS -DUNALIGNED_PROFITABLE -DREGPARAM=\"__attribute__((regparm(4)))\" -DM68K_FLAG_OPT=1" + CPUOBJS="cpufast1.o cpufast2.o cpufast3.o cpufast4.o cpufast5.o cpufast6.o cpufast7.o cpufast8.o" + else if [ "x$HAVEGCC27" = "xyes" -a "x$CPU" = "xppc" ]; then + MACHDEP=md-ppc-gcc + else + CFLAGS="$CFLAGS -O -DREGPARAM=" + CPUOBJS="cpuemu1.o cpuemu2.o cpuemu3.o cpuemu4.o cpuemu5.o cpuemu6.o cpuemu7.o cpuemu8.o" + fi + fi else if [ "x$HAVEGCC27" = "xyes" -a "x$HAVE68K" = "xyes" -a "x$DO_PROFILING" = "xno" ]; then MACHDEP=md-68k CFLAGS="$CFLAGS -DM68K_FLAG_OPT=1 -DREGPARAM=" @@ -4546,25 +6219,32 @@ fi fi fi fi +fi -if [ "x$HAVELINUX" = "xyes" ]; then - OSDEP=od-linux - if [ "x$HAVEGLIBC2" = "xyes" -a "x$HAVEI386" = "xyes" ]; then - CFLAGS="$CFLAGS -DHAVE_GLIBC_2_LINUX" +if [ "x$TARGET" = "xwin32" ]; then + OSDEP=od-win32 + if test $ac_cv_prog_gcc = yes; then + LIBS="$LIBS -lddraw -lwinmm -lcomctl32 -lcomdlg32 -luser32 -lgdi32 -lkernel32 -ladvapi32 -lshell32" + else if test $uae_cv_prog_cc_watcom = yes; then + LIBS="$LIBS -lddraw -lwinmm -lcomctl32" fi + fi +else if [ "x$HAVELINUX" = "xyes" ]; then + OSDEP=od-linux +fi fi if [ "x$TARGET" = "xx11" -o "x$TARGET" = "xsvgalib" -o "x$TARGET" = "xamigaos" \ - -o "x$TARGET" = "xbeos" -o "x$TARGET" = "xasciiart" -o "x$TARGET" = "xggilib" -o "x$TARGET" = "xp_os" ]; then + -o "x$TARGET" = "xbeos" -o "x$TARGET" = "xasciiart" -o "x$TARGET" = "xp_os" ]; then CFLAGS="$CFLAGS -DUSE_ZFILE" fi HAVE_USS_SOUND=no if [ "x$ac_cv_header_sys_soundcard_h" = "xyes" -o "x$ac_cv_header_machine_soundcard_h" = "xyes" ]; then echo $ac_n "checking whether sys/soundcard.h or machine/soundcard.h works""... $ac_c" 1>&6 -echo "configure:4566: checking whether sys/soundcard.h or machine/soundcard.h works" >&5 +echo "configure:6246: checking whether sys/soundcard.h or machine/soundcard.h works" >&5 cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 HAVE_USS_SOUND=yes @@ -4592,14 +6272,12 @@ fi rm -f conftest* fi -echo $ac_n "checking which sound system to use""... $ac_c" 1>&6 -echo "configure:4597: checking which sound system to use" >&5 -# Check whether --enable-sound or --disable-sound was given. -if test "${enable_sound+set}" = set; then - enableval="$enable_sound" - USE_SOUND=$enableval +if [ "x$ac_cv_header_dmedia_audio.h" = "xno" ]; then + HAVE_SGIAUDIO_LIB=no fi +echo $ac_n "checking which sound system to use""... $ac_c" 1>&6 +echo "configure:6281: checking which sound system to use" >&5 # Check whether --enable-file-sound or --disable-file-sound was given. if test "${enable_file_sound+set}" = set; then enableval="$enable_file_sound" @@ -4608,67 +6286,156 @@ fi if [ "x$USE_FILE_SOUND" = "xyes" ]; then + echo "$ac_t""file output" 1>&6 + SOUNDDEP=sd-file + USE_SOUND=yes +else if [ "x$HAVE_USS_SOUND" = "xyes" ]; then + echo "$ac_t""USS" 1>&6 + SOUNDDEP=sd-uss + USE_SOUND=yes +else if [ "x$ac_cv_header_sys_audioio_h" = "xyes" -o "x$ac_cv_header_sun_audioio_h" = "xyes" ]; then + echo "$ac_t""Solaris/NetBSD" 1>&6 + SOUNDDEP=sd-solaris + USE_SOUND=yes +else if [ "x$HAVE_AF_LIB" = "xyes" ]; then + echo "$ac_t""AF sound" 1>&6 + SOUNDDEP=sd-af + LIBS="$LIBS -lAF" + USE_SOUND=yes +else if [ "x$HAVE_SGIAUDIO_LIB" = "xyes" ]; then + echo "$ac_t""SGI sound" 1>&6 + SOUNDDEP=sd-sgi + LIBS="$LIBS -laudio" USE_SOUND=yes +else if [ "x$HAVE_MME_LIB" = "xyes" ]; then + echo "$ac_t""MME sound" 1>&6 + SOUNDDEP=sd-mme + LIBS="$LIBS -lmme" + USE_SOUND=yes +else if [ "x$TARGET" = "xp_os" ]; then + echo "$ac_t""pAudio.device" 1>&6 + SOUNDDEP=od-pos + USE_SOUND=yes +else if [ "x$TARGET" = "xamigaos" ]; then + if [ "x$ac_cv_header_devices_ahi_h" = "xyes" ]; then + echo "$ac_t""Amiga AHI.device" 1>&6 + else + echo "$ac_t""Amiga audio.device" 1>&6 + fi + SOUNDDEP=od-amiga + USE_SOUND=yes +else if [ "x$TARGET" = "xbeos" ]; then + echo "$ac_t""BeOS sound" 1>&6 + SOUNDDEP=od-beos + USE_SOUND=yes +else if [ "x$TARGET" = "xwin32" ]; then + echo "$ac_t""Win32 sound" 1>&6 + SOUNDDEP=od-win32 + USE_SOUND=yes +else + echo "no known sound system found" + NR_ERRORS=`expr $NR_ERRORS + 1` +fi +fi +fi +fi +fi +fi +fi +fi +fi +fi + +SCSIOBJS=scsi-none.o +# Check whether --enable-scsi-device or --disable-scsi-device was given. +if test "${enable_scsi_device+set}" = set; then + enableval="$enable_scsi_device" + USE_SCSI_DEVICE=$enableval fi -if [ "x$USE_SOUND" = "xno" ]; then - echo "$ac_t""sound not enabled" 1>&6 +if [ "x$USE_SCSI_DEVICE" = "xyes" ]; then + echo $ac_n "checking "availability of libscg headers and lib"""... $ac_c" 1>&6 +echo "configure:6359: checking "availability of libscg headers and lib"" >&5 + OLDLIBS="$LIBS" + OLDCFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -Isrc/include" + LIBS="-Lsrc $LIBS -lscg -lschily" + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + + echo "$ac_t""available" 1>&6 + SCSIOBJS=scsidev.o + else - if [ "x$USE_FILE_SOUND" = "xyes" ]; then - echo "$ac_t""file output" 1>&6 - SOUNDDEP=sd-file - USE_SOUND=yes - else if [ "x$HAVE_USS_SOUND" = "xyes" ]; then - echo "$ac_t""USS" 1>&6 - SOUNDDEP=sd-uss - USE_SOUND=yes - else if [ "x$ac_cv_header_sys_audioio_h" = "xyes" -o "x$ac_cv_header_sun_audioio_h" = "xyes" ]; then - echo "$ac_t""Solaris/NetBSD" 1>&6 - SOUNDDEP=sd-solaris - USE_SOUND=yes - else if [ "x$HAVE_AF_LIB" = "xyes" ]; then - echo "$ac_t""AF sound" 1>&6 - SOUNDDEP=sd-af - USE_SOUND=yes - else if [ "x$TARGET" = "xp_os" ]; then - echo "$ac_t""pAudio.device" 1>&6 - SOUNDDEP=od-pos - USE_SOUND=yes - else if [ "x$TARGET" = "xamigaos" ]; then - echo "$ac_t""Amiga audio.device" 1>&6 - SOUNDDEP=od-amiga - USE_SOUND=yes - else if [ "x$TARGET" = "xbeos" ]; then - echo "$ac_t""BeOS sound" 1>&6 - SOUNDDEP=od-beos - USE_SOUND=yes - else - echo "no known sound system found" - NR_ERRORS=`expr $NR_ERRORS + 1` - fi - fi - fi - fi - fi - fi - fi + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + echo "$ac_t""not available" 1>&6 + NR_WARNINGS=`expr $NR_WARNINGS + 1` + echo "Please refer to the UAE SCSI device section in docs/README for installation instructions." + LIBS="$OLDLIBS" + +fi +rm -f conftest* + CFLAGS="$OLDCFLAGS" +fi + + +if [ "x$HAVE_MACHINE_JOYSTICK_H" = "xyes" ]; then + cat > conftest.$ac_ext < +int main() { +{ struct joystick a; } +; return 0; } +EOF +if { (eval echo configure:6406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + OD_JOYSTICK=od-linux/joystick.c +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* +else + OD_JOYSTICK=$OSDEP/joystick.c fi rm -f src/machdep rm -f src/osdep rm -f src/threaddep rm -f src/sounddep +rm -f src/scsidep rm -f src/target.h +rm -f src/config.h +rm -f src/sd-sound.c +rm -f src/od-joy.c +rm -f src/md-support.c +rm -f src/md-X86.S +rm -f src/scsi-support.c if [ "x$TARGET" = "xamigaos" -o "x$TARGET" = "xp_os" ]; then echo $ac_n "checking which CPU to use""... $ac_c" 1>&6 -echo "configure:4666: checking which CPU to use" >&5 +echo "configure:6433: checking which CPU to use" >&5 cpu=`cpu | cut -d' ' -f2` echo "$ac_t""$cpu" 1>&6 CFLAGS="$CFLAGS -m$cpu" echo $ac_n "checking which FPU to use""... $ac_c" 1>&6 -echo "configure:4672: checking which FPU to use" >&5 +echo "configure:6439: checking which FPU to use" >&5 fpu=`cpu | cut -d' ' -f3 | grep '^688812$'` if [ "x$fpu" != "x" ]; then echo "$ac_t""68881" 1>&6 @@ -4694,6 +6461,7 @@ fi + trap '' 1 2 15 cat > confcache <<\EOF # This file is a shell script that caches the results of configure @@ -4717,7 +6485,7 @@ EOF # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. (set) 2>&1 | - case `(ac_space=' '; set) 2>&1` in + case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote substitution # turns \\\\ into \\, and sed turns \\ into \). @@ -4784,7 +6552,7 @@ do echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.12" + echo "$CONFIG_STATUS generated by autoconf version 2.13" exit 0 ;; -help | --help | --hel | --he | --h) echo "\$ac_cs_usage"; exit 0 ;; @@ -4803,9 +6571,11 @@ sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF $ac_vpsub $extrasub +s%@SHELL@%$SHELL%g s%@CFLAGS@%$CFLAGS%g s%@CPPFLAGS@%$CPPFLAGS%g s%@CXXFLAGS@%$CXXFLAGS%g +s%@FFLAGS@%$FFLAGS%g s%@DEFS@%$DEFS%g s%@LDFLAGS@%$LDFLAGS%g s%@LIBS@%$LIBS%g @@ -4827,7 +6597,11 @@ s%@mandir@%$mandir%g s%@CC@%$CC%g s%@CPP@%$CPP%g s%@SET_MAKE@%$SET_MAKE%g +s%@MAKEDEPPRG@%$MAKEDEPPRG%g s%@FILEPRG@%$FILEPRG%g +s%@WRCPRG@%$WRCPRG%g +s%@RCLPRG@%$RCLPRG%g +s%@EXEEXT@%$EXEEXT%g s%@X_CFLAGS@%$X_CFLAGS%g s%@X_PRE_LIBS@%$X_PRE_LIBS%g s%@X_LIBS@%$X_LIBS%g @@ -4837,13 +6611,14 @@ s%@GTK_CONFIG@%$GTK_CONFIG%g s%@GTK_CFLAGS@%$GTK_CFLAGS%g s%@GTK_LIBS@%$GTK_LIBS%g s%@ac_cv_c_inline@%$ac_cv_c_inline%g +s%@WRC@%$WRC%g s%@NO_SCHED_CFLAGS@%$NO_SCHED_CFLAGS%g -s%@STATFS_NO_ARGS@%$STATFS_NO_ARGS%g -s%@STATBUF_BAVAIL@%$STATBUF_BAVAIL%g s%@LIBRARIES@%$LIBRARIES%g s%@TARGET@%$TARGET%g s%@GFXOBJS@%$GFXOBJS%g +s%@RESOBJS@%$RESOBJS%g s%@ASMOBJS@%$ASMOBJS%g +s%@SCSIOBJS@%$SCSIOBJS%g s%@CPUOBJS@%$CPUOBJS%g s%@DEBUGOBJS@%$DEBUGOBJS%g s%@MATHLIB@%$MATHLIB%g @@ -5069,20 +6844,36 @@ if [ "x$DO_PROFILING" = "xyes" ]; then fi -tmp_save_dir=`pwd` -cd $srcdir -abssrcdir=`pwd` -cd $tmp_save_dir - - +if test -f $abssrcdir/src/target.h +then + echo + echo "Fatal error: Can't configure in the current directory, because" + echo "configure was run in the source directory. Go to the source" + echo "directory, type" + echo " make streifenfrei" + echo "and try again." + exit 1 +fi ln -s $abssrcdir/src/$MACHDEP src/machdep ln -s $abssrcdir/src/$OSDEP src/osdep ln -s $abssrcdir/src/$THREADDEP src/threaddep ln -s $abssrcdir/src/$SOUNDDEP src/sounddep -ln -s $abssrcdir/src/targets/$TARGETDEP src/target.h + +echo "#include \"$abssrcdir/src/targets/$TARGETDEP\"" > src/target.h +echo "#include \"$abssrcdir/config.h\"" > src/config.h + +echo "#include \"$abssrcdir/src/$SOUNDDEP/sound.c\"" >src/sd-sound.c +echo "#include \"$abssrcdir/src/$OD_JOYSTICK\"" >src/od-joy.c +echo "#include \"$abssrcdir/src/$MACHDEP/support.c\"" >src/md-support.c + +if [ "x$MACHDEP" = "xmd-i386-gcc" ]; then + echo "#include \"machdep/X86.S\"" >src/md-X86.S +fi +echo "#include \"$abssrcdir/src/include/$FPP_H\"" >src/md-fpp.h + echo echo