ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/configure
(Generate patch)

Comparing BasiliskII/src/Unix/configure (file contents):
Revision 1.1 by cebix, 1999-10-03T14:16:25Z vs.
Revision 1.5 by cebix, 1999-10-15T14:50:28Z

# Line 773 | Line 773 | else
773    fi
774   fi
775  
776 + echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
777 + echo "configure:778: checking how to run the C preprocessor" >&5
778 + # On Suns, sometimes $CPP names a directory.
779 + if test -n "$CPP" && test -d "$CPP"; then
780 +  CPP=
781 + fi
782 + if test -z "$CPP"; then
783 + if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
784 +  echo $ac_n "(cached) $ac_c" 1>&6
785 + else
786 +    # This must be in double quotes, not single quotes, because CPP may get
787 +  # substituted into the Makefile and "${CC-cc}" will confuse make.
788 +  CPP="${CC-cc} -E"
789 +  # On the NeXT, cc -E runs the code through the compiler's parser,
790 +  # not just through cpp.
791 +  cat > conftest.$ac_ext <<EOF
792 + #line 793 "configure"
793 + #include "confdefs.h"
794 + #include <assert.h>
795 + Syntax Error
796 + EOF
797 + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
798 + { (eval echo configure:799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
799 + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
800 + if test -z "$ac_err"; then
801 +  :
802 + else
803 +  echo "$ac_err" >&5
804 +  echo "configure: failed program was:" >&5
805 +  cat conftest.$ac_ext >&5
806 +  rm -rf conftest*
807 +  CPP="${CC-cc} -E -traditional-cpp"
808 +  cat > conftest.$ac_ext <<EOF
809 + #line 810 "configure"
810 + #include "confdefs.h"
811 + #include <assert.h>
812 + Syntax Error
813 + EOF
814 + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
815 + { (eval echo configure:816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
816 + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
817 + if test -z "$ac_err"; then
818 +  :
819 + else
820 +  echo "$ac_err" >&5
821 +  echo "configure: failed program was:" >&5
822 +  cat conftest.$ac_ext >&5
823 +  rm -rf conftest*
824 +  CPP="${CC-cc} -nologo -E"
825 +  cat > conftest.$ac_ext <<EOF
826 + #line 827 "configure"
827 + #include "confdefs.h"
828 + #include <assert.h>
829 + Syntax Error
830 + EOF
831 + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
832 + { (eval echo configure:833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
833 + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
834 + if test -z "$ac_err"; then
835 +  :
836 + else
837 +  echo "$ac_err" >&5
838 +  echo "configure: failed program was:" >&5
839 +  cat conftest.$ac_ext >&5
840 +  rm -rf conftest*
841 +  CPP=/lib/cpp
842 + fi
843 + rm -f conftest*
844 + fi
845 + rm -f conftest*
846 + fi
847 + rm -f conftest*
848 +  ac_cv_prog_CPP="$CPP"
849 + fi
850 +  CPP="$ac_cv_prog_CPP"
851 + else
852 +  ac_cv_prog_CPP="$CPP"
853 + fi
854 + echo "$ac_t""$CPP" 1>&6
855 +
856   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
857   do
858   # Extract the first word of "$ac_prog", so it can be a program name with args.
859   set dummy $ac_prog; ac_word=$2
860   echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
861 < echo "configure:782: checking for $ac_word" >&5
861 > echo "configure:862: checking for $ac_word" >&5
862   if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
863    echo $ac_n "(cached) $ac_c" 1>&6
864   else
# Line 810 | Line 890 | test -n "$CXX" || CXX="gcc"
890  
891  
892   echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
893 < echo "configure:814: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
893 > echo "configure:894: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
894  
895   ac_ext=C
896   # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
# Line 821 | Line 901 | cross_compiling=$ac_cv_prog_cxx_cross
901  
902   cat > conftest.$ac_ext << EOF
903  
904 < #line 825 "configure"
904 > #line 905 "configure"
905   #include "confdefs.h"
906  
907   int main(){return(0);}
908   EOF
909 < if { (eval echo configure:830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
909 > if { (eval echo configure:910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
910    ac_cv_prog_cxx_works=yes
911    # If we can't run a trivial program, we are probably using a cross compiler.
912    if (./conftest; exit) 2>/dev/null; then
# Line 852 | Line 932 | if test $ac_cv_prog_cxx_works = no; then
932    { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
933   fi
934   echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
935 < echo "configure:856: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
935 > echo "configure:936: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
936   echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
937   cross_compiling=$ac_cv_prog_cxx_cross
938  
939   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
940 < echo "configure:861: checking whether we are using GNU C++" >&5
940 > echo "configure:941: checking whether we are using GNU C++" >&5
941   if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
942    echo $ac_n "(cached) $ac_c" 1>&6
943   else
# Line 866 | Line 946 | else
946    yes;
947   #endif
948   EOF
949 < if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
949 > if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
950    ac_cv_prog_gxx=yes
951   else
952    ac_cv_prog_gxx=no
# Line 885 | Line 965 | ac_test_CXXFLAGS="${CXXFLAGS+set}"
965   ac_save_CXXFLAGS="$CXXFLAGS"
966   CXXFLAGS=
967   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
968 < echo "configure:889: checking whether ${CXX-g++} accepts -g" >&5
968 > echo "configure:969: checking whether ${CXX-g++} accepts -g" >&5
969   if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
970    echo $ac_n "(cached) $ac_c" 1>&6
971   else
# Line 916 | Line 996 | else
996    fi
997   fi
998  
919 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
920 echo "configure:921: checking how to run the C preprocessor" >&5
921 # On Suns, sometimes $CPP names a directory.
922 if test -n "$CPP" && test -d "$CPP"; then
923  CPP=
924 fi
925 if test -z "$CPP"; then
926 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
927  echo $ac_n "(cached) $ac_c" 1>&6
928 else
929    # This must be in double quotes, not single quotes, because CPP may get
930  # substituted into the Makefile and "${CC-cc}" will confuse make.
931  CPP="${CC-cc} -E"
932  # On the NeXT, cc -E runs the code through the compiler's parser,
933  # not just through cpp.
934  cat > conftest.$ac_ext <<EOF
935 #line 936 "configure"
936 #include "confdefs.h"
937 #include <assert.h>
938 Syntax Error
939 EOF
940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
941 { (eval echo configure:942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
943 if test -z "$ac_err"; then
944  :
945 else
946  echo "$ac_err" >&5
947  echo "configure: failed program was:" >&5
948  cat conftest.$ac_ext >&5
949  rm -rf conftest*
950  CPP="${CC-cc} -E -traditional-cpp"
951  cat > conftest.$ac_ext <<EOF
952 #line 953 "configure"
953 #include "confdefs.h"
954 #include <assert.h>
955 Syntax Error
956 EOF
957 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
958 { (eval echo configure:959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
959 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
960 if test -z "$ac_err"; then
961  :
962 else
963  echo "$ac_err" >&5
964  echo "configure: failed program was:" >&5
965  cat conftest.$ac_ext >&5
966  rm -rf conftest*
967  CPP="${CC-cc} -nologo -E"
968  cat > conftest.$ac_ext <<EOF
969 #line 970 "configure"
970 #include "confdefs.h"
971 #include <assert.h>
972 Syntax Error
973 EOF
974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
975 { (eval echo configure:976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
977 if test -z "$ac_err"; then
978  :
979 else
980  echo "$ac_err" >&5
981  echo "configure: failed program was:" >&5
982  cat conftest.$ac_ext >&5
983  rm -rf conftest*
984  CPP=/lib/cpp
985 fi
986 rm -f conftest*
987 fi
988 rm -f conftest*
989 fi
990 rm -f conftest*
991  ac_cv_prog_CPP="$CPP"
992 fi
993  CPP="$ac_cv_prog_CPP"
994 else
995  ac_cv_prog_CPP="$CPP"
996 fi
997 echo "$ac_t""$CPP" 1>&6
998
999   echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1000   echo "configure:1001: checking whether ${MAKE-make} sets \${MAKE}" >&5
1001   set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
# Line 2034 | Line 2034 | HAVE_PTHREADS=no
2034   fi
2035  
2036    if [ "x$HAVE_PTHREADS" = "xno" ]; then
2037 <     { echo "configure: error: You need libpthreads to run Basilisk II." 1>&2; exit 1; }
2037 >        echo $ac_n "checking for pthread_create in -lPTL""... $ac_c" 1>&6
2038 > echo "configure:2039: checking for pthread_create in -lPTL" >&5
2039 > ac_lib_var=`echo PTL'_'pthread_create | sed 'y%./+-%__p_%'`
2040 > if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2041 >  echo $ac_n "(cached) $ac_c" 1>&6
2042 > else
2043 >  ac_save_LIBS="$LIBS"
2044 > LIBS="-lPTL  $LIBS"
2045 > cat > conftest.$ac_ext <<EOF
2046 > #line 2047 "configure"
2047 > #include "confdefs.h"
2048 > /* Override any gcc2 internal prototype to avoid an error.  */
2049 > /* We use char because int might match the return type of a gcc2
2050 >    builtin and then its argument prototype would still apply.  */
2051 > char pthread_create();
2052 >
2053 > int main() {
2054 > pthread_create()
2055 > ; return 0; }
2056 > EOF
2057 > if { (eval echo configure:2058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2058 >  rm -rf conftest*
2059 >  eval "ac_cv_lib_$ac_lib_var=yes"
2060 > else
2061 >  echo "configure: failed program was:" >&5
2062 >  cat conftest.$ac_ext >&5
2063 >  rm -rf conftest*
2064 >  eval "ac_cv_lib_$ac_lib_var=no"
2065 > fi
2066 > rm -f conftest*
2067 > LIBS="$ac_save_LIBS"
2068 >
2069 > fi
2070 > if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2071 >  echo "$ac_t""yes" 1>&6
2072 >  HAVE_PTHREADS=yes
2073 > else
2074 >  echo "$ac_t""no" 1>&6
2075 > HAVE_PTHREADS=no
2076 > fi
2077 >
2078 >    if [ "x$HAVE_PTHREADS" = "xno" ]; then
2079 >      { echo "configure: error: You need pthreads to run Basilisk II." 1>&2; exit 1; }
2080 >    else
2081 >      LIBS="$LIBS -lPTL"
2082 >    fi
2083    else
2084       LIBS="$LIBS -lc_r"
2085    fi
# Line 2044 | Line 2089 | fi
2089   for ac_func in pthread_cancel
2090   do
2091   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2092 < echo "configure:2048: checking for $ac_func" >&5
2092 > echo "configure:2093: checking for $ac_func" >&5
2093   if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2094    echo $ac_n "(cached) $ac_c" 1>&6
2095   else
2096    cat > conftest.$ac_ext <<EOF
2097 < #line 2053 "configure"
2097 > #line 2098 "configure"
2098   #include "confdefs.h"
2099   /* System header to define __stub macros and hopefully few prototypes,
2100      which can conflict with char $ac_func(); below.  */
# Line 2072 | Line 2117 | $ac_func();
2117  
2118   ; return 0; }
2119   EOF
2120 < if { (eval echo configure:2076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2120 > if { (eval echo configure:2121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2121    rm -rf conftest*
2122    eval "ac_cv_func_$ac_func=yes"
2123   else
# Line 2099 | Line 2144 | done
2144  
2145   if [ "x$WANT_DGA" = "xyes" ]; then
2146    echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
2147 < echo "configure:2103: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
2147 > echo "configure:2148: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
2148   ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
2149   if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2150    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2107 | Line 2152 | else
2152    ac_save_LIBS="$LIBS"
2153   LIBS="-lXxf86dga  $LIBS"
2154   cat > conftest.$ac_ext <<EOF
2155 < #line 2111 "configure"
2155 > #line 2156 "configure"
2156   #include "confdefs.h"
2157   /* Override any gcc2 internal prototype to avoid an error.  */
2158   /* We use char because int might match the return type of a gcc2
# Line 2118 | Line 2163 | int main() {
2163   XF86DGAQueryExtension()
2164   ; return 0; }
2165   EOF
2166 < if { (eval echo configure:2122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2166 > if { (eval echo configure:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2167    rm -rf conftest*
2168    eval "ac_cv_lib_$ac_lib_var=yes"
2169   else
# Line 2189 | Line 2234 | fi
2234    # Extract the first word of "gtk-config", so it can be a program name with args.
2235   set dummy gtk-config; ac_word=$2
2236   echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2237 < echo "configure:2193: checking for $ac_word" >&5
2237 > echo "configure:2238: checking for $ac_word" >&5
2238   if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
2239    echo $ac_n "(cached) $ac_c" 1>&6
2240   else
# Line 2224 | Line 2269 | fi
2269  
2270    min_gtk_version=1.2.0
2271    echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
2272 < echo "configure:2228: checking for GTK - version >= $min_gtk_version" >&5
2272 > echo "configure:2273: checking for GTK - version >= $min_gtk_version" >&5
2273    no_gtk=""
2274    if test "$GTK_CONFIG" = "no" ; then
2275      no_gtk=yes
# Line 2247 | Line 2292 | echo "configure:2228: checking for GTK -
2292    echo $ac_n "cross compiling; assumed OK... $ac_c"
2293   else
2294    cat > conftest.$ac_ext <<EOF
2295 < #line 2251 "configure"
2295 > #line 2296 "configure"
2296   #include "confdefs.h"
2297  
2298   #include <gtk/gtk.h>
# Line 2310 | Line 2355 | main ()
2355   }
2356  
2357   EOF
2358 < if { (eval echo configure:2314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2358 > if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2359   then
2360    :
2361   else
# Line 2344 | Line 2389 | fi
2389            CFLAGS="$CFLAGS $GTK_CFLAGS"
2390            LIBS="$LIBS $GTK_LIBS"
2391            cat > conftest.$ac_ext <<EOF
2392 < #line 2348 "configure"
2392 > #line 2393 "configure"
2393   #include "confdefs.h"
2394  
2395   #include <gtk/gtk.h>
# Line 2354 | Line 2399 | int main() {
2399   return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
2400   ; return 0; }
2401   EOF
2402 < if { (eval echo configure:2358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2402 > if { (eval echo configure:2403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2403    rm -rf conftest*
2404     echo "*** The test program compiled, but did not run. This usually means"
2405            echo "*** that the run-time linker is not finding GTK or finding the wrong"
# Line 2409 | Line 2454 | SEMSRCS=
2454   for ac_func in sem_init
2455   do
2456   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2457 < echo "configure:2413: checking for $ac_func" >&5
2457 > echo "configure:2458: checking for $ac_func" >&5
2458   if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2459    echo $ac_n "(cached) $ac_c" 1>&6
2460   else
2461    cat > conftest.$ac_ext <<EOF
2462 < #line 2418 "configure"
2462 > #line 2463 "configure"
2463   #include "confdefs.h"
2464   /* System header to define __stub macros and hopefully few prototypes,
2465      which can conflict with char $ac_func(); below.  */
# Line 2437 | Line 2482 | $ac_func();
2482  
2483   ; return 0; }
2484   EOF
2485 < if { (eval echo configure:2441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2485 > if { (eval echo configure:2486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2486    rm -rf conftest*
2487    eval "ac_cv_func_$ac_func=yes"
2488   else
# Line 2463 | Line 2508 | done
2508  
2509   if [ "x$ac_cv_func_sem_init" = "xno" ]; then
2510    echo $ac_n "checking for sem_init in -lposix4""... $ac_c" 1>&6
2511 < echo "configure:2467: checking for sem_init in -lposix4" >&5
2511 > echo "configure:2512: checking for sem_init in -lposix4" >&5
2512   ac_lib_var=`echo posix4'_'sem_init | sed 'y%./+-%__p_%'`
2513   if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2514    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2471 | Line 2516 | else
2516    ac_save_LIBS="$LIBS"
2517   LIBS="-lposix4  $LIBS"
2518   cat > conftest.$ac_ext <<EOF
2519 < #line 2475 "configure"
2519 > #line 2520 "configure"
2520   #include "confdefs.h"
2521   /* Override any gcc2 internal prototype to avoid an error.  */
2522   /* We use char because int might match the return type of a gcc2
# Line 2482 | Line 2527 | int main() {
2527   sem_init()
2528   ; return 0; }
2529   EOF
2530 < if { (eval echo configure:2486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2530 > if { (eval echo configure:2531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2531    rm -rf conftest*
2532    eval "ac_cv_lib_$ac_lib_var=yes"
2533   else
# Line 2504 | Line 2549 | HAVE_LIBPOSIX4=no
2549   fi
2550  
2551    if [ "x$HAVE_LIBPOSIX4" = "xno" ]; then
2552 <        for ac_func in semget
2508 < do
2509 < echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2510 < echo "configure:2511: checking for $ac_func" >&5
2511 < if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2512 <  echo $ac_n "(cached) $ac_c" 1>&6
2513 < else
2514 <  cat > conftest.$ac_ext <<EOF
2515 < #line 2516 "configure"
2516 < #include "confdefs.h"
2517 < /* System header to define __stub macros and hopefully few prototypes,
2518 <    which can conflict with char $ac_func(); below.  */
2519 < #include <assert.h>
2520 < /* Override any gcc2 internal prototype to avoid an error.  */
2521 < /* We use char because int might match the return type of a gcc2
2522 <    builtin and then its argument prototype would still apply.  */
2523 < char $ac_func();
2524 <
2525 < int main() {
2526 <
2527 < /* The GNU C library defines this for functions which it implements
2528 <    to always fail with ENOSYS.  Some functions are actually named
2529 <    something starting with __ and the normal name is an alias.  */
2530 < #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2531 < choke me
2532 < #else
2533 < $ac_func();
2534 < #endif
2535 <
2536 < ; return 0; }
2537 < EOF
2538 < if { (eval echo configure:2539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2539 <  rm -rf conftest*
2540 <  eval "ac_cv_func_$ac_func=yes"
2541 < else
2542 <  echo "configure: failed program was:" >&5
2543 <  cat conftest.$ac_ext >&5
2544 <  rm -rf conftest*
2545 <  eval "ac_cv_func_$ac_func=no"
2546 < fi
2547 < rm -f conftest*
2548 < fi
2549 <
2550 < if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2551 <  echo "$ac_t""yes" 1>&6
2552 <    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2553 <  cat >> confdefs.h <<EOF
2554 < #define $ac_tr_func 1
2555 < EOF
2556 <
2557 < else
2558 <  echo "$ac_t""no" 1>&6
2559 < fi
2560 < done
2561 <
2562 <    if [ "x$ac_cv_func_semget" = "xno" ]; then
2563 <      { echo "configure: error: You need POSIX.4 semaphores to run Basilisk II." 1>&2; exit 1; }
2564 <    else
2565 <      SEMSRCS="posix_sem.cpp"
2566 <    fi
2552 >        SEMSRCS="posix_sem.cpp"
2553    else
2554      LIBS="$LIBS -lposix4"
2555    fi
2556   fi
2557  
2558   echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2559 < echo "configure:2574: checking for ANSI C header files" >&5
2559 > echo "configure:2560: checking for ANSI C header files" >&5
2560   if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2561    echo $ac_n "(cached) $ac_c" 1>&6
2562   else
2563    cat > conftest.$ac_ext <<EOF
2564 < #line 2579 "configure"
2564 > #line 2565 "configure"
2565   #include "confdefs.h"
2566   #include <stdlib.h>
2567   #include <stdarg.h>
# Line 2583 | Line 2569 | else
2569   #include <float.h>
2570   EOF
2571   ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2572 < { (eval echo configure:2587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2572 > { (eval echo configure:2573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2573   ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2574   if test -z "$ac_err"; then
2575    rm -rf conftest*
# Line 2600 | Line 2586 | rm -f conftest*
2586   if test $ac_cv_header_stdc = yes; then
2587    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2588   cat > conftest.$ac_ext <<EOF
2589 < #line 2604 "configure"
2589 > #line 2590 "configure"
2590   #include "confdefs.h"
2591   #include <string.h>
2592   EOF
# Line 2618 | Line 2604 | fi
2604   if test $ac_cv_header_stdc = yes; then
2605    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2606   cat > conftest.$ac_ext <<EOF
2607 < #line 2622 "configure"
2607 > #line 2608 "configure"
2608   #include "confdefs.h"
2609   #include <stdlib.h>
2610   EOF
# Line 2639 | Line 2625 | if test "$cross_compiling" = yes; then
2625    :
2626   else
2627    cat > conftest.$ac_ext <<EOF
2628 < #line 2643 "configure"
2628 > #line 2629 "configure"
2629   #include "confdefs.h"
2630   #include <ctype.h>
2631   #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# Line 2650 | Line 2636 | if (XOR (islower (i), ISLOWER (i)) || to
2636   exit (0); }
2637  
2638   EOF
2639 < if { (eval echo configure:2654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2639 > if { (eval echo configure:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2640   then
2641    :
2642   else
# Line 2677 | Line 2663 | for ac_hdr in unistd.h fcntl.h sys/time.
2663   do
2664   ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2665   echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2666 < echo "configure:2681: checking for $ac_hdr" >&5
2666 > echo "configure:2667: checking for $ac_hdr" >&5
2667   if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2668    echo $ac_n "(cached) $ac_c" 1>&6
2669   else
2670    cat > conftest.$ac_ext <<EOF
2671 < #line 2686 "configure"
2671 > #line 2672 "configure"
2672   #include "confdefs.h"
2673   #include <$ac_hdr>
2674   EOF
2675   ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2676 < { (eval echo configure:2691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2676 > { (eval echo configure:2677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2677   ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2678   if test -z "$ac_err"; then
2679    rm -rf conftest*
# Line 2715 | Line 2701 | done
2701  
2702  
2703   echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2704 < echo "configure:2719: checking whether byte ordering is bigendian" >&5
2704 > echo "configure:2705: checking whether byte ordering is bigendian" >&5
2705   if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2706    echo $ac_n "(cached) $ac_c" 1>&6
2707   else
2708    ac_cv_c_bigendian=unknown
2709   # See if sys/param.h defines the BYTE_ORDER macro.
2710   cat > conftest.$ac_ext <<EOF
2711 < #line 2726 "configure"
2711 > #line 2712 "configure"
2712   #include "confdefs.h"
2713   #include <sys/types.h>
2714   #include <sys/param.h>
# Line 2733 | Line 2719 | int main() {
2719   #endif
2720   ; return 0; }
2721   EOF
2722 < if { (eval echo configure:2737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2722 > if { (eval echo configure:2723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2723    rm -rf conftest*
2724    # It does; now see whether it defined to BIG_ENDIAN or not.
2725   cat > conftest.$ac_ext <<EOF
2726 < #line 2741 "configure"
2726 > #line 2727 "configure"
2727   #include "confdefs.h"
2728   #include <sys/types.h>
2729   #include <sys/param.h>
# Line 2748 | Line 2734 | int main() {
2734   #endif
2735   ; return 0; }
2736   EOF
2737 < if { (eval echo configure:2752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2737 > if { (eval echo configure:2738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2738    rm -rf conftest*
2739    ac_cv_c_bigendian=yes
2740   else
# Line 2768 | Line 2754 | if test "$cross_compiling" = yes; then
2754      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2755   else
2756    cat > conftest.$ac_ext <<EOF
2757 < #line 2772 "configure"
2757 > #line 2758 "configure"
2758   #include "confdefs.h"
2759   main () {
2760    /* Are we little or big endian?  From Harbison&Steele.  */
# Line 2781 | Line 2767 | main () {
2767    exit (u.c[sizeof (long) - 1] == 1);
2768   }
2769   EOF
2770 < if { (eval echo configure:2785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2770 > if { (eval echo configure:2771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2771   then
2772    ac_cv_c_bigendian=no
2773   else
# Line 2805 | Line 2791 | EOF
2791   fi
2792  
2793   echo $ac_n "checking for working const""... $ac_c" 1>&6
2794 < echo "configure:2809: checking for working const" >&5
2794 > echo "configure:2795: checking for working const" >&5
2795   if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2796    echo $ac_n "(cached) $ac_c" 1>&6
2797   else
2798    cat > conftest.$ac_ext <<EOF
2799 < #line 2814 "configure"
2799 > #line 2800 "configure"
2800   #include "confdefs.h"
2801  
2802   int main() {
# Line 2859 | Line 2845 | ccp = (char const *const *) p;
2845  
2846   ; return 0; }
2847   EOF
2848 < if { (eval echo configure:2863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2848 > if { (eval echo configure:2849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2849    rm -rf conftest*
2850    ac_cv_c_const=yes
2851   else
# Line 2880 | Line 2866 | EOF
2866   fi
2867  
2868   echo $ac_n "checking for inline""... $ac_c" 1>&6
2869 < echo "configure:2884: checking for inline" >&5
2869 > echo "configure:2870: checking for inline" >&5
2870   if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2871    echo $ac_n "(cached) $ac_c" 1>&6
2872   else
2873    ac_cv_c_inline=no
2874   for ac_kw in inline __inline__ __inline; do
2875    cat > conftest.$ac_ext <<EOF
2876 < #line 2891 "configure"
2876 > #line 2877 "configure"
2877   #include "confdefs.h"
2878  
2879   int main() {
2880   } $ac_kw foo() {
2881   ; return 0; }
2882   EOF
2883 < if { (eval echo configure:2898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2883 > if { (eval echo configure:2884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2884    rm -rf conftest*
2885    ac_cv_c_inline=$ac_kw; break
2886   else
# Line 2920 | Line 2906 | EOF
2906   esac
2907  
2908   echo $ac_n "checking size of short""... $ac_c" 1>&6
2909 < echo "configure:2924: checking size of short" >&5
2909 > echo "configure:2910: checking size of short" >&5
2910   if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2911    echo $ac_n "(cached) $ac_c" 1>&6
2912   else
# Line 2928 | Line 2914 | else
2914    ac_cv_sizeof_short=2
2915   else
2916    cat > conftest.$ac_ext <<EOF
2917 < #line 2932 "configure"
2917 > #line 2918 "configure"
2918   #include "confdefs.h"
2919   #include <stdio.h>
2920   main()
# Line 2939 | Line 2925 | main()
2925    exit(0);
2926   }
2927   EOF
2928 < if { (eval echo configure:2943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2928 > if { (eval echo configure:2929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2929   then
2930    ac_cv_sizeof_short=`cat conftestval`
2931   else
# Line 2959 | Line 2945 | EOF
2945  
2946  
2947   echo $ac_n "checking size of int""... $ac_c" 1>&6
2948 < echo "configure:2963: checking size of int" >&5
2948 > echo "configure:2949: checking size of int" >&5
2949   if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2950    echo $ac_n "(cached) $ac_c" 1>&6
2951   else
# Line 2967 | Line 2953 | else
2953    ac_cv_sizeof_int=4
2954   else
2955    cat > conftest.$ac_ext <<EOF
2956 < #line 2971 "configure"
2956 > #line 2957 "configure"
2957   #include "confdefs.h"
2958   #include <stdio.h>
2959   main()
# Line 2978 | Line 2964 | main()
2964    exit(0);
2965   }
2966   EOF
2967 < if { (eval echo configure:2982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2967 > if { (eval echo configure:2968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2968   then
2969    ac_cv_sizeof_int=`cat conftestval`
2970   else
# Line 2998 | Line 2984 | EOF
2984  
2985  
2986   echo $ac_n "checking size of long""... $ac_c" 1>&6
2987 < echo "configure:3002: checking size of long" >&5
2987 > echo "configure:2988: checking size of long" >&5
2988   if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2989    echo $ac_n "(cached) $ac_c" 1>&6
2990   else
# Line 3006 | Line 2992 | else
2992    ac_cv_sizeof_long=4
2993   else
2994    cat > conftest.$ac_ext <<EOF
2995 < #line 3010 "configure"
2995 > #line 2996 "configure"
2996   #include "confdefs.h"
2997   #include <stdio.h>
2998   main()
# Line 3017 | Line 3003 | main()
3003    exit(0);
3004   }
3005   EOF
3006 < if { (eval echo configure:3021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3006 > if { (eval echo configure:3007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3007   then
3008    ac_cv_sizeof_long=`cat conftestval`
3009   else
# Line 3037 | Line 3023 | EOF
3023  
3024  
3025   echo $ac_n "checking size of long long""... $ac_c" 1>&6
3026 < echo "configure:3041: checking size of long long" >&5
3026 > echo "configure:3027: checking size of long long" >&5
3027   if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
3028    echo $ac_n "(cached) $ac_c" 1>&6
3029   else
# Line 3045 | Line 3031 | else
3031    ac_cv_sizeof_long_long=8
3032   else
3033    cat > conftest.$ac_ext <<EOF
3034 < #line 3049 "configure"
3034 > #line 3035 "configure"
3035   #include "confdefs.h"
3036   #include <stdio.h>
3037   main()
# Line 3056 | Line 3042 | main()
3042    exit(0);
3043   }
3044   EOF
3045 < if { (eval echo configure:3060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3045 > if { (eval echo configure:3046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3046   then
3047    ac_cv_sizeof_long_long=`cat conftestval`
3048   else
# Line 3076 | Line 3062 | EOF
3062  
3063  
3064   echo $ac_n "checking for off_t""... $ac_c" 1>&6
3065 < echo "configure:3080: checking for off_t" >&5
3065 > echo "configure:3066: checking for off_t" >&5
3066   if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3067    echo $ac_n "(cached) $ac_c" 1>&6
3068   else
3069    cat > conftest.$ac_ext <<EOF
3070 < #line 3085 "configure"
3070 > #line 3071 "configure"
3071   #include "confdefs.h"
3072   #include <sys/types.h>
3073   #if STDC_HEADERS
# Line 3109 | Line 3095 | EOF
3095   fi
3096  
3097   echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3098 < echo "configure:3113: checking for loff_t" >&5
3098 > echo "configure:3099: checking for loff_t" >&5
3099   if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3100    echo $ac_n "(cached) $ac_c" 1>&6
3101   else
3102    cat > conftest.$ac_ext <<EOF
3103 < #line 3118 "configure"
3103 > #line 3104 "configure"
3104   #include "confdefs.h"
3105   #include <sys/types.h>
3106   #if STDC_HEADERS
# Line 3142 | Line 3128 | EOF
3128   fi
3129  
3130   echo $ac_n "checking for size_t""... $ac_c" 1>&6
3131 < echo "configure:3146: checking for size_t" >&5
3131 > echo "configure:3132: checking for size_t" >&5
3132   if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3133    echo $ac_n "(cached) $ac_c" 1>&6
3134   else
3135    cat > conftest.$ac_ext <<EOF
3136 < #line 3151 "configure"
3136 > #line 3137 "configure"
3137   #include "confdefs.h"
3138   #include <sys/types.h>
3139   #if STDC_HEADERS
# Line 3175 | Line 3161 | EOF
3161   fi
3162  
3163   echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3164 < echo "configure:3179: checking whether time.h and sys/time.h may both be included" >&5
3164 > echo "configure:3165: checking whether time.h and sys/time.h may both be included" >&5
3165   if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3166    echo $ac_n "(cached) $ac_c" 1>&6
3167   else
3168    cat > conftest.$ac_ext <<EOF
3169 < #line 3184 "configure"
3169 > #line 3170 "configure"
3170   #include "confdefs.h"
3171   #include <sys/types.h>
3172   #include <sys/time.h>
# Line 3189 | Line 3175 | int main() {
3175   struct tm *tp;
3176   ; return 0; }
3177   EOF
3178 < if { (eval echo configure:3193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3178 > if { (eval echo configure:3179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3179    rm -rf conftest*
3180    ac_cv_header_time=yes
3181   else
# Line 3210 | Line 3196 | EOF
3196   fi
3197  
3198   echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3199 < echo "configure:3214: checking whether struct tm is in sys/time.h or time.h" >&5
3199 > echo "configure:3200: checking whether struct tm is in sys/time.h or time.h" >&5
3200   if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3201    echo $ac_n "(cached) $ac_c" 1>&6
3202   else
3203    cat > conftest.$ac_ext <<EOF
3204 < #line 3219 "configure"
3204 > #line 3205 "configure"
3205   #include "confdefs.h"
3206   #include <sys/types.h>
3207   #include <time.h>
# Line 3223 | Line 3209 | int main() {
3209   struct tm *tp; tp->tm_sec;
3210   ; return 0; }
3211   EOF
3212 < if { (eval echo configure:3227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3212 > if { (eval echo configure:3213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3213    rm -rf conftest*
3214    ac_cv_struct_tm=time.h
3215   else
# Line 3247 | Line 3233 | fi
3233   for ac_func in strdup cfmakeraw
3234   do
3235   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3236 < echo "configure:3251: checking for $ac_func" >&5
3236 > echo "configure:3237: checking for $ac_func" >&5
3237   if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3238    echo $ac_n "(cached) $ac_c" 1>&6
3239   else
3240    cat > conftest.$ac_ext <<EOF
3241 < #line 3256 "configure"
3241 > #line 3242 "configure"
3242   #include "confdefs.h"
3243   /* System header to define __stub macros and hopefully few prototypes,
3244      which can conflict with char $ac_func(); below.  */
# Line 3275 | Line 3261 | $ac_func();
3261  
3262   ; return 0; }
3263   EOF
3264 < if { (eval echo configure:3279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3264 > if { (eval echo configure:3265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3265    rm -rf conftest*
3266    eval "ac_cv_func_$ac_func=yes"
3267   else
# Line 3302 | Line 3288 | done
3288   for ac_func in nanosleep clock_gettime timer_create
3289   do
3290   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3291 < echo "configure:3306: checking for $ac_func" >&5
3291 > echo "configure:3292: checking for $ac_func" >&5
3292   if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3293    echo $ac_n "(cached) $ac_c" 1>&6
3294   else
3295    cat > conftest.$ac_ext <<EOF
3296 < #line 3311 "configure"
3296 > #line 3297 "configure"
3297   #include "confdefs.h"
3298   /* System header to define __stub macros and hopefully few prototypes,
3299      which can conflict with char $ac_func(); below.  */
# Line 3330 | Line 3316 | $ac_func();
3316  
3317   ; return 0; }
3318   EOF
3319 < if { (eval echo configure:3334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3319 > if { (eval echo configure:3320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3320    rm -rf conftest*
3321    eval "ac_cv_func_$ac_func=yes"
3322   else
# Line 3363 | Line 3349 | if MACHINE=`uname -a 2>/dev/null`; then
3349      ;;
3350    FreeBSD*3.*)
3351          echo $ac_n "checking for cam_open_btl in -lcam""... $ac_c" 1>&6
3352 < echo "configure:3367: checking for cam_open_btl in -lcam" >&5
3352 > echo "configure:3353: checking for cam_open_btl in -lcam" >&5
3353   ac_lib_var=`echo cam'_'cam_open_btl | sed 'y%./+-%__p_%'`
3354   if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3355    echo $ac_n "(cached) $ac_c" 1>&6
# Line 3371 | Line 3357 | else
3357    ac_save_LIBS="$LIBS"
3358   LIBS="-lcam  $LIBS"
3359   cat > conftest.$ac_ext <<EOF
3360 < #line 3375 "configure"
3360 > #line 3361 "configure"
3361   #include "confdefs.h"
3362   /* Override any gcc2 internal prototype to avoid an error.  */
3363   /* We use char because int might match the return type of a gcc2
# Line 3382 | Line 3368 | int main() {
3368   cam_open_btl()
3369   ; return 0; }
3370   EOF
3371 < if { (eval echo configure:3386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3371 > if { (eval echo configure:3372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3372    rm -rf conftest*
3373    eval "ac_cv_lib_$ac_lib_var=yes"
3374   else
# Line 3408 | Line 3394 | fi
3394      else
3395              ac_safe=`echo "/sys/cam/cam.h" | sed 'y%./+-%__p_%'`
3396   echo $ac_n "checking for /sys/cam/cam.h""... $ac_c" 1>&6
3397 < echo "configure:3412: checking for /sys/cam/cam.h" >&5
3397 > echo "configure:3398: checking for /sys/cam/cam.h" >&5
3398   if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3399    echo $ac_n "(cached) $ac_c" 1>&6
3400   else
3401    cat > conftest.$ac_ext <<EOF
3402 < #line 3417 "configure"
3402 > #line 3403 "configure"
3403   #include "confdefs.h"
3404   #include </sys/cam/cam.h>
3405   EOF
3406   ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3407 < { (eval echo configure:3422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3407 > { (eval echo configure:3408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3408   ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3409   if test -z "$ac_err"; then
3410    rm -rf conftest*
# Line 3451 | Line 3437 | fi
3437      ;;
3438    FreeBSD*)
3439          echo $ac_n "checking for scsi_open in -lscsi""... $ac_c" 1>&6
3440 < echo "configure:3455: checking for scsi_open in -lscsi" >&5
3440 > echo "configure:3441: checking for scsi_open in -lscsi" >&5
3441   ac_lib_var=`echo scsi'_'scsi_open | sed 'y%./+-%__p_%'`
3442   if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3443    echo $ac_n "(cached) $ac_c" 1>&6
# Line 3459 | Line 3445 | else
3445    ac_save_LIBS="$LIBS"
3446   LIBS="-lscsi  $LIBS"
3447   cat > conftest.$ac_ext <<EOF
3448 < #line 3463 "configure"
3448 > #line 3449 "configure"
3449   #include "confdefs.h"
3450   /* Override any gcc2 internal prototype to avoid an error.  */
3451   /* We use char because int might match the return type of a gcc2
# Line 3470 | Line 3456 | int main() {
3456   scsi_open()
3457   ; return 0; }
3458   EOF
3459 < if { (eval echo configure:3474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3459 > if { (eval echo configure:3460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3460    rm -rf conftest*
3461    eval "ac_cv_lib_$ac_lib_var=yes"
3462   else
# Line 3496 | Line 3482 | fi
3482      else
3483              ac_safe=`echo "scsi.h sys/scsiio.h" | sed 'y%./+-%__p_%'`
3484   echo $ac_n "checking for scsi.h sys/scsiio.h""... $ac_c" 1>&6
3485 < echo "configure:3500: checking for scsi.h sys/scsiio.h" >&5
3485 > echo "configure:3486: checking for scsi.h sys/scsiio.h" >&5
3486   if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3487    echo $ac_n "(cached) $ac_c" 1>&6
3488   else
3489    cat > conftest.$ac_ext <<EOF
3490 < #line 3505 "configure"
3490 > #line 3491 "configure"
3491   #include "confdefs.h"
3492   #include <scsi.h sys/scsiio.h>
3493   EOF
3494   ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3495 < { (eval echo configure:3510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3495 > { (eval echo configure:3496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3496   ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3497   if test -z "$ac_err"; then
3498    rm -rf conftest*
# Line 3560 | Line 3546 | CPUSRCS="../uae_cpu/basilisk_glue.cpp ..
3546  
3547   HAVE_I386=no
3548   echo $ac_n "checking for x86 target CPU""... $ac_c" 1>&6
3549 < echo "configure:3564: checking for x86 target CPU" >&5
3549 > echo "configure:3550: checking for x86 target CPU" >&5
3550   cat > conftest.$ac_ext <<EOF
3551 < #line 3566 "configure"
3551 > #line 3552 "configure"
3552   #include "confdefs.h"
3553  
3554   #ifdef __i386__
# Line 3583 | Line 3569 | rm -f conftest*
3569  
3570   HAVE_GAS=no
3571   echo $ac_n "checking for GAS .p2align feature""... $ac_c" 1>&6
3572 < echo "configure:3587: checking for GAS .p2align feature" >&5
3572 > echo "configure:3573: checking for GAS .p2align feature" >&5
3573   cat >conftest.S << EOF
3574          .text
3575          .p2align 5
# Line 3593 | Line 3579 | echo "$ac_t""$HAVE_GAS" 1>&6
3579  
3580   HAVE_GCC27=no
3581   echo $ac_n "checking for GCC 2.7 or higher""... $ac_c" 1>&6
3582 < echo "configure:3597: checking for GCC 2.7 or higher" >&5
3582 > echo "configure:3583: checking for GCC 2.7 or higher" >&5
3583   cat > conftest.$ac_ext <<EOF
3584 < #line 3599 "configure"
3584 > #line 3585 "configure"
3585   #include "confdefs.h"
3586   #if __GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 5
3587    yes
# Line 3769 | Line 3755 | s%@oldincludedir@%$oldincludedir%g
3755   s%@infodir@%$infodir%g
3756   s%@mandir@%$mandir%g
3757   s%@CC@%$CC%g
3772 s%@CXX@%$CXX%g
3758   s%@CPP@%$CPP%g
3759 + s%@CXX@%$CXX%g
3760   s%@SET_MAKE@%$SET_MAKE%g
3761   s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3762   s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines