Changeset 687


Ignore:
Timestamp:
1999-10-15T15:50:50+13:00 (25 years ago)
Author:
sjboddie
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/configure

    r681 r687  
    523523
    524524
     525if test "$program_transform_name" = s,x,x,; then
     526  program_transform_name=
     527else
     528  # Double any \ or $.  echo might interpret backslashes.
     529  cat <<\EOF_SED > conftestsed
     530s,\\,\\\\,g; s,\$,$$,g
     531EOF_SED
     532  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
     533  rm -f conftestsed
     534fi
     535test "$program_prefix" != NONE &&
     536  program_transform_name="s,^,${program_prefix},; $program_transform_name"
     537# Use a double $ so make ignores it.
     538test "$program_suffix" != NONE &&
     539  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
     540
     541# sed with no file args requires a program.
     542test "$program_transform_name" = "" && program_transform_name="s,x,x,"
     543
     544
    525545PACKAGE=gsdl
    526546VERSION=2.1
     
    551571set dummy gcc; ac_word=$2
    552572echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    553 echo "configure:554: checking for $ac_word" >&5
     573echo "configure:574: checking for $ac_word" >&5
    554574if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    555575  echo $ac_n "(cached) $ac_c" 1>&6
     
    581601set dummy cc; ac_word=$2
    582602echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    583 echo "configure:584: checking for $ac_word" >&5
     603echo "configure:604: checking for $ac_word" >&5
    584604if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    585605  echo $ac_n "(cached) $ac_c" 1>&6
     
    632652set dummy cl; ac_word=$2
    633653echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    634 echo "configure:635: checking for $ac_word" >&5
     654echo "configure:655: checking for $ac_word" >&5
    635655if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    636656  echo $ac_n "(cached) $ac_c" 1>&6
     
    664684
    665685echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    666 echo "configure:667: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     686echo "configure:687: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    667687
    668688ac_ext=c
     
    675695cat > conftest.$ac_ext << EOF
    676696
    677 #line 678 "configure"
     697#line 698 "configure"
    678698#include "confdefs.h"
    679699
    680700main(){return(0);}
    681701EOF
    682 if { (eval echo configure:683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     702if { (eval echo configure:703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    683703  ac_cv_prog_cc_works=yes
    684704  # If we can't run a trivial program, we are probably using a cross compiler.
     
    706726fi
    707727echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    708 echo "configure:709: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     728echo "configure:729: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    709729echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    710730cross_compiling=$ac_cv_prog_cc_cross
    711731
    712732echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    713 echo "configure:714: checking whether we are using GNU C" >&5
     733echo "configure:734: checking whether we are using GNU C" >&5
    714734if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    715735  echo $ac_n "(cached) $ac_c" 1>&6
     
    720740#endif
    721741EOF
    722 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     742if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    723743  ac_cv_prog_gcc=yes
    724744else
     
    739759CFLAGS=
    740760echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    741 echo "configure:742: checking whether ${CC-cc} accepts -g" >&5
     761echo "configure:762: checking whether ${CC-cc} accepts -g" >&5
    742762if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    743763  echo $ac_n "(cached) $ac_c" 1>&6
     
    775795set dummy $ac_prog; ac_word=$2
    776796echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    777 echo "configure:778: checking for $ac_word" >&5
     797echo "configure:798: checking for $ac_word" >&5
    778798if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    779799  echo $ac_n "(cached) $ac_c" 1>&6
     
    807827
    808828echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    809 echo "configure:810: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     829echo "configure:830: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    810830
    811831ac_ext=C
     
    818838cat > conftest.$ac_ext << EOF
    819839
    820 #line 821 "configure"
     840#line 841 "configure"
    821841#include "confdefs.h"
    822842
    823843int main(){return(0);}
    824844EOF
    825 if { (eval echo configure:826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     845if { (eval echo configure:846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    826846  ac_cv_prog_cxx_works=yes
    827847  # If we can't run a trivial program, we are probably using a cross compiler.
     
    849869fi
    850870echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    851 echo "configure:852: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     871echo "configure:872: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    852872echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    853873cross_compiling=$ac_cv_prog_cxx_cross
    854874
    855875echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    856 echo "configure:857: checking whether we are using GNU C++" >&5
     876echo "configure:877: checking whether we are using GNU C++" >&5
    857877if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    858878  echo $ac_n "(cached) $ac_c" 1>&6
     
    863883#endif
    864884EOF
    865 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     885if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    866886  ac_cv_prog_gxx=yes
    867887else
     
    882902CXXFLAGS=
    883903echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    884 echo "configure:885: checking whether ${CXX-g++} accepts -g" >&5
     904echo "configure:905: checking whether ${CXX-g++} accepts -g" >&5
    885905if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    886906  echo $ac_n "(cached) $ac_c" 1>&6
     
    913933fi
    914934
     935for ac_prog in mawk gawk nawk awk
     936do
     937# Extract the first word of "$ac_prog", so it can be a program name with args.
     938set dummy $ac_prog; ac_word=$2
     939echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     940echo "configure:941: checking for $ac_word" >&5
     941if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
     942  echo $ac_n "(cached) $ac_c" 1>&6
     943else
     944  if test -n "$AWK"; then
     945  ac_cv_prog_AWK="$AWK" # Let the user override the test.
     946else
     947  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     948  ac_dummy="$PATH"
     949  for ac_dir in $ac_dummy; do
     950    test -z "$ac_dir" && ac_dir=.
     951    if test -f $ac_dir/$ac_word; then
     952      ac_cv_prog_AWK="$ac_prog"
     953      break
     954    fi
     955  done
     956  IFS="$ac_save_ifs"
     957fi
     958fi
     959AWK="$ac_cv_prog_AWK"
     960if test -n "$AWK"; then
     961  echo "$ac_t""$AWK" 1>&6
     962else
     963  echo "$ac_t""no" 1>&6
     964fi
     965
     966test -n "$AWK" && break
     967done
     968
     969for ac_prog in 'bison -y' byacc
     970do
     971# Extract the first word of "$ac_prog", so it can be a program name with args.
     972set dummy $ac_prog; ac_word=$2
     973echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     974echo "configure:975: checking for $ac_word" >&5
     975if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
     976  echo $ac_n "(cached) $ac_c" 1>&6
     977else
     978  if test -n "$YACC"; then
     979  ac_cv_prog_YACC="$YACC" # Let the user override the test.
     980else
     981  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     982  ac_dummy="$PATH"
     983  for ac_dir in $ac_dummy; do
     984    test -z "$ac_dir" && ac_dir=.
     985    if test -f $ac_dir/$ac_word; then
     986      ac_cv_prog_YACC="$ac_prog"
     987      break
     988    fi
     989  done
     990  IFS="$ac_save_ifs"
     991fi
     992fi
     993YACC="$ac_cv_prog_YACC"
     994if test -n "$YACC"; then
     995  echo "$ac_t""$YACC" 1>&6
     996else
     997  echo "$ac_t""no" 1>&6
     998fi
     999
     1000test -n "$YACC" && break
     1001done
     1002test -n "$YACC" || YACC="yacc"
     1003
    9151004echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
    916 echo "configure:917: checking whether ln -s works" >&5
     1005echo "configure:1006: checking whether ln -s works" >&5
    9171006if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    9181007  echo $ac_n "(cached) $ac_c" 1>&6
     
    9351024
    9361025echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    937 echo "configure:938: checking whether ${MAKE-make} sets \${MAKE}" >&5
     1026echo "configure:1027: checking whether ${MAKE-make} sets \${MAKE}" >&5
    9381027set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    9391028if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     
    9641053set dummy ranlib; ac_word=$2
    9651054echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    966 echo "configure:967: checking for $ac_word" >&5
     1055echo "configure:1056: checking for $ac_word" >&5
    9671056if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    9681057  echo $ac_n "(cached) $ac_c" 1>&6
     
    9921081
    9931082
    994 echo $ac_n "checking for main in -lg""... $ac_c" 1>&6
    995 echo "configure:996: checking for main in -lg" >&5
    996 ac_lib_var=`echo g'_'main | sed 'y%./+-%__p_%'`
    997 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    998   echo $ac_n "(cached) $ac_c" 1>&6
    999 else
    1000   ac_save_LIBS="$LIBS"
    1001 LIBS="-lg  $LIBS"
    1002 cat > conftest.$ac_ext <<EOF
    1003 #line 1004 "configure"
    1004 #include "confdefs.h"
    1005 
    1006 int main() {
    1007 main()
    1008 ; return 0; }
    1009 EOF
    1010 if { (eval echo configure:1011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1011   rm -rf conftest*
    1012   eval "ac_cv_lib_$ac_lib_var=yes"
    1013 else
    1014   echo "configure: failed program was:" >&5
    1015   cat conftest.$ac_ext >&5
    1016   rm -rf conftest*
    1017   eval "ac_cv_lib_$ac_lib_var=no"
    1018 fi
    1019 rm -f conftest*
    1020 LIBS="$ac_save_LIBS"
    1021 
    1022 fi
    1023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1024   echo "$ac_t""yes" 1>&6
    1025     ac_tr_lib=HAVE_LIB`echo g | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1026     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1027   cat >> confdefs.h <<EOF
    1028 #define $ac_tr_lib 1
    1029 EOF
    1030 
    1031   LIBS="-lg $LIBS"
    1032 
    1033 else
    1034   echo "$ac_t""no" 1>&6
    1035 fi
    1036 
    1037 echo $ac_n "checking for main in -lgdbm""... $ac_c" 1>&6
    1038 echo "configure:1039: checking for main in -lgdbm" >&5
    1039 ac_lib_var=`echo gdbm'_'main | sed 'y%./+-%__p_%'`
    1040 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1041   echo $ac_n "(cached) $ac_c" 1>&6
    1042 else
    1043   ac_save_LIBS="$LIBS"
    1044 LIBS="-lgdbm  $LIBS"
    1045 cat > conftest.$ac_ext <<EOF
    1046 #line 1047 "configure"
    1047 #include "confdefs.h"
    1048 
    1049 int main() {
    1050 main()
    1051 ; return 0; }
    1052 EOF
    1053 if { (eval echo configure:1054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1054   rm -rf conftest*
    1055   eval "ac_cv_lib_$ac_lib_var=yes"
    1056 else
    1057   echo "configure: failed program was:" >&5
    1058   cat conftest.$ac_ext >&5
    1059   rm -rf conftest*
    1060   eval "ac_cv_lib_$ac_lib_var=no"
    1061 fi
    1062 rm -f conftest*
    1063 LIBS="$ac_save_LIBS"
    1064 
    1065 fi
    1066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1067   echo "$ac_t""yes" 1>&6
    1068     ac_tr_lib=HAVE_LIB`echo gdbm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1069     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1070   cat >> confdefs.h <<EOF
    1071 #define $ac_tr_lib 1
    1072 EOF
    1073 
    1074   LIBS="-lgdbm $LIBS"
    1075 
    1076 else
    1077   echo "$ac_t""no" 1>&6
    1078 fi
    1079 
    1080 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
    1081 echo "configure:1082: checking for main in -lm" >&5
    1082 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
    1083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1084   echo $ac_n "(cached) $ac_c" 1>&6
    1085 else
    1086   ac_save_LIBS="$LIBS"
    1087 LIBS="-lm  $LIBS"
    1088 cat > conftest.$ac_ext <<EOF
    1089 #line 1090 "configure"
    1090 #include "confdefs.h"
    1091 
    1092 int main() {
    1093 main()
    1094 ; return 0; }
    1095 EOF
    1096 if { (eval echo configure:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1097   rm -rf conftest*
    1098   eval "ac_cv_lib_$ac_lib_var=yes"
    1099 else
    1100   echo "configure: failed program was:" >&5
    1101   cat conftest.$ac_ext >&5
    1102   rm -rf conftest*
    1103   eval "ac_cv_lib_$ac_lib_var=no"
    1104 fi
    1105 rm -f conftest*
    1106 LIBS="$ac_save_LIBS"
    1107 
    1108 fi
    1109 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1110   echo "$ac_t""yes" 1>&6
    1111     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1112     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1113   cat >> confdefs.h <<EOF
    1114 #define $ac_tr_lib 1
    1115 EOF
    1116 
    1117   LIBS="-lm $LIBS"
    1118 
    1119 else
    1120   echo "$ac_t""no" 1>&6
    1121 fi
    1122 
    1123 echo $ac_n "checking for main in -lstdc""... $ac_c" 1>&6
    1124 echo "configure:1125: checking for main in -lstdc" >&5
    1125 ac_lib_var=`echo stdc'_'main | sed 'y%./+-%__p_%'`
    1126 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1127   echo $ac_n "(cached) $ac_c" 1>&6
    1128 else
    1129   ac_save_LIBS="$LIBS"
    1130 LIBS="-lstdc  $LIBS"
    1131 cat > conftest.$ac_ext <<EOF
    1132 #line 1133 "configure"
    1133 #include "confdefs.h"
    1134 
    1135 int main() {
    1136 main()
    1137 ; return 0; }
    1138 EOF
    1139 if { (eval echo configure:1140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    1140   rm -rf conftest*
    1141   eval "ac_cv_lib_$ac_lib_var=yes"
    1142 else
    1143   echo "configure: failed program was:" >&5
    1144   cat conftest.$ac_ext >&5
    1145   rm -rf conftest*
    1146   eval "ac_cv_lib_$ac_lib_var=no"
    1147 fi
    1148 rm -f conftest*
    1149 LIBS="$ac_save_LIBS"
    1150 
    1151 fi
    1152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1153   echo "$ac_t""yes" 1>&6
    1154     ac_tr_lib=HAVE_LIB`echo stdc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1155     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1156   cat >> confdefs.h <<EOF
    1157 #define $ac_tr_lib 1
    1158 EOF
    1159 
    1160   LIBS="-lstdc $LIBS"
    1161 
    1162 else
    1163   echo "$ac_t""no" 1>&6
    1164 fi
    1165 
    11661083
    11671084echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    1168 echo "configure:1169: checking how to run the C preprocessor" >&5
     1085echo "configure:1086: checking how to run the C preprocessor" >&5
    11691086# On Suns, sometimes $CPP names a directory.
    11701087if test -n "$CPP" && test -d "$CPP"; then
     
    11811098  # not just through cpp.
    11821099  cat > conftest.$ac_ext <<EOF
    1183 #line 1184 "configure"
     1100#line 1101 "configure"
    11841101#include "confdefs.h"
    11851102#include <assert.h>
     
    11871104EOF
    11881105ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1189 { (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1106{ (eval echo configure:1107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    11901107ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    11911108if test -z "$ac_err"; then
     
    11981115  CPP="${CC-cc} -E -traditional-cpp"
    11991116  cat > conftest.$ac_ext <<EOF
    1200 #line 1201 "configure"
     1117#line 1118 "configure"
    12011118#include "confdefs.h"
    12021119#include <assert.h>
     
    12041121EOF
    12051122ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1206 { (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1123{ (eval echo configure:1124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    12071124ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    12081125if test -z "$ac_err"; then
     
    12151132  CPP="${CC-cc} -nologo -E"
    12161133  cat > conftest.$ac_ext <<EOF
    1217 #line 1218 "configure"
     1134#line 1135 "configure"
    12181135#include "confdefs.h"
    12191136#include <assert.h>
     
    12211138EOF
    12221139ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1223 { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1140{ (eval echo configure:1141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    12241141ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    12251142if test -z "$ac_err"; then
     
    12451162echo "$ac_t""$CPP" 1>&6
    12461163
    1247 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1248 echo "configure:1249: checking for ANSI C header files" >&5
    1249 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
     1164echo $ac_n "checking for AIX""... $ac_c" 1>&6
     1165echo "configure:1166: checking for AIX" >&5
     1166cat > conftest.$ac_ext <<EOF
     1167#line 1168 "configure"
     1168#include "confdefs.h"
     1169#ifdef _AIX
     1170  yes
     1171#endif
     1172
     1173EOF
     1174if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     1175  egrep "yes" >/dev/null 2>&1; then
     1176  rm -rf conftest*
     1177  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
     1178#define _ALL_SOURCE 1
     1179EOF
     1180
     1181else
     1182  rm -rf conftest*
     1183  echo "$ac_t""no" 1>&6
     1184fi
     1185rm -f conftest*
     1186
     1187
     1188echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
     1189echo "configure:1190: checking for POSIXized ISC" >&5
     1190if test -d /etc/conf/kconfig.d &&
     1191  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
     1192then
     1193  echo "$ac_t""yes" 1>&6
     1194  ISC=yes # If later tests want to check for ISC.
     1195  cat >> confdefs.h <<\EOF
     1196#define _POSIX_SOURCE 1
     1197EOF
     1198
     1199  if test "$GCC" = yes; then
     1200    CC="$CC -posix"
     1201  else
     1202    CC="$CC -Xp"
     1203  fi
     1204else
     1205  echo "$ac_t""no" 1>&6
     1206  ISC=
     1207fi
     1208
     1209ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
     1210echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
     1211echo "configure:1212: checking for minix/config.h" >&5
     1212if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    12501213  echo $ac_n "(cached) $ac_c" 1>&6
    12511214else
    12521215  cat > conftest.$ac_ext <<EOF
    1253 #line 1254 "configure"
    1254 #include "confdefs.h"
    1255 #include <stdlib.h>
    1256 #include <stdarg.h>
    1257 #include <string.h>
    1258 #include <float.h>
     1216#line 1217 "configure"
     1217#include "confdefs.h"
     1218#include <minix/config.h>
    12591219EOF
    12601220ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1261 { (eval echo configure:1262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1221{ (eval echo configure:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    12621222ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    12631223if test -z "$ac_err"; then
    12641224  rm -rf conftest*
    1265   ac_cv_header_stdc=yes
    1266 else
    1267   echo "$ac_err" >&5
    1268   echo "configure: failed program was:" >&5
    1269   cat conftest.$ac_ext >&5
    1270   rm -rf conftest*
    1271   ac_cv_header_stdc=no
    1272 fi
    1273 rm -f conftest*
    1274 
    1275 if test $ac_cv_header_stdc = yes; then
    1276   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    1277 cat > conftest.$ac_ext <<EOF
    1278 #line 1279 "configure"
    1279 #include "confdefs.h"
    1280 #include <string.h>
    1281 EOF
    1282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1283   egrep "memchr" >/dev/null 2>&1; then
    1284   :
    1285 else
    1286   rm -rf conftest*
    1287   ac_cv_header_stdc=no
    1288 fi
    1289 rm -f conftest*
    1290 
    1291 fi
    1292 
    1293 if test $ac_cv_header_stdc = yes; then
    1294   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    1295 cat > conftest.$ac_ext <<EOF
    1296 #line 1297 "configure"
    1297 #include "confdefs.h"
    1298 #include <stdlib.h>
    1299 EOF
    1300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1301   egrep "free" >/dev/null 2>&1; then
    1302   :
    1303 else
    1304   rm -rf conftest*
    1305   ac_cv_header_stdc=no
    1306 fi
    1307 rm -f conftest*
    1308 
    1309 fi
    1310 
    1311 if test $ac_cv_header_stdc = yes; then
    1312   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    1313 if test "$cross_compiling" = yes; then
    1314   :
    1315 else
    1316   cat > conftest.$ac_ext <<EOF
    1317 #line 1318 "configure"
    1318 #include "confdefs.h"
    1319 #include <ctype.h>
    1320 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    1321 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    1322 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    1323 int main () { int i; for (i = 0; i < 256; i++)
    1324 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
    1325 exit (0); }
    1326 
    1327 EOF
    1328 if { (eval echo configure:1329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    1329 then
    1330   :
    1331 else
    1332   echo "configure: failed program was:" >&5
    1333   cat conftest.$ac_ext >&5
    1334   rm -fr conftest*
    1335   ac_cv_header_stdc=no
    1336 fi
    1337 rm -fr conftest*
    1338 fi
    1339 
    1340 fi
    1341 fi
    1342 
    1343 echo "$ac_t""$ac_cv_header_stdc" 1>&6
    1344 if test $ac_cv_header_stdc = yes; then
    1345   cat >> confdefs.h <<\EOF
    1346 #define STDC_HEADERS 1
    1347 EOF
    1348 
    1349 fi
    1350 
    1351 for ac_hdr in fcntl.h
    1352 do
    1353 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1354 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1355 echo "configure:1356: checking for $ac_hdr" >&5
    1356 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    1357   echo $ac_n "(cached) $ac_c" 1>&6
    1358 else
    1359   cat > conftest.$ac_ext <<EOF
    1360 #line 1361 "configure"
    1361 #include "confdefs.h"
    1362 #include <$ac_hdr>
    1363 EOF
    1364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1365 { (eval echo configure:1366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    1367 if test -z "$ac_err"; then
    1368   rm -rf conftest*
    13691225  eval "ac_cv_header_$ac_safe=yes"
    13701226else
     
    13791235if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    13801236  echo "$ac_t""yes" 1>&6
    1381     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    1382   cat >> confdefs.h <<EOF
    1383 #define $ac_tr_hdr 1
    1384 EOF
    1385  
     1237  MINIX=yes
    13861238else
    13871239  echo "$ac_t""no" 1>&6
    1388 fi
    1389 done
    1390 
    1391 
     1240MINIX=
     1241fi
     1242
     1243if test "$MINIX" = yes; then
     1244  cat >> confdefs.h <<\EOF
     1245#define _POSIX_SOURCE 1
     1246EOF
     1247
     1248  cat >> confdefs.h <<\EOF
     1249#define _POSIX_1_SOURCE 2
     1250EOF
     1251
     1252  cat >> confdefs.h <<\EOF
     1253#define _MINIX 1
     1254EOF
     1255
     1256fi
     1257
     1258fp_C_PROTOTYPES
    13921259echo $ac_n "checking for working const""... $ac_c" 1>&6
    1393 echo "configure:1394: checking for working const" >&5
     1260echo "configure:1261: checking for working const" >&5
    13941261if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    13951262  echo $ac_n "(cached) $ac_c" 1>&6
    13961263else
    13971264  cat > conftest.$ac_ext <<EOF
    1398 #line 1399 "configure"
     1265#line 1266 "configure"
    13991266#include "confdefs.h"
    14001267
     
    14451312; return 0; }
    14461313EOF
    1447 if { (eval echo configure:1448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1314if { (eval echo configure:1315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    14481315  rm -rf conftest*
    14491316  ac_cv_c_const=yes
     
    14651332fi
    14661333
     1334echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
     1335echo "configure:1336: checking for ANSI C header files" >&5
     1336if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
     1337  echo $ac_n "(cached) $ac_c" 1>&6
     1338else
     1339  cat > conftest.$ac_ext <<EOF
     1340#line 1341 "configure"
     1341#include "confdefs.h"
     1342#include <stdlib.h>
     1343#include <stdarg.h>
     1344#include <string.h>
     1345#include <float.h>
     1346EOF
     1347ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     1348{ (eval echo configure:1349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1349ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     1350if test -z "$ac_err"; then
     1351  rm -rf conftest*
     1352  ac_cv_header_stdc=yes
     1353else
     1354  echo "$ac_err" >&5
     1355  echo "configure: failed program was:" >&5
     1356  cat conftest.$ac_ext >&5
     1357  rm -rf conftest*
     1358  ac_cv_header_stdc=no
     1359fi
     1360rm -f conftest*
     1361
     1362if test $ac_cv_header_stdc = yes; then
     1363  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     1364cat > conftest.$ac_ext <<EOF
     1365#line 1366 "configure"
     1366#include "confdefs.h"
     1367#include <string.h>
     1368EOF
     1369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     1370  egrep "memchr" >/dev/null 2>&1; then
     1371  :
     1372else
     1373  rm -rf conftest*
     1374  ac_cv_header_stdc=no
     1375fi
     1376rm -f conftest*
     1377
     1378fi
     1379
     1380if test $ac_cv_header_stdc = yes; then
     1381  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     1382cat > conftest.$ac_ext <<EOF
     1383#line 1384 "configure"
     1384#include "confdefs.h"
     1385#include <stdlib.h>
     1386EOF
     1387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     1388  egrep "free" >/dev/null 2>&1; then
     1389  :
     1390else
     1391  rm -rf conftest*
     1392  ac_cv_header_stdc=no
     1393fi
     1394rm -f conftest*
     1395
     1396fi
     1397
     1398if test $ac_cv_header_stdc = yes; then
     1399  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     1400if test "$cross_compiling" = yes; then
     1401  :
     1402else
     1403  cat > conftest.$ac_ext <<EOF
     1404#line 1405 "configure"
     1405#include "confdefs.h"
     1406#include <ctype.h>
     1407#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     1408#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     1409#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     1410int main () { int i; for (i = 0; i < 256; i++)
     1411if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
     1412exit (0); }
     1413
     1414EOF
     1415if { (eval echo configure:1416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1416then
     1417  :
     1418else
     1419  echo "configure: failed program was:" >&5
     1420  cat conftest.$ac_ext >&5
     1421  rm -fr conftest*
     1422  ac_cv_header_stdc=no
     1423fi
     1424rm -fr conftest*
     1425fi
     1426
     1427fi
     1428fi
     1429
     1430echo "$ac_t""$ac_cv_header_stdc" 1>&6
     1431if test $ac_cv_header_stdc = yes; then
     1432  cat >> confdefs.h <<\EOF
     1433#define STDC_HEADERS 1
     1434EOF
     1435
     1436fi
     1437
     1438echo $ac_n "checking for off_t""... $ac_c" 1>&6
     1439echo "configure:1440: checking for off_t" >&5
     1440if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
     1441  echo $ac_n "(cached) $ac_c" 1>&6
     1442else
     1443  cat > conftest.$ac_ext <<EOF
     1444#line 1445 "configure"
     1445#include "confdefs.h"
     1446#include <sys/types.h>
     1447#if STDC_HEADERS
     1448#include <stdlib.h>
     1449#include <stddef.h>
     1450#endif
     1451EOF
     1452if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     1453  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
     1454  rm -rf conftest*
     1455  ac_cv_type_off_t=yes
     1456else
     1457  rm -rf conftest*
     1458  ac_cv_type_off_t=no
     1459fi
     1460rm -f conftest*
     1461
     1462fi
     1463echo "$ac_t""$ac_cv_type_off_t" 1>&6
     1464if test $ac_cv_type_off_t = no; then
     1465  cat >> confdefs.h <<\EOF
     1466#define off_t long
     1467EOF
     1468
     1469fi
     1470
     1471echo $ac_n "checking for size_t""... $ac_c" 1>&6
     1472echo "configure:1473: checking for size_t" >&5
     1473if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
     1474  echo $ac_n "(cached) $ac_c" 1>&6
     1475else
     1476  cat > conftest.$ac_ext <<EOF
     1477#line 1478 "configure"
     1478#include "confdefs.h"
     1479#include <sys/types.h>
     1480#if STDC_HEADERS
     1481#include <stdlib.h>
     1482#include <stddef.h>
     1483#endif
     1484EOF
     1485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     1486  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
     1487  rm -rf conftest*
     1488  ac_cv_type_size_t=yes
     1489else
     1490  rm -rf conftest*
     1491  ac_cv_type_size_t=no
     1492fi
     1493rm -f conftest*
     1494
     1495fi
     1496echo "$ac_t""$ac_cv_type_size_t" 1>&6
     1497if test $ac_cv_type_size_t = no; then
     1498  cat >> confdefs.h <<\EOF
     1499#define size_t unsigned
     1500EOF
     1501
     1502fi
     1503
    14671504echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
    1468 echo "configure:1469: checking whether time.h and sys/time.h may both be included" >&5
     1505echo "configure:1506: checking whether time.h and sys/time.h may both be included" >&5
    14691506if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    14701507  echo $ac_n "(cached) $ac_c" 1>&6
    14711508else
    14721509  cat > conftest.$ac_ext <<EOF
    1473 #line 1474 "configure"
     1510#line 1511 "configure"
    14741511#include "confdefs.h"
    14751512#include <sys/types.h>
     
    14801517; return 0; }
    14811518EOF
    1482 if { (eval echo configure:1483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1519if { (eval echo configure:1520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    14831520  rm -rf conftest*
    14841521  ac_cv_header_time=yes
     
    15001537fi
    15011538
    1502 
    1503 
    1504 ac_ext=C
    1505 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    1506 ac_cpp='$CXXCPP $CPPFLAGS'
    1507 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    1508 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    1509 cross_compiling=$ac_cv_prog_cxx_cross
    1510 
    1511 success=no
    1512 echo $ac_n "checking "whether STL library has known faults"""... $ac_c" 1>&6
    1513 echo "configure:1514: checking "whether STL library has known faults"" >&5
    1514 
     1539echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
     1540echo "configure:1541: checking whether struct tm is in sys/time.h or time.h" >&5
     1541if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
     1542  echo $ac_n "(cached) $ac_c" 1>&6
     1543else
     1544  cat > conftest.$ac_ext <<EOF
     1545#line 1546 "configure"
     1546#include "confdefs.h"
     1547#include <sys/types.h>
     1548#include <time.h>
     1549int main() {
     1550struct tm *tp; tp->tm_sec;
     1551; return 0; }
     1552EOF
     1553if { (eval echo configure:1554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1554  rm -rf conftest*
     1555  ac_cv_struct_tm=time.h
     1556else
     1557  echo "configure: failed program was:" >&5
     1558  cat conftest.$ac_ext >&5
     1559  rm -rf conftest*
     1560  ac_cv_struct_tm=sys/time.h
     1561fi
     1562rm -f conftest*
     1563fi
     1564
     1565echo "$ac_t""$ac_cv_struct_tm" 1>&6
     1566if test $ac_cv_struct_tm = sys/time.h; then
     1567  cat >> confdefs.h <<\EOF
     1568#define TM_IN_SYS_TIME 1
     1569EOF
     1570
     1571fi
     1572
     1573
     1574if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
    15151575cat > conftest.$ac_ext <<EOF
    1516 #line 1517 "configure"
    1517 #include "confdefs.h"
    1518 #include <vector>
     1576#line 1577 "configure"
     1577#include "confdefs.h"
     1578#include <stdio.h>
    15191579
    15201580int main() {
    1521 
     1581 FILE *rubbish = popen("yes", "r");
    15221582; return 0; }
    15231583EOF
    1524 if { (eval echo configure:1525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1525   rm -rf conftest*
    1526   success=yes
    1527 else
    1528   echo "configure: failed program was:" >&5
    1529   cat conftest.$ac_ext >&5
    1530 fi
    1531 rm -f conftest*
    1532 
    1533 if test $success = "no"; then
     1584if { (eval echo configure:1585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1585  :
     1586else
     1587  echo "configure: failed program was:" >&5
     1588  cat conftest.$ac_ext >&5
     1589  rm -rf conftest*
     1590  CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
     1591fi
     1592rm -f conftest*
     1593fi
     1594
     1595
     1596echo $ac_n "checking for main in -lg""... $ac_c" 1>&6
     1597echo "configure:1598: checking for main in -lg" >&5
     1598ac_lib_var=`echo g'_'main | sed 'y%./+-%__p_%'`
     1599if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1600  echo $ac_n "(cached) $ac_c" 1>&6
     1601else
     1602  ac_save_LIBS="$LIBS"
     1603LIBS="-lg  $LIBS"
    15341604cat > conftest.$ac_ext <<EOF
    1535 #line 1536 "configure"
    1536 #include "confdefs.h"
    1537 #include <vector.h>
     1605#line 1606 "configure"
     1606#include "confdefs.h"
    15381607
    15391608int main() {
    1540 
     1609main()
    15411610; return 0; }
    15421611EOF
    1543 if { (eval echo configure:1544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1544   rm -rf conftest*
    1545   success="yes"
    1546 else
    1547   echo "configure: failed program was:" >&5
    1548   cat conftest.$ac_ext >&5
    1549 fi
    1550 rm -f conftest*
    1551 fi
    1552 
    1553 if test $success = "no"; then
     1612if { (eval echo configure:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1613  rm -rf conftest*
     1614  eval "ac_cv_lib_$ac_lib_var=yes"
     1615else
     1616  echo "configure: failed program was:" >&5
     1617  cat conftest.$ac_ext >&5
     1618  rm -rf conftest*
     1619  eval "ac_cv_lib_$ac_lib_var=no"
     1620fi
     1621rm -f conftest*
     1622LIBS="$ac_save_LIBS"
     1623
     1624fi
     1625if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1626  echo "$ac_t""yes" 1>&6
     1627    ac_tr_lib=HAVE_LIB`echo g | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     1628    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     1629  cat >> confdefs.h <<EOF
     1630#define $ac_tr_lib 1
     1631EOF
     1632
     1633  LIBS="-lg $LIBS"
     1634
     1635else
     1636  echo "$ac_t""no" 1>&6
     1637fi
     1638
     1639echo $ac_n "checking for main in -lgdbm""... $ac_c" 1>&6
     1640echo "configure:1641: checking for main in -lgdbm" >&5
     1641ac_lib_var=`echo gdbm'_'main | sed 'y%./+-%__p_%'`
     1642if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1643  echo $ac_n "(cached) $ac_c" 1>&6
     1644else
     1645  ac_save_LIBS="$LIBS"
     1646LIBS="-lgdbm  $LIBS"
    15541647cat > conftest.$ac_ext <<EOF
    1555 #line 1556 "configure"
    1556 #include "confdefs.h"
    1557 #include <ospace\\std\\vector>
     1648#line 1649 "configure"
     1649#include "confdefs.h"
    15581650
    15591651int main() {
    1560 
     1652main()
    15611653; return 0; }
    15621654EOF
    1563 if { (eval echo configure:1564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    1564   rm -rf conftest*
    1565   success="yes"
    1566 else
    1567   echo "configure: failed program was:" >&5
    1568   cat conftest.$ac_ext >&5
    1569 fi
    1570 rm -f conftest*
    1571 fi
    1572 
    1573 if test $success = yes; then
    1574 echo "$ac_t"""no"" 1>&6
    1575 else
    1576 echo "$ac_t"""yes"" 1>&6
    1577 { echo "configure: error: "STL Broken - new not found in vector header file"" 1>&2; exit 1; }
    1578 fi
    1579 
    1580 gsdlos=`uname | tr A-Z a-z`
     1655if { (eval echo configure:1656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1656  rm -rf conftest*
     1657  eval "ac_cv_lib_$ac_lib_var=yes"
     1658else
     1659  echo "configure: failed program was:" >&5
     1660  cat conftest.$ac_ext >&5
     1661  rm -rf conftest*
     1662  eval "ac_cv_lib_$ac_lib_var=no"
     1663fi
     1664rm -f conftest*
     1665LIBS="$ac_save_LIBS"
     1666
     1667fi
     1668if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1669  echo "$ac_t""yes" 1>&6
     1670    ac_tr_lib=HAVE_LIB`echo gdbm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     1671    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     1672  cat >> confdefs.h <<EOF
     1673#define $ac_tr_lib 1
     1674EOF
     1675
     1676  LIBS="-lgdbm $LIBS"
     1677
     1678else
     1679  echo "$ac_t""no" 1>&6
     1680fi
     1681
     1682echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
     1683echo "configure:1684: checking for main in -lm" >&5
     1684ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
     1685if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1686  echo $ac_n "(cached) $ac_c" 1>&6
     1687else
     1688  ac_save_LIBS="$LIBS"
     1689LIBS="-lm  $LIBS"
     1690cat > conftest.$ac_ext <<EOF
     1691#line 1692 "configure"
     1692#include "confdefs.h"
     1693
     1694int main() {
     1695main()
     1696; return 0; }
     1697EOF
     1698if { (eval echo configure:1699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1699  rm -rf conftest*
     1700  eval "ac_cv_lib_$ac_lib_var=yes"
     1701else
     1702  echo "configure: failed program was:" >&5
     1703  cat conftest.$ac_ext >&5
     1704  rm -rf conftest*
     1705  eval "ac_cv_lib_$ac_lib_var=no"
     1706fi
     1707rm -f conftest*
     1708LIBS="$ac_save_LIBS"
     1709
     1710fi
     1711if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1712  echo "$ac_t""yes" 1>&6
     1713    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     1714    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     1715  cat >> confdefs.h <<EOF
     1716#define $ac_tr_lib 1
     1717EOF
     1718
     1719  LIBS="-lm $LIBS"
     1720
     1721else
     1722  echo "$ac_t""no" 1>&6
     1723fi
     1724
     1725echo $ac_n "checking for main in -lstdc""... $ac_c" 1>&6
     1726echo "configure:1727: checking for main in -lstdc" >&5
     1727ac_lib_var=`echo stdc'_'main | sed 'y%./+-%__p_%'`
     1728if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1729  echo $ac_n "(cached) $ac_c" 1>&6
     1730else
     1731  ac_save_LIBS="$LIBS"
     1732LIBS="-lstdc  $LIBS"
     1733cat > conftest.$ac_ext <<EOF
     1734#line 1735 "configure"
     1735#include "confdefs.h"
     1736
     1737int main() {
     1738main()
     1739; return 0; }
     1740EOF
     1741if { (eval echo configure:1742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1742  rm -rf conftest*
     1743  eval "ac_cv_lib_$ac_lib_var=yes"
     1744else
     1745  echo "configure: failed program was:" >&5
     1746  cat conftest.$ac_ext >&5
     1747  rm -rf conftest*
     1748  eval "ac_cv_lib_$ac_lib_var=no"
     1749fi
     1750rm -f conftest*
     1751LIBS="$ac_save_LIBS"
     1752
     1753fi
     1754if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1755  echo "$ac_t""yes" 1>&6
     1756    ac_tr_lib=HAVE_LIB`echo stdc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     1757    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     1758  cat >> confdefs.h <<EOF
     1759#define $ac_tr_lib 1
     1760EOF
     1761
     1762  LIBS="-lstdc $LIBS"
     1763
     1764else
     1765  echo "$ac_t""no" 1>&6
     1766fi
     1767
     1768
     1769ac_header_dirent=no
     1770for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
     1771do
     1772ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
     1773echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
     1774echo "configure:1775: checking for $ac_hdr that defines DIR" >&5
     1775if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
     1776  echo $ac_n "(cached) $ac_c" 1>&6
     1777else
     1778  cat > conftest.$ac_ext <<EOF
     1779#line 1780 "configure"
     1780#include "confdefs.h"
     1781#include <sys/types.h>
     1782#include <$ac_hdr>
     1783int main() {
     1784DIR *dirp = 0;
     1785; return 0; }
     1786EOF
     1787if { (eval echo configure:1788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1788  rm -rf conftest*
     1789  eval "ac_cv_header_dirent_$ac_safe=yes"
     1790else
     1791  echo "configure: failed program was:" >&5
     1792  cat conftest.$ac_ext >&5
     1793  rm -rf conftest*
     1794  eval "ac_cv_header_dirent_$ac_safe=no"
     1795fi
     1796rm -f conftest*
     1797fi
     1798if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
     1799  echo "$ac_t""yes" 1>&6
     1800    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
     1801  cat >> confdefs.h <<EOF
     1802#define $ac_tr_hdr 1
     1803EOF
     1804 ac_header_dirent=$ac_hdr; break
     1805else
     1806  echo "$ac_t""no" 1>&6
     1807fi
     1808done
     1809# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
     1810if test $ac_header_dirent = dirent.h; then
     1811echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
     1812echo "configure:1813: checking for opendir in -ldir" >&5
     1813ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
     1814if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1815  echo $ac_n "(cached) $ac_c" 1>&6
     1816else
     1817  ac_save_LIBS="$LIBS"
     1818LIBS="-ldir  $LIBS"
     1819cat > conftest.$ac_ext <<EOF
     1820#line 1821 "configure"
     1821#include "confdefs.h"
     1822/* Override any gcc2 internal prototype to avoid an error.  */
     1823/* We use char because int might match the return type of a gcc2
     1824    builtin and then its argument prototype would still apply.  */
     1825char opendir();
     1826
     1827int main() {
     1828opendir()
     1829; return 0; }
     1830EOF
     1831if { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1832  rm -rf conftest*
     1833  eval "ac_cv_lib_$ac_lib_var=yes"
     1834else
     1835  echo "configure: failed program was:" >&5
     1836  cat conftest.$ac_ext >&5
     1837  rm -rf conftest*
     1838  eval "ac_cv_lib_$ac_lib_var=no"
     1839fi
     1840rm -f conftest*
     1841LIBS="$ac_save_LIBS"
     1842
     1843fi
     1844if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1845  echo "$ac_t""yes" 1>&6
     1846  LIBS="$LIBS -ldir"
     1847else
     1848  echo "$ac_t""no" 1>&6
     1849fi
     1850
     1851else
     1852echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
     1853echo "configure:1854: checking for opendir in -lx" >&5
     1854ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
     1855if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1856  echo $ac_n "(cached) $ac_c" 1>&6
     1857else
     1858  ac_save_LIBS="$LIBS"
     1859LIBS="-lx  $LIBS"
     1860cat > conftest.$ac_ext <<EOF
     1861#line 1862 "configure"
     1862#include "confdefs.h"
     1863/* Override any gcc2 internal prototype to avoid an error.  */
     1864/* We use char because int might match the return type of a gcc2
     1865    builtin and then its argument prototype would still apply.  */
     1866char opendir();
     1867
     1868int main() {
     1869opendir()
     1870; return 0; }
     1871EOF
     1872if { (eval echo configure:1873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1873  rm -rf conftest*
     1874  eval "ac_cv_lib_$ac_lib_var=yes"
     1875else
     1876  echo "configure: failed program was:" >&5
     1877  cat conftest.$ac_ext >&5
     1878  rm -rf conftest*
     1879  eval "ac_cv_lib_$ac_lib_var=no"
     1880fi
     1881rm -f conftest*
     1882LIBS="$ac_save_LIBS"
     1883
     1884fi
     1885if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1886  echo "$ac_t""yes" 1>&6
     1887  LIBS="$LIBS -lx"
     1888else
     1889  echo "$ac_t""no" 1>&6
     1890fi
     1891
     1892fi
     1893
     1894echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
     1895echo "configure:1896: checking for ANSI C header files" >&5
     1896if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
     1897  echo $ac_n "(cached) $ac_c" 1>&6
     1898else
     1899  cat > conftest.$ac_ext <<EOF
     1900#line 1901 "configure"
     1901#include "confdefs.h"
     1902#include <stdlib.h>
     1903#include <stdarg.h>
     1904#include <string.h>
     1905#include <float.h>
     1906EOF
     1907ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     1908{ (eval echo configure:1909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1909ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     1910if test -z "$ac_err"; then
     1911  rm -rf conftest*
     1912  ac_cv_header_stdc=yes
     1913else
     1914  echo "$ac_err" >&5
     1915  echo "configure: failed program was:" >&5
     1916  cat conftest.$ac_ext >&5
     1917  rm -rf conftest*
     1918  ac_cv_header_stdc=no
     1919fi
     1920rm -f conftest*
     1921
     1922if test $ac_cv_header_stdc = yes; then
     1923  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     1924cat > conftest.$ac_ext <<EOF
     1925#line 1926 "configure"
     1926#include "confdefs.h"
     1927#include <string.h>
     1928EOF
     1929if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     1930  egrep "memchr" >/dev/null 2>&1; then
     1931  :
     1932else
     1933  rm -rf conftest*
     1934  ac_cv_header_stdc=no
     1935fi
     1936rm -f conftest*
     1937
     1938fi
     1939
     1940if test $ac_cv_header_stdc = yes; then
     1941  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     1942cat > conftest.$ac_ext <<EOF
     1943#line 1944 "configure"
     1944#include "confdefs.h"
     1945#include <stdlib.h>
     1946EOF
     1947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     1948  egrep "free" >/dev/null 2>&1; then
     1949  :
     1950else
     1951  rm -rf conftest*
     1952  ac_cv_header_stdc=no
     1953fi
     1954rm -f conftest*
     1955
     1956fi
     1957
     1958if test $ac_cv_header_stdc = yes; then
     1959  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     1960if test "$cross_compiling" = yes; then
     1961  :
     1962else
     1963  cat > conftest.$ac_ext <<EOF
     1964#line 1965 "configure"
     1965#include "confdefs.h"
     1966#include <ctype.h>
     1967#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     1968#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     1969#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     1970int main () { int i; for (i = 0; i < 256; i++)
     1971if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
     1972exit (0); }
     1973
     1974EOF
     1975if { (eval echo configure:1976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1976then
     1977  :
     1978else
     1979  echo "configure: failed program was:" >&5
     1980  cat conftest.$ac_ext >&5
     1981  rm -fr conftest*
     1982  ac_cv_header_stdc=no
     1983fi
     1984rm -fr conftest*
     1985fi
     1986
     1987fi
     1988fi
     1989
     1990echo "$ac_t""$ac_cv_header_stdc" 1>&6
     1991if test $ac_cv_header_stdc = yes; then
     1992  cat >> confdefs.h <<\EOF
     1993#define STDC_HEADERS 1
     1994EOF
     1995
     1996fi
     1997
     1998for ac_hdr in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
     1999do
     2000ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
     2001echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
     2002echo "configure:2003: checking for $ac_hdr" >&5
     2003if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
     2004  echo $ac_n "(cached) $ac_c" 1>&6
     2005else
     2006  cat > conftest.$ac_ext <<EOF
     2007#line 2008 "configure"
     2008#include "confdefs.h"
     2009#include <$ac_hdr>
     2010EOF
     2011ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     2012{ (eval echo configure:2013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2013ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
     2014if test -z "$ac_err"; then
     2015  rm -rf conftest*
     2016  eval "ac_cv_header_$ac_safe=yes"
     2017else
     2018  echo "$ac_err" >&5
     2019  echo "configure: failed program was:" >&5
     2020  cat conftest.$ac_ext >&5
     2021  rm -rf conftest*
     2022  eval "ac_cv_header_$ac_safe=no"
     2023fi
     2024rm -f conftest*
     2025fi
     2026if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
     2027  echo "$ac_t""yes" 1>&6
     2028    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
     2029  cat >> confdefs.h <<EOF
     2030#define $ac_tr_hdr 1
     2031EOF
     2032 
     2033else
     2034  echo "$ac_t""no" 1>&6
     2035fi
     2036done
     2037
     2038cat > conftest.$ac_ext <<EOF
     2039#line 2040 "configure"
     2040#include "confdefs.h"
     2041#include <stdio.h>
     2042EOF
     2043if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     2044  egrep "fread" >/dev/null 2>&1; then
     2045  rm -rf conftest*
     2046  cat >> confdefs.h <<\EOF
     2047#define HAVE_FREAD_DECL 1
     2048EOF
     2049
     2050fi
     2051rm -f conftest*
     2052
     2053cat > conftest.$ac_ext <<EOF
     2054#line 2055 "configure"
     2055#include "confdefs.h"
     2056#include <stdio.h>
     2057EOF
     2058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     2059  egrep "fgetc" >/dev/null 2>&1; then
     2060  rm -rf conftest*
     2061  cat >> confdefs.h <<\EOF
     2062#define HAVE_FGETC_DECL 1
     2063EOF
     2064
     2065fi
     2066rm -f conftest*
     2067
     2068cat > conftest.$ac_ext <<EOF
     2069#line 2070 "configure"
     2070#include "confdefs.h"
     2071#include <sys/procfs.h>
     2072EOF
     2073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     2074  egrep "pr_brksize" >/dev/null 2>&1; then
     2075  rm -rf conftest*
     2076  cat >> confdefs.h <<\EOF
     2077#define HAVE_PR_BRKSIZE 1
     2078EOF
     2079
     2080fi
     2081rm -f conftest*
     2082
     2083
     2084# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
     2085# for constant arguments.  Useless!
     2086echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
     2087echo "configure:2088: checking for working alloca.h" >&5
     2088if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
     2089  echo $ac_n "(cached) $ac_c" 1>&6
     2090else
     2091  cat > conftest.$ac_ext <<EOF
     2092#line 2093 "configure"
     2093#include "confdefs.h"
     2094#include <alloca.h>
     2095int main() {
     2096char *p = alloca(2 * sizeof(int));
     2097; return 0; }
     2098EOF
     2099if { (eval echo configure:2100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2100  rm -rf conftest*
     2101  ac_cv_header_alloca_h=yes
     2102else
     2103  echo "configure: failed program was:" >&5
     2104  cat conftest.$ac_ext >&5
     2105  rm -rf conftest*
     2106  ac_cv_header_alloca_h=no
     2107fi
     2108rm -f conftest*
     2109fi
     2110
     2111echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
     2112if test $ac_cv_header_alloca_h = yes; then
     2113  cat >> confdefs.h <<\EOF
     2114#define HAVE_ALLOCA_H 1
     2115EOF
     2116
     2117fi
     2118
     2119echo $ac_n "checking for alloca""... $ac_c" 1>&6
     2120echo "configure:2121: checking for alloca" >&5
     2121if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
     2122  echo $ac_n "(cached) $ac_c" 1>&6
     2123else
     2124  cat > conftest.$ac_ext <<EOF
     2125#line 2126 "configure"
     2126#include "confdefs.h"
     2127
     2128#ifdef __GNUC__
     2129# define alloca __builtin_alloca
     2130#else
     2131# ifdef _MSC_VER
     2132#  include <malloc.h>
     2133#  define alloca _alloca
     2134# else
     2135#  if HAVE_ALLOCA_H
     2136#   include <alloca.h>
     2137#  else
     2138#   ifdef _AIX
     2139 #pragma alloca
     2140#   else
     2141#    ifndef alloca /* predefined by HP cc +Olibcalls */
     2142char *alloca ();
     2143#    endif
     2144#   endif
     2145#  endif
     2146# endif
     2147#endif
     2148
     2149int main() {
     2150char *p = (char *) alloca(1);
     2151; return 0; }
     2152EOF
     2153if { (eval echo configure:2154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2154  rm -rf conftest*
     2155  ac_cv_func_alloca_works=yes
     2156else
     2157  echo "configure: failed program was:" >&5
     2158  cat conftest.$ac_ext >&5
     2159  rm -rf conftest*
     2160  ac_cv_func_alloca_works=no
     2161fi
     2162rm -f conftest*
     2163fi
     2164
     2165echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
     2166if test $ac_cv_func_alloca_works = yes; then
     2167  cat >> confdefs.h <<\EOF
     2168#define HAVE_ALLOCA 1
     2169EOF
     2170
     2171fi
     2172
     2173if test $ac_cv_func_alloca_works = no; then
     2174  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
     2175  # that cause trouble.  Some versions do not even contain alloca or
     2176  # contain a buggy version.  If you still want to use their alloca,
     2177  # use ar to extract alloca.o from them instead of compiling alloca.c.
     2178  ALLOCA=alloca.${ac_objext}
     2179  cat >> confdefs.h <<\EOF
     2180#define C_ALLOCA 1
     2181EOF
     2182
     2183
     2184echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
     2185echo "configure:2186: checking whether alloca needs Cray hooks" >&5
     2186if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
     2187  echo $ac_n "(cached) $ac_c" 1>&6
     2188else
     2189  cat > conftest.$ac_ext <<EOF
     2190#line 2191 "configure"
     2191#include "confdefs.h"
     2192#if defined(CRAY) && ! defined(CRAY2)
     2193webecray
     2194#else
     2195wenotbecray
     2196#endif
     2197
     2198EOF
     2199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     2200  egrep "webecray" >/dev/null 2>&1; then
     2201  rm -rf conftest*
     2202  ac_cv_os_cray=yes
     2203else
     2204  rm -rf conftest*
     2205  ac_cv_os_cray=no
     2206fi
     2207rm -f conftest*
     2208
     2209fi
     2210
     2211echo "$ac_t""$ac_cv_os_cray" 1>&6
     2212if test $ac_cv_os_cray = yes; then
     2213for ac_func in _getb67 GETB67 getb67; do
     2214  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2215echo "configure:2216: checking for $ac_func" >&5
     2216if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     2217  echo $ac_n "(cached) $ac_c" 1>&6
     2218else
     2219  cat > conftest.$ac_ext <<EOF
     2220#line 2221 "configure"
     2221#include "confdefs.h"
     2222/* System header to define __stub macros and hopefully few prototypes,
     2223    which can conflict with char $ac_func(); below.  */
     2224#include <assert.h>
     2225/* Override any gcc2 internal prototype to avoid an error.  */
     2226/* We use char because int might match the return type of a gcc2
     2227    builtin and then its argument prototype would still apply.  */
     2228char $ac_func();
     2229
     2230int main() {
     2231
     2232/* The GNU C library defines this for functions which it implements
     2233    to always fail with ENOSYS.  Some functions are actually named
     2234    something starting with __ and the normal name is an alias.  */
     2235#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
     2236choke me
     2237#else
     2238$ac_func();
     2239#endif
     2240
     2241; return 0; }
     2242EOF
     2243if { (eval echo configure:2244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2244  rm -rf conftest*
     2245  eval "ac_cv_func_$ac_func=yes"
     2246else
     2247  echo "configure: failed program was:" >&5
     2248  cat conftest.$ac_ext >&5
     2249  rm -rf conftest*
     2250  eval "ac_cv_func_$ac_func=no"
     2251fi
     2252rm -f conftest*
     2253fi
     2254
     2255if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     2256  echo "$ac_t""yes" 1>&6
     2257  cat >> confdefs.h <<EOF
     2258#define CRAY_STACKSEG_END $ac_func
     2259EOF
     2260
     2261  break
     2262else
     2263  echo "$ac_t""no" 1>&6
     2264fi
     2265
     2266done
     2267fi
     2268
     2269echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
     2270echo "configure:2271: checking stack direction for C alloca" >&5
     2271if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
     2272  echo $ac_n "(cached) $ac_c" 1>&6
     2273else
     2274  if test "$cross_compiling" = yes; then
     2275  ac_cv_c_stack_direction=0
     2276else
     2277  cat > conftest.$ac_ext <<EOF
     2278#line 2279 "configure"
     2279#include "confdefs.h"
     2280find_stack_direction ()
     2281{
     2282  static char *addr = 0;
     2283  auto char dummy;
     2284  if (addr == 0)
     2285    {
     2286      addr = &dummy;
     2287      return find_stack_direction ();
     2288    }
     2289  else
     2290    return (&dummy > addr) ? 1 : -1;
     2291}
     2292main ()
     2293{
     2294  exit (find_stack_direction() < 0);
     2295}
     2296EOF
     2297if { (eval echo configure:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2298then
     2299  ac_cv_c_stack_direction=1
     2300else
     2301  echo "configure: failed program was:" >&5
     2302  cat conftest.$ac_ext >&5
     2303  rm -fr conftest*
     2304  ac_cv_c_stack_direction=-1
     2305fi
     2306rm -fr conftest*
     2307fi
     2308
     2309fi
     2310
     2311echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
     2312cat >> confdefs.h <<EOF
     2313#define STACK_DIRECTION $ac_cv_c_stack_direction
     2314EOF
     2315
     2316fi
     2317
     2318if test $ac_cv_prog_gcc = yes; then
     2319    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
     2320echo "configure:2321: checking whether ${CC-cc} needs -traditional" >&5
     2321if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
     2322  echo $ac_n "(cached) $ac_c" 1>&6
     2323else
     2324    ac_pattern="Autoconf.*'x'"
     2325  cat > conftest.$ac_ext <<EOF
     2326#line 2327 "configure"
     2327#include "confdefs.h"
     2328#include <sgtty.h>
     2329Autoconf TIOCGETP
     2330EOF
     2331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     2332  egrep "$ac_pattern" >/dev/null 2>&1; then
     2333  rm -rf conftest*
     2334  ac_cv_prog_gcc_traditional=yes
     2335else
     2336  rm -rf conftest*
     2337  ac_cv_prog_gcc_traditional=no
     2338fi
     2339rm -f conftest*
     2340
     2341
     2342  if test $ac_cv_prog_gcc_traditional = no; then
     2343    cat > conftest.$ac_ext <<EOF
     2344#line 2345 "configure"
     2345#include "confdefs.h"
     2346#include <termio.h>
     2347Autoconf TCGETA
     2348EOF
     2349if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     2350  egrep "$ac_pattern" >/dev/null 2>&1; then
     2351  rm -rf conftest*
     2352  ac_cv_prog_gcc_traditional=yes
     2353fi
     2354rm -f conftest*
     2355
     2356  fi
     2357fi
     2358
     2359echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
     2360  if test $ac_cv_prog_gcc_traditional = yes; then
     2361    CC="$CC -traditional"
     2362  fi
     2363fi
     2364
     2365echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
     2366echo "configure:2367: checking return type of signal handlers" >&5
     2367if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
     2368  echo $ac_n "(cached) $ac_c" 1>&6
     2369else
     2370  cat > conftest.$ac_ext <<EOF
     2371#line 2372 "configure"
     2372#include "confdefs.h"
     2373#include <sys/types.h>
     2374#include <signal.h>
     2375#ifdef signal
     2376#undef signal
     2377#endif
     2378#ifdef __cplusplus
     2379extern "C" void (*signal (int, void (*)(int)))(int);
     2380#else
     2381void (*signal ()) ();
     2382#endif
     2383
     2384int main() {
     2385int i;
     2386; return 0; }
     2387EOF
     2388if { (eval echo configure:2389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2389  rm -rf conftest*
     2390  ac_cv_type_signal=void
     2391else
     2392  echo "configure: failed program was:" >&5
     2393  cat conftest.$ac_ext >&5
     2394  rm -rf conftest*
     2395  ac_cv_type_signal=int
     2396fi
     2397rm -f conftest*
     2398fi
     2399
     2400echo "$ac_t""$ac_cv_type_signal" 1>&6
     2401cat >> confdefs.h <<EOF
     2402#define RETSIGTYPE $ac_cv_type_signal
     2403EOF
    15812404
    15822405
    15832406echo $ac_n "checking for vprintf""... $ac_c" 1>&6
    1584 echo "configure:1585: checking for vprintf" >&5
     2407echo "configure:2408: checking for vprintf" >&5
    15852408if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
    15862409  echo $ac_n "(cached) $ac_c" 1>&6
    15872410else
    15882411  cat > conftest.$ac_ext <<EOF
    1589 #line 1590 "configure"
     2412#line 2413 "configure"
    15902413#include "confdefs.h"
    15912414/* System header to define __stub macros and hopefully few prototypes,
     
    15932416#include <assert.h>
    15942417/* Override any gcc2 internal prototype to avoid an error.  */
    1595 #ifdef __cplusplus
    1596 extern "C"
    1597 #endif
    15982418/* We use char because int might match the return type of a gcc2
    15992419    builtin and then its argument prototype would still apply.  */
     
    16132433; return 0; }
    16142434EOF
    1615 if { (eval echo configure:1616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2435if { (eval echo configure:2436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    16162436  rm -rf conftest*
    16172437  eval "ac_cv_func_vprintf=yes"
     
    16372457if test "$ac_cv_func_vprintf" != yes; then
    16382458echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
    1639 echo "configure:1640: checking for _doprnt" >&5
     2459echo "configure:2460: checking for _doprnt" >&5
    16402460if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
    16412461  echo $ac_n "(cached) $ac_c" 1>&6
    16422462else
    16432463  cat > conftest.$ac_ext <<EOF
    1644 #line 1645 "configure"
     2464#line 2465 "configure"
    16452465#include "confdefs.h"
    16462466/* System header to define __stub macros and hopefully few prototypes,
     
    16482468#include <assert.h>
    16492469/* Override any gcc2 internal prototype to avoid an error.  */
    1650 #ifdef __cplusplus
    1651 extern "C"
    1652 #endif
    16532470/* We use char because int might match the return type of a gcc2
    16542471    builtin and then its argument prototype would still apply.  */
     
    16682485; return 0; }
    16692486EOF
    1670 if { (eval echo configure:1671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2487if { (eval echo configure:2488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    16712488  rm -rf conftest*
    16722489  eval "ac_cv_func__doprnt=yes"
     
    16922509fi
    16932510
     2511for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize
     2512do
     2513echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2514echo "configure:2515: checking for $ac_func" >&5
     2515if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     2516  echo $ac_n "(cached) $ac_c" 1>&6
     2517else
     2518  cat > conftest.$ac_ext <<EOF
     2519#line 2520 "configure"
     2520#include "confdefs.h"
     2521/* System header to define __stub macros and hopefully few prototypes,
     2522    which can conflict with char $ac_func(); below.  */
     2523#include <assert.h>
     2524/* Override any gcc2 internal prototype to avoid an error.  */
     2525/* We use char because int might match the return type of a gcc2
     2526    builtin and then its argument prototype would still apply.  */
     2527char $ac_func();
     2528
     2529int main() {
     2530
     2531/* The GNU C library defines this for functions which it implements
     2532    to always fail with ENOSYS.  Some functions are actually named
     2533    something starting with __ and the normal name is an alias.  */
     2534#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
     2535choke me
     2536#else
     2537$ac_func();
     2538#endif
     2539
     2540; return 0; }
     2541EOF
     2542if { (eval echo configure:2543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2543  rm -rf conftest*
     2544  eval "ac_cv_func_$ac_func=yes"
     2545else
     2546  echo "configure: failed program was:" >&5
     2547  cat conftest.$ac_ext >&5
     2548  rm -rf conftest*
     2549  eval "ac_cv_func_$ac_func=no"
     2550fi
     2551rm -f conftest*
     2552fi
     2553
     2554if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     2555  echo "$ac_t""yes" 1>&6
     2556    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     2557  cat >> confdefs.h <<EOF
     2558#define $ac_tr_func 1
     2559EOF
     2560 
     2561else
     2562  echo "$ac_t""no" 1>&6
     2563fi
     2564done
     2565
     2566for ac_func in ftruncate strstr strcasecmp
     2567do
     2568echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2569echo "configure:2570: checking for $ac_func" >&5
     2570if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     2571  echo $ac_n "(cached) $ac_c" 1>&6
     2572else
     2573  cat > conftest.$ac_ext <<EOF
     2574#line 2575 "configure"
     2575#include "confdefs.h"
     2576/* System header to define __stub macros and hopefully few prototypes,
     2577    which can conflict with char $ac_func(); below.  */
     2578#include <assert.h>
     2579/* Override any gcc2 internal prototype to avoid an error.  */
     2580/* We use char because int might match the return type of a gcc2
     2581    builtin and then its argument prototype would still apply.  */
     2582char $ac_func();
     2583
     2584int main() {
     2585
     2586/* The GNU C library defines this for functions which it implements
     2587    to always fail with ENOSYS.  Some functions are actually named
     2588    something starting with __ and the normal name is an alias.  */
     2589#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
     2590choke me
     2591#else
     2592$ac_func();
     2593#endif
     2594
     2595; return 0; }
     2596EOF
     2597if { (eval echo configure:2598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2598  rm -rf conftest*
     2599  eval "ac_cv_func_$ac_func=yes"
     2600else
     2601  echo "configure: failed program was:" >&5
     2602  cat conftest.$ac_ext >&5
     2603  rm -rf conftest*
     2604  eval "ac_cv_func_$ac_func=no"
     2605fi
     2606rm -f conftest*
     2607fi
     2608
     2609if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     2610  echo "$ac_t""yes" 1>&6
     2611    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     2612  cat >> confdefs.h <<EOF
     2613#define $ac_tr_func 1
     2614EOF
     2615 
     2616else
     2617  echo "$ac_t""no" 1>&6
     2618LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
     2619fi
     2620done
     2621
     2622
     2623
     2624
     2625# *** Custom checking (based on GNU tar configure.in) ***
     2626# ---------------------------------------------------------------------------
     2627echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
     2628echo "configure:2629: checking for HP-UX needing gmalloc" >&5
     2629if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
     2630  echo "$ac_t""yes" 1>&6
     2631  LIBOBJS="$LIBOBJS gmalloc.o"
     2632  cat >> confdefs.h <<\EOF
     2633#define HAVE_VALLOC 1
     2634EOF
     2635
     2636else
     2637  echo "$ac_t""no" 1>&6
     2638  for ac_func in valloc
     2639do
     2640echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2641echo "configure:2642: checking for $ac_func" >&5
     2642if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     2643  echo $ac_n "(cached) $ac_c" 1>&6
     2644else
     2645  cat > conftest.$ac_ext <<EOF
     2646#line 2647 "configure"
     2647#include "confdefs.h"
     2648/* System header to define __stub macros and hopefully few prototypes,
     2649    which can conflict with char $ac_func(); below.  */
     2650#include <assert.h>
     2651/* Override any gcc2 internal prototype to avoid an error.  */
     2652/* We use char because int might match the return type of a gcc2
     2653    builtin and then its argument prototype would still apply.  */
     2654char $ac_func();
     2655
     2656int main() {
     2657
     2658/* The GNU C library defines this for functions which it implements
     2659    to always fail with ENOSYS.  Some functions are actually named
     2660    something starting with __ and the normal name is an alias.  */
     2661#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
     2662choke me
     2663#else
     2664$ac_func();
     2665#endif
     2666
     2667; return 0; }
     2668EOF
     2669if { (eval echo configure:2670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2670  rm -rf conftest*
     2671  eval "ac_cv_func_$ac_func=yes"
     2672else
     2673  echo "configure: failed program was:" >&5
     2674  cat conftest.$ac_ext >&5
     2675  rm -rf conftest*
     2676  eval "ac_cv_func_$ac_func=no"
     2677fi
     2678rm -f conftest*
     2679fi
     2680
     2681if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     2682  echo "$ac_t""yes" 1>&6
     2683    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     2684  cat >> confdefs.h <<EOF
     2685#define $ac_tr_func 1
     2686EOF
     2687 
     2688else
     2689  echo "$ac_t""no" 1>&6
     2690fi
     2691done
     2692
     2693fi
     2694
     2695fp_WITH_DMALLOC
     2696fp_WITH_REGEX
     2697
     2698# ---------------------------------------------------------------------------
     2699if test "$ac_cv_func_alloca" = 'no'; then
     2700  LIBOBJS="$LIBOBJS xmalloc.o error.o"
     2701fi
     2702
     2703
     2704# ---------------------------------------------------------------------------
     2705
     2706ac_ext=C
     2707# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     2708ac_cpp='$CXXCPP $CPPFLAGS'
     2709ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     2710ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     2711cross_compiling=$ac_cv_prog_cxx_cross
     2712
     2713
     2714echo $ac_n "checking "that the GDBM library is available"""... $ac_c" 1>&6
     2715echo "configure:2716: checking "that the GDBM library is available"" >&5
     2716cat > conftest.$ac_ext <<EOF
     2717#line 2718 "configure"
     2718#include "confdefs.h"
     2719#include <gdbm.h>
     2720
     2721int main() {
     2722
     2723; return 0; }
     2724EOF
     2725if { (eval echo configure:2726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2726  rm -rf conftest*
     2727  success=yes
     2728else
     2729  echo "configure: failed program was:" >&5
     2730  cat conftest.$ac_ext >&5
     2731  rm -rf conftest*
     2732  success=no
     2733
     2734fi
     2735rm -f conftest*
     2736echo "$ac_t""$success" 1>&6
     2737if test $success = "no"; then
     2738{ echo "configure: error: "GDBM Library not available - cannot install"" 1>&2; exit 1; }
     2739fi
     2740
     2741echo $ac_n "checking "that Perl 5 is available"""... $ac_c" 1>&6
     2742echo "configure:2743: checking "that Perl 5 is available"" >&5
     2743success="no"
     2744pl_path="$PATH"
     2745IFS="${IFS=   }"; pl_save_ifs="$IFS"; IFS=":"
     2746for pl_dir in $pl_path; do
     2747  test -z "$pl_dir" && pl_dir=.
     2748  if test -x $pl_dir/perl; then
     2749    success="yes"
     2750    break
     2751  fi
     2752done
     2753IFS="$pl_save_ifs"
     2754
     2755if test $success = "yes"; then
     2756try=`perl configtest.pl` || try="0"
     2757try=`expr $try \> 5.000`
     2758if test $try = "1"; then
     2759echo "$ac_t"""yes"" 1>&6
     2760else
     2761success="no"
     2762fi
     2763fi
     2764
     2765if test $success = "no"; then
     2766echo "$ac_t"""no"" 1>&6
     2767{ echo "configure: error: "Perl 5 not available - cannot install"" 1>&2; exit 1; }
     2768fi
     2769
     2770success=no
     2771echo $ac_n "checking "whether STL library has known faults"""... $ac_c" 1>&6
     2772echo "configure:2773: checking "whether STL library has known faults"" >&5
     2773
     2774cat > conftest.$ac_ext <<EOF
     2775#line 2776 "configure"
     2776#include "confdefs.h"
     2777#include <vector>
     2778
     2779int main() {
     2780
     2781; return 0; }
     2782EOF
     2783if { (eval echo configure:2784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2784  rm -rf conftest*
     2785  success=yes
     2786else
     2787  echo "configure: failed program was:" >&5
     2788  cat conftest.$ac_ext >&5
     2789fi
     2790rm -f conftest*
     2791
     2792if test $success = "no"; then
     2793cat > conftest.$ac_ext <<EOF
     2794#line 2795 "configure"
     2795#include "confdefs.h"
     2796#include <vector.h>
     2797
     2798int main() {
     2799
     2800; return 0; }
     2801EOF
     2802if { (eval echo configure:2803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2803  rm -rf conftest*
     2804  success="yes"
     2805else
     2806  echo "configure: failed program was:" >&5
     2807  cat conftest.$ac_ext >&5
     2808fi
     2809rm -f conftest*
     2810fi
     2811
     2812if test $success = "no"; then
     2813cat > conftest.$ac_ext <<EOF
     2814#line 2815 "configure"
     2815#include "confdefs.h"
     2816#include <ospace\\std\\vector>
     2817
     2818int main() {
     2819
     2820; return 0; }
     2821EOF
     2822if { (eval echo configure:2823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2823  rm -rf conftest*
     2824  success="yes"
     2825else
     2826  echo "configure: failed program was:" >&5
     2827  cat conftest.$ac_ext >&5
     2828fi
     2829rm -f conftest*
     2830fi
     2831
     2832if test $success = yes; then
     2833echo "$ac_t"""no"" 1>&6
     2834else
     2835echo "$ac_t"""yes"" 1>&6
     2836{ echo "configure: error: "STL Broken - Obtain newer version of GNU C Compiler"" 1>&2; exit 1; }
     2837fi
     2838
     2839gsdlos=`uname | tr A-Z a-z`
     2840
     2841
     2842echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
     2843echo "configure:2844: checking for HP-UX needing gmalloc" >&5
     2844if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
     2845  echo "$ac_t""yes" 1>&6
     2846  LIBOBJS="$LIBOBJS gmalloc.o"
     2847  cat >> confdefs.h <<\EOF
     2848#define HAVE_VALLOC 1
     2849EOF
     2850
     2851else
     2852  echo "$ac_t""no" 1>&6
     2853  for ac_func in valloc
     2854do
     2855echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2856echo "configure:2857: checking for $ac_func" >&5
     2857if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
     2858  echo $ac_n "(cached) $ac_c" 1>&6
     2859else
     2860  cat > conftest.$ac_ext <<EOF
     2861#line 2862 "configure"
     2862#include "confdefs.h"
     2863/* System header to define __stub macros and hopefully few prototypes,
     2864    which can conflict with char $ac_func(); below.  */
     2865#include <assert.h>
     2866/* Override any gcc2 internal prototype to avoid an error.  */
     2867#ifdef __cplusplus
     2868extern "C"
     2869#endif
     2870/* We use char because int might match the return type of a gcc2
     2871    builtin and then its argument prototype would still apply.  */
     2872char $ac_func();
     2873
     2874int main() {
     2875
     2876/* The GNU C library defines this for functions which it implements
     2877    to always fail with ENOSYS.  Some functions are actually named
     2878    something starting with __ and the normal name is an alias.  */
     2879#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
     2880choke me
     2881#else
     2882$ac_func();
     2883#endif
     2884
     2885; return 0; }
     2886EOF
     2887if { (eval echo configure:2888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2888  rm -rf conftest*
     2889  eval "ac_cv_func_$ac_func=yes"
     2890else
     2891  echo "configure: failed program was:" >&5
     2892  cat conftest.$ac_ext >&5
     2893  rm -rf conftest*
     2894  eval "ac_cv_func_$ac_func=no"
     2895fi
     2896rm -f conftest*
     2897fi
     2898
     2899if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
     2900  echo "$ac_t""yes" 1>&6
     2901    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     2902  cat >> confdefs.h <<EOF
     2903#define $ac_tr_func 1
     2904EOF
     2905 
     2906else
     2907  echo "$ac_t""no" 1>&6
     2908fi
     2909done
     2910
     2911fi
     2912
     2913fp_WITH_DMALLOC
     2914fp_WITH_REGEX
     2915
     2916# ---------------------------------------------------------------------------
     2917if test "$ac_cv_func_alloca" = 'no'; then
     2918  LIBOBJS="$LIBOBJS xmalloc.o error.o"
     2919fi
     2920
     2921
     2922# ---------------------------------------------------------------------------
    16942923
    16952924trap '' 1 2 15
     
    17562985trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
    17572986
    1758 # Transform confdefs.h into DEFS.
    1759 # Protect against shell expansion while executing Makefile rules.
    1760 # Protect against Makefile macro expansion.
    1761 cat > conftest.defs <<\EOF
    1762 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
    1763 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
    1764 s%\[%\\&%g
    1765 s%\]%\\&%g
    1766 s%\$%$$%g
    1767 EOF
    1768 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
    1769 rm -f conftest.defs
    1770 
     2987DEFS=-DHAVE_CONFIG_H
    17712988
    17722989# Without the "./", some shells look in PATH for config.status.
     
    18053022ac_given_srcdir=$srcdir
    18063023
    1807 trap 'rm -fr `echo "src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile src/db2txt/Makefile lib/Makefile collect/cstr/src/recpt/Makefile collect/niupepa/src/recpt/Makefile Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
     3024trap 'rm -fr `echo "packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile
     3025          packages/mg/src/scripts/Makefile packages/mg/lib/Makefile
     3026          src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile
     3027          src/db2txt/Makefile lib/Makefile collect/cstr/src/recpt/Makefile
     3028          collect/niupepa/src/recpt/Makefile Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
    18083029EOF
    18093030cat >> $CONFIG_STATUS <<EOF
     
    18423063s%@CC@%$CC%g
    18433064s%@CXX@%$CXX%g
     3065s%@AWK@%$AWK%g
     3066s%@YACC@%$YACC%g
    18443067s%@LN_S@%$LN_S%g
    18453068s%@SET_MAKE@%$SET_MAKE%g
    18463069s%@RANLIB@%$RANLIB%g
    18473070s%@CPP@%$CPP%g
     3071s%@ALLOCA@%$ALLOCA%g
     3072s%@LIBOBJS@%$LIBOBJS%g
    18483073s%@gsdlos@%$gsdlos%g
    18493074
     
    18883113cat >> $CONFIG_STATUS <<EOF
    18893114
    1890 CONFIG_FILES=\${CONFIG_FILES-"src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile src/db2txt/Makefile lib/Makefile collect/cstr/src/recpt/Makefile collect/niupepa/src/recpt/Makefile Makefile"}
     3115CONFIG_FILES=\${CONFIG_FILES-"packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile
     3116          packages/mg/src/scripts/Makefile packages/mg/lib/Makefile
     3117          src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile
     3118          src/db2txt/Makefile lib/Makefile collect/cstr/src/recpt/Makefile
     3119          collect/niupepa/src/recpt/Makefile Makefile"}
    18913120EOF
    18923121cat >> $CONFIG_STATUS <<\EOF
     
    19423171rm -f conftest.s*
    19433172
     3173# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
     3174# NAME is the cpp macro being defined and VALUE is the value it is being given.
     3175#
     3176# ac_d sets the value in "#define NAME VALUE" lines.
     3177ac_dA='s%^\([   ]*\)#\([    ]*define[   ][  ]*\)'
     3178ac_dB='\([  ][  ]*\)[^  ]*%\1#\2'
     3179ac_dC='\3'
     3180ac_dD='%g'
     3181# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
     3182ac_uA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
     3183ac_uB='\([  ]\)%\1#\2define\3'
     3184ac_uC=' '
     3185ac_uD='\4%g'
     3186# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
     3187ac_eA='s%^\([   ]*\)#\([    ]*\)undef\([    ][  ]*\)'
     3188ac_eB='$%\1#\2define\3'
     3189ac_eC=' '
     3190ac_eD='%g'
     3191
     3192if test "${CONFIG_HEADERS+set}" != set; then
     3193EOF
     3194cat >> $CONFIG_STATUS <<EOF
     3195  CONFIG_HEADERS="config.h"
     3196EOF
     3197cat >> $CONFIG_STATUS <<\EOF
     3198fi
     3199for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
     3200  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
     3201  case "$ac_file" in
     3202  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
     3203       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
     3204  *) ac_file_in="${ac_file}.in" ;;
     3205  esac
     3206
     3207  echo creating $ac_file
     3208
     3209  rm -f conftest.frag conftest.in conftest.out
     3210  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
     3211  cat $ac_file_inputs > conftest.in
     3212
     3213EOF
     3214
     3215# Transform confdefs.h into a sed script conftest.vals that substitutes
     3216# the proper values into config.h.in to produce config.h.  And first:
     3217# Protect against being on the right side of a sed subst in config.status.
     3218# Protect against being in an unquoted here document in config.status.
     3219rm -f conftest.vals
     3220cat > conftest.hdr <<\EOF
     3221s/[\\&%]/\\&/g
     3222s%[\\$`]%\\&%g
     3223s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
     3224s%ac_d%ac_u%gp
     3225s%ac_u%ac_e%gp
     3226EOF
     3227sed -n -f conftest.hdr confdefs.h > conftest.vals
     3228rm -f conftest.hdr
     3229
     3230# This sed command replaces #undef with comments.  This is necessary, for
     3231# example, in the case of _POSIX_SOURCE, which is predefined and required
     3232# on some systems where configure will not decide to define it.
     3233cat >> conftest.vals <<\EOF
     3234s%^[    ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
     3235EOF
     3236
     3237# Break up conftest.vals because some shells have a limit on
     3238# the size of here documents, and old seds have small limits too.
     3239
     3240rm -f conftest.tail
     3241while :
     3242do
     3243  ac_lines=`grep -c . conftest.vals`
     3244  # grep -c gives empty output for an empty file on some AIX systems.
     3245  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
     3246  # Write a limited-size here document to conftest.frag.
     3247  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
     3248  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
     3249  echo 'CEOF
     3250  sed -f conftest.frag conftest.in > conftest.out
     3251  rm -f conftest.in
     3252  mv conftest.out conftest.in
     3253' >> $CONFIG_STATUS
     3254  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
     3255  rm -f conftest.vals
     3256  mv conftest.tail conftest.vals
     3257done
     3258rm -f conftest.vals
     3259
     3260cat >> $CONFIG_STATUS <<\EOF
     3261  rm -f conftest.frag conftest.h
     3262  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
     3263  cat conftest.in >> conftest.h
     3264  rm -f conftest.in
     3265  if cmp -s $ac_file conftest.h 2>/dev/null; then
     3266    echo "$ac_file is unchanged"
     3267    rm -f conftest.h
     3268  else
     3269    # Remove last slash and all that follows it.  Not all systems have dirname.
     3270      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
     3271      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
     3272      # The file is in a subdirectory.
     3273      test ! -d "$ac_dir" && mkdir "$ac_dir"
     3274    fi
     3275    rm -f $ac_file
     3276    mv conftest.h $ac_file
     3277  fi
     3278fi; done
     3279
    19443280EOF
    19453281cat >> $CONFIG_STATUS <<EOF
Note: See TracChangeset for help on using the changeset viewer.