Changeset 8c28d07 in git for factory/configure
- Timestamp:
- Nov 5, 1997, 4:48:20 PM (27 years ago)
- Branches:
- (u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
- Children:
- 07cdd8f309308c2b275bf563eb4ba9ac82ea1fa2
- Parents:
- 18e1f6d6bee67452a19651f1135080a8e1feda25
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/configure
r18e1f6 r8c28d07 561 561 # Do not change version here!!! 562 562 # 563 factory_version="1.3 a"563 factory_version="1.3b" 564 564 factory_configuration="'$ac_configure_args' in `pwd`" 565 565 … … 996 996 echo "$ac_t""$CXXCPP" 1>&6 997 997 998 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 999 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1000 echo $ac_n "(cached) $ac_c" 1>&6 1001 else 1002 rm -f conftestdata 1003 if ln -s X conftestdata 2>/dev/null 1004 then 1005 rm -f conftestdata 1006 ac_cv_prog_LN_S="ln -s" 1007 else 1008 ac_cv_prog_LN_S=ln 1009 fi 1010 fi 1011 LN_S="$ac_cv_prog_LN_S" 1012 if test "$ac_cv_prog_LN_S" = "ln -s"; then 1013 echo "$ac_t""yes" 1>&6 1014 else 1015 echo "$ac_t""no" 1>&6 1016 fi 1017 998 1018 # Find a good install program. We prefer a C program (faster), 999 1019 # so one script is as good as another. But avoid the broken or … … 1137 1157 fi 1138 1158 1159 # Extract the first word of "m4", so it can be a program name with args. 1160 set dummy m4; ac_word=$2 1161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1162 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then 1163 echo $ac_n "(cached) $ac_c" 1>&6 1164 else 1165 if test -n "$M4"; then 1166 ac_cv_prog_M4="$M4" # Let the user override the test. 1167 else 1168 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1169 for ac_dir in $PATH; do 1170 test -z "$ac_dir" && ac_dir=. 1171 if test -f $ac_dir/$ac_word; then 1172 ac_cv_prog_M4="m4" 1173 break 1174 fi 1175 done 1176 IFS="$ac_save_ifs" 1177 test -z "$ac_cv_prog_M4" && ac_cv_prog_M4="where-is-your-m4" 1178 fi 1179 fi 1180 M4="$ac_cv_prog_M4" 1181 if test -n "$M4"; then 1182 echo "$ac_t""$M4" 1>&6 1183 else 1184 echo "$ac_t""no" 1>&6 1185 fi 1186 1139 1187 # Extract the first word of "bison", so it can be a program name with args. 1140 1188 set dummy bison; ac_word=$2 … … 1247 1295 LIBS="-lgmp $LIBS" 1248 1296 cat > conftest.$ac_ext <<EOF 1249 #line 12 50"configure"1297 #line 1298 "configure" 1250 1298 #include "confdefs.h" 1251 1299 /* Override any gcc2 internal prototype to avoid an error. */ … … 1259 1307 ; return 0; } 1260 1308 EOF 1261 if { (eval echo configure:1 262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1309 if { (eval echo configure:1310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1262 1310 rm -rf conftest* 1263 1311 eval "ac_cv_lib_$ac_lib_var=yes" … … 1281 1329 else 1282 1330 echo "$ac_t""no" 1>&6 1331 { echo "configure: error: libgmp.a not found. Use option --with-gmp to specify path" 1>&2; exit 1; } 1283 1332 fi 1284 1333 … … 1292 1341 LIBS="-lm $LIBS" 1293 1342 cat > conftest.$ac_ext <<EOF 1294 #line 1 295"configure"1343 #line 1344 "configure" 1295 1344 #include "confdefs.h" 1296 1345 /* Override any gcc2 internal prototype to avoid an error. */ … … 1304 1353 ; return 0; } 1305 1354 EOF 1306 if { (eval echo configure:13 07: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1355 if { (eval echo configure:1356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1307 1356 rm -rf conftest* 1308 1357 eval "ac_cv_lib_$ac_lib_var=yes" … … 1326 1375 else 1327 1376 echo "$ac_t""no" 1>&6 1377 { echo "configure: error: libm.a not found" 1>&2; exit 1; } 1378 fi 1379 1380 echo $ac_n "checking for -lg++""... $ac_c" 1>&6 1381 ac_lib_var=`echo g++'_'strsignal | tr './+\055' '__p_'` 1382 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1383 echo $ac_n "(cached) $ac_c" 1>&6 1384 else 1385 ac_save_LIBS="$LIBS" 1386 LIBS="-lg++ $LIBS" 1387 cat > conftest.$ac_ext <<EOF 1388 #line 1389 "configure" 1389 #include "confdefs.h" 1390 /* Override any gcc2 internal prototype to avoid an error. */ 1391 /* We use char because int might match the return type of a gcc2 1392 builtin and then its argument prototype would still apply. */ 1393 char strsignal(); 1394 1395 int main() { return 0; } 1396 int t() { 1397 strsignal() 1398 ; return 0; } 1399 EOF 1400 if { (eval echo configure:1401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1401 rm -rf conftest* 1402 eval "ac_cv_lib_$ac_lib_var=yes" 1403 else 1404 rm -rf conftest* 1405 eval "ac_cv_lib_$ac_lib_var=no" 1406 fi 1407 rm -f conftest* 1408 LIBS="$ac_save_LIBS" 1409 1410 fi 1411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1412 echo "$ac_t""yes" 1>&6 1413 ac_tr_lib=HAVE_LIB`echo g++ | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 1414 cat >> confdefs.h <<EOF 1415 #define $ac_tr_lib 1 1416 EOF 1417 1418 LIBS="-lg++ $LIBS" 1419 1420 else 1421 echo "$ac_t""no" 1>&6 1422 echo "configure: warning: libg++ not found. 1423 You will not be able to build the Factory Test Environment 1424 (though Factory itself should compile)" 1>&2 1328 1425 fi 1329 1426 … … 1348 1445 else 1349 1446 cat > conftest.$ac_ext <<EOF 1350 #line 1 351"configure"1447 #line 1448 "configure" 1351 1448 #include "confdefs.h" 1352 1449 #include <$ac_hdr> 1353 1450 EOF 1354 1451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1355 { (eval echo configure:1 356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1452 { (eval echo configure:1453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1356 1453 ac_err=`grep -v '^ *+' conftest.out` 1357 1454 if test -z "$ac_err"; then … … 1388 1485 else 1389 1486 cat > conftest.$ac_ext <<EOF 1390 #line 1 391"configure"1487 #line 1488 "configure" 1391 1488 #include "confdefs.h" 1392 1489 #include <$ac_hdr> 1393 1490 EOF 1394 1491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1395 { (eval echo configure:1 396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1492 { (eval echo configure:1493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1396 1493 ac_err=`grep -v '^ *+' conftest.out` 1397 1494 if test -z "$ac_err"; then … … 1414 1511 else 1415 1512 echo "$ac_t""no" 1>&6 1416 { echo "configure: error: standardC header files not found" 1>&2; exit 1; }1513 { echo "configure: error: C header files not found" 1>&2; exit 1; } 1417 1514 fi 1418 1515 done … … 1428 1525 else 1429 1526 cat > conftest.$ac_ext <<EOF 1430 #line 1 431"configure"1527 #line 1528 "configure" 1431 1528 #include "confdefs.h" 1432 1529 #include <$ac_hdr> 1433 1530 EOF 1434 1531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1435 { (eval echo configure:1 436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1532 { (eval echo configure:1533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1436 1533 ac_err=`grep -v '^ *+' conftest.out` 1437 1534 if test -z "$ac_err"; then … … 1466 1563 else 1467 1564 cat > conftest.$ac_ext <<EOF 1468 #line 1 469"configure"1565 #line 1566 "configure" 1469 1566 #include "confdefs.h" 1470 1567 #include <$ac_hdr> 1471 1568 EOF 1472 1569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1473 { (eval echo configure:1 474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1570 { (eval echo configure:1571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1474 1571 ac_err=`grep -v '^ *+' conftest.out` 1475 1572 if test -z "$ac_err"; then … … 1493 1590 echo "$ac_t""no" 1>&6 1494 1591 { echo "configure: error: standard C header files not found" 1>&2; exit 1; } 1592 fi 1593 done 1594 1595 1596 # since the FTE will compile only with stream IO enabled we will not 1597 # check for the necessary header files if stream IO is disabled 1598 for ac_hdr in stdarg.h signal.h errno.h unistd.h GetOpt.h 1599 do 1600 ac_safe=`echo "$ac_hdr" | tr './\055' '___'` 1601 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1602 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1603 echo $ac_n "(cached) $ac_c" 1>&6 1604 else 1605 cat > conftest.$ac_ext <<EOF 1606 #line 1607 "configure" 1607 #include "confdefs.h" 1608 #include <$ac_hdr> 1609 EOF 1610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1611 { (eval echo configure:1612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1612 ac_err=`grep -v '^ *+' conftest.out` 1613 if test -z "$ac_err"; then 1614 rm -rf conftest* 1615 eval "ac_cv_header_$ac_safe=yes" 1616 else 1617 echo "$ac_err" >&5 1618 rm -rf conftest* 1619 eval "ac_cv_header_$ac_safe=no" 1620 fi 1621 rm -f conftest* 1622 fi 1623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1624 echo "$ac_t""yes" 1>&6 1625 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'` 1626 cat >> confdefs.h <<EOF 1627 #define $ac_tr_hdr 1 1628 EOF 1629 1630 else 1631 echo "$ac_t""no" 1>&6 1632 echo "configure: warning: C/C++ header files not found. 1633 You will not be able to build the Factory Test Environment 1634 (though Factory itself should compile)" 1>&2 1495 1635 fi 1496 1636 done … … 1507 1647 else 1508 1648 cat > conftest.$ac_ext <<EOF 1509 #line 1 510 "configure"1649 #line 1650 "configure" 1510 1650 #include "confdefs.h" 1511 1651 #include <$ac_hdr> 1512 1652 EOF 1513 1653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1514 { (eval echo configure:1 515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1654 { (eval echo configure:1655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1515 1655 ac_err=`grep -v '^ *+' conftest.out` 1516 1656 if test -z "$ac_err"; then … … 1565 1705 else 1566 1706 cat > conftest.$ac_ext <<EOF 1567 #line 1 568 "configure"1707 #line 1708 "configure" 1568 1708 #include "confdefs.h" 1569 1709 main(){return(0);} 1570 1710 EOF 1571 { (eval echo configure:1 572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }1711 { (eval echo configure:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 1572 1712 if test -s conftest && (./conftest; exit) 2>/dev/null; then 1573 1713 ac_cv_c_cross=no … … 1597 1737 else 1598 1738 cat > conftest.$ac_ext <<EOF 1599 #line 1 600 "configure"1739 #line 1740 "configure" 1600 1740 #include "confdefs.h" 1601 1741 … … 1647 1787 ; return 0; } 1648 1788 EOF 1649 if { (eval echo configure:1 650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1789 if { (eval echo configure:1790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1650 1790 rm -rf conftest* 1651 1791 ac_cv_c_const=yes … … 1673 1813 for ac_kw in inline __inline__ __inline; do 1674 1814 cat > conftest.$ac_ext <<EOF 1675 #line 1 676 "configure"1815 #line 1816 "configure" 1676 1816 #include "confdefs.h" 1677 1817 … … 1681 1821 ; return 0; } 1682 1822 EOF 1683 if { (eval echo configure:1 684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1823 if { (eval echo configure:1824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1684 1824 rm -rf conftest* 1685 1825 ac_cv_c_inline=$ac_kw; break … … 1714 1854 else 1715 1855 cat > conftest.$ac_ext <<EOF 1716 #line 1 717 "configure"1856 #line 1857 "configure" 1717 1857 #include "confdefs.h" 1718 1858 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); } 1719 1859 EOF 1720 { (eval echo configure:1 721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }1860 { (eval echo configure:1861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 1721 1861 if test -s conftest && (./conftest; exit) 2>/dev/null; then 1722 1862 ac_cv_shift=yes … … 1801 1941 # ARFLAGS 1802 1942 test "${ARFLAGS+set}" = set || ARFLAGS=cr 1943 1944 # M4FLAGS 1945 test "${M4FLAGS+set}" = set || M4FLAGS= 1803 1946 1804 1947 # Singular … … 1976 2119 1977 2120 2121 1978 2122 cat >> confdefs.h <<EOF 1979 2123 #define FACTORYVERSION "$factory_version" … … 2076 2220 ac_given_INSTALL="$INSTALL" 2077 2221 2078 trap 'rm -fr `echo "GNUmakefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 152222 trap 'rm -fr `echo "GNUmakefile ftest/GNUmakefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 2079 2223 EOF 2080 2224 cat >> $CONFIG_STATUS <<EOF … … 2110 2254 s%@CPP@%$CPP%g 2111 2255 s%@CXXCPP@%$CXXCPP%g 2256 s%@LN_S@%$LN_S%g 2112 2257 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 2113 2258 s%@INSTALL_DATA@%$INSTALL_DATA%g … … 2115 2260 s%@SET_MAKE@%$SET_MAKE%g 2116 2261 s%@AR@%$AR%g 2262 s%@M4@%$M4%g 2117 2263 s%@BISON@%$BISON%g 2118 2264 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g … … 2123 2269 s%@libfactory@%$libfactory%g 2124 2270 s%@ARFLAGS@%$ARFLAGS%g 2271 s%@M4FLAGS@%$M4FLAGS%g 2125 2272 s%@MAKEHEADERFLAGS@%$MAKEHEADERFLAGS%g 2126 2273 s%@factorysrc@%$factorysrc%g … … 2142 2289 cat >> $CONFIG_STATUS <<EOF 2143 2290 2144 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile "}2291 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile ftest/GNUmakefile"} 2145 2292 EOF 2146 2293 cat >> $CONFIG_STATUS <<\EOF
Note: See TracChangeset
for help on using the changeset viewer.