Mercurial > hg > CbC > CbC_gcc
comparison libiberty/configure @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | f6334be47118 |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
592 INSTALL_DEST | 592 INSTALL_DEST |
593 pexecute | 593 pexecute |
594 target_header_dir | 594 target_header_dir |
595 CHECK | 595 CHECK |
596 LIBOBJS | 596 LIBOBJS |
597 NOASANFLAG | |
597 PICFLAG | 598 PICFLAG |
598 INSTALL_DATA | 599 INSTALL_DATA |
599 INSTALL_SCRIPT | 600 INSTALL_SCRIPT |
600 INSTALL_PROGRAM | 601 INSTALL_PROGRAM |
601 EGREP | |
602 GREP | |
603 OUTPUT_OPTION | 602 OUTPUT_OPTION |
604 NO_MINUS_C_MINUS_O | 603 NO_MINUS_C_MINUS_O |
605 ac_libiberty_warn_cflags | 604 ac_libiberty_warn_cflags |
605 EGREP | |
606 GREP | |
606 CPP | 607 CPP |
607 OBJEXT | 608 OBJEXT |
608 EXEEXT | 609 EXEEXT |
609 ac_ct_CC | 610 ac_ct_CC |
610 CPPFLAGS | 611 CPPFLAGS |
673 with_build_subdir | 674 with_build_subdir |
674 with_cross_host | 675 with_cross_host |
675 with_newlib | 676 with_newlib |
676 enable_maintainer_mode | 677 enable_maintainer_mode |
677 enable_multilib | 678 enable_multilib |
679 enable_install_libiberty | |
678 enable_largefile | 680 enable_largefile |
679 enable_install_libiberty | |
680 ' | 681 ' |
681 ac_precious_vars='build_alias | 682 ac_precious_vars='build_alias |
682 host_alias | 683 host_alias |
683 target_alias | 684 target_alias |
684 CC | 685 CC |
1301 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | 1302 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1302 --enable-maintainer-mode | 1303 --enable-maintainer-mode |
1303 enable make rules and dependencies not useful | 1304 enable make rules and dependencies not useful |
1304 (and sometimes confusing) to the casual installer | 1305 (and sometimes confusing) to the casual installer |
1305 --enable-multilib build many library versions (default) | 1306 --enable-multilib build many library versions (default) |
1307 --enable-install-libiberty Install headers and library for end users | |
1306 --disable-largefile omit support for large files | 1308 --disable-largefile omit support for large files |
1307 --enable-install-libiberty Install headers for end users | |
1308 | 1309 |
1309 Optional Packages: | 1310 Optional Packages: |
1310 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | 1311 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1311 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | 1312 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1312 --with-target-subdir=SUBDIR Configuring in a subdirectory for target | 1313 --with-target-subdir=SUBDIR Configuring in a subdirectory for target |
1477 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 1478 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1478 return $ac_retval | 1479 return $ac_retval |
1479 | 1480 |
1480 } # ac_fn_c_try_cpp | 1481 } # ac_fn_c_try_cpp |
1481 | 1482 |
1483 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1484 # ------------------------------------------------------- | |
1485 # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1486 # the include files in INCLUDES and setting the cache variable VAR | |
1487 # accordingly. | |
1488 ac_fn_c_check_header_mongrel () | |
1489 { | |
1490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1491 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1493 $as_echo_n "checking for $2... " >&6; } | |
1494 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1495 $as_echo_n "(cached) " >&6 | |
1496 fi | |
1497 eval ac_res=\$$3 | |
1498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1499 $as_echo "$ac_res" >&6; } | |
1500 else | |
1501 # Is the header compilable? | |
1502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1503 $as_echo_n "checking $2 usability... " >&6; } | |
1504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1505 /* end confdefs.h. */ | |
1506 $4 | |
1507 #include <$2> | |
1508 _ACEOF | |
1509 if ac_fn_c_try_compile "$LINENO"; then : | |
1510 ac_header_compiler=yes | |
1511 else | |
1512 ac_header_compiler=no | |
1513 fi | |
1514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1516 $as_echo "$ac_header_compiler" >&6; } | |
1517 | |
1518 # Is the header present? | |
1519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1520 $as_echo_n "checking $2 presence... " >&6; } | |
1521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1522 /* end confdefs.h. */ | |
1523 #include <$2> | |
1524 _ACEOF | |
1525 if ac_fn_c_try_cpp "$LINENO"; then : | |
1526 ac_header_preproc=yes | |
1527 else | |
1528 ac_header_preproc=no | |
1529 fi | |
1530 rm -f conftest.err conftest.$ac_ext | |
1531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1532 $as_echo "$ac_header_preproc" >&6; } | |
1533 | |
1534 # So? What about this header? | |
1535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1536 yes:no: ) | |
1537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1538 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1540 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1541 ;; | |
1542 no:yes:* ) | |
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1544 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1546 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1548 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1550 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1552 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1553 ;; | |
1554 esac | |
1555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1556 $as_echo_n "checking for $2... " >&6; } | |
1557 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1558 $as_echo_n "(cached) " >&6 | |
1559 else | |
1560 eval "$3=\$ac_header_compiler" | |
1561 fi | |
1562 eval ac_res=\$$3 | |
1563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1564 $as_echo "$ac_res" >&6; } | |
1565 fi | |
1566 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1567 | |
1568 } # ac_fn_c_check_header_mongrel | |
1569 | |
1482 # ac_fn_c_try_run LINENO | 1570 # ac_fn_c_try_run LINENO |
1483 # ---------------------- | 1571 # ---------------------- |
1484 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | 1572 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
1485 # that executables *can* be run. | 1573 # that executables *can* be run. |
1486 ac_fn_c_try_run () | 1574 ac_fn_c_try_run () |
1518 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 1606 rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1519 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | 1607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1520 return $ac_retval | 1608 return $ac_retval |
1521 | 1609 |
1522 } # ac_fn_c_try_run | 1610 } # ac_fn_c_try_run |
1611 | |
1612 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1613 # ------------------------------------------------------- | |
1614 # Tests whether HEADER exists and can be compiled using the include files in | |
1615 # INCLUDES, setting the cache variable VAR accordingly. | |
1616 ac_fn_c_check_header_compile () | |
1617 { | |
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1620 $as_echo_n "checking for $2... " >&6; } | |
1621 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1622 $as_echo_n "(cached) " >&6 | |
1623 else | |
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1625 /* end confdefs.h. */ | |
1626 $4 | |
1627 #include <$2> | |
1628 _ACEOF | |
1629 if ac_fn_c_try_compile "$LINENO"; then : | |
1630 eval "$3=yes" | |
1631 else | |
1632 eval "$3=no" | |
1633 fi | |
1634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1635 fi | |
1636 eval ac_res=\$$3 | |
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1638 $as_echo "$ac_res" >&6; } | |
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1640 | |
1641 } # ac_fn_c_check_header_compile | |
1523 | 1642 |
1524 # ac_fn_c_check_header_preproc LINENO HEADER VAR | 1643 # ac_fn_c_check_header_preproc LINENO HEADER VAR |
1525 # ---------------------------------------------- | 1644 # ---------------------------------------------- |
1526 # Tests whether HEADER is present, setting the cache variable VAR accordingly. | 1645 # Tests whether HEADER is present, setting the cache variable VAR accordingly. |
1527 ac_fn_c_check_header_preproc () | 1646 ac_fn_c_check_header_preproc () |
2782 if test $cross_compiling = no && test $multilib = yes \ | 2901 if test $cross_compiling = no && test $multilib = yes \ |
2783 && test "x${with_multisubdir}" != x ; then | 2902 && test "x${with_multisubdir}" != x ; then |
2784 cross_compiling=maybe | 2903 cross_compiling=maybe |
2785 fi | 2904 fi |
2786 | 2905 |
2906 # We may wish to install the target headers somewhere. | |
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libiberty headers and static library" >&5 | |
2908 $as_echo_n "checking whether to install libiberty headers and static library... " >&6; } | |
2909 | |
2910 # Check whether --enable-install-libiberty was given. | |
2911 if test "${enable_install_libiberty+set}" = set; then : | |
2912 enableval=$enable_install_libiberty; enable_install_libiberty=$enableval | |
2913 else | |
2914 enable_install_libiberty=no | |
2915 fi | |
2916 | |
2917 # Option parsed, now set things appropriately. | |
2918 case x"$enable_install_libiberty" in | |
2919 xyes|x) | |
2920 target_header_dir=libiberty | |
2921 ;; | |
2922 xno) | |
2923 target_header_dir= | |
2924 ;; | |
2925 *) | |
2926 # This could be sanity-checked in various ways... | |
2927 target_header_dir="${enable_install_libiberty}" | |
2928 ;; | |
2929 esac | |
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_install_libiberty" >&5 | |
2931 $as_echo "$enable_install_libiberty" >&6; } | |
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: target_header_dir = $target_header_dir" >&5 | |
2933 $as_echo "$as_me: target_header_dir = $target_header_dir" >&6;} | |
2934 | |
2787 | 2935 |
2788 ac_ext=c | 2936 ac_ext=c |
2789 ac_cpp='$CPP $CPPFLAGS' | 2937 ac_cpp='$CPP $CPPFLAGS' |
2790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 2938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 2939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 3726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 3727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3580 ac_compiler_gnu=$ac_cv_c_compiler_gnu | 3728 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3581 | 3729 |
3582 | 3730 |
3583 # Check whether --enable-largefile was given. | |
3584 if test "${enable_largefile+set}" = set; then : | |
3585 enableval=$enable_largefile; | |
3586 fi | |
3587 | |
3588 if test "$enable_largefile" != no; then | |
3589 | |
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
3591 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
3592 if test "${ac_cv_sys_largefile_CC+set}" = set; then : | |
3593 $as_echo_n "(cached) " >&6 | |
3594 else | |
3595 ac_cv_sys_largefile_CC=no | |
3596 if test "$GCC" != yes; then | |
3597 ac_save_CC=$CC | |
3598 while :; do | |
3599 # IRIX 6.2 and later do not support large files by default, | |
3600 # so use the C compiler's -n32 option if that helps. | |
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3602 /* end confdefs.h. */ | |
3603 #include <sys/types.h> | |
3604 /* Check that off_t can represent 2**63 - 1 correctly. | |
3605 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3606 since some C++ compilers masquerading as C compilers | |
3607 incorrectly reject 9223372036854775807. */ | |
3608 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3609 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3610 && LARGE_OFF_T % 2147483647 == 1) | |
3611 ? 1 : -1]; | |
3612 int | |
3613 main () | |
3614 { | |
3615 | |
3616 ; | |
3617 return 0; | |
3618 } | |
3619 _ACEOF | |
3620 if ac_fn_c_try_compile "$LINENO"; then : | |
3621 break | |
3622 fi | |
3623 rm -f core conftest.err conftest.$ac_objext | |
3624 CC="$CC -n32" | |
3625 if ac_fn_c_try_compile "$LINENO"; then : | |
3626 ac_cv_sys_largefile_CC=' -n32'; break | |
3627 fi | |
3628 rm -f core conftest.err conftest.$ac_objext | |
3629 break | |
3630 done | |
3631 CC=$ac_save_CC | |
3632 rm -f conftest.$ac_ext | |
3633 fi | |
3634 fi | |
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
3636 $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
3637 if test "$ac_cv_sys_largefile_CC" != no; then | |
3638 CC=$CC$ac_cv_sys_largefile_CC | |
3639 fi | |
3640 | |
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
3642 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
3643 if test "${ac_cv_sys_file_offset_bits+set}" = set; then : | |
3644 $as_echo_n "(cached) " >&6 | |
3645 else | |
3646 while :; do | |
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3648 /* end confdefs.h. */ | |
3649 #include <sys/types.h> | |
3650 /* Check that off_t can represent 2**63 - 1 correctly. | |
3651 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3652 since some C++ compilers masquerading as C compilers | |
3653 incorrectly reject 9223372036854775807. */ | |
3654 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3655 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3656 && LARGE_OFF_T % 2147483647 == 1) | |
3657 ? 1 : -1]; | |
3658 int | |
3659 main () | |
3660 { | |
3661 | |
3662 ; | |
3663 return 0; | |
3664 } | |
3665 _ACEOF | |
3666 if ac_fn_c_try_compile "$LINENO"; then : | |
3667 ac_cv_sys_file_offset_bits=no; break | |
3668 fi | |
3669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3671 /* end confdefs.h. */ | |
3672 #define _FILE_OFFSET_BITS 64 | |
3673 #include <sys/types.h> | |
3674 /* Check that off_t can represent 2**63 - 1 correctly. | |
3675 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3676 since some C++ compilers masquerading as C compilers | |
3677 incorrectly reject 9223372036854775807. */ | |
3678 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3679 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3680 && LARGE_OFF_T % 2147483647 == 1) | |
3681 ? 1 : -1]; | |
3682 int | |
3683 main () | |
3684 { | |
3685 | |
3686 ; | |
3687 return 0; | |
3688 } | |
3689 _ACEOF | |
3690 if ac_fn_c_try_compile "$LINENO"; then : | |
3691 ac_cv_sys_file_offset_bits=64; break | |
3692 fi | |
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3694 ac_cv_sys_file_offset_bits=unknown | |
3695 break | |
3696 done | |
3697 fi | |
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
3699 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
3700 case $ac_cv_sys_file_offset_bits in #( | |
3701 no | unknown) ;; | |
3702 *) | |
3703 cat >>confdefs.h <<_ACEOF | |
3704 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
3705 _ACEOF | |
3706 ;; | |
3707 esac | |
3708 rm -rf conftest* | |
3709 if test $ac_cv_sys_file_offset_bits = unknown; then | |
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
3711 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
3712 if test "${ac_cv_sys_large_files+set}" = set; then : | |
3713 $as_echo_n "(cached) " >&6 | |
3714 else | |
3715 while :; do | |
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3717 /* end confdefs.h. */ | |
3718 #include <sys/types.h> | |
3719 /* Check that off_t can represent 2**63 - 1 correctly. | |
3720 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3721 since some C++ compilers masquerading as C compilers | |
3722 incorrectly reject 9223372036854775807. */ | |
3723 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3724 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3725 && LARGE_OFF_T % 2147483647 == 1) | |
3726 ? 1 : -1]; | |
3727 int | |
3728 main () | |
3729 { | |
3730 | |
3731 ; | |
3732 return 0; | |
3733 } | |
3734 _ACEOF | |
3735 if ac_fn_c_try_compile "$LINENO"; then : | |
3736 ac_cv_sys_large_files=no; break | |
3737 fi | |
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3740 /* end confdefs.h. */ | |
3741 #define _LARGE_FILES 1 | |
3742 #include <sys/types.h> | |
3743 /* Check that off_t can represent 2**63 - 1 correctly. | |
3744 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
3745 since some C++ compilers masquerading as C compilers | |
3746 incorrectly reject 9223372036854775807. */ | |
3747 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
3748 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
3749 && LARGE_OFF_T % 2147483647 == 1) | |
3750 ? 1 : -1]; | |
3751 int | |
3752 main () | |
3753 { | |
3754 | |
3755 ; | |
3756 return 0; | |
3757 } | |
3758 _ACEOF | |
3759 if ac_fn_c_try_compile "$LINENO"; then : | |
3760 ac_cv_sys_large_files=1; break | |
3761 fi | |
3762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3763 ac_cv_sys_large_files=unknown | |
3764 break | |
3765 done | |
3766 fi | |
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
3768 $as_echo "$ac_cv_sys_large_files" >&6; } | |
3769 case $ac_cv_sys_large_files in #( | |
3770 no | unknown) ;; | |
3771 *) | |
3772 cat >>confdefs.h <<_ACEOF | |
3773 #define _LARGE_FILES $ac_cv_sys_large_files | |
3774 _ACEOF | |
3775 ;; | |
3776 esac | |
3777 rm -rf conftest* | |
3778 fi | |
3779 fi | |
3780 | |
3781 ac_ext=c | 3731 ac_ext=c |
3782 ac_cpp='$CPP $CPPFLAGS' | 3732 ac_cpp='$CPP $CPPFLAGS' |
3783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 3733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 3734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3785 ac_compiler_gnu=$ac_cv_c_compiler_gnu | 3735 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3912 ac_ext=c | 3862 ac_ext=c |
3913 ac_cpp='$CPP $CPPFLAGS' | 3863 ac_cpp='$CPP $CPPFLAGS' |
3914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 3864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 3865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3916 ac_compiler_gnu=$ac_cv_c_compiler_gnu | 3866 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3917 | |
3918 | |
3919 ac_c_preproc_warn_flag=yes | |
3920 | |
3921 ac_libiberty_warn_cflags= | |
3922 save_CFLAGS="$CFLAGS" | |
3923 for option in -W -Wall -Wwrite-strings -Wc++-compat \ | |
3924 -Wstrict-prototypes; do | |
3925 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` | |
3926 | |
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 | |
3928 $as_echo_n "checking whether $CC supports $option... " >&6; } | |
3929 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then : | |
3930 $as_echo_n "(cached) " >&6 | |
3931 else | |
3932 CFLAGS="$option" | |
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3934 /* end confdefs.h. */ | |
3935 | |
3936 int | |
3937 main () | |
3938 { | |
3939 | |
3940 ; | |
3941 return 0; | |
3942 } | |
3943 _ACEOF | |
3944 if ac_fn_c_try_compile "$LINENO"; then : | |
3945 eval "$as_acx_Woption=yes" | |
3946 else | |
3947 eval "$as_acx_Woption=no" | |
3948 fi | |
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3950 | |
3951 fi | |
3952 eval ac_res=\$$as_acx_Woption | |
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
3954 $as_echo "$ac_res" >&6; } | |
3955 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : | |
3956 ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }$option" | |
3957 fi | |
3958 done | |
3959 CFLAGS="$save_CFLAGS" | |
3960 | |
3961 if test "$GCC" = yes; then : | |
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic " >&5 | |
3963 $as_echo_n "checking whether $CC supports -pedantic ... " >&6; } | |
3964 if test "${acx_cv_prog_cc_pedantic_+set}" = set; then : | |
3965 $as_echo_n "(cached) " >&6 | |
3966 else | |
3967 save_CFLAGS="$CFLAGS" | |
3968 CFLAGS="-pedantic " | |
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3970 /* end confdefs.h. */ | |
3971 | |
3972 int | |
3973 main () | |
3974 { | |
3975 | |
3976 ; | |
3977 return 0; | |
3978 } | |
3979 _ACEOF | |
3980 if ac_fn_c_try_compile "$LINENO"; then : | |
3981 acx_cv_prog_cc_pedantic_=yes | |
3982 else | |
3983 acx_cv_prog_cc_pedantic_=no | |
3984 fi | |
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3986 CFLAGS="$save_CFLAGS" | |
3987 fi | |
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic_" >&5 | |
3989 $as_echo "$acx_cv_prog_cc_pedantic_" >&6; } | |
3990 if test $acx_cv_prog_cc_pedantic_ = yes; then : | |
3991 ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }-pedantic " | |
3992 fi | |
3993 | |
3994 fi | |
3995 | |
3996 | |
3997 if test "x$CC" != xcc; then | |
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 | |
3999 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | |
4000 else | |
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 | |
4002 $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | |
4003 fi | |
4004 set dummy $CC; ac_cc=`$as_echo "$2" | | |
4005 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
4006 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : | |
4007 $as_echo_n "(cached) " >&6 | |
4008 else | |
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4010 /* end confdefs.h. */ | |
4011 | |
4012 int | |
4013 main () | |
4014 { | |
4015 | |
4016 ; | |
4017 return 0; | |
4018 } | |
4019 _ACEOF | |
4020 # Make sure it works both with $CC and with simple cc. | |
4021 # We do the test twice because some compilers refuse to overwrite an | |
4022 # existing .o file with -o, though they will create one. | |
4023 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
4024 rm -f conftest2.* | |
4025 if { { case "(($ac_try" in | |
4026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4027 *) ac_try_echo=$ac_try;; | |
4028 esac | |
4029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4030 $as_echo "$ac_try_echo"; } >&5 | |
4031 (eval "$ac_try") 2>&5 | |
4032 ac_status=$? | |
4033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4034 test $ac_status = 0; } && | |
4035 test -f conftest2.$ac_objext && { { case "(($ac_try" in | |
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4037 *) ac_try_echo=$ac_try;; | |
4038 esac | |
4039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4040 $as_echo "$ac_try_echo"; } >&5 | |
4041 (eval "$ac_try") 2>&5 | |
4042 ac_status=$? | |
4043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4044 test $ac_status = 0; }; | |
4045 then | |
4046 eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
4047 if test "x$CC" != xcc; then | |
4048 # Test first that cc exists at all. | |
4049 if { ac_try='cc -c conftest.$ac_ext >&5' | |
4050 { { case "(($ac_try" in | |
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4052 *) ac_try_echo=$ac_try;; | |
4053 esac | |
4054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4055 $as_echo "$ac_try_echo"; } >&5 | |
4056 (eval "$ac_try") 2>&5 | |
4057 ac_status=$? | |
4058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4059 test $ac_status = 0; }; }; then | |
4060 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
4061 rm -f conftest2.* | |
4062 if { { case "(($ac_try" in | |
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4064 *) ac_try_echo=$ac_try;; | |
4065 esac | |
4066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4067 $as_echo "$ac_try_echo"; } >&5 | |
4068 (eval "$ac_try") 2>&5 | |
4069 ac_status=$? | |
4070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4071 test $ac_status = 0; } && | |
4072 test -f conftest2.$ac_objext && { { case "(($ac_try" in | |
4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4074 *) ac_try_echo=$ac_try;; | |
4075 esac | |
4076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4077 $as_echo "$ac_try_echo"; } >&5 | |
4078 (eval "$ac_try") 2>&5 | |
4079 ac_status=$? | |
4080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4081 test $ac_status = 0; }; | |
4082 then | |
4083 # cc works too. | |
4084 : | |
4085 else | |
4086 # cc exists but doesn't like -o. | |
4087 eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
4088 fi | |
4089 fi | |
4090 fi | |
4091 else | |
4092 eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
4093 fi | |
4094 rm -f core conftest* | |
4095 | |
4096 fi | |
4097 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | |
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4099 $as_echo "yes" >&6; } | |
4100 else | |
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4102 $as_echo "no" >&6; } | |
4103 | |
4104 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h | |
4105 | |
4106 fi | |
4107 | |
4108 # autoconf is lame and doesn't give us any substitution variable for this. | |
4109 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then | |
4110 NO_MINUS_C_MINUS_O=yes | |
4111 else | |
4112 OUTPUT_OPTION='-o $@' | |
4113 fi | |
4114 | |
4115 | |
4116 | |
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
4118 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
4119 if test "${ac_cv_c_const+set}" = set; then : | |
4120 $as_echo_n "(cached) " >&6 | |
4121 else | |
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4123 /* end confdefs.h. */ | |
4124 | |
4125 int | |
4126 main () | |
4127 { | |
4128 /* FIXME: Include the comments suggested by Paul. */ | |
4129 #ifndef __cplusplus | |
4130 /* Ultrix mips cc rejects this. */ | |
4131 typedef int charset[2]; | |
4132 const charset cs; | |
4133 /* SunOS 4.1.1 cc rejects this. */ | |
4134 char const *const *pcpcc; | |
4135 char **ppc; | |
4136 /* NEC SVR4.0.2 mips cc rejects this. */ | |
4137 struct point {int x, y;}; | |
4138 static struct point const zero = {0,0}; | |
4139 /* AIX XL C 1.02.0.0 rejects this. | |
4140 It does not let you subtract one const X* pointer from another in | |
4141 an arm of an if-expression whose if-part is not a constant | |
4142 expression */ | |
4143 const char *g = "string"; | |
4144 pcpcc = &g + (g ? g-g : 0); | |
4145 /* HPUX 7.0 cc rejects these. */ | |
4146 ++pcpcc; | |
4147 ppc = (char**) pcpcc; | |
4148 pcpcc = (char const *const *) ppc; | |
4149 { /* SCO 3.2v4 cc rejects this. */ | |
4150 char *t; | |
4151 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4152 | |
4153 *t++ = 0; | |
4154 if (s) return 0; | |
4155 } | |
4156 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4157 int x[] = {25, 17}; | |
4158 const int *foo = &x[0]; | |
4159 ++foo; | |
4160 } | |
4161 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4162 typedef const int *iptr; | |
4163 iptr p = 0; | |
4164 ++p; | |
4165 } | |
4166 { /* AIX XL C 1.02.0.0 rejects this saying | |
4167 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4168 struct s { int j; const int *ap[3]; }; | |
4169 struct s *b; b->j = 5; | |
4170 } | |
4171 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4172 const int foo = 10; | |
4173 if (!foo) return 0; | |
4174 } | |
4175 return !cs[0] && !zero.x; | |
4176 #endif | |
4177 | |
4178 ; | |
4179 return 0; | |
4180 } | |
4181 _ACEOF | |
4182 if ac_fn_c_try_compile "$LINENO"; then : | |
4183 ac_cv_c_const=yes | |
4184 else | |
4185 ac_cv_c_const=no | |
4186 fi | |
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4188 fi | |
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | |
4190 $as_echo "$ac_cv_c_const" >&6; } | |
4191 if test $ac_cv_c_const = no; then | |
4192 | |
4193 $as_echo "#define const /**/" >>confdefs.h | |
4194 | |
4195 fi | |
4196 | |
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | |
4198 $as_echo_n "checking for inline... " >&6; } | |
4199 if test "${ac_cv_c_inline+set}" = set; then : | |
4200 $as_echo_n "(cached) " >&6 | |
4201 else | |
4202 ac_cv_c_inline=no | |
4203 for ac_kw in inline __inline__ __inline; do | |
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4205 /* end confdefs.h. */ | |
4206 #ifndef __cplusplus | |
4207 typedef int foo_t; | |
4208 static $ac_kw foo_t static_foo () {return 0; } | |
4209 $ac_kw foo_t foo () {return 0; } | |
4210 #endif | |
4211 | |
4212 _ACEOF | |
4213 if ac_fn_c_try_compile "$LINENO"; then : | |
4214 ac_cv_c_inline=$ac_kw | |
4215 fi | |
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4217 test "$ac_cv_c_inline" != no && break | |
4218 done | |
4219 | |
4220 fi | |
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
4222 $as_echo "$ac_cv_c_inline" >&6; } | |
4223 | |
4224 case $ac_cv_c_inline in | |
4225 inline | yes) ;; | |
4226 *) | |
4227 case $ac_cv_c_inline in | |
4228 no) ac_val=;; | |
4229 *) ac_val=$ac_cv_c_inline;; | |
4230 esac | |
4231 cat >>confdefs.h <<_ACEOF | |
4232 #ifndef __cplusplus | |
4233 #define inline $ac_val | |
4234 #endif | |
4235 _ACEOF | |
4236 ;; | |
4237 esac | |
4238 | 3867 |
4239 | 3868 |
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4241 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 3870 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
4242 if test "${ac_cv_path_GREP+set}" = set; then : | 3871 if test "${ac_cv_path_GREP+set}" = set; then : |
4482 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 4111 # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4483 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 4112 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4484 inttypes.h stdint.h unistd.h | 4113 inttypes.h stdint.h unistd.h |
4485 do : | 4114 do : |
4486 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 4115 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4487 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header" | 4116 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
4117 " | |
4488 eval as_val=\$$as_ac_Header | 4118 eval as_val=\$$as_ac_Header |
4489 if test "x$as_val" = x""yes; then : | 4119 if test "x$as_val" = x""yes; then : |
4490 cat >>confdefs.h <<_ACEOF | 4120 cat >>confdefs.h <<_ACEOF |
4491 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 4121 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4492 _ACEOF | 4122 _ACEOF |
4493 | 4123 |
4494 fi | 4124 fi |
4125 | |
4495 done | 4126 done |
4496 | 4127 |
4128 | |
4129 | |
4130 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
4131 if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
4132 MINIX=yes | |
4133 else | |
4134 MINIX= | |
4135 fi | |
4136 | |
4137 | |
4138 if test "$MINIX" = yes; then | |
4139 | |
4140 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
4141 | |
4142 | |
4143 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4144 | |
4145 | |
4146 $as_echo "#define _MINIX 1" >>confdefs.h | |
4147 | |
4148 fi | |
4149 | |
4150 | |
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4152 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4153 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
4154 $as_echo_n "(cached) " >&6 | |
4155 else | |
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4157 /* end confdefs.h. */ | |
4158 | |
4159 # define __EXTENSIONS__ 1 | |
4160 $ac_includes_default | |
4161 int | |
4162 main () | |
4163 { | |
4164 | |
4165 ; | |
4166 return 0; | |
4167 } | |
4168 _ACEOF | |
4169 if ac_fn_c_try_compile "$LINENO"; then : | |
4170 ac_cv_safe_to_define___extensions__=yes | |
4171 else | |
4172 ac_cv_safe_to_define___extensions__=no | |
4173 fi | |
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4175 fi | |
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4177 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4178 test $ac_cv_safe_to_define___extensions__ = yes && | |
4179 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
4180 | |
4181 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
4182 | |
4183 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
4184 | |
4185 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
4186 | |
4187 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
4188 | |
4189 | |
4190 | |
4191 # Check whether --enable-largefile was given. | |
4192 if test "${enable_largefile+set}" = set; then : | |
4193 enableval=$enable_largefile; | |
4194 fi | |
4195 | |
4196 if test "$enable_largefile" != no; then | |
4197 | |
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
4199 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
4200 if test "${ac_cv_sys_largefile_CC+set}" = set; then : | |
4201 $as_echo_n "(cached) " >&6 | |
4202 else | |
4203 ac_cv_sys_largefile_CC=no | |
4204 if test "$GCC" != yes; then | |
4205 ac_save_CC=$CC | |
4206 while :; do | |
4207 # IRIX 6.2 and later do not support large files by default, | |
4208 # so use the C compiler's -n32 option if that helps. | |
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4210 /* end confdefs.h. */ | |
4211 #include <sys/types.h> | |
4212 /* Check that off_t can represent 2**63 - 1 correctly. | |
4213 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4214 since some C++ compilers masquerading as C compilers | |
4215 incorrectly reject 9223372036854775807. */ | |
4216 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4217 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4218 && LARGE_OFF_T % 2147483647 == 1) | |
4219 ? 1 : -1]; | |
4220 int | |
4221 main () | |
4222 { | |
4223 | |
4224 ; | |
4225 return 0; | |
4226 } | |
4227 _ACEOF | |
4228 if ac_fn_c_try_compile "$LINENO"; then : | |
4229 break | |
4230 fi | |
4231 rm -f core conftest.err conftest.$ac_objext | |
4232 CC="$CC -n32" | |
4233 if ac_fn_c_try_compile "$LINENO"; then : | |
4234 ac_cv_sys_largefile_CC=' -n32'; break | |
4235 fi | |
4236 rm -f core conftest.err conftest.$ac_objext | |
4237 break | |
4238 done | |
4239 CC=$ac_save_CC | |
4240 rm -f conftest.$ac_ext | |
4241 fi | |
4242 fi | |
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
4244 $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
4245 if test "$ac_cv_sys_largefile_CC" != no; then | |
4246 CC=$CC$ac_cv_sys_largefile_CC | |
4247 fi | |
4248 | |
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
4250 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
4251 if test "${ac_cv_sys_file_offset_bits+set}" = set; then : | |
4252 $as_echo_n "(cached) " >&6 | |
4253 else | |
4254 while :; do | |
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4256 /* end confdefs.h. */ | |
4257 #include <sys/types.h> | |
4258 /* Check that off_t can represent 2**63 - 1 correctly. | |
4259 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4260 since some C++ compilers masquerading as C compilers | |
4261 incorrectly reject 9223372036854775807. */ | |
4262 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4263 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4264 && LARGE_OFF_T % 2147483647 == 1) | |
4265 ? 1 : -1]; | |
4266 int | |
4267 main () | |
4268 { | |
4269 | |
4270 ; | |
4271 return 0; | |
4272 } | |
4273 _ACEOF | |
4274 if ac_fn_c_try_compile "$LINENO"; then : | |
4275 ac_cv_sys_file_offset_bits=no; break | |
4276 fi | |
4277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4279 /* end confdefs.h. */ | |
4280 #define _FILE_OFFSET_BITS 64 | |
4281 #include <sys/types.h> | |
4282 /* Check that off_t can represent 2**63 - 1 correctly. | |
4283 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4284 since some C++ compilers masquerading as C compilers | |
4285 incorrectly reject 9223372036854775807. */ | |
4286 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4287 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4288 && LARGE_OFF_T % 2147483647 == 1) | |
4289 ? 1 : -1]; | |
4290 int | |
4291 main () | |
4292 { | |
4293 | |
4294 ; | |
4295 return 0; | |
4296 } | |
4297 _ACEOF | |
4298 if ac_fn_c_try_compile "$LINENO"; then : | |
4299 ac_cv_sys_file_offset_bits=64; break | |
4300 fi | |
4301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4302 ac_cv_sys_file_offset_bits=unknown | |
4303 break | |
4304 done | |
4305 fi | |
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
4307 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
4308 case $ac_cv_sys_file_offset_bits in #( | |
4309 no | unknown) ;; | |
4310 *) | |
4311 cat >>confdefs.h <<_ACEOF | |
4312 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
4313 _ACEOF | |
4314 ;; | |
4315 esac | |
4316 rm -rf conftest* | |
4317 if test $ac_cv_sys_file_offset_bits = unknown; then | |
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
4319 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
4320 if test "${ac_cv_sys_large_files+set}" = set; then : | |
4321 $as_echo_n "(cached) " >&6 | |
4322 else | |
4323 while :; do | |
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4325 /* end confdefs.h. */ | |
4326 #include <sys/types.h> | |
4327 /* Check that off_t can represent 2**63 - 1 correctly. | |
4328 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4329 since some C++ compilers masquerading as C compilers | |
4330 incorrectly reject 9223372036854775807. */ | |
4331 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4332 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4333 && LARGE_OFF_T % 2147483647 == 1) | |
4334 ? 1 : -1]; | |
4335 int | |
4336 main () | |
4337 { | |
4338 | |
4339 ; | |
4340 return 0; | |
4341 } | |
4342 _ACEOF | |
4343 if ac_fn_c_try_compile "$LINENO"; then : | |
4344 ac_cv_sys_large_files=no; break | |
4345 fi | |
4346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4348 /* end confdefs.h. */ | |
4349 #define _LARGE_FILES 1 | |
4350 #include <sys/types.h> | |
4351 /* Check that off_t can represent 2**63 - 1 correctly. | |
4352 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4353 since some C++ compilers masquerading as C compilers | |
4354 incorrectly reject 9223372036854775807. */ | |
4355 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4356 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4357 && LARGE_OFF_T % 2147483647 == 1) | |
4358 ? 1 : -1]; | |
4359 int | |
4360 main () | |
4361 { | |
4362 | |
4363 ; | |
4364 return 0; | |
4365 } | |
4366 _ACEOF | |
4367 if ac_fn_c_try_compile "$LINENO"; then : | |
4368 ac_cv_sys_large_files=1; break | |
4369 fi | |
4370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4371 ac_cv_sys_large_files=unknown | |
4372 break | |
4373 done | |
4374 fi | |
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
4376 $as_echo "$ac_cv_sys_large_files" >&6; } | |
4377 case $ac_cv_sys_large_files in #( | |
4378 no | unknown) ;; | |
4379 *) | |
4380 cat >>confdefs.h <<_ACEOF | |
4381 #define _LARGE_FILES $ac_cv_sys_large_files | |
4382 _ACEOF | |
4383 ;; | |
4384 esac | |
4385 rm -rf conftest* | |
4386 fi | |
4387 fi | |
4388 | |
4389 | |
4390 ac_c_preproc_warn_flag=yes | |
4391 | |
4392 ac_ext=c | |
4393 ac_cpp='$CPP $CPPFLAGS' | |
4394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4396 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4397 | |
4398 ac_libiberty_warn_cflags= | |
4399 save_CFLAGS="$CFLAGS" | |
4400 for real_option in -W -Wall -Wwrite-strings -Wc++-compat \ | |
4401 -Wstrict-prototypes \ | |
4402 -Wshadow=local; do | |
4403 # Do the check with the no- prefix removed since gcc silently | |
4404 # accepts any -Wno-* option on purpose | |
4405 case $real_option in | |
4406 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; | |
4407 *) option=$real_option ;; | |
4408 esac | |
4409 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` | |
4410 | |
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 | |
4412 $as_echo_n "checking whether $CC supports $option... " >&6; } | |
4413 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then : | |
4414 $as_echo_n "(cached) " >&6 | |
4415 else | |
4416 CFLAGS="$option" | |
4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4418 /* end confdefs.h. */ | |
4419 | |
4420 int | |
4421 main () | |
4422 { | |
4423 | |
4424 ; | |
4425 return 0; | |
4426 } | |
4427 _ACEOF | |
4428 if ac_fn_c_try_compile "$LINENO"; then : | |
4429 eval "$as_acx_Woption=yes" | |
4430 else | |
4431 eval "$as_acx_Woption=no" | |
4432 fi | |
4433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4434 | |
4435 fi | |
4436 eval ac_res=\$$as_acx_Woption | |
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4438 $as_echo "$ac_res" >&6; } | |
4439 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : | |
4440 ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }$real_option" | |
4441 fi | |
4442 done | |
4443 CFLAGS="$save_CFLAGS" | |
4444 ac_ext=c | |
4445 ac_cpp='$CPP $CPPFLAGS' | |
4446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4448 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4449 | |
4450 | |
4451 ac_ext=c | |
4452 ac_cpp='$CPP $CPPFLAGS' | |
4453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4455 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4456 | |
4457 # Do the check with the no- prefix removed from the warning options | |
4458 # since gcc silently accepts any -Wno-* option on purpose | |
4459 if test "$GCC" = yes; then : | |
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic " >&5 | |
4461 $as_echo_n "checking whether $CC supports -pedantic ... " >&6; } | |
4462 if test "${acx_cv_prog_cc_pedantic_+set}" = set; then : | |
4463 $as_echo_n "(cached) " >&6 | |
4464 else | |
4465 save_CFLAGS="$CFLAGS" | |
4466 CFLAGS="-pedantic " | |
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4468 /* end confdefs.h. */ | |
4469 | |
4470 int | |
4471 main () | |
4472 { | |
4473 | |
4474 ; | |
4475 return 0; | |
4476 } | |
4477 _ACEOF | |
4478 if ac_fn_c_try_compile "$LINENO"; then : | |
4479 acx_cv_prog_cc_pedantic_=yes | |
4480 else | |
4481 acx_cv_prog_cc_pedantic_=no | |
4482 fi | |
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4484 CFLAGS="$save_CFLAGS" | |
4485 fi | |
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic_" >&5 | |
4487 $as_echo "$acx_cv_prog_cc_pedantic_" >&6; } | |
4488 if test $acx_cv_prog_cc_pedantic_ = yes; then : | |
4489 ac_libiberty_warn_cflags="$ac_libiberty_warn_cflags${ac_libiberty_warn_cflags:+ }-pedantic " | |
4490 fi | |
4491 | |
4492 fi | |
4493 ac_ext=c | |
4494 ac_cpp='$CPP $CPPFLAGS' | |
4495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4497 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4498 | |
4499 | |
4500 | |
4501 if test "x$CC" != xcc; then | |
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 | |
4503 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | |
4504 else | |
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 | |
4506 $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | |
4507 fi | |
4508 set dummy $CC; ac_cc=`$as_echo "$2" | | |
4509 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
4510 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : | |
4511 $as_echo_n "(cached) " >&6 | |
4512 else | |
4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4514 /* end confdefs.h. */ | |
4515 | |
4516 int | |
4517 main () | |
4518 { | |
4519 | |
4520 ; | |
4521 return 0; | |
4522 } | |
4523 _ACEOF | |
4524 # Make sure it works both with $CC and with simple cc. | |
4525 # We do the test twice because some compilers refuse to overwrite an | |
4526 # existing .o file with -o, though they will create one. | |
4527 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
4528 rm -f conftest2.* | |
4529 if { { case "(($ac_try" in | |
4530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4531 *) ac_try_echo=$ac_try;; | |
4532 esac | |
4533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4534 $as_echo "$ac_try_echo"; } >&5 | |
4535 (eval "$ac_try") 2>&5 | |
4536 ac_status=$? | |
4537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4538 test $ac_status = 0; } && | |
4539 test -f conftest2.$ac_objext && { { case "(($ac_try" in | |
4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4541 *) ac_try_echo=$ac_try;; | |
4542 esac | |
4543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4544 $as_echo "$ac_try_echo"; } >&5 | |
4545 (eval "$ac_try") 2>&5 | |
4546 ac_status=$? | |
4547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4548 test $ac_status = 0; }; | |
4549 then | |
4550 eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
4551 if test "x$CC" != xcc; then | |
4552 # Test first that cc exists at all. | |
4553 if { ac_try='cc -c conftest.$ac_ext >&5' | |
4554 { { case "(($ac_try" in | |
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4556 *) ac_try_echo=$ac_try;; | |
4557 esac | |
4558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4559 $as_echo "$ac_try_echo"; } >&5 | |
4560 (eval "$ac_try") 2>&5 | |
4561 ac_status=$? | |
4562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4563 test $ac_status = 0; }; }; then | |
4564 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
4565 rm -f conftest2.* | |
4566 if { { case "(($ac_try" in | |
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4568 *) ac_try_echo=$ac_try;; | |
4569 esac | |
4570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4571 $as_echo "$ac_try_echo"; } >&5 | |
4572 (eval "$ac_try") 2>&5 | |
4573 ac_status=$? | |
4574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4575 test $ac_status = 0; } && | |
4576 test -f conftest2.$ac_objext && { { case "(($ac_try" in | |
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4578 *) ac_try_echo=$ac_try;; | |
4579 esac | |
4580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4581 $as_echo "$ac_try_echo"; } >&5 | |
4582 (eval "$ac_try") 2>&5 | |
4583 ac_status=$? | |
4584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4585 test $ac_status = 0; }; | |
4586 then | |
4587 # cc works too. | |
4588 : | |
4589 else | |
4590 # cc exists but doesn't like -o. | |
4591 eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
4592 fi | |
4593 fi | |
4594 fi | |
4595 else | |
4596 eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
4597 fi | |
4598 rm -f core conftest* | |
4599 | |
4600 fi | |
4601 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | |
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4603 $as_echo "yes" >&6; } | |
4604 else | |
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4606 $as_echo "no" >&6; } | |
4607 | |
4608 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h | |
4609 | |
4610 fi | |
4611 | |
4612 # autoconf is lame and doesn't give us any substitution variable for this. | |
4613 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then | |
4614 NO_MINUS_C_MINUS_O=yes | |
4615 else | |
4616 OUTPUT_OPTION='-o $@' | |
4617 fi | |
4618 | |
4619 | |
4620 | |
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
4622 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
4623 if test "${ac_cv_c_const+set}" = set; then : | |
4624 $as_echo_n "(cached) " >&6 | |
4625 else | |
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4627 /* end confdefs.h. */ | |
4628 | |
4629 int | |
4630 main () | |
4631 { | |
4632 /* FIXME: Include the comments suggested by Paul. */ | |
4633 #ifndef __cplusplus | |
4634 /* Ultrix mips cc rejects this. */ | |
4635 typedef int charset[2]; | |
4636 const charset cs; | |
4637 /* SunOS 4.1.1 cc rejects this. */ | |
4638 char const *const *pcpcc; | |
4639 char **ppc; | |
4640 /* NEC SVR4.0.2 mips cc rejects this. */ | |
4641 struct point {int x, y;}; | |
4642 static struct point const zero = {0,0}; | |
4643 /* AIX XL C 1.02.0.0 rejects this. | |
4644 It does not let you subtract one const X* pointer from another in | |
4645 an arm of an if-expression whose if-part is not a constant | |
4646 expression */ | |
4647 const char *g = "string"; | |
4648 pcpcc = &g + (g ? g-g : 0); | |
4649 /* HPUX 7.0 cc rejects these. */ | |
4650 ++pcpcc; | |
4651 ppc = (char**) pcpcc; | |
4652 pcpcc = (char const *const *) ppc; | |
4653 { /* SCO 3.2v4 cc rejects this. */ | |
4654 char *t; | |
4655 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4656 | |
4657 *t++ = 0; | |
4658 if (s) return 0; | |
4659 } | |
4660 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4661 int x[] = {25, 17}; | |
4662 const int *foo = &x[0]; | |
4663 ++foo; | |
4664 } | |
4665 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4666 typedef const int *iptr; | |
4667 iptr p = 0; | |
4668 ++p; | |
4669 } | |
4670 { /* AIX XL C 1.02.0.0 rejects this saying | |
4671 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4672 struct s { int j; const int *ap[3]; }; | |
4673 struct s *b; b->j = 5; | |
4674 } | |
4675 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4676 const int foo = 10; | |
4677 if (!foo) return 0; | |
4678 } | |
4679 return !cs[0] && !zero.x; | |
4680 #endif | |
4681 | |
4682 ; | |
4683 return 0; | |
4684 } | |
4685 _ACEOF | |
4686 if ac_fn_c_try_compile "$LINENO"; then : | |
4687 ac_cv_c_const=yes | |
4688 else | |
4689 ac_cv_c_const=no | |
4690 fi | |
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4692 fi | |
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | |
4694 $as_echo "$ac_cv_c_const" >&6; } | |
4695 if test $ac_cv_c_const = no; then | |
4696 | |
4697 $as_echo "#define const /**/" >>confdefs.h | |
4698 | |
4699 fi | |
4700 | |
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | |
4702 $as_echo_n "checking for inline... " >&6; } | |
4703 if test "${ac_cv_c_inline+set}" = set; then : | |
4704 $as_echo_n "(cached) " >&6 | |
4705 else | |
4706 ac_cv_c_inline=no | |
4707 for ac_kw in inline __inline__ __inline; do | |
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4709 /* end confdefs.h. */ | |
4710 #ifndef __cplusplus | |
4711 typedef int foo_t; | |
4712 static $ac_kw foo_t static_foo () {return 0; } | |
4713 $ac_kw foo_t foo () {return 0; } | |
4714 #endif | |
4715 | |
4716 _ACEOF | |
4717 if ac_fn_c_try_compile "$LINENO"; then : | |
4718 ac_cv_c_inline=$ac_kw | |
4719 fi | |
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4721 test "$ac_cv_c_inline" != no && break | |
4722 done | |
4723 | |
4724 fi | |
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
4726 $as_echo "$ac_cv_c_inline" >&6; } | |
4727 | |
4728 case $ac_cv_c_inline in | |
4729 inline | yes) ;; | |
4730 *) | |
4731 case $ac_cv_c_inline in | |
4732 no) ac_val=;; | |
4733 *) ac_val=$ac_cv_c_inline;; | |
4734 esac | |
4735 cat >>confdefs.h <<_ACEOF | |
4736 #ifndef __cplusplus | |
4737 #define inline $ac_val | |
4738 #endif | |
4739 _ACEOF | |
4740 ;; | |
4741 esac | |
4497 | 4742 |
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | 4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
4499 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | 4744 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
4500 if test "${ac_cv_c_bigendian+set}" = set; then : | 4745 if test "${ac_cv_c_bigendian+set}" = set; then : |
4501 $as_echo_n "(cached) " >&6 | 4746 $as_echo_n "(cached) " >&6 |
4838 | 5083 |
4839 if [ -n "${frag}" ]; then | 5084 if [ -n "${frag}" ]; then |
4840 frag=${libiberty_topdir}/libiberty/config/$frag | 5085 frag=${libiberty_topdir}/libiberty/config/$frag |
4841 fi | 5086 fi |
4842 | 5087 |
5088 | |
5089 | |
5090 | |
5091 | |
5092 case "${host}" in | |
5093 # PIC is the default on some targets or must not be used. | |
5094 *-*-darwin*) | |
5095 # For darwin, common symbols are not allowed in MH_DYLIB files | |
5096 case "${CFLAGS}" in | |
5097 # If we are using a compiler supporting mdynamic-no-pic | |
5098 # and the option has been tested as safe to add, then cancel | |
5099 # it here, since the code generated is incompatible with shared | |
5100 # libs. | |
5101 *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;; | |
5102 *) PICFLAG=-fno-common ;; | |
5103 esac | |
5104 ;; | |
5105 alpha*-dec-osf5*) | |
5106 # PIC is the default. | |
5107 ;; | |
5108 hppa*64*-*-hpux*) | |
5109 # PIC is the default for 64-bit PA HP-UX. | |
5110 ;; | |
5111 i[34567]86-*-cygwin* | x86_64-*-cygwin*) | |
5112 ;; | |
5113 i[34567]86-*-mingw* | x86_64-*-mingw*) | |
5114 ;; | |
5115 i[34567]86-*-interix[3-9]*) | |
5116 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
5117 # Instead, we relocate shared libraries at runtime. | |
5118 ;; | |
5119 i[34567]86-*-nto-qnx*) | |
5120 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
5121 # it will coredump. | |
5122 PICFLAG='-fPIC -shared' | |
5123 ;; | |
5124 i[34567]86-pc-msdosdjgpp*) | |
5125 # DJGPP does not support shared libraries at all. | |
5126 ;; | |
5127 ia64*-*-hpux*) | |
5128 # On IA64 HP-UX, PIC is the default but the pic flag | |
5129 # sets the default TLS model and affects inlining. | |
5130 PICFLAG=-fPIC | |
5131 ;; | |
5132 mips-sgi-irix6*) | |
5133 # PIC is the default. | |
5134 ;; | |
5135 rs6000-ibm-aix* | powerpc-ibm-aix*) | |
5136 # All AIX code is PIC. | |
5137 ;; | |
5138 | |
5139 # Some targets support both -fPIC and -fpic, but prefer the latter. | |
5140 # FIXME: Why? | |
5141 i[34567]86-*-* | x86_64-*-*) | |
5142 PICFLAG=-fpic | |
5143 ;; | |
5144 # FIXME: Override -fPIC default in libgcc only? | |
5145 sh-*-linux* | sh[2346lbe]*-*-linux*) | |
5146 PICFLAG=-fpic | |
5147 ;; | |
5148 # FIXME: Simplify to sh*-*-netbsd*? | |
5149 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \ | |
5150 sh64-*-netbsd* | sh64l*-*-netbsd*) | |
5151 PICFLAG=-fpic | |
5152 ;; | |
5153 # Default to -fPIC unless specified otherwise. | |
5154 *) | |
5155 PICFLAG=-fPIC | |
5156 ;; | |
5157 esac | |
5158 | |
5159 # If the user explicitly uses -fpic/-fPIC, keep that. | |
5160 case "${CFLAGS}" in | |
5161 *-fpic*) | |
5162 PICFLAG=-fpic | |
5163 ;; | |
5164 *-fPIC*) | |
5165 PICFLAG=-fPIC | |
5166 ;; | |
5167 esac | |
5168 | |
5169 | |
4843 # If they didn't specify --enable-shared, don't generate shared libs. | 5170 # If they didn't specify --enable-shared, don't generate shared libs. |
4844 case "${enable_shared}" in | 5171 case "${enable_shared}" in |
4845 yes) shared=yes ;; | 5172 yes) shared=yes ;; |
4846 no) shared=no ;; | 5173 no) shared=no ;; |
4847 "") shared=no ;; | 5174 "") shared=no ;; |
4848 *) shared=yes ;; | 5175 *) shared=yes ;; |
4849 esac | 5176 esac |
4850 if [ "${shared}" = "yes" ]; then | 5177 |
4851 case "${host}" in | 5178 # ...unless --enable-host-shared was passed from top-level config: |
4852 *-*-cygwin*) ;; | 5179 if [ "${enable_host_shared}" = "yes" ]; then |
4853 alpha*-*-linux*) PICFLAG=-fPIC ;; | 5180 shared=yes |
4854 arm*-*-*) PICFLAG=-fPIC ;; | 5181 fi |
4855 hppa*-*-*) PICFLAG=-fPIC ;; | 5182 |
4856 i370-*-*) PICFLAG=-fPIC ;; | 5183 if [ "${shared}" != "yes" ]; then |
4857 ia64-*-*) PICFLAG=-fpic ;; | 5184 PICFLAG= |
4858 i[34567]86-*-* | x86_64-*-*) | 5185 fi |
4859 PICFLAG=-fpic ;; | 5186 |
4860 m68k-*-*) PICFLAG=-fpic ;; | 5187 |
4861 mips*-*-linux*) PICFLAG=-fPIC ;; | 5188 NOASANFLAG= |
4862 powerpc*-*-aix*) ;; | 5189 case " ${CFLAGS} " in |
4863 powerpc*-*-*) PICFLAG=-fPIC ;; | 5190 *\ -fsanitize=address\ *) NOASANFLAG=-fno-sanitize=address ;; |
4864 sparc*-*-*) case "${CFLAGS}" in | 5191 esac |
4865 *-fpic* ) PICFLAG=-fpic ;; | |
4866 * ) PICFLAG=-fPIC ;; | |
4867 esac ;; | |
4868 s390*-*-*) PICFLAG=-fpic ;; | |
4869 sh*-*-*) PICFLAG=-fPIC ;; | |
4870 esac | |
4871 fi | |
4872 | 5192 |
4873 | 5193 |
4874 echo "# Warning: this fragment is automatically generated" > temp-frag | 5194 echo "# Warning: this fragment is automatically generated" > temp-frag |
4875 | 5195 |
4876 if [ -n "${frag}" ] && [ -f "${frag}" ]; then | 5196 if [ -n "${frag}" ] && [ -f "${frag}" ]; then |
5015 $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h | 5335 $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h |
5016 | 5336 |
5017 fi | 5337 fi |
5018 | 5338 |
5019 | 5339 |
5020 # Determine the size of an int for struct fibnode. | 5340 # Determine sizes of some types. |
5021 # The cast to long int works around a bug in the HP C Compiler | 5341 # The cast to long int works around a bug in the HP C Compiler |
5022 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 5342 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
5023 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 5343 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
5024 # This bug is HP SR number 8606223364. | 5344 # This bug is HP SR number 8606223364. |
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
5049 | 5369 |
5050 cat >>confdefs.h <<_ACEOF | 5370 cat >>confdefs.h <<_ACEOF |
5051 #define SIZEOF_INT $ac_cv_sizeof_int | 5371 #define SIZEOF_INT $ac_cv_sizeof_int |
5052 _ACEOF | 5372 _ACEOF |
5053 | 5373 |
5374 | |
5375 # The cast to long int works around a bug in the HP C Compiler | |
5376 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5377 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5378 # This bug is HP SR number 8606223364. | |
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
5380 $as_echo_n "checking size of long... " >&6; } | |
5381 if test "${ac_cv_sizeof_long+set}" = set; then : | |
5382 $as_echo_n "(cached) " >&6 | |
5383 else | |
5384 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : | |
5385 | |
5386 else | |
5387 if test "$ac_cv_type_long" = yes; then | |
5388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5390 { as_fn_set_status 77 | |
5391 as_fn_error "cannot compute sizeof (long) | |
5392 See \`config.log' for more details." "$LINENO" 5; }; } | |
5393 else | |
5394 ac_cv_sizeof_long=0 | |
5395 fi | |
5396 fi | |
5397 | |
5398 fi | |
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
5400 $as_echo "$ac_cv_sizeof_long" >&6; } | |
5401 | |
5402 | |
5403 | |
5404 cat >>confdefs.h <<_ACEOF | |
5405 #define SIZEOF_LONG $ac_cv_sizeof_long | |
5406 _ACEOF | |
5407 | |
5408 | |
5409 # The cast to long int works around a bug in the HP C Compiler | |
5410 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5411 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5412 # This bug is HP SR number 8606223364. | |
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | |
5414 $as_echo_n "checking size of size_t... " >&6; } | |
5415 if test "${ac_cv_sizeof_size_t+set}" = set; then : | |
5416 $as_echo_n "(cached) " >&6 | |
5417 else | |
5418 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : | |
5419 | |
5420 else | |
5421 if test "$ac_cv_type_size_t" = yes; then | |
5422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5424 { as_fn_set_status 77 | |
5425 as_fn_error "cannot compute sizeof (size_t) | |
5426 See \`config.log' for more details." "$LINENO" 5; }; } | |
5427 else | |
5428 ac_cv_sizeof_size_t=0 | |
5429 fi | |
5430 fi | |
5431 | |
5432 fi | |
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 | |
5434 $as_echo "$ac_cv_sizeof_size_t" >&6; } | |
5435 | |
5436 | |
5437 | |
5438 cat >>confdefs.h <<_ACEOF | |
5439 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
5440 _ACEOF | |
5441 | |
5442 | |
5443 | |
5444 # Check for presense of long long | |
5445 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" | |
5446 if test "x$ac_cv_type_long_long" = x""yes; then : | |
5447 | |
5448 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h | |
5449 # The cast to long int works around a bug in the HP C Compiler | |
5450 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5451 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5452 # This bug is HP SR number 8606223364. | |
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
5454 $as_echo_n "checking size of long long... " >&6; } | |
5455 if test "${ac_cv_sizeof_long_long+set}" = set; then : | |
5456 $as_echo_n "(cached) " >&6 | |
5457 else | |
5458 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | |
5459 | |
5460 else | |
5461 if test "$ac_cv_type_long_long" = yes; then | |
5462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5464 { as_fn_set_status 77 | |
5465 as_fn_error "cannot compute sizeof (long long) | |
5466 See \`config.log' for more details." "$LINENO" 5; }; } | |
5467 else | |
5468 ac_cv_sizeof_long_long=0 | |
5469 fi | |
5470 fi | |
5471 | |
5472 fi | |
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | |
5474 $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
5475 | |
5476 | |
5477 | |
5478 cat >>confdefs.h <<_ACEOF | |
5479 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
5480 _ACEOF | |
5481 | |
5482 | |
5483 fi | |
5054 | 5484 |
5055 | 5485 |
5056 # Look for a 64-bit type. | 5486 # Look for a 64-bit type. |
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit type" >&5 | 5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit type" >&5 |
5058 $as_echo_n "checking for a 64-bit type... " >&6; } | 5488 $as_echo_n "checking for a 64-bit type... " >&6; } |
5272 funcs="$funcs strcasecmp" | 5702 funcs="$funcs strcasecmp" |
5273 funcs="$funcs strchr" | 5703 funcs="$funcs strchr" |
5274 funcs="$funcs strdup" | 5704 funcs="$funcs strdup" |
5275 funcs="$funcs strncasecmp" | 5705 funcs="$funcs strncasecmp" |
5276 funcs="$funcs strndup" | 5706 funcs="$funcs strndup" |
5707 funcs="$funcs strnlen" | |
5277 funcs="$funcs strrchr" | 5708 funcs="$funcs strrchr" |
5278 funcs="$funcs strstr" | 5709 funcs="$funcs strstr" |
5279 funcs="$funcs strtod" | 5710 funcs="$funcs strtod" |
5280 funcs="$funcs strtol" | 5711 funcs="$funcs strtol" |
5281 funcs="$funcs strtoul" | 5712 funcs="$funcs strtoul" |
5713 funcs="$funcs strtoll" | |
5714 funcs="$funcs strtoull" | |
5282 funcs="$funcs strverscmp" | 5715 funcs="$funcs strverscmp" |
5283 funcs="$funcs tmpnam" | 5716 funcs="$funcs tmpnam" |
5284 funcs="$funcs vasprintf" | 5717 funcs="$funcs vasprintf" |
5285 funcs="$funcs vfprintf" | 5718 funcs="$funcs vfprintf" |
5286 funcs="$funcs vprintf" | 5719 funcs="$funcs vprintf" |
5291 | 5724 |
5292 # Also in the old function.def file: alloca, vfork, getopt. | 5725 # Also in the old function.def file: alloca, vfork, getopt. |
5293 | 5726 |
5294 vars="sys_errlist sys_nerr sys_siglist" | 5727 vars="sys_errlist sys_nerr sys_siglist" |
5295 | 5728 |
5296 checkfuncs="__fsetlocking canonicalize_file_name dup3 getrusage getsysinfo \ | 5729 checkfuncs="__fsetlocking canonicalize_file_name dup3 getrlimit getrusage \ |
5297 gettimeofday on_exit psignal pstat_getdynamic pstat_getstatic realpath \ | 5730 getsysinfo gettimeofday on_exit psignal pstat_getdynamic pstat_getstatic \ |
5298 sbrk spawnve spawnvpe strerror strsignal sysconf sysctl sysmp table \ | 5731 realpath setrlimit sbrk spawnve spawnvpe strerror strsignal sysconf sysctl \ |
5299 times wait3 wait4" | 5732 sysmp table times wait3 wait4" |
5300 | 5733 |
5301 # These are neither executed nor required, but they help keep | 5734 # These are neither executed nor required, but they help keep |
5302 # autoheader happy without adding a bunch of text to acconfig.h. | 5735 # autoheader happy without adding a bunch of text to acconfig.h. |
5303 if test "x" = "y"; then | 5736 if test "x" = "y"; then |
5304 for ac_func in asprintf atexit \ | 5737 for ac_func in asprintf atexit \ |
5305 basename bcmp bcopy bsearch bzero \ | 5738 basename bcmp bcopy bsearch bzero \ |
5306 calloc canonicalize_file_name clock \ | 5739 calloc canonicalize_file_name clock \ |
5307 dup3 \ | 5740 dup3 \ |
5308 ffs __fsetlocking \ | 5741 ffs __fsetlocking \ |
5309 getcwd getpagesize getrusage getsysinfo gettimeofday \ | 5742 getcwd getpagesize getrlimit getrusage getsysinfo gettimeofday \ |
5310 index insque \ | 5743 index insque \ |
5311 memchr memcmp memcpy memmem memmove memset mkstemps \ | 5744 memchr memcmp memcpy memmem memmove memset mkstemps \ |
5312 on_exit \ | 5745 on_exit \ |
5313 psignal pstat_getdynamic pstat_getstatic putenv \ | 5746 psignal pstat_getdynamic pstat_getstatic putenv \ |
5314 random realpath rename rindex \ | 5747 random realpath rename rindex \ |
5315 sbrk setenv setproctitle sigsetmask snprintf spawnve spawnvpe \ | 5748 sbrk setenv setproctitle setrlimit sigsetmask snprintf spawnve spawnvpe \ |
5316 stpcpy stpncpy strcasecmp strchr strdup \ | 5749 stpcpy stpncpy strcasecmp strchr strdup \ |
5317 strerror strncasecmp strndup strrchr strsignal strstr strtod strtol \ | 5750 strerror strncasecmp strndup strnlen strrchr strsignal strstr strtod \ |
5318 strtoul strverscmp sysconf sysctl sysmp \ | 5751 strtol strtoul strtoll strtoull strverscmp sysconf sysctl sysmp \ |
5319 table times tmpnam \ | 5752 table times tmpnam \ |
5320 vasprintf vfprintf vprintf vsprintf \ | 5753 vasprintf vfprintf vprintf vsprintf \ |
5321 wait3 wait4 waitpid | 5754 wait3 wait4 waitpid |
5322 do : | 5755 do : |
5323 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 5756 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5389 fi | 5822 fi |
5390 | 5823 |
5391 cat >>confdefs.h <<_ACEOF | 5824 cat >>confdefs.h <<_ACEOF |
5392 #define HAVE_DECL_VSNPRINTF $ac_have_decl | 5825 #define HAVE_DECL_VSNPRINTF $ac_have_decl |
5393 _ACEOF | 5826 _ACEOF |
5827 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default" | |
5828 if test "x$ac_cv_have_decl_strtol" = x""yes; then : | |
5829 ac_have_decl=1 | |
5830 else | |
5831 ac_have_decl=0 | |
5832 fi | |
5833 | |
5834 cat >>confdefs.h <<_ACEOF | |
5835 #define HAVE_DECL_STRTOL $ac_have_decl | |
5836 _ACEOF | |
5837 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default" | |
5838 if test "x$ac_cv_have_decl_strtoul" = x""yes; then : | |
5839 ac_have_decl=1 | |
5840 else | |
5841 ac_have_decl=0 | |
5842 fi | |
5843 | |
5844 cat >>confdefs.h <<_ACEOF | |
5845 #define HAVE_DECL_STRTOUL $ac_have_decl | |
5846 _ACEOF | |
5847 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default" | |
5848 if test "x$ac_cv_have_decl_strtoll" = x""yes; then : | |
5849 ac_have_decl=1 | |
5850 else | |
5851 ac_have_decl=0 | |
5852 fi | |
5853 | |
5854 cat >>confdefs.h <<_ACEOF | |
5855 #define HAVE_DECL_STRTOLL $ac_have_decl | |
5856 _ACEOF | |
5857 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default" | |
5858 if test "x$ac_cv_have_decl_strtoull" = x""yes; then : | |
5859 ac_have_decl=1 | |
5860 else | |
5861 ac_have_decl=0 | |
5862 fi | |
5863 | |
5864 cat >>confdefs.h <<_ACEOF | |
5865 #define HAVE_DECL_STRTOULL $ac_have_decl | |
5866 _ACEOF | |
5867 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" | |
5868 if test "x$ac_cv_have_decl_strnlen" = x""yes; then : | |
5869 ac_have_decl=1 | |
5870 else | |
5871 ac_have_decl=0 | |
5872 fi | |
5873 | |
5874 cat >>confdefs.h <<_ACEOF | |
5875 #define HAVE_DECL_STRNLEN $ac_have_decl | |
5876 _ACEOF | |
5394 | 5877 |
5395 | 5878 |
5396 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h | 5879 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h |
5397 | 5880 |
5398 | 5881 |
5407 # function we want to put FN.o in LIBOBJS, and if the host does | 5890 # function we want to put FN.o in LIBOBJS, and if the host does |
5408 # provide the function, we want to define HAVE_FN in config.h. | 5891 # provide the function, we want to define HAVE_FN in config.h. |
5409 | 5892 |
5410 setobjs= | 5893 setobjs= |
5411 CHECK= | 5894 CHECK= |
5412 target_header_dir= | |
5413 if test -n "${with_target_subdir}"; then | 5895 if test -n "${with_target_subdir}"; then |
5414 | 5896 |
5415 # We are being configured as a target library. AC_REPLACE_FUNCS | 5897 # We are being configured as a target library. AC_REPLACE_FUNCS |
5416 # may not work correctly, because the compiler may not be able to | 5898 # may not work correctly, because the compiler may not be able to |
5417 # link executables. Note that we may still be being configured | 5899 # link executables. Note that we may still be being configured |
5595 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" | 6077 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" |
5596 ;; | 6078 ;; |
5597 esac | 6079 esac |
5598 | 6080 |
5599 case " $LIBOBJS " in | 6081 case " $LIBOBJS " in |
6082 *" strnlen.$ac_objext "* ) ;; | |
6083 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" | |
6084 ;; | |
6085 esac | |
6086 | |
6087 case " $LIBOBJS " in | |
5600 *" strverscmp.$ac_objext "* ) ;; | 6088 *" strverscmp.$ac_objext "* ) ;; |
5601 *) LIBOBJS="$LIBOBJS strverscmp.$ac_objext" | 6089 *) LIBOBJS="$LIBOBJS strverscmp.$ac_objext" |
5602 ;; | 6090 ;; |
5603 esac | 6091 esac |
5604 | 6092 |
5615 esac | 6103 esac |
5616 | 6104 |
5617 | 6105 |
5618 for f in $funcs; do | 6106 for f in $funcs; do |
5619 case "$f" in | 6107 case "$f" in |
5620 asprintf | basename | bcmp | bcopy | bzero | clock | ffs | getpagesize | index | insque | mempcpy | mkstemps | random | rindex | sigsetmask | stpcpy | stpncpy | strdup | strndup | strverscmp | vasprintf | waitpid) | 6108 asprintf | basename | bcmp | bcopy | bzero | clock | ffs | getpagesize | index | insque | mempcpy | mkstemps | random | rindex | sigsetmask | stpcpy | stpncpy | strdup | strndup | strnlen | strverscmp | vasprintf | waitpid) |
5621 ;; | 6109 ;; |
5622 *) | 6110 *) |
5623 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 6111 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
5624 cat >>confdefs.h <<_ACEOF | 6112 cat >>confdefs.h <<_ACEOF |
5625 #define $n 1 | 6113 #define $n 1 |
5684 setobjs=yes | 6172 setobjs=yes |
5685 ;; | 6173 ;; |
5686 | 6174 |
5687 esac | 6175 esac |
5688 | 6176 |
5689 # We may wish to install the target headers somewhere. | |
5690 # Check whether --enable-install-libiberty was given. | |
5691 if test "${enable_install_libiberty+set}" = set; then : | |
5692 enableval=$enable_install_libiberty; enable_install_libiberty=$enableval | |
5693 else | |
5694 enable_install_libiberty=no | |
5695 fi | |
5696 | |
5697 # Option parsed, now set things appropriately. | |
5698 case x"$enable_install_libiberty" in | |
5699 xyes|x) | |
5700 target_header_dir=libiberty | |
5701 ;; | |
5702 xno) | |
5703 target_header_dir= | |
5704 ;; | |
5705 *) | |
5706 # This could be sanity-checked in various ways... | |
5707 target_header_dir="${enable_install_libiberty}" | |
5708 ;; | |
5709 esac | |
5710 | |
5711 | |
5712 else | 6177 else |
5713 | 6178 |
5714 # Not a target library, so we set things up to run the test suite. | 6179 # Not a target library, so we set things up to run the test suite. |
5715 CHECK=really-check | 6180 CHECK=really-check |
5716 | 6181 |
5825 fi | 6290 fi |
5826 | 6291 |
5827 if test -z "${setobjs}"; then | 6292 if test -z "${setobjs}"; then |
5828 | 6293 |
5829 case "${host}" in | 6294 case "${host}" in |
6295 | |
6296 *-*-android*) | |
6297 # On android, getpagesize is defined in unistd.h as a static inline | |
6298 # function, which AC_CHECK_FUNCS does not handle properly. | |
6299 ac_cv_func_getpagesize=yes | |
6300 ;; | |
5830 | 6301 |
5831 *-*-mingw32*) | 6302 *-*-mingw32*) |
5832 # Under mingw32, sys_nerr and sys_errlist exist, but they are | 6303 # Under mingw32, sys_nerr and sys_errlist exist, but they are |
5833 # macros, so the test below won't find them. | 6304 # macros, so the test below won't find them. |
5834 libiberty_cv_var_sys_nerr=yes | 6305 libiberty_cv_var_sys_nerr=yes |
6490 | 6961 |
6491 cat >>confdefs.h <<_ACEOF | 6962 cat >>confdefs.h <<_ACEOF |
6492 #define HAVE_DECL_SBRK $ac_have_decl | 6963 #define HAVE_DECL_SBRK $ac_have_decl |
6493 _ACEOF | 6964 _ACEOF |
6494 | 6965 |
6966 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default" | |
6967 if test "x$ac_cv_have_decl_strtol" = x""yes; then : | |
6968 ac_have_decl=1 | |
6969 else | |
6970 ac_have_decl=0 | |
6971 fi | |
6972 | |
6973 cat >>confdefs.h <<_ACEOF | |
6974 #define HAVE_DECL_STRTOL $ac_have_decl | |
6975 _ACEOF | |
6976 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default" | |
6977 if test "x$ac_cv_have_decl_strtoul" = x""yes; then : | |
6978 ac_have_decl=1 | |
6979 else | |
6980 ac_have_decl=0 | |
6981 fi | |
6982 | |
6983 cat >>confdefs.h <<_ACEOF | |
6984 #define HAVE_DECL_STRTOUL $ac_have_decl | |
6985 _ACEOF | |
6986 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default" | |
6987 if test "x$ac_cv_have_decl_strtoll" = x""yes; then : | |
6988 ac_have_decl=1 | |
6989 else | |
6990 ac_have_decl=0 | |
6991 fi | |
6992 | |
6993 cat >>confdefs.h <<_ACEOF | |
6994 #define HAVE_DECL_STRTOLL $ac_have_decl | |
6995 _ACEOF | |
6996 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default" | |
6997 if test "x$ac_cv_have_decl_strtoull" = x""yes; then : | |
6998 ac_have_decl=1 | |
6999 else | |
7000 ac_have_decl=0 | |
7001 fi | |
7002 | |
7003 cat >>confdefs.h <<_ACEOF | |
7004 #define HAVE_DECL_STRTOULL $ac_have_decl | |
7005 _ACEOF | |
7006 | |
6495 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" | 7007 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" |
6496 if test "x$ac_cv_have_decl_strverscmp" = x""yes; then : | 7008 if test "x$ac_cv_have_decl_strverscmp" = x""yes; then : |
6497 ac_have_decl=1 | 7009 ac_have_decl=1 |
6498 else | 7010 else |
6499 ac_have_decl=0 | 7011 ac_have_decl=0 |
6500 fi | 7012 fi |
6501 | 7013 |
6502 cat >>confdefs.h <<_ACEOF | 7014 cat >>confdefs.h <<_ACEOF |
6503 #define HAVE_DECL_STRVERSCMP $ac_have_decl | 7015 #define HAVE_DECL_STRVERSCMP $ac_have_decl |
7016 _ACEOF | |
7017 | |
7018 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" | |
7019 if test "x$ac_cv_have_decl_strnlen" = x""yes; then : | |
7020 ac_have_decl=1 | |
7021 else | |
7022 ac_have_decl=0 | |
7023 fi | |
7024 | |
7025 cat >>confdefs.h <<_ACEOF | |
7026 #define HAVE_DECL_STRNLEN $ac_have_decl | |
6504 _ACEOF | 7027 _ACEOF |
6505 | 7028 |
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether canonicalize_file_name must be declared" >&5 | 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether canonicalize_file_name must be declared" >&5 |
6507 $as_echo_n "checking whether canonicalize_file_name must be declared... " >&6; } | 7030 $as_echo_n "checking whether canonicalize_file_name must be declared... " >&6; } |
6508 if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then : | 7031 if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then : |
6753 $as_echo_n "checking for working strncmp... " >&6; } | 7276 $as_echo_n "checking for working strncmp... " >&6; } |
6754 if test "${ac_cv_func_strncmp_works+set}" = set; then : | 7277 if test "${ac_cv_func_strncmp_works+set}" = set; then : |
6755 $as_echo_n "(cached) " >&6 | 7278 $as_echo_n "(cached) " >&6 |
6756 else | 7279 else |
6757 if test "$cross_compiling" = yes; then : | 7280 if test "$cross_compiling" = yes; then : |
6758 ac_cv_func_strncmp_works=no | 7281 ac_cv_func_strncmp_works=yes |
6759 else | 7282 else |
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6761 /* end confdefs.h. */ | 7284 /* end confdefs.h. */ |
6762 | 7285 |
6763 /* Test by Jim Wilson and Kaveh Ghazi. | 7286 /* Test by Jim Wilson and Kaveh Ghazi. |