/[gcl]/gcl/configure
ViewVC logotype

Diff of /gcl/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.59 by camm, Wed Jul 31 11:56:32 2002 UTC revision 1.60 by camm, Wed Jul 31 13:32:08 2002 UTC
# Line 839  case $canonical in Line 839  case $canonical in
839       old)       old)
840       use=vax;;       use=vax;;
841    
842         i*mingw*)
843         use=mingw;;
844    
845       i*cygwin*)       i*cygwin*)
846          if $CC -v 2>&1 | fgrep ming > /dev/null ;          if $CC -v 2>&1 | fgrep ming > /dev/null ;
847              then use=mingw              then use=mingw
848            else  use=gnuwin95            else  use=gnuwin95
849          fi;;          fi;;
850        
   
851  esac  esac
852    
853  echo enable_machine=$enable_machine  echo enable_machine=$enable_machine
# Line 890  echo "$ac_t""use=$use" 1>&6 Line 892  echo "$ac_t""use=$use" 1>&6
892  # Extract the first word of "gcc", so it can be a program name with args.  # Extract the first word of "gcc", so it can be a program name with args.
893  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
894  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
895  echo "configure:894: checking for $ac_word" >&5  echo "configure:896: checking for $ac_word" >&5
896  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
897    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
898  else  else
# Line 920  if test -z "$CC"; then Line 922  if test -z "$CC"; then
922    # Extract the first word of "cc", so it can be a program name with args.    # Extract the first word of "cc", so it can be a program name with args.
923  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
924  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
925  echo "configure:924: checking for $ac_word" >&5  echo "configure:926: checking for $ac_word" >&5
926  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
927    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
928  else  else
# Line 971  fi Line 973  fi
973        # Extract the first word of "cl", so it can be a program name with args.        # Extract the first word of "cl", so it can be a program name with args.
974  set dummy cl; ac_word=$2  set dummy cl; ac_word=$2
975  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
976  echo "configure:975: checking for $ac_word" >&5  echo "configure:977: checking for $ac_word" >&5
977  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
978    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
979  else  else
# Line 1003  fi Line 1005  fi
1005  fi  fi
1006    
1007  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1008  echo "configure:1007: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  echo "configure:1009: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1009    
1010  ac_ext=c  ac_ext=c
1011  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
# Line 1014  cross_compiling=$ac_cv_prog_cc_cross Line 1016  cross_compiling=$ac_cv_prog_cc_cross
1016    
1017  cat > conftest.$ac_ext << EOF  cat > conftest.$ac_ext << EOF
1018    
1019  #line 1018 "configure"  #line 1020 "configure"
1020  #include "confdefs.h"  #include "confdefs.h"
1021    
1022  main(){return(0);}  main(){return(0);}
1023  EOF  EOF
1024  if { (eval echo configure:1023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1025    ac_cv_prog_cc_works=yes    ac_cv_prog_cc_works=yes
1026    # If we can't run a trivial program, we are probably using a cross compiler.    # If we can't run a trivial program, we are probably using a cross compiler.
1027    if (./conftest; exit) 2>/dev/null; then    if (./conftest; exit) 2>/dev/null; then
# Line 1045  if test $ac_cv_prog_cc_works = no; then Line 1047  if test $ac_cv_prog_cc_works = no; then
1047    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1048  fi  fi
1049  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1050  echo "configure:1049: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo "configure:1051: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1051  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1052  cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
1053    
1054  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1055  echo "configure:1054: checking whether we are using GNU C" >&5  echo "configure:1056: checking whether we are using GNU C" >&5
1056  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1057    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1058  else  else
# Line 1059  else Line 1061  else
1061    yes;    yes;
1062  #endif  #endif
1063  EOF  EOF
1064  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1063: \"$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:1065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1065    ac_cv_prog_gcc=yes    ac_cv_prog_gcc=yes
1066  else  else
1067    ac_cv_prog_gcc=no    ac_cv_prog_gcc=no
# Line 1078  ac_test_CFLAGS="${CFLAGS+set}" Line 1080  ac_test_CFLAGS="${CFLAGS+set}"
1080  ac_save_CFLAGS="$CFLAGS"  ac_save_CFLAGS="$CFLAGS"
1081  CFLAGS=  CFLAGS=
1082  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1083  echo "configure:1082: checking whether ${CC-cc} accepts -g" >&5  echo "configure:1084: checking whether ${CC-cc} accepts -g" >&5
1084  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1085    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1086  else  else
# Line 1110  else Line 1112  else
1112  fi  fi
1113    
1114  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1115  echo "configure:1114: checking how to run the C preprocessor" >&5  echo "configure:1116: checking how to run the C preprocessor" >&5
1116  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
1117  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
1118    CPP=    CPP=
# Line 1125  else Line 1127  else
1127    # On the NeXT, cc -E runs the code through the compiler's parser,    # On the NeXT, cc -E runs the code through the compiler's parser,
1128    # not just through cpp.    # not just through cpp.
1129    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1130  #line 1129 "configure"  #line 1131 "configure"
1131  #include "confdefs.h"  #include "confdefs.h"
1132  #include <assert.h>  #include <assert.h>
1133  Syntax Error  Syntax Error
1134  EOF  EOF
1135  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1136  { (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1137  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1138  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1139    :    :
# Line 1142  else Line 1144  else
1144    rm -rf conftest*    rm -rf conftest*
1145    CPP="${CC-cc} -E -traditional-cpp"    CPP="${CC-cc} -E -traditional-cpp"
1146    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1147  #line 1146 "configure"  #line 1148 "configure"
1148  #include "confdefs.h"  #include "confdefs.h"
1149  #include <assert.h>  #include <assert.h>
1150  Syntax Error  Syntax Error
1151  EOF  EOF
1152  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1153  { (eval echo configure:1152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1154  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1155  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1156    :    :
# Line 1159  else Line 1161  else
1161    rm -rf conftest*    rm -rf conftest*
1162    CPP="${CC-cc} -nologo -E"    CPP="${CC-cc} -nologo -E"
1163    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1164  #line 1163 "configure"  #line 1165 "configure"
1165  #include "confdefs.h"  #include "confdefs.h"
1166  #include <assert.h>  #include <assert.h>
1167  Syntax Error  Syntax Error
1168  EOF  EOF
1169  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1170  { (eval echo configure:1169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1171  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1172  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1173    :    :
# Line 1206  fi Line 1208  fi
1208  # there are a few systems, like Next, where this doesn't work.  # there are a few systems, like Next, where this doesn't work.
1209    
1210  echo $ac_n "checking system version (for dynamic loading)""... $ac_c" 1>&6  echo $ac_n "checking system version (for dynamic loading)""... $ac_c" 1>&6
1211  echo "configure:1210: checking system version (for dynamic loading)" >&5  echo "configure:1212: checking system version (for dynamic loading)" >&5
1212  if machine=`uname -m` ; then true; else machine=unknown ; fi  if machine=`uname -m` ; then true; else machine=unknown ; fi
1213    
1214  for ac_prog in gawk nawk awk  for ac_prog in gawk nawk awk
# Line 1214  do Line 1216  do
1216  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
1217  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1218  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1219  echo "configure:1218: checking for $ac_word" >&5  echo "configure:1220: checking for $ac_word" >&5
1220  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1221    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1222  else  else
# Line 1250  do Line 1252  do
1252  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
1253  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1254  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1255  echo "configure:1254: checking for $ac_word" >&5  echo "configure:1256: checking for $ac_word" >&5
1256  if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1257    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1258  else  else
# Line 1312  fi Line 1314  fi
1314  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
1315    
1316          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1317  echo "configure:1316: checking for dlopen in -ldl" >&5  echo "configure:1318: checking for dlopen in -ldl" >&5
1318  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1319  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1320    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1320  else Line 1322  else
1322    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1323  LIBS="-ldl  $LIBS"  LIBS="-ldl  $LIBS"
1324  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1325  #line 1324 "configure"  #line 1326 "configure"
1326  #include "confdefs.h"  #include "confdefs.h"
1327  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1328  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 1331  int main() { Line 1333  int main() {
1333  dlopen()  dlopen()
1334  ; return 0; }  ; return 0; }
1335  EOF  EOF
1336  if { (eval echo configure:1335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1337    rm -rf conftest*    rm -rf conftest*
1338    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1339  else  else
# Line 1368  else Line 1370  else
1370          if test "$enable_bfd" = "yes" ; then          if test "$enable_bfd" = "yes" ; then
1371                  ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'`                  ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'`
1372  echo $ac_n "checking for bfd.h""... $ac_c" 1>&6  echo $ac_n "checking for bfd.h""... $ac_c" 1>&6
1373  echo "configure:1372: checking for bfd.h" >&5  echo "configure:1374: checking for bfd.h" >&5
1374  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1375    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1376  else  else
1377    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1378  #line 1377 "configure"  #line 1379 "configure"
1379  #include "confdefs.h"  #include "confdefs.h"
1380  #include <bfd.h>  #include <bfd.h>
1381  EOF  EOF
1382  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1383  { (eval echo configure:1382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1384  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1385  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1386    rm -rf conftest*    rm -rf conftest*
# Line 1395  fi Line 1397  fi
1397  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1398    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
1399    echo $ac_n "checking for bfd_init in -lbfd""... $ac_c" 1>&6    echo $ac_n "checking for bfd_init in -lbfd""... $ac_c" 1>&6
1400  echo "configure:1399: checking for bfd_init in -lbfd" >&5  echo "configure:1401: checking for bfd_init in -lbfd" >&5
1401  ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'`  ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'`
1402  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1403    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1403  else Line 1405  else
1405    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1406  LIBS="-lbfd -liberty $LIBS"  LIBS="-lbfd -liberty $LIBS"
1407  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1408  #line 1407 "configure"  #line 1409 "configure"
1409  #include "confdefs.h"  #include "confdefs.h"
1410  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1411  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 1414  int main() { Line 1416  int main() {
1416  bfd_init()  bfd_init()
1417  ; return 0; }  ; return 0; }
1418  EOF  EOF
1419  if { (eval echo configure:1418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1420    rm -rf conftest*    rm -rf conftest*
1421    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1422  else  else
# Line 1438  if eval "test \"`echo '$ac_cv_lib_'$ac_l Line 1440  if eval "test \"`echo '$ac_cv_lib_'$ac_l
1440          # Old binutils appear to need CONST defined to const          # Old binutils appear to need CONST defined to const
1441          #          #
1442                                  echo $ac_n "checking if need to define CONST for bfd""... $ac_c" 1>&6                                  echo $ac_n "checking if need to define CONST for bfd""... $ac_c" 1>&6
1443  echo "configure:1442: checking if need to define CONST for bfd" >&5  echo "configure:1444: checking if need to define CONST for bfd" >&5
1444                                  if test "$cross_compiling" = yes; then                                  if test "$cross_compiling" = yes; then
1445    echo "$ac_t""cannot use bfd" 1>&6    echo "$ac_t""cannot use bfd" 1>&6
1446  else  else
1447    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1448  #line 1447 "configure"  #line 1449 "configure"
1449  #include "confdefs.h"  #include "confdefs.h"
1450  #define IN_GCC  #define IN_GCC
1451                                              #include <bfd.h>                                              #include <bfd.h>
1452                                              int main() { symbol_info t; return 0;}                                              int main() { symbol_info t; return 0;}
1453  EOF  EOF
1454  if { (eval echo configure:1453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1455  then  then
1456    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
1457                                          cat >> confdefs.h <<\EOF                                          cat >> confdefs.h <<\EOF
# Line 1465  else Line 1467  else
1467    echo "$ac_t""cannot use bfd" 1>&6    echo "$ac_t""cannot use bfd" 1>&6
1468  else  else
1469    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1470  #line 1469 "configure"  #line 1471 "configure"
1471  #include "confdefs.h"  #include "confdefs.h"
1472  #define IN_GCC  #define IN_GCC
1473                                                      #include <bfd.h>                                                      #include <bfd.h>
1474                                                      #define CONST const                                                      #define CONST const
1475                                                      int main() {symbol_info t; return 0;}                                                      int main() {symbol_info t; return 0;}
1476  EOF  EOF
1477  if { (eval echo configure:1476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1478  then  then
1479    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
1480                                                  cat >> confdefs.h <<\EOF                                                  cat >> confdefs.h <<\EOF
# Line 1516  fi Line 1518  fi
1518  # addresses, in calculating a page for an address in the heap.  # addresses, in calculating a page for an address in the heap.
1519    
1520  echo $ac_n "checking size of long *""... $ac_c" 1>&6  echo $ac_n "checking size of long *""... $ac_c" 1>&6
1521  echo "configure:1520: checking size of long *" >&5  echo "configure:1522: checking size of long *" >&5
1522  if eval "test \"`echo '$''{'ac_cv_sizeof_long_p'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_sizeof_long_p'+set}'`\" = set"; then
1523    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1524  else  else
# Line 1524  else Line 1526  else
1526    ac_cv_sizeof_long_p=0    ac_cv_sizeof_long_p=0
1527  else  else
1528    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1529  #line 1528 "configure"  #line 1530 "configure"
1530  #include "confdefs.h"  #include "confdefs.h"
1531  #include <stdio.h>  #include <stdio.h>
1532  main()  main()
# Line 1535  main() Line 1537  main()
1537    exit(0);    exit(0);
1538  }  }
1539  EOF  EOF
1540  if { (eval echo configure:1539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1541  then  then
1542    ac_cv_sizeof_long_p=`cat conftestval`    ac_cv_sizeof_long_p=`cat conftestval`
1543  else  else
# Line 1559  for ac_hdr in endian.h Line 1561  for ac_hdr in endian.h
1561  do  do
1562  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1563  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1564  echo "configure:1563: checking for $ac_hdr" >&5  echo "configure:1565: checking for $ac_hdr" >&5
1565  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1566    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1567  else  else
1568    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1569  #line 1568 "configure"  #line 1570 "configure"
1570  #include "confdefs.h"  #include "confdefs.h"
1571  #include <$ac_hdr>  #include <$ac_hdr>
1572  EOF  EOF
1573  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1574  { (eval echo configure:1573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1575  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1576  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1577    rm -rf conftest*    rm -rf conftest*
# Line 1590  if eval "test \"`echo '$ac_cv_header_'$a Line 1592  if eval "test \"`echo '$ac_cv_header_'$a
1592  #define $ac_tr_hdr 1  #define $ac_tr_hdr 1
1593  EOF  EOF
1594   echo $ac_n "checking "endianness"""... $ac_c" 1>&6   echo $ac_n "checking "endianness"""... $ac_c" 1>&6
1595  echo "configure:1594: checking "endianness"" >&5  echo "configure:1596: checking "endianness"" >&5
1596          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
1597    echo "$ac_t""big" 1>&6    echo "$ac_t""big" 1>&6
1598  else  else
1599    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1600  #line 1599 "configure"  #line 1601 "configure"
1601  #include "confdefs.h"  #include "confdefs.h"
1602  #define __ARMEB__  #define __ARMEB__
1603                  #include <endian.h>                  #include <endian.h>
1604                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}
1605  EOF  EOF
1606  if { (eval echo configure:1605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1607  then  then
1608    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
1609  #define LITTLE_END 1  #define LITTLE_END 1
# Line 1624  done Line 1626  done
1626    
1627    
1628  echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6  echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6
1629  echo "configure:1628: checking "finding DBEGIN"" >&5  echo "configure:1630: checking "finding DBEGIN"" >&5
1630  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
1631    dbegin=0    dbegin=0
1632  else  else
1633    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1634  #line 1633 "configure"  #line 1635 "configure"
1635  #include "confdefs.h"  #include "confdefs.h"
1636  #include <stdio.h>  #include <stdio.h>
1637              #include <stdlib.h>              #include <stdlib.h>
# Line 1642  main() Line 1644  main()
1644    return 0;    return 0;
1645  }  }
1646  EOF  EOF
1647  if { (eval echo configure:1646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1648  then  then
1649    dbegin=`cat conftest1`    dbegin=`cat conftest1`
1650  else  else
# Line 1664  echo "$ac_t""got $dbegin" 1>&6 Line 1666  echo "$ac_t""got $dbegin" 1>&6
1666    
1667    
1668  echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6  echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6
1669  echo "configure:1668: checking "finding CSTACK_ADDRESS"" >&5  echo "configure:1670: checking "finding CSTACK_ADDRESS"" >&5
1670  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
1671    cstack_address=0    cstack_address=0
1672  else  else
1673    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1674  #line 1673 "configure"  #line 1675 "configure"
1675  #include "confdefs.h"  #include "confdefs.h"
1676  #include <stdio.h>  #include <stdio.h>
1677  main()  main()
# Line 1681  main() Line 1683  main()
1683    return 0;    return 0;
1684  }  }
1685  EOF  EOF
1686  if { (eval echo configure:1685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1687  then  then
1688    cstack_address=`cat conftest1`    cstack_address=`cat conftest1`
1689  else  else
# Line 1703  echo "$ac_t""got $cstack_address" 1>&6 Line 1705  echo "$ac_t""got $cstack_address" 1>&6
1705    
1706    
1707  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6
1708  echo "configure:1707: checking "sizeof long long int"" >&5  echo "configure:1709: checking "sizeof long long int"" >&5
1709  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
1710    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
1711    
1712  else  else
1713    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1714  #line 1713 "configure"  #line 1715 "configure"
1715  #include "confdefs.h"  #include "confdefs.h"
1716  #include <stdio.h>  #include <stdio.h>
1717  main()  main()
# Line 1719  main() Line 1721  main()
1721  }  }
1722    
1723  EOF  EOF
1724  if { (eval echo configure:1723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1725  then  then
1726    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
1727  #define HAVE_LONG_LONG 1  #define HAVE_LONG_LONG 1
# Line 1768  fi Line 1770  fi
1770    
1771  # pagewidth  # pagewidth
1772  echo $ac_n "checking for pagewidth""... $ac_c" 1>&6  echo $ac_n "checking for pagewidth""... $ac_c" 1>&6
1773  echo "configure:1772: checking for pagewidth" >&5  echo "configure:1774: checking for pagewidth" >&5
1774  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
1775    PAGEWIDTH=0    PAGEWIDTH=0
1776  else  else
1777    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1778  #line 1777 "configure"  #line 1779 "configure"
1779  #include "confdefs.h"  #include "confdefs.h"
1780  #include <stdio.h>  #include <stdio.h>
1781              #include <unistd.h>              #include <unistd.h>
# Line 1783  int main() {size_t i=getpagesize(),j; Line 1785  int main() {size_t i=getpagesize(),j;
1785              fprintf(fp,"%u",j);              fprintf(fp,"%u",j);
1786              return 0;}              return 0;}
1787  EOF  EOF
1788  if { (eval echo configure:1787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1789  then  then
1790    PAGEWIDTH=`cat conftest1`    PAGEWIDTH=`cat conftest1`
1791  else  else
# Line 1810  EOF Line 1812  EOF
1812  for ac_func in getcwd  for ac_func in getcwd
1813  do  do
1814  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1815  echo "configure:1814: checking for $ac_func" >&5  echo "configure:1816: checking for $ac_func" >&5
1816  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1817    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1818  else  else
1819    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1820  #line 1819 "configure"  #line 1821 "configure"
1821  #include "confdefs.h"  #include "confdefs.h"
1822  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
1823      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 1838  $ac_func(); Line 1840  $ac_func();
1840    
1841  ; return 0; }  ; return 0; }
1842  EOF  EOF
1843  if { (eval echo configure:1842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1844    rm -rf conftest*    rm -rf conftest*
1845    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
1846  else  else
# Line 1865  done Line 1867  done
1867  for ac_func in getwd  for ac_func in getwd
1868  do  do
1869  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1870  echo "configure:1869: checking for $ac_func" >&5  echo "configure:1871: checking for $ac_func" >&5
1871  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1872    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1873  else  else
1874    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1875  #line 1874 "configure"  #line 1876 "configure"
1876  #include "confdefs.h"  #include "confdefs.h"
1877  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
1878      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 1893  $ac_func(); Line 1895  $ac_func();
1895    
1896  ; return 0; }  ; return 0; }
1897  EOF  EOF
1898  if { (eval echo configure:1897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1899    rm -rf conftest*    rm -rf conftest*
1900    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
1901  else  else
# Line 1918  fi Line 1920  fi
1920  done  done
1921    
1922  echo $ac_n "checking for uname""... $ac_c" 1>&6  echo $ac_n "checking for uname""... $ac_c" 1>&6
1923  echo "configure:1922: checking for uname" >&5  echo "configure:1924: checking for uname" >&5
1924  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then
1925    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1926  else  else
1927    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1928  #line 1927 "configure"  #line 1929 "configure"
1929  #include "confdefs.h"  #include "confdefs.h"
1930  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
1931      which can conflict with char uname(); below.  */      which can conflict with char uname(); below.  */
# Line 1946  uname(); Line 1948  uname();
1948    
1949  ; return 0; }  ; return 0; }
1950  EOF  EOF
1951  if { (eval echo configure:1950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1952    rm -rf conftest*    rm -rf conftest*
1953    eval "ac_cv_func_uname=yes"    eval "ac_cv_func_uname=yes"
1954  else  else
# Line 1970  EOF Line 1972  EOF
1972  fi  fi
1973    
1974  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
1975  echo "configure:1974: checking for gettimeofday" >&5  echo "configure:1976: checking for gettimeofday" >&5
1976  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
1977    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1978  else  else
1979    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1980  #line 1979 "configure"  #line 1981 "configure"
1981  #include "confdefs.h"  #include "confdefs.h"
1982  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
1983      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday(); below.  */
# Line 1998  gettimeofday(); Line 2000  gettimeofday();
2000    
2001  ; return 0; }  ; return 0; }
2002  EOF  EOF
2003  if { (eval echo configure:2002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2004    rm -rf conftest*    rm -rf conftest*
2005    eval "ac_cv_func_gettimeofday=yes"    eval "ac_cv_func_gettimeofday=yes"
2006  else  else
# Line 2027  for ac_hdr in sys/ioctl.h Line 2029  for ac_hdr in sys/ioctl.h
2029  do  do
2030  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2031  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2032  echo "configure:2031: checking for $ac_hdr" >&5  echo "configure:2033: checking for $ac_hdr" >&5
2033  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2034    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2035  else  else
2036    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2037  #line 2036 "configure"  #line 2038 "configure"
2038  #include "confdefs.h"  #include "confdefs.h"
2039  #include <$ac_hdr>  #include <$ac_hdr>
2040  EOF  EOF
2041  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2042  { (eval echo configure:2041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2043  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2044  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2045    rm -rf conftest*    rm -rf conftest*
# Line 2077  done Line 2079  done
2079  #--------------------------------------------------------------------  #--------------------------------------------------------------------
2080    
2081  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6
2082  echo "configure:2081: checking for BSDgettimeofday" >&5  echo "configure:2083: checking for BSDgettimeofday" >&5
2083  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then
2084    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2085  else  else
2086    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2087  #line 2086 "configure"  #line 2088 "configure"
2088  #include "confdefs.h"  #include "confdefs.h"
2089  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2090      which can conflict with char BSDgettimeofday(); below.  */      which can conflict with char BSDgettimeofday(); below.  */
# Line 2105  BSDgettimeofday(); Line 2107  BSDgettimeofday();
2107    
2108  ; return 0; }  ; return 0; }
2109  EOF  EOF
2110  if { (eval echo configure:2109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2111    rm -rf conftest*    rm -rf conftest*
2112    eval "ac_cv_func_BSDgettimeofday=yes"    eval "ac_cv_func_BSDgettimeofday=yes"
2113  else  else
# Line 2126  EOF Line 2128  EOF
2128  else  else
2129    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
2130  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
2131  echo "configure:2130: checking for gettimeofday" >&5  echo "configure:2132: checking for gettimeofday" >&5
2132  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
2133    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2134  else  else
2135    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2136  #line 2135 "configure"  #line 2137 "configure"
2137  #include "confdefs.h"  #include "confdefs.h"
2138  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2139      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday(); below.  */
# Line 2154  gettimeofday(); Line 2156  gettimeofday();
2156    
2157  ; return 0; }  ; return 0; }
2158  EOF  EOF
2159  if { (eval echo configure:2158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2160    rm -rf conftest*    rm -rf conftest*
2161    eval "ac_cv_func_gettimeofday=yes"    eval "ac_cv_func_gettimeofday=yes"
2162  else  else
# Line 2181  fi Line 2183  fi
2183    
2184    
2185  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6
2186  echo "configure:2185: checking for gettimeofday declaration" >&5  echo "configure:2187: checking for gettimeofday declaration" >&5
2187    
2188  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2189  #line 2188 "configure"  #line 2190 "configure"
2190  #include "confdefs.h"  #include "confdefs.h"
2191  #include <sys/time.h>  #include <sys/time.h>
2192  EOF  EOF
# Line 2205  rm -f conftest* Line 2207  rm -f conftest*
2207    
2208    
2209  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
2210  echo "configure:2209: checking for sin in -lm" >&5  echo "configure:2211: checking for sin in -lm" >&5
2211  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
2212  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2213    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2213  else Line 2215  else
2215    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2216  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
2217  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2218  #line 2217 "configure"  #line 2219 "configure"
2219  #include "confdefs.h"  #include "confdefs.h"
2220  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2221  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 2224  int main() { Line 2226  int main() {
2226  sin()  sin()
2227  ; return 0; }  ; return 0; }
2228  EOF  EOF
2229  if { (eval echo configure:2228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2230    rm -rf conftest*    rm -rf conftest*
2231    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2232  else  else
# Line 2246  true Line 2248  true
2248  fi  fi
2249    
2250  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6
2251  echo "configure:2250: checking for main in -lmingwex" >&5  echo "configure:2252: checking for main in -lmingwex" >&5
2252  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`
2253  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2254    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2254  else Line 2256  else
2256    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2257  LIBS="-lmingwex  $LIBS"  LIBS="-lmingwex  $LIBS"
2258  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2259  #line 2258 "configure"  #line 2260 "configure"
2260  #include "confdefs.h"  #include "confdefs.h"
2261    
2262  int main() {  int main() {
2263  main()  main()
2264  ; return 0; }  ; return 0; }
2265  EOF  EOF
2266  if { (eval echo configure:2265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2267    rm -rf conftest*    rm -rf conftest*
2268    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2269  else  else
# Line 2290  for ac_hdr in math.h Line 2292  for ac_hdr in math.h
2292  do  do
2293  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2294  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2295  echo "configure:2294: checking for $ac_hdr" >&5  echo "configure:2296: checking for $ac_hdr" >&5
2296  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2297    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2298  else  else
2299    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2300  #line 2299 "configure"  #line 2301 "configure"
2301  #include "confdefs.h"  #include "confdefs.h"
2302  #include <$ac_hdr>  #include <$ac_hdr>
2303  EOF  EOF
2304  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2305  { (eval echo configure:2304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2306  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2307  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2308    rm -rf conftest*    rm -rf conftest*
# Line 2337  for ac_hdr in values.h Line 2339  for ac_hdr in values.h
2339  do  do
2340  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2341  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2342  echo "configure:2341: checking for $ac_hdr" >&5  echo "configure:2343: checking for $ac_hdr" >&5
2343  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2344    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2345  else  else
2346    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2347  #line 2346 "configure"  #line 2348 "configure"
2348  #include "confdefs.h"  #include "confdefs.h"
2349  #include <$ac_hdr>  #include <$ac_hdr>
2350  EOF  EOF
2351  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2352  { (eval echo configure:2351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2353  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2354  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2355    rm -rf conftest*    rm -rf conftest*
# Line 2383  done Line 2385  done
2385  # test makes sense.  CM  # test makes sense.  CM
2386  #  #
2387  echo $ac_n "checking for isnormal""... $ac_c" 1>&6  echo $ac_n "checking for isnormal""... $ac_c" 1>&6
2388  echo "configure:2387: checking for isnormal" >&5  echo "configure:2389: checking for isnormal" >&5
2389  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
2390    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6
2391  else  else
2392    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2393  #line 2392 "configure"  #line 2394 "configure"
2394  #include "confdefs.h"  #include "confdefs.h"
2395  #define _GNU_SOURCE  #define _GNU_SOURCE
2396              #include <math.h>              #include <math.h>
# Line 2397  else Line 2399  else
2399                  return isnormal(f) || !isnormal(f) ? 0 : 1;                  return isnormal(f) || !isnormal(f) ? 0 : 1;
2400                  }                  }
2401  EOF  EOF
2402  if { (eval echo configure:2401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:2403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2403  then  then
2404    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
2405  #define HAVE_ISNORMAL 1  #define HAVE_ISNORMAL 1
# Line 2408  else Line 2410  else
2410    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2411    rm -fr conftest*    rm -fr conftest*
2412    echo $ac_n "checking for fpclass in ieeefp.h""... $ac_c" 1>&6    echo $ac_n "checking for fpclass in ieeefp.h""... $ac_c" 1>&6
2413  echo "configure:2412: checking for fpclass in ieeefp.h" >&5  echo "configure:2414: checking for fpclass in ieeefp.h" >&5
2414                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
2415    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6
2416  else  else
2417    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2418  #line 2417 "configure"  #line 2419 "configure"
2419  #include "confdefs.h"  #include "confdefs.h"
2420  #include <ieeefp.h>  #include <ieeefp.h>
2421                              int main() {                              int main() {
# Line 2421  else Line 2423  else
2423                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;
2424                                  }                                  }
2425  EOF  EOF
2426  if { (eval echo configure:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:2427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2427  then  then
2428    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
2429  #define HAVE_IEEEFP 1  #define HAVE_IEEEFP 1
# Line 2443  fi Line 2445  fi
2445    
2446    
2447  echo $ac_n "checking for isfinite""... $ac_c" 1>&6  echo $ac_n "checking for isfinite""... $ac_c" 1>&6
2448  echo "configure:2447: checking for isfinite" >&5  echo "configure:2449: checking for isfinite" >&5
2449  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
2450    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6
2451  else  else
2452    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2453  #line 2452 "configure"  #line 2454 "configure"
2454  #include "confdefs.h"  #include "confdefs.h"
2455  #define _GNU_SOURCE  #define _GNU_SOURCE
2456              #include <math.h>              #include <math.h>
# Line 2457  else Line 2459  else
2459                  return isfinite(f) || !isfinite(f) ? 0 : 1;                  return isfinite(f) || !isfinite(f) ? 0 : 1;
2460                  }                  }
2461  EOF  EOF
2462  if { (eval echo configure:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2463  then  then
2464    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
2465  #define HAVE_ISFINITE 1  #define HAVE_ISFINITE 1
# Line 2468  else Line 2470  else
2470    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2471    rm -fr conftest*    rm -fr conftest*
2472    echo $ac_n "checking for finite()""... $ac_c" 1>&6    echo $ac_n "checking for finite()""... $ac_c" 1>&6
2473  echo "configure:2472: checking for finite()" >&5  echo "configure:2474: checking for finite()" >&5
2474                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
2475    HAVE_FINITE=0 echo "$ac_t""no" 1>&6    HAVE_FINITE=0 echo "$ac_t""no" 1>&6
2476  else  else
2477    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2478  #line 2477 "configure"  #line 2479 "configure"
2479  #include "confdefs.h"  #include "confdefs.h"
2480  #include <math.h>  #include <math.h>
2481                              int main() {                              int main() {
# Line 2481  else Line 2483  else
2483                                  return finite(f) || !finite(f) ? 0 : 1;                                  return finite(f) || !finite(f) ? 0 : 1;
2484                                  }                                  }
2485  EOF  EOF
2486  if { (eval echo configure:2485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2487  then  then
2488    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
2489  #define HAVE_FINITE 1  #define HAVE_FINITE 1
# Line 2522  fi Line 2524  fi
2524  #          if -lsocket doesn't work by itself.  #          if -lsocket doesn't work by itself.
2525  #--------------------------------------------------------------------  #--------------------------------------------------------------------
2526  echo $ac_n "checking for sockets""... $ac_c" 1>&6  echo $ac_n "checking for sockets""... $ac_c" 1>&6
2527  echo "configure:2526: checking for sockets" >&5  echo "configure:2528: checking for sockets" >&5
2528  tcl_checkBoth=0  tcl_checkBoth=0
2529  echo $ac_n "checking for connect""... $ac_c" 1>&6  echo $ac_n "checking for connect""... $ac_c" 1>&6
2530  echo "configure:2529: checking for connect" >&5  echo "configure:2531: checking for connect" >&5
2531  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2532    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2533  else  else
2534    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2535  #line 2534 "configure"  #line 2536 "configure"
2536  #include "confdefs.h"  #include "confdefs.h"
2537  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2538      which can conflict with char connect(); below.  */      which can conflict with char connect(); below.  */
# Line 2553  connect(); Line 2555  connect();
2555    
2556  ; return 0; }  ; return 0; }
2557  EOF  EOF
2558  if { (eval echo configure:2557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2559    rm -rf conftest*    rm -rf conftest*
2560    eval "ac_cv_func_connect=yes"    eval "ac_cv_func_connect=yes"
2561  else  else
# Line 2575  fi Line 2577  fi
2577    
2578  if test "$tcl_checkSocket" = 1; then  if test "$tcl_checkSocket" = 1; then
2579      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2580  echo "configure:2579: checking for main in -lsocket" >&5  echo "configure:2581: checking for main in -lsocket" >&5
2581  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2582  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2583    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2583  else Line 2585  else
2585    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2586  LIBS="-lsocket  $LIBS"  LIBS="-lsocket  $LIBS"
2587  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2588  #line 2587 "configure"  #line 2589 "configure"
2589  #include "confdefs.h"  #include "confdefs.h"
2590    
2591  int main() {  int main() {
2592  main()  main()
2593  ; return 0; }  ; return 0; }
2594  EOF  EOF
2595  if { (eval echo configure:2594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2596    rm -rf conftest*    rm -rf conftest*
2597    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2598  else  else
# Line 2618  if test "$tcl_checkBoth" = 1; then Line 2620  if test "$tcl_checkBoth" = 1; then
2620      tk_oldLibs=$LIBS      tk_oldLibs=$LIBS
2621      LIBS="$LIBS -lsocket -lnsl"      LIBS="$LIBS -lsocket -lnsl"
2622      echo $ac_n "checking for accept""... $ac_c" 1>&6      echo $ac_n "checking for accept""... $ac_c" 1>&6
2623  echo "configure:2622: checking for accept" >&5  echo "configure:2624: checking for accept" >&5
2624  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
2625    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2626  else  else
2627    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2628  #line 2627 "configure"  #line 2629 "configure"
2629  #include "confdefs.h"  #include "confdefs.h"
2630  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2631      which can conflict with char accept(); below.  */      which can conflict with char accept(); below.  */
# Line 2646  accept(); Line 2648  accept();
2648    
2649  ; return 0; }  ; return 0; }
2650  EOF  EOF
2651  if { (eval echo configure:2650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2652    rm -rf conftest*    rm -rf conftest*
2653    eval "ac_cv_func_accept=yes"    eval "ac_cv_func_accept=yes"
2654  else  else
# Line 2668  fi Line 2670  fi
2670    
2671  fi  fi
2672  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2673  echo "configure:2672: checking for gethostbyname" >&5  echo "configure:2674: checking for gethostbyname" >&5
2674  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2675    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2676  else  else
2677    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2678  #line 2677 "configure"  #line 2679 "configure"
2679  #include "confdefs.h"  #include "confdefs.h"
2680  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2681      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname(); below.  */
# Line 2696  gethostbyname(); Line 2698  gethostbyname();
2698    
2699  ; return 0; }  ; return 0; }
2700  EOF  EOF
2701  if { (eval echo configure:2700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2702    rm -rf conftest*    rm -rf conftest*
2703    eval "ac_cv_func_gethostbyname=yes"    eval "ac_cv_func_gethostbyname=yes"
2704  else  else
# Line 2714  if eval "test \"`echo '$ac_cv_func_'geth Line 2716  if eval "test \"`echo '$ac_cv_func_'geth
2716  else  else
2717    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
2718  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2719  echo "configure:2718: checking for main in -lnsl" >&5  echo "configure:2720: checking for main in -lnsl" >&5
2720  ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2721  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2722    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2722  else Line 2724  else
2724    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2725  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
2726  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2727  #line 2726 "configure"  #line 2728 "configure"
2728  #include "confdefs.h"  #include "confdefs.h"
2729    
2730  int main() {  int main() {
2731  main()  main()
2732  ; return 0; }  ; return 0; }
2733  EOF  EOF
2734  if { (eval echo configure:2733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2735    rm -rf conftest*    rm -rf conftest*
2736    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2737  else  else
# Line 2754  fi Line 2756  fi
2756    
2757  if test "$enable_readline" = "yes" ; then  if test "$enable_readline" = "yes" ; then
2758          echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6          echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
2759  echo "configure:2758: checking for main in -lreadline" >&5  echo "configure:2760: checking for main in -lreadline" >&5
2760  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
2761  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2762    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2762  else Line 2764  else
2764    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2765  LIBS="-lreadline -lncurses $LIBS"  LIBS="-lreadline -lncurses $LIBS"
2766  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2767  #line 2766 "configure"  #line 2768 "configure"
2768  #include "confdefs.h"  #include "confdefs.h"
2769    
2770  int main() {  int main() {
2771  main()  main()
2772  ; return 0; }  ; return 0; }
2773  EOF  EOF
2774  if { (eval echo configure:2773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2775    rm -rf conftest*    rm -rf conftest*
2776    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2777  else  else
# Line 2802  fi Line 2804  fi
2804    
2805    
2806  echo $ac_n "checking For network code for nsocket.c""... $ac_c" 1>&6  echo $ac_n "checking For network code for nsocket.c""... $ac_c" 1>&6
2807  echo "configure:2806: checking For network code for nsocket.c" >&5  echo "configure:2808: checking For network code for nsocket.c" >&5
2808  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2809  #line 2808 "configure"  #line 2810 "configure"
2810  #include "confdefs.h"  #include "confdefs.h"
2811    
2812  #include <sys/time.h>  #include <sys/time.h>
# Line 2831  int main() { Line 2833  int main() {
2833                    
2834  ; return 0; }  ; return 0; }
2835  EOF  EOF
2836  if { (eval echo configure:2835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2837    rm -rf conftest*    rm -rf conftest*
2838    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
2839  #define HAVE_NSOCKET 1  #define HAVE_NSOCKET 1
# Line 2848  rm -f conftest* Line 2850  rm -f conftest*
2850    
2851    
2852  echo $ac_n "checking check for listen using fcntl""... $ac_c" 1>&6  echo $ac_n "checking check for listen using fcntl""... $ac_c" 1>&6
2853  echo "configure:2852: checking check for listen using fcntl" >&5  echo "configure:2854: checking check for listen using fcntl" >&5
2854  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2855  #line 2854 "configure"  #line 2856 "configure"
2856  #include "confdefs.h"  #include "confdefs.h"
2857  #include <stdio.h>  #include <stdio.h>
2858  #include <fcntl.h>  #include <fcntl.h>
# Line 2863  FILE *fp=fopen("configure.in","r"); Line 2865  FILE *fp=fopen("configure.in","r");
2865    
2866  ; return 0; }  ; return 0; }
2867  EOF  EOF
2868  if { (eval echo configure:2867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2869    rm -rf conftest*    rm -rf conftest*
2870    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
2871  #define LISTEN_USE_FCNTL 1  #define LISTEN_USE_FCNTL 1
# Line 2882  rm -f conftest* Line 2884  rm -f conftest*
2884    
2885    
2886  echo $ac_n "checking for profil""... $ac_c" 1>&6  echo $ac_n "checking for profil""... $ac_c" 1>&6
2887  echo "configure:2886: checking for profil" >&5  echo "configure:2888: checking for profil" >&5
2888  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then
2889    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2890  else  else
2891    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2892  #line 2891 "configure"  #line 2893 "configure"
2893  #include "confdefs.h"  #include "confdefs.h"
2894  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2895      which can conflict with char profil(); below.  */      which can conflict with char profil(); below.  */
# Line 2910  profil(); Line 2912  profil();
2912    
2913  ; return 0; }  ; return 0; }
2914  EOF  EOF
2915  if { (eval echo configure:2914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2916    rm -rf conftest*    rm -rf conftest*
2917    eval "ac_cv_func_profil=yes"    eval "ac_cv_func_profil=yes"
2918  else  else
# Line 2935  fi Line 2937  fi
2937    
2938    
2939  echo $ac_n "checking for setenv""... $ac_c" 1>&6  echo $ac_n "checking for setenv""... $ac_c" 1>&6
2940  echo "configure:2939: checking for setenv" >&5  echo "configure:2941: checking for setenv" >&5
2941  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then
2942    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2943  else  else
2944    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2945  #line 2944 "configure"  #line 2946 "configure"
2946  #include "confdefs.h"  #include "confdefs.h"
2947  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2948      which can conflict with char setenv(); below.  */      which can conflict with char setenv(); below.  */
# Line 2963  setenv(); Line 2965  setenv();
2965    
2966  ; return 0; }  ; return 0; }
2967  EOF  EOF
2968  if { (eval echo configure:2967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2969    rm -rf conftest*    rm -rf conftest*
2970    eval "ac_cv_func_setenv=yes"    eval "ac_cv_func_setenv=yes"
2971  else  else
# Line 2989  fi Line 2991  fi
2991    
2992  if test "$no_setenv" = "1" ; then  if test "$no_setenv" = "1" ; then
2993  echo $ac_n "checking for putenv""... $ac_c" 1>&6  echo $ac_n "checking for putenv""... $ac_c" 1>&6
2994  echo "configure:2993: checking for putenv" >&5  echo "configure:2995: checking for putenv" >&5
2995  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then
2996    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2997  else  else
2998    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2999  #line 2998 "configure"  #line 3000 "configure"
3000  #include "confdefs.h"  #include "confdefs.h"
3001  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3002      which can conflict with char putenv(); below.  */      which can conflict with char putenv(); below.  */
# Line 3017  putenv(); Line 3019  putenv();
3019    
3020  ; return 0; }  ; return 0; }
3021  EOF  EOF
3022  if { (eval echo configure:3021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3023    rm -rf conftest*    rm -rf conftest*
3024    eval "ac_cv_func_putenv=yes"    eval "ac_cv_func_putenv=yes"
3025  else  else
# Line 3043  fi Line 3045  fi
3045  fi  fi
3046    
3047  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6
3048  echo "configure:3047: checking for _cleanup" >&5  echo "configure:3049: checking for _cleanup" >&5
3049  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then
3050    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3051  else  else
3052    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3053  #line 3052 "configure"  #line 3054 "configure"
3054  #include "confdefs.h"  #include "confdefs.h"
3055  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3056      which can conflict with char _cleanup(); below.  */      which can conflict with char _cleanup(); below.  */
# Line 3071  _cleanup(); Line 3073  _cleanup();
3073    
3074  ; return 0; }  ; return 0; }
3075  EOF  EOF
3076  if { (eval echo configure:3075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3077    rm -rf conftest*    rm -rf conftest*
3078    eval "ac_cv_func__cleanup=yes"    eval "ac_cv_func__cleanup=yes"
3079  else  else
# Line 3097  fi Line 3099  fi
3099  gcl_ok=no  gcl_ok=no
3100    
3101  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3102  #line 3101 "configure"  #line 3103 "configure"
3103  #include "confdefs.h"  #include "confdefs.h"
3104  #include <ctype.h>  #include <ctype.h>
3105  EOF  EOF
# Line 3125  fi Line 3127  fi
3127    
3128  # if test "x$enable_machine" = "x" ; then  # if test "x$enable_machine" = "x" ; then
3129  echo $ac_n "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O""... $ac_c" 1>&6  echo $ac_n "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O""... $ac_c" 1>&6
3130  echo "configure:3129: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5  echo "configure:3131: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5
3131    
3132  case $system in  case $system in
3133         OSF*)         OSF*)
# Line 3156  esac Line 3158  esac
3158    
3159    
3160  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6
3161  echo "configure:3160: checking check for SV_ONSTACK" >&5  echo "configure:3162: checking check for SV_ONSTACK" >&5
3162  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3163  #line 3162 "configure"  #line 3164 "configure"
3164  #include "confdefs.h"  #include "confdefs.h"
3165  #include <signal.h>  #include <signal.h>
3166  int joe=SV_ONSTACK;  int joe=SV_ONSTACK;
# Line 3167  int main() { Line 3169  int main() {
3169    
3170  ; return 0; }  ; return 0; }
3171  EOF  EOF
3172  if { (eval echo configure:3171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3173    rm -rf conftest*    rm -rf conftest*
3174    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
3175  #define HAVE_SV_ONSTACK 1  #define HAVE_SV_ONSTACK 1
# Line 3185  rm -f conftest* Line 3187  rm -f conftest*
3187    
3188    
3189  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6
3190  echo "configure:3189: checking check for SIGSYS" >&5  echo "configure:3191: checking check for SIGSYS" >&5
3191  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3192  #line 3191 "configure"  #line 3193 "configure"
3193  #include "confdefs.h"  #include "confdefs.h"
3194  #include <signal.h>  #include <signal.h>
3195  int joe=SIGSYS;  int joe=SIGSYS;
# Line 3196  int main() { Line 3198  int main() {
3198    
3199  ; return 0; }  ; return 0; }
3200  EOF  EOF
3201  if { (eval echo configure:3200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3202    rm -rf conftest*    rm -rf conftest*
3203    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
3204  #define HAVE_SIGSYS 1  #define HAVE_SIGSYS 1
# Line 3214  rm -f conftest* Line 3216  rm -f conftest*
3216    
3217    
3218  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6
3219  echo "configure:3218: checking check for SIGEMT" >&5  echo "configure:3220: checking check for SIGEMT" >&5
3220  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3221  #line 3220 "configure"  #line 3222 "configure"
3222  #include "confdefs.h"  #include "confdefs.h"
3223  #include <signal.h>  #include <signal.h>
3224  int joe=SIGEMT;  int joe=SIGEMT;
# Line 3225  int main() { Line 3227  int main() {
3227    
3228  ; return 0; }  ; return 0; }
3229  EOF  EOF
3230  if { (eval echo configure:3229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3231    rm -rf conftest*    rm -rf conftest*
3232    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
3233  #define HAVE_SIGEMT 1  #define HAVE_SIGEMT 1
# Line 3249  rm -f conftest* Line 3251  rm -f conftest*
3251  do  do
3252  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3253  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3254  echo "configure:3253: checking for $ac_hdr" >&5  echo "configure:3255: checking for $ac_hdr" >&5
3255  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3256    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3257  else  else
3258    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3259  #line 3258 "configure"  #line 3260 "configure"
3260  #include "confdefs.h"  #include "confdefs.h"
3261  #include <$ac_hdr>  #include <$ac_hdr>
3262  EOF  EOF
3263  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3264  { (eval echo configure:3263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3265  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3266  if test -z "$ac_err"; then  if test -z "$ac_err"; then
3267    rm -rf conftest*    rm -rf conftest*
# Line 3289  done Line 3291  done
3291  do  do
3292  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3293  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3294  echo "configure:3293: checking for $ac_hdr" >&5  echo "configure:3295: checking for $ac_hdr" >&5
3295  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3296    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3297  else  else
3298    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3299  #line 3298 "configure"  #line 3300 "configure"
3300  #include "confdefs.h"  #include "confdefs.h"
3301  #include <$ac_hdr>  #include <$ac_hdr>
3302  EOF  EOF
3303  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3304  { (eval echo configure:3303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3305  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3306  if test -z "$ac_err"; then  if test -z "$ac_err"; then
3307    rm -rf conftest*    rm -rf conftest*
# Line 3326  fi Line 3328  fi
3328  done  done
3329    
3330          cat > conftest.$ac_ext <<EOF          cat > conftest.$ac_ext <<EOF
3331  #line 3330 "configure"  #line 3332 "configure"
3332  #include "confdefs.h"  #include "confdefs.h"
3333  #include <signal.h>  #include <signal.h>
3334                          long code;                            long code;  
# Line 3337  int main() { Line 3339  int main() {
3339                
3340  ; return 0; }  ; return 0; }
3341  EOF  EOF
3342  if { (eval echo configure:3341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3343    rm -rf conftest*    rm -rf conftest*
3344        
3345          sigcontext_struct_works=1;          sigcontext_struct_works=1;
# Line 3358  fi Line 3360  fi
3360  rm -f conftest*  rm -f conftest*
3361         if test "$sigcontext_struct_works" = 0 ; then         if test "$sigcontext_struct_works" = 0 ; then
3362         cat > conftest.$ac_ext <<EOF         cat > conftest.$ac_ext <<EOF
3363  #line 3362 "configure"  #line 3364 "configure"
3364  #include "confdefs.h"  #include "confdefs.h"
3365  #include <signal.h>  #include <signal.h>
3366               #ifdef HAVE_ASM_SIGCONTEXT_H                   #ifdef HAVE_ASM_SIGCONTEXT_H    
# Line 3375  int main() { Line 3377  int main() {
3377                    
3378  ; return 0; }  ; return 0; }
3379  EOF  EOF
3380  if { (eval echo configure:3379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3381    rm -rf conftest*    rm -rf conftest*
3382        
3383          sigcontext_works=1 ;          sigcontext_works=1 ;
# Line 3418  rm -f conftest* Line 3420  rm -f conftest*
3420  # Extract the first word of "emacs", so it can be a program name with args.  # Extract the first word of "emacs", so it can be a program name with args.
3421  set dummy emacs; ac_word=$2  set dummy emacs; ac_word=$2
3422  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3423  echo "configure:3422: checking for $ac_word" >&5  echo "configure:3424: checking for $ac_word" >&5
3424  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then
3425    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3426  else  else
# Line 3466  cat >> conftest.el <<EOF Line 3468  cat >> conftest.el <<EOF
3468  EOF  EOF
3469    
3470  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6
3471  echo "configure:3470: checking emacs site lisp directory" >&5  echo "configure:3472: checking emacs site lisp directory" >&5
3472  #EMACS_SITE_LISP=unknown  #EMACS_SITE_LISP=unknown
3473  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
3474          EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `          EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `
# Line 3489  cat >> conftest.el <<EOF Line 3491  cat >> conftest.el <<EOF
3491  EOF  EOF
3492    
3493  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6
3494  echo "configure:3493: checking emacs default.el" >&5  echo "configure:3495: checking emacs default.el" >&5
3495  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
3496          EMACS_DEFAULT_EL=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `          EMACS_DEFAULT_EL=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `
3497  else  else
# Line 3518  cat >> conftest.el <<EOF Line 3520  cat >> conftest.el <<EOF
3520  EOF  EOF
3521    
3522  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6
3523  echo "configure:3522: checking emacs info/dir" >&5  echo "configure:3524: checking emacs info/dir" >&5
3524  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
3525          INFO_DIR=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `          INFO_DIR=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `
3526  fi  fi
# Line 3532  echo "$ac_t""$INFO_DIR" 1>&6 Line 3534  echo "$ac_t""$INFO_DIR" 1>&6
3534    
3535    
3536  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6
3537  echo "configure:3536: checking for tcl/tk" >&5  echo "configure:3538: checking for tcl/tk" >&5
3538    
3539    
3540  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else
# Line 3555  EOF Line 3557  EOF
3557  # Extract the first word of "tclsh", so it can be a program name with args.  # Extract the first word of "tclsh", so it can be a program name with args.
3558  set dummy tclsh; ac_word=$2  set dummy tclsh; ac_word=$2
3559  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3560  echo "configure:3559: checking for $ac_word" >&5  echo "configure:3561: checking for $ac_word" >&5
3561  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then
3562    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3563  else  else
# Line 3655  if test -f ${TCL_CONFIG_PREFIX}/../inclu Line 3657  if test -f ${TCL_CONFIG_PREFIX}/../inclu
3657    fi    fi
3658  fi  fi
3659  echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6  echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6
3660  echo "configure:3659: checking for main in -llieee" >&5  echo "configure:3661: checking for main in -llieee" >&5
3661  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`
3662  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3663    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 3663  else Line 3665  else
3665    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
3666  LIBS="-llieee  $LIBS"  LIBS="-llieee  $LIBS"
3667  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3668  #line 3667 "configure"  #line 3669 "configure"
3669  #include "confdefs.h"  #include "confdefs.h"
3670    
3671  int main() {  int main() {
3672  main()  main()
3673  ; return 0; }  ; return 0; }
3674  EOF  EOF
3675  if { (eval echo configure:3674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3676    rm -rf conftest*    rm -rf conftest*
3677    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
3678  else  else
# Line 3735  NOTIFY=$enable_notify Line 3737  NOTIFY=$enable_notify
3737  # the time handling for unixtime, add timezone  # the time handling for unixtime, add timezone
3738    
3739  echo $ac_n "checking alloca""... $ac_c" 1>&6  echo $ac_n "checking alloca""... $ac_c" 1>&6
3740  echo "configure:3739: checking alloca" >&5  echo "configure:3741: checking alloca" >&5
3741  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3742    gcl_ok=no    gcl_ok=no
3743  else  else
3744    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3745  #line 3744 "configure"  #line 3746 "configure"
3746  #include "confdefs.h"  #include "confdefs.h"
3747  int main() { exit(alloca(500) != NULL ? 0 : 1);}  int main() { exit(alloca(500) != NULL ? 0 : 1);}
3748  EOF  EOF
3749  if { (eval echo configure:3748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3750  then  then
3751    :    :
3752  else  else
# Line 3767  else Line 3769  else
3769    gcl_ok=no    gcl_ok=no
3770  else  else
3771    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3772  #line 3771 "configure"  #line 3773 "configure"
3773  #include "confdefs.h"  #include "confdefs.h"
3774  #include <alloca.h>  #include <alloca.h>
3775    int main() { exit(alloca(500) != NULL ? 0 : 1)}    int main() { exit(alloca(500) != NULL ? 0 : 1)}
3776  EOF  EOF
3777  if { (eval echo configure:3776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3778  then  then
3779    :    :
3780  else  else
# Line 3835  rm -f makedefsafter Line 3837  rm -f makedefsafter
3837  MP_INLCUDE=""  MP_INLCUDE=""
3838  if test $use_gmp = yes ; then  if test $use_gmp = yes ; then
3839   echo $ac_n "checking use_gmp=yes, doing configure in gmp directory""... $ac_c" 1>&6   echo $ac_n "checking use_gmp=yes, doing configure in gmp directory""... $ac_c" 1>&6
3840  echo "configure:3839: checking use_gmp=yes, doing configure in gmp directory" >&5  echo "configure:3841: checking use_gmp=yes, doing configure in gmp directory" >&5
3841   case "${canonical}" in   case "${canonical}" in
3842  #   i[[5-9]]86* | pentium* | k6* | athlon*)  #   i[[5-9]]86* | pentium* | k6* | athlon*)
3843  #      (cd gmp3 ; ./configure --target=i486) ;;  #      (cd gmp3 ; ./configure --target=i486) ;;
3844     *)     *)
3845        (cd gmp3 && chmod +x ./configure && ./configure) ;;        (cd gmp3 && chmod -R +x * && ./configure) ;;
3846   esac   esac
3847   [ "`ls -1 gmp3/mpn/add_n.* 2>/dev/null`" != "" ] || cp gmp3/mpn/generic/*.c gmp/mpn/   [ "`ls -1 gmp3/mpn/add_n.* 2>/dev/null`" != "" ] || cp gmp3/mpn/generic/*.c gmp/mpn/
3848   cp gmp3/gmp.h h/gmp.h   cp gmp3/gmp.h h/gmp.h
3849   echo $ac_n "checking "for size of gmp limbs"""... $ac_c" 1>&6   echo $ac_n "checking "for size of gmp limbs"""... $ac_c" 1>&6
3850  echo "configure:3849: checking "for size of gmp limbs"" >&5  echo "configure:3851: checking "for size of gmp limbs"" >&5
3851   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
3852    mpsize=0    mpsize=0
3853  else  else
3854    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3855  #line 3854 "configure"  #line 3856 "configure"
3856  #include "confdefs.h"  #include "confdefs.h"
3857  #include <stdio.h>  #include <stdio.h>
3858          #include "h/gmp.h"          #include "h/gmp.h"
# Line 3862  else Line 3864  else
3864          return 0;          return 0;
3865  }  }
3866  EOF  EOF
3867  if { (eval echo configure:3866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3868  then  then
3869    mpsize=`cat conftest1`    mpsize=`cat conftest1`
3870  else  else
# Line 3899  fi Line 3901  fi
3901  # redhat/cygnus released for some reason a buggy version of gcc,  # redhat/cygnus released for some reason a buggy version of gcc,
3902  # which no one else released.   Catch that here.  # which no one else released.   Catch that here.
3903  echo $ac_n "checking Checking for buggy gcc version from redhat""... $ac_c" 1>&6  echo $ac_n "checking Checking for buggy gcc version from redhat""... $ac_c" 1>&6
3904  echo "configure:3903: checking Checking for buggy gcc version from redhat" >&5  echo "configure:3905: checking Checking for buggy gcc version from redhat" >&5
3905  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null
3906     then     then
3907          BROKEN_O4_OPT=1          BROKEN_O4_OPT=1

Legend:
Removed from v.1.59  
changed lines
  Added in v.1.60

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26