… | |
… | |
168 | fi |
168 | fi |
169 | test x\$exitcode = x0 || exit 1" |
169 | test x\$exitcode = x0 || exit 1" |
170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" |
173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
|
|
174 | test \$(( 1 + 1 )) = 2 || exit 1" |
174 | if (eval "$as_required") 2>/dev/null; then : |
175 | if (eval "$as_required") 2>/dev/null; then : |
175 | as_have_required=yes |
176 | as_have_required=yes |
176 | else |
177 | else |
177 | as_have_required=no |
178 | as_have_required=no |
178 | fi |
179 | fi |
… | |
… | |
552 | PACKAGE_STRING= |
553 | PACKAGE_STRING= |
553 | PACKAGE_BUGREPORT= |
554 | PACKAGE_BUGREPORT= |
554 | PACKAGE_URL= |
555 | PACKAGE_URL= |
555 | |
556 | |
556 | ac_unique_file="libeio/eio.h" |
557 | ac_unique_file="libeio/eio.h" |
|
|
558 | # Factoring default headers for most tests. |
|
|
559 | ac_includes_default="\ |
|
|
560 | #include <stdio.h> |
|
|
561 | #ifdef HAVE_SYS_TYPES_H |
|
|
562 | # include <sys/types.h> |
|
|
563 | #endif |
|
|
564 | #ifdef HAVE_SYS_STAT_H |
|
|
565 | # include <sys/stat.h> |
|
|
566 | #endif |
|
|
567 | #ifdef STDC_HEADERS |
|
|
568 | # include <stdlib.h> |
|
|
569 | # include <stddef.h> |
|
|
570 | #else |
|
|
571 | # ifdef HAVE_STDLIB_H |
|
|
572 | # include <stdlib.h> |
|
|
573 | # endif |
|
|
574 | #endif |
|
|
575 | #ifdef HAVE_STRING_H |
|
|
576 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
|
|
577 | # include <memory.h> |
|
|
578 | # endif |
|
|
579 | # include <string.h> |
|
|
580 | #endif |
|
|
581 | #ifdef HAVE_STRINGS_H |
|
|
582 | # include <strings.h> |
|
|
583 | #endif |
|
|
584 | #ifdef HAVE_INTTYPES_H |
|
|
585 | # include <inttypes.h> |
|
|
586 | #endif |
|
|
587 | #ifdef HAVE_STDINT_H |
|
|
588 | # include <stdint.h> |
|
|
589 | #endif |
|
|
590 | #ifdef HAVE_UNISTD_H |
|
|
591 | # include <unistd.h> |
|
|
592 | #endif" |
|
|
593 | |
557 | ac_subst_vars='LTLIBOBJS |
594 | ac_subst_vars='LTLIBOBJS |
558 | LIBOBJS |
595 | LIBOBJS |
|
|
596 | EGREP |
|
|
597 | GREP |
|
|
598 | CPP |
559 | OBJEXT |
599 | OBJEXT |
560 | EXEEXT |
600 | EXEEXT |
561 | ac_ct_CC |
601 | ac_ct_CC |
562 | CPPFLAGS |
602 | CPPFLAGS |
563 | LDFLAGS |
603 | LDFLAGS |
… | |
… | |
610 | target_alias |
650 | target_alias |
611 | CC |
651 | CC |
612 | CFLAGS |
652 | CFLAGS |
613 | LDFLAGS |
653 | LDFLAGS |
614 | LIBS |
654 | LIBS |
615 | CPPFLAGS' |
655 | CPPFLAGS |
|
|
656 | CPP' |
616 | |
657 | |
617 | |
658 | |
618 | # Initialize some variables set by options. |
659 | # Initialize some variables set by options. |
619 | ac_init_help= |
660 | ac_init_help= |
620 | ac_init_version=false |
661 | ac_init_version=false |
… | |
… | |
1224 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1265 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1225 | nonstandard directory <lib dir> |
1266 | nonstandard directory <lib dir> |
1226 | LIBS libraries to pass to the linker, e.g. -l<library> |
1267 | LIBS libraries to pass to the linker, e.g. -l<library> |
1227 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1268 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1228 | you have headers in a nonstandard directory <include dir> |
1269 | you have headers in a nonstandard directory <include dir> |
|
|
1270 | CPP C preprocessor |
1229 | |
1271 | |
1230 | Use these variables to override the choices made by `configure' or to help |
1272 | Use these variables to override the choices made by `configure' or to help |
1231 | it to find libraries and programs with nonstandard names/locations. |
1273 | it to find libraries and programs with nonstandard names/locations. |
1232 | |
1274 | |
1233 | Report bugs to the package provider. |
1275 | Report bugs to the package provider. |
… | |
… | |
1342 | fi |
1384 | fi |
1343 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1385 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1344 | as_fn_set_status $ac_retval |
1386 | as_fn_set_status $ac_retval |
1345 | |
1387 | |
1346 | } # ac_fn_c_try_compile |
1388 | } # ac_fn_c_try_compile |
|
|
1389 | |
|
|
1390 | # ac_fn_c_try_cpp LINENO |
|
|
1391 | # ---------------------- |
|
|
1392 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
|
|
1393 | ac_fn_c_try_cpp () |
|
|
1394 | { |
|
|
1395 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1396 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
|
|
1397 | case "(($ac_try" in |
|
|
1398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1399 | *) ac_try_echo=$ac_try;; |
|
|
1400 | esac |
|
|
1401 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
1402 | $as_echo "$ac_try_echo"; } >&5 |
|
|
1403 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
|
|
1404 | ac_status=$? |
|
|
1405 | if test -s conftest.err; then |
|
|
1406 | grep -v '^ *+' conftest.err >conftest.er1 |
|
|
1407 | cat conftest.er1 >&5 |
|
|
1408 | mv -f conftest.er1 conftest.err |
|
|
1409 | fi |
|
|
1410 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
1411 | test $ac_status = 0; } > conftest.i && { |
|
|
1412 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
|
1413 | test ! -s conftest.err |
|
|
1414 | }; then : |
|
|
1415 | ac_retval=0 |
|
|
1416 | else |
|
|
1417 | $as_echo "$as_me: failed program was:" >&5 |
|
|
1418 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
1419 | |
|
|
1420 | ac_retval=1 |
|
|
1421 | fi |
|
|
1422 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
|
1423 | as_fn_set_status $ac_retval |
|
|
1424 | |
|
|
1425 | } # ac_fn_c_try_cpp |
|
|
1426 | |
|
|
1427 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
|
|
1428 | # ------------------------------------------------------- |
|
|
1429 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
|
|
1430 | # the include files in INCLUDES and setting the cache variable VAR |
|
|
1431 | # accordingly. |
|
|
1432 | ac_fn_c_check_header_mongrel () |
|
|
1433 | { |
|
|
1434 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1435 | if eval "test \"\${$3+set}\"" = set; then : |
|
|
1436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
|
1437 | $as_echo_n "checking for $2... " >&6; } |
|
|
1438 | if eval "test \"\${$3+set}\"" = set; then : |
|
|
1439 | $as_echo_n "(cached) " >&6 |
|
|
1440 | fi |
|
|
1441 | eval ac_res=\$$3 |
|
|
1442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
1443 | $as_echo "$ac_res" >&6; } |
|
|
1444 | else |
|
|
1445 | # Is the header compilable? |
|
|
1446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
|
|
1447 | $as_echo_n "checking $2 usability... " >&6; } |
|
|
1448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1449 | /* end confdefs.h. */ |
|
|
1450 | $4 |
|
|
1451 | #include <$2> |
|
|
1452 | _ACEOF |
|
|
1453 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
1454 | ac_header_compiler=yes |
|
|
1455 | else |
|
|
1456 | ac_header_compiler=no |
|
|
1457 | fi |
|
|
1458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
1459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
|
|
1460 | $as_echo "$ac_header_compiler" >&6; } |
|
|
1461 | |
|
|
1462 | # Is the header present? |
|
|
1463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
|
|
1464 | $as_echo_n "checking $2 presence... " >&6; } |
|
|
1465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1466 | /* end confdefs.h. */ |
|
|
1467 | #include <$2> |
|
|
1468 | _ACEOF |
|
|
1469 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
1470 | ac_header_preproc=yes |
|
|
1471 | else |
|
|
1472 | ac_header_preproc=no |
|
|
1473 | fi |
|
|
1474 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
1475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
|
|
1476 | $as_echo "$ac_header_preproc" >&6; } |
|
|
1477 | |
|
|
1478 | # So? What about this header? |
|
|
1479 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
|
|
1480 | yes:no: ) |
|
|
1481 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
1482 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
1483 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
|
|
1484 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
|
|
1485 | ;; |
|
|
1486 | no:yes:* ) |
|
|
1487 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
|
|
1488 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
|
|
1489 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
|
|
1490 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
|
|
1491 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
|
|
1492 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
|
|
1493 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
1494 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
1495 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
|
|
1496 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
|
|
1497 | ;; |
|
|
1498 | esac |
|
|
1499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
|
1500 | $as_echo_n "checking for $2... " >&6; } |
|
|
1501 | if eval "test \"\${$3+set}\"" = set; then : |
|
|
1502 | $as_echo_n "(cached) " >&6 |
|
|
1503 | else |
|
|
1504 | eval "$3=\$ac_header_compiler" |
|
|
1505 | fi |
|
|
1506 | eval ac_res=\$$3 |
|
|
1507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
1508 | $as_echo "$ac_res" >&6; } |
|
|
1509 | fi |
|
|
1510 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
|
1511 | |
|
|
1512 | } # ac_fn_c_check_header_mongrel |
|
|
1513 | |
|
|
1514 | # ac_fn_c_try_run LINENO |
|
|
1515 | # ---------------------- |
|
|
1516 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
|
|
1517 | # that executables *can* be run. |
|
|
1518 | ac_fn_c_try_run () |
|
|
1519 | { |
|
|
1520 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1521 | if { { ac_try="$ac_link" |
|
|
1522 | case "(($ac_try" in |
|
|
1523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1524 | *) ac_try_echo=$ac_try;; |
|
|
1525 | esac |
|
|
1526 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
1527 | $as_echo "$ac_try_echo"; } >&5 |
|
|
1528 | (eval "$ac_link") 2>&5 |
|
|
1529 | ac_status=$? |
|
|
1530 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
1531 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
|
|
1532 | { { case "(($ac_try" in |
|
|
1533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1534 | *) ac_try_echo=$ac_try;; |
|
|
1535 | esac |
|
|
1536 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
1537 | $as_echo "$ac_try_echo"; } >&5 |
|
|
1538 | (eval "$ac_try") 2>&5 |
|
|
1539 | ac_status=$? |
|
|
1540 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
1541 | test $ac_status = 0; }; }; then : |
|
|
1542 | ac_retval=0 |
|
|
1543 | else |
|
|
1544 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
|
|
1545 | $as_echo "$as_me: failed program was:" >&5 |
|
|
1546 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
1547 | |
|
|
1548 | ac_retval=$ac_status |
|
|
1549 | fi |
|
|
1550 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
|
1551 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
|
1552 | as_fn_set_status $ac_retval |
|
|
1553 | |
|
|
1554 | } # ac_fn_c_try_run |
|
|
1555 | |
|
|
1556 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
|
|
1557 | # ------------------------------------------------------- |
|
|
1558 | # Tests whether HEADER exists and can be compiled using the include files in |
|
|
1559 | # INCLUDES, setting the cache variable VAR accordingly. |
|
|
1560 | ac_fn_c_check_header_compile () |
|
|
1561 | { |
|
|
1562 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
|
1564 | $as_echo_n "checking for $2... " >&6; } |
|
|
1565 | if eval "test \"\${$3+set}\"" = set; then : |
|
|
1566 | $as_echo_n "(cached) " >&6 |
|
|
1567 | else |
|
|
1568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1569 | /* end confdefs.h. */ |
|
|
1570 | $4 |
|
|
1571 | #include <$2> |
|
|
1572 | _ACEOF |
|
|
1573 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
1574 | eval "$3=yes" |
|
|
1575 | else |
|
|
1576 | eval "$3=no" |
|
|
1577 | fi |
|
|
1578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
1579 | fi |
|
|
1580 | eval ac_res=\$$3 |
|
|
1581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
1582 | $as_echo "$ac_res" >&6; } |
|
|
1583 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
|
1584 | |
|
|
1585 | } # ac_fn_c_check_header_compile |
1347 | |
1586 | |
1348 | # ac_fn_c_try_link LINENO |
1587 | # ac_fn_c_try_link LINENO |
1349 | # ----------------------- |
1588 | # ----------------------- |
1350 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
1589 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
1351 | ac_fn_c_try_link () |
1590 | ac_fn_c_try_link () |
… | |
… | |
2536 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2775 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2537 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2776 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2538 | |
2777 | |
2539 | |
2778 | |
2540 | |
2779 | |
|
|
2780 | ac_ext=c |
|
|
2781 | ac_cpp='$CPP $CPPFLAGS' |
|
|
2782 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
2783 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
2784 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
2785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
|
|
2786 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
|
|
2787 | # On Suns, sometimes $CPP names a directory. |
|
|
2788 | if test -n "$CPP" && test -d "$CPP"; then |
|
|
2789 | CPP= |
|
|
2790 | fi |
|
|
2791 | if test -z "$CPP"; then |
|
|
2792 | if test "${ac_cv_prog_CPP+set}" = set; then : |
|
|
2793 | $as_echo_n "(cached) " >&6 |
|
|
2794 | else |
|
|
2795 | # Double quotes because CPP needs to be expanded |
|
|
2796 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
|
2797 | do |
|
|
2798 | ac_preproc_ok=false |
|
|
2799 | for ac_c_preproc_warn_flag in '' yes |
|
|
2800 | do |
|
|
2801 | # Use a header file that comes with gcc, so configuring glibc |
|
|
2802 | # with a fresh cross-compiler works. |
|
|
2803 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
2804 | # <limits.h> exists even on freestanding compilers. |
|
|
2805 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
2806 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
2807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
2808 | /* end confdefs.h. */ |
|
|
2809 | #ifdef __STDC__ |
|
|
2810 | # include <limits.h> |
|
|
2811 | #else |
|
|
2812 | # include <assert.h> |
|
|
2813 | #endif |
|
|
2814 | Syntax error |
|
|
2815 | _ACEOF |
|
|
2816 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
2817 | |
|
|
2818 | else |
|
|
2819 | # Broken: fails on valid input. |
|
|
2820 | continue |
|
|
2821 | fi |
|
|
2822 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
2823 | |
|
|
2824 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
2825 | # can be detected and how. |
|
|
2826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
2827 | /* end confdefs.h. */ |
|
|
2828 | #include <ac_nonexistent.h> |
|
|
2829 | _ACEOF |
|
|
2830 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
2831 | # Broken: success on invalid input. |
|
|
2832 | continue |
|
|
2833 | else |
|
|
2834 | # Passes both tests. |
|
|
2835 | ac_preproc_ok=: |
|
|
2836 | break |
|
|
2837 | fi |
|
|
2838 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
2839 | |
|
|
2840 | done |
|
|
2841 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
2842 | rm -f conftest.i conftest.err conftest.$ac_ext |
|
|
2843 | if $ac_preproc_ok; then : |
|
|
2844 | break |
|
|
2845 | fi |
|
|
2846 | |
|
|
2847 | done |
|
|
2848 | ac_cv_prog_CPP=$CPP |
|
|
2849 | |
|
|
2850 | fi |
|
|
2851 | CPP=$ac_cv_prog_CPP |
|
|
2852 | else |
|
|
2853 | ac_cv_prog_CPP=$CPP |
|
|
2854 | fi |
|
|
2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
|
|
2856 | $as_echo "$CPP" >&6; } |
|
|
2857 | ac_preproc_ok=false |
|
|
2858 | for ac_c_preproc_warn_flag in '' yes |
|
|
2859 | do |
|
|
2860 | # Use a header file that comes with gcc, so configuring glibc |
|
|
2861 | # with a fresh cross-compiler works. |
|
|
2862 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
2863 | # <limits.h> exists even on freestanding compilers. |
|
|
2864 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
2865 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
2866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
2867 | /* end confdefs.h. */ |
|
|
2868 | #ifdef __STDC__ |
|
|
2869 | # include <limits.h> |
|
|
2870 | #else |
|
|
2871 | # include <assert.h> |
|
|
2872 | #endif |
|
|
2873 | Syntax error |
|
|
2874 | _ACEOF |
|
|
2875 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
2876 | |
|
|
2877 | else |
|
|
2878 | # Broken: fails on valid input. |
|
|
2879 | continue |
|
|
2880 | fi |
|
|
2881 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
2882 | |
|
|
2883 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
2884 | # can be detected and how. |
|
|
2885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
2886 | /* end confdefs.h. */ |
|
|
2887 | #include <ac_nonexistent.h> |
|
|
2888 | _ACEOF |
|
|
2889 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
2890 | # Broken: success on invalid input. |
|
|
2891 | continue |
|
|
2892 | else |
|
|
2893 | # Passes both tests. |
|
|
2894 | ac_preproc_ok=: |
|
|
2895 | break |
|
|
2896 | fi |
|
|
2897 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
2898 | |
|
|
2899 | done |
|
|
2900 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
2901 | rm -f conftest.i conftest.err conftest.$ac_ext |
|
|
2902 | if $ac_preproc_ok; then : |
|
|
2903 | |
|
|
2904 | else |
|
|
2905 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
2906 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
2907 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
|
|
2908 | See \`config.log' for more details" "$LINENO" 5 ; } |
|
|
2909 | fi |
|
|
2910 | |
|
|
2911 | ac_ext=c |
|
|
2912 | ac_cpp='$CPP $CPPFLAGS' |
|
|
2913 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
2914 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
2915 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
2916 | |
|
|
2917 | |
|
|
2918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
|
|
2919 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
|
|
2920 | if test "${ac_cv_path_GREP+set}" = set; then : |
|
|
2921 | $as_echo_n "(cached) " >&6 |
|
|
2922 | else |
|
|
2923 | if test -z "$GREP"; then |
|
|
2924 | ac_path_GREP_found=false |
|
|
2925 | # Loop through the user's path and test for each of PROGNAME-LIST |
|
|
2926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2927 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
|
2928 | do |
|
|
2929 | IFS=$as_save_IFS |
|
|
2930 | test -z "$as_dir" && as_dir=. |
|
|
2931 | for ac_prog in grep ggrep; do |
|
|
2932 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2933 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
|
|
2934 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
|
|
2935 | # Check for GNU ac_path_GREP and select it if it is found. |
|
|
2936 | # Check for GNU $ac_path_GREP |
|
|
2937 | case `"$ac_path_GREP" --version 2>&1` in |
|
|
2938 | *GNU*) |
|
|
2939 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
|
|
2940 | *) |
|
|
2941 | ac_count=0 |
|
|
2942 | $as_echo_n 0123456789 >"conftest.in" |
|
|
2943 | while : |
|
|
2944 | do |
|
|
2945 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
|
2946 | mv "conftest.tmp" "conftest.in" |
|
|
2947 | cp "conftest.in" "conftest.nl" |
|
|
2948 | $as_echo 'GREP' >> "conftest.nl" |
|
|
2949 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
|
2950 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
|
2951 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
|
2952 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
|
|
2953 | # Best one so far, save it but keep looking for a better one |
|
|
2954 | ac_cv_path_GREP="$ac_path_GREP" |
|
|
2955 | ac_path_GREP_max=$ac_count |
|
|
2956 | fi |
|
|
2957 | # 10*(2^10) chars as input seems more than enough |
|
|
2958 | test $ac_count -gt 10 && break |
|
|
2959 | done |
|
|
2960 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
|
2961 | esac |
|
|
2962 | |
|
|
2963 | $ac_path_GREP_found && break 3 |
|
|
2964 | done |
|
|
2965 | done |
|
|
2966 | done |
|
|
2967 | IFS=$as_save_IFS |
|
|
2968 | if test -z "$ac_cv_path_GREP"; then |
|
|
2969 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|
|
2970 | fi |
|
|
2971 | else |
|
|
2972 | ac_cv_path_GREP=$GREP |
|
|
2973 | fi |
|
|
2974 | |
|
|
2975 | fi |
|
|
2976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
|
|
2977 | $as_echo "$ac_cv_path_GREP" >&6; } |
|
|
2978 | GREP="$ac_cv_path_GREP" |
|
|
2979 | |
|
|
2980 | |
|
|
2981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
|
|
2982 | $as_echo_n "checking for egrep... " >&6; } |
|
|
2983 | if test "${ac_cv_path_EGREP+set}" = set; then : |
|
|
2984 | $as_echo_n "(cached) " >&6 |
|
|
2985 | else |
|
|
2986 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
|
|
2987 | then ac_cv_path_EGREP="$GREP -E" |
|
|
2988 | else |
|
|
2989 | if test -z "$EGREP"; then |
|
|
2990 | ac_path_EGREP_found=false |
|
|
2991 | # Loop through the user's path and test for each of PROGNAME-LIST |
|
|
2992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2993 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
|
2994 | do |
|
|
2995 | IFS=$as_save_IFS |
|
|
2996 | test -z "$as_dir" && as_dir=. |
|
|
2997 | for ac_prog in egrep; do |
|
|
2998 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2999 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
|
|
3000 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
|
|
3001 | # Check for GNU ac_path_EGREP and select it if it is found. |
|
|
3002 | # Check for GNU $ac_path_EGREP |
|
|
3003 | case `"$ac_path_EGREP" --version 2>&1` in |
|
|
3004 | *GNU*) |
|
|
3005 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
|
|
3006 | *) |
|
|
3007 | ac_count=0 |
|
|
3008 | $as_echo_n 0123456789 >"conftest.in" |
|
|
3009 | while : |
|
|
3010 | do |
|
|
3011 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
|
3012 | mv "conftest.tmp" "conftest.in" |
|
|
3013 | cp "conftest.in" "conftest.nl" |
|
|
3014 | $as_echo 'EGREP' >> "conftest.nl" |
|
|
3015 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
|
3016 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
|
3017 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
|
3018 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
|
|
3019 | # Best one so far, save it but keep looking for a better one |
|
|
3020 | ac_cv_path_EGREP="$ac_path_EGREP" |
|
|
3021 | ac_path_EGREP_max=$ac_count |
|
|
3022 | fi |
|
|
3023 | # 10*(2^10) chars as input seems more than enough |
|
|
3024 | test $ac_count -gt 10 && break |
|
|
3025 | done |
|
|
3026 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
|
3027 | esac |
|
|
3028 | |
|
|
3029 | $ac_path_EGREP_found && break 3 |
|
|
3030 | done |
|
|
3031 | done |
|
|
3032 | done |
|
|
3033 | IFS=$as_save_IFS |
|
|
3034 | if test -z "$ac_cv_path_EGREP"; then |
|
|
3035 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|
|
3036 | fi |
|
|
3037 | else |
|
|
3038 | ac_cv_path_EGREP=$EGREP |
|
|
3039 | fi |
|
|
3040 | |
|
|
3041 | fi |
|
|
3042 | fi |
|
|
3043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
|
|
3044 | $as_echo "$ac_cv_path_EGREP" >&6; } |
|
|
3045 | EGREP="$ac_cv_path_EGREP" |
|
|
3046 | |
|
|
3047 | |
|
|
3048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
|
|
3049 | $as_echo_n "checking for ANSI C header files... " >&6; } |
|
|
3050 | if test "${ac_cv_header_stdc+set}" = set; then : |
|
|
3051 | $as_echo_n "(cached) " >&6 |
|
|
3052 | else |
|
|
3053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3054 | /* end confdefs.h. */ |
|
|
3055 | #include <stdlib.h> |
|
|
3056 | #include <stdarg.h> |
|
|
3057 | #include <string.h> |
|
|
3058 | #include <float.h> |
|
|
3059 | |
|
|
3060 | int |
|
|
3061 | main () |
|
|
3062 | { |
|
|
3063 | |
|
|
3064 | ; |
|
|
3065 | return 0; |
|
|
3066 | } |
|
|
3067 | _ACEOF |
|
|
3068 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
3069 | ac_cv_header_stdc=yes |
|
|
3070 | else |
|
|
3071 | ac_cv_header_stdc=no |
|
|
3072 | fi |
|
|
3073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3074 | |
|
|
3075 | if test $ac_cv_header_stdc = yes; then |
|
|
3076 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
3077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3078 | /* end confdefs.h. */ |
|
|
3079 | #include <string.h> |
|
|
3080 | |
|
|
3081 | _ACEOF |
|
|
3082 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
3083 | $EGREP "memchr" >/dev/null 2>&1; then : |
|
|
3084 | |
|
|
3085 | else |
|
|
3086 | ac_cv_header_stdc=no |
|
|
3087 | fi |
|
|
3088 | rm -f conftest* |
|
|
3089 | |
|
|
3090 | fi |
|
|
3091 | |
|
|
3092 | if test $ac_cv_header_stdc = yes; then |
|
|
3093 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
3094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3095 | /* end confdefs.h. */ |
|
|
3096 | #include <stdlib.h> |
|
|
3097 | |
|
|
3098 | _ACEOF |
|
|
3099 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
3100 | $EGREP "free" >/dev/null 2>&1; then : |
|
|
3101 | |
|
|
3102 | else |
|
|
3103 | ac_cv_header_stdc=no |
|
|
3104 | fi |
|
|
3105 | rm -f conftest* |
|
|
3106 | |
|
|
3107 | fi |
|
|
3108 | |
|
|
3109 | if test $ac_cv_header_stdc = yes; then |
|
|
3110 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
3111 | if test "$cross_compiling" = yes; then : |
|
|
3112 | : |
|
|
3113 | else |
|
|
3114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3115 | /* end confdefs.h. */ |
|
|
3116 | #include <ctype.h> |
|
|
3117 | #include <stdlib.h> |
|
|
3118 | #if ((' ' & 0x0FF) == 0x020) |
|
|
3119 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
3120 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
3121 | #else |
|
|
3122 | # define ISLOWER(c) \ |
|
|
3123 | (('a' <= (c) && (c) <= 'i') \ |
|
|
3124 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
3125 | || ('s' <= (c) && (c) <= 'z')) |
|
|
3126 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
3127 | #endif |
|
|
3128 | |
|
|
3129 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
3130 | int |
|
|
3131 | main () |
|
|
3132 | { |
|
|
3133 | int i; |
|
|
3134 | for (i = 0; i < 256; i++) |
|
|
3135 | if (XOR (islower (i), ISLOWER (i)) |
|
|
3136 | || toupper (i) != TOUPPER (i)) |
|
|
3137 | return 2; |
|
|
3138 | return 0; |
|
|
3139 | } |
|
|
3140 | _ACEOF |
|
|
3141 | if ac_fn_c_try_run "$LINENO"; then : |
|
|
3142 | |
|
|
3143 | else |
|
|
3144 | ac_cv_header_stdc=no |
|
|
3145 | fi |
|
|
3146 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
3147 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
3148 | fi |
|
|
3149 | |
|
|
3150 | fi |
|
|
3151 | fi |
|
|
3152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
|
|
3153 | $as_echo "$ac_cv_header_stdc" >&6; } |
|
|
3154 | if test $ac_cv_header_stdc = yes; then |
|
|
3155 | |
|
|
3156 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
|
|
3157 | |
|
|
3158 | fi |
|
|
3159 | |
|
|
3160 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
3161 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
3162 | inttypes.h stdint.h unistd.h |
|
|
3163 | do : |
|
|
3164 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
3165 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
|
|
3166 | " |
|
|
3167 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
|
3168 | cat >>confdefs.h <<_ACEOF |
|
|
3169 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
3170 | _ACEOF |
|
|
3171 | |
|
|
3172 | fi |
|
|
3173 | |
|
|
3174 | done |
|
|
3175 | |
|
|
3176 | |
|
|
3177 | for ac_header in stdint.h sys/syscall.h |
|
|
3178 | do : |
|
|
3179 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
3180 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
|
|
3181 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
|
3182 | cat >>confdefs.h <<_ACEOF |
|
|
3183 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
3184 | _ACEOF |
|
|
3185 | |
|
|
3186 | fi |
|
|
3187 | |
|
|
3188 | done |
|
|
3189 | |
|
|
3190 | |
2541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 |
3191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 |
2542 | $as_echo_n "checking for library containing pthread_create... " >&6; } |
3192 | $as_echo_n "checking for library containing pthread_create... " >&6; } |
2543 | if test "${ac_cv_search_pthread_create+set}" = set; then : |
3193 | if test "${ac_cv_search_pthread_create+set}" = set; then : |
2544 | $as_echo_n "(cached) " >&6 |
3194 | $as_echo_n "(cached) " >&6 |
2545 | else |
3195 | else |
… | |
… | |
2594 | |
3244 | |
2595 | else |
3245 | else |
2596 | as_fn_error $? "pthread functions not found" "$LINENO" 5 |
3246 | as_fn_error $? "pthread functions not found" "$LINENO" 5 |
2597 | |
3247 | |
2598 | fi |
3248 | fi |
|
|
3249 | |
|
|
3250 | |
|
|
3251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes" >&5 |
|
|
3252 | $as_echo_n "checking for utimes... " >&6; } |
|
|
3253 | if test "${ac_cv_utimes+set}" = set; then : |
|
|
3254 | $as_echo_n "(cached) " >&6 |
|
|
3255 | else |
|
|
3256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3257 | /* end confdefs.h. */ |
|
|
3258 | |
|
|
3259 | #include <sys/types.h> |
|
|
3260 | #include <sys/time.h> |
|
|
3261 | #include <utime.h> |
|
|
3262 | struct timeval tv[2]; |
|
|
3263 | int res; |
|
|
3264 | int main (void) |
|
|
3265 | { |
|
|
3266 | res = utimes ("/", tv); |
|
|
3267 | return 0; |
|
|
3268 | } |
|
|
3269 | |
|
|
3270 | _ACEOF |
|
|
3271 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
3272 | ac_cv_utimes=yes |
|
|
3273 | else |
|
|
3274 | ac_cv_utimes=no |
|
|
3275 | fi |
|
|
3276 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
3277 | conftest$ac_exeext conftest.$ac_ext |
|
|
3278 | fi |
|
|
3279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_utimes" >&5 |
|
|
3280 | $as_echo "$ac_cv_utimes" >&6; } |
|
|
3281 | test $ac_cv_utimes = yes && |
|
|
3282 | $as_echo "#define HAVE_UTIMES 1" >>confdefs.h |
2599 | |
3283 | |
2600 | |
3284 | |
2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for futimes" >&5 |
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for futimes" >&5 |
2602 | $as_echo_n "checking for futimes... " >&6; } |
3286 | $as_echo_n "checking for futimes... " >&6; } |
2603 | if test "${ac_cv_futimes+set}" = set; then : |
3287 | if test "${ac_cv_futimes+set}" = set; then : |
… | |
… | |
2816 | $as_echo "$ac_cv_sync_file_range" >&6; } |
3500 | $as_echo "$ac_cv_sync_file_range" >&6; } |
2817 | test $ac_cv_sync_file_range = yes && |
3501 | test $ac_cv_sync_file_range = yes && |
2818 | $as_echo "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h |
3502 | $as_echo "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h |
2819 | |
3503 | |
2820 | |
3504 | |
|
|
3505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5 |
|
|
3506 | $as_echo_n "checking for fallocate... " >&6; } |
|
|
3507 | if test "${ac_cv_fallocate+set}" = set; then : |
|
|
3508 | $as_echo_n "(cached) " >&6 |
|
|
3509 | else |
|
|
3510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3511 | /* end confdefs.h. */ |
|
|
3512 | |
|
|
3513 | #include <fcntl.h> |
|
|
3514 | int main (void) |
|
|
3515 | { |
|
|
3516 | int fd = 0; |
|
|
3517 | int mode = 0; |
|
|
3518 | off_t offset = 1; |
|
|
3519 | off_t len = 1; |
|
|
3520 | int res; |
|
|
3521 | res = fallocate (fd, mode, offset, len); |
|
|
3522 | return 0; |
|
|
3523 | } |
|
|
3524 | |
|
|
3525 | _ACEOF |
|
|
3526 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
3527 | ac_cv_fallocate=yes |
|
|
3528 | else |
|
|
3529 | ac_cv_fallocate=no |
|
|
3530 | fi |
|
|
3531 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
3532 | conftest$ac_exeext conftest.$ac_ext |
|
|
3533 | fi |
|
|
3534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fallocate" >&5 |
|
|
3535 | $as_echo "$ac_cv_fallocate" >&6; } |
|
|
3536 | test $ac_cv_fallocate = yes && |
|
|
3537 | $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h |
|
|
3538 | |
|
|
3539 | |
|
|
3540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_syncfs" >&5 |
|
|
3541 | $as_echo_n "checking for sys_syncfs... " >&6; } |
|
|
3542 | if test "${ac_cv_sys_syncfs+set}" = set; then : |
|
|
3543 | $as_echo_n "(cached) " >&6 |
|
|
3544 | else |
|
|
3545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3546 | /* end confdefs.h. */ |
|
|
3547 | |
|
|
3548 | #include <unistd.h> |
|
|
3549 | #include <sys/syscall.h> |
|
|
3550 | int main (void) |
|
|
3551 | { |
|
|
3552 | int res = syscall (__NR_syncfs, (int)0); |
|
|
3553 | } |
|
|
3554 | |
|
|
3555 | _ACEOF |
|
|
3556 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
3557 | ac_cv_sys_syncfs=yes |
|
|
3558 | else |
|
|
3559 | ac_cv_sys_syncfs=no |
|
|
3560 | fi |
|
|
3561 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
3562 | conftest$ac_exeext conftest.$ac_ext |
|
|
3563 | fi |
|
|
3564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_syncfs" >&5 |
|
|
3565 | $as_echo "$ac_cv_sys_syncfs" >&6; } |
|
|
3566 | test $ac_cv_sys_syncfs = yes && |
|
|
3567 | $as_echo "#define HAVE_SYS_SYNCFS 1" >>confdefs.h |
|
|
3568 | |
2821 | |
3569 | |
2822 | |
3570 | |
2823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5 |
3571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5 |
2824 | $as_echo_n "checking for posix_madvise... " >&6; } |
3572 | $as_echo_n "checking for posix_madvise... " >&6; } |
2825 | if test "${ac_cv_posix_madvise+set}" = set; then : |
3573 | if test "${ac_cv_posix_madvise+set}" = set; then : |
… | |
… | |
2886 | fi |
3634 | fi |
2887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_fadvise" >&5 |
3635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_fadvise" >&5 |
2888 | $as_echo "$ac_cv_posix_fadvise" >&6; } |
3636 | $as_echo "$ac_cv_posix_fadvise" >&6; } |
2889 | test $ac_cv_posix_fadvise = yes && |
3637 | test $ac_cv_posix_fadvise = yes && |
2890 | $as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h |
3638 | $as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h |
|
|
3639 | |
|
|
3640 | |
2891 | |
3641 | |
2892 | |
3642 | |
2893 | cat >confcache <<\_ACEOF |
3643 | cat >confcache <<\_ACEOF |
2894 | # This file is a shell script that caches the results of configure |
3644 | # This file is a shell script that caches the results of configure |
2895 | # tests run on this system so they can be shared between configure |
3645 | # tests run on this system so they can be shared between configure |