Changeset 2279
- Timestamp:
- 2001-04-04T16:42:05+12:00 (23 years ago)
- Location:
- trunk/gsdl
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/configure
r2214 r2279 18 18 ac_help="$ac_help 19 19 --enable-z3950 Enable Z39.50 client support" 20 ac_help="$ac_help 21 --with-gdbm=dir Use local gdbm library and headers" 20 22 ac_help="$ac_help 21 23 --with-dmalloc use dmalloc, as in … … 534 536 535 537 536 if test "$program_transform_name" = s,x,x,; then537 program_transform_name=538 else539 # Double any \ or $. echo might interpret backslashes.540 cat <<\EOF_SED > conftestsed541 s,\\,\\\\,g; s,\$,$$,g542 EOF_SED543 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"544 rm -f conftestsed545 fi546 test "$program_prefix" != NONE &&547 program_transform_name="s,^,${program_prefix},; $program_transform_name"548 # Use a double $ so make ignores it.549 test "$program_suffix" != NONE &&550 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"551 552 # sed with no file args requires a program.553 test "$program_transform_name" = "" && program_transform_name="s,x,x,"554 555 538 556 539 PACKAGE=gsdl … … 619 602 620 603 604 # Check whether --with-gdbm or --without-gdbm was given. 605 if test "${with_gdbm+set}" = set; then 606 withval="$with_gdbm" 607 gdbmdir=$withval 608 fi 609 610 611 612 621 613 LDFLAGS= 622 614 if test -z "$CFLAGS"; then … … 628 620 set dummy gcc; ac_word=$2 629 621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 630 echo "configure:6 31: checking for $ac_word" >&5622 echo "configure:623: checking for $ac_word" >&5 631 623 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 632 624 echo $ac_n "(cached) $ac_c" 1>&6 … … 658 650 set dummy cc; ac_word=$2 659 651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 660 echo "configure:6 61: checking for $ac_word" >&5652 echo "configure:653: checking for $ac_word" >&5 661 653 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 662 654 echo $ac_n "(cached) $ac_c" 1>&6 … … 709 701 set dummy cl; ac_word=$2 710 702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 711 echo "configure:7 12: checking for $ac_word" >&5703 echo "configure:704: checking for $ac_word" >&5 712 704 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 713 705 echo $ac_n "(cached) $ac_c" 1>&6 … … 741 733 742 734 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 743 echo "configure:7 44: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5735 echo "configure:736: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 744 736 745 737 ac_ext=c … … 752 744 cat > conftest.$ac_ext << EOF 753 745 754 #line 7 55"configure"746 #line 747 "configure" 755 747 #include "confdefs.h" 756 748 757 749 main(){return(0);} 758 750 EOF 759 if { (eval echo configure:7 60: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then751 if { (eval echo configure:752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 760 752 ac_cv_prog_cc_works=yes 761 753 # If we can't run a trivial program, we are probably using a cross compiler. … … 783 775 fi 784 776 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 785 echo "configure:7 86: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5777 echo "configure:778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 786 778 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 787 779 cross_compiling=$ac_cv_prog_cc_cross 788 780 789 781 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 790 echo "configure:7 91: checking whether we are using GNU C" >&5782 echo "configure:783: checking whether we are using GNU C" >&5 791 783 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 792 784 echo $ac_n "(cached) $ac_c" 1>&6 … … 797 789 #endif 798 790 EOF 799 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure: 800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then791 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 800 792 ac_cv_prog_gcc=yes 801 793 else … … 816 808 CFLAGS= 817 809 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 818 echo "configure:81 9: checking whether ${CC-cc} accepts -g" >&5810 echo "configure:811: checking whether ${CC-cc} accepts -g" >&5 819 811 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 820 812 echo $ac_n "(cached) $ac_c" 1>&6 … … 852 844 set dummy $ac_prog; ac_word=$2 853 845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 854 echo "configure:8 55: checking for $ac_word" >&5846 echo "configure:847: checking for $ac_word" >&5 855 847 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 856 848 echo $ac_n "(cached) $ac_c" 1>&6 … … 884 876 885 877 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 886 echo "configure:8 87: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5878 echo "configure:879: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 887 879 888 880 ac_ext=C … … 895 887 cat > conftest.$ac_ext << EOF 896 888 897 #line 89 8"configure"889 #line 890 "configure" 898 890 #include "confdefs.h" 899 891 900 892 int main(){return(0);} 901 893 EOF 902 if { (eval echo configure: 903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then894 if { (eval echo configure:895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 903 895 ac_cv_prog_cxx_works=yes 904 896 # If we can't run a trivial program, we are probably using a cross compiler. … … 926 918 fi 927 919 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 928 echo "configure:92 9: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5920 echo "configure:921: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 929 921 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 930 922 cross_compiling=$ac_cv_prog_cxx_cross 931 923 932 924 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 933 echo "configure:9 34: checking whether we are using GNU C++" >&5925 echo "configure:926: checking whether we are using GNU C++" >&5 934 926 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 935 927 echo $ac_n "(cached) $ac_c" 1>&6 … … 940 932 #endif 941 933 EOF 942 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9 43: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then934 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 943 935 ac_cv_prog_gxx=yes 944 936 else … … 959 951 CXXFLAGS= 960 952 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 961 echo "configure:9 62: checking whether ${CXX-g++} accepts -g" >&5953 echo "configure:954: checking whether ${CXX-g++} accepts -g" >&5 962 954 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 963 955 echo $ac_n "(cached) $ac_c" 1>&6 … … 995 987 set dummy $ac_prog; ac_word=$2 996 988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 997 echo "configure:99 8: checking for $ac_word" >&5989 echo "configure:990: checking for $ac_word" >&5 998 990 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then 999 991 echo $ac_n "(cached) $ac_c" 1>&6 … … 1029 1021 set dummy $ac_prog; ac_word=$2 1030 1022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1031 echo "configure:10 32: checking for $ac_word" >&51023 echo "configure:1024: checking for $ac_word" >&5 1032 1024 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 1033 1025 echo $ac_n "(cached) $ac_c" 1>&6 … … 1078 1070 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 1079 1071 1072 1073 # Do some error checking and defaulting for the host and target type. 1074 # The inputs are: 1075 # configure --host=HOST --target=TARGET --build=BUILD NONOPT 1076 # 1077 # The rules are: 1078 # 1. You are not allowed to specify --host, --target, and nonopt at the 1079 # same time. 1080 # 2. Host defaults to nonopt. 1081 # 3. If nonopt is not specified, then host defaults to the current host, 1082 # as determined by config.guess. 1083 # 4. Target and build default to nonopt. 1084 # 5. If nonopt is not specified, then target and build default to host. 1085 1086 # The aliases save the names the user supplied, while $host etc. 1087 # will get canonicalized. 1088 case $host---$target---$nonopt in 1089 NONE---*---* | *---NONE---* | *---*---NONE) ;; 1090 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; 1091 esac 1092 1093 1094 # Make sure we can run config.sub. 1095 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 1096 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 1097 fi 1098 1099 echo $ac_n "checking host system type""... $ac_c" 1>&6 1100 echo "configure:1101: checking host system type" >&5 1101 1102 host_alias=$host 1103 case "$host_alias" in 1104 NONE) 1105 case $nonopt in 1106 NONE) 1107 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 1108 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 1109 fi ;; 1110 *) host_alias=$nonopt ;; 1111 esac ;; 1112 esac 1113 1114 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 1115 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1116 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1117 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1118 echo "$ac_t""$host" 1>&6 1119 1120 echo $ac_n "checking target system type""... $ac_c" 1>&6 1121 echo "configure:1122: checking target system type" >&5 1122 1123 target_alias=$target 1124 case "$target_alias" in 1125 NONE) 1126 case $nonopt in 1127 NONE) target_alias=$host_alias ;; 1128 *) target_alias=$nonopt ;; 1129 esac ;; 1130 esac 1131 1132 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` 1133 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1134 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1135 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1136 echo "$ac_t""$target" 1>&6 1137 1138 echo $ac_n "checking build system type""... $ac_c" 1>&6 1139 echo "configure:1140: checking build system type" >&5 1140 1141 build_alias=$build 1142 case "$build_alias" in 1143 NONE) 1144 case $nonopt in 1145 NONE) build_alias=$host_alias ;; 1146 *) build_alias=$nonopt ;; 1147 esac ;; 1148 esac 1149 1150 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` 1151 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1152 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1153 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1154 echo "$ac_t""$build" 1>&6 1155 1156 test "$host_alias" != "$target_alias" && 1157 test "$program_prefix$program_suffix$program_transform_name" = \ 1158 NONENONEs,x,x, && 1159 program_prefix=${target_alias}- 1160 1080 1161 # Find a good install program. We prefer a C program (faster), 1081 1162 # so one script is as good as another. But avoid the broken or … … 1090 1171 # ./install, which can be erroneously created by make from ./install.sh. 1091 1172 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1092 echo "configure:1 093: checking for a BSD compatible install" >&51173 echo "configure:1174: checking for a BSD compatible install" >&5 1093 1174 if test -z "$INSTALL"; then 1094 1175 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then … … 1143 1224 1144 1225 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1145 echo "configure:1 146: checking whether ln -s works" >&51226 echo "configure:1227: checking whether ln -s works" >&5 1146 1227 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1147 1228 echo $ac_n "(cached) $ac_c" 1>&6 … … 1164 1245 1165 1246 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1166 echo "configure:1 167: checking whether ${MAKE-make} sets \${MAKE}" >&51247 echo "configure:1248: checking whether ${MAKE-make} sets \${MAKE}" >&5 1167 1248 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1168 1249 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then … … 1193 1274 set dummy ranlib; ac_word=$2 1194 1275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1195 echo "configure:1 196: checking for $ac_word" >&51276 echo "configure:1277: checking for $ac_word" >&5 1196 1277 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1197 1278 echo $ac_n "(cached) $ac_c" 1>&6 … … 1255 1336 1256 1337 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1257 echo "configure:1 258: checking how to run the C preprocessor" >&51338 echo "configure:1339: checking how to run the C preprocessor" >&5 1258 1339 # On Suns, sometimes $CPP names a directory. 1259 1340 if test -n "$CPP" && test -d "$CPP"; then … … 1270 1351 # not just through cpp. 1271 1352 cat > conftest.$ac_ext <<EOF 1272 #line 1 273"configure"1353 #line 1354 "configure" 1273 1354 #include "confdefs.h" 1274 1355 #include <assert.h> … … 1276 1357 EOF 1277 1358 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1278 { (eval echo configure:1 279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1359 { (eval echo configure:1360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1279 1360 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1280 1361 if test -z "$ac_err"; then … … 1287 1368 CPP="${CC-cc} -E -traditional-cpp" 1288 1369 cat > conftest.$ac_ext <<EOF 1289 #line 1 290"configure"1370 #line 1371 "configure" 1290 1371 #include "confdefs.h" 1291 1372 #include <assert.h> … … 1293 1374 EOF 1294 1375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1295 { (eval echo configure:1 296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1376 { (eval echo configure:1377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1296 1377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1297 1378 if test -z "$ac_err"; then … … 1304 1385 CPP="${CC-cc} -nologo -E" 1305 1386 cat > conftest.$ac_ext <<EOF 1306 #line 13 07"configure"1387 #line 1388 "configure" 1307 1388 #include "confdefs.h" 1308 1389 #include <assert.h> … … 1310 1391 EOF 1311 1392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1312 { (eval echo configure:13 13: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1393 { (eval echo configure:1394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1313 1394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1314 1395 if test -z "$ac_err"; then … … 1335 1416 1336 1417 echo $ac_n "checking for AIX""... $ac_c" 1>&6 1337 echo "configure:1 338: checking for AIX" >&51418 echo "configure:1419: checking for AIX" >&5 1338 1419 cat > conftest.$ac_ext <<EOF 1339 #line 1 340"configure"1420 #line 1421 "configure" 1340 1421 #include "confdefs.h" 1341 1422 #ifdef _AIX … … 1359 1440 1360 1441 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 1361 echo "configure:1 362: checking for POSIXized ISC" >&51442 echo "configure:1443: checking for POSIXized ISC" >&5 1362 1443 if test -d /etc/conf/kconfig.d && 1363 1444 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 … … 1381 1462 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` 1382 1463 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 1383 echo "configure:1 384: checking for minix/config.h" >&51464 echo "configure:1465: checking for minix/config.h" >&5 1384 1465 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1385 1466 echo $ac_n "(cached) $ac_c" 1>&6 1386 1467 else 1387 1468 cat > conftest.$ac_ext <<EOF 1388 #line 1 389"configure"1469 #line 1470 "configure" 1389 1470 #include "confdefs.h" 1390 1471 #include <minix/config.h> 1391 1472 EOF 1392 1473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1393 { (eval echo configure:1 394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1474 { (eval echo configure:1475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1394 1475 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1395 1476 if test -z "$ac_err"; then … … 1429 1510 1430 1511 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 1431 echo "configure:1 432: checking for ${CC-cc} option to accept ANSI C" >&51512 echo "configure:1513: checking for ${CC-cc} option to accept ANSI C" >&5 1432 1513 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then 1433 1514 echo $ac_n "(cached) $ac_c" 1>&6 … … 1445 1526 CFLAGS="$ac_save_CFLAGS $ac_arg" 1446 1527 cat > conftest.$ac_ext <<EOF 1447 #line 1 448"configure"1528 #line 1529 "configure" 1448 1529 #include "confdefs.h" 1449 1530 #if !defined(__STDC__) || __STDC__ != 1 … … 1457 1538 ; return 0; } 1458 1539 EOF 1459 if { (eval echo configure:1 460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1540 if { (eval echo configure:1541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1460 1541 rm -rf conftest* 1461 1542 ac_cv_prog_cc_stdc="$ac_arg"; break … … 1478 1559 1479 1560 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 1480 echo "configure:1 481: checking for function prototypes" >&51561 echo "configure:1562: checking for function prototypes" >&5 1481 1562 if test "$ac_cv_prog_cc_stdc" != no; then 1482 1563 echo "$ac_t""yes" 1>&6 … … 1492 1573 1493 1574 echo $ac_n "checking for working const""... $ac_c" 1>&6 1494 echo "configure:1 495: checking for working const" >&51575 echo "configure:1576: checking for working const" >&5 1495 1576 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1496 1577 echo $ac_n "(cached) $ac_c" 1>&6 1497 1578 else 1498 1579 cat > conftest.$ac_ext <<EOF 1499 #line 15 00"configure"1580 #line 1581 "configure" 1500 1581 #include "confdefs.h" 1501 1582 … … 1546 1627 ; return 0; } 1547 1628 EOF 1548 if { (eval echo configure:1 549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1629 if { (eval echo configure:1630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1549 1630 rm -rf conftest* 1550 1631 ac_cv_c_const=yes … … 1567 1648 1568 1649 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1569 echo "configure:1 570: checking for ANSI C header files" >&51650 echo "configure:1651: checking for ANSI C header files" >&5 1570 1651 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1571 1652 echo $ac_n "(cached) $ac_c" 1>&6 1572 1653 else 1573 1654 cat > conftest.$ac_ext <<EOF 1574 #line 1 575"configure"1655 #line 1656 "configure" 1575 1656 #include "confdefs.h" 1576 1657 #include <stdlib.h> … … 1580 1661 EOF 1581 1662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1582 { (eval echo configure:1 583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1663 { (eval echo configure:1664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1583 1664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1584 1665 if test -z "$ac_err"; then … … 1597 1678 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1598 1679 cat > conftest.$ac_ext <<EOF 1599 #line 16 00"configure"1680 #line 1681 "configure" 1600 1681 #include "confdefs.h" 1601 1682 #include <string.h> … … 1615 1696 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1616 1697 cat > conftest.$ac_ext <<EOF 1617 #line 16 18"configure"1698 #line 1699 "configure" 1618 1699 #include "confdefs.h" 1619 1700 #include <stdlib.h> … … 1636 1717 else 1637 1718 cat > conftest.$ac_ext <<EOF 1638 #line 1 639"configure"1719 #line 1720 "configure" 1639 1720 #include "confdefs.h" 1640 1721 #include <ctype.h> … … 1647 1728 1648 1729 EOF 1649 if { (eval echo configure:1 650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1730 if { (eval echo configure:1731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1650 1731 then 1651 1732 : … … 1671 1752 1672 1753 echo $ac_n "checking for off_t""... $ac_c" 1>&6 1673 echo "configure:1 674: checking for off_t" >&51754 echo "configure:1755: checking for off_t" >&5 1674 1755 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 1675 1756 echo $ac_n "(cached) $ac_c" 1>&6 1676 1757 else 1677 1758 cat > conftest.$ac_ext <<EOF 1678 #line 1 679"configure"1759 #line 1760 "configure" 1679 1760 #include "confdefs.h" 1680 1761 #include <sys/types.h> … … 1704 1785 1705 1786 echo $ac_n "checking for size_t""... $ac_c" 1>&6 1706 echo "configure:17 07: checking for size_t" >&51787 echo "configure:1788: checking for size_t" >&5 1707 1788 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 1708 1789 echo $ac_n "(cached) $ac_c" 1>&6 1709 1790 else 1710 1791 cat > conftest.$ac_ext <<EOF 1711 #line 17 12"configure"1792 #line 1793 "configure" 1712 1793 #include "confdefs.h" 1713 1794 #include <sys/types.h> … … 1737 1818 1738 1819 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 1739 echo "configure:1 740: checking whether time.h and sys/time.h may both be included" >&51820 echo "configure:1821: checking whether time.h and sys/time.h may both be included" >&5 1740 1821 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 1741 1822 echo $ac_n "(cached) $ac_c" 1>&6 1742 1823 else 1743 1824 cat > conftest.$ac_ext <<EOF 1744 #line 1 745"configure"1825 #line 1826 "configure" 1745 1826 #include "confdefs.h" 1746 1827 #include <sys/types.h> … … 1751 1832 ; return 0; } 1752 1833 EOF 1753 if { (eval echo configure:1 754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1834 if { (eval echo configure:1835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1754 1835 rm -rf conftest* 1755 1836 ac_cv_header_time=yes … … 1772 1853 1773 1854 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 1774 echo "configure:1 775: checking whether struct tm is in sys/time.h or time.h" >&51855 echo "configure:1856: checking whether struct tm is in sys/time.h or time.h" >&5 1775 1856 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 1776 1857 echo $ac_n "(cached) $ac_c" 1>&6 1777 1858 else 1778 1859 cat > conftest.$ac_ext <<EOF 1779 #line 1 780"configure"1860 #line 1861 "configure" 1780 1861 #include "confdefs.h" 1781 1862 #include <sys/types.h> … … 1785 1866 ; return 0; } 1786 1867 EOF 1787 if { (eval echo configure:1 788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1868 if { (eval echo configure:1869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1788 1869 rm -rf conftest* 1789 1870 ac_cv_struct_tm=time.h … … 1808 1889 if test "$ac_cv_prog_cc_stdc" = '-Xc'; then 1809 1890 cat > conftest.$ac_ext <<EOF 1810 #line 18 11"configure"1891 #line 1892 "configure" 1811 1892 #include "confdefs.h" 1812 1893 #include <stdio.h> … … 1816 1897 ; return 0; } 1817 1898 EOF 1818 if { (eval echo configure:1 819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1899 if { (eval echo configure:1900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1819 1900 : 1820 1901 else … … 1829 1910 1830 1911 echo $ac_n "checking for main in -lg""... $ac_c" 1>&6 1831 echo "configure:1 832: checking for main in -lg" >&51912 echo "configure:1913: checking for main in -lg" >&5 1832 1913 ac_lib_var=`echo g'_'main | sed 'y%./+-%__p_%'` 1833 1914 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1837 1918 LIBS="-lg $LIBS" 1838 1919 cat > conftest.$ac_ext <<EOF 1839 #line 1 840"configure"1920 #line 1921 "configure" 1840 1921 #include "confdefs.h" 1841 1922 … … 1844 1925 ; return 0; } 1845 1926 EOF 1846 if { (eval echo configure:1 847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1927 if { (eval echo configure:1928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1847 1928 rm -rf conftest* 1848 1929 eval "ac_cv_lib_$ac_lib_var=yes" … … 1872 1953 1873 1954 echo $ac_n "checking for main in -lgdbm""... $ac_c" 1>&6 1874 echo "configure:1 875: checking for main in -lgdbm" >&51955 echo "configure:1956: checking for main in -lgdbm" >&5 1875 1956 ac_lib_var=`echo gdbm'_'main | sed 'y%./+-%__p_%'` 1876 1957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1880 1961 LIBS="-lgdbm $LIBS" 1881 1962 cat > conftest.$ac_ext <<EOF 1882 #line 1 883"configure"1963 #line 1964 "configure" 1883 1964 #include "confdefs.h" 1884 1965 … … 1887 1968 ; return 0; } 1888 1969 EOF 1889 if { (eval echo configure:1 890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1970 if { (eval echo configure:1971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1890 1971 rm -rf conftest* 1891 1972 eval "ac_cv_lib_$ac_lib_var=yes" … … 1915 1996 1916 1997 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 1917 echo "configure:19 18: checking for main in -lm" >&51998 echo "configure:1999: checking for main in -lm" >&5 1918 1999 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` 1919 2000 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1923 2004 LIBS="-lm $LIBS" 1924 2005 cat > conftest.$ac_ext <<EOF 1925 #line 1926"configure"2006 #line 2007 "configure" 1926 2007 #include "confdefs.h" 1927 2008 … … 1930 2011 ; return 0; } 1931 2012 EOF 1932 if { (eval echo configure: 1933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2013 if { (eval echo configure:2014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1933 2014 rm -rf conftest* 1934 2015 eval "ac_cv_lib_$ac_lib_var=yes" … … 1958 2039 1959 2040 echo $ac_n "checking for main in -lstdc++""... $ac_c" 1>&6 1960 echo "configure: 1961: checking for main in -lstdc++" >&52041 echo "configure:2042: checking for main in -lstdc++" >&5 1961 2042 ac_lib_var=`echo stdc++'_'main | sed 'y%./+-%__p_%'` 1962 2043 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1966 2047 LIBS="-lstdc++ $LIBS" 1967 2048 cat > conftest.$ac_ext <<EOF 1968 #line 1969"configure"2049 #line 2050 "configure" 1969 2050 #include "confdefs.h" 1970 2051 … … 1973 2054 ; return 0; } 1974 2055 EOF 1975 if { (eval echo configure: 1976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2056 if { (eval echo configure:2057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1976 2057 rm -rf conftest* 1977 2058 eval "ac_cv_lib_$ac_lib_var=yes" … … 2001 2082 2002 2083 echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6 2003 echo "configure:20 04: checking for main in -lcrypt" >&52084 echo "configure:2085: checking for main in -lcrypt" >&5 2004 2085 ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'` 2005 2086 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 2009 2090 LIBS="-lcrypt $LIBS" 2010 2091 cat > conftest.$ac_ext <<EOF 2011 #line 20 12"configure"2092 #line 2093 "configure" 2012 2093 #include "confdefs.h" 2013 2094 … … 2016 2097 ; return 0; } 2017 2098 EOF 2018 if { (eval echo configure:2 019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2099 if { (eval echo configure:2100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2019 2100 rm -rf conftest* 2020 2101 eval "ac_cv_lib_$ac_lib_var=yes" … … 2050 2131 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2051 2132 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 2052 echo "configure:2 053: checking for $ac_hdr that defines DIR" >&52133 echo "configure:2134: checking for $ac_hdr that defines DIR" >&5 2053 2134 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 2054 2135 echo $ac_n "(cached) $ac_c" 1>&6 2055 2136 else 2056 2137 cat > conftest.$ac_ext <<EOF 2057 #line 2 058"configure"2138 #line 2139 "configure" 2058 2139 #include "confdefs.h" 2059 2140 #include <sys/types.h> … … 2063 2144 ; return 0; } 2064 2145 EOF 2065 if { (eval echo configure:2 066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2146 if { (eval echo configure:2147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2066 2147 rm -rf conftest* 2067 2148 eval "ac_cv_header_dirent_$ac_safe=yes" … … 2088 2169 if test $ac_header_dirent = dirent.h; then 2089 2170 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 2090 echo "configure:2 091: checking for opendir in -ldir" >&52171 echo "configure:2172: checking for opendir in -ldir" >&5 2091 2172 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 2092 2173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 2096 2177 LIBS="-ldir $LIBS" 2097 2178 cat > conftest.$ac_ext <<EOF 2098 #line 2 099"configure"2179 #line 2180 "configure" 2099 2180 #include "confdefs.h" 2100 2181 /* Override any gcc2 internal prototype to avoid an error. */ … … 2107 2188 ; return 0; } 2108 2189 EOF 2109 if { (eval echo configure:21 10: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2190 if { (eval echo configure:2191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2110 2191 rm -rf conftest* 2111 2192 eval "ac_cv_lib_$ac_lib_var=yes" … … 2129 2210 else 2130 2211 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 2131 echo "configure:2 132: checking for opendir in -lx" >&52212 echo "configure:2213: checking for opendir in -lx" >&5 2132 2213 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 2133 2214 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 2137 2218 LIBS="-lx $LIBS" 2138 2219 cat > conftest.$ac_ext <<EOF 2139 #line 2 140"configure"2220 #line 2221 "configure" 2140 2221 #include "confdefs.h" 2141 2222 /* Override any gcc2 internal prototype to avoid an error. */ … … 2148 2229 ; return 0; } 2149 2230 EOF 2150 if { (eval echo configure:2 151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2231 if { (eval echo configure:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2151 2232 rm -rf conftest* 2152 2233 eval "ac_cv_lib_$ac_lib_var=yes" … … 2171 2252 2172 2253 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2173 echo "configure:2 174: checking for ANSI C header files" >&52254 echo "configure:2255: checking for ANSI C header files" >&5 2174 2255 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2175 2256 echo $ac_n "(cached) $ac_c" 1>&6 2176 2257 else 2177 2258 cat > conftest.$ac_ext <<EOF 2178 #line 2 179"configure"2259 #line 2260 "configure" 2179 2260 #include "confdefs.h" 2180 2261 #include <stdlib.h> … … 2184 2265 EOF 2185 2266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2186 { (eval echo configure:2 187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2267 { (eval echo configure:2268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2187 2268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2188 2269 if test -z "$ac_err"; then … … 2201 2282 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2202 2283 cat > conftest.$ac_ext <<EOF 2203 #line 22 04"configure"2284 #line 2285 "configure" 2204 2285 #include "confdefs.h" 2205 2286 #include <string.h> … … 2219 2300 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2220 2301 cat > conftest.$ac_ext <<EOF 2221 #line 2 222"configure"2302 #line 2303 "configure" 2222 2303 #include "confdefs.h" 2223 2304 #include <stdlib.h> … … 2240 2321 else 2241 2322 cat > conftest.$ac_ext <<EOF 2242 #line 2 243"configure"2323 #line 2324 "configure" 2243 2324 #include "confdefs.h" 2244 2325 #include <ctype.h> … … 2251 2332 2252 2333 EOF 2253 if { (eval echo configure:2 254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2334 if { (eval echo configure:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2254 2335 then 2255 2336 : … … 2278 2359 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2279 2360 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2280 echo "configure:2 281: checking for $ac_hdr" >&52361 echo "configure:2362: checking for $ac_hdr" >&5 2281 2362 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2282 2363 echo $ac_n "(cached) $ac_c" 1>&6 2283 2364 else 2284 2365 cat > conftest.$ac_ext <<EOF 2285 #line 2 286"configure"2366 #line 2367 "configure" 2286 2367 #include "confdefs.h" 2287 2368 #include <$ac_hdr> 2288 2369 EOF 2289 2370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2290 { (eval echo configure:2 291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2371 { (eval echo configure:2372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2291 2372 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2292 2373 if test -z "$ac_err"; then … … 2315 2396 2316 2397 cat > conftest.$ac_ext <<EOF 2317 #line 23 18"configure"2398 #line 2399 "configure" 2318 2399 #include "confdefs.h" 2319 2400 #include <stdio.h> … … 2330 2411 2331 2412 cat > conftest.$ac_ext <<EOF 2332 #line 2 333"configure"2413 #line 2414 "configure" 2333 2414 #include "confdefs.h" 2334 2415 #include <stdio.h> … … 2345 2426 2346 2427 cat > conftest.$ac_ext <<EOF 2347 #line 2 348"configure"2428 #line 2429 "configure" 2348 2429 #include "confdefs.h" 2349 2430 #include <sys/procfs.h> … … 2363 2444 # for constant arguments. Useless! 2364 2445 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 2365 echo "configure:2 366: checking for working alloca.h" >&52446 echo "configure:2447: checking for working alloca.h" >&5 2366 2447 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 2367 2448 echo $ac_n "(cached) $ac_c" 1>&6 2368 2449 else 2369 2450 cat > conftest.$ac_ext <<EOF 2370 #line 2 371"configure"2451 #line 2452 "configure" 2371 2452 #include "confdefs.h" 2372 2453 #include <alloca.h> … … 2375 2456 ; return 0; } 2376 2457 EOF 2377 if { (eval echo configure:2 378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2458 if { (eval echo configure:2459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2378 2459 rm -rf conftest* 2379 2460 ac_cv_header_alloca_h=yes … … 2396 2477 2397 2478 echo $ac_n "checking for alloca""... $ac_c" 1>&6 2398 echo "configure:2 399: checking for alloca" >&52479 echo "configure:2480: checking for alloca" >&5 2399 2480 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 2400 2481 echo $ac_n "(cached) $ac_c" 1>&6 2401 2482 else 2402 2483 cat > conftest.$ac_ext <<EOF 2403 #line 24 04"configure"2484 #line 2485 "configure" 2404 2485 #include "confdefs.h" 2405 2486 … … 2429 2510 ; return 0; } 2430 2511 EOF 2431 if { (eval echo configure:2 432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2512 if { (eval echo configure:2513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2432 2513 rm -rf conftest* 2433 2514 ac_cv_func_alloca_works=yes … … 2461 2542 2462 2543 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 2463 echo "configure:2 464: checking whether alloca needs Cray hooks" >&52544 echo "configure:2545: checking whether alloca needs Cray hooks" >&5 2464 2545 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 2465 2546 echo $ac_n "(cached) $ac_c" 1>&6 2466 2547 else 2467 2548 cat > conftest.$ac_ext <<EOF 2468 #line 2 469"configure"2549 #line 2550 "configure" 2469 2550 #include "confdefs.h" 2470 2551 #if defined(CRAY) && ! defined(CRAY2) … … 2491 2572 for ac_func in _getb67 GETB67 getb67; do 2492 2573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2493 echo "configure:2 494: checking for $ac_func" >&52574 echo "configure:2575: checking for $ac_func" >&5 2494 2575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2495 2576 echo $ac_n "(cached) $ac_c" 1>&6 2496 2577 else 2497 2578 cat > conftest.$ac_ext <<EOF 2498 #line 2 499"configure"2579 #line 2580 "configure" 2499 2580 #include "confdefs.h" 2500 2581 /* System header to define __stub macros and hopefully few prototypes, … … 2519 2600 ; return 0; } 2520 2601 EOF 2521 if { (eval echo configure:2 522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2602 if { (eval echo configure:2603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2522 2603 rm -rf conftest* 2523 2604 eval "ac_cv_func_$ac_func=yes" … … 2546 2627 2547 2628 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 2548 echo "configure:2 549: checking stack direction for C alloca" >&52629 echo "configure:2630: checking stack direction for C alloca" >&5 2549 2630 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 2550 2631 echo $ac_n "(cached) $ac_c" 1>&6 … … 2554 2635 else 2555 2636 cat > conftest.$ac_ext <<EOF 2556 #line 2 557"configure"2637 #line 2638 "configure" 2557 2638 #include "confdefs.h" 2558 2639 find_stack_direction () … … 2573 2654 } 2574 2655 EOF 2575 if { (eval echo configure:2 576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2656 if { (eval echo configure:2657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2576 2657 then 2577 2658 ac_cv_c_stack_direction=1 … … 2596 2677 if test $ac_cv_prog_gcc = yes; then 2597 2678 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 2598 echo "configure:2 599: checking whether ${CC-cc} needs -traditional" >&52679 echo "configure:2680: checking whether ${CC-cc} needs -traditional" >&5 2599 2680 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 2600 2681 echo $ac_n "(cached) $ac_c" 1>&6 … … 2602 2683 ac_pattern="Autoconf.*'x'" 2603 2684 cat > conftest.$ac_ext <<EOF 2604 #line 26 05"configure"2685 #line 2686 "configure" 2605 2686 #include "confdefs.h" 2606 2687 #include <sgtty.h> … … 2620 2701 if test $ac_cv_prog_gcc_traditional = no; then 2621 2702 cat > conftest.$ac_ext <<EOF 2622 #line 2 623"configure"2703 #line 2704 "configure" 2623 2704 #include "confdefs.h" 2624 2705 #include <termio.h> … … 2642 2723 2643 2724 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2644 echo "configure:2 645: checking return type of signal handlers" >&52725 echo "configure:2726: checking return type of signal handlers" >&5 2645 2726 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2646 2727 echo $ac_n "(cached) $ac_c" 1>&6 2647 2728 else 2648 2729 cat > conftest.$ac_ext <<EOF 2649 #line 2 650"configure"2730 #line 2731 "configure" 2650 2731 #include "confdefs.h" 2651 2732 #include <sys/types.h> … … 2664 2745 ; return 0; } 2665 2746 EOF 2666 if { (eval echo configure:2 667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2747 if { (eval echo configure:2748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2667 2748 rm -rf conftest* 2668 2749 ac_cv_type_signal=void … … 2683 2764 2684 2765 echo $ac_n "checking for vprintf""... $ac_c" 1>&6 2685 echo "configure:2 686: checking for vprintf" >&52766 echo "configure:2767: checking for vprintf" >&5 2686 2767 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 2687 2768 echo $ac_n "(cached) $ac_c" 1>&6 2688 2769 else 2689 2770 cat > conftest.$ac_ext <<EOF 2690 #line 2 691"configure"2771 #line 2772 "configure" 2691 2772 #include "confdefs.h" 2692 2773 /* System header to define __stub macros and hopefully few prototypes, … … 2711 2792 ; return 0; } 2712 2793 EOF 2713 if { (eval echo configure:27 14: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2794 if { (eval echo configure:2795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2714 2795 rm -rf conftest* 2715 2796 eval "ac_cv_func_vprintf=yes" … … 2735 2816 if test "$ac_cv_func_vprintf" != yes; then 2736 2817 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 2737 echo "configure:2 738: checking for _doprnt" >&52818 echo "configure:2819: checking for _doprnt" >&5 2738 2819 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 2739 2820 echo $ac_n "(cached) $ac_c" 1>&6 2740 2821 else 2741 2822 cat > conftest.$ac_ext <<EOF 2742 #line 2 743"configure"2823 #line 2824 "configure" 2743 2824 #include "confdefs.h" 2744 2825 /* System header to define __stub macros and hopefully few prototypes, … … 2763 2844 ; return 0; } 2764 2845 EOF 2765 if { (eval echo configure:2 766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2846 if { (eval echo configure:2847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2766 2847 rm -rf conftest* 2767 2848 eval "ac_cv_func__doprnt=yes" … … 2790 2871 do 2791 2872 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2792 echo "configure:2 793: checking for $ac_func" >&52873 echo "configure:2874: checking for $ac_func" >&5 2793 2874 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2794 2875 echo $ac_n "(cached) $ac_c" 1>&6 2795 2876 else 2796 2877 cat > conftest.$ac_ext <<EOF 2797 #line 2 798"configure"2878 #line 2879 "configure" 2798 2879 #include "confdefs.h" 2799 2880 /* System header to define __stub macros and hopefully few prototypes, … … 2818 2899 ; return 0; } 2819 2900 EOF 2820 if { (eval echo configure:2 821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2901 if { (eval echo configure:2902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2821 2902 rm -rf conftest* 2822 2903 eval "ac_cv_func_$ac_func=yes" … … 2845 2926 do 2846 2927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2847 echo "configure:2 848: checking for $ac_func" >&52928 echo "configure:2929: checking for $ac_func" >&5 2848 2929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2849 2930 echo $ac_n "(cached) $ac_c" 1>&6 2850 2931 else 2851 2932 cat > conftest.$ac_ext <<EOF 2852 #line 2 853"configure"2933 #line 2934 "configure" 2853 2934 #include "confdefs.h" 2854 2935 /* System header to define __stub macros and hopefully few prototypes, … … 2873 2954 ; return 0; } 2874 2955 EOF 2875 if { (eval echo configure:2 876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2956 if { (eval echo configure:2957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2876 2957 rm -rf conftest* 2877 2958 eval "ac_cv_func_$ac_func=yes" … … 2904 2985 # --------------------------------------------------------------------------- 2905 2986 echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6 2906 echo "configure:29 07: checking for HP-UX needing gmalloc" >&52987 echo "configure:2988: checking for HP-UX needing gmalloc" >&5 2907 2988 if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then 2908 2989 echo "$ac_t""yes" 1>&6 … … 2917 2998 do 2918 2999 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2919 echo "configure: 2920: checking for $ac_func" >&53000 echo "configure:3001: checking for $ac_func" >&5 2920 3001 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2921 3002 echo $ac_n "(cached) $ac_c" 1>&6 2922 3003 else 2923 3004 cat > conftest.$ac_ext <<EOF 2924 #line 2925"configure"3005 #line 3006 "configure" 2925 3006 #include "confdefs.h" 2926 3007 /* System header to define __stub macros and hopefully few prototypes, … … 2945 3026 ; return 0; } 2946 3027 EOF 2947 if { (eval echo configure: 2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3028 if { (eval echo configure:3029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2948 3029 rm -rf conftest* 2949 3030 eval "ac_cv_func_$ac_func=yes" … … 2972 3053 2973 3054 echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6 2974 echo "configure: 2975: checking if malloc debugging is wanted" >&53055 echo "configure:3056: checking if malloc debugging is wanted" >&5 2975 3056 # Check whether --with-dmalloc or --without-dmalloc was given. 2976 3057 if test "${with_dmalloc+set}" = set; then … … 2993 3074 2994 3075 echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6 2995 echo "configure: 2996: checking which of rx or regex is wanted" >&53076 echo "configure:3077: checking which of rx or regex is wanted" >&5 2996 3077 # Check whether --with-regex or --without-regex was given. 2997 3078 if test "${with_regex+set}" = set; then … … 3011 3092 echo "$ac_t""rx" 1>&6 3012 3093 echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6 3013 echo "configure:30 14: checking for re_rx_search" >&53094 echo "configure:3095: checking for re_rx_search" >&5 3014 3095 if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then 3015 3096 echo $ac_n "(cached) $ac_c" 1>&6 3016 3097 else 3017 3098 cat > conftest.$ac_ext <<EOF 3018 #line 3 019"configure"3099 #line 3100 "configure" 3019 3100 #include "confdefs.h" 3020 3101 /* System header to define __stub macros and hopefully few prototypes, … … 3039 3120 ; return 0; } 3040 3121 EOF 3041 if { (eval echo configure:3 042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3122 if { (eval echo configure:3123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3042 3123 rm -rf conftest* 3043 3124 eval "ac_cv_func_re_rx_search=yes" … … 3078 3159 3079 3160 3080 echo $ac_n "checking "that the GDBM library is available"""... $ac_c" 1>&6 3081 echo "configure:3082: checking "that the GDBM library is available"" >&5 3082 cat > conftest.$ac_ext <<EOF 3083 #line 3084 "configure" 3161 3162 echo $ac_n "checking that the GDBM library is available""... $ac_c" 1>&6 3163 echo "configure:3164: checking that the GDBM library is available" >&5 3164 if test ! -z $gdbmdir ; then 3165 # look in given directory for header file 3166 if test -e $gdbmdir/include/gdbm.h ; then 3167 GDBM_INCLUDE="-I$gdbmdir/include" ; 3168 elif test -e $gdbmdir/gdbm.h ; then 3169 GDBM_INCLUDE="-I$gdbmdir" ; 3170 fi 3171 3172 # look in given directory for library 3173 if test -e $gdbmdir/libgdbm.a ; then 3174 GDBM_LIBPATH="-L$gdbmdir" ; 3175 elif test -e $gdbmdir/lib/libgdbm.a ; then 3176 GDBM_LIBPATH="-L$gdbmdir/lib" ; 3177 elif test -e $gdbmdir/.libs/libgdbm.a ; then 3178 GDBM_LIBPATH="-L$gdbmdir/.libs" ; 3179 fi 3180 3181 if test ! -z $GDBM_LIBPATH -a ! -z $GDBM_INCLUDE ; then 3182 echo "$ac_t""$gdbmdir" 1>&6 ; 3183 cat >> confdefs.h <<\EOF 3184 #define HAVE_LIBGDBM 1 3185 EOF 3186 3187 else 3188 echo "$ac_t""can't find both gdbm.h and libgdbm.a in $gdbmdir" 1>&6; 3189 echo $ac_n "checking looking for GDBM library in default locations""... $ac_c" 1>&6 3190 echo "configure:3191: checking looking for GDBM library in default locations" >&5 3191 fi 3192 fi 3193 3194 if test -z $GDBM_INCLUDE ; then 3195 # try in system directory 3196 cat > conftest.$ac_ext <<EOF 3197 #line 3198 "configure" 3084 3198 #include "confdefs.h" 3085 3199 #include <gdbm.h> … … 3089 3203 ; return 0; } 3090 3204 EOF 3091 if { (eval echo configure:3 092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3205 if { (eval echo configure:3206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3092 3206 rm -rf conftest* 3093 3207 success=yes … … 3097 3211 rm -rf conftest* 3098 3212 success=no 3099 3100 fi 3101 rm -f conftest* 3102 echo "$ac_t""$success" 1>&6 3103 if test $success = "no"; then 3104 { echo "configure: error: "GDBM Library not available - cannot install"" 1>&2; exit 1; } 3105 fi 3106 3107 echo $ac_n "checking "that Perl 5 is available"""... $ac_c" 1>&6 3108 echo "configure:3109: checking "that Perl 5 is available"" >&5 3213 3214 fi 3215 rm -f conftest* 3216 echo "$ac_t""$success" 1>&6 3217 if test $success = "no"; then 3218 { echo "configure: error: GDBM Library not available - cannot install" 1>&2; exit 1; } 3219 fi 3220 GDBM_LIBPATH= 3221 GDBM_INCLUDE= 3222 fi 3223 3224 3225 3226 3227 echo $ac_n "checking that Perl 5 is available""... $ac_c" 1>&6 3228 echo "configure:3229: checking that Perl 5 is available" >&5 3109 3229 success="no" 3110 3230 pl_path="$PATH" … … 3136 3256 success=no 3137 3257 echo $ac_n "checking "whether STL library has known faults"""... $ac_c" 1>&6 3138 echo "configure:3 139: checking "whether STL library has known faults"" >&53258 echo "configure:3259: checking "whether STL library has known faults"" >&5 3139 3259 3140 3260 cat > conftest.$ac_ext <<EOF 3141 #line 3 142 "configure"3261 #line 3262 "configure" 3142 3262 #include "confdefs.h" 3143 3263 #include <vector> … … 3147 3267 ; return 0; } 3148 3268 EOF 3149 if { (eval echo configure:3 150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3269 if { (eval echo configure:3270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3150 3270 rm -rf conftest* 3151 3271 success=yes … … 3158 3278 if test $success = "no"; then 3159 3279 cat > conftest.$ac_ext <<EOF 3160 #line 3 161 "configure"3280 #line 3281 "configure" 3161 3281 #include "confdefs.h" 3162 3282 #include <vector.h> … … 3166 3286 ; return 0; } 3167 3287 EOF 3168 if { (eval echo configure:3 169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3288 if { (eval echo configure:3289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3169 3289 rm -rf conftest* 3170 3290 success="yes" … … 3178 3298 if test $success = "no"; then 3179 3299 cat > conftest.$ac_ext <<EOF 3180 #line 3 181 "configure"3300 #line 3301 "configure" 3181 3301 #include "confdefs.h" 3182 3302 #include <ospace\\std\\vector> … … 3186 3306 ; return 0; } 3187 3307 EOF 3188 if { (eval echo configure:3 189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3308 if { (eval echo configure:3309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3189 3309 rm -rf conftest* 3190 3310 success="yes" … … 3213 3333 3214 3334 # --------------------------------------------------------------------------- 3215 3335 ac_configure_args="$ac_configure_args --host=$host --target=$target" 3216 3336 subdirs="packages" 3217 3337 … … 3365 3485 s%@AWK@%$AWK%g 3366 3486 s%@YACC@%$YACC%g 3487 s%@host@%$host%g 3488 s%@host_alias@%$host_alias%g 3489 s%@host_cpu@%$host_cpu%g 3490 s%@host_vendor@%$host_vendor%g 3491 s%@host_os@%$host_os%g 3492 s%@target@%$target%g 3493 s%@target_alias@%$target_alias%g 3494 s%@target_cpu@%$target_cpu%g 3495 s%@target_vendor@%$target_vendor%g 3496 s%@target_os@%$target_os%g 3497 s%@build@%$build%g 3498 s%@build_alias@%$build_alias%g 3499 s%@build_cpu@%$build_cpu%g 3500 s%@build_vendor@%$build_vendor%g 3501 s%@build_os@%$build_os%g 3367 3502 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 3368 3503 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g … … 3377 3512 s%@ALLOCA@%$ALLOCA%g 3378 3513 s%@LIBOBJS@%$LIBOBJS%g 3514 s%@GDBM_LIBPATH@%$GDBM_LIBPATH%g 3515 s%@GDBM_INCLUDE@%$GDBM_INCLUDE%g 3379 3516 s%@gsdlos@%$gsdlos%g 3380 3517 s%@subdirs@%$subdirs%g -
trunk/gsdl/configure.in
r2214 r2279 2 2 AC_INIT(lib/text_t.h) 3 3 AC_CONFIG_HEADER(config.h) 4 AC_ARG_PROGRAM5 4 6 5 PACKAGE=gsdl … … 39 38 AC_SUBST(USE_Z3950) 40 39 40 dnl 41 dnl look for libgdbm if not in standard location 42 dnl 43 AC_ARG_WITH(gdbm, [ --with-gdbm=dir Use local gdbm library and headers], gdbmdir=$withval) 44 45 46 41 47 dnl Checks for programs. 42 48 LDFLAGS= … … 51 57 AC_PROG_AWK 52 58 AC_PROG_YACC 59 dnl get $target_cpu, $target_vendor, and $target_os 60 dnl (as well as host_*) 61 AC_CANONICAL_SYSTEM 62 dnl do we actually want this? It adds a prefix based on host, system etc 63 dnl AC_ARG_PROGRAM 53 64 AC_PROG_INSTALL 54 65 AC_PROG_LN_S … … 174 185 dnl Check that the GDBM library is available 175 186 dnl 176 AC_MSG_CHECKING("that the GDBM library is available") 177 AC_TRY_COMPILE( 178 [#include <gdbm.h> 187 dnl check libgdbm manually, in case it's not in the standard location. 188 189 AC_MSG_CHECKING(that the GDBM library is available) 190 if test ! -z $gdbmdir ; then 191 # look in given directory for header file 192 if test -e $gdbmdir/include/gdbm.h ; then 193 GDBM_INCLUDE="-I$gdbmdir/include" ; 194 elif test -e $gdbmdir/gdbm.h ; then 195 GDBM_INCLUDE="-I$gdbmdir" ; 196 fi 197 198 # look in given directory for library 199 if test -e $gdbmdir/libgdbm.a ; then 200 GDBM_LIBPATH="-L$gdbmdir" ; 201 elif test -e $gdbmdir/lib/libgdbm.a ; then 202 GDBM_LIBPATH="-L$gdbmdir/lib" ; 203 elif test -e $gdbmdir/.libs/libgdbm.a ; then 204 GDBM_LIBPATH="-L$gdbmdir/.libs" ; 205 fi 206 207 if test ! -z $GDBM_LIBPATH -a ! -z $GDBM_INCLUDE ; then 208 AC_MSG_RESULT($gdbmdir) ; 209 AC_DEFINE(HAVE_LIBGDBM , 1) 210 else 211 AC_MSG_RESULT(can't find both gdbm.h and libgdbm.a in $gdbmdir); 212 AC_MSG_CHECKING( looking for GDBM library in default locations) 213 fi 214 fi 215 216 if test -z $GDBM_INCLUDE ; then 217 # try in system directory 218 AC_TRY_COMPILE( 219 [#include <gdbm.h> 179 220 ], 180 [], 181 success=yes, 182 success=no 183 ) 184 AC_MSG_RESULT($success) 185 if test $success = "no"; then 186 AC_MSG_ERROR("GDBM Library not available - cannot install") 187 fi 221 [], 222 success=yes, 223 success=no 224 ) 225 AC_MSG_RESULT($success) 226 if test $success = "no"; then 227 AC_MSG_ERROR(GDBM Library not available - cannot install) 228 fi 229 GDBM_LIBPATH= 230 GDBM_INCLUDE= 231 fi 232 233 AC_SUBST(GDBM_LIBPATH) 234 AC_SUBST(GDBM_INCLUDE) 188 235 189 236 dnl 190 237 dnl Now check that Perl is actually around, and can be found 191 238 dnl 192 AC_MSG_CHECKING( "that Perl 5 is available")239 AC_MSG_CHECKING(that Perl 5 is available) 193 240 success="no" 194 241 pl_path="$PATH" … … 282 329 283 330 # --------------------------------------------------------------------------- 284 331 dnl for Darwin, as our packages don't (yet) correctly guess our system type. 332 ac_configure_args="$ac_configure_args --host=$host --target=$target" 285 333 AC_CONFIG_SUBDIRS(packages) 286 334
Note:
See TracChangeset
for help on using the changeset viewer.