Changeset 687
- Timestamp:
- 1999-10-15T15:50:50+13:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/configure
r681 r687 523 523 524 524 525 if test "$program_transform_name" = s,x,x,; then 526 program_transform_name= 527 else 528 # Double any \ or $. echo might interpret backslashes. 529 cat <<\EOF_SED > conftestsed 530 s,\\,\\\\,g; s,\$,$$,g 531 EOF_SED 532 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 533 rm -f conftestsed 534 fi 535 test "$program_prefix" != NONE && 536 program_transform_name="s,^,${program_prefix},; $program_transform_name" 537 # Use a double $ so make ignores it. 538 test "$program_suffix" != NONE && 539 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 540 541 # sed with no file args requires a program. 542 test "$program_transform_name" = "" && program_transform_name="s,x,x," 543 544 525 545 PACKAGE=gsdl 526 546 VERSION=2.1 … … 551 571 set dummy gcc; ac_word=$2 552 572 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 553 echo "configure:5 54: checking for $ac_word" >&5573 echo "configure:574: checking for $ac_word" >&5 554 574 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 555 575 echo $ac_n "(cached) $ac_c" 1>&6 … … 581 601 set dummy cc; ac_word=$2 582 602 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 583 echo "configure: 584: checking for $ac_word" >&5603 echo "configure:604: checking for $ac_word" >&5 584 604 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 585 605 echo $ac_n "(cached) $ac_c" 1>&6 … … 632 652 set dummy cl; ac_word=$2 633 653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 634 echo "configure:6 35: checking for $ac_word" >&5654 echo "configure:655: checking for $ac_word" >&5 635 655 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 636 656 echo $ac_n "(cached) $ac_c" 1>&6 … … 664 684 665 685 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 666 echo "configure:6 67: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5686 echo "configure:687: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 667 687 668 688 ac_ext=c … … 675 695 cat > conftest.$ac_ext << EOF 676 696 677 #line 6 78 "configure"697 #line 698 "configure" 678 698 #include "confdefs.h" 679 699 680 700 main(){return(0);} 681 701 EOF 682 if { (eval echo configure: 683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then702 if { (eval echo configure:703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 683 703 ac_cv_prog_cc_works=yes 684 704 # If we can't run a trivial program, we are probably using a cross compiler. … … 706 726 fi 707 727 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 708 echo "configure:7 09: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5728 echo "configure:729: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 709 729 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 710 730 cross_compiling=$ac_cv_prog_cc_cross 711 731 712 732 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 713 echo "configure:7 14: checking whether we are using GNU C" >&5733 echo "configure:734: checking whether we are using GNU C" >&5 714 734 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 715 735 echo $ac_n "(cached) $ac_c" 1>&6 … … 720 740 #endif 721 741 EOF 722 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7 23: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then742 if { 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 723 743 ac_cv_prog_gcc=yes 724 744 else … … 739 759 CFLAGS= 740 760 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 741 echo "configure:7 42: checking whether ${CC-cc} accepts -g" >&5761 echo "configure:762: checking whether ${CC-cc} accepts -g" >&5 742 762 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 743 763 echo $ac_n "(cached) $ac_c" 1>&6 … … 775 795 set dummy $ac_prog; ac_word=$2 776 796 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 777 echo "configure:7 78: checking for $ac_word" >&5797 echo "configure:798: checking for $ac_word" >&5 778 798 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 779 799 echo $ac_n "(cached) $ac_c" 1>&6 … … 807 827 808 828 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 809 echo "configure:8 10: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5829 echo "configure:830: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 810 830 811 831 ac_ext=C … … 818 838 cat > conftest.$ac_ext << EOF 819 839 820 #line 8 21 "configure"840 #line 841 "configure" 821 841 #include "confdefs.h" 822 842 823 843 int main(){return(0);} 824 844 EOF 825 if { (eval echo configure:8 26: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then845 if { (eval echo configure:846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 826 846 ac_cv_prog_cxx_works=yes 827 847 # If we can't run a trivial program, we are probably using a cross compiler. … … 849 869 fi 850 870 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 851 echo "configure:8 52: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5871 echo "configure:872: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 852 872 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 853 873 cross_compiling=$ac_cv_prog_cxx_cross 854 874 855 875 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 856 echo "configure:8 57: checking whether we are using GNU C++" >&5876 echo "configure:877: checking whether we are using GNU C++" >&5 857 877 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 858 878 echo $ac_n "(cached) $ac_c" 1>&6 … … 863 883 #endif 864 884 EOF 865 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8 66: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then885 if { 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 866 886 ac_cv_prog_gxx=yes 867 887 else … … 882 902 CXXFLAGS= 883 903 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 884 echo "configure: 885: checking whether ${CXX-g++} accepts -g" >&5904 echo "configure:905: checking whether ${CXX-g++} accepts -g" >&5 885 905 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 886 906 echo $ac_n "(cached) $ac_c" 1>&6 … … 913 933 fi 914 934 935 for ac_prog in mawk gawk nawk awk 936 do 937 # Extract the first word of "$ac_prog", so it can be a program name with args. 938 set dummy $ac_prog; ac_word=$2 939 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 940 echo "configure:941: checking for $ac_word" >&5 941 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then 942 echo $ac_n "(cached) $ac_c" 1>&6 943 else 944 if test -n "$AWK"; then 945 ac_cv_prog_AWK="$AWK" # Let the user override the test. 946 else 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" 957 fi 958 fi 959 AWK="$ac_cv_prog_AWK" 960 if test -n "$AWK"; then 961 echo "$ac_t""$AWK" 1>&6 962 else 963 echo "$ac_t""no" 1>&6 964 fi 965 966 test -n "$AWK" && break 967 done 968 969 for ac_prog in 'bison -y' byacc 970 do 971 # Extract the first word of "$ac_prog", so it can be a program name with args. 972 set dummy $ac_prog; ac_word=$2 973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 974 echo "configure:975: checking for $ac_word" >&5 975 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 976 echo $ac_n "(cached) $ac_c" 1>&6 977 else 978 if test -n "$YACC"; then 979 ac_cv_prog_YACC="$YACC" # Let the user override the test. 980 else 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" 991 fi 992 fi 993 YACC="$ac_cv_prog_YACC" 994 if test -n "$YACC"; then 995 echo "$ac_t""$YACC" 1>&6 996 else 997 echo "$ac_t""no" 1>&6 998 fi 999 1000 test -n "$YACC" && break 1001 done 1002 test -n "$YACC" || YACC="yacc" 1003 915 1004 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 916 echo "configure: 917: checking whether ln -s works" >&51005 echo "configure:1006: checking whether ln -s works" >&5 917 1006 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 918 1007 echo $ac_n "(cached) $ac_c" 1>&6 … … 935 1024 936 1025 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 937 echo "configure: 938: checking whether ${MAKE-make} sets \${MAKE}" >&51026 echo "configure:1027: checking whether ${MAKE-make} sets \${MAKE}" >&5 938 1027 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 939 1028 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then … … 964 1053 set dummy ranlib; ac_word=$2 965 1054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 966 echo "configure: 967: checking for $ac_word" >&51055 echo "configure:1056: checking for $ac_word" >&5 967 1056 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 968 1057 echo $ac_n "(cached) $ac_c" 1>&6 … … 992 1081 993 1082 994 echo $ac_n "checking for main in -lg""... $ac_c" 1>&6995 echo "configure:996: checking for main in -lg" >&5996 ac_lib_var=`echo g'_'main | sed 'y%./+-%__p_%'`997 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then998 echo $ac_n "(cached) $ac_c" 1>&6999 else1000 ac_save_LIBS="$LIBS"1001 LIBS="-lg $LIBS"1002 cat > conftest.$ac_ext <<EOF1003 #line 1004 "configure"1004 #include "confdefs.h"1005 1006 int main() {1007 main()1008 ; return 0; }1009 EOF1010 if { (eval echo configure:1011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1011 rm -rf conftest*1012 eval "ac_cv_lib_$ac_lib_var=yes"1013 else1014 echo "configure: failed program was:" >&51015 cat conftest.$ac_ext >&51016 rm -rf conftest*1017 eval "ac_cv_lib_$ac_lib_var=no"1018 fi1019 rm -f conftest*1020 LIBS="$ac_save_LIBS"1021 1022 fi1023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then1024 echo "$ac_t""yes" 1>&61025 ac_tr_lib=HAVE_LIB`echo g | sed -e 's/[^a-zA-Z0-9_]/_/g' \1026 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`1027 cat >> confdefs.h <<EOF1028 #define $ac_tr_lib 11029 EOF1030 1031 LIBS="-lg $LIBS"1032 1033 else1034 echo "$ac_t""no" 1>&61035 fi1036 1037 echo $ac_n "checking for main in -lgdbm""... $ac_c" 1>&61038 echo "configure:1039: checking for main in -lgdbm" >&51039 ac_lib_var=`echo gdbm'_'main | sed 'y%./+-%__p_%'`1040 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then1041 echo $ac_n "(cached) $ac_c" 1>&61042 else1043 ac_save_LIBS="$LIBS"1044 LIBS="-lgdbm $LIBS"1045 cat > conftest.$ac_ext <<EOF1046 #line 1047 "configure"1047 #include "confdefs.h"1048 1049 int main() {1050 main()1051 ; return 0; }1052 EOF1053 if { (eval echo configure:1054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1054 rm -rf conftest*1055 eval "ac_cv_lib_$ac_lib_var=yes"1056 else1057 echo "configure: failed program was:" >&51058 cat conftest.$ac_ext >&51059 rm -rf conftest*1060 eval "ac_cv_lib_$ac_lib_var=no"1061 fi1062 rm -f conftest*1063 LIBS="$ac_save_LIBS"1064 1065 fi1066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then1067 echo "$ac_t""yes" 1>&61068 ac_tr_lib=HAVE_LIB`echo gdbm | sed -e 's/[^a-zA-Z0-9_]/_/g' \1069 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`1070 cat >> confdefs.h <<EOF1071 #define $ac_tr_lib 11072 EOF1073 1074 LIBS="-lgdbm $LIBS"1075 1076 else1077 echo "$ac_t""no" 1>&61078 fi1079 1080 echo $ac_n "checking for main in -lm""... $ac_c" 1>&61081 echo "configure:1082: checking for main in -lm" >&51082 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`1083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then1084 echo $ac_n "(cached) $ac_c" 1>&61085 else1086 ac_save_LIBS="$LIBS"1087 LIBS="-lm $LIBS"1088 cat > conftest.$ac_ext <<EOF1089 #line 1090 "configure"1090 #include "confdefs.h"1091 1092 int main() {1093 main()1094 ; return 0; }1095 EOF1096 if { (eval echo configure:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1097 rm -rf conftest*1098 eval "ac_cv_lib_$ac_lib_var=yes"1099 else1100 echo "configure: failed program was:" >&51101 cat conftest.$ac_ext >&51102 rm -rf conftest*1103 eval "ac_cv_lib_$ac_lib_var=no"1104 fi1105 rm -f conftest*1106 LIBS="$ac_save_LIBS"1107 1108 fi1109 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then1110 echo "$ac_t""yes" 1>&61111 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \1112 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`1113 cat >> confdefs.h <<EOF1114 #define $ac_tr_lib 11115 EOF1116 1117 LIBS="-lm $LIBS"1118 1119 else1120 echo "$ac_t""no" 1>&61121 fi1122 1123 echo $ac_n "checking for main in -lstdc""... $ac_c" 1>&61124 echo "configure:1125: checking for main in -lstdc" >&51125 ac_lib_var=`echo stdc'_'main | sed 'y%./+-%__p_%'`1126 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then1127 echo $ac_n "(cached) $ac_c" 1>&61128 else1129 ac_save_LIBS="$LIBS"1130 LIBS="-lstdc $LIBS"1131 cat > conftest.$ac_ext <<EOF1132 #line 1133 "configure"1133 #include "confdefs.h"1134 1135 int main() {1136 main()1137 ; return 0; }1138 EOF1139 if { (eval echo configure:1140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1140 rm -rf conftest*1141 eval "ac_cv_lib_$ac_lib_var=yes"1142 else1143 echo "configure: failed program was:" >&51144 cat conftest.$ac_ext >&51145 rm -rf conftest*1146 eval "ac_cv_lib_$ac_lib_var=no"1147 fi1148 rm -f conftest*1149 LIBS="$ac_save_LIBS"1150 1151 fi1152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then1153 echo "$ac_t""yes" 1>&61154 ac_tr_lib=HAVE_LIB`echo stdc | sed -e 's/[^a-zA-Z0-9_]/_/g' \1155 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`1156 cat >> confdefs.h <<EOF1157 #define $ac_tr_lib 11158 EOF1159 1160 LIBS="-lstdc $LIBS"1161 1162 else1163 echo "$ac_t""no" 1>&61164 fi1165 1166 1083 1167 1084 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1168 echo "configure:1 169: checking how to run the C preprocessor" >&51085 echo "configure:1086: checking how to run the C preprocessor" >&5 1169 1086 # On Suns, sometimes $CPP names a directory. 1170 1087 if test -n "$CPP" && test -d "$CPP"; then … … 1181 1098 # not just through cpp. 1182 1099 cat > conftest.$ac_ext <<EOF 1183 #line 11 84"configure"1100 #line 1101 "configure" 1184 1101 #include "confdefs.h" 1185 1102 #include <assert.h> … … 1187 1104 EOF 1188 1105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1189 { (eval echo configure:11 90: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1106 { (eval echo configure:1107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1190 1107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1191 1108 if test -z "$ac_err"; then … … 1198 1115 CPP="${CC-cc} -E -traditional-cpp" 1199 1116 cat > conftest.$ac_ext <<EOF 1200 #line 1 201"configure"1117 #line 1118 "configure" 1201 1118 #include "confdefs.h" 1202 1119 #include <assert.h> … … 1204 1121 EOF 1205 1122 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1206 { (eval echo configure:1 207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1123 { (eval echo configure:1124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1207 1124 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1208 1125 if test -z "$ac_err"; then … … 1215 1132 CPP="${CC-cc} -nologo -E" 1216 1133 cat > conftest.$ac_ext <<EOF 1217 #line 1 218"configure"1134 #line 1135 "configure" 1218 1135 #include "confdefs.h" 1219 1136 #include <assert.h> … … 1221 1138 EOF 1222 1139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1223 { (eval echo configure:1 224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1140 { (eval echo configure:1141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1224 1141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1225 1142 if test -z "$ac_err"; then … … 1245 1162 echo "$ac_t""$CPP" 1>&6 1246 1163 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 1164 echo $ac_n "checking for AIX""... $ac_c" 1>&6 1165 echo "configure:1166: checking for AIX" >&5 1166 cat > conftest.$ac_ext <<EOF 1167 #line 1168 "configure" 1168 #include "confdefs.h" 1169 #ifdef _AIX 1170 yes 1171 #endif 1172 1173 EOF 1174 if (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 1179 EOF 1180 1181 else 1182 rm -rf conftest* 1183 echo "$ac_t""no" 1>&6 1184 fi 1185 rm -f conftest* 1186 1187 1188 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 1189 echo "configure:1190: checking for POSIXized ISC" >&5 1190 if test -d /etc/conf/kconfig.d && 1191 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 1192 then 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 1197 EOF 1198 1199 if test "$GCC" = yes; then 1200 CC="$CC -posix" 1201 else 1202 CC="$CC -Xp" 1203 fi 1204 else 1205 echo "$ac_t""no" 1>&6 1206 ISC= 1207 fi 1208 1209 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` 1210 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 1211 echo "configure:1212: checking for minix/config.h" >&5 1212 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1250 1213 echo $ac_n "(cached) $ac_c" 1>&6 1251 1214 else 1252 1215 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> 1259 1219 EOF 1260 1220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1261 { (eval echo configure:12 62: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1221 { (eval echo configure:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1262 1222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1263 1223 if test -z "$ac_err"; then 1264 1224 rm -rf conftest* 1265 ac_cv_header_stdc=yes1266 else1267 echo "$ac_err" >&51268 echo "configure: failed program was:" >&51269 cat conftest.$ac_ext >&51270 rm -rf conftest*1271 ac_cv_header_stdc=no1272 fi1273 rm -f conftest*1274 1275 if test $ac_cv_header_stdc = yes; then1276 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.1277 cat > conftest.$ac_ext <<EOF1278 #line 1279 "configure"1279 #include "confdefs.h"1280 #include <string.h>1281 EOF1282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |1283 egrep "memchr" >/dev/null 2>&1; then1284 :1285 else1286 rm -rf conftest*1287 ac_cv_header_stdc=no1288 fi1289 rm -f conftest*1290 1291 fi1292 1293 if test $ac_cv_header_stdc = yes; then1294 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.1295 cat > conftest.$ac_ext <<EOF1296 #line 1297 "configure"1297 #include "confdefs.h"1298 #include <stdlib.h>1299 EOF1300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |1301 egrep "free" >/dev/null 2>&1; then1302 :1303 else1304 rm -rf conftest*1305 ac_cv_header_stdc=no1306 fi1307 rm -f conftest*1308 1309 fi1310 1311 if test $ac_cv_header_stdc = yes; then1312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.1313 if test "$cross_compiling" = yes; then1314 :1315 else1316 cat > conftest.$ac_ext <<EOF1317 #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 EOF1328 if { (eval echo configure:1329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1329 then1330 :1331 else1332 echo "configure: failed program was:" >&51333 cat conftest.$ac_ext >&51334 rm -fr conftest*1335 ac_cv_header_stdc=no1336 fi1337 rm -fr conftest*1338 fi1339 1340 fi1341 fi1342 1343 echo "$ac_t""$ac_cv_header_stdc" 1>&61344 if test $ac_cv_header_stdc = yes; then1345 cat >> confdefs.h <<\EOF1346 #define STDC_HEADERS 11347 EOF1348 1349 fi1350 1351 for ac_hdr in fcntl.h1352 do1353 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`1354 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&61355 echo "configure:1356: checking for $ac_hdr" >&51356 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then1357 echo $ac_n "(cached) $ac_c" 1>&61358 else1359 cat > conftest.$ac_ext <<EOF1360 #line 1361 "configure"1361 #include "confdefs.h"1362 #include <$ac_hdr>1363 EOF1364 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"; then1368 rm -rf conftest*1369 1225 eval "ac_cv_header_$ac_safe=yes" 1370 1226 else … … 1379 1235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1380 1236 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 1386 1238 else 1387 1239 echo "$ac_t""no" 1>&6 1388 fi 1389 done 1390 1391 1240 MINIX= 1241 fi 1242 1243 if test "$MINIX" = yes; then 1244 cat >> confdefs.h <<\EOF 1245 #define _POSIX_SOURCE 1 1246 EOF 1247 1248 cat >> confdefs.h <<\EOF 1249 #define _POSIX_1_SOURCE 2 1250 EOF 1251 1252 cat >> confdefs.h <<\EOF 1253 #define _MINIX 1 1254 EOF 1255 1256 fi 1257 1258 fp_C_PROTOTYPES 1392 1259 echo $ac_n "checking for working const""... $ac_c" 1>&6 1393 echo "configure:1 394: checking for working const" >&51260 echo "configure:1261: checking for working const" >&5 1394 1261 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1395 1262 echo $ac_n "(cached) $ac_c" 1>&6 1396 1263 else 1397 1264 cat > conftest.$ac_ext <<EOF 1398 #line 1 399"configure"1265 #line 1266 "configure" 1399 1266 #include "confdefs.h" 1400 1267 … … 1445 1312 ; return 0; } 1446 1313 EOF 1447 if { (eval echo configure:1 448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1314 if { (eval echo configure:1315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1448 1315 rm -rf conftest* 1449 1316 ac_cv_c_const=yes … … 1465 1332 fi 1466 1333 1334 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1335 echo "configure:1336: checking for ANSI C header files" >&5 1336 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1337 echo $ac_n "(cached) $ac_c" 1>&6 1338 else 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> 1346 EOF 1347 ac_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; } 1349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1350 if test -z "$ac_err"; then 1351 rm -rf conftest* 1352 ac_cv_header_stdc=yes 1353 else 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 1359 fi 1360 rm -f conftest* 1361 1362 if test $ac_cv_header_stdc = yes; then 1363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1364 cat > conftest.$ac_ext <<EOF 1365 #line 1366 "configure" 1366 #include "confdefs.h" 1367 #include <string.h> 1368 EOF 1369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1370 egrep "memchr" >/dev/null 2>&1; then 1371 : 1372 else 1373 rm -rf conftest* 1374 ac_cv_header_stdc=no 1375 fi 1376 rm -f conftest* 1377 1378 fi 1379 1380 if test $ac_cv_header_stdc = yes; then 1381 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1382 cat > conftest.$ac_ext <<EOF 1383 #line 1384 "configure" 1384 #include "confdefs.h" 1385 #include <stdlib.h> 1386 EOF 1387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1388 egrep "free" >/dev/null 2>&1; then 1389 : 1390 else 1391 rm -rf conftest* 1392 ac_cv_header_stdc=no 1393 fi 1394 rm -f conftest* 1395 1396 fi 1397 1398 if test $ac_cv_header_stdc = yes; then 1399 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1400 if test "$cross_compiling" = yes; then 1401 : 1402 else 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))) 1410 int main () { int i; for (i = 0; i < 256; i++) 1411 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1412 exit (0); } 1413 1414 EOF 1415 if { (eval echo configure:1416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1416 then 1417 : 1418 else 1419 echo "configure: failed program was:" >&5 1420 cat conftest.$ac_ext >&5 1421 rm -fr conftest* 1422 ac_cv_header_stdc=no 1423 fi 1424 rm -fr conftest* 1425 fi 1426 1427 fi 1428 fi 1429 1430 echo "$ac_t""$ac_cv_header_stdc" 1>&6 1431 if test $ac_cv_header_stdc = yes; then 1432 cat >> confdefs.h <<\EOF 1433 #define STDC_HEADERS 1 1434 EOF 1435 1436 fi 1437 1438 echo $ac_n "checking for off_t""... $ac_c" 1>&6 1439 echo "configure:1440: checking for off_t" >&5 1440 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 1441 echo $ac_n "(cached) $ac_c" 1>&6 1442 else 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 1451 EOF 1452 if (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 1456 else 1457 rm -rf conftest* 1458 ac_cv_type_off_t=no 1459 fi 1460 rm -f conftest* 1461 1462 fi 1463 echo "$ac_t""$ac_cv_type_off_t" 1>&6 1464 if test $ac_cv_type_off_t = no; then 1465 cat >> confdefs.h <<\EOF 1466 #define off_t long 1467 EOF 1468 1469 fi 1470 1471 echo $ac_n "checking for size_t""... $ac_c" 1>&6 1472 echo "configure:1473: checking for size_t" >&5 1473 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 1474 echo $ac_n "(cached) $ac_c" 1>&6 1475 else 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 1484 EOF 1485 if (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 1489 else 1490 rm -rf conftest* 1491 ac_cv_type_size_t=no 1492 fi 1493 rm -f conftest* 1494 1495 fi 1496 echo "$ac_t""$ac_cv_type_size_t" 1>&6 1497 if test $ac_cv_type_size_t = no; then 1498 cat >> confdefs.h <<\EOF 1499 #define size_t unsigned 1500 EOF 1501 1502 fi 1503 1467 1504 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 1468 echo "configure:1 469: checking whether time.h and sys/time.h may both be included" >&51505 echo "configure:1506: checking whether time.h and sys/time.h may both be included" >&5 1469 1506 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 1470 1507 echo $ac_n "(cached) $ac_c" 1>&6 1471 1508 else 1472 1509 cat > conftest.$ac_ext <<EOF 1473 #line 1 474"configure"1510 #line 1511 "configure" 1474 1511 #include "confdefs.h" 1475 1512 #include <sys/types.h> … … 1480 1517 ; return 0; } 1481 1518 EOF 1482 if { (eval echo configure:1 483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1519 if { (eval echo configure:1520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1483 1520 rm -rf conftest* 1484 1521 ac_cv_header_time=yes … … 1500 1537 fi 1501 1538 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 1539 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 1540 echo "configure:1541: checking whether struct tm is in sys/time.h or time.h" >&5 1541 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 1542 echo $ac_n "(cached) $ac_c" 1>&6 1543 else 1544 cat > conftest.$ac_ext <<EOF 1545 #line 1546 "configure" 1546 #include "confdefs.h" 1547 #include <sys/types.h> 1548 #include <time.h> 1549 int main() { 1550 struct tm *tp; tp->tm_sec; 1551 ; return 0; } 1552 EOF 1553 if { (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 1556 else 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 1561 fi 1562 rm -f conftest* 1563 fi 1564 1565 echo "$ac_t""$ac_cv_struct_tm" 1>&6 1566 if test $ac_cv_struct_tm = sys/time.h; then 1567 cat >> confdefs.h <<\EOF 1568 #define TM_IN_SYS_TIME 1 1569 EOF 1570 1571 fi 1572 1573 1574 if test "$ac_cv_prog_cc_stdc" = '-Xc'; then 1515 1575 cat > conftest.$ac_ext <<EOF 1516 #line 15 17 "configure"1517 #include "confdefs.h" 1518 #include < vector>1576 #line 1577 "configure" 1577 #include "confdefs.h" 1578 #include <stdio.h> 1519 1579 1520 1580 int main() { 1521 1581 FILE *rubbish = popen("yes", "r"); 1522 1582 ; return 0; } 1523 1583 EOF 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 1584 if { (eval echo configure:1585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1585 : 1586 else 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' 1591 fi 1592 rm -f conftest* 1593 fi 1594 1595 1596 echo $ac_n "checking for main in -lg""... $ac_c" 1>&6 1597 echo "configure:1598: checking for main in -lg" >&5 1598 ac_lib_var=`echo g'_'main | sed 'y%./+-%__p_%'` 1599 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1600 echo $ac_n "(cached) $ac_c" 1>&6 1601 else 1602 ac_save_LIBS="$LIBS" 1603 LIBS="-lg $LIBS" 1534 1604 cat > conftest.$ac_ext <<EOF 1535 #line 1536 "configure" 1536 #include "confdefs.h" 1537 #include <vector.h> 1605 #line 1606 "configure" 1606 #include "confdefs.h" 1538 1607 1539 1608 int main() { 1540 1609 main() 1541 1610 ; return 0; } 1542 1611 EOF 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 1612 if { (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" 1615 else 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" 1620 fi 1621 rm -f conftest* 1622 LIBS="$ac_save_LIBS" 1623 1624 fi 1625 if 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 1631 EOF 1632 1633 LIBS="-lg $LIBS" 1634 1635 else 1636 echo "$ac_t""no" 1>&6 1637 fi 1638 1639 echo $ac_n "checking for main in -lgdbm""... $ac_c" 1>&6 1640 echo "configure:1641: checking for main in -lgdbm" >&5 1641 ac_lib_var=`echo gdbm'_'main | sed 'y%./+-%__p_%'` 1642 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1643 echo $ac_n "(cached) $ac_c" 1>&6 1644 else 1645 ac_save_LIBS="$LIBS" 1646 LIBS="-lgdbm $LIBS" 1554 1647 cat > 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" 1558 1650 1559 1651 int main() { 1560 1652 main() 1561 1653 ; return 0; } 1562 1654 EOF 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` 1655 if { (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" 1658 else 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" 1663 fi 1664 rm -f conftest* 1665 LIBS="$ac_save_LIBS" 1666 1667 fi 1668 if 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 1674 EOF 1675 1676 LIBS="-lgdbm $LIBS" 1677 1678 else 1679 echo "$ac_t""no" 1>&6 1680 fi 1681 1682 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 1683 echo "configure:1684: checking for main in -lm" >&5 1684 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` 1685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1686 echo $ac_n "(cached) $ac_c" 1>&6 1687 else 1688 ac_save_LIBS="$LIBS" 1689 LIBS="-lm $LIBS" 1690 cat > conftest.$ac_ext <<EOF 1691 #line 1692 "configure" 1692 #include "confdefs.h" 1693 1694 int main() { 1695 main() 1696 ; return 0; } 1697 EOF 1698 if { (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" 1701 else 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" 1706 fi 1707 rm -f conftest* 1708 LIBS="$ac_save_LIBS" 1709 1710 fi 1711 if 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 1717 EOF 1718 1719 LIBS="-lm $LIBS" 1720 1721 else 1722 echo "$ac_t""no" 1>&6 1723 fi 1724 1725 echo $ac_n "checking for main in -lstdc""... $ac_c" 1>&6 1726 echo "configure:1727: checking for main in -lstdc" >&5 1727 ac_lib_var=`echo stdc'_'main | sed 'y%./+-%__p_%'` 1728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1729 echo $ac_n "(cached) $ac_c" 1>&6 1730 else 1731 ac_save_LIBS="$LIBS" 1732 LIBS="-lstdc $LIBS" 1733 cat > conftest.$ac_ext <<EOF 1734 #line 1735 "configure" 1735 #include "confdefs.h" 1736 1737 int main() { 1738 main() 1739 ; return 0; } 1740 EOF 1741 if { (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" 1744 else 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" 1749 fi 1750 rm -f conftest* 1751 LIBS="$ac_save_LIBS" 1752 1753 fi 1754 if 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 1760 EOF 1761 1762 LIBS="-lstdc $LIBS" 1763 1764 else 1765 echo "$ac_t""no" 1>&6 1766 fi 1767 1768 1769 ac_header_dirent=no 1770 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 1771 do 1772 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1773 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 1774 echo "configure:1775: checking for $ac_hdr that defines DIR" >&5 1775 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 1776 echo $ac_n "(cached) $ac_c" 1>&6 1777 else 1778 cat > conftest.$ac_ext <<EOF 1779 #line 1780 "configure" 1780 #include "confdefs.h" 1781 #include <sys/types.h> 1782 #include <$ac_hdr> 1783 int main() { 1784 DIR *dirp = 0; 1785 ; return 0; } 1786 EOF 1787 if { (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" 1790 else 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" 1795 fi 1796 rm -f conftest* 1797 fi 1798 if 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 1803 EOF 1804 ac_header_dirent=$ac_hdr; break 1805 else 1806 echo "$ac_t""no" 1>&6 1807 fi 1808 done 1809 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 1810 if test $ac_header_dirent = dirent.h; then 1811 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 1812 echo "configure:1813: checking for opendir in -ldir" >&5 1813 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 1814 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1815 echo $ac_n "(cached) $ac_c" 1>&6 1816 else 1817 ac_save_LIBS="$LIBS" 1818 LIBS="-ldir $LIBS" 1819 cat > 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. */ 1825 char opendir(); 1826 1827 int main() { 1828 opendir() 1829 ; return 0; } 1830 EOF 1831 if { (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" 1834 else 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" 1839 fi 1840 rm -f conftest* 1841 LIBS="$ac_save_LIBS" 1842 1843 fi 1844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1845 echo "$ac_t""yes" 1>&6 1846 LIBS="$LIBS -ldir" 1847 else 1848 echo "$ac_t""no" 1>&6 1849 fi 1850 1851 else 1852 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 1853 echo "configure:1854: checking for opendir in -lx" >&5 1854 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 1855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1856 echo $ac_n "(cached) $ac_c" 1>&6 1857 else 1858 ac_save_LIBS="$LIBS" 1859 LIBS="-lx $LIBS" 1860 cat > 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. */ 1866 char opendir(); 1867 1868 int main() { 1869 opendir() 1870 ; return 0; } 1871 EOF 1872 if { (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" 1875 else 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" 1880 fi 1881 rm -f conftest* 1882 LIBS="$ac_save_LIBS" 1883 1884 fi 1885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1886 echo "$ac_t""yes" 1>&6 1887 LIBS="$LIBS -lx" 1888 else 1889 echo "$ac_t""no" 1>&6 1890 fi 1891 1892 fi 1893 1894 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1895 echo "configure:1896: checking for ANSI C header files" >&5 1896 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1897 echo $ac_n "(cached) $ac_c" 1>&6 1898 else 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> 1906 EOF 1907 ac_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; } 1909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1910 if test -z "$ac_err"; then 1911 rm -rf conftest* 1912 ac_cv_header_stdc=yes 1913 else 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 1919 fi 1920 rm -f conftest* 1921 1922 if test $ac_cv_header_stdc = yes; then 1923 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1924 cat > conftest.$ac_ext <<EOF 1925 #line 1926 "configure" 1926 #include "confdefs.h" 1927 #include <string.h> 1928 EOF 1929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1930 egrep "memchr" >/dev/null 2>&1; then 1931 : 1932 else 1933 rm -rf conftest* 1934 ac_cv_header_stdc=no 1935 fi 1936 rm -f conftest* 1937 1938 fi 1939 1940 if test $ac_cv_header_stdc = yes; then 1941 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1942 cat > conftest.$ac_ext <<EOF 1943 #line 1944 "configure" 1944 #include "confdefs.h" 1945 #include <stdlib.h> 1946 EOF 1947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1948 egrep "free" >/dev/null 2>&1; then 1949 : 1950 else 1951 rm -rf conftest* 1952 ac_cv_header_stdc=no 1953 fi 1954 rm -f conftest* 1955 1956 fi 1957 1958 if test $ac_cv_header_stdc = yes; then 1959 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1960 if test "$cross_compiling" = yes; then 1961 : 1962 else 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))) 1970 int main () { int i; for (i = 0; i < 256; i++) 1971 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1972 exit (0); } 1973 1974 EOF 1975 if { (eval echo configure:1976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1976 then 1977 : 1978 else 1979 echo "configure: failed program was:" >&5 1980 cat conftest.$ac_ext >&5 1981 rm -fr conftest* 1982 ac_cv_header_stdc=no 1983 fi 1984 rm -fr conftest* 1985 fi 1986 1987 fi 1988 fi 1989 1990 echo "$ac_t""$ac_cv_header_stdc" 1>&6 1991 if test $ac_cv_header_stdc = yes; then 1992 cat >> confdefs.h <<\EOF 1993 #define STDC_HEADERS 1 1994 EOF 1995 1996 fi 1997 1998 for ac_hdr in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h 1999 do 2000 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2001 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2002 echo "configure:2003: checking for $ac_hdr" >&5 2003 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2004 echo $ac_n "(cached) $ac_c" 1>&6 2005 else 2006 cat > conftest.$ac_ext <<EOF 2007 #line 2008 "configure" 2008 #include "confdefs.h" 2009 #include <$ac_hdr> 2010 EOF 2011 ac_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; } 2013 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2014 if test -z "$ac_err"; then 2015 rm -rf conftest* 2016 eval "ac_cv_header_$ac_safe=yes" 2017 else 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" 2023 fi 2024 rm -f conftest* 2025 fi 2026 if 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 2031 EOF 2032 2033 else 2034 echo "$ac_t""no" 1>&6 2035 fi 2036 done 2037 2038 cat > conftest.$ac_ext <<EOF 2039 #line 2040 "configure" 2040 #include "confdefs.h" 2041 #include <stdio.h> 2042 EOF 2043 if (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 2048 EOF 2049 2050 fi 2051 rm -f conftest* 2052 2053 cat > conftest.$ac_ext <<EOF 2054 #line 2055 "configure" 2055 #include "confdefs.h" 2056 #include <stdio.h> 2057 EOF 2058 if (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 2063 EOF 2064 2065 fi 2066 rm -f conftest* 2067 2068 cat > conftest.$ac_ext <<EOF 2069 #line 2070 "configure" 2070 #include "confdefs.h" 2071 #include <sys/procfs.h> 2072 EOF 2073 if (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 2078 EOF 2079 2080 fi 2081 rm -f conftest* 2082 2083 2084 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 2085 # for constant arguments. Useless! 2086 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 2087 echo "configure:2088: checking for working alloca.h" >&5 2088 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 2089 echo $ac_n "(cached) $ac_c" 1>&6 2090 else 2091 cat > conftest.$ac_ext <<EOF 2092 #line 2093 "configure" 2093 #include "confdefs.h" 2094 #include <alloca.h> 2095 int main() { 2096 char *p = alloca(2 * sizeof(int)); 2097 ; return 0; } 2098 EOF 2099 if { (eval echo configure:2100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2100 rm -rf conftest* 2101 ac_cv_header_alloca_h=yes 2102 else 2103 echo "configure: failed program was:" >&5 2104 cat conftest.$ac_ext >&5 2105 rm -rf conftest* 2106 ac_cv_header_alloca_h=no 2107 fi 2108 rm -f conftest* 2109 fi 2110 2111 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 2112 if test $ac_cv_header_alloca_h = yes; then 2113 cat >> confdefs.h <<\EOF 2114 #define HAVE_ALLOCA_H 1 2115 EOF 2116 2117 fi 2118 2119 echo $ac_n "checking for alloca""... $ac_c" 1>&6 2120 echo "configure:2121: checking for alloca" >&5 2121 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 2122 echo $ac_n "(cached) $ac_c" 1>&6 2123 else 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 */ 2142 char *alloca (); 2143 # endif 2144 # endif 2145 # endif 2146 # endif 2147 #endif 2148 2149 int main() { 2150 char *p = (char *) alloca(1); 2151 ; return 0; } 2152 EOF 2153 if { (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 2156 else 2157 echo "configure: failed program was:" >&5 2158 cat conftest.$ac_ext >&5 2159 rm -rf conftest* 2160 ac_cv_func_alloca_works=no 2161 fi 2162 rm -f conftest* 2163 fi 2164 2165 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 2166 if test $ac_cv_func_alloca_works = yes; then 2167 cat >> confdefs.h <<\EOF 2168 #define HAVE_ALLOCA 1 2169 EOF 2170 2171 fi 2172 2173 if 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 2181 EOF 2182 2183 2184 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 2185 echo "configure:2186: checking whether alloca needs Cray hooks" >&5 2186 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 2187 echo $ac_n "(cached) $ac_c" 1>&6 2188 else 2189 cat > conftest.$ac_ext <<EOF 2190 #line 2191 "configure" 2191 #include "confdefs.h" 2192 #if defined(CRAY) && ! defined(CRAY2) 2193 webecray 2194 #else 2195 wenotbecray 2196 #endif 2197 2198 EOF 2199 if (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 2203 else 2204 rm -rf conftest* 2205 ac_cv_os_cray=no 2206 fi 2207 rm -f conftest* 2208 2209 fi 2210 2211 echo "$ac_t""$ac_cv_os_cray" 1>&6 2212 if test $ac_cv_os_cray = yes; then 2213 for ac_func in _getb67 GETB67 getb67; do 2214 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2215 echo "configure:2216: checking for $ac_func" >&5 2216 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2217 echo $ac_n "(cached) $ac_c" 1>&6 2218 else 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. */ 2228 char $ac_func(); 2229 2230 int 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) 2236 choke me 2237 #else 2238 $ac_func(); 2239 #endif 2240 2241 ; return 0; } 2242 EOF 2243 if { (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" 2246 else 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" 2251 fi 2252 rm -f conftest* 2253 fi 2254 2255 if 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 2259 EOF 2260 2261 break 2262 else 2263 echo "$ac_t""no" 1>&6 2264 fi 2265 2266 done 2267 fi 2268 2269 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 2270 echo "configure:2271: checking stack direction for C alloca" >&5 2271 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 2272 echo $ac_n "(cached) $ac_c" 1>&6 2273 else 2274 if test "$cross_compiling" = yes; then 2275 ac_cv_c_stack_direction=0 2276 else 2277 cat > conftest.$ac_ext <<EOF 2278 #line 2279 "configure" 2279 #include "confdefs.h" 2280 find_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 } 2292 main () 2293 { 2294 exit (find_stack_direction() < 0); 2295 } 2296 EOF 2297 if { (eval echo configure:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2298 then 2299 ac_cv_c_stack_direction=1 2300 else 2301 echo "configure: failed program was:" >&5 2302 cat conftest.$ac_ext >&5 2303 rm -fr conftest* 2304 ac_cv_c_stack_direction=-1 2305 fi 2306 rm -fr conftest* 2307 fi 2308 2309 fi 2310 2311 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 2312 cat >> confdefs.h <<EOF 2313 #define STACK_DIRECTION $ac_cv_c_stack_direction 2314 EOF 2315 2316 fi 2317 2318 if test $ac_cv_prog_gcc = yes; then 2319 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 2320 echo "configure:2321: checking whether ${CC-cc} needs -traditional" >&5 2321 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 2322 echo $ac_n "(cached) $ac_c" 1>&6 2323 else 2324 ac_pattern="Autoconf.*'x'" 2325 cat > conftest.$ac_ext <<EOF 2326 #line 2327 "configure" 2327 #include "confdefs.h" 2328 #include <sgtty.h> 2329 Autoconf TIOCGETP 2330 EOF 2331 if (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 2335 else 2336 rm -rf conftest* 2337 ac_cv_prog_gcc_traditional=no 2338 fi 2339 rm -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> 2347 Autoconf TCGETA 2348 EOF 2349 if (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 2353 fi 2354 rm -f conftest* 2355 2356 fi 2357 fi 2358 2359 echo "$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 2363 fi 2364 2365 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2366 echo "configure:2367: checking return type of signal handlers" >&5 2367 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2368 echo $ac_n "(cached) $ac_c" 1>&6 2369 else 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 2379 extern "C" void (*signal (int, void (*)(int)))(int); 2380 #else 2381 void (*signal ()) (); 2382 #endif 2383 2384 int main() { 2385 int i; 2386 ; return 0; } 2387 EOF 2388 if { (eval echo configure:2389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2389 rm -rf conftest* 2390 ac_cv_type_signal=void 2391 else 2392 echo "configure: failed program was:" >&5 2393 cat conftest.$ac_ext >&5 2394 rm -rf conftest* 2395 ac_cv_type_signal=int 2396 fi 2397 rm -f conftest* 2398 fi 2399 2400 echo "$ac_t""$ac_cv_type_signal" 1>&6 2401 cat >> confdefs.h <<EOF 2402 #define RETSIGTYPE $ac_cv_type_signal 2403 EOF 1581 2404 1582 2405 1583 2406 echo $ac_n "checking for vprintf""... $ac_c" 1>&6 1584 echo "configure: 1585: checking for vprintf" >&52407 echo "configure:2408: checking for vprintf" >&5 1585 2408 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 1586 2409 echo $ac_n "(cached) $ac_c" 1>&6 1587 2410 else 1588 2411 cat > conftest.$ac_ext <<EOF 1589 #line 1590"configure"2412 #line 2413 "configure" 1590 2413 #include "confdefs.h" 1591 2414 /* System header to define __stub macros and hopefully few prototypes, … … 1593 2416 #include <assert.h> 1594 2417 /* Override any gcc2 internal prototype to avoid an error. */ 1595 #ifdef __cplusplus1596 extern "C"1597 #endif1598 2418 /* We use char because int might match the return type of a gcc2 1599 2419 builtin and then its argument prototype would still apply. */ … … 1613 2433 ; return 0; } 1614 2434 EOF 1615 if { (eval echo configure: 1616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2435 if { (eval echo configure:2436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1616 2436 rm -rf conftest* 1617 2437 eval "ac_cv_func_vprintf=yes" … … 1637 2457 if test "$ac_cv_func_vprintf" != yes; then 1638 2458 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 1639 echo "configure: 1640: checking for _doprnt" >&52459 echo "configure:2460: checking for _doprnt" >&5 1640 2460 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 1641 2461 echo $ac_n "(cached) $ac_c" 1>&6 1642 2462 else 1643 2463 cat > conftest.$ac_ext <<EOF 1644 #line 1645 "configure"2464 #line 2465 "configure" 1645 2465 #include "confdefs.h" 1646 2466 /* System header to define __stub macros and hopefully few prototypes, … … 1648 2468 #include <assert.h> 1649 2469 /* Override any gcc2 internal prototype to avoid an error. */ 1650 #ifdef __cplusplus1651 extern "C"1652 #endif1653 2470 /* We use char because int might match the return type of a gcc2 1654 2471 builtin and then its argument prototype would still apply. */ … … 1668 2485 ; return 0; } 1669 2486 EOF 1670 if { (eval echo configure: 1671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2487 if { (eval echo configure:2488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1671 2488 rm -rf conftest* 1672 2489 eval "ac_cv_func__doprnt=yes" … … 1692 2509 fi 1693 2510 2511 for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize 2512 do 2513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2514 echo "configure:2515: checking for $ac_func" >&5 2515 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2516 echo $ac_n "(cached) $ac_c" 1>&6 2517 else 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. */ 2527 char $ac_func(); 2528 2529 int 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) 2535 choke me 2536 #else 2537 $ac_func(); 2538 #endif 2539 2540 ; return 0; } 2541 EOF 2542 if { (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" 2545 else 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" 2550 fi 2551 rm -f conftest* 2552 fi 2553 2554 if 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 2559 EOF 2560 2561 else 2562 echo "$ac_t""no" 1>&6 2563 fi 2564 done 2565 2566 for ac_func in ftruncate strstr strcasecmp 2567 do 2568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2569 echo "configure:2570: checking for $ac_func" >&5 2570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2571 echo $ac_n "(cached) $ac_c" 1>&6 2572 else 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. */ 2582 char $ac_func(); 2583 2584 int 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) 2590 choke me 2591 #else 2592 $ac_func(); 2593 #endif 2594 2595 ; return 0; } 2596 EOF 2597 if { (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" 2600 else 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" 2605 fi 2606 rm -f conftest* 2607 fi 2608 2609 if 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 2614 EOF 2615 2616 else 2617 echo "$ac_t""no" 1>&6 2618 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 2619 fi 2620 done 2621 2622 2623 2624 2625 # *** Custom checking (based on GNU tar configure.in) *** 2626 # --------------------------------------------------------------------------- 2627 echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6 2628 echo "configure:2629: checking for HP-UX needing gmalloc" >&5 2629 if 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 2634 EOF 2635 2636 else 2637 echo "$ac_t""no" 1>&6 2638 for ac_func in valloc 2639 do 2640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2641 echo "configure:2642: checking for $ac_func" >&5 2642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2643 echo $ac_n "(cached) $ac_c" 1>&6 2644 else 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. */ 2654 char $ac_func(); 2655 2656 int 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) 2662 choke me 2663 #else 2664 $ac_func(); 2665 #endif 2666 2667 ; return 0; } 2668 EOF 2669 if { (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" 2672 else 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" 2677 fi 2678 rm -f conftest* 2679 fi 2680 2681 if 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 2686 EOF 2687 2688 else 2689 echo "$ac_t""no" 1>&6 2690 fi 2691 done 2692 2693 fi 2694 2695 fp_WITH_DMALLOC 2696 fp_WITH_REGEX 2697 2698 # --------------------------------------------------------------------------- 2699 if test "$ac_cv_func_alloca" = 'no'; then 2700 LIBOBJS="$LIBOBJS xmalloc.o error.o" 2701 fi 2702 2703 2704 # --------------------------------------------------------------------------- 2705 2706 ac_ext=C 2707 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2708 ac_cpp='$CXXCPP $CPPFLAGS' 2709 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2710 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2711 cross_compiling=$ac_cv_prog_cxx_cross 2712 2713 2714 echo $ac_n "checking "that the GDBM library is available"""... $ac_c" 1>&6 2715 echo "configure:2716: checking "that the GDBM library is available"" >&5 2716 cat > conftest.$ac_ext <<EOF 2717 #line 2718 "configure" 2718 #include "confdefs.h" 2719 #include <gdbm.h> 2720 2721 int main() { 2722 2723 ; return 0; } 2724 EOF 2725 if { (eval echo configure:2726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2726 rm -rf conftest* 2727 success=yes 2728 else 2729 echo "configure: failed program was:" >&5 2730 cat conftest.$ac_ext >&5 2731 rm -rf conftest* 2732 success=no 2733 2734 fi 2735 rm -f conftest* 2736 echo "$ac_t""$success" 1>&6 2737 if test $success = "no"; then 2738 { echo "configure: error: "GDBM Library not available - cannot install"" 1>&2; exit 1; } 2739 fi 2740 2741 echo $ac_n "checking "that Perl 5 is available"""... $ac_c" 1>&6 2742 echo "configure:2743: checking "that Perl 5 is available"" >&5 2743 success="no" 2744 pl_path="$PATH" 2745 IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":" 2746 for 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 2752 done 2753 IFS="$pl_save_ifs" 2754 2755 if test $success = "yes"; then 2756 try=`perl configtest.pl` || try="0" 2757 try=`expr $try \> 5.000` 2758 if test $try = "1"; then 2759 echo "$ac_t"""yes"" 1>&6 2760 else 2761 success="no" 2762 fi 2763 fi 2764 2765 if test $success = "no"; then 2766 echo "$ac_t"""no"" 1>&6 2767 { echo "configure: error: "Perl 5 not available - cannot install"" 1>&2; exit 1; } 2768 fi 2769 2770 success=no 2771 echo $ac_n "checking "whether STL library has known faults"""... $ac_c" 1>&6 2772 echo "configure:2773: checking "whether STL library has known faults"" >&5 2773 2774 cat > conftest.$ac_ext <<EOF 2775 #line 2776 "configure" 2776 #include "confdefs.h" 2777 #include <vector> 2778 2779 int main() { 2780 2781 ; return 0; } 2782 EOF 2783 if { (eval echo configure:2784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2784 rm -rf conftest* 2785 success=yes 2786 else 2787 echo "configure: failed program was:" >&5 2788 cat conftest.$ac_ext >&5 2789 fi 2790 rm -f conftest* 2791 2792 if test $success = "no"; then 2793 cat > conftest.$ac_ext <<EOF 2794 #line 2795 "configure" 2795 #include "confdefs.h" 2796 #include <vector.h> 2797 2798 int main() { 2799 2800 ; return 0; } 2801 EOF 2802 if { (eval echo configure:2803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2803 rm -rf conftest* 2804 success="yes" 2805 else 2806 echo "configure: failed program was:" >&5 2807 cat conftest.$ac_ext >&5 2808 fi 2809 rm -f conftest* 2810 fi 2811 2812 if test $success = "no"; then 2813 cat > conftest.$ac_ext <<EOF 2814 #line 2815 "configure" 2815 #include "confdefs.h" 2816 #include <ospace\\std\\vector> 2817 2818 int main() { 2819 2820 ; return 0; } 2821 EOF 2822 if { (eval echo configure:2823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2823 rm -rf conftest* 2824 success="yes" 2825 else 2826 echo "configure: failed program was:" >&5 2827 cat conftest.$ac_ext >&5 2828 fi 2829 rm -f conftest* 2830 fi 2831 2832 if test $success = yes; then 2833 echo "$ac_t"""no"" 1>&6 2834 else 2835 echo "$ac_t"""yes"" 1>&6 2836 { echo "configure: error: "STL Broken - Obtain newer version of GNU C Compiler"" 1>&2; exit 1; } 2837 fi 2838 2839 gsdlos=`uname | tr A-Z a-z` 2840 2841 2842 echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6 2843 echo "configure:2844: checking for HP-UX needing gmalloc" >&5 2844 if 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 2849 EOF 2850 2851 else 2852 echo "$ac_t""no" 1>&6 2853 for ac_func in valloc 2854 do 2855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2856 echo "configure:2857: checking for $ac_func" >&5 2857 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2858 echo $ac_n "(cached) $ac_c" 1>&6 2859 else 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 2868 extern "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. */ 2872 char $ac_func(); 2873 2874 int 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) 2880 choke me 2881 #else 2882 $ac_func(); 2883 #endif 2884 2885 ; return 0; } 2886 EOF 2887 if { (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" 2890 else 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" 2895 fi 2896 rm -f conftest* 2897 fi 2898 2899 if 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 2904 EOF 2905 2906 else 2907 echo "$ac_t""no" 1>&6 2908 fi 2909 done 2910 2911 fi 2912 2913 fp_WITH_DMALLOC 2914 fp_WITH_REGEX 2915 2916 # --------------------------------------------------------------------------- 2917 if test "$ac_cv_func_alloca" = 'no'; then 2918 LIBOBJS="$LIBOBJS xmalloc.o error.o" 2919 fi 2920 2921 2922 # --------------------------------------------------------------------------- 1694 2923 1695 2924 trap '' 1 2 15 … … 1756 2985 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 1757 2986 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 2987 DEFS=-DHAVE_CONFIG_H 1771 2988 1772 2989 # Without the "./", some shells look in PATH for config.status. … … 1805 3022 ac_given_srcdir=$srcdir 1806 3023 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 3024 trap '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 1808 3029 EOF 1809 3030 cat >> $CONFIG_STATUS <<EOF … … 1842 3063 s%@CC@%$CC%g 1843 3064 s%@CXX@%$CXX%g 3065 s%@AWK@%$AWK%g 3066 s%@YACC@%$YACC%g 1844 3067 s%@LN_S@%$LN_S%g 1845 3068 s%@SET_MAKE@%$SET_MAKE%g 1846 3069 s%@RANLIB@%$RANLIB%g 1847 3070 s%@CPP@%$CPP%g 3071 s%@ALLOCA@%$ALLOCA%g 3072 s%@LIBOBJS@%$LIBOBJS%g 1848 3073 s%@gsdlos@%$gsdlos%g 1849 3074 … … 1888 3113 cat >> $CONFIG_STATUS <<EOF 1889 3114 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"} 3115 CONFIG_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"} 1891 3120 EOF 1892 3121 cat >> $CONFIG_STATUS <<\EOF … … 1942 3171 rm -f conftest.s* 1943 3172 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. 3177 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 3178 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 3179 ac_dC='\3' 3180 ac_dD='%g' 3181 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 3182 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 3183 ac_uB='\([ ]\)%\1#\2define\3' 3184 ac_uC=' ' 3185 ac_uD='\4%g' 3186 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 3187 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 3188 ac_eB='$%\1#\2define\3' 3189 ac_eC=' ' 3190 ac_eD='%g' 3191 3192 if test "${CONFIG_HEADERS+set}" != set; then 3193 EOF 3194 cat >> $CONFIG_STATUS <<EOF 3195 CONFIG_HEADERS="config.h" 3196 EOF 3197 cat >> $CONFIG_STATUS <<\EOF 3198 fi 3199 for 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 3213 EOF 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. 3219 rm -f conftest.vals 3220 cat > conftest.hdr <<\EOF 3221 s/[\\&%]/\\&/g 3222 s%[\\$`]%\\&%g 3223 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 3224 s%ac_d%ac_u%gp 3225 s%ac_u%ac_e%gp 3226 EOF 3227 sed -n -f conftest.hdr confdefs.h > conftest.vals 3228 rm -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. 3233 cat >> conftest.vals <<\EOF 3234 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 3235 EOF 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 3240 rm -f conftest.tail 3241 while : 3242 do 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 3257 done 3258 rm -f conftest.vals 3259 3260 cat >> $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 3278 fi; done 3279 1944 3280 EOF 1945 3281 cat >> $CONFIG_STATUS <<EOF
Note:
See TracChangeset
for help on using the changeset viewer.