Changeset 1945 in orxonox.OLD for orxonox/branches/automake/configure
- Timestamp:
- Jun 15, 2004, 1:31:14 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/automake/configure
r1944 r1945 312 312 #endif" 313 313 314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC ALLOCACPP EGREP LIBOBJS LTLIBOBJS'314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBOBJS LTLIBOBJS' 315 315 ac_subst_files='' 316 316 … … 841 841 842 842 cat <<\_ACEOF 843 844 Program names: 845 --program-prefix=PREFIX prepend PREFIX to installed program names 846 --program-suffix=SUFFIX append SUFFIX to installed program names 847 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 843 848 _ACEOF 844 849 fi … … 849 854 esac 850 855 cat <<\_ACEOF 856 857 Optional Features: 858 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 859 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 860 --disable-dependency-tracking Speeds up one-time builds 861 --enable-dependency-tracking Do not reject slow dependency extractors 851 862 852 863 Some influential environment variables: … … 1313 1324 ac_config_headers="$ac_config_headers config.h" 1314 1325 1326 am__api_version="1.7" 1327 ac_aux_dir= 1328 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1329 if test -f $ac_dir/install-sh; then 1330 ac_aux_dir=$ac_dir 1331 ac_install_sh="$ac_aux_dir/install-sh -c" 1332 break 1333 elif test -f $ac_dir/install.sh; then 1334 ac_aux_dir=$ac_dir 1335 ac_install_sh="$ac_aux_dir/install.sh -c" 1336 break 1337 elif test -f $ac_dir/shtool; then 1338 ac_aux_dir=$ac_dir 1339 ac_install_sh="$ac_aux_dir/shtool install -c" 1340 break 1341 fi 1342 done 1343 if test -z "$ac_aux_dir"; then 1344 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1345 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1346 { (exit 1); exit 1; }; } 1347 fi 1348 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1349 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1350 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1351 1352 # Find a good install program. We prefer a C program (faster), 1353 # so one script is as good as another. But avoid the broken or 1354 # incompatible versions: 1355 # SysV /etc/install, /usr/sbin/install 1356 # SunOS /usr/etc/install 1357 # IRIX /sbin/install 1358 # AIX /bin/install 1359 # AmigaOS /C/install, which installs bootblocks on floppy discs 1360 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1361 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 1362 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1363 # OS/2's system install, which has a completely different semantic 1364 # ./install, which can be erroneously created by make from ./install.sh. 1365 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1366 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1367 if test -z "$INSTALL"; then 1368 if test "${ac_cv_path_install+set}" = set; then 1369 echo $ECHO_N "(cached) $ECHO_C" >&6 1370 else 1371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1372 for as_dir in $PATH 1373 do 1374 IFS=$as_save_IFS 1375 test -z "$as_dir" && as_dir=. 1376 # Account for people who put trailing slashes in PATH elements. 1377 case $as_dir/ in 1378 ./ | .// | /cC/* | \ 1379 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1380 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1381 /usr/ucb/* ) ;; 1382 *) 1383 # OSF1 and SCO ODT 3.0 have their own names for install. 1384 # Don't use installbsd from OSF since it installs stuff as root 1385 # by default. 1386 for ac_prog in ginstall scoinst install; do 1387 for ac_exec_ext in '' $ac_executable_extensions; do 1388 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1389 if test $ac_prog = install && 1390 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1391 # AIX install. It has an incompatible calling convention. 1392 : 1393 elif test $ac_prog = install && 1394 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1395 # program-specific install script used by HP pwplus--don't use. 1396 : 1397 else 1398 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1399 break 3 1400 fi 1401 fi 1402 done 1403 done 1404 ;; 1405 esac 1406 done 1407 1408 1409 fi 1410 if test "${ac_cv_path_install+set}" = set; then 1411 INSTALL=$ac_cv_path_install 1412 else 1413 # As a last resort, use the slow shell script. We don't cache a 1414 # path for INSTALL within a source directory, because that will 1415 # break other packages using the cache if that directory is 1416 # removed, or if the path is relative. 1417 INSTALL=$ac_install_sh 1418 fi 1419 fi 1420 echo "$as_me:$LINENO: result: $INSTALL" >&5 1421 echo "${ECHO_T}$INSTALL" >&6 1422 1423 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1424 # It thinks the first close brace ends the variable substitution. 1425 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1426 1427 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1428 1429 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1430 1431 echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1432 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1433 # Just in case 1434 sleep 1 1435 echo timestamp > conftest.file 1436 # Do `set' in a subshell so we don't clobber the current shell's 1437 # arguments. Must try -L first in case configure is actually a 1438 # symlink; some systems play weird games with the mod time of symlinks 1439 # (eg FreeBSD returns the mod time of the symlink's containing 1440 # directory). 1441 if ( 1442 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1443 if test "$*" = "X"; then 1444 # -L didn't work. 1445 set X `ls -t $srcdir/configure conftest.file` 1446 fi 1447 rm -f conftest.file 1448 if test "$*" != "X $srcdir/configure conftest.file" \ 1449 && test "$*" != "X conftest.file $srcdir/configure"; then 1450 1451 # If neither matched, then we have a broken ls. This can happen 1452 # if, for instance, CONFIG_SHELL is bash and it inherits a 1453 # broken ls alias from the environment. This has actually 1454 # happened. Such a system could not be considered "sane". 1455 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1456 alias in your environment" >&5 1457 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1458 alias in your environment" >&2;} 1459 { (exit 1); exit 1; }; } 1460 fi 1461 1462 test "$2" = conftest.file 1463 ) 1464 then 1465 # Ok. 1466 : 1467 else 1468 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1469 Check your system clock" >&5 1470 echo "$as_me: error: newly created file is older than distributed files! 1471 Check your system clock" >&2;} 1472 { (exit 1); exit 1; }; } 1473 fi 1474 echo "$as_me:$LINENO: result: yes" >&5 1475 echo "${ECHO_T}yes" >&6 1476 test "$program_prefix" != NONE && 1477 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1478 # Use a double $ so make ignores it. 1479 test "$program_suffix" != NONE && 1480 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1481 # Double any \ or $. echo might interpret backslashes. 1482 # By default was `s,x,x', remove it if useless. 1483 cat <<\_ACEOF >conftest.sed 1484 s/[\\$]/&&/g;s/;s,x,x,$// 1485 _ACEOF 1486 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1487 rm conftest.sed 1488 1489 1490 # expand $ac_aux_dir to an absolute path 1491 am_aux_dir=`cd $ac_aux_dir && pwd` 1492 1493 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1494 # Use eval to expand $SHELL 1495 if eval "$MISSING --run true"; then 1496 am_missing_run="$MISSING --run " 1497 else 1498 am_missing_run= 1499 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1500 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1501 fi 1502 1503 for ac_prog in gawk mawk nawk awk 1504 do 1505 # Extract the first word of "$ac_prog", so it can be a program name with args. 1506 set dummy $ac_prog; ac_word=$2 1507 echo "$as_me:$LINENO: checking for $ac_word" >&5 1508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1509 if test "${ac_cv_prog_AWK+set}" = set; then 1510 echo $ECHO_N "(cached) $ECHO_C" >&6 1511 else 1512 if test -n "$AWK"; then 1513 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1514 else 1515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1516 for as_dir in $PATH 1517 do 1518 IFS=$as_save_IFS 1519 test -z "$as_dir" && as_dir=. 1520 for ac_exec_ext in '' $ac_executable_extensions; do 1521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1522 ac_cv_prog_AWK="$ac_prog" 1523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1524 break 2 1525 fi 1526 done 1527 done 1528 1529 fi 1530 fi 1531 AWK=$ac_cv_prog_AWK 1532 if test -n "$AWK"; then 1533 echo "$as_me:$LINENO: result: $AWK" >&5 1534 echo "${ECHO_T}$AWK" >&6 1535 else 1536 echo "$as_me:$LINENO: result: no" >&5 1537 echo "${ECHO_T}no" >&6 1538 fi 1539 1540 test -n "$AWK" && break 1541 done 1542 1543 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1544 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1545 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1546 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1547 echo $ECHO_N "(cached) $ECHO_C" >&6 1548 else 1549 cat >conftest.make <<\_ACEOF 1550 all: 1551 @echo 'ac_maketemp="$(MAKE)"' 1552 _ACEOF 1553 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1554 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1555 if test -n "$ac_maketemp"; then 1556 eval ac_cv_prog_make_${ac_make}_set=yes 1557 else 1558 eval ac_cv_prog_make_${ac_make}_set=no 1559 fi 1560 rm -f conftest.make 1561 fi 1562 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1563 echo "$as_me:$LINENO: result: yes" >&5 1564 echo "${ECHO_T}yes" >&6 1565 SET_MAKE= 1566 else 1567 echo "$as_me:$LINENO: result: no" >&5 1568 echo "${ECHO_T}no" >&6 1569 SET_MAKE="MAKE=${MAKE-make}" 1570 fi 1571 1572 rm -rf .tst 2>/dev/null 1573 mkdir .tst 2>/dev/null 1574 if test -d .tst; then 1575 am__leading_dot=. 1576 else 1577 am__leading_dot=_ 1578 fi 1579 rmdir .tst 2>/dev/null 1580 1581 # test to see if srcdir already configured 1582 if test "`cd $srcdir && pwd`" != "`pwd`" && 1583 test -f $srcdir/config.status; then 1584 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1585 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1586 { (exit 1); exit 1; }; } 1587 fi 1588 1589 # test whether we have cygpath 1590 if test -z "$CYGPATH_W"; then 1591 if (cygpath --version) >/dev/null 2>/dev/null; then 1592 CYGPATH_W='cygpath -w' 1593 else 1594 CYGPATH_W=echo 1595 fi 1596 fi 1597 1598 1599 # Define the identity of the package. 1600 PACKAGE='full-package-name' 1601 VERSION='VERSION' 1602 1603 1604 cat >>confdefs.h <<_ACEOF 1605 #define PACKAGE "$PACKAGE" 1606 _ACEOF 1607 1608 1609 cat >>confdefs.h <<_ACEOF 1610 #define VERSION "$VERSION" 1611 _ACEOF 1612 1613 # Some tools Automake needs. 1614 1615 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1616 1617 1618 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1619 1620 1621 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1622 1623 1624 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1625 1626 1627 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1628 1629 1630 AMTAR=${AMTAR-"${am_missing_run}tar"} 1631 1632 install_sh=${install_sh-"$am_aux_dir/install-sh"} 1633 1634 # Installed binaries are usually stripped using `strip' when the user 1635 # run `make install-strip'. However `strip' might not be the right 1636 # tool to use in cross-compilation environments, therefore Automake 1637 # will honor the `STRIP' environment variable to overrule this program. 1638 if test "$cross_compiling" != no; then 1639 if test -n "$ac_tool_prefix"; then 1640 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1641 set dummy ${ac_tool_prefix}strip; ac_word=$2 1642 echo "$as_me:$LINENO: checking for $ac_word" >&5 1643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1644 if test "${ac_cv_prog_STRIP+set}" = set; then 1645 echo $ECHO_N "(cached) $ECHO_C" >&6 1646 else 1647 if test -n "$STRIP"; then 1648 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1649 else 1650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1651 for as_dir in $PATH 1652 do 1653 IFS=$as_save_IFS 1654 test -z "$as_dir" && as_dir=. 1655 for ac_exec_ext in '' $ac_executable_extensions; do 1656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1657 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1659 break 2 1660 fi 1661 done 1662 done 1663 1664 fi 1665 fi 1666 STRIP=$ac_cv_prog_STRIP 1667 if test -n "$STRIP"; then 1668 echo "$as_me:$LINENO: result: $STRIP" >&5 1669 echo "${ECHO_T}$STRIP" >&6 1670 else 1671 echo "$as_me:$LINENO: result: no" >&5 1672 echo "${ECHO_T}no" >&6 1673 fi 1674 1675 fi 1676 if test -z "$ac_cv_prog_STRIP"; then 1677 ac_ct_STRIP=$STRIP 1678 # Extract the first word of "strip", so it can be a program name with args. 1679 set dummy strip; ac_word=$2 1680 echo "$as_me:$LINENO: checking for $ac_word" >&5 1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1682 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1683 echo $ECHO_N "(cached) $ECHO_C" >&6 1684 else 1685 if test -n "$ac_ct_STRIP"; then 1686 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1687 else 1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1689 for as_dir in $PATH 1690 do 1691 IFS=$as_save_IFS 1692 test -z "$as_dir" && as_dir=. 1693 for ac_exec_ext in '' $ac_executable_extensions; do 1694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1695 ac_cv_prog_ac_ct_STRIP="strip" 1696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1697 break 2 1698 fi 1699 done 1700 done 1701 1702 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1703 fi 1704 fi 1705 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1706 if test -n "$ac_ct_STRIP"; then 1707 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1708 echo "${ECHO_T}$ac_ct_STRIP" >&6 1709 else 1710 echo "$as_me:$LINENO: result: no" >&5 1711 echo "${ECHO_T}no" >&6 1712 fi 1713 1714 STRIP=$ac_ct_STRIP 1715 else 1716 STRIP="$ac_cv_prog_STRIP" 1717 fi 1718 1719 fi 1720 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1721 1722 # We need awk for the "check" target. The system "awk" is bad on 1723 # some platforms. 1724 1725 1726 1315 1727 1316 1728 # Checks for programs. … … 1870 2282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1871 2283 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2284 DEPDIR="${am__leading_dot}deps" 2285 2286 ac_config_commands="$ac_config_commands depfiles" 2287 2288 2289 am_make=${MAKE-make} 2290 cat > confinc << 'END' 2291 am__doit: 2292 @echo done 2293 .PHONY: am__doit 2294 END 2295 # If we don't find an include directive, just comment out the code. 2296 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2297 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2298 am__include="#" 2299 am__quote= 2300 _am_result=none 2301 # First try GNU make style include. 2302 echo "include confinc" > confmf 2303 # We grep out `Entering directory' and `Leaving directory' 2304 # messages which can occur if `w' ends up in MAKEFLAGS. 2305 # In particular we don't look at `^make:' because GNU make might 2306 # be invoked under some other name (usually "gmake"), in which 2307 # case it prints its new name instead of `make'. 2308 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2309 am__include=include 2310 am__quote= 2311 _am_result=GNU 2312 fi 2313 # Now try BSD make style include. 2314 if test "$am__include" = "#"; then 2315 echo '.include "confinc"' > confmf 2316 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2317 am__include=.include 2318 am__quote="\"" 2319 _am_result=BSD 2320 fi 2321 fi 2322 2323 2324 echo "$as_me:$LINENO: result: $_am_result" >&5 2325 echo "${ECHO_T}$_am_result" >&6 2326 rm -f confinc confmf 2327 2328 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2329 if test "${enable_dependency_tracking+set}" = set; then 2330 enableval="$enable_dependency_tracking" 2331 2332 fi; 2333 if test "x$enable_dependency_tracking" != xno; then 2334 am_depcomp="$ac_aux_dir/depcomp" 2335 AMDEPBACKSLASH='\' 2336 fi 2337 2338 2339 if test "x$enable_dependency_tracking" != xno; then 2340 AMDEP_TRUE= 2341 AMDEP_FALSE='#' 2342 else 2343 AMDEP_TRUE='#' 2344 AMDEP_FALSE= 2345 fi 2346 2347 2348 2349 2350 depcc="$CXX" am_compiler_list= 2351 2352 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2353 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2354 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 2355 echo $ECHO_N "(cached) $ECHO_C" >&6 2356 else 2357 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2358 # We make a subdir and do the tests there. Otherwise we can end up 2359 # making bogus files that we don't know about and never remove. For 2360 # instance it was reported that on HP-UX the gcc test will end up 2361 # making a dummy file named `D' -- because `-MD' means `put the output 2362 # in D'. 2363 mkdir conftest.dir 2364 # Copy depcomp to subdir because otherwise we won't find it if we're 2365 # using a relative directory. 2366 cp "$am_depcomp" conftest.dir 2367 cd conftest.dir 2368 # We will build objects and dependencies in a subdirectory because 2369 # it helps to detect inapplicable dependency modes. For instance 2370 # both Tru64's cc and ICC support -MD to output dependencies as a 2371 # side effect of compilation, but ICC will put the dependencies in 2372 # the current directory while Tru64 will put them in the object 2373 # directory. 2374 mkdir sub 2375 2376 am_cv_CXX_dependencies_compiler_type=none 2377 if test "$am_compiler_list" = ""; then 2378 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2379 fi 2380 for depmode in $am_compiler_list; do 2381 # Setup a source with many dependencies, because some compilers 2382 # like to wrap large dependency lists on column 80 (with \), and 2383 # we should not choose a depcomp mode which is confused by this. 2384 # 2385 # We need to recreate these files for each test, as the compiler may 2386 # overwrite some of them when testing with obscure command lines. 2387 # This happens at least with the AIX C compiler. 2388 : > sub/conftest.c 2389 for i in 1 2 3 4 5 6; do 2390 echo '#include "conftst'$i'.h"' >> sub/conftest.c 2391 : > sub/conftst$i.h 2392 done 2393 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 2394 2395 case $depmode in 2396 nosideeffect) 2397 # after this tag, mechanisms are not by side-effect, so they'll 2398 # only be used when explicitly requested 2399 if test "x$enable_dependency_tracking" = xyes; then 2400 continue 2401 else 2402 break 2403 fi 2404 ;; 2405 none) break ;; 2406 esac 2407 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2408 # mode. It turns out that the SunPro C++ compiler does not properly 2409 # handle `-M -o', and we need to detect this. 2410 if depmode=$depmode \ 2411 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 2412 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 2413 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 2414 >/dev/null 2>conftest.err && 2415 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 2416 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 2417 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2418 # icc doesn't choke on unknown options, it will just issue warnings 2419 # (even with -Werror). So we grep stderr for any message 2420 # that says an option was ignored. 2421 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 2422 am_cv_CXX_dependencies_compiler_type=$depmode 2423 break 2424 fi 2425 fi 2426 done 2427 2428 cd .. 2429 rm -rf conftest.dir 2430 else 2431 am_cv_CXX_dependencies_compiler_type=none 2432 fi 2433 2434 fi 2435 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 2436 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 2437 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 2438 2439 2440 2441 if 2442 test "x$enable_dependency_tracking" != xno \ 2443 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 2444 am__fastdepCXX_TRUE= 2445 am__fastdepCXX_FALSE='#' 2446 else 2447 am__fastdepCXX_TRUE='#' 2448 am__fastdepCXX_FALSE= 2449 fi 2450 1872 2451 1873 2452 ac_ext=c … … 2600 3179 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2601 3180 3181 depcc="$CC" am_compiler_list= 3182 3183 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3184 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3185 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3186 echo $ECHO_N "(cached) $ECHO_C" >&6 3187 else 3188 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3189 # We make a subdir and do the tests there. Otherwise we can end up 3190 # making bogus files that we don't know about and never remove. For 3191 # instance it was reported that on HP-UX the gcc test will end up 3192 # making a dummy file named `D' -- because `-MD' means `put the output 3193 # in D'. 3194 mkdir conftest.dir 3195 # Copy depcomp to subdir because otherwise we won't find it if we're 3196 # using a relative directory. 3197 cp "$am_depcomp" conftest.dir 3198 cd conftest.dir 3199 # We will build objects and dependencies in a subdirectory because 3200 # it helps to detect inapplicable dependency modes. For instance 3201 # both Tru64's cc and ICC support -MD to output dependencies as a 3202 # side effect of compilation, but ICC will put the dependencies in 3203 # the current directory while Tru64 will put them in the object 3204 # directory. 3205 mkdir sub 3206 3207 am_cv_CC_dependencies_compiler_type=none 3208 if test "$am_compiler_list" = ""; then 3209 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3210 fi 3211 for depmode in $am_compiler_list; do 3212 # Setup a source with many dependencies, because some compilers 3213 # like to wrap large dependency lists on column 80 (with \), and 3214 # we should not choose a depcomp mode which is confused by this. 3215 # 3216 # We need to recreate these files for each test, as the compiler may 3217 # overwrite some of them when testing with obscure command lines. 3218 # This happens at least with the AIX C compiler. 3219 : > sub/conftest.c 3220 for i in 1 2 3 4 5 6; do 3221 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3222 : > sub/conftst$i.h 3223 done 3224 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3225 3226 case $depmode in 3227 nosideeffect) 3228 # after this tag, mechanisms are not by side-effect, so they'll 3229 # only be used when explicitly requested 3230 if test "x$enable_dependency_tracking" = xyes; then 3231 continue 3232 else 3233 break 3234 fi 3235 ;; 3236 none) break ;; 3237 esac 3238 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3239 # mode. It turns out that the SunPro C++ compiler does not properly 3240 # handle `-M -o', and we need to detect this. 3241 if depmode=$depmode \ 3242 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3243 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3244 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3245 >/dev/null 2>conftest.err && 3246 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3247 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3248 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3249 # icc doesn't choke on unknown options, it will just issue warnings 3250 # (even with -Werror). So we grep stderr for any message 3251 # that says an option was ignored. 3252 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 3253 am_cv_CC_dependencies_compiler_type=$depmode 3254 break 3255 fi 3256 fi 3257 done 3258 3259 cd .. 3260 rm -rf conftest.dir 3261 else 3262 am_cv_CC_dependencies_compiler_type=none 3263 fi 3264 3265 fi 3266 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3267 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3268 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3269 3270 3271 3272 if 3273 test "x$enable_dependency_tracking" != xno \ 3274 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3275 am__fastdepCC_TRUE= 3276 am__fastdepCC_FALSE='#' 3277 else 3278 am__fastdepCC_TRUE='#' 3279 am__fastdepCC_FALSE= 3280 fi 3281 3282 2602 3283 2603 3284 # Checks for libraries. … … 3338 4019 3339 4020 3340 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works3341 # for constant arguments. Useless!3342 echo "$as_me:$LINENO: checking for working alloca.h" >&53343 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&63344 if test "${ac_cv_working_alloca_h+set}" = set; then3345 echo $ECHO_N "(cached) $ECHO_C" >&63346 else3347 cat >conftest.$ac_ext <<_ACEOF3348 /* confdefs.h. */3349 _ACEOF3350 cat confdefs.h >>conftest.$ac_ext3351 cat >>conftest.$ac_ext <<_ACEOF3352 /* end confdefs.h. */3353 #include <alloca.h>3354 int3355 main ()3356 {3357 char *p = (char *) alloca (2 * sizeof (int));3358 ;3359 return 0;3360 }3361 _ACEOF3362 rm -f conftest.$ac_objext conftest$ac_exeext3363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&53364 (eval $ac_link) 2>conftest.er13365 ac_status=$?3366 grep -v '^ *+' conftest.er1 >conftest.err3367 rm -f conftest.er13368 cat conftest.err >&53369 echo "$as_me:$LINENO: \$? = $ac_status" >&53370 (exit $ac_status); } &&3371 { ac_try='test -z "$ac_c_werror_flag"3372 || test ! -s conftest.err'3373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&53374 (eval $ac_try) 2>&53375 ac_status=$?3376 echo "$as_me:$LINENO: \$? = $ac_status" >&53377 (exit $ac_status); }; } &&3378 { ac_try='test -s conftest$ac_exeext'3379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&53380 (eval $ac_try) 2>&53381 ac_status=$?3382 echo "$as_me:$LINENO: \$? = $ac_status" >&53383 (exit $ac_status); }; }; then3384 ac_cv_working_alloca_h=yes3385 else3386 echo "$as_me: failed program was:" >&53387 sed 's/^/| /' conftest.$ac_ext >&53388 3389 ac_cv_working_alloca_h=no3390 fi3391 rm -f conftest.err conftest.$ac_objext \3392 conftest$ac_exeext conftest.$ac_ext3393 fi3394 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&53395 echo "${ECHO_T}$ac_cv_working_alloca_h" >&63396 if test $ac_cv_working_alloca_h = yes; then3397 3398 cat >>confdefs.h <<\_ACEOF3399 #define HAVE_ALLOCA_H 13400 _ACEOF3401 3402 fi3403 3404 echo "$as_me:$LINENO: checking for alloca" >&53405 echo $ECHO_N "checking for alloca... $ECHO_C" >&63406 if test "${ac_cv_func_alloca_works+set}" = set; then3407 echo $ECHO_N "(cached) $ECHO_C" >&63408 else3409 cat >conftest.$ac_ext <<_ACEOF3410 /* confdefs.h. */3411 _ACEOF3412 cat confdefs.h >>conftest.$ac_ext3413 cat >>conftest.$ac_ext <<_ACEOF3414 /* end confdefs.h. */3415 #ifdef __GNUC__3416 # define alloca __builtin_alloca3417 #else3418 # ifdef _MSC_VER3419 # include <malloc.h>3420 # define alloca _alloca3421 # else3422 # if HAVE_ALLOCA_H3423 # include <alloca.h>3424 # else3425 # ifdef _AIX3426 #pragma alloca3427 # else3428 # ifndef alloca /* predefined by HP cc +Olibcalls */3429 char *alloca ();3430 # endif3431 # endif3432 # endif3433 # endif3434 #endif3435 3436 int3437 main ()3438 {3439 char *p = (char *) alloca (1);3440 ;3441 return 0;3442 }3443 _ACEOF3444 rm -f conftest.$ac_objext conftest$ac_exeext3445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&53446 (eval $ac_link) 2>conftest.er13447 ac_status=$?3448 grep -v '^ *+' conftest.er1 >conftest.err3449 rm -f conftest.er13450 cat conftest.err >&53451 echo "$as_me:$LINENO: \$? = $ac_status" >&53452 (exit $ac_status); } &&3453 { ac_try='test -z "$ac_c_werror_flag"3454 || test ! -s conftest.err'3455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&53456 (eval $ac_try) 2>&53457 ac_status=$?3458 echo "$as_me:$LINENO: \$? = $ac_status" >&53459 (exit $ac_status); }; } &&3460 { ac_try='test -s conftest$ac_exeext'3461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&53462 (eval $ac_try) 2>&53463 ac_status=$?3464 echo "$as_me:$LINENO: \$? = $ac_status" >&53465 (exit $ac_status); }; }; then3466 ac_cv_func_alloca_works=yes3467 else3468 echo "$as_me: failed program was:" >&53469 sed 's/^/| /' conftest.$ac_ext >&53470 3471 ac_cv_func_alloca_works=no3472 fi3473 rm -f conftest.err conftest.$ac_objext \3474 conftest$ac_exeext conftest.$ac_ext3475 fi3476 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&53477 echo "${ECHO_T}$ac_cv_func_alloca_works" >&63478 3479 if test $ac_cv_func_alloca_works = yes; then3480 3481 cat >>confdefs.h <<\_ACEOF3482 #define HAVE_ALLOCA 13483 _ACEOF3484 3485 else3486 # The SVR3 libPW and SVR4 libucb both contain incompatible functions3487 # that cause trouble. Some versions do not even contain alloca or3488 # contain a buggy version. If you still want to use their alloca,3489 # use ar to extract alloca.o from them instead of compiling alloca.c.3490 3491 ALLOCA=alloca.$ac_objext3492 3493 cat >>confdefs.h <<\_ACEOF3494 #define C_ALLOCA 13495 _ACEOF3496 3497 3498 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&53499 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&63500 if test "${ac_cv_os_cray+set}" = set; then3501 echo $ECHO_N "(cached) $ECHO_C" >&63502 else3503 cat >conftest.$ac_ext <<_ACEOF3504 /* confdefs.h. */3505 _ACEOF3506 cat confdefs.h >>conftest.$ac_ext3507 cat >>conftest.$ac_ext <<_ACEOF3508 /* end confdefs.h. */3509 #if defined(CRAY) && ! defined(CRAY2)3510 webecray3511 #else3512 wenotbecray3513 #endif3514 3515 _ACEOF3516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |3517 $EGREP "webecray" >/dev/null 2>&1; then3518 ac_cv_os_cray=yes3519 else3520 ac_cv_os_cray=no3521 fi3522 rm -f conftest*3523 3524 fi3525 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&53526 echo "${ECHO_T}$ac_cv_os_cray" >&63527 if test $ac_cv_os_cray = yes; then3528 for ac_func in _getb67 GETB67 getb67; do3529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`3530 echo "$as_me:$LINENO: checking for $ac_func" >&53531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&63532 if eval "test \"\${$as_ac_var+set}\" = set"; then3533 echo $ECHO_N "(cached) $ECHO_C" >&63534 else3535 cat >conftest.$ac_ext <<_ACEOF3536 /* confdefs.h. */3537 _ACEOF3538 cat confdefs.h >>conftest.$ac_ext3539 cat >>conftest.$ac_ext <<_ACEOF3540 /* end confdefs.h. */3541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.3542 For example, HP-UX 11i <limits.h> declares gettimeofday. */3543 #define $ac_func innocuous_$ac_func3544 3545 /* System header to define __stub macros and hopefully few prototypes,3546 which can conflict with char $ac_func (); below.3547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since3548 <limits.h> exists even on freestanding compilers. */3549 3550 #ifdef __STDC__3551 # include <limits.h>3552 #else3553 # include <assert.h>3554 #endif3555 3556 #undef $ac_func3557 3558 /* Override any gcc2 internal prototype to avoid an error. */3559 #ifdef __cplusplus3560 extern "C"3561 {3562 #endif3563 /* We use char because int might match the return type of a gcc23564 builtin and then its argument prototype would still apply. */3565 char $ac_func ();3566 /* The GNU C library defines this for functions which it implements3567 to always fail with ENOSYS. Some functions are actually named3568 something starting with __ and the normal name is an alias. */3569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)3570 choke me3571 #else3572 char (*f) () = $ac_func;3573 #endif3574 #ifdef __cplusplus3575 }3576 #endif3577 3578 int3579 main ()3580 {3581 return f != $ac_func;3582 ;3583 return 0;3584 }3585 _ACEOF3586 rm -f conftest.$ac_objext conftest$ac_exeext3587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&53588 (eval $ac_link) 2>conftest.er13589 ac_status=$?3590 grep -v '^ *+' conftest.er1 >conftest.err3591 rm -f conftest.er13592 cat conftest.err >&53593 echo "$as_me:$LINENO: \$? = $ac_status" >&53594 (exit $ac_status); } &&3595 { ac_try='test -z "$ac_c_werror_flag"3596 || test ! -s conftest.err'3597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&53598 (eval $ac_try) 2>&53599 ac_status=$?3600 echo "$as_me:$LINENO: \$? = $ac_status" >&53601 (exit $ac_status); }; } &&3602 { ac_try='test -s conftest$ac_exeext'3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&53604 (eval $ac_try) 2>&53605 ac_status=$?3606 echo "$as_me:$LINENO: \$? = $ac_status" >&53607 (exit $ac_status); }; }; then3608 eval "$as_ac_var=yes"3609 else3610 echo "$as_me: failed program was:" >&53611 sed 's/^/| /' conftest.$ac_ext >&53612 3613 eval "$as_ac_var=no"3614 fi3615 rm -f conftest.err conftest.$ac_objext \3616 conftest$ac_exeext conftest.$ac_ext3617 fi3618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&53619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&63620 if test `eval echo '${'$as_ac_var'}'` = yes; then3621 3622 cat >>confdefs.h <<_ACEOF3623 #define CRAY_STACKSEG_END $ac_func3624 _ACEOF3625 3626 break3627 fi3628 3629 done3630 fi3631 3632 echo "$as_me:$LINENO: checking stack direction for C alloca" >&53633 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&63634 if test "${ac_cv_c_stack_direction+set}" = set; then3635 echo $ECHO_N "(cached) $ECHO_C" >&63636 else3637 if test "$cross_compiling" = yes; then3638 ac_cv_c_stack_direction=03639 else3640 cat >conftest.$ac_ext <<_ACEOF3641 /* confdefs.h. */3642 _ACEOF3643 cat confdefs.h >>conftest.$ac_ext3644 cat >>conftest.$ac_ext <<_ACEOF3645 /* end confdefs.h. */3646 int3647 find_stack_direction ()3648 {3649 static char *addr = 0;3650 auto char dummy;3651 if (addr == 0)3652 {3653 addr = &dummy;3654 return find_stack_direction ();3655 }3656 else3657 return (&dummy > addr) ? 1 : -1;3658 }3659 3660 int3661 main ()3662 {3663 exit (find_stack_direction () < 0);3664 }3665 _ACEOF3666 rm -f conftest$ac_exeext3667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&53668 (eval $ac_link) 2>&53669 ac_status=$?3670 echo "$as_me:$LINENO: \$? = $ac_status" >&53671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&53673 (eval $ac_try) 2>&53674 ac_status=$?3675 echo "$as_me:$LINENO: \$? = $ac_status" >&53676 (exit $ac_status); }; }; then3677 ac_cv_c_stack_direction=13678 else3679 echo "$as_me: program exited with status $ac_status" >&53680 echo "$as_me: failed program was:" >&53681 sed 's/^/| /' conftest.$ac_ext >&53682 3683 ( exit $ac_status )3684 ac_cv_c_stack_direction=-13685 fi3686 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext3687 fi3688 fi3689 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&53690 echo "${ECHO_T}$ac_cv_c_stack_direction" >&63691 3692 cat >>confdefs.h <<_ACEOF3693 #define STACK_DIRECTION $ac_cv_c_stack_direction3694 _ACEOF3695 3696 3697 fi3698 3699 3700 3701 3702 3703 3704 ac_header_dirent=no3705 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do3706 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`3707 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&53708 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&63709 if eval "test \"\${$as_ac_Header+set}\" = set"; then3710 echo $ECHO_N "(cached) $ECHO_C" >&63711 else3712 cat >conftest.$ac_ext <<_ACEOF3713 /* confdefs.h. */3714 _ACEOF3715 cat confdefs.h >>conftest.$ac_ext3716 cat >>conftest.$ac_ext <<_ACEOF3717 /* end confdefs.h. */3718 #include <sys/types.h>3719 #include <$ac_hdr>3720 3721 int3722 main ()3723 {3724 if ((DIR *) 0)3725 return 0;3726 ;3727 return 0;3728 }3729 _ACEOF3730 rm -f conftest.$ac_objext3731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&53732 (eval $ac_compile) 2>conftest.er13733 ac_status=$?3734 grep -v '^ *+' conftest.er1 >conftest.err3735 rm -f conftest.er13736 cat conftest.err >&53737 echo "$as_me:$LINENO: \$? = $ac_status" >&53738 (exit $ac_status); } &&3739 { ac_try='test -z "$ac_c_werror_flag"3740 || test ! -s conftest.err'3741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&53742 (eval $ac_try) 2>&53743 ac_status=$?3744 echo "$as_me:$LINENO: \$? = $ac_status" >&53745 (exit $ac_status); }; } &&3746 { ac_try='test -s conftest.$ac_objext'3747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&53748 (eval $ac_try) 2>&53749 ac_status=$?3750 echo "$as_me:$LINENO: \$? = $ac_status" >&53751 (exit $ac_status); }; }; then3752 eval "$as_ac_Header=yes"3753 else3754 echo "$as_me: failed program was:" >&53755 sed 's/^/| /' conftest.$ac_ext >&53756 3757 eval "$as_ac_Header=no"3758 fi3759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext3760 fi3761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&53762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&63763 if test `eval echo '${'$as_ac_Header'}'` = yes; then3764 cat >>confdefs.h <<_ACEOF3765 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 13766 _ACEOF3767 3768 ac_header_dirent=$ac_hdr; break3769 fi3770 3771 done3772 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.3773 if test $ac_header_dirent = dirent.h; then3774 echo "$as_me:$LINENO: checking for library containing opendir" >&53775 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&63776 if test "${ac_cv_search_opendir+set}" = set; then3777 echo $ECHO_N "(cached) $ECHO_C" >&63778 else3779 ac_func_search_save_LIBS=$LIBS3780 ac_cv_search_opendir=no3781 cat >conftest.$ac_ext <<_ACEOF3782 /* confdefs.h. */3783 _ACEOF3784 cat confdefs.h >>conftest.$ac_ext3785 cat >>conftest.$ac_ext <<_ACEOF3786 /* end confdefs.h. */3787 3788 /* Override any gcc2 internal prototype to avoid an error. */3789 #ifdef __cplusplus3790 extern "C"3791 #endif3792 /* We use char because int might match the return type of a gcc23793 builtin and then its argument prototype would still apply. */3794 char opendir ();3795 int3796 main ()3797 {3798 opendir ();3799 ;3800 return 0;3801 }3802 _ACEOF3803 rm -f conftest.$ac_objext conftest$ac_exeext3804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&53805 (eval $ac_link) 2>conftest.er13806 ac_status=$?3807 grep -v '^ *+' conftest.er1 >conftest.err3808 rm -f conftest.er13809 cat conftest.err >&53810 echo "$as_me:$LINENO: \$? = $ac_status" >&53811 (exit $ac_status); } &&3812 { ac_try='test -z "$ac_c_werror_flag"3813 || test ! -s conftest.err'3814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&53815 (eval $ac_try) 2>&53816 ac_status=$?3817 echo "$as_me:$LINENO: \$? = $ac_status" >&53818 (exit $ac_status); }; } &&3819 { ac_try='test -s conftest$ac_exeext'3820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&53821 (eval $ac_try) 2>&53822 ac_status=$?3823 echo "$as_me:$LINENO: \$? = $ac_status" >&53824 (exit $ac_status); }; }; then3825 ac_cv_search_opendir="none required"3826 else3827 echo "$as_me: failed program was:" >&53828 sed 's/^/| /' conftest.$ac_ext >&53829 3830 fi3831 rm -f conftest.err conftest.$ac_objext \3832 conftest$ac_exeext conftest.$ac_ext3833 if test "$ac_cv_search_opendir" = no; then3834 for ac_lib in dir; do3835 LIBS="-l$ac_lib $ac_func_search_save_LIBS"3836 cat >conftest.$ac_ext <<_ACEOF3837 /* confdefs.h. */3838 _ACEOF3839 cat confdefs.h >>conftest.$ac_ext3840 cat >>conftest.$ac_ext <<_ACEOF3841 /* end confdefs.h. */3842 3843 /* Override any gcc2 internal prototype to avoid an error. */3844 #ifdef __cplusplus3845 extern "C"3846 #endif3847 /* We use char because int might match the return type of a gcc23848 builtin and then its argument prototype would still apply. */3849 char opendir ();3850 int3851 main ()3852 {3853 opendir ();3854 ;3855 return 0;3856 }3857 _ACEOF3858 rm -f conftest.$ac_objext conftest$ac_exeext3859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&53860 (eval $ac_link) 2>conftest.er13861 ac_status=$?3862 grep -v '^ *+' conftest.er1 >conftest.err3863 rm -f conftest.er13864 cat conftest.err >&53865 echo "$as_me:$LINENO: \$? = $ac_status" >&53866 (exit $ac_status); } &&3867 { ac_try='test -z "$ac_c_werror_flag"3868 || test ! -s conftest.err'3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&53870 (eval $ac_try) 2>&53871 ac_status=$?3872 echo "$as_me:$LINENO: \$? = $ac_status" >&53873 (exit $ac_status); }; } &&3874 { ac_try='test -s conftest$ac_exeext'3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&53876 (eval $ac_try) 2>&53877 ac_status=$?3878 echo "$as_me:$LINENO: \$? = $ac_status" >&53879 (exit $ac_status); }; }; then3880 ac_cv_search_opendir="-l$ac_lib"3881 break3882 else3883 echo "$as_me: failed program was:" >&53884 sed 's/^/| /' conftest.$ac_ext >&53885 3886 fi3887 rm -f conftest.err conftest.$ac_objext \3888 conftest$ac_exeext conftest.$ac_ext3889 done3890 fi3891 LIBS=$ac_func_search_save_LIBS3892 fi3893 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&53894 echo "${ECHO_T}$ac_cv_search_opendir" >&63895 if test "$ac_cv_search_opendir" != no; then3896 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"3897 3898 fi3899 3900 else3901 echo "$as_me:$LINENO: checking for library containing opendir" >&53902 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&63903 if test "${ac_cv_search_opendir+set}" = set; then3904 echo $ECHO_N "(cached) $ECHO_C" >&63905 else3906 ac_func_search_save_LIBS=$LIBS3907 ac_cv_search_opendir=no3908 cat >conftest.$ac_ext <<_ACEOF3909 /* confdefs.h. */3910 _ACEOF3911 cat confdefs.h >>conftest.$ac_ext3912 cat >>conftest.$ac_ext <<_ACEOF3913 /* end confdefs.h. */3914 3915 /* Override any gcc2 internal prototype to avoid an error. */3916 #ifdef __cplusplus3917 extern "C"3918 #endif3919 /* We use char because int might match the return type of a gcc23920 builtin and then its argument prototype would still apply. */3921 char opendir ();3922 int3923 main ()3924 {3925 opendir ();3926 ;3927 return 0;3928 }3929 _ACEOF3930 rm -f conftest.$ac_objext conftest$ac_exeext3931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&53932 (eval $ac_link) 2>conftest.er13933 ac_status=$?3934 grep -v '^ *+' conftest.er1 >conftest.err3935 rm -f conftest.er13936 cat conftest.err >&53937 echo "$as_me:$LINENO: \$? = $ac_status" >&53938 (exit $ac_status); } &&3939 { ac_try='test -z "$ac_c_werror_flag"3940 || test ! -s conftest.err'3941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&53942 (eval $ac_try) 2>&53943 ac_status=$?3944 echo "$as_me:$LINENO: \$? = $ac_status" >&53945 (exit $ac_status); }; } &&3946 { ac_try='test -s conftest$ac_exeext'3947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&53948 (eval $ac_try) 2>&53949 ac_status=$?3950 echo "$as_me:$LINENO: \$? = $ac_status" >&53951 (exit $ac_status); }; }; then3952 ac_cv_search_opendir="none required"3953 else3954 echo "$as_me: failed program was:" >&53955 sed 's/^/| /' conftest.$ac_ext >&53956 3957 fi3958 rm -f conftest.err conftest.$ac_objext \3959 conftest$ac_exeext conftest.$ac_ext3960 if test "$ac_cv_search_opendir" = no; then3961 for ac_lib in x; do3962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"3963 cat >conftest.$ac_ext <<_ACEOF3964 /* confdefs.h. */3965 _ACEOF3966 cat confdefs.h >>conftest.$ac_ext3967 cat >>conftest.$ac_ext <<_ACEOF3968 /* end confdefs.h. */3969 3970 /* Override any gcc2 internal prototype to avoid an error. */3971 #ifdef __cplusplus3972 extern "C"3973 #endif3974 /* We use char because int might match the return type of a gcc23975 builtin and then its argument prototype would still apply. */3976 char opendir ();3977 int3978 main ()3979 {3980 opendir ();3981 ;3982 return 0;3983 }3984 _ACEOF3985 rm -f conftest.$ac_objext conftest$ac_exeext3986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&53987 (eval $ac_link) 2>conftest.er13988 ac_status=$?3989 grep -v '^ *+' conftest.er1 >conftest.err3990 rm -f conftest.er13991 cat conftest.err >&53992 echo "$as_me:$LINENO: \$? = $ac_status" >&53993 (exit $ac_status); } &&3994 { ac_try='test -z "$ac_c_werror_flag"3995 || test ! -s conftest.err'3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&53997 (eval $ac_try) 2>&53998 ac_status=$?3999 echo "$as_me:$LINENO: \$? = $ac_status" >&54000 (exit $ac_status); }; } &&4001 { ac_try='test -s conftest$ac_exeext'4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54003 (eval $ac_try) 2>&54004 ac_status=$?4005 echo "$as_me:$LINENO: \$? = $ac_status" >&54006 (exit $ac_status); }; }; then4007 ac_cv_search_opendir="-l$ac_lib"4008 break4009 else4010 echo "$as_me: failed program was:" >&54011 sed 's/^/| /' conftest.$ac_ext >&54012 4013 fi4014 rm -f conftest.err conftest.$ac_objext \4015 conftest$ac_exeext conftest.$ac_ext4016 done4017 fi4018 LIBS=$ac_func_search_save_LIBS4019 fi4020 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&54021 echo "${ECHO_T}$ac_cv_search_opendir" >&64022 if test "$ac_cv_search_opendir" != no; then4023 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"4024 4025 fi4026 4027 fi4028 4029 4021 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4030 4022 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 … … 4265 4257 4266 4258 4267 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 4268 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 4269 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then 4270 echo $ECHO_N "(cached) $ECHO_C" >&6 4271 else 4272 cat >conftest.$ac_ext <<_ACEOF 4273 /* confdefs.h. */ 4274 _ACEOF 4275 cat confdefs.h >>conftest.$ac_ext 4276 cat >>conftest.$ac_ext <<_ACEOF 4277 /* end confdefs.h. */ 4278 #include <sys/types.h> 4279 int 4280 main () 4281 { 4282 return makedev(0, 0); 4283 ; 4284 return 0; 4285 } 4286 _ACEOF 4287 rm -f conftest.$ac_objext conftest$ac_exeext 4288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4289 (eval $ac_link) 2>conftest.er1 4290 ac_status=$? 4291 grep -v '^ *+' conftest.er1 >conftest.err 4292 rm -f conftest.er1 4293 cat conftest.err >&5 4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4295 (exit $ac_status); } && 4296 { ac_try='test -z "$ac_c_werror_flag" 4297 || test ! -s conftest.err' 4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4299 (eval $ac_try) 2>&5 4300 ac_status=$? 4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4302 (exit $ac_status); }; } && 4303 { ac_try='test -s conftest$ac_exeext' 4304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4305 (eval $ac_try) 2>&5 4306 ac_status=$? 4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4308 (exit $ac_status); }; }; then 4309 ac_cv_header_sys_types_h_makedev=yes 4310 else 4311 echo "$as_me: failed program was:" >&5 4312 sed 's/^/| /' conftest.$ac_ext >&5 4313 4314 ac_cv_header_sys_types_h_makedev=no 4315 fi 4316 rm -f conftest.err conftest.$ac_objext \ 4317 conftest$ac_exeext conftest.$ac_ext 4318 4319 fi 4320 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 4321 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 4322 4323 if test $ac_cv_header_sys_types_h_makedev = no; then 4324 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then 4325 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 4326 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 4327 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then 4328 echo $ECHO_N "(cached) $ECHO_C" >&6 4329 fi 4330 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 4331 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 4332 else 4333 # Is the header compilable? 4334 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 4335 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 4336 cat >conftest.$ac_ext <<_ACEOF 4337 /* confdefs.h. */ 4338 _ACEOF 4339 cat confdefs.h >>conftest.$ac_ext 4340 cat >>conftest.$ac_ext <<_ACEOF 4341 /* end confdefs.h. */ 4342 $ac_includes_default 4343 #include <sys/mkdev.h> 4344 _ACEOF 4345 rm -f conftest.$ac_objext 4346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4347 (eval $ac_compile) 2>conftest.er1 4348 ac_status=$? 4349 grep -v '^ *+' conftest.er1 >conftest.err 4350 rm -f conftest.er1 4351 cat conftest.err >&5 4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4353 (exit $ac_status); } && 4354 { ac_try='test -z "$ac_c_werror_flag" 4355 || test ! -s conftest.err' 4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4357 (eval $ac_try) 2>&5 4358 ac_status=$? 4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4360 (exit $ac_status); }; } && 4361 { ac_try='test -s conftest.$ac_objext' 4362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4363 (eval $ac_try) 2>&5 4364 ac_status=$? 4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4366 (exit $ac_status); }; }; then 4367 ac_header_compiler=yes 4368 else 4369 echo "$as_me: failed program was:" >&5 4370 sed 's/^/| /' conftest.$ac_ext >&5 4371 4372 ac_header_compiler=no 4373 fi 4374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4376 echo "${ECHO_T}$ac_header_compiler" >&6 4377 4378 # Is the header present? 4379 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 4380 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 4381 cat >conftest.$ac_ext <<_ACEOF 4382 /* confdefs.h. */ 4383 _ACEOF 4384 cat confdefs.h >>conftest.$ac_ext 4385 cat >>conftest.$ac_ext <<_ACEOF 4386 /* end confdefs.h. */ 4387 #include <sys/mkdev.h> 4388 _ACEOF 4389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4391 ac_status=$? 4392 grep -v '^ *+' conftest.er1 >conftest.err 4393 rm -f conftest.er1 4394 cat conftest.err >&5 4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4396 (exit $ac_status); } >/dev/null; then 4397 if test -s conftest.err; then 4398 ac_cpp_err=$ac_c_preproc_warn_flag 4399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4400 else 4401 ac_cpp_err= 4402 fi 4403 else 4404 ac_cpp_err=yes 4405 fi 4406 if test -z "$ac_cpp_err"; then 4407 ac_header_preproc=yes 4408 else 4409 echo "$as_me: failed program was:" >&5 4410 sed 's/^/| /' conftest.$ac_ext >&5 4411 4412 ac_header_preproc=no 4413 fi 4414 rm -f conftest.err conftest.$ac_ext 4415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4416 echo "${ECHO_T}$ac_header_preproc" >&6 4417 4418 # So? What about this header? 4419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4420 yes:no: ) 4421 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 4422 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4423 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 4424 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} 4425 ac_header_preproc=yes 4426 ;; 4427 no:yes:* ) 4428 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 4429 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} 4430 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 4431 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} 4432 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 4433 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} 4434 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 4435 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;} 4436 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 4437 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;} 4438 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 4439 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;} 4440 ( 4441 cat <<\_ASBOX 4442 ## --------------------------------- ## 4443 ## Report this to BUG-REPORT-ADDRESS ## 4444 ## --------------------------------- ## 4445 _ASBOX 4446 ) | 4447 sed "s/^/$as_me: WARNING: /" >&2 4448 ;; 4449 esac 4450 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 4451 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 4452 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then 4453 echo $ECHO_N "(cached) $ECHO_C" >&6 4454 else 4455 ac_cv_header_sys_mkdev_h=$ac_header_preproc 4456 fi 4457 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 4458 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 4459 4460 fi 4461 if test $ac_cv_header_sys_mkdev_h = yes; then 4462 4463 cat >>confdefs.h <<\_ACEOF 4464 #define MAJOR_IN_MKDEV 1 4465 _ACEOF 4466 4467 fi 4468 4469 4470 4471 if test $ac_cv_header_sys_mkdev_h = no; then 4472 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then 4473 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 4474 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 4475 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then 4476 echo $ECHO_N "(cached) $ECHO_C" >&6 4477 fi 4478 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 4479 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 4480 else 4481 # Is the header compilable? 4482 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 4483 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 4484 cat >conftest.$ac_ext <<_ACEOF 4485 /* confdefs.h. */ 4486 _ACEOF 4487 cat confdefs.h >>conftest.$ac_ext 4488 cat >>conftest.$ac_ext <<_ACEOF 4489 /* end confdefs.h. */ 4490 $ac_includes_default 4491 #include <sys/sysmacros.h> 4492 _ACEOF 4493 rm -f conftest.$ac_objext 4494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4495 (eval $ac_compile) 2>conftest.er1 4496 ac_status=$? 4497 grep -v '^ *+' conftest.er1 >conftest.err 4498 rm -f conftest.er1 4499 cat conftest.err >&5 4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4501 (exit $ac_status); } && 4502 { ac_try='test -z "$ac_c_werror_flag" 4503 || test ! -s conftest.err' 4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4505 (eval $ac_try) 2>&5 4506 ac_status=$? 4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4508 (exit $ac_status); }; } && 4509 { ac_try='test -s conftest.$ac_objext' 4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4511 (eval $ac_try) 2>&5 4512 ac_status=$? 4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4514 (exit $ac_status); }; }; then 4515 ac_header_compiler=yes 4516 else 4517 echo "$as_me: failed program was:" >&5 4518 sed 's/^/| /' conftest.$ac_ext >&5 4519 4520 ac_header_compiler=no 4521 fi 4522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4524 echo "${ECHO_T}$ac_header_compiler" >&6 4525 4526 # Is the header present? 4527 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 4528 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 4529 cat >conftest.$ac_ext <<_ACEOF 4530 /* confdefs.h. */ 4531 _ACEOF 4532 cat confdefs.h >>conftest.$ac_ext 4533 cat >>conftest.$ac_ext <<_ACEOF 4534 /* end confdefs.h. */ 4535 #include <sys/sysmacros.h> 4536 _ACEOF 4537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4539 ac_status=$? 4540 grep -v '^ *+' conftest.er1 >conftest.err 4541 rm -f conftest.er1 4542 cat conftest.err >&5 4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4544 (exit $ac_status); } >/dev/null; then 4545 if test -s conftest.err; then 4546 ac_cpp_err=$ac_c_preproc_warn_flag 4547 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4548 else 4549 ac_cpp_err= 4550 fi 4551 else 4552 ac_cpp_err=yes 4553 fi 4554 if test -z "$ac_cpp_err"; then 4555 ac_header_preproc=yes 4556 else 4557 echo "$as_me: failed program was:" >&5 4558 sed 's/^/| /' conftest.$ac_ext >&5 4559 4560 ac_header_preproc=no 4561 fi 4562 rm -f conftest.err conftest.$ac_ext 4563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4564 echo "${ECHO_T}$ac_header_preproc" >&6 4565 4566 # So? What about this header? 4567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4568 yes:no: ) 4569 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 4570 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4571 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 4572 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} 4573 ac_header_preproc=yes 4574 ;; 4575 no:yes:* ) 4576 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 4577 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} 4578 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 4579 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} 4580 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 4581 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} 4582 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 4583 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;} 4584 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 4585 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;} 4586 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 4587 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;} 4588 ( 4589 cat <<\_ASBOX 4590 ## --------------------------------- ## 4591 ## Report this to BUG-REPORT-ADDRESS ## 4592 ## --------------------------------- ## 4593 _ASBOX 4594 ) | 4595 sed "s/^/$as_me: WARNING: /" >&2 4596 ;; 4597 esac 4598 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 4599 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 4600 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then 4601 echo $ECHO_N "(cached) $ECHO_C" >&6 4602 else 4603 ac_cv_header_sys_sysmacros_h=$ac_header_preproc 4604 fi 4605 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 4606 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 4607 4608 fi 4609 if test $ac_cv_header_sys_sysmacros_h = yes; then 4610 4611 cat >>confdefs.h <<\_ACEOF 4612 #define MAJOR_IN_SYSMACROS 1 4613 _ACEOF 4614 4615 fi 4616 4617 4618 fi 4619 fi 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 for ac_header in fcntl.h libintl.h locale.h memory.h stdlib.h string.h strings.h sys/file.h sys/param.h sys/time.h unistd.h utime.h 4259 4260 4261 for ac_header in stdlib.h string.h 4634 4262 do 4635 4263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 4782 4410 4783 4411 # Checks for typedefs, structures, and compiler characteristics. 4784 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&54785 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&64786 if test "${ac_cv_header_stat_broken+set}" = set; then4787 echo $ECHO_N "(cached) $ECHO_C" >&64788 else4789 cat >conftest.$ac_ext <<_ACEOF4790 /* confdefs.h. */4791 _ACEOF4792 cat confdefs.h >>conftest.$ac_ext4793 cat >>conftest.$ac_ext <<_ACEOF4794 /* end confdefs.h. */4795 #include <sys/types.h>4796 #include <sys/stat.h>4797 4798 #if defined(S_ISBLK) && defined(S_IFDIR)4799 # if S_ISBLK (S_IFDIR)4800 You lose.4801 # endif4802 #endif4803 4804 #if defined(S_ISBLK) && defined(S_IFCHR)4805 # if S_ISBLK (S_IFCHR)4806 You lose.4807 # endif4808 #endif4809 4810 #if defined(S_ISLNK) && defined(S_IFREG)4811 # if S_ISLNK (S_IFREG)4812 You lose.4813 # endif4814 #endif4815 4816 #if defined(S_ISSOCK) && defined(S_IFREG)4817 # if S_ISSOCK (S_IFREG)4818 You lose.4819 # endif4820 #endif4821 4822 _ACEOF4823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |4824 $EGREP "You lose" >/dev/null 2>&1; then4825 ac_cv_header_stat_broken=yes4826 else4827 ac_cv_header_stat_broken=no4828 fi4829 rm -f conftest*4830 4831 fi4832 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&54833 echo "${ECHO_T}$ac_cv_header_stat_broken" >&64834 if test $ac_cv_header_stat_broken = yes; then4835 4836 cat >>confdefs.h <<\_ACEOF4837 #define STAT_MACROS_BROKEN 14838 _ACEOF4839 4840 fi4841 4842 4412 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 4843 4413 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 … … 4998 4568 fi 4999 4569 5000 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&55001 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&65002 if test "${ac_cv_c_const+set}" = set; then5003 echo $ECHO_N "(cached) $ECHO_C" >&65004 else5005 cat >conftest.$ac_ext <<_ACEOF5006 /* confdefs.h. */5007 _ACEOF5008 cat confdefs.h >>conftest.$ac_ext5009 cat >>conftest.$ac_ext <<_ACEOF5010 /* end confdefs.h. */5011 5012 int5013 main ()5014 {5015 /* FIXME: Include the comments suggested by Paul. */5016 #ifndef __cplusplus5017 /* Ultrix mips cc rejects this. */5018 typedef int charset[2];5019 const charset x;5020 /* SunOS 4.1.1 cc rejects this. */5021 char const *const *ccp;5022 char **p;5023 /* NEC SVR4.0.2 mips cc rejects this. */5024 struct point {int x, y;};5025 static struct point const zero = {0,0};5026 /* AIX XL C 1.02.0.0 rejects this.5027 It does not let you subtract one const X* pointer from another in5028 an arm of an if-expression whose if-part is not a constant5029 expression */5030 const char *g = "string";5031 ccp = &g + (g ? g-g : 0);5032 /* HPUX 7.0 cc rejects these. */5033 ++ccp;5034 p = (char**) ccp;5035 ccp = (char const *const *) p;5036 { /* SCO 3.2v4 cc rejects this. */5037 char *t;5038 char const *s = 0 ? (char *) 0 : (char const *) 0;5039 5040 *t++ = 0;5041 }5042 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */5043 int x[] = {25, 17};5044 const int *foo = &x[0];5045 ++foo;5046 }5047 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */5048 typedef const int *iptr;5049 iptr p = 0;5050 ++p;5051 }5052 { /* AIX XL C 1.02.0.0 rejects this saying5053 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */5054 struct s { int j; const int *ap[3]; };5055 struct s *b; b->j = 5;5056 }5057 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */5058 const int foo = 10;5059 }5060 #endif5061 5062 ;5063 return 0;5064 }5065 _ACEOF5066 rm -f conftest.$ac_objext5067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&55068 (eval $ac_compile) 2>conftest.er15069 ac_status=$?5070 grep -v '^ *+' conftest.er1 >conftest.err5071 rm -f conftest.er15072 cat conftest.err >&55073 echo "$as_me:$LINENO: \$? = $ac_status" >&55074 (exit $ac_status); } &&5075 { ac_try='test -z "$ac_c_werror_flag"5076 || test ! -s conftest.err'5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55078 (eval $ac_try) 2>&55079 ac_status=$?5080 echo "$as_me:$LINENO: \$? = $ac_status" >&55081 (exit $ac_status); }; } &&5082 { ac_try='test -s conftest.$ac_objext'5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55084 (eval $ac_try) 2>&55085 ac_status=$?5086 echo "$as_me:$LINENO: \$? = $ac_status" >&55087 (exit $ac_status); }; }; then5088 ac_cv_c_const=yes5089 else5090 echo "$as_me: failed program was:" >&55091 sed 's/^/| /' conftest.$ac_ext >&55092 5093 ac_cv_c_const=no5094 fi5095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext5096 fi5097 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&55098 echo "${ECHO_T}$ac_cv_c_const" >&65099 if test $ac_cv_c_const = no; then5100 5101 cat >>confdefs.h <<\_ACEOF5102 #define const5103 _ACEOF5104 5105 fi5106 5107 echo "$as_me:$LINENO: checking for off_t" >&55108 echo $ECHO_N "checking for off_t... $ECHO_C" >&65109 if test "${ac_cv_type_off_t+set}" = set; then5110 echo $ECHO_N "(cached) $ECHO_C" >&65111 else5112 cat >conftest.$ac_ext <<_ACEOF5113 /* confdefs.h. */5114 _ACEOF5115 cat confdefs.h >>conftest.$ac_ext5116 cat >>conftest.$ac_ext <<_ACEOF5117 /* end confdefs.h. */5118 $ac_includes_default5119 int5120 main ()5121 {5122 if ((off_t *) 0)5123 return 0;5124 if (sizeof (off_t))5125 return 0;5126 ;5127 return 0;5128 }5129 _ACEOF5130 rm -f conftest.$ac_objext5131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&55132 (eval $ac_compile) 2>conftest.er15133 ac_status=$?5134 grep -v '^ *+' conftest.er1 >conftest.err5135 rm -f conftest.er15136 cat conftest.err >&55137 echo "$as_me:$LINENO: \$? = $ac_status" >&55138 (exit $ac_status); } &&5139 { ac_try='test -z "$ac_c_werror_flag"5140 || test ! -s conftest.err'5141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55142 (eval $ac_try) 2>&55143 ac_status=$?5144 echo "$as_me:$LINENO: \$? = $ac_status" >&55145 (exit $ac_status); }; } &&5146 { ac_try='test -s conftest.$ac_objext'5147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55148 (eval $ac_try) 2>&55149 ac_status=$?5150 echo "$as_me:$LINENO: \$? = $ac_status" >&55151 (exit $ac_status); }; }; then5152 ac_cv_type_off_t=yes5153 else5154 echo "$as_me: failed program was:" >&55155 sed 's/^/| /' conftest.$ac_ext >&55156 5157 ac_cv_type_off_t=no5158 fi5159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext5160 fi5161 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&55162 echo "${ECHO_T}$ac_cv_type_off_t" >&65163 if test $ac_cv_type_off_t = yes; then5164 :5165 else5166 5167 cat >>confdefs.h <<_ACEOF5168 #define off_t long5169 _ACEOF5170 5171 fi5172 5173 echo "$as_me:$LINENO: checking for size_t" >&55174 echo $ECHO_N "checking for size_t... $ECHO_C" >&65175 if test "${ac_cv_type_size_t+set}" = set; then5176 echo $ECHO_N "(cached) $ECHO_C" >&65177 else5178 cat >conftest.$ac_ext <<_ACEOF5179 /* confdefs.h. */5180 _ACEOF5181 cat confdefs.h >>conftest.$ac_ext5182 cat >>conftest.$ac_ext <<_ACEOF5183 /* end confdefs.h. */5184 $ac_includes_default5185 int5186 main ()5187 {5188 if ((size_t *) 0)5189 return 0;5190 if (sizeof (size_t))5191 return 0;5192 ;5193 return 0;5194 }5195 _ACEOF5196 rm -f conftest.$ac_objext5197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&55198 (eval $ac_compile) 2>conftest.er15199 ac_status=$?5200 grep -v '^ *+' conftest.er1 >conftest.err5201 rm -f conftest.er15202 cat conftest.err >&55203 echo "$as_me:$LINENO: \$? = $ac_status" >&55204 (exit $ac_status); } &&5205 { ac_try='test -z "$ac_c_werror_flag"5206 || test ! -s conftest.err'5207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55208 (eval $ac_try) 2>&55209 ac_status=$?5210 echo "$as_me:$LINENO: \$? = $ac_status" >&55211 (exit $ac_status); }; } &&5212 { ac_try='test -s conftest.$ac_objext'5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55214 (eval $ac_try) 2>&55215 ac_status=$?5216 echo "$as_me:$LINENO: \$? = $ac_status" >&55217 (exit $ac_status); }; }; then5218 ac_cv_type_size_t=yes5219 else5220 echo "$as_me: failed program was:" >&55221 sed 's/^/| /' conftest.$ac_ext >&55222 5223 ac_cv_type_size_t=no5224 fi5225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext5226 fi5227 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&55228 echo "${ECHO_T}$ac_cv_type_size_t" >&65229 if test $ac_cv_type_size_t = yes; then5230 :5231 else5232 5233 cat >>confdefs.h <<_ACEOF5234 #define size_t unsigned5235 _ACEOF5236 5237 fi5238 5239 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&55240 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&65241 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then5242 echo $ECHO_N "(cached) $ECHO_C" >&65243 else5244 cat >conftest.$ac_ext <<_ACEOF5245 /* confdefs.h. */5246 _ACEOF5247 cat confdefs.h >>conftest.$ac_ext5248 cat >>conftest.$ac_ext <<_ACEOF5249 /* end confdefs.h. */5250 $ac_includes_default5251 int5252 main ()5253 {5254 static struct stat ac_aggr;5255 if (ac_aggr.st_blksize)5256 return 0;5257 ;5258 return 0;5259 }5260 _ACEOF5261 rm -f conftest.$ac_objext5262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&55263 (eval $ac_compile) 2>conftest.er15264 ac_status=$?5265 grep -v '^ *+' conftest.er1 >conftest.err5266 rm -f conftest.er15267 cat conftest.err >&55268 echo "$as_me:$LINENO: \$? = $ac_status" >&55269 (exit $ac_status); } &&5270 { ac_try='test -z "$ac_c_werror_flag"5271 || test ! -s conftest.err'5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55273 (eval $ac_try) 2>&55274 ac_status=$?5275 echo "$as_me:$LINENO: \$? = $ac_status" >&55276 (exit $ac_status); }; } &&5277 { ac_try='test -s conftest.$ac_objext'5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55279 (eval $ac_try) 2>&55280 ac_status=$?5281 echo "$as_me:$LINENO: \$? = $ac_status" >&55282 (exit $ac_status); }; }; then5283 ac_cv_member_struct_stat_st_blksize=yes5284 else5285 echo "$as_me: failed program was:" >&55286 sed 's/^/| /' conftest.$ac_ext >&55287 5288 cat >conftest.$ac_ext <<_ACEOF5289 /* confdefs.h. */5290 _ACEOF5291 cat confdefs.h >>conftest.$ac_ext5292 cat >>conftest.$ac_ext <<_ACEOF5293 /* end confdefs.h. */5294 $ac_includes_default5295 int5296 main ()5297 {5298 static struct stat ac_aggr;5299 if (sizeof ac_aggr.st_blksize)5300 return 0;5301 ;5302 return 0;5303 }5304 _ACEOF5305 rm -f conftest.$ac_objext5306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&55307 (eval $ac_compile) 2>conftest.er15308 ac_status=$?5309 grep -v '^ *+' conftest.er1 >conftest.err5310 rm -f conftest.er15311 cat conftest.err >&55312 echo "$as_me:$LINENO: \$? = $ac_status" >&55313 (exit $ac_status); } &&5314 { ac_try='test -z "$ac_c_werror_flag"5315 || test ! -s conftest.err'5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55317 (eval $ac_try) 2>&55318 ac_status=$?5319 echo "$as_me:$LINENO: \$? = $ac_status" >&55320 (exit $ac_status); }; } &&5321 { ac_try='test -s conftest.$ac_objext'5322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55323 (eval $ac_try) 2>&55324 ac_status=$?5325 echo "$as_me:$LINENO: \$? = $ac_status" >&55326 (exit $ac_status); }; }; then5327 ac_cv_member_struct_stat_st_blksize=yes5328 else5329 echo "$as_me: failed program was:" >&55330 sed 's/^/| /' conftest.$ac_ext >&55331 5332 ac_cv_member_struct_stat_st_blksize=no5333 fi5334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext5335 fi5336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext5337 fi5338 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&55339 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&65340 if test $ac_cv_member_struct_stat_st_blksize = yes; then5341 5342 cat >>confdefs.h <<_ACEOF5343 #define HAVE_STRUCT_STAT_ST_BLKSIZE 15344 _ACEOF5345 5346 5347 fi5348 5349 4570 5350 4571 # Checks for library functions. 5351 echo "$as_me:$LINENO: checking for error_at_line" >&55352 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&65353 if test "${ac_cv_lib_error_at_line+set}" = set; then5354 echo $ECHO_N "(cached) $ECHO_C" >&65355 else5356 cat >conftest.$ac_ext <<_ACEOF5357 /* confdefs.h. */5358 _ACEOF5359 cat confdefs.h >>conftest.$ac_ext5360 cat >>conftest.$ac_ext <<_ACEOF5361 /* end confdefs.h. */5362 $ac_includes_default5363 int5364 main ()5365 {5366 error_at_line (0, 0, "", 0, "");5367 ;5368 return 0;5369 }5370 _ACEOF5371 rm -f conftest.$ac_objext conftest$ac_exeext5372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&55373 (eval $ac_link) 2>conftest.er15374 ac_status=$?5375 grep -v '^ *+' conftest.er1 >conftest.err5376 rm -f conftest.er15377 cat conftest.err >&55378 echo "$as_me:$LINENO: \$? = $ac_status" >&55379 (exit $ac_status); } &&5380 { ac_try='test -z "$ac_c_werror_flag"5381 || test ! -s conftest.err'5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55383 (eval $ac_try) 2>&55384 ac_status=$?5385 echo "$as_me:$LINENO: \$? = $ac_status" >&55386 (exit $ac_status); }; } &&5387 { ac_try='test -s conftest$ac_exeext'5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55389 (eval $ac_try) 2>&55390 ac_status=$?5391 echo "$as_me:$LINENO: \$? = $ac_status" >&55392 (exit $ac_status); }; }; then5393 ac_cv_lib_error_at_line=yes5394 else5395 echo "$as_me: failed program was:" >&55396 sed 's/^/| /' conftest.$ac_ext >&55397 5398 ac_cv_lib_error_at_line=no5399 fi5400 rm -f conftest.err conftest.$ac_objext \5401 conftest$ac_exeext conftest.$ac_ext5402 fi5403 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&55404 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&65405 if test $ac_cv_lib_error_at_line = no; then5406 case $LIBOBJS in5407 "error.$ac_objext" | \5408 *" error.$ac_objext" | \5409 "error.$ac_objext "* | \5410 *" error.$ac_objext "* ) ;;5411 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;5412 esac5413 5414 fi5415 5416 4572 5417 4573 for ac_header in stdlib.h … … 5646 4802 5647 4803 5648 for ac_header in stdlib.h 5649 do 5650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5651 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5652 echo "$as_me:$LINENO: checking for $ac_header" >&5 5653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5654 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5655 echo $ECHO_N "(cached) $ECHO_C" >&6 5656 fi 5657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5659 else 5660 # Is the header compilable? 5661 echo "$as_me:$LINENO: checking $ac_header usability" >&5 5662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5663 cat >conftest.$ac_ext <<_ACEOF 5664 /* confdefs.h. */ 5665 _ACEOF 5666 cat confdefs.h >>conftest.$ac_ext 5667 cat >>conftest.$ac_ext <<_ACEOF 5668 /* end confdefs.h. */ 5669 $ac_includes_default 5670 #include <$ac_header> 5671 _ACEOF 5672 rm -f conftest.$ac_objext 5673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5674 (eval $ac_compile) 2>conftest.er1 5675 ac_status=$? 5676 grep -v '^ *+' conftest.er1 >conftest.err 5677 rm -f conftest.er1 5678 cat conftest.err >&5 5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5680 (exit $ac_status); } && 5681 { ac_try='test -z "$ac_c_werror_flag" 5682 || test ! -s conftest.err' 5683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5684 (eval $ac_try) 2>&5 5685 ac_status=$? 5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5687 (exit $ac_status); }; } && 5688 { ac_try='test -s conftest.$ac_objext' 5689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5690 (eval $ac_try) 2>&5 5691 ac_status=$? 5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5693 (exit $ac_status); }; }; then 5694 ac_header_compiler=yes 5695 else 5696 echo "$as_me: failed program was:" >&5 5697 sed 's/^/| /' conftest.$ac_ext >&5 5698 5699 ac_header_compiler=no 5700 fi 5701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5702 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5703 echo "${ECHO_T}$ac_header_compiler" >&6 5704 5705 # Is the header present? 5706 echo "$as_me:$LINENO: checking $ac_header presence" >&5 5707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5708 cat >conftest.$ac_ext <<_ACEOF 5709 /* confdefs.h. */ 5710 _ACEOF 5711 cat confdefs.h >>conftest.$ac_ext 5712 cat >>conftest.$ac_ext <<_ACEOF 5713 /* end confdefs.h. */ 5714 #include <$ac_header> 5715 _ACEOF 5716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5718 ac_status=$? 5719 grep -v '^ *+' conftest.er1 >conftest.err 5720 rm -f conftest.er1 5721 cat conftest.err >&5 5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5723 (exit $ac_status); } >/dev/null; then 5724 if test -s conftest.err; then 5725 ac_cpp_err=$ac_c_preproc_warn_flag 5726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5727 else 5728 ac_cpp_err= 5729 fi 5730 else 5731 ac_cpp_err=yes 5732 fi 5733 if test -z "$ac_cpp_err"; then 5734 ac_header_preproc=yes 5735 else 5736 echo "$as_me: failed program was:" >&5 5737 sed 's/^/| /' conftest.$ac_ext >&5 5738 5739 ac_header_preproc=no 5740 fi 5741 rm -f conftest.err conftest.$ac_ext 5742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5743 echo "${ECHO_T}$ac_header_preproc" >&6 5744 5745 # So? What about this header? 5746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5747 yes:no: ) 5748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5752 ac_header_preproc=yes 5753 ;; 5754 no:yes:* ) 5755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5758 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5762 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5767 ( 5768 cat <<\_ASBOX 5769 ## --------------------------------- ## 5770 ## Report this to BUG-REPORT-ADDRESS ## 5771 ## --------------------------------- ## 5772 _ASBOX 5773 ) | 5774 sed "s/^/$as_me: WARNING: /" >&2 5775 ;; 5776 esac 5777 echo "$as_me:$LINENO: checking for $ac_header" >&5 5778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5779 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5780 echo $ECHO_N "(cached) $ECHO_C" >&6 5781 else 5782 eval "$as_ac_Header=\$ac_header_preproc" 5783 fi 5784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5786 5787 fi 5788 if test `eval echo '${'$as_ac_Header'}'` = yes; then 5789 cat >>confdefs.h <<_ACEOF 5790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5791 _ACEOF 5792 5793 fi 5794 5795 done 5796 5797 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 5798 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6 5799 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then 5800 echo $ECHO_N "(cached) $ECHO_C" >&6 5801 else 5802 if test "$cross_compiling" = yes; then 5803 ac_cv_func_realloc_0_nonnull=no 5804 else 5805 cat >conftest.$ac_ext <<_ACEOF 5806 /* confdefs.h. */ 5807 _ACEOF 5808 cat confdefs.h >>conftest.$ac_ext 5809 cat >>conftest.$ac_ext <<_ACEOF 5810 /* end confdefs.h. */ 5811 #if STDC_HEADERS || HAVE_STDLIB_H 5812 # include <stdlib.h> 5813 #else 5814 char *realloc (); 5815 #endif 5816 5817 int 5818 main () 5819 { 5820 exit (realloc (0, 0) ? 0 : 1); 5821 ; 5822 return 0; 5823 } 5824 _ACEOF 5825 rm -f conftest$ac_exeext 5826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5827 (eval $ac_link) 2>&5 5828 ac_status=$? 5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5832 (eval $ac_try) 2>&5 5833 ac_status=$? 5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5835 (exit $ac_status); }; }; then 5836 ac_cv_func_realloc_0_nonnull=yes 5837 else 5838 echo "$as_me: program exited with status $ac_status" >&5 5839 echo "$as_me: failed program was:" >&5 5840 sed 's/^/| /' conftest.$ac_ext >&5 5841 5842 ( exit $ac_status ) 5843 ac_cv_func_realloc_0_nonnull=no 5844 fi 5845 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5846 fi 5847 fi 5848 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 5849 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6 5850 if test $ac_cv_func_realloc_0_nonnull = yes; then 5851 5852 cat >>confdefs.h <<\_ACEOF 5853 #define HAVE_REALLOC 1 5854 _ACEOF 5855 5856 else 5857 cat >>confdefs.h <<\_ACEOF 5858 #define HAVE_REALLOC 0 5859 _ACEOF 5860 5861 case $LIBOBJS in 5862 "realloc.$ac_objext" | \ 5863 *" realloc.$ac_objext" | \ 5864 "realloc.$ac_objext "* | \ 5865 *" realloc.$ac_objext "* ) ;; 5866 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;; 5867 esac 5868 5869 5870 cat >>confdefs.h <<\_ACEOF 5871 #define realloc rpl_realloc 5872 _ACEOF 5873 5874 fi 5875 5876 5877 5878 5879 5880 5881 5882 for ac_func in bzero memchr memset sqrt 4804 4805 for ac_func in bzero sqrt 5883 4806 do 5884 4807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` … … 5982 4905 5983 4906 5984 ac_config_files="$ac_config_files console/Makefile core/Makefile doc/program_examples/openGL/Makefile gui/Makefile orxonox/Makefile"4907 ac_config_files="$ac_config_files console/Makefile gui/Makefile src/Makefile" 5985 4908 5986 4909 cat >confcache <<\_ACEOF … … 6075 4998 6076 4999 5000 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 5001 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 5002 Usually this means the macro was only invoked conditionally." >&5 5003 echo "$as_me: error: conditional \"AMDEP\" was never defined. 5004 Usually this means the macro was only invoked conditionally." >&2;} 5005 { (exit 1); exit 1; }; } 5006 fi 5007 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 5008 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 5009 Usually this means the macro was only invoked conditionally." >&5 5010 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 5011 Usually this means the macro was only invoked conditionally." >&2;} 5012 { (exit 1); exit 1; }; } 5013 fi 5014 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 5015 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 5016 Usually this means the macro was only invoked conditionally." >&5 5017 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 5018 Usually this means the macro was only invoked conditionally." >&2;} 5019 { (exit 1); exit 1; }; } 5020 fi 6077 5021 6078 5022 : ${CONFIG_STATUS=./config.status} … … 6401 5345 $config_headers 6402 5346 5347 Configuration commands: 5348 $config_commands 5349 6403 5350 Report bugs to <bug-autoconf@gnu.org>." 6404 5351 _ACEOF … … 6414 5361 gives unlimited permission to copy, distribute and modify it." 6415 5362 srcdir=$srcdir 5363 INSTALL="$INSTALL" 6416 5364 _ACEOF 6417 5365 … … 6499 5447 _ACEOF 6500 5448 6501 5449 cat >>$CONFIG_STATUS <<_ACEOF 5450 # 5451 # INIT-COMMANDS section. 5452 # 5453 5454 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 5455 5456 _ACEOF 6502 5457 6503 5458 … … 6509 5464 # Handling of arguments. 6510 5465 "console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;; 6511 "core/Makefile" ) CONFIG_FILES="$CONFIG_FILES core/Makefile" ;;6512 "doc/program_examples/openGL/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/program_examples/openGL/Makefile" ;;6513 5466 "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;; 6514 "orxonox/Makefile" ) CONFIG_FILES="$CONFIG_FILES orxonox/Makefile" ;; 5467 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 5468 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 6515 5469 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 6516 5470 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 … … 6527 5481 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 6528 5482 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5483 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 6529 5484 fi 6530 5485 … … 6598 5553 s,@ECHO_T@,$ECHO_T,;t t 6599 5554 s,@LIBS@,$LIBS,;t t 5555 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 5556 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 5557 s,@INSTALL_DATA@,$INSTALL_DATA,;t t 5558 s,@CYGPATH_W@,$CYGPATH_W,;t t 5559 s,@PACKAGE@,$PACKAGE,;t t 5560 s,@VERSION@,$VERSION,;t t 5561 s,@ACLOCAL@,$ACLOCAL,;t t 5562 s,@AUTOCONF@,$AUTOCONF,;t t 5563 s,@AUTOMAKE@,$AUTOMAKE,;t t 5564 s,@AUTOHEADER@,$AUTOHEADER,;t t 5565 s,@MAKEINFO@,$MAKEINFO,;t t 5566 s,@AMTAR@,$AMTAR,;t t 5567 s,@install_sh@,$install_sh,;t t 5568 s,@STRIP@,$STRIP,;t t 5569 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 5570 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 5571 s,@AWK@,$AWK,;t t 5572 s,@SET_MAKE@,$SET_MAKE,;t t 5573 s,@am__leading_dot@,$am__leading_dot,;t t 6600 5574 s,@CXX@,$CXX,;t t 6601 5575 s,@CXXFLAGS@,$CXXFLAGS,;t t … … 6605 5579 s,@EXEEXT@,$EXEEXT,;t t 6606 5580 s,@OBJEXT@,$OBJEXT,;t t 5581 s,@DEPDIR@,$DEPDIR,;t t 5582 s,@am__include@,$am__include,;t t 5583 s,@am__quote@,$am__quote,;t t 5584 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 5585 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 5586 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 5587 s,@CXXDEPMODE@,$CXXDEPMODE,;t t 5588 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 5589 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 6607 5590 s,@CC@,$CC,;t t 6608 5591 s,@CFLAGS@,$CFLAGS,;t t 6609 5592 s,@ac_ct_CC@,$ac_ct_CC,;t t 6610 s,@ALLOCA@,$ALLOCA,;t t 5593 s,@CCDEPMODE@,$CCDEPMODE,;t t 5594 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 5595 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 6611 5596 s,@CPP@,$CPP,;t t 6612 5597 s,@EGREP@,$EGREP,;t t … … 6774 5759 6775 5760 5761 case $INSTALL in 5762 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 5763 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 5764 esac 6776 5765 6777 5766 if test x"$ac_file" != x-; then … … 6835 5824 s,@top_builddir@,$ac_top_builddir,;t t 6836 5825 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 5826 s,@INSTALL@,$ac_INSTALL,;t t 6837 5827 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 6838 5828 rm -f $tmp/stdin … … 7067 6057 rm -f $tmp/config.h 7068 6058 fi 6059 # Compute $ac_file's index in $config_headers. 6060 _am_stamp_count=1 6061 for _am_header in $config_headers :; do 6062 case $_am_header in 6063 $ac_file | $ac_file:* ) 6064 break ;; 6065 * ) 6066 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 6067 esac 6068 done 6069 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 6070 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6071 X$ac_file : 'X\(//\)[^/]' \| \ 6072 X$ac_file : 'X\(//\)$' \| \ 6073 X$ac_file : 'X\(/\)' \| \ 6074 . : '\(.\)' 2>/dev/null || 6075 echo X$ac_file | 6076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6077 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6078 /^X\(\/\/\)$/{ s//\1/; q; } 6079 /^X\(\/\).*/{ s//\1/; q; } 6080 s/.*/./; q'`/stamp-h$_am_stamp_count 6081 done 6082 _ACEOF 6083 cat >>$CONFIG_STATUS <<\_ACEOF 6084 6085 # 6086 # CONFIG_COMMANDS section. 6087 # 6088 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 6089 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 6090 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 6091 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 6092 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6093 X"$ac_dest" : 'X\(//\)[^/]' \| \ 6094 X"$ac_dest" : 'X\(//\)$' \| \ 6095 X"$ac_dest" : 'X\(/\)' \| \ 6096 . : '\(.\)' 2>/dev/null || 6097 echo X"$ac_dest" | 6098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6099 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6100 /^X\(\/\/\)$/{ s//\1/; q; } 6101 /^X\(\/\).*/{ s//\1/; q; } 6102 s/.*/./; q'` 6103 { if $as_mkdir_p; then 6104 mkdir -p "$ac_dir" 6105 else 6106 as_dir="$ac_dir" 6107 as_dirs= 6108 while test ! -d "$as_dir"; do 6109 as_dirs="$as_dir $as_dirs" 6110 as_dir=`(dirname "$as_dir") 2>/dev/null || 6111 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6112 X"$as_dir" : 'X\(//\)[^/]' \| \ 6113 X"$as_dir" : 'X\(//\)$' \| \ 6114 X"$as_dir" : 'X\(/\)' \| \ 6115 . : '\(.\)' 2>/dev/null || 6116 echo X"$as_dir" | 6117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6118 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6119 /^X\(\/\/\)$/{ s//\1/; q; } 6120 /^X\(\/\).*/{ s//\1/; q; } 6121 s/.*/./; q'` 6122 done 6123 test ! -n "$as_dirs" || mkdir $as_dirs 6124 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 6125 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 6126 { (exit 1); exit 1; }; }; } 6127 6128 ac_builddir=. 6129 6130 if test "$ac_dir" != .; then 6131 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 6132 # A "../" for each directory in $ac_dir_suffix. 6133 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 6134 else 6135 ac_dir_suffix= ac_top_builddir= 6136 fi 6137 6138 case $srcdir in 6139 .) # No --srcdir option. We are building in place. 6140 ac_srcdir=. 6141 if test -z "$ac_top_builddir"; then 6142 ac_top_srcdir=. 6143 else 6144 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 6145 fi ;; 6146 [\\/]* | ?:[\\/]* ) # Absolute path. 6147 ac_srcdir=$srcdir$ac_dir_suffix; 6148 ac_top_srcdir=$srcdir ;; 6149 *) # Relative path. 6150 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 6151 ac_top_srcdir=$ac_top_builddir$srcdir ;; 6152 esac 6153 6154 # Do not use `cd foo && pwd` to compute absolute paths, because 6155 # the directories may not exist. 6156 case `pwd` in 6157 .) ac_abs_builddir="$ac_dir";; 6158 *) 6159 case "$ac_dir" in 6160 .) ac_abs_builddir=`pwd`;; 6161 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 6162 *) ac_abs_builddir=`pwd`/"$ac_dir";; 6163 esac;; 6164 esac 6165 case $ac_abs_builddir in 6166 .) ac_abs_top_builddir=${ac_top_builddir}.;; 6167 *) 6168 case ${ac_top_builddir}. in 6169 .) ac_abs_top_builddir=$ac_abs_builddir;; 6170 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 6171 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 6172 esac;; 6173 esac 6174 case $ac_abs_builddir in 6175 .) ac_abs_srcdir=$ac_srcdir;; 6176 *) 6177 case $ac_srcdir in 6178 .) ac_abs_srcdir=$ac_abs_builddir;; 6179 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 6180 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 6181 esac;; 6182 esac 6183 case $ac_abs_builddir in 6184 .) ac_abs_top_srcdir=$ac_top_srcdir;; 6185 *) 6186 case $ac_top_srcdir in 6187 .) ac_abs_top_srcdir=$ac_abs_builddir;; 6188 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 6189 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 6190 esac;; 6191 esac 6192 6193 6194 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 6195 echo "$as_me: executing $ac_dest commands" >&6;} 6196 case $ac_dest in 6197 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 6198 # Strip MF so we end up with the name of the file. 6199 mf=`echo "$mf" | sed -e 's/:.*$//'` 6200 # Check whether this is an Automake generated Makefile or not. 6201 # We used to match only the files named `Makefile.in', but 6202 # some people rename them; so instead we look at the file content. 6203 # Grep'ing the first line is not enough: some people post-process 6204 # each Makefile.in and add a new line on top of each file to say so. 6205 # So let's grep whole file. 6206 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 6207 dirpart=`(dirname "$mf") 2>/dev/null || 6208 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6209 X"$mf" : 'X\(//\)[^/]' \| \ 6210 X"$mf" : 'X\(//\)$' \| \ 6211 X"$mf" : 'X\(/\)' \| \ 6212 . : '\(.\)' 2>/dev/null || 6213 echo X"$mf" | 6214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6215 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6216 /^X\(\/\/\)$/{ s//\1/; q; } 6217 /^X\(\/\).*/{ s//\1/; q; } 6218 s/.*/./; q'` 6219 else 6220 continue 6221 fi 6222 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 6223 # Extract the definition of DEP_FILES from the Makefile without 6224 # running `make'. 6225 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 6226 test -z "$DEPDIR" && continue 6227 # When using ansi2knr, U may be empty or an underscore; expand it 6228 U=`sed -n -e '/^U = / s///p' < "$mf"` 6229 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 6230 # We invoke sed twice because it is the simplest approach to 6231 # changing $(DEPDIR) to its actual value in the expansion. 6232 for file in `sed -n -e ' 6233 /^DEP_FILES = .*\\\\$/ { 6234 s/^DEP_FILES = // 6235 :loop 6236 s/\\\\$// 6237 p 6238 n 6239 /\\\\$/ b loop 6240 p 6241 } 6242 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 6243 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 6244 # Make sure the directory exists. 6245 test -f "$dirpart/$file" && continue 6246 fdir=`(dirname "$file") 2>/dev/null || 6247 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6248 X"$file" : 'X\(//\)[^/]' \| \ 6249 X"$file" : 'X\(//\)$' \| \ 6250 X"$file" : 'X\(/\)' \| \ 6251 . : '\(.\)' 2>/dev/null || 6252 echo X"$file" | 6253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6254 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6255 /^X\(\/\/\)$/{ s//\1/; q; } 6256 /^X\(\/\).*/{ s//\1/; q; } 6257 s/.*/./; q'` 6258 { if $as_mkdir_p; then 6259 mkdir -p $dirpart/$fdir 6260 else 6261 as_dir=$dirpart/$fdir 6262 as_dirs= 6263 while test ! -d "$as_dir"; do 6264 as_dirs="$as_dir $as_dirs" 6265 as_dir=`(dirname "$as_dir") 2>/dev/null || 6266 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6267 X"$as_dir" : 'X\(//\)[^/]' \| \ 6268 X"$as_dir" : 'X\(//\)$' \| \ 6269 X"$as_dir" : 'X\(/\)' \| \ 6270 . : '\(.\)' 2>/dev/null || 6271 echo X"$as_dir" | 6272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6273 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6274 /^X\(\/\/\)$/{ s//\1/; q; } 6275 /^X\(\/\).*/{ s//\1/; q; } 6276 s/.*/./; q'` 6277 done 6278 test ! -n "$as_dirs" || mkdir $as_dirs 6279 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 6280 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 6281 { (exit 1); exit 1; }; }; } 6282 6283 # echo "creating $dirpart/$file" 6284 echo '# dummy' > "$dirpart/$file" 6285 done 6286 done 6287 ;; 6288 esac 7069 6289 done 7070 6290 _ACEOF
Note: See TracChangeset
for help on using the changeset viewer.