/[gcl]/gcl/configure
ViewVC logotype

Diff of /gcl/configure

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

revision 1.33 by camm, Tue Jun 4 00:18:45 2002 UTC revision 1.34 by camm, Wed Jun 5 18:37:54 2002 UTC
# Line 549  echo $ac_n "checking system version (for Line 549  echo $ac_n "checking system version (for
549  echo "configure:550: checking system version (for dynamic loading)" >&5  echo "configure:550: checking system version (for dynamic loading)" >&5
550  if machine=`uname -m` ; then true; else machine=unknown ; fi  if machine=`uname -m` ; then true; else machine=unknown ; fi
551    
552    for ac_prog in awk nawk
553    do
554    # Extract the first word of "$ac_prog", so it can be a program name with args.
555    set dummy $ac_prog; ac_word=$2
556    echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
557    echo "configure:558: checking for $ac_word" >&5
558    if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
559      echo $ac_n "(cached) $ac_c" 1>&6
560    else
561      if test -n "$AWK"; then
562      ac_cv_prog_AWK="$AWK" # Let the user override the test.
563    else
564      IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
565      ac_dummy="$PATH"
566      for ac_dir in $ac_dummy; do
567        test -z "$ac_dir" && ac_dir=.
568        if test -f $ac_dir/$ac_word; then
569          ac_cv_prog_AWK="$ac_prog"
570          break
571        fi
572      done
573      IFS="$ac_save_ifs"
574    fi
575    fi
576    AWK="$ac_cv_prog_AWK"
577    if test -n "$AWK"; then
578      echo "$ac_t""$AWK" 1>&6
579    else
580      echo "$ac_t""no" 1>&6
581    fi
582    
583    test -n "$AWK" && break
584    done
585    test -n "$AWK" || AWK=""""
586    
587    
588  if test -f /usr/lib/NextStep/software_version; then  if test -f /usr/lib/NextStep/software_version; then
589      system=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`      system=NEXTSTEP-`${AWK} '/3/,/3/' /usr/lib/NextStep/software_version`
590  else  else
591      system=`uname -s`-`uname -r`      system=`uname -s`-`uname -r`
592      if test "$?" -ne 0 ; then      if test "$?" -ne 0 ; then
# Line 561  else Line 597  else
597          # results, and the version is kept in special file).          # results, and the version is kept in special file).
598            
599          if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then          if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
600              system=MP-RAS-`awk '{print $3}' /etc/.relid'`              system=MP-RAS-`${AWK} '{print $3}' /etc/.relid'`
601          fi          fi
602          if test "`uname -s`" = "AIX" ; then          if test "`uname -s`" = "AIX" ; then
603              system=AIX-`uname -v`.`uname -r`              system=AIX-`uname -v`.`uname -r`
# Line 577  fi Line 613  fi
613  # 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.
614  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
615  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
616  echo "configure:581: checking for $ac_word" >&5  echo "configure:617: checking for $ac_word" >&5
617  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
618    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
619  else  else
# Line 607  if test -z "$CC"; then Line 643  if test -z "$CC"; then
643    # 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.
644  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
645  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
646  echo "configure:611: checking for $ac_word" >&5  echo "configure:647: checking for $ac_word" >&5
647  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
648    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
649  else  else
# Line 658  fi Line 694  fi
694        # 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.
695  set dummy cl; ac_word=$2  set dummy cl; ac_word=$2
696  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
697  echo "configure:662: checking for $ac_word" >&5  echo "configure:698: checking for $ac_word" >&5
698  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
699    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
700  else  else
# Line 690  fi Line 726  fi
726  fi  fi
727    
728  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
729  echo "configure:694: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  echo "configure:730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
730    
731  ac_ext=c  ac_ext=c
732  # 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 701  cross_compiling=$ac_cv_prog_cc_cross Line 737  cross_compiling=$ac_cv_prog_cc_cross
737    
738  cat > conftest.$ac_ext << EOF  cat > conftest.$ac_ext << EOF
739    
740  #line 705 "configure"  #line 741 "configure"
741  #include "confdefs.h"  #include "confdefs.h"
742    
743  main(){return(0);}  main(){return(0);}
744  EOF  EOF
745  if { (eval echo configure:710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
746    ac_cv_prog_cc_works=yes    ac_cv_prog_cc_works=yes
747    # 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.
748    if (./conftest; exit) 2>/dev/null; then    if (./conftest; exit) 2>/dev/null; then
# Line 732  if test $ac_cv_prog_cc_works = no; then Line 768  if test $ac_cv_prog_cc_works = no; then
768    { 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; }
769  fi  fi
770  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
771  echo "configure:736: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo "configure:772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
772  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
773  cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
774    
775  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
776  echo "configure:741: checking whether we are using GNU C" >&5  echo "configure:777: checking whether we are using GNU C" >&5
777  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
778    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
779  else  else
# Line 746  else Line 782  else
782    yes;    yes;
783  #endif  #endif
784  EOF  EOF
785  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:750: \"$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:786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
786    ac_cv_prog_gcc=yes    ac_cv_prog_gcc=yes
787  else  else
788    ac_cv_prog_gcc=no    ac_cv_prog_gcc=no
# Line 765  ac_test_CFLAGS="${CFLAGS+set}" Line 801  ac_test_CFLAGS="${CFLAGS+set}"
801  ac_save_CFLAGS="$CFLAGS"  ac_save_CFLAGS="$CFLAGS"
802  CFLAGS=  CFLAGS=
803  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
804  echo "configure:769: checking whether ${CC-cc} accepts -g" >&5  echo "configure:805: checking whether ${CC-cc} accepts -g" >&5
805  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
806    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
807  else  else
# Line 809  fi Line 845  fi
845    
846    
847  echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6  echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6
848  echo "configure:813: checking "finding DBEGIN"" >&5  echo "configure:849: checking "finding DBEGIN"" >&5
849  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
850    dbegin=0    dbegin=0
851  else  else
852    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
853  #line 818 "configure"  #line 854 "configure"
854  #include "confdefs.h"  #include "confdefs.h"
855  #include <stdio.h>  #include <stdio.h>
856  main()  main()
# Line 826  main() Line 862  main()
862    return 0;    return 0;
863  }  }
864  EOF  EOF
865  if { (eval echo configure:830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
866  then  then
867    dbegin=`cat conftest1`    dbegin=`cat conftest1`
868  else  else
# Line 848  echo "$ac_t""got $dbegin" 1>&6 Line 884  echo "$ac_t""got $dbegin" 1>&6
884    
885    
886  echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6  echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6
887  echo "configure:852: checking "finding CSTACK_ADDRESS"" >&5  echo "configure:888: checking "finding CSTACK_ADDRESS"" >&5
888  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
889    cstack_address=0    cstack_address=0
890  else  else
891    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
892  #line 857 "configure"  #line 893 "configure"
893  #include "confdefs.h"  #include "confdefs.h"
894  #include <stdio.h>  #include <stdio.h>
895  main()  main()
# Line 865  main() Line 901  main()
901    return 0;    return 0;
902  }  }
903  EOF  EOF
904  if { (eval echo configure:869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
905  then  then
906    cstack_address=`cat conftest1`    cstack_address=`cat conftest1`
907  else  else
# Line 887  echo "$ac_t""got $cstack_address" 1>&6 Line 923  echo "$ac_t""got $cstack_address" 1>&6
923    
924    
925  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6
926  echo "configure:891: checking "sizeof long long int"" >&5  echo "configure:927: checking "sizeof long long int"" >&5
927  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
928    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
929    
930  else  else
931    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
932  #line 897 "configure"  #line 933 "configure"
933  #include "confdefs.h"  #include "confdefs.h"
934  #include <stdio.h>  #include <stdio.h>
935  main()  main()
# Line 903  main() Line 939  main()
939  }  }
940    
941  EOF  EOF
942  if { (eval echo configure:907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
943  then  then
944    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
945  #define HAVE_LONG_LONG 1  #define HAVE_LONG_LONG 1
# Line 1012  fi Line 1048  fi
1048  for ac_func in getcwd  for ac_func in getcwd
1049  do  do
1050  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1051  echo "configure:1016: checking for $ac_func" >&5  echo "configure:1052: checking for $ac_func" >&5
1052  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1053    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1054  else  else
1055    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1056  #line 1021 "configure"  #line 1057 "configure"
1057  #include "confdefs.h"  #include "confdefs.h"
1058  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
1059      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 1040  $ac_func(); Line 1076  $ac_func();
1076    
1077  ; return 0; }  ; return 0; }
1078  EOF  EOF
1079  if { (eval echo configure:1044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1080    rm -rf conftest*    rm -rf conftest*
1081    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
1082  else  else
# Line 1067  done Line 1103  done
1103  for ac_func in getwd  for ac_func in getwd
1104  do  do
1105  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1106  echo "configure:1071: checking for $ac_func" >&5  echo "configure:1107: checking for $ac_func" >&5
1107  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1108    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1109  else  else
1110    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1111  #line 1076 "configure"  #line 1112 "configure"
1112  #include "confdefs.h"  #include "confdefs.h"
1113  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
1114      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 1095  $ac_func(); Line 1131  $ac_func();
1131    
1132  ; return 0; }  ; return 0; }
1133  EOF  EOF
1134  if { (eval echo configure:1099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1135    rm -rf conftest*    rm -rf conftest*
1136    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
1137  else  else
# Line 1120  fi Line 1156  fi
1156  done  done
1157    
1158  echo $ac_n "checking for uname""... $ac_c" 1>&6  echo $ac_n "checking for uname""... $ac_c" 1>&6
1159  echo "configure:1124: checking for uname" >&5  echo "configure:1160: checking for uname" >&5
1160  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then
1161    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1162  else  else
1163    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1164  #line 1129 "configure"  #line 1165 "configure"
1165  #include "confdefs.h"  #include "confdefs.h"
1166  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
1167      which can conflict with char uname(); below.  */      which can conflict with char uname(); below.  */
# Line 1148  uname(); Line 1184  uname();
1184    
1185  ; return 0; }  ; return 0; }
1186  EOF  EOF
1187  if { (eval echo configure:1152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1188    rm -rf conftest*    rm -rf conftest*
1189    eval "ac_cv_func_uname=yes"    eval "ac_cv_func_uname=yes"
1190  else  else
# Line 1172  EOF Line 1208  EOF
1208  fi  fi
1209    
1210  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
1211  echo "configure:1176: checking for gettimeofday" >&5  echo "configure:1212: checking for gettimeofday" >&5
1212  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
1213    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1214  else  else
1215    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1216  #line 1181 "configure"  #line 1217 "configure"
1217  #include "confdefs.h"  #include "confdefs.h"
1218  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
1219      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday(); below.  */
# Line 1200  gettimeofday(); Line 1236  gettimeofday();
1236    
1237  ; return 0; }  ; return 0; }
1238  EOF  EOF
1239  if { (eval echo configure:1204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1240    rm -rf conftest*    rm -rf conftest*
1241    eval "ac_cv_func_gettimeofday=yes"    eval "ac_cv_func_gettimeofday=yes"
1242  else  else
# Line 1226  fi Line 1262  fi
1262    
1263    
1264  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
1265  echo "configure:1230: checking how to run the C preprocessor" >&5  echo "configure:1266: checking how to run the C preprocessor" >&5
1266  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
1267  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
1268    CPP=    CPP=
# Line 1241  else Line 1277  else
1277    # 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,
1278    # not just through cpp.    # not just through cpp.
1279    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1280  #line 1245 "configure"  #line 1281 "configure"
1281  #include "confdefs.h"  #include "confdefs.h"
1282  #include <assert.h>  #include <assert.h>
1283  Syntax Error  Syntax Error
1284  EOF  EOF
1285  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1286  { (eval echo configure:1251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1287  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1288  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1289    :    :
# Line 1258  else Line 1294  else
1294    rm -rf conftest*    rm -rf conftest*
1295    CPP="${CC-cc} -E -traditional-cpp"    CPP="${CC-cc} -E -traditional-cpp"
1296    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1297  #line 1262 "configure"  #line 1298 "configure"
1298  #include "confdefs.h"  #include "confdefs.h"
1299  #include <assert.h>  #include <assert.h>
1300  Syntax Error  Syntax Error
1301  EOF  EOF
1302  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1303  { (eval echo configure:1268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1304  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1305  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1306    :    :
# Line 1275  else Line 1311  else
1311    rm -rf conftest*    rm -rf conftest*
1312    CPP="${CC-cc} -nologo -E"    CPP="${CC-cc} -nologo -E"
1313    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1314  #line 1279 "configure"  #line 1315 "configure"
1315  #include "confdefs.h"  #include "confdefs.h"
1316  #include <assert.h>  #include <assert.h>
1317  Syntax Error  Syntax Error
1318  EOF  EOF
1319  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1320  { (eval echo configure:1285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1321  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1322  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1323    :    :
# Line 1309  for ac_hdr in sys/ioctl.h Line 1345  for ac_hdr in sys/ioctl.h
1345  do  do
1346  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1347  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1348  echo "configure:1313: checking for $ac_hdr" >&5  echo "configure:1349: checking for $ac_hdr" >&5
1349  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1350    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1351  else  else
1352    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1353  #line 1318 "configure"  #line 1354 "configure"
1354  #include "confdefs.h"  #include "confdefs.h"
1355  #include <$ac_hdr>  #include <$ac_hdr>
1356  EOF  EOF
1357  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1358  { (eval echo configure:1323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1359  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1360  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1361    rm -rf conftest*    rm -rf conftest*
# Line 1359  done Line 1395  done
1395  #--------------------------------------------------------------------  #--------------------------------------------------------------------
1396    
1397  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6
1398  echo "configure:1363: checking for BSDgettimeofday" >&5  echo "configure:1399: checking for BSDgettimeofday" >&5
1399  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then
1400    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1401  else  else
1402    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1403  #line 1368 "configure"  #line 1404 "configure"
1404  #include "confdefs.h"  #include "confdefs.h"
1405  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
1406      which can conflict with char BSDgettimeofday(); below.  */      which can conflict with char BSDgettimeofday(); below.  */
# Line 1387  BSDgettimeofday(); Line 1423  BSDgettimeofday();
1423    
1424  ; return 0; }  ; return 0; }
1425  EOF  EOF
1426  if { (eval echo configure:1391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1427    rm -rf conftest*    rm -rf conftest*
1428    eval "ac_cv_func_BSDgettimeofday=yes"    eval "ac_cv_func_BSDgettimeofday=yes"
1429  else  else
# Line 1408  EOF Line 1444  EOF
1444  else  else
1445    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
1446  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
1447  echo "configure:1412: checking for gettimeofday" >&5  echo "configure:1448: checking for gettimeofday" >&5
1448  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
1449    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1450  else  else
1451    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1452  #line 1417 "configure"  #line 1453 "configure"
1453  #include "confdefs.h"  #include "confdefs.h"
1454  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
1455      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday(); below.  */
# Line 1436  gettimeofday(); Line 1472  gettimeofday();
1472    
1473  ; return 0; }  ; return 0; }
1474  EOF  EOF
1475  if { (eval echo configure:1440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1476    rm -rf conftest*    rm -rf conftest*
1477    eval "ac_cv_func_gettimeofday=yes"    eval "ac_cv_func_gettimeofday=yes"
1478  else  else
# Line 1462  fi Line 1498  fi
1498  fi  fi
1499    
1500  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6
1501  echo "configure:1466: checking for gettimeofday declaration" >&5  echo "configure:1502: checking for gettimeofday declaration" >&5
1502  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1503  #line 1468 "configure"  #line 1504 "configure"
1504  #include "confdefs.h"  #include "confdefs.h"
1505  #include <sys/time.h>  #include <sys/time.h>
1506  EOF  EOF
# Line 1487  rm -f conftest* Line 1523  rm -f conftest*
1523    
1524    
1525  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1526  echo "configure:1491: checking for sin in -lm" >&5  echo "configure:1527: checking for sin in -lm" >&5
1527  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
1528  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
1529    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1495  else Line 1531  else
1531    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1532  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
1533  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1534  #line 1499 "configure"  #line 1535 "configure"
1535  #include "confdefs.h"  #include "confdefs.h"
1536  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1537  /* 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 1506  int main() { Line 1542  int main() {
1542  sin()  sin()
1543  ; return 0; }  ; return 0; }
1544  EOF  EOF
1545  if { (eval echo configure:1510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1546    rm -rf conftest*    rm -rf conftest*
1547    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1548  else  else
# Line 1535  for ac_hdr in math.h Line 1571  for ac_hdr in math.h
1571  do  do
1572  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1573  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1574  echo "configure:1539: checking for $ac_hdr" >&5  echo "configure:1575: checking for $ac_hdr" >&5
1575  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1576    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1577  else  else
1578    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1579  #line 1544 "configure"  #line 1580 "configure"
1580  #include "confdefs.h"  #include "confdefs.h"
1581  #include <$ac_hdr>  #include <$ac_hdr>
1582  EOF  EOF
1583  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1584  { (eval echo configure:1549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1585  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1586  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1587    rm -rf conftest*    rm -rf conftest*
# Line 1593  done Line 1629  done
1629  #          if -lsocket doesn't work by itself.  #          if -lsocket doesn't work by itself.
1630  #--------------------------------------------------------------------  #--------------------------------------------------------------------
1631  echo $ac_n "checking for sockets""... $ac_c" 1>&6  echo $ac_n "checking for sockets""... $ac_c" 1>&6
1632  echo "configure:1597: checking for sockets" >&5  echo "configure:1633: checking for sockets" >&5
1633  tcl_checkBoth=0  tcl_checkBoth=0
1634  echo $ac_n "checking for connect""... $ac_c" 1>&6  echo $ac_n "checking for connect""... $ac_c" 1>&6
1635  echo "configure:1600: checking for connect" >&5  echo "configure:1636: checking for connect" >&5
1636  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1637    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1638  else  else
1639    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1640  #line 1605 "configure"  #line 1641 "configure"
1641  #include "confdefs.h"  #include "confdefs.h"
1642  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
1643      which can conflict with char connect(); below.  */      which can conflict with char connect(); below.  */
# Line 1624  connect(); Line 1660  connect();
1660    
1661  ; return 0; }  ; return 0; }
1662  EOF  EOF
1663  if { (eval echo configure:1628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1664    rm -rf conftest*    rm -rf conftest*
1665    eval "ac_cv_func_connect=yes"    eval "ac_cv_func_connect=yes"
1666  else  else
# Line 1646  fi Line 1682  fi
1682    
1683  if test "$tcl_checkSocket" = 1; then  if test "$tcl_checkSocket" = 1; then
1684      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1685  echo "configure:1650: checking for main in -lsocket" >&5  echo "configure:1686: checking for main in -lsocket" >&5
1686  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1687  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
1688    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1654  else Line 1690  else
1690    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1691  LIBS="-lsocket  $LIBS"  LIBS="-lsocket  $LIBS"
1692  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1693  #line 1658 "configure"  #line 1694 "configure"
1694  #include "confdefs.h"  #include "confdefs.h"
1695    
1696  int main() {  int main() {
1697  main()  main()
1698  ; return 0; }  ; return 0; }
1699  EOF  EOF
1700  if { (eval echo configure:1665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1701    rm -rf conftest*    rm -rf conftest*
1702    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1703  else  else
# Line 1689  if test "$tcl_checkBoth" = 1; then Line 1725  if test "$tcl_checkBoth" = 1; then
1725      tk_oldLibs=$LIBS      tk_oldLibs=$LIBS
1726      LIBS="$LIBS -lsocket -lnsl"      LIBS="$LIBS -lsocket -lnsl"
1727      echo $ac_n "checking for accept""... $ac_c" 1>&6      echo $ac_n "checking for accept""... $ac_c" 1>&6
1728  echo "configure:1693: checking for accept" >&5  echo "configure:1729: checking for accept" >&5
1729  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
1730    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1731  else  else
1732    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1733  #line 1698 "configure"  #line 1734 "configure"
1734  #include "confdefs.h"  #include "confdefs.h"
1735  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
1736      which can conflict with char accept(); below.  */      which can conflict with char accept(); below.  */
# Line 1717  accept(); Line 1753  accept();
1753    
1754  ; return 0; }  ; return 0; }
1755  EOF  EOF
1756  if { (eval echo configure:1721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1757    rm -rf conftest*    rm -rf conftest*
1758    eval "ac_cv_func_accept=yes"    eval "ac_cv_func_accept=yes"
1759  else  else
# Line 1739  fi Line 1775  fi
1775    
1776  fi  fi
1777  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1778  echo "configure:1743: checking for gethostbyname" >&5  echo "configure:1779: checking for gethostbyname" >&5
1779  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1780    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1781  else  else
1782    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1783  #line 1748 "configure"  #line 1784 "configure"
1784  #include "confdefs.h"  #include "confdefs.h"
1785  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
1786      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname(); below.  */
# Line 1767  gethostbyname(); Line 1803  gethostbyname();
1803    
1804  ; return 0; }  ; return 0; }
1805  EOF  EOF
1806  if { (eval echo configure:1771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1807    rm -rf conftest*    rm -rf conftest*
1808    eval "ac_cv_func_gethostbyname=yes"    eval "ac_cv_func_gethostbyname=yes"
1809  else  else
# Line 1785  if eval "test \"`echo '$ac_cv_func_'geth Line 1821  if eval "test \"`echo '$ac_cv_func_'geth
1821  else  else
1822    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
1823  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1824  echo "configure:1789: checking for main in -lnsl" >&5  echo "configure:1825: checking for main in -lnsl" >&5
1825  ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
1826  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
1827    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1793  else Line 1829  else
1829    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1830  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
1831  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1832  #line 1797 "configure"  #line 1833 "configure"
1833  #include "confdefs.h"  #include "confdefs.h"
1834    
1835  int main() {  int main() {
1836  main()  main()
1837  ; return 0; }  ; return 0; }
1838  EOF  EOF
1839  if { (eval echo configure:1804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1840    rm -rf conftest*    rm -rf conftest*
1841    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1842  else  else
# Line 1824  fi Line 1860  fi
1860    
1861    
1862  echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6  echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
1863  echo "configure:1828: checking for main in -lreadline" >&5  echo "configure:1864: checking for main in -lreadline" >&5
1864  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
1865  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
1866    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1832  else Line 1868  else
1868    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1869  LIBS="-lreadline -lncurses $LIBS"  LIBS="-lreadline -lncurses $LIBS"
1870  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1871  #line 1836 "configure"  #line 1872 "configure"
1872  #include "confdefs.h"  #include "confdefs.h"
1873    
1874  int main() {  int main() {
1875  main()  main()
1876  ; return 0; }  ; return 0; }
1877  EOF  EOF
1878  if { (eval echo configure:1843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1879    rm -rf conftest*    rm -rf conftest*
1880    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1881  else  else
# Line 1871  fi Line 1907  fi
1907    
1908  ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'`  ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'`
1909  echo $ac_n "checking for bfd.h""... $ac_c" 1>&6  echo $ac_n "checking for bfd.h""... $ac_c" 1>&6
1910  echo "configure:1875: checking for bfd.h" >&5  echo "configure:1911: checking for bfd.h" >&5
1911  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1912    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1913  else  else
1914    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1915  #line 1880 "configure"  #line 1916 "configure"
1916  #include "confdefs.h"  #include "confdefs.h"
1917  #include <bfd.h>  #include <bfd.h>
1918  EOF  EOF
1919  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1920  { (eval echo configure:1885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1921  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1922  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1923    rm -rf conftest*    rm -rf conftest*
# Line 1898  fi Line 1934  fi
1934  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1935    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
1936    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
1937  echo "configure:1902: checking for bfd_init in -lbfd" >&5  echo "configure:1938: checking for bfd_init in -lbfd" >&5
1938  ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'`  ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'`
1939  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
1940    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1906  else Line 1942  else
1942    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1943  LIBS="-lbfd -liberty $LIBS"  LIBS="-lbfd -liberty $LIBS"
1944  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1945  #line 1910 "configure"  #line 1946 "configure"
1946  #include "confdefs.h"  #include "confdefs.h"
1947  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1948  /* 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 1917  int main() { Line 1953  int main() {
1953  bfd_init()  bfd_init()
1954  ; return 0; }  ; return 0; }
1955  EOF  EOF
1956  if { (eval echo configure:1921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1957    rm -rf conftest*    rm -rf conftest*
1958    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1959  else  else
# Line 1936  if eval "test \"`echo '$ac_cv_lib_'$ac_l Line 1972  if eval "test \"`echo '$ac_cv_lib_'$ac_l
1972  #define HAVE_LIBBFD 1  #define HAVE_LIBBFD 1
1973  EOF  EOF
1974    
1975                  echo "int main() {bfd_init();return 0;}" >foo.c                  echo "int main() {bfd_init();bfd_perror();return 0;}" >foo.c
1976                  MP=`$GCC -t -o foo foo.c -lbfd -liberty 2>&1 |tr -d '()' | awk '/\/libbfd/ || /\/libiberty/ {for (j=1;j<=NF;j++) {sub("\.so$",".a",$j); if ($j ~ "/libbfd") a=$j; if ($j ~ "/libiberty") b=$j;}} END {print a " " b}'`                  MP=`$GCC -t -o foo foo.c -lbfd -liberty 2>&1 |tr '()' '  ' | ${AWK} '/\/libbfd/ || /\/libiberty/ {for (j=1;j<=NF;j++) {sub("\.so$",".a",$j); if ($j ~ "/libbfd") a=$j; if ($j ~ "/libiberty") b=$j;}} END {print a " " b}'`
1977                  LIBS="$LIBS  $MP"                  LIBS="$LIBS  $MP"
1978                                    
1979  else  else
# Line 1954  fi Line 1990  fi
1990    
1991    
1992  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
1993  echo "configure:1958: checking For network code for nsocket.c" >&5  echo "configure:1994: checking For network code for nsocket.c" >&5
1994  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1995  #line 1960 "configure"  #line 1996 "configure"
1996  #include "confdefs.h"  #include "confdefs.h"
1997    
1998  #include <sys/time.h>  #include <sys/time.h>
# Line 1983  int main() { Line 2019  int main() {
2019                    
2020  ; return 0; }  ; return 0; }
2021  EOF  EOF
2022  if { (eval echo configure:1987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2023    rm -rf conftest*    rm -rf conftest*
2024    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
2025  #define HAVE_NSOCKET 1  #define HAVE_NSOCKET 1
# Line 2000  rm -f conftest* Line 2036  rm -f conftest*
2036    
2037    
2038  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
2039  echo "configure:2004: checking check for listen using fcntl" >&5  echo "configure:2040: checking check for listen using fcntl" >&5
2040  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2041  #line 2006 "configure"  #line 2042 "configure"
2042  #include "confdefs.h"  #include "confdefs.h"
2043  #include <stdio.h>  #include <stdio.h>
2044  #include <fcntl.h>  #include <fcntl.h>
# Line 2015  FILE *fp=fopen("configure.in","r"); Line 2051  FILE *fp=fopen("configure.in","r");
2051    
2052  ; return 0; }  ; return 0; }
2053  EOF  EOF
2054  if { (eval echo configure:2019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2055    rm -rf conftest*    rm -rf conftest*
2056    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
2057  #define LISTEN_USE_FCNTL 1  #define LISTEN_USE_FCNTL 1
# Line 2034  rm -f conftest* Line 2070  rm -f conftest*
2070    
2071    
2072  echo $ac_n "checking for profil""... $ac_c" 1>&6  echo $ac_n "checking for profil""... $ac_c" 1>&6
2073  echo "configure:2038: checking for profil" >&5  echo "configure:2074: checking for profil" >&5
2074  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then
2075    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2076  else  else
2077    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2078  #line 2043 "configure"  #line 2079 "configure"
2079  #include "confdefs.h"  #include "confdefs.h"
2080  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2081      which can conflict with char profil(); below.  */      which can conflict with char profil(); below.  */
# Line 2062  profil(); Line 2098  profil();
2098    
2099  ; return 0; }  ; return 0; }
2100  EOF  EOF
2101  if { (eval echo configure:2066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2102    rm -rf conftest*    rm -rf conftest*
2103    eval "ac_cv_func_profil=yes"    eval "ac_cv_func_profil=yes"
2104  else  else
# Line 2087  fi Line 2123  fi
2123    
2124    
2125  echo $ac_n "checking for setenv""... $ac_c" 1>&6  echo $ac_n "checking for setenv""... $ac_c" 1>&6
2126  echo "configure:2091: checking for setenv" >&5  echo "configure:2127: checking for setenv" >&5
2127  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then
2128    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2129  else  else
2130    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2131  #line 2096 "configure"  #line 2132 "configure"
2132  #include "confdefs.h"  #include "confdefs.h"
2133  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2134      which can conflict with char setenv(); below.  */      which can conflict with char setenv(); below.  */
# Line 2115  setenv(); Line 2151  setenv();
2151    
2152  ; return 0; }  ; return 0; }
2153  EOF  EOF
2154  if { (eval echo configure:2119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2155    rm -rf conftest*    rm -rf conftest*
2156    eval "ac_cv_func_setenv=yes"    eval "ac_cv_func_setenv=yes"
2157  else  else
# Line 2141  fi Line 2177  fi
2177    
2178  if test "$no_setenv" = "1" ; then  if test "$no_setenv" = "1" ; then
2179  echo $ac_n "checking for putenv""... $ac_c" 1>&6  echo $ac_n "checking for putenv""... $ac_c" 1>&6
2180  echo "configure:2145: checking for putenv" >&5  echo "configure:2181: checking for putenv" >&5
2181  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then
2182    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2183  else  else
2184    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2185  #line 2150 "configure"  #line 2186 "configure"
2186  #include "confdefs.h"  #include "confdefs.h"
2187  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2188      which can conflict with char putenv(); below.  */      which can conflict with char putenv(); below.  */
# Line 2169  putenv(); Line 2205  putenv();
2205    
2206  ; return 0; }  ; return 0; }
2207  EOF  EOF
2208  if { (eval echo configure:2173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2209    rm -rf conftest*    rm -rf conftest*
2210    eval "ac_cv_func_putenv=yes"    eval "ac_cv_func_putenv=yes"
2211  else  else
# Line 2195  fi Line 2231  fi
2231  fi  fi
2232    
2233  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6
2234  echo "configure:2199: checking for _cleanup" >&5  echo "configure:2235: checking for _cleanup" >&5
2235  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then
2236    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2237  else  else
2238    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2239  #line 2204 "configure"  #line 2240 "configure"
2240  #include "confdefs.h"  #include "confdefs.h"
2241  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2242      which can conflict with char _cleanup(); below.  */      which can conflict with char _cleanup(); below.  */
# Line 2223  _cleanup(); Line 2259  _cleanup();
2259    
2260  ; return 0; }  ; return 0; }
2261  EOF  EOF
2262  if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2263    rm -rf conftest*    rm -rf conftest*
2264    eval "ac_cv_func__cleanup=yes"    eval "ac_cv_func__cleanup=yes"
2265  else  else
# Line 2249  fi Line 2285  fi
2285  gcl_ok=no  gcl_ok=no
2286    
2287  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2288  #line 2253 "configure"  #line 2289 "configure"
2289  #include "confdefs.h"  #include "confdefs.h"
2290  #include <ctype.h>  #include <ctype.h>
2291  EOF  EOF
# Line 2277  fi Line 2313  fi
2313    
2314  # if test "x$enable_machine" = "x" ; then  # if test "x$enable_machine" = "x" ; then
2315  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
2316  echo "configure:2281: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5  echo "configure:2317: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5
2317    
2318  case $system in  case $system in
2319         OSF*)         OSF*)
# Line 2333  else { echo "configure: error: can not r Line 2369  else { echo "configure: error: can not r
2369  fi  fi
2370    
2371  echo $ac_n "checking host system type""... $ac_c" 1>&6  echo $ac_n "checking host system type""... $ac_c" 1>&6
2372  echo "configure:2337: checking host system type" >&5  echo "configure:2373: checking host system type" >&5
2373    
2374  host_alias=$host  host_alias=$host
2375  case "$host_alias" in  case "$host_alias" in
# Line 2506  case $canonical in Line 2542  case $canonical in
2542    
2543  esac  esac
2544  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6
2545  echo "configure:2510: checking check for SV_ONSTACK" >&5  echo "configure:2546: checking check for SV_ONSTACK" >&5
2546  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2547  #line 2512 "configure"  #line 2548 "configure"
2548  #include "confdefs.h"  #include "confdefs.h"
2549  #include <signal.h>  #include <signal.h>
2550  int joe=SV_ONSTACK;  int joe=SV_ONSTACK;
# Line 2517  int main() { Line 2553  int main() {
2553    
2554  ; return 0; }  ; return 0; }
2555  EOF  EOF
2556  if { (eval echo configure:2521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2557    rm -rf conftest*    rm -rf conftest*
2558    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
2559  #define HAVE_SV_ONSTACK 1  #define HAVE_SV_ONSTACK 1
# Line 2535  rm -f conftest* Line 2571  rm -f conftest*
2571    
2572    
2573  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6
2574  echo "configure:2539: checking check for SIGSYS" >&5  echo "configure:2575: checking check for SIGSYS" >&5
2575  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2576  #line 2541 "configure"  #line 2577 "configure"
2577  #include "confdefs.h"  #include "confdefs.h"
2578  #include <signal.h>  #include <signal.h>
2579  int joe=SIGSYS;  int joe=SIGSYS;
# Line 2546  int main() { Line 2582  int main() {
2582    
2583  ; return 0; }  ; return 0; }
2584  EOF  EOF
2585  if { (eval echo configure:2550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2586    rm -rf conftest*    rm -rf conftest*
2587    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
2588  #define HAVE_SIGSYS 1  #define HAVE_SIGSYS 1
# Line 2564  rm -f conftest* Line 2600  rm -f conftest*
2600    
2601    
2602  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6
2603  echo "configure:2568: checking check for SIGEMT" >&5  echo "configure:2604: checking check for SIGEMT" >&5
2604  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2605  #line 2570 "configure"  #line 2606 "configure"
2606  #include "confdefs.h"  #include "confdefs.h"
2607  #include <signal.h>  #include <signal.h>
2608  int joe=SIGEMT;  int joe=SIGEMT;
# Line 2575  int main() { Line 2611  int main() {
2611    
2612  ; return 0; }  ; return 0; }
2613  EOF  EOF
2614  if { (eval echo configure:2579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2615    rm -rf conftest*    rm -rf conftest*
2616    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
2617  #define HAVE_SIGEMT 1  #define HAVE_SIGEMT 1
# Line 2599  rm -f conftest* Line 2635  rm -f conftest*
2635  do  do
2636  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2637  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2638  echo "configure:2603: checking for $ac_hdr" >&5  echo "configure:2639: checking for $ac_hdr" >&5
2639  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2640    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2641  else  else
2642    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2643  #line 2608 "configure"  #line 2644 "configure"
2644  #include "confdefs.h"  #include "confdefs.h"
2645  #include <$ac_hdr>  #include <$ac_hdr>
2646  EOF  EOF
2647  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2648  { (eval echo configure:2613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2649  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2650  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2651    rm -rf conftest*    rm -rf conftest*
# Line 2639  done Line 2675  done
2675  do  do
2676  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2677  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2678  echo "configure:2643: checking for $ac_hdr" >&5  echo "configure:2679: checking for $ac_hdr" >&5
2679  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2680    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2681  else  else
2682    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2683  #line 2648 "configure"  #line 2684 "configure"
2684  #include "confdefs.h"  #include "confdefs.h"
2685  #include <$ac_hdr>  #include <$ac_hdr>
2686  EOF  EOF
2687  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2688  { (eval echo configure:2653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2689  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2690  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2691    rm -rf conftest*    rm -rf conftest*
# Line 2676  fi Line 2712  fi
2712  done  done
2713    
2714          cat > conftest.$ac_ext <<EOF          cat > conftest.$ac_ext <<EOF
2715  #line 2680 "configure"  #line 2716 "configure"
2716  #include "confdefs.h"  #include "confdefs.h"
2717  #include <signal.h>  #include <signal.h>
2718                          long code;                            long code;  
# Line 2687  int main() { Line 2723  int main() {
2723                
2724  ; return 0; }  ; return 0; }
2725  EOF  EOF
2726  if { (eval echo configure:2691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2727    rm -rf conftest*    rm -rf conftest*
2728        
2729          sigcontext_struct_works=1;          sigcontext_struct_works=1;
# Line 2708  fi Line 2744  fi
2744  rm -f conftest*  rm -f conftest*
2745         if test "$sigcontext_struct_works" = 0 ; then         if test "$sigcontext_struct_works" = 0 ; then
2746         cat > conftest.$ac_ext <<EOF         cat > conftest.$ac_ext <<EOF
2747  #line 2712 "configure"  #line 2748 "configure"
2748  #include "confdefs.h"  #include "confdefs.h"
2749  #include <signal.h>  #include <signal.h>
2750               #ifdef HAVE_ASM_SIGCONTEXT_H                   #ifdef HAVE_ASM_SIGCONTEXT_H    
# Line 2725  int main() { Line 2761  int main() {
2761                    
2762  ; return 0; }  ; return 0; }
2763  EOF  EOF
2764  if { (eval echo configure:2729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2765    rm -rf conftest*    rm -rf conftest*
2766        
2767          sigcontext_works=1 ;          sigcontext_works=1 ;
# Line 2768  rm -f conftest* Line 2804  rm -f conftest*
2804  # 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.
2805  set dummy emacs; ac_word=$2  set dummy emacs; ac_word=$2
2806  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2807  echo "configure:2772: checking for $ac_word" >&5  echo "configure:2808: checking for $ac_word" >&5
2808  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then
2809    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2810  else  else
# Line 2816  cat >> conftest.el <<EOF Line 2852  cat >> conftest.el <<EOF
2852  EOF  EOF
2853    
2854  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6
2855  echo "configure:2820: checking emacs site lisp directory" >&5  echo "configure:2856: checking emacs site lisp directory" >&5
2856  #EMACS_SITE_LISP=unknown  #EMACS_SITE_LISP=unknown
2857  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
2858          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 2839  cat >> conftest.el <<EOF Line 2875  cat >> conftest.el <<EOF
2875  EOF  EOF
2876    
2877  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6
2878  echo "configure:2843: checking emacs default.el" >&5  echo "configure:2879: checking emacs default.el" >&5
2879  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
2880          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 `
2881  else  else
# Line 2868  cat >> conftest.el <<EOF Line 2904  cat >> conftest.el <<EOF
2904  EOF  EOF
2905    
2906  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6
2907  echo "configure:2872: checking emacs info/dir" >&5  echo "configure:2908: checking emacs info/dir" >&5
2908  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
2909          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 `
2910  fi  fi
# Line 2882  echo "$ac_t""$INFO_DIR" 1>&6 Line 2918  echo "$ac_t""$INFO_DIR" 1>&6
2918    
2919    
2920  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6
2921  echo "configure:2886: checking for tcl/tk" >&5  echo "configure:2922: checking for tcl/tk" >&5
2922    
2923    
2924  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else
# Line 2905  cp conftest.tcl foo.tcl Line 2941  cp conftest.tcl foo.tcl
2941  # 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.
2942  set dummy tclsh; ac_word=$2  set dummy tclsh; ac_word=$2
2943  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2944  echo "configure:2909: checking for $ac_word" >&5  echo "configure:2945: checking for $ac_word" >&5
2945  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then
2946    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2947  else  else
# Line 2968  else Line 3004  else
3004  #fi  #fi
3005    
3006  if test "${TCLSH}" = "" ; then true ; else  if test "${TCLSH}" = "" ; then true ; else
3007          TK_CONFIG_PREFIX=`echo tcl_findLibrary \"tk\" \"${TCL_VERSION}\" \"\" \"tkConfig.sh\" \"TK_LIBRARY\" tk_library | ${TCLSH} 2>&1 | awk '/"source / {if (i++) next;sub("/[^/]*$","",$2);print $2}'`          TK_CONFIG_PREFIX=`echo tcl_findLibrary \"tk\" \"${TCL_VERSION}\" \"\" \"tkConfig.sh\" \"TK_LIBRARY\" tk_library | ${TCLSH} 2>&1 | ${AWK} '/"source / {if (i++) next;sub("/[^/]*$","",$2);print $2}'`
3008  fi  fi
3009    
3010  fi  fi
# Line 3005  if test -f ${TCL_CONFIG_PREFIX}/../inclu Line 3041  if test -f ${TCL_CONFIG_PREFIX}/../inclu
3041    fi    fi
3042  fi  fi
3043  echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6  echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6
3044  echo "configure:3009: checking for main in -llieee" >&5  echo "configure:3045: checking for main in -llieee" >&5
3045  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`
3046  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
3047    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 3013  else Line 3049  else
3049    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
3050  LIBS="-llieee  $LIBS"  LIBS="-llieee  $LIBS"
3051  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3052  #line 3017 "configure"  #line 3053 "configure"
3053  #include "confdefs.h"  #include "confdefs.h"
3054    
3055  int main() {  int main() {
3056  main()  main()
3057  ; return 0; }  ; return 0; }
3058  EOF  EOF
3059  if { (eval echo configure:3024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3060    rm -rf conftest*    rm -rf conftest*
3061    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
3062  else  else
# Line 3045  if test "$have_ieee" = "0" ; then Line 3081  if test "$have_ieee" = "0" ; then
3081   TCL_LIBS=`echo ${TCL_LIBS} | sed -e "s:-lieee::g" `   TCL_LIBS=`echo ${TCL_LIBS} | sed -e "s:-lieee::g" `
3082  fi  fi
3083  echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6  echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3084  echo "configure:3049: checking for dlopen in -ldl" >&5  echo "configure:3085: checking for dlopen in -ldl" >&5
3085  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3086  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
3087    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 3053  else Line 3089  else
3089    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
3090  LIBS="-ldl  $LIBS"  LIBS="-ldl  $LIBS"
3091  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3092  #line 3057 "configure"  #line 3093 "configure"
3093  #include "confdefs.h"  #include "confdefs.h"
3094  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
3095  /* 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 3064  int main() { Line 3100  int main() {
3100  dlopen()  dlopen()
3101  ; return 0; }  ; return 0; }
3102  EOF  EOF
3103  if { (eval echo configure:3068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3104    rm -rf conftest*    rm -rf conftest*
3105    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
3106  else  else
# Line 3146  echo "$ac_t""use=$use" 1>&6 Line 3182  echo "$ac_t""use=$use" 1>&6
3182  # the time handling for unixtime, add timezone  # the time handling for unixtime, add timezone
3183    
3184  echo $ac_n "checking alloca""... $ac_c" 1>&6  echo $ac_n "checking alloca""... $ac_c" 1>&6
3185  echo "configure:3150: checking alloca" >&5  echo "configure:3186: checking alloca" >&5
3186  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3187    gcl_ok=no    gcl_ok=no
3188  else  else
3189    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3190  #line 3155 "configure"  #line 3191 "configure"
3191  #include "confdefs.h"  #include "confdefs.h"
3192  int main() { exit(alloca(500) != NULL ? 0 : 1);}  int main() { exit(alloca(500) != NULL ? 0 : 1);}
3193  EOF  EOF
3194  if { (eval echo configure:3159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3195  then  then
3196    :    :
3197  else  else
# Line 3178  else Line 3214  else
3214    gcl_ok=no    gcl_ok=no
3215  else  else
3216    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3217  #line 3182 "configure"  #line 3218 "configure"
3218  #include "confdefs.h"  #include "confdefs.h"
3219  #include <alloca.h>  #include <alloca.h>
3220    int main() { exit(alloca(500) != NULL ? 0 : 1)}    int main() { exit(alloca(500) != NULL ? 0 : 1)}
3221  EOF  EOF
3222  if { (eval echo configure:3187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3223  then  then
3224    :    :
3225  else  else
# Line 3245  rm -f makedefsafter Line 3281  rm -f makedefsafter
3281    
3282  if test $use_gmp = yes ; then  if test $use_gmp = yes ; then
3283   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
3284  echo "configure:3249: checking use_gmp=yes, doing configure in gmp directory" >&5  echo "configure:3285: checking use_gmp=yes, doing configure in gmp directory" >&5
3285   case "${canonical}" in   case "${canonical}" in
3286  #   i[[5-9]]86* | pentium* | k6* | athlon*)  #   i[[5-9]]86* | pentium* | k6* | athlon*)
3287  #      (cd gmp ; ./configure --target=i486) ;;  #      (cd gmp ; ./configure --target=i486) ;;
# Line 3267  fi Line 3303  fi
3303  # redhat/cygnus released for some reason a buggy version of gcc,  # redhat/cygnus released for some reason a buggy version of gcc,
3304  # which no one else released.   Catch that here.  # which no one else released.   Catch that here.
3305  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
3306  echo "configure:3271: checking Checking for buggy gcc version from redhat" >&5  echo "configure:3307: checking Checking for buggy gcc version from redhat" >&5
3307  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null
3308     then     then
3309          BROKEN_O4_OPT=1          BROKEN_O4_OPT=1
# Line 3419  s%@includedir@%$includedir%g Line 3455  s%@includedir@%$includedir%g
3455  s%@oldincludedir@%$oldincludedir%g  s%@oldincludedir@%$oldincludedir%g
3456  s%@infodir@%$infodir%g  s%@infodir@%$infodir%g
3457  s%@mandir@%$mandir%g  s%@mandir@%$mandir%g
3458    s%@AWK@%$AWK%g
3459  s%@CC@%$CC%g  s%@CC@%$CC%g
3460  s%@GCC@%$GCC%g  s%@GCC@%$GCC%g
3461  s%@HAVE_LONG_LONG@%$HAVE_LONG_LONG%g  s%@HAVE_LONG_LONG@%$HAVE_LONG_LONG%g

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

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