/[gcl]/gcl/configure
ViewVC logotype

Diff of /gcl/configure

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

revision 1.73 by camm, Sun Aug 18 16:15:10 2002 UTC revision 1.74 by camm, Wed Aug 21 22:22:50 2002 UTC
# Line 52  ac_help="$ac_help Line 52  ac_help="$ac_help
52   --enable-dynsysgmp will link against the system libgmp3 overriding certain functions with patched versions from the local source   --enable-dynsysgmp will link against the system libgmp3 overriding certain functions with patched versions from the local source
53          "          "
54  ac_help="$ac_help  ac_help="$ac_help
55      --with-x                use the X Window System"
56    ac_help="$ac_help
57  --enable-readine    enables command line completion via the readline library "  --enable-readine    enables command line completion via the readline library "
58  ac_help="$ac_help  ac_help="$ac_help
59  --enable-ansi builds a large gcl aiming for ansi compliance,  --enable-ansi builds a large gcl aiming for ansi compliance,
# Line 682  else { echo "configure: error: can not r Line 684  else { echo "configure: error: can not r
684  fi  fi
685    
686  echo $ac_n "checking host system type""... $ac_c" 1>&6  echo $ac_n "checking host system type""... $ac_c" 1>&6
687  echo "configure:686: checking host system type" >&5  echo "configure:688: checking host system type" >&5
688    
689  host_alias=$host  host_alias=$host
690  case "$host_alias" in  case "$host_alias" in
# Line 989  echo "$ac_t""use=$use" 1>&6 Line 991  echo "$ac_t""use=$use" 1>&6
991  # 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.
992  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
993  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
994  echo "configure:993: checking for $ac_word" >&5  echo "configure:995: checking for $ac_word" >&5
995  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
996    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
997  else  else
# Line 1019  if test -z "$CC"; then Line 1021  if test -z "$CC"; then
1021    # 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.
1022  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
1023  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1024  echo "configure:1023: checking for $ac_word" >&5  echo "configure:1025: checking for $ac_word" >&5
1025  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1026    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1027  else  else
# Line 1070  fi Line 1072  fi
1072        # 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.
1073  set dummy cl; ac_word=$2  set dummy cl; ac_word=$2
1074  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1075  echo "configure:1074: checking for $ac_word" >&5  echo "configure:1076: checking for $ac_word" >&5
1076  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1077    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1078  else  else
# Line 1102  fi Line 1104  fi
1104  fi  fi
1105    
1106  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
1107  echo "configure:1106: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  echo "configure:1108: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1108    
1109  ac_ext=c  ac_ext=c
1110  # 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 1113  cross_compiling=$ac_cv_prog_cc_cross Line 1115  cross_compiling=$ac_cv_prog_cc_cross
1115    
1116  cat > conftest.$ac_ext << EOF  cat > conftest.$ac_ext << EOF
1117    
1118  #line 1117 "configure"  #line 1119 "configure"
1119  #include "confdefs.h"  #include "confdefs.h"
1120    
1121  main(){return(0);}  main(){return(0);}
1122  EOF  EOF
1123  if { (eval echo configure:1122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1124    ac_cv_prog_cc_works=yes    ac_cv_prog_cc_works=yes
1125    # 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.
1126    if (./conftest; exit) 2>/dev/null; then    if (./conftest; exit) 2>/dev/null; then
# Line 1144  if test $ac_cv_prog_cc_works = no; then Line 1146  if test $ac_cv_prog_cc_works = no; then
1146    { 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; }
1147  fi  fi
1148  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
1149  echo "configure:1148: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo "configure:1150: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1150  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1151  cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
1152    
1153  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
1154  echo "configure:1153: checking whether we are using GNU C" >&5  echo "configure:1155: checking whether we are using GNU C" >&5
1155  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1156    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1157  else  else
# Line 1158  else Line 1160  else
1160    yes;    yes;
1161  #endif  #endif
1162  EOF  EOF
1163  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1162: \"$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:1164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1164    ac_cv_prog_gcc=yes    ac_cv_prog_gcc=yes
1165  else  else
1166    ac_cv_prog_gcc=no    ac_cv_prog_gcc=no
# Line 1177  ac_test_CFLAGS="${CFLAGS+set}" Line 1179  ac_test_CFLAGS="${CFLAGS+set}"
1179  ac_save_CFLAGS="$CFLAGS"  ac_save_CFLAGS="$CFLAGS"
1180  CFLAGS=  CFLAGS=
1181  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
1182  echo "configure:1181: checking whether ${CC-cc} accepts -g" >&5  echo "configure:1183: checking whether ${CC-cc} accepts -g" >&5
1183  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1184    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1185  else  else
# Line 1209  else Line 1211  else
1211  fi  fi
1212    
1213  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
1214  echo "configure:1213: checking how to run the C preprocessor" >&5  echo "configure:1215: checking how to run the C preprocessor" >&5
1215  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
1216  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
1217    CPP=    CPP=
# Line 1224  else Line 1226  else
1226    # 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,
1227    # not just through cpp.    # not just through cpp.
1228    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1229  #line 1228 "configure"  #line 1230 "configure"
1230  #include "confdefs.h"  #include "confdefs.h"
1231  #include <assert.h>  #include <assert.h>
1232  Syntax Error  Syntax Error
1233  EOF  EOF
1234  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1235  { (eval echo configure:1234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1236  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1237  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1238    :    :
# Line 1241  else Line 1243  else
1243    rm -rf conftest*    rm -rf conftest*
1244    CPP="${CC-cc} -E -traditional-cpp"    CPP="${CC-cc} -E -traditional-cpp"
1245    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1246  #line 1245 "configure"  #line 1247 "configure"
1247  #include "confdefs.h"  #include "confdefs.h"
1248  #include <assert.h>  #include <assert.h>
1249  Syntax Error  Syntax Error
1250  EOF  EOF
1251  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1252  { (eval echo configure:1251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1253  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1254  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1255    :    :
# Line 1258  else Line 1260  else
1260    rm -rf conftest*    rm -rf conftest*
1261    CPP="${CC-cc} -nologo -E"    CPP="${CC-cc} -nologo -E"
1262    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1263  #line 1262 "configure"  #line 1264 "configure"
1264  #include "confdefs.h"  #include "confdefs.h"
1265  #include <assert.h>  #include <assert.h>
1266  Syntax Error  Syntax Error
1267  EOF  EOF
1268  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1269  { (eval echo configure:1268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1270  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1271  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1272    :    :
# Line 1332  esac Line 1334  esac
1334  # there are a few systems, like Next, where this doesn't work.  # there are a few systems, like Next, where this doesn't work.
1335    
1336  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
1337  echo "configure:1336: checking system version (for dynamic loading)" >&5  echo "configure:1338: checking system version (for dynamic loading)" >&5
1338  if machine=`uname -m` ; then true; else machine=unknown ; fi  if machine=`uname -m` ; then true; else machine=unknown ; fi
1339    
1340  for ac_prog in gawk nawk awk  for ac_prog in gawk nawk awk
# Line 1340  do Line 1342  do
1342  # 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.
1343  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1344  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1345  echo "configure:1344: checking for $ac_word" >&5  echo "configure:1346: checking for $ac_word" >&5
1346  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1347    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1348  else  else
# Line 1376  do Line 1378  do
1378  # 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.
1379  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1380  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1381  echo "configure:1380: checking for $ac_word" >&5  echo "configure:1382: checking for $ac_word" >&5
1382  if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1383    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1384  else  else
# Line 1440  MP_INLCUDE="" Line 1442  MP_INLCUDE=""
1442  if test $use_gmp = yes ; then  if test $use_gmp = yes ; then
1443    
1444   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
1445  echo "configure:1444: checking use_gmp=yes, doing configure in gmp directory" >&5  echo "configure:1446: checking use_gmp=yes, doing configure in gmp directory" >&5
1446   echo   echo
1447   echo "#"   echo "#"
1448   echo "#"   echo "#"
# Line 1472  echo "configure:1444: checking use_gmp=y Line 1474  echo "configure:1444: checking use_gmp=y
1474   if test "$enable_dynsysgmp" = "yes" ; then   if test "$enable_dynsysgmp" = "yes" ; then
1475          ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'`          ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'`
1476  echo $ac_n "checking for gmp.h""... $ac_c" 1>&6  echo $ac_n "checking for gmp.h""... $ac_c" 1>&6
1477  echo "configure:1476: checking for gmp.h" >&5  echo "configure:1478: checking for gmp.h" >&5
1478  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1479    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1480  else  else
1481    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1482  #line 1481 "configure"  #line 1483 "configure"
1483  #include "confdefs.h"  #include "confdefs.h"
1484  #include <gmp.h>  #include <gmp.h>
1485  EOF  EOF
1486  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1487  { (eval echo configure:1486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1488  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1489  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1490    rm -rf conftest*    rm -rf conftest*
# Line 1499  fi Line 1501  fi
1501  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1502    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
1503    echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6    echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6
1504  echo "configure:1503: checking for __gmpz_init in -lgmp" >&5  echo "configure:1505: checking for __gmpz_init in -lgmp" >&5
1505  ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'`
1506  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
1507    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1507  else Line 1509  else
1509    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1510  LIBS="-lgmp  $LIBS"  LIBS="-lgmp  $LIBS"
1511  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1512  #line 1511 "configure"  #line 1513 "configure"
1513  #include "confdefs.h"  #include "confdefs.h"
1514  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1515  /* 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 1518  int main() { Line 1520  int main() {
1520  __gmpz_init()  __gmpz_init()
1521  ; return 0; }  ; return 0; }
1522  EOF  EOF
1523  if { (eval echo configure:1522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1524    rm -rf conftest*    rm -rf conftest*
1525    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1526  else  else
# Line 1562  else Line 1564  else
1564  fi  fi
1565    
1566   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
1567  echo "configure:1566: checking "for size of gmp limbs"" >&5  echo "configure:1568: checking "for size of gmp limbs"" >&5
1568   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
1569    mpsize=0    mpsize=0
1570  else  else
1571    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1572  #line 1571 "configure"  #line 1573 "configure"
1573  #include "confdefs.h"  #include "confdefs.h"
1574  #include <stdio.h>  #include <stdio.h>
1575          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 1578  else Line 1580  else
1580          return 0;          return 0;
1581          }          }
1582  EOF  EOF
1583  if { (eval echo configure:1582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1584  then  then
1585    mpsize=`cat conftest1`    mpsize=`cat conftest1`
1586  else  else
# Line 1612  EOF Line 1614  EOF
1614   echo "MPFILES=$MPFILES" >> makedefsafter   echo "MPFILES=$MPFILES" >> makedefsafter
1615   echo >> makedefsafter   echo >> makedefsafter
1616  fi  fi
1617    
1618    
1619    #
1620    # X windows
1621    #
1622    
1623    # If we find X, set shell vars x_includes and x_libraries to the
1624    # paths, otherwise set no_x=yes.
1625    # Uses ac_ vars as temps to allow command line to override cache and checks.
1626    # --without-x overrides everything else, but does not touch the cache.
1627    echo $ac_n "checking for X""... $ac_c" 1>&6
1628    echo "configure:1629: checking for X" >&5
1629    
1630    # Check whether --with-x or --without-x was given.
1631    if test "${with_x+set}" = set; then
1632      withval="$with_x"
1633      :
1634    fi
1635    
1636    # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1637    if test "x$with_x" = xno; then
1638      # The user explicitly disabled X.
1639      have_x=disabled
1640    else
1641      if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1642        # Both variables are already set.
1643        have_x=yes
1644      else
1645    if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1646      echo $ac_n "(cached) $ac_c" 1>&6
1647    else
1648      # One or both of the vars are not set, and there is no cached value.
1649    ac_x_includes=NO ac_x_libraries=NO
1650    rm -fr conftestdir
1651    if mkdir conftestdir; then
1652      cd conftestdir
1653      # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1654      cat > Imakefile <<'EOF'
1655    acfindx:
1656            @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1657    EOF
1658      if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1659        # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1660        eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1661        # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1662        for ac_extension in a so sl; do
1663          if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1664            test -f $ac_im_libdir/libX11.$ac_extension; then
1665            ac_im_usrlibdir=$ac_im_libdir; break
1666          fi
1667        done
1668        # Screen out bogus values from the imake configuration.  They are
1669        # bogus both because they are the default anyway, and because
1670        # using them would break gcc on systems where it needs fixed includes.
1671        case "$ac_im_incroot" in
1672            /usr/include) ;;
1673            *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1674        esac
1675        case "$ac_im_usrlibdir" in
1676            /usr/lib | /lib) ;;
1677            *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1678        esac
1679      fi
1680      cd ..
1681      rm -fr conftestdir
1682    fi
1683    
1684    if test "$ac_x_includes" = NO; then
1685      # Guess where to find include files, by looking for this one X11 .h file.
1686      test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1687    
1688      # First, try using that file with no special directory specified.
1689    cat > conftest.$ac_ext <<EOF
1690    #line 1691 "configure"
1691    #include "confdefs.h"
1692    #include <$x_direct_test_include>
1693    EOF
1694    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1695    { (eval echo configure:1696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1696    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1697    if test -z "$ac_err"; then
1698      rm -rf conftest*
1699      # We can compile using X headers with no special include directory.
1700    ac_x_includes=
1701    else
1702      echo "$ac_err" >&5
1703      echo "configure: failed program was:" >&5
1704      cat conftest.$ac_ext >&5
1705      rm -rf conftest*
1706      # Look for the header file in a standard set of common directories.
1707    # Check X11 before X11Rn because it is often a symlink to the current release.
1708      for ac_dir in               \
1709        /usr/X11/include          \
1710        /usr/X11R6/include        \
1711        /usr/X11R5/include        \
1712        /usr/X11R4/include        \
1713                                  \
1714        /usr/include/X11          \
1715        /usr/include/X11R6        \
1716        /usr/include/X11R5        \
1717        /usr/include/X11R4        \
1718                                  \
1719        /usr/local/X11/include    \
1720        /usr/local/X11R6/include  \
1721        /usr/local/X11R5/include  \
1722        /usr/local/X11R4/include  \
1723                                  \
1724        /usr/local/include/X11    \
1725        /usr/local/include/X11R6  \
1726        /usr/local/include/X11R5  \
1727        /usr/local/include/X11R4  \
1728                                  \
1729        /usr/X386/include         \
1730        /usr/x386/include         \
1731        /usr/XFree86/include/X11  \
1732                                  \
1733        /usr/include              \
1734        /usr/local/include        \
1735        /usr/unsupported/include  \
1736        /usr/athena/include       \
1737        /usr/local/x11r5/include  \
1738        /usr/lpp/Xamples/include  \
1739                                  \
1740        /usr/openwin/include      \
1741        /usr/openwin/share/include \
1742        ; \
1743      do
1744        if test -r "$ac_dir/$x_direct_test_include"; then
1745          ac_x_includes=$ac_dir
1746          break
1747        fi
1748      done
1749    fi
1750    rm -f conftest*
1751    fi # $ac_x_includes = NO
1752    
1753    if test "$ac_x_libraries" = NO; then
1754      # Check for the libraries.
1755    
1756      test -z "$x_direct_test_library" && x_direct_test_library=Xt
1757      test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1758    
1759      # See if we find them without any special options.
1760      # Don't add to $LIBS permanently.
1761      ac_save_LIBS="$LIBS"
1762      LIBS="-l$x_direct_test_library $LIBS"
1763    cat > conftest.$ac_ext <<EOF
1764    #line 1765 "configure"
1765    #include "confdefs.h"
1766    
1767    int main() {
1768    ${x_direct_test_function}()
1769    ; return 0; }
1770    EOF
1771    if { (eval echo configure:1772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1772      rm -rf conftest*
1773      LIBS="$ac_save_LIBS"
1774    # We can link X programs with no special library path.
1775    ac_x_libraries=
1776    else
1777      echo "configure: failed program was:" >&5
1778      cat conftest.$ac_ext >&5
1779      rm -rf conftest*
1780      LIBS="$ac_save_LIBS"
1781    # First see if replacing the include by lib works.
1782    # Check X11 before X11Rn because it is often a symlink to the current release.
1783    for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1784        /usr/X11/lib          \
1785        /usr/X11R6/lib        \
1786        /usr/X11R5/lib        \
1787        /usr/X11R4/lib        \
1788                              \
1789        /usr/lib/X11          \
1790        /usr/lib/X11R6        \
1791        /usr/lib/X11R5        \
1792        /usr/lib/X11R4        \
1793                              \
1794        /usr/local/X11/lib    \
1795        /usr/local/X11R6/lib  \
1796        /usr/local/X11R5/lib  \
1797        /usr/local/X11R4/lib  \
1798                              \
1799        /usr/local/lib/X11    \
1800        /usr/local/lib/X11R6  \
1801        /usr/local/lib/X11R5  \
1802        /usr/local/lib/X11R4  \
1803                              \
1804        /usr/X386/lib         \
1805        /usr/x386/lib         \
1806        /usr/XFree86/lib/X11  \
1807                              \
1808        /usr/lib              \
1809        /usr/local/lib        \
1810        /usr/unsupported/lib  \
1811        /usr/athena/lib       \
1812        /usr/local/x11r5/lib  \
1813        /usr/lpp/Xamples/lib  \
1814        /lib/usr/lib/X11      \
1815                              \
1816        /usr/openwin/lib      \
1817        /usr/openwin/share/lib \
1818        ; \
1819    do
1820      for ac_extension in a so sl; do
1821        if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1822          ac_x_libraries=$ac_dir
1823          break 2
1824        fi
1825      done
1826    done
1827    fi
1828    rm -f conftest*
1829    fi # $ac_x_libraries = NO
1830    
1831    if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1832      # Didn't find X anywhere.  Cache the known absence of X.
1833      ac_cv_have_x="have_x=no"
1834    else
1835      # Record where we found X for the cache.
1836      ac_cv_have_x="have_x=yes \
1837                    ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1838    fi
1839    fi
1840      fi
1841      eval "$ac_cv_have_x"
1842    fi # $with_x != no
1843    
1844    if test "$have_x" != yes; then
1845      echo "$ac_t""$have_x" 1>&6
1846      no_x=yes
1847    else
1848      # If each of the values was on the command line, it overrides each guess.
1849      test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1850      test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1851      # Update the cache value to reflect the command line values.
1852      ac_cv_have_x="have_x=yes \
1853                    ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1854      echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1855    fi
1856    
1857    if test "$no_x" = yes; then
1858      # Not all programs may use this symbol, but it does not hurt to define it.
1859      cat >> confdefs.h <<\EOF
1860    #define X_DISPLAY_MISSING 1
1861    EOF
1862    
1863      X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1864    else
1865      if test -n "$x_includes"; then
1866        X_CFLAGS="$X_CFLAGS -I$x_includes"
1867      fi
1868    
1869      # It would also be nice to do this for all -L options, not just this one.
1870      if test -n "$x_libraries"; then
1871        X_LIBS="$X_LIBS -L$x_libraries"
1872        # For Solaris; some versions of Sun CC require a space after -R and
1873        # others require no space.  Words are not sufficient . . . .
1874        case "`(uname -sr) 2>/dev/null`" in
1875        "SunOS 5"*)
1876          echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1877    echo "configure:1878: checking whether -R must be followed by a space" >&5
1878          ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1879          cat > conftest.$ac_ext <<EOF
1880    #line 1881 "configure"
1881    #include "confdefs.h"
1882    
1883    int main() {
1884    
1885    ; return 0; }
1886    EOF
1887    if { (eval echo configure:1888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1888      rm -rf conftest*
1889      ac_R_nospace=yes
1890    else
1891      echo "configure: failed program was:" >&5
1892      cat conftest.$ac_ext >&5
1893      rm -rf conftest*
1894      ac_R_nospace=no
1895    fi
1896    rm -f conftest*
1897          if test $ac_R_nospace = yes; then
1898            echo "$ac_t""no" 1>&6
1899            X_LIBS="$X_LIBS -R$x_libraries"
1900          else
1901            LIBS="$ac_xsave_LIBS -R $x_libraries"
1902            cat > conftest.$ac_ext <<EOF
1903    #line 1904 "configure"
1904    #include "confdefs.h"
1905    
1906    int main() {
1907    
1908    ; return 0; }
1909    EOF
1910    if { (eval echo configure:1911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1911      rm -rf conftest*
1912      ac_R_space=yes
1913    else
1914      echo "configure: failed program was:" >&5
1915      cat conftest.$ac_ext >&5
1916      rm -rf conftest*
1917      ac_R_space=no
1918    fi
1919    rm -f conftest*
1920            if test $ac_R_space = yes; then
1921              echo "$ac_t""yes" 1>&6
1922              X_LIBS="$X_LIBS -R $x_libraries"
1923            else
1924              echo "$ac_t""neither works" 1>&6
1925            fi
1926          fi
1927          LIBS="$ac_xsave_LIBS"
1928        esac
1929      fi
1930    
1931      # Check for system-dependent libraries X programs must link with.
1932      # Do this before checking for the system-independent R6 libraries
1933      # (-lICE), since we may need -lsocket or whatever for X linking.
1934    
1935      if test "$ISC" = yes; then
1936        X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1937      else
1938        # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1939        # libraries were built with DECnet support.  And karl@cs.umb.edu says
1940        # the Alpha needs dnet_stub (dnet does not exist).
1941        echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1942    echo "configure:1943: checking for dnet_ntoa in -ldnet" >&5
1943    ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1944    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1945      echo $ac_n "(cached) $ac_c" 1>&6
1946    else
1947      ac_save_LIBS="$LIBS"
1948    LIBS="-ldnet  $LIBS"
1949    cat > conftest.$ac_ext <<EOF
1950    #line 1951 "configure"
1951    #include "confdefs.h"
1952    /* Override any gcc2 internal prototype to avoid an error.  */
1953    /* We use char because int might match the return type of a gcc2
1954        builtin and then its argument prototype would still apply.  */
1955    char dnet_ntoa();
1956    
1957    int main() {
1958    dnet_ntoa()
1959    ; return 0; }
1960    EOF
1961    if { (eval echo configure:1962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1962      rm -rf conftest*
1963      eval "ac_cv_lib_$ac_lib_var=yes"
1964    else
1965      echo "configure: failed program was:" >&5
1966      cat conftest.$ac_ext >&5
1967      rm -rf conftest*
1968      eval "ac_cv_lib_$ac_lib_var=no"
1969    fi
1970    rm -f conftest*
1971    LIBS="$ac_save_LIBS"
1972    
1973    fi
1974    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1975      echo "$ac_t""yes" 1>&6
1976      X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1977    else
1978      echo "$ac_t""no" 1>&6
1979    fi
1980    
1981        if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1982          echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1983    echo "configure:1984: checking for dnet_ntoa in -ldnet_stub" >&5
1984    ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1985    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1986      echo $ac_n "(cached) $ac_c" 1>&6
1987    else
1988      ac_save_LIBS="$LIBS"
1989    LIBS="-ldnet_stub  $LIBS"
1990    cat > conftest.$ac_ext <<EOF
1991    #line 1992 "configure"
1992    #include "confdefs.h"
1993    /* Override any gcc2 internal prototype to avoid an error.  */
1994    /* We use char because int might match the return type of a gcc2
1995        builtin and then its argument prototype would still apply.  */
1996    char dnet_ntoa();
1997    
1998    int main() {
1999    dnet_ntoa()
2000    ; return 0; }
2001    EOF
2002    if { (eval echo configure:2003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2003      rm -rf conftest*
2004      eval "ac_cv_lib_$ac_lib_var=yes"
2005    else
2006      echo "configure: failed program was:" >&5
2007      cat conftest.$ac_ext >&5
2008      rm -rf conftest*
2009      eval "ac_cv_lib_$ac_lib_var=no"
2010    fi
2011    rm -f conftest*
2012    LIBS="$ac_save_LIBS"
2013    
2014    fi
2015    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2016      echo "$ac_t""yes" 1>&6
2017      X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2018    else
2019      echo "$ac_t""no" 1>&6
2020    fi
2021    
2022        fi
2023    
2024        # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2025        # to get the SysV transport functions.
2026        # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2027        # needs -lnsl.
2028        # The nsl library prevents programs from opening the X display
2029        # on Irix 5.2, according to dickey@clark.net.
2030        echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2031    echo "configure:2032: checking for gethostbyname" >&5
2032    if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2033      echo $ac_n "(cached) $ac_c" 1>&6
2034    else
2035      cat > conftest.$ac_ext <<EOF
2036    #line 2037 "configure"
2037    #include "confdefs.h"
2038    /* System header to define __stub macros and hopefully few prototypes,
2039        which can conflict with char gethostbyname(); below.  */
2040    #include <assert.h>
2041    /* Override any gcc2 internal prototype to avoid an error.  */
2042    /* We use char because int might match the return type of a gcc2
2043        builtin and then its argument prototype would still apply.  */
2044    char gethostbyname();
2045    
2046    int main() {
2047    
2048    /* The GNU C library defines this for functions which it implements
2049        to always fail with ENOSYS.  Some functions are actually named
2050        something starting with __ and the normal name is an alias.  */
2051    #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2052    choke me
2053    #else
2054    gethostbyname();
2055    #endif
2056    
2057    ; return 0; }
2058    EOF
2059    if { (eval echo configure:2060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2060      rm -rf conftest*
2061      eval "ac_cv_func_gethostbyname=yes"
2062    else
2063      echo "configure: failed program was:" >&5
2064      cat conftest.$ac_ext >&5
2065      rm -rf conftest*
2066      eval "ac_cv_func_gethostbyname=no"
2067    fi
2068    rm -f conftest*
2069    fi
2070    
2071    if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2072      echo "$ac_t""yes" 1>&6
2073      :
2074    else
2075      echo "$ac_t""no" 1>&6
2076    fi
2077    
2078        if test $ac_cv_func_gethostbyname = no; then
2079          echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2080    echo "configure:2081: checking for gethostbyname in -lnsl" >&5
2081    ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2082    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2083      echo $ac_n "(cached) $ac_c" 1>&6
2084    else
2085      ac_save_LIBS="$LIBS"
2086    LIBS="-lnsl  $LIBS"
2087    cat > conftest.$ac_ext <<EOF
2088    #line 2089 "configure"
2089    #include "confdefs.h"
2090    /* Override any gcc2 internal prototype to avoid an error.  */
2091    /* We use char because int might match the return type of a gcc2
2092        builtin and then its argument prototype would still apply.  */
2093    char gethostbyname();
2094    
2095    int main() {
2096    gethostbyname()
2097    ; return 0; }
2098    EOF
2099    if { (eval echo configure:2100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2100      rm -rf conftest*
2101      eval "ac_cv_lib_$ac_lib_var=yes"
2102    else
2103      echo "configure: failed program was:" >&5
2104      cat conftest.$ac_ext >&5
2105      rm -rf conftest*
2106      eval "ac_cv_lib_$ac_lib_var=no"
2107    fi
2108    rm -f conftest*
2109    LIBS="$ac_save_LIBS"
2110    
2111    fi
2112    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2113      echo "$ac_t""yes" 1>&6
2114      X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2115    else
2116      echo "$ac_t""no" 1>&6
2117    fi
2118    
2119        fi
2120    
2121        # lieder@skyler.mavd.honeywell.com says without -lsocket,
2122        # socket/setsockopt and other routines are undefined under SCO ODT
2123        # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
2124        # on later versions), says simon@lia.di.epfl.ch: it contains
2125        # gethostby* variants that don't use the nameserver (or something).
2126        # -lsocket must be given before -lnsl if both are needed.
2127        # We assume that if connect needs -lnsl, so does gethostbyname.
2128        echo $ac_n "checking for connect""... $ac_c" 1>&6
2129    echo "configure:2130: checking for connect" >&5
2130    if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2131      echo $ac_n "(cached) $ac_c" 1>&6
2132    else
2133      cat > conftest.$ac_ext <<EOF
2134    #line 2135 "configure"
2135    #include "confdefs.h"
2136    /* System header to define __stub macros and hopefully few prototypes,
2137        which can conflict with char connect(); below.  */
2138    #include <assert.h>
2139    /* Override any gcc2 internal prototype to avoid an error.  */
2140    /* We use char because int might match the return type of a gcc2
2141        builtin and then its argument prototype would still apply.  */
2142    char connect();
2143    
2144    int main() {
2145    
2146    /* The GNU C library defines this for functions which it implements
2147        to always fail with ENOSYS.  Some functions are actually named
2148        something starting with __ and the normal name is an alias.  */
2149    #if defined (__stub_connect) || defined (__stub___connect)
2150    choke me
2151    #else
2152    connect();
2153    #endif
2154    
2155    ; return 0; }
2156    EOF
2157    if { (eval echo configure:2158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2158      rm -rf conftest*
2159      eval "ac_cv_func_connect=yes"
2160    else
2161      echo "configure: failed program was:" >&5
2162      cat conftest.$ac_ext >&5
2163      rm -rf conftest*
2164      eval "ac_cv_func_connect=no"
2165    fi
2166    rm -f conftest*
2167    fi
2168    
2169    if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2170      echo "$ac_t""yes" 1>&6
2171      :
2172    else
2173      echo "$ac_t""no" 1>&6
2174    fi
2175    
2176        if test $ac_cv_func_connect = no; then
2177          echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2178    echo "configure:2179: checking for connect in -lsocket" >&5
2179    ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2180    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2181      echo $ac_n "(cached) $ac_c" 1>&6
2182    else
2183      ac_save_LIBS="$LIBS"
2184    LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2185    cat > conftest.$ac_ext <<EOF
2186    #line 2187 "configure"
2187    #include "confdefs.h"
2188    /* Override any gcc2 internal prototype to avoid an error.  */
2189    /* We use char because int might match the return type of a gcc2
2190        builtin and then its argument prototype would still apply.  */
2191    char connect();
2192    
2193    int main() {
2194    connect()
2195    ; return 0; }
2196    EOF
2197    if { (eval echo configure:2198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2198      rm -rf conftest*
2199      eval "ac_cv_lib_$ac_lib_var=yes"
2200    else
2201      echo "configure: failed program was:" >&5
2202      cat conftest.$ac_ext >&5
2203      rm -rf conftest*
2204      eval "ac_cv_lib_$ac_lib_var=no"
2205    fi
2206    rm -f conftest*
2207    LIBS="$ac_save_LIBS"
2208    
2209    fi
2210    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2211      echo "$ac_t""yes" 1>&6
2212      X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2213    else
2214      echo "$ac_t""no" 1>&6
2215    fi
2216    
2217        fi
2218    
2219        # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2220        echo $ac_n "checking for remove""... $ac_c" 1>&6
2221    echo "configure:2222: checking for remove" >&5
2222    if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2223      echo $ac_n "(cached) $ac_c" 1>&6
2224    else
2225      cat > conftest.$ac_ext <<EOF
2226    #line 2227 "configure"
2227    #include "confdefs.h"
2228    /* System header to define __stub macros and hopefully few prototypes,
2229        which can conflict with char remove(); below.  */
2230    #include <assert.h>
2231    /* Override any gcc2 internal prototype to avoid an error.  */
2232    /* We use char because int might match the return type of a gcc2
2233        builtin and then its argument prototype would still apply.  */
2234    char remove();
2235    
2236    int main() {
2237    
2238    /* The GNU C library defines this for functions which it implements
2239        to always fail with ENOSYS.  Some functions are actually named
2240        something starting with __ and the normal name is an alias.  */
2241    #if defined (__stub_remove) || defined (__stub___remove)
2242    choke me
2243    #else
2244    remove();
2245    #endif
2246    
2247    ; return 0; }
2248    EOF
2249    if { (eval echo configure:2250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2250      rm -rf conftest*
2251      eval "ac_cv_func_remove=yes"
2252    else
2253      echo "configure: failed program was:" >&5
2254      cat conftest.$ac_ext >&5
2255      rm -rf conftest*
2256      eval "ac_cv_func_remove=no"
2257    fi
2258    rm -f conftest*
2259    fi
2260    
2261    if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2262      echo "$ac_t""yes" 1>&6
2263      :
2264    else
2265      echo "$ac_t""no" 1>&6
2266    fi
2267    
2268        if test $ac_cv_func_remove = no; then
2269          echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2270    echo "configure:2271: checking for remove in -lposix" >&5
2271    ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2272    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2273      echo $ac_n "(cached) $ac_c" 1>&6
2274    else
2275      ac_save_LIBS="$LIBS"
2276    LIBS="-lposix  $LIBS"
2277    cat > conftest.$ac_ext <<EOF
2278    #line 2279 "configure"
2279    #include "confdefs.h"
2280    /* Override any gcc2 internal prototype to avoid an error.  */
2281    /* We use char because int might match the return type of a gcc2
2282        builtin and then its argument prototype would still apply.  */
2283    char remove();
2284    
2285    int main() {
2286    remove()
2287    ; return 0; }
2288    EOF
2289    if { (eval echo configure:2290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2290      rm -rf conftest*
2291      eval "ac_cv_lib_$ac_lib_var=yes"
2292    else
2293      echo "configure: failed program was:" >&5
2294      cat conftest.$ac_ext >&5
2295      rm -rf conftest*
2296      eval "ac_cv_lib_$ac_lib_var=no"
2297    fi
2298    rm -f conftest*
2299    LIBS="$ac_save_LIBS"
2300    
2301    fi
2302    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2303      echo "$ac_t""yes" 1>&6
2304      X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2305    else
2306      echo "$ac_t""no" 1>&6
2307    fi
2308    
2309        fi
2310    
2311        # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2312        echo $ac_n "checking for shmat""... $ac_c" 1>&6
2313    echo "configure:2314: checking for shmat" >&5
2314    if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2315      echo $ac_n "(cached) $ac_c" 1>&6
2316    else
2317      cat > conftest.$ac_ext <<EOF
2318    #line 2319 "configure"
2319    #include "confdefs.h"
2320    /* System header to define __stub macros and hopefully few prototypes,
2321        which can conflict with char shmat(); below.  */
2322    #include <assert.h>
2323    /* Override any gcc2 internal prototype to avoid an error.  */
2324    /* We use char because int might match the return type of a gcc2
2325        builtin and then its argument prototype would still apply.  */
2326    char shmat();
2327    
2328    int main() {
2329    
2330    /* The GNU C library defines this for functions which it implements
2331        to always fail with ENOSYS.  Some functions are actually named
2332        something starting with __ and the normal name is an alias.  */
2333    #if defined (__stub_shmat) || defined (__stub___shmat)
2334    choke me
2335    #else
2336    shmat();
2337    #endif
2338    
2339    ; return 0; }
2340    EOF
2341    if { (eval echo configure:2342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2342      rm -rf conftest*
2343      eval "ac_cv_func_shmat=yes"
2344    else
2345      echo "configure: failed program was:" >&5
2346      cat conftest.$ac_ext >&5
2347      rm -rf conftest*
2348      eval "ac_cv_func_shmat=no"
2349    fi
2350    rm -f conftest*
2351    fi
2352    
2353    if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2354      echo "$ac_t""yes" 1>&6
2355      :
2356    else
2357      echo "$ac_t""no" 1>&6
2358    fi
2359    
2360        if test $ac_cv_func_shmat = no; then
2361          echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2362    echo "configure:2363: checking for shmat in -lipc" >&5
2363    ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2364    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2365      echo $ac_n "(cached) $ac_c" 1>&6
2366    else
2367      ac_save_LIBS="$LIBS"
2368    LIBS="-lipc  $LIBS"
2369    cat > conftest.$ac_ext <<EOF
2370    #line 2371 "configure"
2371    #include "confdefs.h"
2372    /* Override any gcc2 internal prototype to avoid an error.  */
2373    /* We use char because int might match the return type of a gcc2
2374        builtin and then its argument prototype would still apply.  */
2375    char shmat();
2376    
2377    int main() {
2378    shmat()
2379    ; return 0; }
2380    EOF
2381    if { (eval echo configure:2382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2382      rm -rf conftest*
2383      eval "ac_cv_lib_$ac_lib_var=yes"
2384    else
2385      echo "configure: failed program was:" >&5
2386      cat conftest.$ac_ext >&5
2387      rm -rf conftest*
2388      eval "ac_cv_lib_$ac_lib_var=no"
2389    fi
2390    rm -f conftest*
2391    LIBS="$ac_save_LIBS"
2392    
2393    fi
2394    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2395      echo "$ac_t""yes" 1>&6
2396      X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2397    else
2398      echo "$ac_t""no" 1>&6
2399    fi
2400    
2401        fi
2402      fi
2403    
2404      # Check for libraries that X11R6 Xt/Xaw programs need.
2405      ac_save_LDFLAGS="$LDFLAGS"
2406      test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2407      # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2408      # check for ICE first), but we must link in the order -lSM -lICE or
2409      # we get undefined symbols.  So assume we have SM if we have ICE.
2410      # These have to be linked with before -lX11, unlike the other
2411      # libraries we check for below, so use a different variable.
2412      #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2413      echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2414    echo "configure:2415: checking for IceConnectionNumber in -lICE" >&5
2415    ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2416    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2417      echo $ac_n "(cached) $ac_c" 1>&6
2418    else
2419      ac_save_LIBS="$LIBS"
2420    LIBS="-lICE $X_EXTRA_LIBS $LIBS"
2421    cat > conftest.$ac_ext <<EOF
2422    #line 2423 "configure"
2423    #include "confdefs.h"
2424    /* Override any gcc2 internal prototype to avoid an error.  */
2425    /* We use char because int might match the return type of a gcc2
2426        builtin and then its argument prototype would still apply.  */
2427    char IceConnectionNumber();
2428    
2429    int main() {
2430    IceConnectionNumber()
2431    ; return 0; }
2432    EOF
2433    if { (eval echo configure:2434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2434      rm -rf conftest*
2435      eval "ac_cv_lib_$ac_lib_var=yes"
2436    else
2437      echo "configure: failed program was:" >&5
2438      cat conftest.$ac_ext >&5
2439      rm -rf conftest*
2440      eval "ac_cv_lib_$ac_lib_var=no"
2441    fi
2442    rm -f conftest*
2443    LIBS="$ac_save_LIBS"
2444    
2445    fi
2446    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2447      echo "$ac_t""yes" 1>&6
2448      X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2449    else
2450      echo "$ac_t""no" 1>&6
2451    fi
2452    
2453      LDFLAGS="$ac_save_LDFLAGS"
2454    
2455    fi
2456    
2457    echo $X_CFLAGS
2458    echo $X_LIBS
2459    echo $X_EXTRA_LIBS
2460    echo $X_PRE_LIBS
2461    
2462    miss=0
2463    echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6
2464    echo "configure:2465: checking for main in -lXaw" >&5
2465    ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'`
2466    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2467      echo $ac_n "(cached) $ac_c" 1>&6
2468    else
2469      ac_save_LIBS="$LIBS"
2470    LIBS="-lXaw $X_LIBS $LIBS"
2471    cat > conftest.$ac_ext <<EOF
2472    #line 2473 "configure"
2473    #include "confdefs.h"
2474    
2475    int main() {
2476    main()
2477    ; return 0; }
2478    EOF
2479    if { (eval echo configure:2480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2480      rm -rf conftest*
2481      eval "ac_cv_lib_$ac_lib_var=yes"
2482    else
2483      echo "configure: failed program was:" >&5
2484      cat conftest.$ac_ext >&5
2485      rm -rf conftest*
2486      eval "ac_cv_lib_$ac_lib_var=no"
2487    fi
2488    rm -f conftest*
2489    LIBS="$ac_save_LIBS"
2490    
2491    fi
2492    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2493      echo "$ac_t""yes" 1>&6
2494      X_LIBS="$X_LIBS -lXaw"
2495    else
2496      echo "$ac_t""no" 1>&6
2497    miss=1
2498    fi
2499    
2500    echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6
2501    echo "configure:2502: checking for main in -lXmu" >&5
2502    ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'`
2503    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2504      echo $ac_n "(cached) $ac_c" 1>&6
2505    else
2506      ac_save_LIBS="$LIBS"
2507    LIBS="-lXmu $X_LIBS $LIBS"
2508    cat > conftest.$ac_ext <<EOF
2509    #line 2510 "configure"
2510    #include "confdefs.h"
2511    
2512    int main() {
2513    main()
2514    ; return 0; }
2515    EOF
2516    if { (eval echo configure:2517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2517      rm -rf conftest*
2518      eval "ac_cv_lib_$ac_lib_var=yes"
2519    else
2520      echo "configure: failed program was:" >&5
2521      cat conftest.$ac_ext >&5
2522      rm -rf conftest*
2523      eval "ac_cv_lib_$ac_lib_var=no"
2524    fi
2525    rm -f conftest*
2526    LIBS="$ac_save_LIBS"
2527    
2528    fi
2529    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2530      echo "$ac_t""yes" 1>&6
2531      X_LIBS="$X_LIBS -lXmu"
2532    else
2533      echo "$ac_t""no" 1>&6
2534    miss=1
2535    fi
2536    
2537    echo $ac_n "checking for main in -lXt""... $ac_c" 1>&6
2538    echo "configure:2539: checking for main in -lXt" >&5
2539    ac_lib_var=`echo Xt'_'main | sed 'y%./+-%__p_%'`
2540    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2541      echo $ac_n "(cached) $ac_c" 1>&6
2542    else
2543      ac_save_LIBS="$LIBS"
2544    LIBS="-lXt $X_LIBS $LIBS"
2545    cat > conftest.$ac_ext <<EOF
2546    #line 2547 "configure"
2547    #include "confdefs.h"
2548    
2549    int main() {
2550    main()
2551    ; return 0; }
2552    EOF
2553    if { (eval echo configure:2554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2554      rm -rf conftest*
2555      eval "ac_cv_lib_$ac_lib_var=yes"
2556    else
2557      echo "configure: failed program was:" >&5
2558      cat conftest.$ac_ext >&5
2559      rm -rf conftest*
2560      eval "ac_cv_lib_$ac_lib_var=no"
2561    fi
2562    rm -f conftest*
2563    LIBS="$ac_save_LIBS"
2564    
2565    fi
2566    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2567      echo "$ac_t""yes" 1>&6
2568      X_LIBS="$X_LIBS -lXt"
2569    else
2570      echo "$ac_t""no" 1>&6
2571    miss=1
2572    fi
2573    
2574    echo $ac_n "checking for main in -lXext""... $ac_c" 1>&6
2575    echo "configure:2576: checking for main in -lXext" >&5
2576    ac_lib_var=`echo Xext'_'main | sed 'y%./+-%__p_%'`
2577    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2578      echo $ac_n "(cached) $ac_c" 1>&6
2579    else
2580      ac_save_LIBS="$LIBS"
2581    LIBS="-lXext $X_LIBS $LIBS"
2582    cat > conftest.$ac_ext <<EOF
2583    #line 2584 "configure"
2584    #include "confdefs.h"
2585    
2586    int main() {
2587    main()
2588    ; return 0; }
2589    EOF
2590    if { (eval echo configure:2591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2591      rm -rf conftest*
2592      eval "ac_cv_lib_$ac_lib_var=yes"
2593    else
2594      echo "configure: failed program was:" >&5
2595      cat conftest.$ac_ext >&5
2596      rm -rf conftest*
2597      eval "ac_cv_lib_$ac_lib_var=no"
2598    fi
2599    rm -f conftest*
2600    LIBS="$ac_save_LIBS"
2601    
2602    fi
2603    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2604      echo "$ac_t""yes" 1>&6
2605      X_LIBS="$X_LIBS -lXext"
2606    else
2607      echo "$ac_t""no" 1>&6
2608    miss=1
2609    fi
2610    
2611    echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6
2612    echo "configure:2613: checking for main in -lX11" >&5
2613    ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'`
2614    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2615      echo $ac_n "(cached) $ac_c" 1>&6
2616    else
2617      ac_save_LIBS="$LIBS"
2618    LIBS="-lX11 $X_LIBS $LIBS"
2619    cat > conftest.$ac_ext <<EOF
2620    #line 2621 "configure"
2621    #include "confdefs.h"
2622    
2623    int main() {
2624    main()
2625    ; return 0; }
2626    EOF
2627    if { (eval echo configure:2628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2628      rm -rf conftest*
2629      eval "ac_cv_lib_$ac_lib_var=yes"
2630    else
2631      echo "configure: failed program was:" >&5
2632      cat conftest.$ac_ext >&5
2633      rm -rf conftest*
2634      eval "ac_cv_lib_$ac_lib_var=no"
2635    fi
2636    rm -f conftest*
2637    LIBS="$ac_save_LIBS"
2638    
2639    fi
2640    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2641      echo "$ac_t""yes" 1>&6
2642      X_LIBS="$X_LIBS -lX11"
2643    else
2644      echo "$ac_t""no" 1>&6
2645    miss=1
2646    fi
2647    
2648    
2649    if test "$miss" = "1" ; then
2650            X_CFLAGS=
2651            X_LIBS=
2652            echo missing x libraries -- cannot compile xgcl
2653    fi
2654    
2655    
2656    
2657    
2658    
2659  #  #
# Line 1622  fi Line 2663  fi
2663  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
2664    
2665          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2666  echo "configure:1626: checking for dlopen in -ldl" >&5  echo "configure:2667: checking for dlopen in -ldl" >&5
2667  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2668  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
2669    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1630  else Line 2671  else
2671    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2672  LIBS="-ldl  $LIBS"  LIBS="-ldl  $LIBS"
2673  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2674  #line 1634 "configure"  #line 2675 "configure"
2675  #include "confdefs.h"  #include "confdefs.h"
2676  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2677  /* 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 1641  int main() { Line 2682  int main() {
2682  dlopen()  dlopen()
2683  ; return 0; }  ; return 0; }
2684  EOF  EOF
2685  if { (eval echo configure:1645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2686    rm -rf conftest*    rm -rf conftest*
2687    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2688  else  else
# Line 1677  fi Line 2718  fi
2718  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then
2719          ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'`          ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'`
2720  echo $ac_n "checking for bfd.h""... $ac_c" 1>&6  echo $ac_n "checking for bfd.h""... $ac_c" 1>&6
2721  echo "configure:1681: checking for bfd.h" >&5  echo "configure:2722: checking for bfd.h" >&5
2722  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2723    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2724  else  else
2725    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2726  #line 1686 "configure"  #line 2727 "configure"
2727  #include "confdefs.h"  #include "confdefs.h"
2728  #include <bfd.h>  #include <bfd.h>
2729  EOF  EOF
2730  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2731  { (eval echo configure:1691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2732  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2733  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2734    rm -rf conftest*    rm -rf conftest*
# Line 1704  fi Line 2745  fi
2745  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2746    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
2747    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
2748  echo "configure:1708: checking for bfd_init in -lbfd" >&5  echo "configure:2749: checking for bfd_init in -lbfd" >&5
2749  ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'`  ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'`
2750  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
2751    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1712  else Line 2753  else
2753    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2754  LIBS="-lbfd -liberty $LIBS"  LIBS="-lbfd -liberty $LIBS"
2755  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2756  #line 1716 "configure"  #line 2757 "configure"
2757  #include "confdefs.h"  #include "confdefs.h"
2758  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2759  /* 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 1723  int main() { Line 2764  int main() {
2764  bfd_init()  bfd_init()
2765  ; return 0; }  ; return 0; }
2766  EOF  EOF
2767  if { (eval echo configure:1727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2768    rm -rf conftest*    rm -rf conftest*
2769    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2770  else  else
# Line 1742  if eval "test \"`echo '$ac_cv_lib_'$ac_l Line 2783  if eval "test \"`echo '$ac_cv_lib_'$ac_l
2783                  # Old binutils appear to need CONST defined to const                  # Old binutils appear to need CONST defined to const
2784                  #                  #
2785                          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
2786  echo "configure:1746: checking if need to define CONST for bfd" >&5  echo "configure:2787: checking if need to define CONST for bfd" >&5
2787                          if test "$cross_compiling" = yes; then                          if test "$cross_compiling" = yes; then
2788    echo "$ac_t""cannot use bfd" 1>&6 exit 1;    echo "$ac_t""cannot use bfd" 1>&6 exit 1;
2789  else  else
2790    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2791  #line 1751 "configure"  #line 2792 "configure"
2792  #include "confdefs.h"  #include "confdefs.h"
2793  #define IN_GCC  #define IN_GCC
2794                                      #include <bfd.h>                                      #include <bfd.h>
2795                                      int main() { symbol_info t; return 0;}                                      int main() { symbol_info t; return 0;}
2796  EOF  EOF
2797  if { (eval echo configure:1757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:2798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2798  then  then
2799    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
2800  else  else
# Line 1764  else Line 2805  else
2805    echo "$ac_t""cannot use bfd" 1>&6 exit 1;    echo "$ac_t""cannot use bfd" 1>&6 exit 1;
2806  else  else
2807    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2808  #line 1768 "configure"  #line 2809 "configure"
2809  #include "confdefs.h"  #include "confdefs.h"
2810  #define CONST const  #define CONST const
2811                                              #define IN_GCC                                              #define IN_GCC
2812                                              #include <bfd.h>                                              #include <bfd.h>
2813                                              int main() {symbol_info t; return 0;}                                              int main() {symbol_info t; return 0;}
2814  EOF  EOF
2815  if { (eval echo configure:1775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:2816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2816  then  then
2817    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
2818                                          cat >> confdefs.h <<\EOF                                          cat >> confdefs.h <<\EOF
# Line 1861  fi Line 2902  fi
2902  # addresses, in calculating a page for an address in the heap.  # addresses, in calculating a page for an address in the heap.
2903    
2904  echo $ac_n "checking size of long *""... $ac_c" 1>&6  echo $ac_n "checking size of long *""... $ac_c" 1>&6
2905  echo "configure:1865: checking size of long *" >&5  echo "configure:2906: checking size of long *" >&5
2906  if eval "test \"`echo '$''{'ac_cv_sizeof_long_p'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_sizeof_long_p'+set}'`\" = set"; then
2907    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2908  else  else
# Line 1869  else Line 2910  else
2910    ac_cv_sizeof_long_p=0    ac_cv_sizeof_long_p=0
2911  else  else
2912    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2913  #line 1873 "configure"  #line 2914 "configure"
2914  #include "confdefs.h"  #include "confdefs.h"
2915  #include <stdio.h>  #include <stdio.h>
2916    #include <sys/types.h>
2917  main()  main()
2918  {  {
2919    FILE *f=fopen("conftestval", "w");    FILE *f=fopen("conftestval", "w");
# Line 1880  main() Line 2922  main()
2922    exit(0);    exit(0);
2923  }  }
2924  EOF  EOF
2925  if { (eval echo configure:1884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:2926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2926  then  then
2927    ac_cv_sizeof_long_p=`cat conftestval`    ac_cv_sizeof_long_p=`cat conftestval`
2928  else  else
# Line 1904  for ac_hdr in endian.h Line 2946  for ac_hdr in endian.h
2946  do  do
2947  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2948  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2949  echo "configure:1908: checking for $ac_hdr" >&5  echo "configure:2950: checking for $ac_hdr" >&5
2950  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2951    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2952  else  else
2953    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2954  #line 1913 "configure"  #line 2955 "configure"
2955  #include "confdefs.h"  #include "confdefs.h"
2956  #include <$ac_hdr>  #include <$ac_hdr>
2957  EOF  EOF
2958  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2959  { (eval echo configure:1918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2960  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2961  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2962    rm -rf conftest*    rm -rf conftest*
# Line 1935  if eval "test \"`echo '$ac_cv_header_'$a Line 2977  if eval "test \"`echo '$ac_cv_header_'$a
2977  #define $ac_tr_hdr 1  #define $ac_tr_hdr 1
2978  EOF  EOF
2979   echo $ac_n "checking "endianness"""... $ac_c" 1>&6   echo $ac_n "checking "endianness"""... $ac_c" 1>&6
2980  echo "configure:1939: checking "endianness"" >&5  echo "configure:2981: checking "endianness"" >&5
2981          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
2982    echo "$ac_t""big" 1>&6    echo "$ac_t""big" 1>&6
2983  else  else
2984    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2985  #line 1944 "configure"  #line 2986 "configure"
2986  #include "confdefs.h"  #include "confdefs.h"
2987  #define __ARMEB__  #define __ARMEB__
2988                  #include <endian.h>                  #include <endian.h>
2989                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}
2990  EOF  EOF
2991  if { (eval echo configure:1950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:2992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2992  then  then
2993    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
2994  #define LITTLE_END 1  #define LITTLE_END 1
# Line 1969  done Line 3011  done
3011    
3012    
3013  echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6  echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6
3014  echo "configure:1973: checking "finding DBEGIN"" >&5  echo "configure:3015: checking "finding DBEGIN"" >&5
3015  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3016    dbegin=0    dbegin=0
3017  else  else
3018    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3019  #line 1978 "configure"  #line 3020 "configure"
3020  #include "confdefs.h"  #include "confdefs.h"
3021  #include <stdio.h>  #include <stdio.h>
3022              #include <stdlib.h>              #include <stdlib.h>
# Line 1991  main() Line 3033  main()
3033    return 0;    return 0;
3034  }  }
3035  EOF  EOF
3036  if { (eval echo configure:1995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3037  then  then
3038    dbegin=`cat conftest1`    dbegin=`cat conftest1`
3039  else  else
# Line 2013  echo "$ac_t""got $dbegin" 1>&6 Line 3055  echo "$ac_t""got $dbegin" 1>&6
3055    
3056    
3057  echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6  echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6
3058  echo "configure:2017: checking "finding CSTACK_ADDRESS"" >&5  echo "configure:3059: checking "finding CSTACK_ADDRESS"" >&5
3059  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3060    cstack_address=0    cstack_address=0
3061  else  else
3062    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3063  #line 2022 "configure"  #line 3064 "configure"
3064  #include "confdefs.h"  #include "confdefs.h"
3065  #include <stdio.h>  #include <stdio.h>
3066  main()  main()
# Line 2030  main() Line 3072  main()
3072    return 0;    return 0;
3073  }  }
3074  EOF  EOF
3075  if { (eval echo configure:2034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3076  then  then
3077    cstack_address=`cat conftest1`    cstack_address=`cat conftest1`
3078  else  else
# Line 2052  echo "$ac_t""got $cstack_address" 1>&6 Line 3094  echo "$ac_t""got $cstack_address" 1>&6
3094    
3095    
3096  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6
3097  echo "configure:2056: checking "sizeof long long int"" >&5  echo "configure:3098: checking "sizeof long long int"" >&5
3098  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3099    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
3100    
3101  else  else
3102    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3103  #line 2062 "configure"  #line 3104 "configure"
3104  #include "confdefs.h"  #include "confdefs.h"
3105  #include <stdio.h>  #include <stdio.h>
3106  main()  main()
# Line 2068  main() Line 3110  main()
3110  }  }
3111    
3112  EOF  EOF
3113  if { (eval echo configure:2072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3114  then  then
3115    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
3116  #define HAVE_LONG_LONG 1  #define HAVE_LONG_LONG 1
# Line 2121  fi Line 3163  fi
3163    
3164  # pagewidth  # pagewidth
3165  echo $ac_n "checking for pagewidth""... $ac_c" 1>&6  echo $ac_n "checking for pagewidth""... $ac_c" 1>&6
3166  echo "configure:2125: checking for pagewidth" >&5  echo "configure:3167: checking for pagewidth" >&5
3167  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3168    PAGEWIDTH=0    PAGEWIDTH=0
3169  else  else
3170    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3171  #line 2130 "configure"  #line 3172 "configure"
3172  #include "confdefs.h"  #include "confdefs.h"
3173  #include <stdio.h>  #include <stdio.h>
3174              #include <unistd.h>              #include <unistd.h>
# Line 2136  int main() {size_t i=getpagesize(),j; Line 3178  int main() {size_t i=getpagesize(),j;
3178              fprintf(fp,"%u",j);              fprintf(fp,"%u",j);
3179              return 0;}              return 0;}
3180  EOF  EOF
3181  if { (eval echo configure:2140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3182  then  then
3183    PAGEWIDTH=`cat conftest1`    PAGEWIDTH=`cat conftest1`
3184  else  else
# Line 2163  EOF Line 3205  EOF
3205  for ac_func in getcwd  for ac_func in getcwd
3206  do  do
3207  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3208  echo "configure:2167: checking for $ac_func" >&5  echo "configure:3209: checking for $ac_func" >&5
3209  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3210    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3211  else  else
3212    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3213  #line 2172 "configure"  #line 3214 "configure"
3214  #include "confdefs.h"  #include "confdefs.h"
3215  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3216      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 2191  $ac_func(); Line 3233  $ac_func();
3233    
3234  ; return 0; }  ; return 0; }
3235  EOF  EOF
3236  if { (eval echo configure:2195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3237    rm -rf conftest*    rm -rf conftest*
3238    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
3239  else  else
# Line 2218  done Line 3260  done
3260  for ac_func in getwd  for ac_func in getwd
3261  do  do
3262  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3263  echo "configure:2222: checking for $ac_func" >&5  echo "configure:3264: checking for $ac_func" >&5
3264  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3265    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3266  else  else
3267    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3268  #line 2227 "configure"  #line 3269 "configure"
3269  #include "confdefs.h"  #include "confdefs.h"
3270  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3271      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 2246  $ac_func(); Line 3288  $ac_func();
3288    
3289  ; return 0; }  ; return 0; }
3290  EOF  EOF
3291  if { (eval echo configure:2250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3292    rm -rf conftest*    rm -rf conftest*
3293    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
3294  else  else
# Line 2271  fi Line 3313  fi
3313  done  done
3314    
3315  echo $ac_n "checking for uname""... $ac_c" 1>&6  echo $ac_n "checking for uname""... $ac_c" 1>&6
3316  echo "configure:2275: checking for uname" >&5  echo "configure:3317: checking for uname" >&5
3317  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then
3318    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3319  else  else
3320    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3321  #line 2280 "configure"  #line 3322 "configure"
3322  #include "confdefs.h"  #include "confdefs.h"
3323  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3324      which can conflict with char uname(); below.  */      which can conflict with char uname(); below.  */
# Line 2299  uname(); Line 3341  uname();
3341    
3342  ; return 0; }  ; return 0; }
3343  EOF  EOF
3344  if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3345    rm -rf conftest*    rm -rf conftest*
3346    eval "ac_cv_func_uname=yes"    eval "ac_cv_func_uname=yes"
3347  else  else
# Line 2323  EOF Line 3365  EOF
3365  fi  fi
3366    
3367  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
3368  echo "configure:2327: checking for gettimeofday" >&5  echo "configure:3369: checking for gettimeofday" >&5
3369  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
3370    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3371  else  else
3372    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3373  #line 2332 "configure"  #line 3374 "configure"
3374  #include "confdefs.h"  #include "confdefs.h"
3375  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3376      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday(); below.  */
# Line 2351  gettimeofday(); Line 3393  gettimeofday();
3393    
3394  ; return 0; }  ; return 0; }
3395  EOF  EOF
3396  if { (eval echo configure:2355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3397    rm -rf conftest*    rm -rf conftest*
3398    eval "ac_cv_func_gettimeofday=yes"    eval "ac_cv_func_gettimeofday=yes"
3399  else  else
# Line 2380  for ac_hdr in sys/ioctl.h Line 3422  for ac_hdr in sys/ioctl.h
3422  do  do
3423  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3424  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3425  echo "configure:2384: checking for $ac_hdr" >&5  echo "configure:3426: checking for $ac_hdr" >&5
3426  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3427    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3428  else  else
3429    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3430  #line 2389 "configure"  #line 3431 "configure"
3431  #include "confdefs.h"  #include "confdefs.h"
3432  #include <$ac_hdr>  #include <$ac_hdr>
3433  EOF  EOF
3434  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3435  { (eval echo configure:2394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3436  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3437  if test -z "$ac_err"; then  if test -z "$ac_err"; then
3438    rm -rf conftest*    rm -rf conftest*
# Line 2430  done Line 3472  done
3472  #--------------------------------------------------------------------  #--------------------------------------------------------------------
3473    
3474  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6
3475  echo "configure:2434: checking for BSDgettimeofday" >&5  echo "configure:3476: checking for BSDgettimeofday" >&5
3476  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then
3477    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3478  else  else
3479    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3480  #line 2439 "configure"  #line 3481 "configure"
3481  #include "confdefs.h"  #include "confdefs.h"
3482  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3483      which can conflict with char BSDgettimeofday(); below.  */      which can conflict with char BSDgettimeofday(); below.  */
# Line 2458  BSDgettimeofday(); Line 3500  BSDgettimeofday();
3500    
3501  ; return 0; }  ; return 0; }
3502  EOF  EOF
3503  if { (eval echo configure:2462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3504    rm -rf conftest*    rm -rf conftest*
3505    eval "ac_cv_func_BSDgettimeofday=yes"    eval "ac_cv_func_BSDgettimeofday=yes"
3506  else  else
# Line 2479  EOF Line 3521  EOF
3521  else  else
3522    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
3523  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
3524  echo "configure:2483: checking for gettimeofday" >&5  echo "configure:3525: checking for gettimeofday" >&5
3525  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
3526    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3527  else  else
3528    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3529  #line 2488 "configure"  #line 3530 "configure"
3530  #include "confdefs.h"  #include "confdefs.h"
3531  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3532      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday(); below.  */
# Line 2507  gettimeofday(); Line 3549  gettimeofday();
3549    
3550  ; return 0; }  ; return 0; }
3551  EOF  EOF
3552  if { (eval echo configure:2511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3553    rm -rf conftest*    rm -rf conftest*
3554    eval "ac_cv_func_gettimeofday=yes"    eval "ac_cv_func_gettimeofday=yes"
3555  else  else
# Line 2534  fi Line 3576  fi
3576    
3577    
3578  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6
3579  echo "configure:2538: checking for gettimeofday declaration" >&5  echo "configure:3580: checking for gettimeofday declaration" >&5
3580    
3581  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3582  #line 2541 "configure"  #line 3583 "configure"
3583  #include "confdefs.h"  #include "confdefs.h"
3584  #include <sys/time.h>  #include <sys/time.h>
3585  EOF  EOF
# Line 2558  rm -f conftest* Line 3600  rm -f conftest*
3600    
3601    
3602  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
3603  echo "configure:2562: checking for sin in -lm" >&5  echo "configure:3604: checking for sin in -lm" >&5
3604  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
3605  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
3606    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2566  else Line 3608  else
3608    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
3609  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
3610  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3611  #line 2570 "configure"  #line 3612 "configure"
3612  #include "confdefs.h"  #include "confdefs.h"
3613  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
3614  /* 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 2577  int main() { Line 3619  int main() {
3619  sin()  sin()
3620  ; return 0; }  ; return 0; }
3621  EOF  EOF
3622  if { (eval echo configure:2581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3623    rm -rf conftest*    rm -rf conftest*
3624    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
3625  else  else
# Line 2599  true Line 3641  true
3641  fi  fi
3642    
3643  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6
3644  echo "configure:2603: checking for main in -lmingwex" >&5  echo "configure:3645: checking for main in -lmingwex" >&5
3645  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`
3646  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
3647    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2607  else Line 3649  else
3649    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
3650  LIBS="-lmingwex  $LIBS"  LIBS="-lmingwex  $LIBS"
3651  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3652  #line 2611 "configure"  #line 3653 "configure"
3653  #include "confdefs.h"  #include "confdefs.h"
3654    
3655  int main() {  int main() {
3656  main()  main()
3657  ; return 0; }  ; return 0; }
3658  EOF  EOF
3659  if { (eval echo configure:2618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3660    rm -rf conftest*    rm -rf conftest*
3661    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
3662  else  else
# Line 2643  for ac_hdr in math.h Line 3685  for ac_hdr in math.h
3685  do  do
3686  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3687  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3688  echo "configure:2647: checking for $ac_hdr" >&5  echo "configure:3689: checking for $ac_hdr" >&5
3689  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3690    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3691  else  else
3692    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3693  #line 2652 "configure"  #line 3694 "configure"
3694  #include "confdefs.h"  #include "confdefs.h"
3695  #include <$ac_hdr>  #include <$ac_hdr>
3696  EOF  EOF
3697  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3698  { (eval echo configure:2657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3699  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3700  if test -z "$ac_err"; then  if test -z "$ac_err"; then
3701    rm -rf conftest*    rm -rf conftest*
# Line 2690  for ac_hdr in values.h Line 3732  for ac_hdr in values.h
3732  do  do
3733  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3734  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3735  echo "configure:2694: checking for $ac_hdr" >&5  echo "configure:3736: checking for $ac_hdr" >&5
3736  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3737    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3738  else  else
3739    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3740  #line 2699 "configure"  #line 3741 "configure"
3741  #include "confdefs.h"  #include "confdefs.h"
3742  #include <$ac_hdr>  #include <$ac_hdr>
3743  EOF  EOF
3744  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3745  { (eval echo configure:2704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3746  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3747  if test -z "$ac_err"; then  if test -z "$ac_err"; then
3748    rm -rf conftest*    rm -rf conftest*
# Line 2736  done Line 3778  done
3778  # test makes sense.  CM  # test makes sense.  CM
3779  #  #
3780  echo $ac_n "checking for isnormal""... $ac_c" 1>&6  echo $ac_n "checking for isnormal""... $ac_c" 1>&6
3781  echo "configure:2740: checking for isnormal" >&5  echo "configure:3782: checking for isnormal" >&5
3782  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3783    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6
3784  else  else
3785    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3786  #line 2745 "configure"  #line 3787 "configure"
3787  #include "confdefs.h"  #include "confdefs.h"
3788  #define _GNU_SOURCE  #define _GNU_SOURCE
3789              #include <math.h>              #include <math.h>
# Line 2750  else Line 3792  else
3792                  return isnormal(f) || !isnormal(f) ? 0 : 1;                  return isnormal(f) || !isnormal(f) ? 0 : 1;
3793                  }                  }
3794  EOF  EOF
3795  if { (eval echo configure:2754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3796  then  then
3797    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
3798  #define HAVE_ISNORMAL 1  #define HAVE_ISNORMAL 1
# Line 2761  else Line 3803  else
3803    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
3804    rm -fr conftest*    rm -fr conftest*
3805    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
3806  echo "configure:2765: checking for fpclass in ieeefp.h" >&5  echo "configure:3807: checking for fpclass in ieeefp.h" >&5
3807                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
3808    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6
3809  else  else
3810    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3811  #line 2770 "configure"  #line 3812 "configure"
3812  #include "confdefs.h"  #include "confdefs.h"
3813  #include <ieeefp.h>  #include <ieeefp.h>
3814                              int main() {                              int main() {
# Line 2774  else Line 3816  else
3816                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;
3817                                  }                                  }
3818  EOF  EOF
3819  if { (eval echo configure:2778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3820  then  then
3821    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
3822  #define HAVE_IEEEFP 1  #define HAVE_IEEEFP 1
# Line 2796  fi Line 3838  fi
3838    
3839    
3840  echo $ac_n "checking for isfinite""... $ac_c" 1>&6  echo $ac_n "checking for isfinite""... $ac_c" 1>&6
3841  echo "configure:2800: checking for isfinite" >&5  echo "configure:3842: checking for isfinite" >&5
3842  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3843    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6
3844  else  else
3845    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3846  #line 2805 "configure"  #line 3847 "configure"
3847  #include "confdefs.h"  #include "confdefs.h"
3848  #define _GNU_SOURCE  #define _GNU_SOURCE
3849              #include <math.h>              #include <math.h>
# Line 2810  else Line 3852  else
3852                  return isfinite(f) || !isfinite(f) ? 0 : 1;                  return isfinite(f) || !isfinite(f) ? 0 : 1;
3853                  }                  }
3854  EOF  EOF
3855  if { (eval echo configure:2814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3856  then  then
3857    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
3858  #define HAVE_ISFINITE 1  #define HAVE_ISFINITE 1
# Line 2821  else Line 3863  else
3863    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
3864    rm -fr conftest*    rm -fr conftest*
3865    echo $ac_n "checking for finite()""... $ac_c" 1>&6    echo $ac_n "checking for finite()""... $ac_c" 1>&6
3866  echo "configure:2825: checking for finite()" >&5  echo "configure:3867: checking for finite()" >&5
3867                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
3868    HAVE_FINITE=0 echo "$ac_t""no" 1>&6    HAVE_FINITE=0 echo "$ac_t""no" 1>&6
3869  else  else
3870    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3871  #line 2830 "configure"  #line 3872 "configure"
3872  #include "confdefs.h"  #include "confdefs.h"
3873  #include <math.h>  #include <math.h>
3874                              int main() {                              int main() {
# Line 2834  else Line 3876  else
3876                                  return finite(f) || !finite(f) ? 0 : 1;                                  return finite(f) || !finite(f) ? 0 : 1;
3877                                  }                                  }
3878  EOF  EOF
3879  if { (eval echo configure:2838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3880  then  then
3881    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
3882  #define HAVE_FINITE 1  #define HAVE_FINITE 1
# Line 2875  fi Line 3917  fi
3917  #          if -lsocket doesn't work by itself.  #          if -lsocket doesn't work by itself.
3918  #--------------------------------------------------------------------  #--------------------------------------------------------------------
3919  echo $ac_n "checking for sockets""... $ac_c" 1>&6  echo $ac_n "checking for sockets""... $ac_c" 1>&6
3920  echo "configure:2879: checking for sockets" >&5  echo "configure:3921: checking for sockets" >&5
3921  tcl_checkBoth=0  tcl_checkBoth=0
3922  echo $ac_n "checking for connect""... $ac_c" 1>&6  echo $ac_n "checking for connect""... $ac_c" 1>&6
3923  echo "configure:2882: checking for connect" >&5  echo "configure:3924: checking for connect" >&5
3924  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3925    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3926  else  else
3927    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3928  #line 2887 "configure"  #line 3929 "configure"
3929  #include "confdefs.h"  #include "confdefs.h"
3930  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3931      which can conflict with char connect(); below.  */      which can conflict with char connect(); below.  */
# Line 2906  connect(); Line 3948  connect();
3948    
3949  ; return 0; }  ; return 0; }
3950  EOF  EOF
3951  if { (eval echo configure:2910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3952    rm -rf conftest*    rm -rf conftest*
3953    eval "ac_cv_func_connect=yes"    eval "ac_cv_func_connect=yes"
3954  else  else
# Line 2928  fi Line 3970  fi
3970    
3971  if test "$tcl_checkSocket" = 1; then  if test "$tcl_checkSocket" = 1; then
3972      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3973  echo "configure:2932: checking for main in -lsocket" >&5  echo "configure:3974: checking for main in -lsocket" >&5
3974  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3975  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
3976    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2936  else Line 3978  else
3978    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
3979  LIBS="-lsocket  $LIBS"  LIBS="-lsocket  $LIBS"
3980  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3981  #line 2940 "configure"  #line 3982 "configure"
3982  #include "confdefs.h"  #include "confdefs.h"
3983    
3984  int main() {  int main() {
3985  main()  main()
3986  ; return 0; }  ; return 0; }
3987  EOF  EOF
3988  if { (eval echo configure:2947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3989    rm -rf conftest*    rm -rf conftest*
3990    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
3991  else  else
# Line 2971  if test "$tcl_checkBoth" = 1; then Line 4013  if test "$tcl_checkBoth" = 1; then
4013      tk_oldLibs=$TLIBS      tk_oldLibs=$TLIBS
4014      TLIBS="$TLIBS -lsocket -lnsl"      TLIBS="$TLIBS -lsocket -lnsl"
4015      echo $ac_n "checking for accept""... $ac_c" 1>&6      echo $ac_n "checking for accept""... $ac_c" 1>&6
4016  echo "configure:2975: checking for accept" >&5  echo "configure:4017: checking for accept" >&5
4017  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4018    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4019  else  else
4020    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4021  #line 2980 "configure"  #line 4022 "configure"
4022  #include "confdefs.h"  #include "confdefs.h"
4023  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4024      which can conflict with char accept(); below.  */      which can conflict with char accept(); below.  */
# Line 2999  accept(); Line 4041  accept();
4041    
4042  ; return 0; }  ; return 0; }
4043  EOF  EOF
4044  if { (eval echo configure:3003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4045    rm -rf conftest*    rm -rf conftest*
4046    eval "ac_cv_func_accept=yes"    eval "ac_cv_func_accept=yes"
4047  else  else
# Line 3021  fi Line 4063  fi
4063    
4064  fi  fi
4065  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4066  echo "configure:3025: checking for gethostbyname" >&5  echo "configure:4067: checking for gethostbyname" >&5
4067  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4068    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4069  else  else
4070    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4071  #line 3030 "configure"  #line 4072 "configure"
4072  #include "confdefs.h"  #include "confdefs.h"
4073  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4074      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname(); below.  */
# Line 3049  gethostbyname(); Line 4091  gethostbyname();
4091    
4092  ; return 0; }  ; return 0; }
4093  EOF  EOF
4094  if { (eval echo configure:3053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4095    rm -rf conftest*    rm -rf conftest*
4096    eval "ac_cv_func_gethostbyname=yes"    eval "ac_cv_func_gethostbyname=yes"
4097  else  else
# Line 3067  if eval "test \"`echo '$ac_cv_func_'geth Line 4109  if eval "test \"`echo '$ac_cv_func_'geth
4109  else  else
4110    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
4111  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4112  echo "configure:3071: checking for main in -lnsl" >&5  echo "configure:4113: checking for main in -lnsl" >&5
4113  ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4114  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
4115    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 3075  else Line 4117  else
4117    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4118  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
4119  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4120  #line 3079 "configure"  #line 4121 "configure"
4121  #include "confdefs.h"  #include "confdefs.h"
4122    
4123  int main() {  int main() {
4124  main()  main()
4125  ; return 0; }  ; return 0; }
4126  EOF  EOF
4127  if { (eval echo configure:3086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4128    rm -rf conftest*    rm -rf conftest*
4129    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4130  else  else
# Line 3107  fi Line 4149  fi
4149    
4150  if test "$enable_readline" = "yes" ; then  if test "$enable_readline" = "yes" ; then
4151          echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6          echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
4152  echo "configure:3111: checking for main in -lreadline" >&5  echo "configure:4153: checking for main in -lreadline" >&5
4153  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
4154  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
4155    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 3115  else Line 4157  else
4157    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4158  LIBS="-lreadline -lncurses $LIBS"  LIBS="-lreadline -lncurses $LIBS"
4159  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4160  #line 3119 "configure"  #line 4161 "configure"
4161  #include "confdefs.h"  #include "confdefs.h"
4162    
4163  int main() {  int main() {
4164  main()  main()
4165  ; return 0; }  ; return 0; }
4166  EOF  EOF
4167  if { (eval echo configure:3126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4168    rm -rf conftest*    rm -rf conftest*
4169    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4170  else  else
# Line 3154  fi Line 4196  fi
4196    
4197    
4198  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
4199  echo "configure:3158: checking For network code for nsocket.c" >&5  echo "configure:4200: checking For network code for nsocket.c" >&5
4200  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4201  #line 3160 "configure"  #line 4202 "configure"
4202  #include "confdefs.h"  #include "confdefs.h"
4203    
4204  #include <sys/time.h>  #include <sys/time.h>
# Line 3183  int main() { Line 4225  int main() {
4225                    
4226  ; return 0; }  ; return 0; }
4227  EOF  EOF
4228  if { (eval echo configure:3187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4229    rm -rf conftest*    rm -rf conftest*
4230    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
4231  #define HAVE_NSOCKET 1  #define HAVE_NSOCKET 1
# Line 3200  rm -f conftest* Line 4242  rm -f conftest*
4242    
4243    
4244  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
4245  echo "configure:3204: checking check for listen using fcntl" >&5  echo "configure:4246: checking check for listen using fcntl" >&5
4246  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4247  #line 3206 "configure"  #line 4248 "configure"
4248  #include "confdefs.h"  #include "confdefs.h"
4249  #include <stdio.h>  #include <stdio.h>
4250  #include <fcntl.h>  #include <fcntl.h>
# Line 3215  FILE *fp=fopen("configure.in","r"); Line 4257  FILE *fp=fopen("configure.in","r");
4257    
4258  ; return 0; }  ; return 0; }
4259  EOF  EOF
4260  if { (eval echo configure:3219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:4261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4261    rm -rf conftest*    rm -rf conftest*
4262    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
4263  #define LISTEN_USE_FCNTL 1  #define LISTEN_USE_FCNTL 1
# Line 3234  rm -f conftest* Line 4276  rm -f conftest*
4276    
4277    
4278  echo $ac_n "checking for profil""... $ac_c" 1>&6  echo $ac_n "checking for profil""... $ac_c" 1>&6
4279  echo "configure:3238: checking for profil" >&5  echo "configure:4280: checking for profil" >&5
4280  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then
4281    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4282  else  else
4283    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4284  #line 3243 "configure"  #line 4285 "configure"
4285  #include "confdefs.h"  #include "confdefs.h"
4286  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4287      which can conflict with char profil(); below.  */      which can conflict with char profil(); below.  */
# Line 3262  profil(); Line 4304  profil();
4304    
4305  ; return 0; }  ; return 0; }
4306  EOF  EOF
4307  if { (eval echo configure:3266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4308    rm -rf conftest*    rm -rf conftest*
4309    eval "ac_cv_func_profil=yes"    eval "ac_cv_func_profil=yes"
4310  else  else
# Line 3287  fi Line 4329  fi
4329    
4330    
4331  echo $ac_n "checking for setenv""... $ac_c" 1>&6  echo $ac_n "checking for setenv""... $ac_c" 1>&6
4332  echo "configure:3291: checking for setenv" >&5  echo "configure:4333: checking for setenv" >&5
4333  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then
4334    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4335  else  else
4336    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4337  #line 3296 "configure"  #line 4338 "configure"
4338  #include "confdefs.h"  #include "confdefs.h"
4339  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4340      which can conflict with char setenv(); below.  */      which can conflict with char setenv(); below.  */
# Line 3315  setenv(); Line 4357  setenv();
4357    
4358  ; return 0; }  ; return 0; }
4359  EOF  EOF
4360  if { (eval echo configure:3319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4361    rm -rf conftest*    rm -rf conftest*
4362    eval "ac_cv_func_setenv=yes"    eval "ac_cv_func_setenv=yes"
4363  else  else
# Line 3341  fi Line 4383  fi
4383    
4384  if test "$no_setenv" = "1" ; then  if test "$no_setenv" = "1" ; then
4385  echo $ac_n "checking for putenv""... $ac_c" 1>&6  echo $ac_n "checking for putenv""... $ac_c" 1>&6
4386  echo "configure:3345: checking for putenv" >&5  echo "configure:4387: checking for putenv" >&5
4387  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then
4388    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4389  else  else
4390    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4391  #line 3350 "configure"  #line 4392 "configure"
4392  #include "confdefs.h"  #include "confdefs.h"
4393  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4394      which can conflict with char putenv(); below.  */      which can conflict with char putenv(); below.  */
# Line 3369  putenv(); Line 4411  putenv();
4411    
4412  ; return 0; }  ; return 0; }
4413  EOF  EOF
4414  if { (eval echo configure:3373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4415    rm -rf conftest*    rm -rf conftest*
4416    eval "ac_cv_func_putenv=yes"    eval "ac_cv_func_putenv=yes"
4417  else  else
# Line 3395  fi Line 4437  fi
4437  fi  fi
4438    
4439  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6
4440  echo "configure:3399: checking for _cleanup" >&5  echo "configure:4441: checking for _cleanup" >&5
4441  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then
4442    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4443  else  else
4444    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4445  #line 3404 "configure"  #line 4446 "configure"
4446  #include "confdefs.h"  #include "confdefs.h"
4447  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4448      which can conflict with char _cleanup(); below.  */      which can conflict with char _cleanup(); below.  */
# Line 3423  _cleanup(); Line 4465  _cleanup();
4465    
4466  ; return 0; }  ; return 0; }
4467  EOF  EOF
4468  if { (eval echo configure:3427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4469    rm -rf conftest*    rm -rf conftest*
4470    eval "ac_cv_func__cleanup=yes"    eval "ac_cv_func__cleanup=yes"
4471  else  else
# Line 3449  fi Line 4491  fi
4491  gcl_ok=no  gcl_ok=no
4492    
4493  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4494  #line 3453 "configure"  #line 4495 "configure"
4495  #include "confdefs.h"  #include "confdefs.h"
4496  #include <ctype.h>  #include <ctype.h>
4497  EOF  EOF
# Line 3477  fi Line 4519  fi
4519    
4520  # if test "x$enable_machine" = "x" ; then  # if test "x$enable_machine" = "x" ; then
4521  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
4522  echo "configure:3481: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5  echo "configure:4523: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5
4523    
4524  case $system in  case $system in
4525         OSF*)         OSF*)
# Line 3508  esac Line 4550  esac
4550    
4551    
4552  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6
4553  echo "configure:3512: checking check for SV_ONSTACK" >&5  echo "configure:4554: checking check for SV_ONSTACK" >&5
4554  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4555  #line 3514 "configure"  #line 4556 "configure"
4556  #include "confdefs.h"  #include "confdefs.h"
4557  #include <signal.h>  #include <signal.h>
4558  int joe=SV_ONSTACK;  int joe=SV_ONSTACK;
# Line 3519  int main() { Line 4561  int main() {
4561    
4562  ; return 0; }  ; return 0; }
4563  EOF  EOF
4564  if { (eval echo configure:3523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:4565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4565    rm -rf conftest*    rm -rf conftest*
4566    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
4567  #define HAVE_SV_ONSTACK 1  #define HAVE_SV_ONSTACK 1
# Line 3536  fi Line 4578  fi
4578  rm -f conftest*  rm -f conftest*
4579    
4580  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6
4581  echo "configure:3540: checking check for SIGSYS" >&5  echo "configure:4582: checking check for SIGSYS" >&5
4582  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4583  #line 3542 "configure"  #line 4584 "configure"
4584  #include "confdefs.h"  #include "confdefs.h"
4585  #include <signal.h>  #include <signal.h>
4586  int joe=SIGSYS;  int joe=SIGSYS;
# Line 3547  int main() { Line 4589  int main() {
4589    
4590  ; return 0; }  ; return 0; }
4591  EOF  EOF
4592  if { (eval echo configure:3551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:4593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4593    rm -rf conftest*    rm -rf conftest*
4594    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
4595  #define HAVE_SIGSYS 1  #define HAVE_SIGSYS 1
# Line 3565  rm -f conftest* Line 4607  rm -f conftest*
4607    
4608    
4609  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6
4610  echo "configure:3569: checking check for SIGEMT" >&5  echo "configure:4611: checking check for SIGEMT" >&5
4611  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4612  #line 3571 "configure"  #line 4613 "configure"
4613  #include "confdefs.h"  #include "confdefs.h"
4614  #include <signal.h>  #include <signal.h>
4615  int joe=SIGEMT;  int joe=SIGEMT;
# Line 3576  int main() { Line 4618  int main() {
4618    
4619  ; return 0; }  ; return 0; }
4620  EOF  EOF
4621  if { (eval echo configure:3580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:4622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4622    rm -rf conftest*    rm -rf conftest*
4623    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
4624  #define HAVE_SIGEMT 1  #define HAVE_SIGEMT 1
# Line 3600  rm -f conftest* Line 4642  rm -f conftest*
4642  do  do
4643  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4644  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4645  echo "configure:3604: checking for $ac_hdr" >&5  echo "configure:4646: checking for $ac_hdr" >&5
4646  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4647    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4648  else  else
4649    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4650  #line 3609 "configure"  #line 4651 "configure"
4651  #include "confdefs.h"  #include "confdefs.h"
4652  #include <$ac_hdr>  #include <$ac_hdr>
4653  EOF  EOF
4654  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4655  { (eval echo configure:3614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:4656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4656  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4657  if test -z "$ac_err"; then  if test -z "$ac_err"; then
4658    rm -rf conftest*    rm -rf conftest*
# Line 3640  done Line 4682  done
4682  do  do
4683  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4684  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4685  echo "configure:3644: checking for $ac_hdr" >&5  echo "configure:4686: checking for $ac_hdr" >&5
4686  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4687    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4688  else  else
4689    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4690  #line 3649 "configure"  #line 4691 "configure"
4691  #include "confdefs.h"  #include "confdefs.h"
4692  #include <$ac_hdr>  #include <$ac_hdr>
4693  EOF  EOF
4694  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4695  { (eval echo configure:3654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:4696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4696  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4697  if test -z "$ac_err"; then  if test -z "$ac_err"; then
4698    rm -rf conftest*    rm -rf conftest*
# Line 3677  fi Line 4719  fi
4719  done  done
4720    
4721          cat > conftest.$ac_ext <<EOF          cat > conftest.$ac_ext <<EOF
4722  #line 3681 "configure"  #line 4723 "configure"
4723  #include "confdefs.h"  #include "confdefs.h"
4724  #include <signal.h>  #include <signal.h>
4725                          long code;                            long code;  
# Line 3688  int main() { Line 4730  int main() {
4730                
4731  ; return 0; }  ; return 0; }
4732  EOF  EOF
4733  if { (eval echo configure:3692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:4734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4734    rm -rf conftest*    rm -rf conftest*
4735        
4736          sigcontext_struct_works=1;          sigcontext_struct_works=1;
# Line 3709  fi Line 4751  fi
4751  rm -f conftest*  rm -f conftest*
4752         if test "$sigcontext_struct_works" = 0 ; then         if test "$sigcontext_struct_works" = 0 ; then
4753         cat > conftest.$ac_ext <<EOF         cat > conftest.$ac_ext <<EOF
4754  #line 3713 "configure"  #line 4755 "configure"
4755  #include "confdefs.h"  #include "confdefs.h"
4756  #include <signal.h>  #include <signal.h>
4757               #ifdef HAVE_ASM_SIGCONTEXT_H                   #ifdef HAVE_ASM_SIGCONTEXT_H    
# Line 3726  int main() { Line 4768  int main() {
4768                    
4769  ; return 0; }  ; return 0; }
4770  EOF  EOF
4771  if { (eval echo configure:3730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:4772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4772    rm -rf conftest*    rm -rf conftest*
4773        
4774          sigcontext_works=1 ;          sigcontext_works=1 ;
# Line 3769  rm -f conftest* Line 4811  rm -f conftest*
4811  # 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.
4812  set dummy emacs; ac_word=$2  set dummy emacs; ac_word=$2
4813  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4814  echo "configure:3773: checking for $ac_word" >&5  echo "configure:4815: checking for $ac_word" >&5
4815  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then
4816    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4817  else  else
# Line 3817  cat >> conftest.el <<EOF Line 4859  cat >> conftest.el <<EOF
4859  EOF  EOF
4860    
4861  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6
4862  echo "configure:3821: checking emacs site lisp directory" >&5  echo "configure:4863: checking emacs site lisp directory" >&5
4863  #EMACS_SITE_LISP=unknown  #EMACS_SITE_LISP=unknown
4864  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
4865          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 3840  cat >> conftest.el <<EOF Line 4882  cat >> conftest.el <<EOF
4882  EOF  EOF
4883    
4884  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6
4885  echo "configure:3844: checking emacs default.el" >&5  echo "configure:4886: checking emacs default.el" >&5
4886  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
4887          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 `
4888  else  else
# Line 3869  cat >> conftest.el <<EOF Line 4911  cat >> conftest.el <<EOF
4911  EOF  EOF
4912    
4913  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6
4914  echo "configure:3873: checking emacs info/dir" >&5  echo "configure:4915: checking emacs info/dir" >&5
4915  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
4916          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 `
4917  fi  fi
# Line 3883  echo "$ac_t""$INFO_DIR" 1>&6 Line 4925  echo "$ac_t""$INFO_DIR" 1>&6
4925    
4926    
4927  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6
4928  echo "configure:3887: checking for tcl/tk" >&5  echo "configure:4929: checking for tcl/tk" >&5
4929    
4930    
4931  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else
# Line 3906  EOF Line 4948  EOF
4948  # 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.
4949  set dummy tclsh; ac_word=$2  set dummy tclsh; ac_word=$2
4950  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4951  echo "configure:3910: checking for $ac_word" >&5  echo "configure:4952: checking for $ac_word" >&5
4952  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then
4953    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4954  else  else
# Line 4006  if test -f ${TCL_CONFIG_PREFIX}/../inclu Line 5048  if test -f ${TCL_CONFIG_PREFIX}/../inclu
5048    fi    fi
5049  fi  fi
5050  echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6  echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6
5051  echo "configure:4010: checking for main in -llieee" >&5  echo "configure:5052: checking for main in -llieee" >&5
5052  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`
5053  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
5054    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4014  else Line 5056  else
5056    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5057  LIBS="-llieee  $LIBS"  LIBS="-llieee  $LIBS"
5058  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5059  #line 4018 "configure"  #line 5060 "configure"
5060  #include "confdefs.h"  #include "confdefs.h"
5061    
5062  int main() {  int main() {
5063  main()  main()
5064  ; return 0; }  ; return 0; }
5065  EOF  EOF
5066  if { (eval echo configure:4025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5067    rm -rf conftest*    rm -rf conftest*
5068    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5069  else  else
# Line 4086  NOTIFY=$enable_notify Line 5128  NOTIFY=$enable_notify
5128  # the time handling for unixtime, add timezone  # the time handling for unixtime, add timezone
5129    
5130  echo $ac_n "checking alloca""... $ac_c" 1>&6  echo $ac_n "checking alloca""... $ac_c" 1>&6
5131  echo "configure:4090: checking alloca" >&5  echo "configure:5132: checking alloca" >&5
5132  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
5133    gcl_ok=no    gcl_ok=no
5134  else  else
5135    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5136  #line 4095 "configure"  #line 5137 "configure"
5137  #include "confdefs.h"  #include "confdefs.h"
5138  int main() { exit(alloca(500) != NULL ? 0 : 1);}  int main() { exit(alloca(500) != NULL ? 0 : 1);}
5139  EOF  EOF
5140  if { (eval echo configure:4099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:5141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5141  then  then
5142    :    :
5143  else  else
# Line 4118  else Line 5160  else
5160    gcl_ok=no    gcl_ok=no
5161  else  else
5162    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5163  #line 4122 "configure"  #line 5164 "configure"
5164  #include "confdefs.h"  #include "confdefs.h"
5165  #include <alloca.h>  #include <alloca.h>
5166    int main() { exit(alloca(500) != NULL ? 0 : 1)}    int main() { exit(alloca(500) != NULL ? 0 : 1)}
5167  EOF  EOF
5168  if { (eval echo configure:4127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:5169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5169  then  then
5170    :    :
5171  else  else
# Line 4184  if test $gcl_ok = no ; then     echo "$a Line 5226  if test $gcl_ok = no ; then     echo "$a
5226  # redhat/cygnus released for some reason a buggy version of gcc,  # redhat/cygnus released for some reason a buggy version of gcc,
5227  # which no one else released.   Catch that here.  # which no one else released.   Catch that here.
5228  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
5229  echo "configure:4188: checking Checking for buggy gcc version from redhat" >&5  echo "configure:5230: checking Checking for buggy gcc version from redhat" >&5
5230  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null
5231     then     then
5232          BROKEN_O4_OPT=1          BROKEN_O4_OPT=1
# Line 4352  s%@MAKEINFO@%$MAKEINFO%g Line 5394  s%@MAKEINFO@%$MAKEINFO%g
5394  s%@GMP@%$GMP%g  s%@GMP@%$GMP%g
5395  s%@GMPDIR@%$GMPDIR%g  s%@GMPDIR@%$GMPDIR%g
5396  s%@MP_INCLUDE@%$MP_INCLUDE%g  s%@MP_INCLUDE@%$MP_INCLUDE%g
5397    s%@X_CFLAGS@%$X_CFLAGS%g
5398    s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5399    s%@X_LIBS@%$X_LIBS%g
5400    s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5401  s%@BUILD_BFD@%$BUILD_BFD%g  s%@BUILD_BFD@%$BUILD_BFD%g
5402  s%@LITTLE_END@%$LITTLE_END%g  s%@LITTLE_END@%$LITTLE_END%g
5403  s%@HAVE_LONG_LONG@%$HAVE_LONG_LONG%g  s%@HAVE_LONG_LONG@%$HAVE_LONG_LONG%g

Legend:
Removed from v.1.73  
changed lines
  Added in v.1.74

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