comparison libcpp/configure @ 67:f6334be47118

update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
date Tue, 22 Mar 2011 17:18:12 +0900
parents 77e2b8dfacca
children 04ced10e8804
comparison
equal deleted inserted replaced
65:65488c3d617d 67:f6334be47118
609 LIBINTL_DEP 609 LIBINTL_DEP
610 LIBINTL 610 LIBINTL
611 USE_NLS 611 USE_NLS
612 ALLOCA 612 ALLOCA
613 LIBOBJS 613 LIBOBJS
614 CXXCPP
615 EGREP
616 GREP
617 CPP
618 CXXDEPMODE 614 CXXDEPMODE
619 CCDEPMODE 615 CCDEPMODE
620 DEPDIR 616 DEPDIR
621 am__leading_dot 617 am__leading_dot
622 WERROR 618 WERROR
625 warn 621 warn
626 AUTOHEADER 622 AUTOHEADER
627 AUTOCONF 623 AUTOCONF
628 ACLOCAL 624 ACLOCAL
629 ENABLE_BUILD_WITH_CXX 625 ENABLE_BUILD_WITH_CXX
626 EGREP
627 GREP
628 CPP
630 RANLIB 629 RANLIB
631 ac_ct_CXX 630 ac_ct_CXX
632 CXXFLAGS 631 CXXFLAGS
633 CXX 632 CXX
634 OBJEXT 633 OBJEXT
693 PATH_SEPARATOR 692 PATH_SEPARATOR
694 SHELL' 693 SHELL'
695 ac_subst_files='' 694 ac_subst_files=''
696 ac_user_opts=' 695 ac_user_opts='
697 enable_option_checking 696 enable_option_checking
697 enable_largefile
698 enable_build_with_cxx 698 enable_build_with_cxx
699 enable_werror_always 699 enable_werror_always
700 with_gnu_ld 700 with_gnu_ld
701 enable_rpath 701 enable_rpath
702 with_libiconv_prefix 702 with_libiconv_prefix
712 LIBS 712 LIBS
713 CPPFLAGS 713 CPPFLAGS
714 CXX 714 CXX
715 CXXFLAGS 715 CXXFLAGS
716 CCC 716 CCC
717 CPP 717 CPP'
718 CXXCPP'
719 718
720 719
721 # Initialize some variables set by options. 720 # Initialize some variables set by options.
722 ac_init_help= 721 ac_init_help=
723 ac_init_version=false 722 ac_init_version=false
1329 1328
1330 Optional Features: 1329 Optional Features:
1331 --disable-option-checking ignore unrecognized --enable/--with options 1330 --disable-option-checking ignore unrecognized --enable/--with options
1332 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1331 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1333 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1332 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1333 --disable-largefile omit support for large files
1334 --enable-build-with-cxx build with C++ compiler instead of C compiler 1334 --enable-build-with-cxx build with C++ compiler instead of C compiler
1335 --enable-werror-always enable -Werror despite compiler version 1335 --enable-werror-always enable -Werror despite compiler version
1336 --disable-rpath do not hardcode runtime library paths 1336 --disable-rpath do not hardcode runtime library paths
1337 --enable-maintainer-mode enable rules only needed by maintainers 1337 --enable-maintainer-mode enable rules only needed by maintainers
1338 --enable-checking enable expensive run-time checks 1338 --enable-checking enable expensive run-time checks
1353 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1353 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1354 you have headers in a nonstandard directory <include dir> 1354 you have headers in a nonstandard directory <include dir>
1355 CXX C++ compiler command 1355 CXX C++ compiler command
1356 CXXFLAGS C++ compiler flags 1356 CXXFLAGS C++ compiler flags
1357 CPP C preprocessor 1357 CPP C preprocessor
1358 CXXCPP C++ preprocessor
1359 1358
1360 Use these variables to override the choices made by `configure' or to help 1359 Use these variables to override the choices made by `configure' or to help
1361 it to find libraries and programs with nonstandard names/locations. 1360 it to find libraries and programs with nonstandard names/locations.
1362 1361
1363 Report bugs to <gcc-bugs@gcc.gnu.org>. 1362 Report bugs to <gcc-bugs@gcc.gnu.org>.
1714 $as_echo "$ac_res" >&6; } 1713 $as_echo "$ac_res" >&6; }
1715 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1714 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1716 1715
1717 } # ac_fn_c_check_header_compile 1716 } # ac_fn_c_check_header_compile
1718 1717
1719 # ac_fn_cxx_try_cpp LINENO 1718 # ac_fn_c_try_link LINENO
1720 # ------------------------ 1719 # -----------------------
1721 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_cxx_try_cpp ()
1723 {
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { { ac_try="$ac_cpp conftest.$ac_ext"
1726 case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1738 fi
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } >/dev/null && {
1741 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1742 test ! -s conftest.err
1743 }; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=1
1750 fi
1751 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752 return $ac_retval
1753
1754 } # ac_fn_cxx_try_cpp
1755
1756 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1757 # ---------------------------------------------------------
1758 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1759 # the include files in INCLUDES and setting the cache variable VAR
1760 # accordingly.
1761 ac_fn_cxx_check_header_mongrel ()
1762 {
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 $as_echo_n "checking for $2... " >&6; }
1767 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1768 $as_echo_n "(cached) " >&6
1769 fi
1770 eval ac_res=\$$3
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 $as_echo "$ac_res" >&6; }
1773 else
1774 # Is the header compilable?
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1776 $as_echo_n "checking $2 usability... " >&6; }
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1779 $4
1780 #include <$2>
1781 _ACEOF
1782 if ac_fn_cxx_try_compile "$LINENO"; then :
1783 ac_header_compiler=yes
1784 else
1785 ac_header_compiler=no
1786 fi
1787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1789 $as_echo "$ac_header_compiler" >&6; }
1790
1791 # Is the header present?
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1793 $as_echo_n "checking $2 presence... " >&6; }
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1796 #include <$2>
1797 _ACEOF
1798 if ac_fn_cxx_try_cpp "$LINENO"; then :
1799 ac_header_preproc=yes
1800 else
1801 ac_header_preproc=no
1802 fi
1803 rm -f conftest.err conftest.$ac_ext
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1805 $as_echo "$ac_header_preproc" >&6; }
1806
1807 # So? What about this header?
1808 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1809 yes:no: )
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1811 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1813 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1814 ;;
1815 no:yes:* )
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1817 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1819 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1821 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1823 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1825 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1826 ( cat <<\_ASBOX
1827 ## ----------------------------------- ##
1828 ## Report this to gcc-bugs@gcc.gnu.org ##
1829 ## ----------------------------------- ##
1830 _ASBOX
1831 ) | sed "s/^/$as_me: WARNING: /" >&2
1832 ;;
1833 esac
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1837 $as_echo_n "(cached) " >&6
1838 else
1839 eval "$3=\$ac_header_compiler"
1840 fi
1841 eval ac_res=\$$3
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1844 fi
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846
1847 } # ac_fn_cxx_check_header_mongrel
1848
1849 # ac_fn_cxx_try_link LINENO
1850 # -------------------------
1851 # Try to link conftest.$ac_ext, and return whether this succeeded. 1720 # Try to link conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_cxx_try_link () 1721 ac_fn_c_try_link ()
1853 { 1722 {
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 rm -f conftest.$ac_objext conftest$ac_exeext 1724 rm -f conftest.$ac_objext conftest$ac_exeext
1856 if { { ac_try="$ac_link" 1725 if { { ac_try="$ac_link"
1857 case "(($ac_try" in 1726 case "(($ac_try" in
1867 cat conftest.er1 >&5 1736 cat conftest.er1 >&5
1868 mv -f conftest.er1 conftest.err 1737 mv -f conftest.er1 conftest.err
1869 fi 1738 fi
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && { 1740 test $ac_status = 0; } && {
1872 test -z "$ac_cxx_werror_flag" || 1741 test -z "$ac_c_werror_flag" ||
1873 test ! -s conftest.err 1742 test ! -s conftest.err
1874 } && test -s conftest$ac_exeext && { 1743 } && test -s conftest$ac_exeext && {
1875 test "$cross_compiling" = yes || 1744 test "$cross_compiling" = yes ||
1876 $as_test_x conftest$ac_exeext 1745 $as_test_x conftest$ac_exeext
1877 }; then : 1746 }; then :
1888 # left behind by Apple's compiler. We do this before executing the actions. 1757 # left behind by Apple's compiler. We do this before executing the actions.
1889 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1890 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1891 return $ac_retval 1760 return $ac_retval
1892 1761
1893 } # ac_fn_cxx_try_link 1762 } # ac_fn_c_try_link
1894 1763
1895 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES 1764 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1896 # --------------------------------------------- 1765 # -------------------------------------------
1897 # Tests whether TYPE exists after having included INCLUDES, setting cache 1766 # Tests whether TYPE exists after having included INCLUDES, setting cache
1898 # variable VAR accordingly. 1767 # variable VAR accordingly.
1899 ac_fn_cxx_check_type () 1768 ac_fn_c_check_type ()
1900 { 1769 {
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903 $as_echo_n "checking for $2... " >&6; } 1772 $as_echo_n "checking for $2... " >&6; }
1904 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1773 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915 return 0; 1784 return 0;
1916 ; 1785 ;
1917 return 0; 1786 return 0;
1918 } 1787 }
1919 _ACEOF 1788 _ACEOF
1920 if ac_fn_cxx_try_compile "$LINENO"; then : 1789 if ac_fn_c_try_compile "$LINENO"; then :
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */ 1791 /* end confdefs.h. */
1923 $4 1792 $4
1924 int 1793 int
1925 main () 1794 main ()
1928 return 0; 1797 return 0;
1929 ; 1798 ;
1930 return 0; 1799 return 0;
1931 } 1800 }
1932 _ACEOF 1801 _ACEOF
1933 if ac_fn_cxx_try_compile "$LINENO"; then : 1802 if ac_fn_c_try_compile "$LINENO"; then :
1934 1803
1935 else 1804 else
1936 eval "$3=yes" 1805 eval "$3=yes"
1937 fi 1806 fi
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 eval ac_res=\$$3 1811 eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; } 1813 $as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946 1815
1947 } # ac_fn_cxx_check_type 1816 } # ac_fn_c_check_type
1948 1817
1949 # ac_fn_cxx_try_run LINENO 1818 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1950 # ------------------------ 1819 # --------------------------------------------
1951 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1952 # that executables *can* be run.
1953 ac_fn_cxx_try_run ()
1954 {
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 if { { ac_try="$ac_link"
1957 case "(($ac_try" in
1958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959 *) ac_try_echo=$ac_try;;
1960 esac
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 $as_echo "$ac_try_echo"; } >&5
1963 (eval "$ac_link") 2>&5
1964 ac_status=$?
1965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1967 { { case "(($ac_try" in
1968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1969 *) ac_try_echo=$ac_try;;
1970 esac
1971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1972 $as_echo "$ac_try_echo"; } >&5
1973 (eval "$ac_try") 2>&5
1974 ac_status=$?
1975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976 test $ac_status = 0; }; }; then :
1977 ac_retval=0
1978 else
1979 $as_echo "$as_me: program exited with status $ac_status" >&5
1980 $as_echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.$ac_ext >&5
1982
1983 ac_retval=$ac_status
1984 fi
1985 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1986 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1987 return $ac_retval
1988
1989 } # ac_fn_cxx_try_run
1990
1991 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
1992 # ----------------------------------------------
1993 # Tries to find the compile-time value of EXPR in a program that includes 1820 # Tries to find the compile-time value of EXPR in a program that includes
1994 # INCLUDES, setting VAR accordingly. Returns whether the value could be 1821 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1995 # computed 1822 # computed
1996 ac_fn_cxx_compute_int () 1823 ac_fn_c_compute_int ()
1997 { 1824 {
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 if test "$cross_compiling" = yes; then 1826 if test "$cross_compiling" = yes; then
2000 # Depending upon the size, compute the lo and hi bounds. 1827 # Depending upon the size, compute the lo and hi bounds.
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 1836
2010 ; 1837 ;
2011 return 0; 1838 return 0;
2012 } 1839 }
2013 _ACEOF 1840 _ACEOF
2014 if ac_fn_cxx_try_compile "$LINENO"; then : 1841 if ac_fn_c_try_compile "$LINENO"; then :
2015 ac_lo=0 ac_mid=0 1842 ac_lo=0 ac_mid=0
2016 while :; do 1843 while :; do
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */ 1845 /* end confdefs.h. */
2019 $4 1846 $4
2025 1852
2026 ; 1853 ;
2027 return 0; 1854 return 0;
2028 } 1855 }
2029 _ACEOF 1856 _ACEOF
2030 if ac_fn_cxx_try_compile "$LINENO"; then : 1857 if ac_fn_c_try_compile "$LINENO"; then :
2031 ac_hi=$ac_mid; break 1858 ac_hi=$ac_mid; break
2032 else 1859 else
2033 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1860 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2034 if test $ac_lo -le $ac_mid; then 1861 if test $ac_lo -le $ac_mid; then
2035 ac_lo= ac_hi= 1862 ac_lo= ac_hi=
2051 1878
2052 ; 1879 ;
2053 return 0; 1880 return 0;
2054 } 1881 }
2055 _ACEOF 1882 _ACEOF
2056 if ac_fn_cxx_try_compile "$LINENO"; then : 1883 if ac_fn_c_try_compile "$LINENO"; then :
2057 ac_hi=-1 ac_mid=-1 1884 ac_hi=-1 ac_mid=-1
2058 while :; do 1885 while :; do
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */ 1887 /* end confdefs.h. */
2061 $4 1888 $4
2067 1894
2068 ; 1895 ;
2069 return 0; 1896 return 0;
2070 } 1897 }
2071 _ACEOF 1898 _ACEOF
2072 if ac_fn_cxx_try_compile "$LINENO"; then : 1899 if ac_fn_c_try_compile "$LINENO"; then :
2073 ac_lo=$ac_mid; break 1900 ac_lo=$ac_mid; break
2074 else 1901 else
2075 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1902 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2076 if test $ac_mid -le $ac_hi; then 1903 if test $ac_mid -le $ac_hi; then
2077 ac_lo= ac_hi= 1904 ac_lo= ac_hi=
2101 1928
2102 ; 1929 ;
2103 return 0; 1930 return 0;
2104 } 1931 }
2105 _ACEOF 1932 _ACEOF
2106 if ac_fn_cxx_try_compile "$LINENO"; then : 1933 if ac_fn_c_try_compile "$LINENO"; then :
2107 ac_hi=$ac_mid 1934 ac_hi=$ac_mid
2108 else 1935 else
2109 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1936 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2110 fi 1937 fi
2111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 1976
2150 ; 1977 ;
2151 return 0; 1978 return 0;
2152 } 1979 }
2153 _ACEOF 1980 _ACEOF
2154 if ac_fn_cxx_try_run "$LINENO"; then : 1981 if ac_fn_c_try_run "$LINENO"; then :
2155 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 1982 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2156 else 1983 else
2157 ac_retval=1 1984 ac_retval=1
2158 fi 1985 fi
2159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 1986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2162 1989
2163 fi 1990 fi
2164 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2165 return $ac_retval 1992 return $ac_retval
2166 1993
2167 } # ac_fn_cxx_compute_int 1994 } # ac_fn_c_compute_int
2168 1995
2169 # ac_fn_cxx_check_func LINENO FUNC VAR 1996 # ac_fn_c_check_func LINENO FUNC VAR
2170 # ------------------------------------ 1997 # ----------------------------------
2171 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1998 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2172 ac_fn_cxx_check_func () 1999 ac_fn_c_check_func ()
2173 { 2000 {
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2176 $as_echo_n "checking for $2... " >&6; } 2003 $as_echo_n "checking for $2... " >&6; }
2177 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2004 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2216 return $2 (); 2043 return $2 ();
2217 ; 2044 ;
2218 return 0; 2045 return 0;
2219 } 2046 }
2220 _ACEOF 2047 _ACEOF
2221 if ac_fn_cxx_try_link "$LINENO"; then : 2048 if ac_fn_c_try_link "$LINENO"; then :
2222 eval "$3=yes" 2049 eval "$3=yes"
2223 else 2050 else
2224 eval "$3=no" 2051 eval "$3=no"
2225 fi 2052 fi
2226 rm -f core conftest.err conftest.$ac_objext \ 2053 rm -f core conftest.err conftest.$ac_objext \
2229 eval ac_res=\$$3 2056 eval ac_res=\$$3
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231 $as_echo "$ac_res" >&6; } 2058 $as_echo "$ac_res" >&6; }
2232 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2059 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2233 2060
2234 } # ac_fn_cxx_check_func 2061 } # ac_fn_c_check_func
2235 2062
2236 # ac_fn_cxx_check_decl LINENO SYMBOL VAR 2063 # ac_fn_c_check_decl LINENO SYMBOL VAR
2237 # -------------------------------------- 2064 # ------------------------------------
2238 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 2065 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2239 ac_fn_cxx_check_decl () 2066 ac_fn_c_check_decl ()
2240 { 2067 {
2241 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 2069 as_decl_name=`echo $2|sed 's/ *(.*//'`
2243 $as_echo_n "checking whether $2 is declared... " >&6; } 2070 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2072 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2244 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2073 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2245 $as_echo_n "(cached) " >&6 2074 $as_echo_n "(cached) " >&6
2246 else 2075 else
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */ 2077 /* end confdefs.h. */
2249 $4 2078 $4
2250 int 2079 int
2251 main () 2080 main ()
2252 { 2081 {
2253 #ifndef $2 2082 #ifndef $as_decl_name
2254 (void) $2; 2083 #ifdef __cplusplus
2084 (void) $as_decl_use;
2085 #else
2086 (void) $as_decl_name;
2087 #endif
2255 #endif 2088 #endif
2256 2089
2257 ; 2090 ;
2258 return 0; 2091 return 0;
2259 } 2092 }
2260 _ACEOF 2093 _ACEOF
2261 if ac_fn_cxx_try_compile "$LINENO"; then : 2094 if ac_fn_c_try_compile "$LINENO"; then :
2262 eval "$3=yes" 2095 eval "$3=yes"
2263 else 2096 else
2264 eval "$3=no" 2097 eval "$3=no"
2265 fi 2098 fi
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 eval ac_res=\$$3 2101 eval ac_res=\$$3
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2270 $as_echo "$ac_res" >&6; } 2103 $as_echo "$ac_res" >&6; }
2271 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2104 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2272 2105
2273 } # ac_fn_cxx_check_decl 2106 } # ac_fn_c_check_decl
2274 cat >config.log <<_ACEOF 2107 cat >config.log <<_ACEOF
2275 This file contains any messages produced by compilers while 2108 This file contains any messages produced by compilers while
2276 running configure, to aid debugging if configure makes a mistake. 2109 running configure, to aid debugging if configure makes a mistake.
2277 2110
2278 It was created by cpplib $as_me , which was 2111 It was created by cpplib $as_me , which was
4000 else 3833 else
4001 RANLIB="$ac_cv_prog_RANLIB" 3834 RANLIB="$ac_cv_prog_RANLIB"
4002 fi 3835 fi
4003 3836
4004 3837
4005 # See if we are building gcc with C++. 3838
4006 # Do this early so setting lang to C++ affects following tests 3839 ac_ext=c
4007 # Check whether --enable-build-with-cxx was given.
4008 if test "${enable_build_with_cxx+set}" = set; then :
4009 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
4010 else
4011 ENABLE_BUILD_WITH_CXX=no
4012 fi
4013
4014
4015
4016 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
4017 for ac_prog in aclocal
4018 do
4019 # Extract the first word of "$ac_prog", so it can be a program name with args.
4020 set dummy $ac_prog; ac_word=$2
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4022 $as_echo_n "checking for $ac_word... " >&6; }
4023 if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
4024 $as_echo_n "(cached) " >&6
4025 else
4026 if test -n "$ACLOCAL"; then
4027 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
4028 else
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH
4031 do
4032 IFS=$as_save_IFS
4033 test -z "$as_dir" && as_dir=.
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4036 ac_cv_prog_ACLOCAL="$ac_prog"
4037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4038 break 2
4039 fi
4040 done
4041 done
4042 IFS=$as_save_IFS
4043
4044 fi
4045 fi
4046 ACLOCAL=$ac_cv_prog_ACLOCAL
4047 if test -n "$ACLOCAL"; then
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
4049 $as_echo "$ACLOCAL" >&6; }
4050 else
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052 $as_echo "no" >&6; }
4053 fi
4054
4055
4056 test -n "$ACLOCAL" && break
4057 done
4058 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
4059
4060 for ac_prog in autoconf
4061 do
4062 # Extract the first word of "$ac_prog", so it can be a program name with args.
4063 set dummy $ac_prog; ac_word=$2
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4065 $as_echo_n "checking for $ac_word... " >&6; }
4066 if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
4067 $as_echo_n "(cached) " >&6
4068 else
4069 if test -n "$AUTOCONF"; then
4070 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4071 else
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH
4074 do
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4079 ac_cv_prog_AUTOCONF="$ac_prog"
4080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4081 break 2
4082 fi
4083 done
4084 done
4085 IFS=$as_save_IFS
4086
4087 fi
4088 fi
4089 AUTOCONF=$ac_cv_prog_AUTOCONF
4090 if test -n "$AUTOCONF"; then
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4092 $as_echo "$AUTOCONF" >&6; }
4093 else
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4095 $as_echo "no" >&6; }
4096 fi
4097
4098
4099 test -n "$AUTOCONF" && break
4100 done
4101 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
4102
4103 for ac_prog in autoheader
4104 do
4105 # Extract the first word of "$ac_prog", so it can be a program name with args.
4106 set dummy $ac_prog; ac_word=$2
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4108 $as_echo_n "checking for $ac_word... " >&6; }
4109 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 if test -n "$AUTOHEADER"; then
4113 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
4114 else
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4117 do
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4122 ac_cv_prog_AUTOHEADER="$ac_prog"
4123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 break 2
4125 fi
4126 done
4127 done
4128 IFS=$as_save_IFS
4129
4130 fi
4131 fi
4132 AUTOHEADER=$ac_cv_prog_AUTOHEADER
4133 if test -n "$AUTOHEADER"; then
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
4135 $as_echo "$AUTOHEADER" >&6; }
4136 else
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4138 $as_echo "no" >&6; }
4139 fi
4140
4141
4142 test -n "$AUTOHEADER" && break
4143 done
4144 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
4145
4146
4147 # Figure out what compiler warnings we can enable.
4148 # See config/warnings.m4 for details.
4149
4150
4151 warn=
4152 save_CFLAGS="$CFLAGS"
4153 for option in -W -Wall -Wwrite-strings \
4154 -Wmissing-format-attribute; do
4155 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4156
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4158 $as_echo_n "checking whether $CC supports $option... " >&6; }
4159 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 CFLAGS="$option"
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4165
4166 int
4167 main ()
4168 {
4169
4170 ;
4171 return 0;
4172 }
4173 _ACEOF
4174 if ac_fn_c_try_compile "$LINENO"; then :
4175 eval "$as_acx_Woption=yes"
4176 else
4177 eval "$as_acx_Woption=no"
4178 fi
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180
4181 fi
4182 eval ac_res=\$$as_acx_Woption
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4184 $as_echo "$ac_res" >&6; }
4185 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4186 warn="$warn${warn:+ }$option"
4187 fi
4188 done
4189 CFLAGS="$save_CFLAGS"
4190
4191 c_warn=
4192 save_CFLAGS="$CFLAGS"
4193 for option in -Wstrict-prototypes -Wmissing-prototypes \
4194 -Wold-style-definition -Wc++-compat; do
4195 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4196
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4198 $as_echo_n "checking whether $CC supports $option... " >&6; }
4199 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4200 $as_echo_n "(cached) " >&6
4201 else
4202 CFLAGS="$option"
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4205
4206 int
4207 main ()
4208 {
4209
4210 ;
4211 return 0;
4212 }
4213 _ACEOF
4214 if ac_fn_c_try_compile "$LINENO"; then :
4215 eval "$as_acx_Woption=yes"
4216 else
4217 eval "$as_acx_Woption=no"
4218 fi
4219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4220
4221 fi
4222 eval ac_res=\$$as_acx_Woption
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4224 $as_echo "$ac_res" >&6; }
4225 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4226 c_warn="$c_warn${c_warn:+ }$option"
4227 fi
4228 done
4229 CFLAGS="$save_CFLAGS"
4230
4231 WARN_PEDANTIC=
4232 if test "$GCC" = yes; then :
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long" >&5
4234 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long... " >&6; }
4235 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then :
4236 $as_echo_n "(cached) " >&6
4237 else
4238 save_CFLAGS="$CFLAGS"
4239 CFLAGS="-pedantic -Wno-long-long"
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4242
4243 int
4244 main ()
4245 {
4246
4247 ;
4248 return 0;
4249 }
4250 _ACEOF
4251 if ac_fn_c_try_compile "$LINENO"; then :
4252 acx_cv_prog_cc_pedantic__Wno_long_long=yes
4253 else
4254 acx_cv_prog_cc_pedantic__Wno_long_long=no
4255 fi
4256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257 CFLAGS="$save_CFLAGS"
4258 fi
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
4260 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long" >&6; }
4261 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then :
4262 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
4263 fi
4264
4265 fi
4266
4267
4268 # Only enable with --enable-werror-always until existing warnings are
4269 # corrected.
4270 WERROR=
4271 # Check whether --enable-werror-always was given.
4272 if test "${enable_werror_always+set}" = set; then :
4273 enableval=$enable_werror_always;
4274 else
4275 enable_werror_always=no
4276 fi
4277
4278 if test $enable_werror_always = yes; then :
4279 WERROR="$WERROR${WERROR:+ }-Werror"
4280 fi
4281
4282
4283
4284 # Dependency checking.
4285 rm -rf .tst 2>/dev/null
4286 mkdir .tst 2>/dev/null
4287 if test -d .tst; then
4288 am__leading_dot=.
4289 else
4290 am__leading_dot=_
4291 fi
4292 rmdir .tst 2>/dev/null
4293
4294 DEPDIR="${am__leading_dot}deps"
4295
4296 ac_config_commands="$ac_config_commands depdir"
4297
4298
4299 if test "$ENABLE_BUILD_WITH_CXX" = "no"; then
4300 depcc="$CC" am_compiler_list=
4301
4302 am_depcomp=$ac_aux_dir/depcomp
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4304 $as_echo_n "checking dependency style of $depcc... " >&6; }
4305 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4306 $as_echo_n "(cached) " >&6
4307 else
4308 if test -f "$am_depcomp"; then
4309 # We make a subdir and do the tests there. Otherwise we can end up
4310 # making bogus files that we don't know about and never remove. For
4311 # instance it was reported that on HP-UX the gcc test will end up
4312 # making a dummy file named `D' -- because `-MD' means `put the output
4313 # in D'.
4314 mkdir conftest.dir
4315 # Copy depcomp to subdir because otherwise we won't find it if we're
4316 # using a relative directory.
4317 cp "$am_depcomp" conftest.dir
4318 cd conftest.dir
4319 # We will build objects and dependencies in a subdirectory because
4320 # it helps to detect inapplicable dependency modes. For instance
4321 # both Tru64's cc and ICC support -MD to output dependencies as a
4322 # side effect of compilation, but ICC will put the dependencies in
4323 # the current directory while Tru64 will put them in the object
4324 # directory.
4325 mkdir sub
4326
4327 am_cv_CC_dependencies_compiler_type=none
4328 if test "$am_compiler_list" = ""; then
4329 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4330 fi
4331 for depmode in $am_compiler_list; do
4332 if test $depmode = none; then break; fi
4333
4334 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4335 # Setup a source with many dependencies, because some compilers
4336 # like to wrap large dependency lists on column 80 (with \), and
4337 # we should not choose a depcomp mode which is confused by this.
4338 #
4339 # We need to recreate these files for each test, as the compiler may
4340 # overwrite some of them when testing with obscure command lines.
4341 # This happens at least with the AIX C compiler.
4342 : > sub/conftest.c
4343 for i in 1 2 3 4 5 6; do
4344 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4345 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4346 # Solaris 8's {/usr,}/bin/sh.
4347 touch sub/conftst$i.h
4348 done
4349 echo "include sub/conftest.Po" > confmf
4350
4351 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4352 # mode. It turns out that the SunPro C++ compiler does not properly
4353 # handle `-M -o', and we need to detect this.
4354 depcmd="depmode=$depmode \
4355 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4356 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4357 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4358 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4359 if env $depcmd > conftest.err 2>&1 &&
4360 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4361 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4362 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4363 # icc doesn't choke on unknown options, it will just issue warnings
4364 # or remarks (even with -Werror). So we grep stderr for any message
4365 # that says an option was ignored or not supported.
4366 # When given -MP, icc 7.0 and 7.1 complain thusly:
4367 # icc: Command line warning: ignoring option '-M'; no argument required
4368 # The diagnosis changed in icc 8.0:
4369 # icc: Command line remark: option '-MP' not supported
4370 if (grep 'ignoring option' conftest.err ||
4371 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4372 am_cv_CC_dependencies_compiler_type=$depmode
4373 $as_echo "$as_me:$LINENO: success" >&5
4374 break
4375 fi
4376 fi
4377 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4378 sed -e 's/^/| /' < conftest.err >&5
4379 done
4380
4381 cd ..
4382 rm -rf conftest.dir
4383 else
4384 am_cv_CC_dependencies_compiler_type=none
4385 fi
4386
4387 fi
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4389 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4390 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4391 then as_fn_error "no usable dependency style found" "$LINENO" 5
4392 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4393
4394 fi
4395
4396 else
4397 depcc="$CXX" am_compiler_list=
4398
4399 am_depcomp=$ac_aux_dir/depcomp
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4401 $as_echo_n "checking dependency style of $depcc... " >&6; }
4402 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 if test -f "$am_depcomp"; then
4406 # We make a subdir and do the tests there. Otherwise we can end up
4407 # making bogus files that we don't know about and never remove. For
4408 # instance it was reported that on HP-UX the gcc test will end up
4409 # making a dummy file named `D' -- because `-MD' means `put the output
4410 # in D'.
4411 mkdir conftest.dir
4412 # Copy depcomp to subdir because otherwise we won't find it if we're
4413 # using a relative directory.
4414 cp "$am_depcomp" conftest.dir
4415 cd conftest.dir
4416 # We will build objects and dependencies in a subdirectory because
4417 # it helps to detect inapplicable dependency modes. For instance
4418 # both Tru64's cc and ICC support -MD to output dependencies as a
4419 # side effect of compilation, but ICC will put the dependencies in
4420 # the current directory while Tru64 will put them in the object
4421 # directory.
4422 mkdir sub
4423
4424 am_cv_CXX_dependencies_compiler_type=none
4425 if test "$am_compiler_list" = ""; then
4426 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4427 fi
4428 for depmode in $am_compiler_list; do
4429 if test $depmode = none; then break; fi
4430
4431 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4432 # Setup a source with many dependencies, because some compilers
4433 # like to wrap large dependency lists on column 80 (with \), and
4434 # we should not choose a depcomp mode which is confused by this.
4435 #
4436 # We need to recreate these files for each test, as the compiler may
4437 # overwrite some of them when testing with obscure command lines.
4438 # This happens at least with the AIX C compiler.
4439 : > sub/conftest.c
4440 for i in 1 2 3 4 5 6; do
4441 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4442 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4443 # Solaris 8's {/usr,}/bin/sh.
4444 touch sub/conftst$i.h
4445 done
4446 echo "include sub/conftest.Po" > confmf
4447
4448 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4449 # mode. It turns out that the SunPro C++ compiler does not properly
4450 # handle `-M -o', and we need to detect this.
4451 depcmd="depmode=$depmode \
4452 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4453 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4454 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4455 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4456 if env $depcmd > conftest.err 2>&1 &&
4457 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4458 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4459 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4460 # icc doesn't choke on unknown options, it will just issue warnings
4461 # or remarks (even with -Werror). So we grep stderr for any message
4462 # that says an option was ignored or not supported.
4463 # When given -MP, icc 7.0 and 7.1 complain thusly:
4464 # icc: Command line warning: ignoring option '-M'; no argument required
4465 # The diagnosis changed in icc 8.0:
4466 # icc: Command line remark: option '-MP' not supported
4467 if (grep 'ignoring option' conftest.err ||
4468 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4469 am_cv_CXX_dependencies_compiler_type=$depmode
4470 $as_echo "$as_me:$LINENO: success" >&5
4471 break
4472 fi
4473 fi
4474 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4475 sed -e 's/^/| /' < conftest.err >&5
4476 done
4477
4478 cd ..
4479 rm -rf conftest.dir
4480 else
4481 am_cv_CXX_dependencies_compiler_type=none
4482 fi
4483
4484 fi
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4486 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4487 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
4488 then as_fn_error "no usable dependency style found" "$LINENO" 5
4489 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4490
4491 fi
4492
4493 fi
4494
4495 # Checks for header files.
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4497 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4498 if test "${ac_cv_header_time+set}" = set; then :
4499 $as_echo_n "(cached) " >&6
4500 else
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4503 #include <sys/types.h>
4504 #include <sys/time.h>
4505 #include <time.h>
4506
4507 int
4508 main ()
4509 {
4510 if ((struct tm *) 0)
4511 return 0;
4512 ;
4513 return 0;
4514 }
4515 _ACEOF
4516 if ac_fn_c_try_compile "$LINENO"; then :
4517 ac_cv_header_time=yes
4518 else
4519 ac_cv_header_time=no
4520 fi
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522 fi
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4524 $as_echo "$ac_cv_header_time" >&6; }
4525 if test $ac_cv_header_time = yes; then
4526
4527 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4528
4529 fi
4530
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
4532 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
4533 if test "${gcc_cv_header_string+set}" = set; then :
4534 $as_echo_n "(cached) " >&6
4535 else
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4538 #include <string.h>
4539 #include <strings.h>
4540 int
4541 main ()
4542 {
4543
4544 ;
4545 return 0;
4546 }
4547 _ACEOF
4548 if ac_fn_c_try_compile "$LINENO"; then :
4549 gcc_cv_header_string=yes
4550 else
4551 gcc_cv_header_string=no
4552 fi
4553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4554 fi
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
4556 $as_echo "$gcc_cv_header_string" >&6; }
4557 if test $gcc_cv_header_string = yes; then
4558
4559 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
4560
4561 fi
4562
4563
4564 # AC_CHECK_HEADERS is repeated to work around apparent autoconf 2.59 bug. If
4565 # AC_CHECK_HEADERS comes after the if clause, the last AC_LANG call gets used,
4566 # no matter which branch is taken.
4567 if test "$ENABLE_BUILD_WITH_CXX" = "no"; then
4568 ac_ext=c
4569 ac_cpp='$CPP $CPPFLAGS'
4570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4573
4574 ac_ext=c
4575 ac_cpp='$CPP $CPPFLAGS' 3840 ac_cpp='$CPP $CPPFLAGS'
4576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4578 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4967 fi 4232 fi
4968 4233
4969 done 4234 done
4970 4235
4971 4236
4237
4238 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4239 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4240 MINIX=yes
4241 else
4242 MINIX=
4243 fi
4244
4245
4246 if test "$MINIX" = yes; then
4247
4248 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4249
4250
4251 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4252
4253
4254 $as_echo "#define _MINIX 1" >>confdefs.h
4255
4256 fi
4257
4258
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4260 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4261 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4266
4267 # define __EXTENSIONS__ 1
4268 $ac_includes_default
4269 int
4270 main ()
4271 {
4272
4273 ;
4274 return 0;
4275 }
4276 _ACEOF
4277 if ac_fn_c_try_compile "$LINENO"; then :
4278 ac_cv_safe_to_define___extensions__=yes
4279 else
4280 ac_cv_safe_to_define___extensions__=no
4281 fi
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4283 fi
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4285 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4286 test $ac_cv_safe_to_define___extensions__ = yes &&
4287 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4288
4289 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4290
4291 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4292
4293 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4294
4295 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4296
4297
4298 # Check whether --enable-largefile was given.
4299 if test "${enable_largefile+set}" = set; then :
4300 enableval=$enable_largefile;
4301 fi
4302
4303 if test "$enable_largefile" != no; then
4304
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4306 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4307 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 ac_cv_sys_largefile_CC=no
4311 if test "$GCC" != yes; then
4312 ac_save_CC=$CC
4313 while :; do
4314 # IRIX 6.2 and later do not support large files by default,
4315 # so use the C compiler's -n32 option if that helps.
4316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4317 /* end confdefs.h. */
4318 #include <sys/types.h>
4319 /* Check that off_t can represent 2**63 - 1 correctly.
4320 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4321 since some C++ compilers masquerading as C compilers
4322 incorrectly reject 9223372036854775807. */
4323 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4324 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4325 && LARGE_OFF_T % 2147483647 == 1)
4326 ? 1 : -1];
4327 int
4328 main ()
4329 {
4330
4331 ;
4332 return 0;
4333 }
4334 _ACEOF
4335 if ac_fn_c_try_compile "$LINENO"; then :
4336 break
4337 fi
4338 rm -f core conftest.err conftest.$ac_objext
4339 CC="$CC -n32"
4340 if ac_fn_c_try_compile "$LINENO"; then :
4341 ac_cv_sys_largefile_CC=' -n32'; break
4342 fi
4343 rm -f core conftest.err conftest.$ac_objext
4344 break
4345 done
4346 CC=$ac_save_CC
4347 rm -f conftest.$ac_ext
4348 fi
4349 fi
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4351 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4352 if test "$ac_cv_sys_largefile_CC" != no; then
4353 CC=$CC$ac_cv_sys_largefile_CC
4354 fi
4355
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4357 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4358 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361 while :; do
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4364 #include <sys/types.h>
4365 /* Check that off_t can represent 2**63 - 1 correctly.
4366 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4367 since some C++ compilers masquerading as C compilers
4368 incorrectly reject 9223372036854775807. */
4369 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4370 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4371 && LARGE_OFF_T % 2147483647 == 1)
4372 ? 1 : -1];
4373 int
4374 main ()
4375 {
4376
4377 ;
4378 return 0;
4379 }
4380 _ACEOF
4381 if ac_fn_c_try_compile "$LINENO"; then :
4382 ac_cv_sys_file_offset_bits=no; break
4383 fi
4384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4387 #define _FILE_OFFSET_BITS 64
4388 #include <sys/types.h>
4389 /* Check that off_t can represent 2**63 - 1 correctly.
4390 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4391 since some C++ compilers masquerading as C compilers
4392 incorrectly reject 9223372036854775807. */
4393 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4394 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4395 && LARGE_OFF_T % 2147483647 == 1)
4396 ? 1 : -1];
4397 int
4398 main ()
4399 {
4400
4401 ;
4402 return 0;
4403 }
4404 _ACEOF
4405 if ac_fn_c_try_compile "$LINENO"; then :
4406 ac_cv_sys_file_offset_bits=64; break
4407 fi
4408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409 ac_cv_sys_file_offset_bits=unknown
4410 break
4411 done
4412 fi
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4414 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4415 case $ac_cv_sys_file_offset_bits in #(
4416 no | unknown) ;;
4417 *)
4418 cat >>confdefs.h <<_ACEOF
4419 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4420 _ACEOF
4421 ;;
4422 esac
4423 rm -rf conftest*
4424 if test $ac_cv_sys_file_offset_bits = unknown; then
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4426 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4427 if test "${ac_cv_sys_large_files+set}" = set; then :
4428 $as_echo_n "(cached) " >&6
4429 else
4430 while :; do
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4433 #include <sys/types.h>
4434 /* Check that off_t can represent 2**63 - 1 correctly.
4435 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4436 since some C++ compilers masquerading as C compilers
4437 incorrectly reject 9223372036854775807. */
4438 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4439 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4440 && LARGE_OFF_T % 2147483647 == 1)
4441 ? 1 : -1];
4442 int
4443 main ()
4444 {
4445
4446 ;
4447 return 0;
4448 }
4449 _ACEOF
4450 if ac_fn_c_try_compile "$LINENO"; then :
4451 ac_cv_sys_large_files=no; break
4452 fi
4453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4456 #define _LARGE_FILES 1
4457 #include <sys/types.h>
4458 /* Check that off_t can represent 2**63 - 1 correctly.
4459 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4460 since some C++ compilers masquerading as C compilers
4461 incorrectly reject 9223372036854775807. */
4462 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4463 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4464 && LARGE_OFF_T % 2147483647 == 1)
4465 ? 1 : -1];
4466 int
4467 main ()
4468 {
4469
4470 ;
4471 return 0;
4472 }
4473 _ACEOF
4474 if ac_fn_c_try_compile "$LINENO"; then :
4475 ac_cv_sys_large_files=1; break
4476 fi
4477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4478 ac_cv_sys_large_files=unknown
4479 break
4480 done
4481 fi
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4483 $as_echo "$ac_cv_sys_large_files" >&6; }
4484 case $ac_cv_sys_large_files in #(
4485 no | unknown) ;;
4486 *)
4487 cat >>confdefs.h <<_ACEOF
4488 #define _LARGE_FILES $ac_cv_sys_large_files
4489 _ACEOF
4490 ;;
4491 esac
4492 rm -rf conftest*
4493 fi
4494 fi
4495
4496
4497 # See if we are building gcc with C++.
4498 # Do this early so setting lang to C++ affects following tests
4499 # Check whether --enable-build-with-cxx was given.
4500 if test "${enable_build_with_cxx+set}" = set; then :
4501 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
4502 else
4503 ENABLE_BUILD_WITH_CXX=no
4504 fi
4505
4506
4507
4508 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
4509 for ac_prog in aclocal
4510 do
4511 # Extract the first word of "$ac_prog", so it can be a program name with args.
4512 set dummy $ac_prog; ac_word=$2
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514 $as_echo_n "checking for $ac_word... " >&6; }
4515 if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 if test -n "$ACLOCAL"; then
4519 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
4520 else
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4528 ac_cv_prog_ACLOCAL="$ac_prog"
4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
4531 fi
4532 done
4533 done
4534 IFS=$as_save_IFS
4535
4536 fi
4537 fi
4538 ACLOCAL=$ac_cv_prog_ACLOCAL
4539 if test -n "$ACLOCAL"; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
4541 $as_echo "$ACLOCAL" >&6; }
4542 else
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4545 fi
4546
4547
4548 test -n "$ACLOCAL" && break
4549 done
4550 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
4551
4552 for ac_prog in autoconf
4553 do
4554 # Extract the first word of "$ac_prog", so it can be a program name with args.
4555 set dummy $ac_prog; ac_word=$2
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557 $as_echo_n "checking for $ac_word... " >&6; }
4558 if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 if test -n "$AUTOCONF"; then
4562 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4563 else
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4566 do
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4571 ac_cv_prog_AUTOCONF="$ac_prog"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 break 2
4574 fi
4575 done
4576 done
4577 IFS=$as_save_IFS
4578
4579 fi
4580 fi
4581 AUTOCONF=$ac_cv_prog_AUTOCONF
4582 if test -n "$AUTOCONF"; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4584 $as_echo "$AUTOCONF" >&6; }
4585 else
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 $as_echo "no" >&6; }
4588 fi
4589
4590
4591 test -n "$AUTOCONF" && break
4592 done
4593 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
4594
4595 for ac_prog in autoheader
4596 do
4597 # Extract the first word of "$ac_prog", so it can be a program name with args.
4598 set dummy $ac_prog; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if test -n "$AUTOHEADER"; then
4605 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
4606 else
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4609 do
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4614 ac_cv_prog_AUTOHEADER="$ac_prog"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4617 fi
4618 done
4619 done
4620 IFS=$as_save_IFS
4621
4622 fi
4623 fi
4624 AUTOHEADER=$ac_cv_prog_AUTOHEADER
4625 if test -n "$AUTOHEADER"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
4627 $as_echo "$AUTOHEADER" >&6; }
4628 else
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4631 fi
4632
4633
4634 test -n "$AUTOHEADER" && break
4635 done
4636 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
4637
4638
4639 # Figure out what compiler warnings we can enable.
4640 # See config/warnings.m4 for details.
4641
4642 warn=
4643 save_CFLAGS="$CFLAGS"
4644 for option in -W -Wall -Wwrite-strings \
4645 -Wmissing-format-attribute; do
4646 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4647
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4649 $as_echo_n "checking whether $CC supports $option... " >&6; }
4650 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 CFLAGS="$option"
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4656
4657 int
4658 main ()
4659 {
4660
4661 ;
4662 return 0;
4663 }
4664 _ACEOF
4665 if ac_fn_c_try_compile "$LINENO"; then :
4666 eval "$as_acx_Woption=yes"
4667 else
4668 eval "$as_acx_Woption=no"
4669 fi
4670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671
4672 fi
4673 eval ac_res=\$$as_acx_Woption
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4675 $as_echo "$ac_res" >&6; }
4676 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4677 warn="$warn${warn:+ }$option"
4678 fi
4679 done
4680 CFLAGS="$save_CFLAGS"
4681
4682 c_warn=
4683 save_CFLAGS="$CFLAGS"
4684 for option in -Wstrict-prototypes -Wmissing-prototypes \
4685 -Wold-style-definition -Wc++-compat; do
4686 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4687
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4689 $as_echo_n "checking whether $CC supports $option... " >&6; }
4690 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 CFLAGS="$option"
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h. */
4696
4697 int
4698 main ()
4699 {
4700
4701 ;
4702 return 0;
4703 }
4704 _ACEOF
4705 if ac_fn_c_try_compile "$LINENO"; then :
4706 eval "$as_acx_Woption=yes"
4707 else
4708 eval "$as_acx_Woption=no"
4709 fi
4710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711
4712 fi
4713 eval ac_res=\$$as_acx_Woption
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4715 $as_echo "$ac_res" >&6; }
4716 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4717 c_warn="$c_warn${c_warn:+ }$option"
4718 fi
4719 done
4720 CFLAGS="$save_CFLAGS"
4721
4722 WARN_PEDANTIC=
4723 if test "$GCC" = yes; then :
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long" >&5
4725 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long... " >&6; }
4726 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 save_CFLAGS="$CFLAGS"
4730 CFLAGS="-pedantic -Wno-long-long"
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4733
4734 int
4735 main ()
4736 {
4737
4738 ;
4739 return 0;
4740 }
4741 _ACEOF
4742 if ac_fn_c_try_compile "$LINENO"; then :
4743 acx_cv_prog_cc_pedantic__Wno_long_long=yes
4744 else
4745 acx_cv_prog_cc_pedantic__Wno_long_long=no
4746 fi
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 CFLAGS="$save_CFLAGS"
4749 fi
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
4751 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long" >&6; }
4752 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then :
4753 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
4754 fi
4755
4756 fi
4757
4758
4759 # Only enable with --enable-werror-always until existing warnings are
4760 # corrected.
4761 WERROR=
4762 # Check whether --enable-werror-always was given.
4763 if test "${enable_werror_always+set}" = set; then :
4764 enableval=$enable_werror_always;
4765 else
4766 enable_werror_always=no
4767 fi
4768
4769 if test $enable_werror_always = yes; then :
4770 WERROR="$WERROR${WERROR:+ }-Werror"
4771 fi
4772
4773
4774
4775 # Dependency checking.
4776 rm -rf .tst 2>/dev/null
4777 mkdir .tst 2>/dev/null
4778 if test -d .tst; then
4779 am__leading_dot=.
4780 else
4781 am__leading_dot=_
4782 fi
4783 rmdir .tst 2>/dev/null
4784
4785 DEPDIR="${am__leading_dot}deps"
4786
4787 ac_config_commands="$ac_config_commands depdir"
4788
4789
4790 if test "$ENABLE_BUILD_WITH_CXX" = "no"; then
4791 depcc="$CC" am_compiler_list=
4792
4793 am_depcomp=$ac_aux_dir/depcomp
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4795 $as_echo_n "checking dependency style of $depcc... " >&6; }
4796 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4797 $as_echo_n "(cached) " >&6
4798 else
4799 if test -f "$am_depcomp"; then
4800 # We make a subdir and do the tests there. Otherwise we can end up
4801 # making bogus files that we don't know about and never remove. For
4802 # instance it was reported that on HP-UX the gcc test will end up
4803 # making a dummy file named `D' -- because `-MD' means `put the output
4804 # in D'.
4805 mkdir conftest.dir
4806 # Copy depcomp to subdir because otherwise we won't find it if we're
4807 # using a relative directory.
4808 cp "$am_depcomp" conftest.dir
4809 cd conftest.dir
4810 # We will build objects and dependencies in a subdirectory because
4811 # it helps to detect inapplicable dependency modes. For instance
4812 # both Tru64's cc and ICC support -MD to output dependencies as a
4813 # side effect of compilation, but ICC will put the dependencies in
4814 # the current directory while Tru64 will put them in the object
4815 # directory.
4816 mkdir sub
4817
4818 am_cv_CC_dependencies_compiler_type=none
4819 if test "$am_compiler_list" = ""; then
4820 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4821 fi
4822 for depmode in $am_compiler_list; do
4823 if test $depmode = none; then break; fi
4824
4825 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4826 # Setup a source with many dependencies, because some compilers
4827 # like to wrap large dependency lists on column 80 (with \), and
4828 # we should not choose a depcomp mode which is confused by this.
4829 #
4830 # We need to recreate these files for each test, as the compiler may
4831 # overwrite some of them when testing with obscure command lines.
4832 # This happens at least with the AIX C compiler.
4833 : > sub/conftest.c
4834 for i in 1 2 3 4 5 6; do
4835 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4836 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4837 # Solaris 8's {/usr,}/bin/sh.
4838 touch sub/conftst$i.h
4839 done
4840 echo "include sub/conftest.Po" > confmf
4841
4842 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4843 # mode. It turns out that the SunPro C++ compiler does not properly
4844 # handle `-M -o', and we need to detect this.
4845 depcmd="depmode=$depmode \
4846 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4847 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4848 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4849 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4850 if env $depcmd > conftest.err 2>&1 &&
4851 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4852 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4853 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4854 # icc doesn't choke on unknown options, it will just issue warnings
4855 # or remarks (even with -Werror). So we grep stderr for any message
4856 # that says an option was ignored or not supported.
4857 # When given -MP, icc 7.0 and 7.1 complain thusly:
4858 # icc: Command line warning: ignoring option '-M'; no argument required
4859 # The diagnosis changed in icc 8.0:
4860 # icc: Command line remark: option '-MP' not supported
4861 if (grep 'ignoring option' conftest.err ||
4862 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4863 am_cv_CC_dependencies_compiler_type=$depmode
4864 $as_echo "$as_me:$LINENO: success" >&5
4865 break
4866 fi
4867 fi
4868 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4869 sed -e 's/^/| /' < conftest.err >&5
4870 done
4871
4872 cd ..
4873 rm -rf conftest.dir
4874 else
4875 am_cv_CC_dependencies_compiler_type=none
4876 fi
4877
4878 fi
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4880 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4881 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4882 then as_fn_error "no usable dependency style found" "$LINENO" 5
4883 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4884
4885 fi
4886
4887 else
4888 ac_ext=cpp
4889 ac_cpp='$CXXCPP $CPPFLAGS'
4890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4893
4894
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4897 int i;
4898 _ACEOF
4899 if ac_fn_cxx_try_compile "$LINENO"; then :
4900
4901 else
4902 as_fn_error "C++ compiler missing or inoperational" "$LINENO" 5
4903 fi
4904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905 ac_ext=c
4906 ac_cpp='$CPP $CPPFLAGS'
4907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4910
4911 depcc="$CXX" am_compiler_list=
4912
4913 am_depcomp=$ac_aux_dir/depcomp
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4915 $as_echo_n "checking dependency style of $depcc... " >&6; }
4916 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 if test -f "$am_depcomp"; then
4920 # We make a subdir and do the tests there. Otherwise we can end up
4921 # making bogus files that we don't know about and never remove. For
4922 # instance it was reported that on HP-UX the gcc test will end up
4923 # making a dummy file named `D' -- because `-MD' means `put the output
4924 # in D'.
4925 mkdir conftest.dir
4926 # Copy depcomp to subdir because otherwise we won't find it if we're
4927 # using a relative directory.
4928 cp "$am_depcomp" conftest.dir
4929 cd conftest.dir
4930 # We will build objects and dependencies in a subdirectory because
4931 # it helps to detect inapplicable dependency modes. For instance
4932 # both Tru64's cc and ICC support -MD to output dependencies as a
4933 # side effect of compilation, but ICC will put the dependencies in
4934 # the current directory while Tru64 will put them in the object
4935 # directory.
4936 mkdir sub
4937
4938 am_cv_CXX_dependencies_compiler_type=none
4939 if test "$am_compiler_list" = ""; then
4940 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4941 fi
4942 for depmode in $am_compiler_list; do
4943 if test $depmode = none; then break; fi
4944
4945 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4946 # Setup a source with many dependencies, because some compilers
4947 # like to wrap large dependency lists on column 80 (with \), and
4948 # we should not choose a depcomp mode which is confused by this.
4949 #
4950 # We need to recreate these files for each test, as the compiler may
4951 # overwrite some of them when testing with obscure command lines.
4952 # This happens at least with the AIX C compiler.
4953 : > sub/conftest.c
4954 for i in 1 2 3 4 5 6; do
4955 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4956 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4957 # Solaris 8's {/usr,}/bin/sh.
4958 touch sub/conftst$i.h
4959 done
4960 echo "include sub/conftest.Po" > confmf
4961
4962 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4963 # mode. It turns out that the SunPro C++ compiler does not properly
4964 # handle `-M -o', and we need to detect this.
4965 depcmd="depmode=$depmode \
4966 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4967 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4968 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4969 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4970 if env $depcmd > conftest.err 2>&1 &&
4971 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4972 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4973 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4974 # icc doesn't choke on unknown options, it will just issue warnings
4975 # or remarks (even with -Werror). So we grep stderr for any message
4976 # that says an option was ignored or not supported.
4977 # When given -MP, icc 7.0 and 7.1 complain thusly:
4978 # icc: Command line warning: ignoring option '-M'; no argument required
4979 # The diagnosis changed in icc 8.0:
4980 # icc: Command line remark: option '-MP' not supported
4981 if (grep 'ignoring option' conftest.err ||
4982 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4983 am_cv_CXX_dependencies_compiler_type=$depmode
4984 $as_echo "$as_me:$LINENO: success" >&5
4985 break
4986 fi
4987 fi
4988 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4989 sed -e 's/^/| /' < conftest.err >&5
4990 done
4991
4992 cd ..
4993 rm -rf conftest.dir
4994 else
4995 am_cv_CXX_dependencies_compiler_type=none
4996 fi
4997
4998 fi
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5000 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5001 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
5002 then as_fn_error "no usable dependency style found" "$LINENO" 5
5003 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5004
5005 fi
5006
5007 fi
5008
5009 # Checks for header files.
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5011 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5012 if test "${ac_cv_header_time+set}" = set; then :
5013 $as_echo_n "(cached) " >&6
5014 else
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5017 #include <sys/types.h>
5018 #include <sys/time.h>
5019 #include <time.h>
5020
5021 int
5022 main ()
5023 {
5024 if ((struct tm *) 0)
5025 return 0;
5026 ;
5027 return 0;
5028 }
5029 _ACEOF
5030 if ac_fn_c_try_compile "$LINENO"; then :
5031 ac_cv_header_time=yes
5032 else
5033 ac_cv_header_time=no
5034 fi
5035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5036 fi
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5038 $as_echo "$ac_cv_header_time" >&6; }
5039 if test $ac_cv_header_time = yes; then
5040
5041 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5042
5043 fi
5044
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
5046 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
5047 if test "${gcc_cv_header_string+set}" = set; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5052 #include <string.h>
5053 #include <strings.h>
5054 int
5055 main ()
5056 {
5057
5058 ;
5059 return 0;
5060 }
5061 _ACEOF
5062 if ac_fn_c_try_compile "$LINENO"; then :
5063 gcc_cv_header_string=yes
5064 else
5065 gcc_cv_header_string=no
5066 fi
5067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068 fi
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
5070 $as_echo "$gcc_cv_header_string" >&6; }
5071 if test $gcc_cv_header_string = yes; then
5072
5073 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
5074
5075 fi
5076
5077
4972 for ac_header in locale.h fcntl.h limits.h stddef.h \ 5078 for ac_header in locale.h fcntl.h limits.h stddef.h \
4973 stdlib.h strings.h string.h sys/file.h unistd.h 5079 stdlib.h strings.h string.h sys/file.h unistd.h
4974 do : 5080 do :
4975 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5081 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4976 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5082 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4982 5088
4983 fi 5089 fi
4984 5090
4985 done 5091 done
4986 5092
4987 else 5093
4988 ac_ext=cpp 5094 # Checks for typedefs, structures, and compiler characteristics.
4989 ac_cpp='$CXXCPP $CPPFLAGS' 5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5096 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5097 if test "${ac_cv_c_bigendian+set}" = set; then :
4992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4993
4994
4995 ac_ext=cpp
4996 ac_cpp='$CXXCPP $CPPFLAGS'
4997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5001 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5002 if test -z "$CXXCPP"; then
5003 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5004 $as_echo_n "(cached) " >&6 5098 $as_echo_n "(cached) " >&6
5005 else 5099 else
5006 # Double quotes because CXXCPP needs to be expanded 5100 ac_cv_c_bigendian=unknown
5007 for CXXCPP in "$CXX -E" "/lib/cpp" 5101 # See if we're dealing with a universal compiler.
5008 do 5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 ac_preproc_ok=false 5103 /* end confdefs.h. */
5010 for ac_cxx_preproc_warn_flag in '' yes 5104 #ifndef __APPLE_CC__
5011 do 5105 not a universal capable compiler
5012 # Use a header file that comes with gcc, so configuring glibc 5106 #endif
5013 # with a fresh cross-compiler works. 5107 typedef int dummy;
5014 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5108
5015 # <limits.h> exists even on freestanding compilers. 5109 _ACEOF
5016 # On the NeXT, cc -E runs the code through the compiler's parser, 5110 if ac_fn_c_try_compile "$LINENO"; then :
5017 # not just through cpp. "Syntax error" is here to catch this case. 5111
5112 # Check for potential -arch flags. It is not universal unless
5113 # there are at least two -arch flags with different values.
5114 ac_arch=
5115 ac_prev=
5116 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5117 if test -n "$ac_prev"; then
5118 case $ac_word in
5119 i?86 | x86_64 | ppc | ppc64)
5120 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5121 ac_arch=$ac_word
5122 else
5123 ac_cv_c_bigendian=universal
5124 break
5125 fi
5126 ;;
5127 esac
5128 ac_prev=
5129 elif test "x$ac_word" = "x-arch"; then
5130 ac_prev=arch
5131 fi
5132 done
5133 fi
5134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5135 if test $ac_cv_c_bigendian = unknown; then
5136 # See if sys/param.h defines the BYTE_ORDER macro.
5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5139 #include <sys/types.h>
5140 #include <sys/param.h>
5141
5142 int
5143 main ()
5144 {
5145 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5146 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5147 && LITTLE_ENDIAN)
5148 bogus endian macros
5149 #endif
5150
5151 ;
5152 return 0;
5153 }
5154 _ACEOF
5155 if ac_fn_c_try_compile "$LINENO"; then :
5156 # It does; now see whether it defined to BIG_ENDIAN or not.
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5159 #include <sys/types.h>
5160 #include <sys/param.h>
5161
5162 int
5163 main ()
5164 {
5165 #if BYTE_ORDER != BIG_ENDIAN
5166 not big endian
5167 #endif
5168
5169 ;
5170 return 0;
5171 }
5172 _ACEOF
5173 if ac_fn_c_try_compile "$LINENO"; then :
5174 ac_cv_c_bigendian=yes
5175 else
5176 ac_cv_c_bigendian=no
5177 fi
5178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179 fi
5180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5181 fi
5182 if test $ac_cv_c_bigendian = unknown; then
5183 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5186 #include <limits.h>
5187
5188 int
5189 main ()
5190 {
5191 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5192 bogus endian macros
5193 #endif
5194
5195 ;
5196 return 0;
5197 }
5198 _ACEOF
5199 if ac_fn_c_try_compile "$LINENO"; then :
5200 # It does; now see whether it defined to _BIG_ENDIAN or not.
5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5203 #include <limits.h>
5204
5205 int
5206 main ()
5207 {
5208 #ifndef _BIG_ENDIAN
5209 not big endian
5210 #endif
5211
5212 ;
5213 return 0;
5214 }
5215 _ACEOF
5216 if ac_fn_c_try_compile "$LINENO"; then :
5217 ac_cv_c_bigendian=yes
5218 else
5219 ac_cv_c_bigendian=no
5220 fi
5221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222 fi
5223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5224 fi
5225 if test $ac_cv_c_bigendian = unknown; then
5226 # Compile a test program.
5227 if test "$cross_compiling" = yes; then :
5228 # Try to guess by grepping values from an object file.
5229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5230 /* end confdefs.h. */
5231 short int ascii_mm[] =
5232 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5233 short int ascii_ii[] =
5234 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5235 int use_ascii (int i) {
5236 return ascii_mm[i] + ascii_ii[i];
5237 }
5238 short int ebcdic_ii[] =
5239 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5240 short int ebcdic_mm[] =
5241 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5242 int use_ebcdic (int i) {
5243 return ebcdic_mm[i] + ebcdic_ii[i];
5244 }
5245 extern int foo;
5246
5247 int
5248 main ()
5249 {
5250 return use_ascii (foo) == use_ebcdic (foo);
5251 ;
5252 return 0;
5253 }
5254 _ACEOF
5255 if ac_fn_c_try_compile "$LINENO"; then :
5256 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5257 ac_cv_c_bigendian=yes
5258 fi
5259 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5260 if test "$ac_cv_c_bigendian" = unknown; then
5261 ac_cv_c_bigendian=no
5262 else
5263 # finding both strings is unlikely to happen, but who knows?
5264 ac_cv_c_bigendian=unknown
5265 fi
5266 fi
5267 fi
5268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5269 else
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */ 5271 /* end confdefs.h. */
5020 #ifdef __STDC__ 5272 $ac_includes_default
5021 # include <limits.h> 5273 int
5022 #else 5274 main ()
5023 # include <assert.h> 5275 {
5024 #endif 5276
5025 Syntax error 5277 /* Are we little or big endian? From Harbison&Steele. */
5026 _ACEOF 5278 union
5027 if ac_fn_cxx_try_cpp "$LINENO"; then : 5279 {
5028 5280 long int l;
5029 else 5281 char c[sizeof (long int)];
5030 # Broken: fails on valid input. 5282 } u;
5031 continue 5283 u.l = 1;
5032 fi 5284 return u.c[sizeof (long int) - 1] == 1;
5033 rm -f conftest.err conftest.$ac_ext 5285
5034 5286 ;
5035 # OK, works on sane cases. Now check whether nonexistent headers 5287 return 0;
5036 # can be detected and how. 5288 }
5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5289 _ACEOF
5038 /* end confdefs.h. */ 5290 if ac_fn_c_try_run "$LINENO"; then :
5039 #include <ac_nonexistent.h> 5291 ac_cv_c_bigendian=no
5040 _ACEOF 5292 else
5041 if ac_fn_cxx_try_cpp "$LINENO"; then : 5293 ac_cv_c_bigendian=yes
5042 # Broken: success on invalid input. 5294 fi
5043 continue 5295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5044 else 5296 conftest.$ac_objext conftest.beam conftest.$ac_ext
5045 # Passes both tests. 5297 fi
5046 ac_preproc_ok=: 5298
5047 break 5299 fi
5048 fi 5300 fi
5049 rm -f conftest.err conftest.$ac_ext 5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5050 5302 $as_echo "$ac_cv_c_bigendian" >&6; }
5051 done 5303 case $ac_cv_c_bigendian in #(
5052 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5304 yes)
5053 rm -f conftest.err conftest.$ac_ext 5305 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5054 if $ac_preproc_ok; then : 5306 ;; #(
5055 break 5307 no)
5056 fi 5308 ;; #(
5057 5309 universal)
5058 done 5310
5059 ac_cv_prog_CXXCPP=$CXXCPP 5311 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5060 5312
5061 fi 5313 ;; #(
5062 CXXCPP=$ac_cv_prog_CXXCPP 5314 *)
5063 else 5315 as_fn_error "unknown endianness
5064 ac_cv_prog_CXXCPP=$CXXCPP 5316 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5065 fi 5317 esac
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 5318
5067 $as_echo "$CXXCPP" >&6; }
5068 ac_preproc_ok=false
5069 for ac_cxx_preproc_warn_flag in '' yes
5070 do
5071 # Use a header file that comes with gcc, so configuring glibc
5072 # with a fresh cross-compiler works.
5073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5074 # <limits.h> exists even on freestanding compilers.
5075 # On the NeXT, cc -E runs the code through the compiler's parser,
5076 # not just through cpp. "Syntax error" is here to catch this case.
5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h. */
5079 #ifdef __STDC__
5080 # include <limits.h>
5081 #else
5082 # include <assert.h>
5083 #endif
5084 Syntax error
5085 _ACEOF
5086 if ac_fn_cxx_try_cpp "$LINENO"; then :
5087
5088 else
5089 # Broken: fails on valid input.
5090 continue
5091 fi
5092 rm -f conftest.err conftest.$ac_ext
5093
5094 # OK, works on sane cases. Now check whether nonexistent headers
5095 # can be detected and how.
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5098 #include <ac_nonexistent.h>
5099 _ACEOF
5100 if ac_fn_cxx_try_cpp "$LINENO"; then :
5101 # Broken: success on invalid input.
5102 continue
5103 else
5104 # Passes both tests.
5105 ac_preproc_ok=:
5106 break
5107 fi
5108 rm -f conftest.err conftest.$ac_ext
5109
5110 done
5111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5112 rm -f conftest.err conftest.$ac_ext
5113 if $ac_preproc_ok; then :
5114
5115 else
5116 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5118 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5119 See \`config.log' for more details." "$LINENO" 5; }
5120 fi
5121
5122 ac_ext=cpp
5123 ac_cpp='$CXXCPP $CPPFLAGS'
5124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5127
5128
5129 for ac_header in locale.h fcntl.h limits.h stddef.h \
5130 stdlib.h strings.h string.h sys/stat.h sys/file.h unistd.h
5131 do :
5132 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5133 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5134 eval as_val=\$$as_ac_Header
5135 if test "x$as_val" = x""yes; then :
5136 cat >>confdefs.h <<_ACEOF
5137 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5138 _ACEOF
5139
5140 fi
5141
5142 done
5143
5144 fi
5145
5146 # Checks for typedefs, structures, and compiler characteristics.
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5148 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } 5320 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5149 if test "${ac_cv_c_const+set}" = set; then : 5321 if test "${ac_cv_c_const+set}" = set; then :
5150 $as_echo_n "(cached) " >&6 5322 $as_echo_n "(cached) " >&6
5151 else 5323 else
5207 5379
5208 ; 5380 ;
5209 return 0; 5381 return 0;
5210 } 5382 }
5211 _ACEOF 5383 _ACEOF
5212 if ac_fn_cxx_try_compile "$LINENO"; then : 5384 if ac_fn_c_try_compile "$LINENO"; then :
5213 ac_cv_c_const=yes 5385 ac_cv_c_const=yes
5214 else 5386 else
5215 ac_cv_c_const=no 5387 ac_cv_c_const=no
5216 fi 5388 fi
5217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5238 static $ac_kw foo_t static_foo () {return 0; } 5410 static $ac_kw foo_t static_foo () {return 0; }
5239 $ac_kw foo_t foo () {return 0; } 5411 $ac_kw foo_t foo () {return 0; }
5240 #endif 5412 #endif
5241 5413
5242 _ACEOF 5414 _ACEOF
5243 if ac_fn_cxx_try_compile "$LINENO"; then : 5415 if ac_fn_c_try_compile "$LINENO"; then :
5244 ac_cv_c_inline=$ac_kw 5416 ac_cv_c_inline=$ac_kw
5245 fi 5417 fi
5246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5247 test "$ac_cv_c_inline" != no && break 5419 test "$ac_cv_c_inline" != no && break
5248 done 5420 done
5285 obstack_free (&mem, 0); 5457 obstack_free (&mem, 0);
5286 ; 5458 ;
5287 return 0; 5459 return 0;
5288 } 5460 }
5289 _ACEOF 5461 _ACEOF
5290 if ac_fn_cxx_try_link "$LINENO"; then : 5462 if ac_fn_c_try_link "$LINENO"; then :
5291 ac_cv_func_obstack=yes 5463 ac_cv_func_obstack=yes
5292 else 5464 else
5293 ac_cv_func_obstack=no 5465 ac_cv_func_obstack=no
5294 fi 5466 fi
5295 rm -f core conftest.err conftest.$ac_objext \ 5467 rm -f core conftest.err conftest.$ac_objext \
5308 ;; 5480 ;;
5309 esac 5481 esac
5310 5482
5311 fi 5483 fi
5312 5484
5313 ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 5485 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5314 if test "x$ac_cv_type_off_t" = x""yes; then : 5486 if test "x$ac_cv_type_off_t" = x""yes; then :
5315 5487
5316 else 5488 else
5317 5489
5318 cat >>confdefs.h <<_ACEOF 5490 cat >>confdefs.h <<_ACEOF
5319 #define off_t long int 5491 #define off_t long int
5320 _ACEOF 5492 _ACEOF
5321 5493
5322 fi 5494 fi
5323 5495
5324 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 5496 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5325 if test "x$ac_cv_type_size_t" = x""yes; then : 5497 if test "x$ac_cv_type_size_t" = x""yes; then :
5326 5498
5327 else 5499 else
5328 5500
5329 cat >>confdefs.h <<_ACEOF 5501 cat >>confdefs.h <<_ACEOF
5330 #define size_t unsigned int 5502 #define size_t unsigned int
5331 _ACEOF 5503 _ACEOF
5332 5504
5333 fi 5505 fi
5334 5506
5335 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 5507 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5336 if test "x$ac_cv_type_ssize_t" = x""yes; then : 5508 if test "x$ac_cv_type_ssize_t" = x""yes; then :
5337 5509
5338 else 5510 else
5339 5511
5340 cat >>confdefs.h <<_ACEOF 5512 cat >>confdefs.h <<_ACEOF
5341 #define ssize_t int 5513 #define ssize_t int
5514 _ACEOF
5515
5516 fi
5517
5518
5519 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5520 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
5521
5522 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5523
5524 else
5525 for ac_type in 'unsigned int' 'unsigned long int' \
5526 'unsigned long long int'; do
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5529 $ac_includes_default
5530 int
5531 main ()
5532 {
5533 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5534 test_array [0] = 0
5535
5536 ;
5537 return 0;
5538 }
5539 _ACEOF
5540 if ac_fn_c_try_compile "$LINENO"; then :
5541
5542 cat >>confdefs.h <<_ACEOF
5543 #define uintptr_t $ac_type
5544 _ACEOF
5545
5546 ac_type=
5547 fi
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549 test -z "$ac_type" && break
5550 done
5551 fi
5552
5553
5554 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
5555 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
5556
5557 else
5558
5559 cat >>confdefs.h <<_ACEOF
5560 #define ptrdiff_t int
5342 _ACEOF 5561 _ACEOF
5343 5562
5344 fi 5563 fi
5345 5564
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5361 return !p; 5580 return !p;
5362 ; 5581 ;
5363 return 0; 5582 return 0;
5364 } 5583 }
5365 _ACEOF 5584 _ACEOF
5366 if ac_fn_cxx_try_compile "$LINENO"; then : 5585 if ac_fn_c_try_compile "$LINENO"; then :
5367 ac_cv_struct_tm=time.h 5586 ac_cv_struct_tm=time.h
5368 else 5587 else
5369 ac_cv_struct_tm=sys/time.h 5588 ac_cv_struct_tm=sys/time.h
5370 fi 5589 fi
5371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5386 $as_echo_n "checking size of int... " >&6; } 5605 $as_echo_n "checking size of int... " >&6; }
5387 if test "${ac_cv_sizeof_int+set}" = set; then : 5606 if test "${ac_cv_sizeof_int+set}" = set; then :
5388 $as_echo_n "(cached) " >&6 5607 $as_echo_n "(cached) " >&6
5389 else 5608 else
5390 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 5609 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5391 5610
5392 else 5611 else
5393 if test "$ac_cv_type_int" = yes; then 5612 if test "$ac_cv_type_int" = yes; then
5394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5420 $as_echo_n "checking size of long... " >&6; } 5639 $as_echo_n "checking size of long... " >&6; }
5421 if test "${ac_cv_sizeof_long+set}" = set; then : 5640 if test "${ac_cv_sizeof_long+set}" = set; then :
5422 $as_echo_n "(cached) " >&6 5641 $as_echo_n "(cached) " >&6
5423 else 5642 else
5424 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 5643 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5425 5644
5426 else 5645 else
5427 if test "$ac_cv_type_long" = yes; then 5646 if test "$ac_cv_type_long" = yes; then
5428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5448 5667
5449 5668
5450 for ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked 5669 for ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
5451 do : 5670 do :
5452 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5671 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5453 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 5672 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5454 eval as_val=\$$as_ac_var 5673 eval as_val=\$$as_ac_var
5455 if test "x$as_val" = x""yes; then : 5674 if test "x$as_val" = x""yes; then :
5456 cat >>confdefs.h <<_ACEOF 5675 cat >>confdefs.h <<_ACEOF
5457 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5676 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5458 _ACEOF 5677 _ACEOF
5459 5678
5460 fi 5679 fi
5461 done 5680 done
5462 5681
5463 ac_fn_cxx_check_decl "$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default" 5682 ac_fn_c_check_decl "$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default"
5464 if test "x$ac_cv_have_decl_abort" = x""yes; then : 5683 if test "x$ac_cv_have_decl_abort" = x""yes; then :
5465 ac_have_decl=1 5684 ac_have_decl=1
5466 else 5685 else
5467 ac_have_decl=0 5686 ac_have_decl=0
5468 fi 5687 fi
5469 5688
5470 cat >>confdefs.h <<_ACEOF 5689 cat >>confdefs.h <<_ACEOF
5471 #define HAVE_DECL_ABORT $ac_have_decl 5690 #define HAVE_DECL_ABORT $ac_have_decl
5472 _ACEOF 5691 _ACEOF
5473 ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" 5692 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
5474 if test "x$ac_cv_have_decl_asprintf" = x""yes; then : 5693 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
5475 ac_have_decl=1 5694 ac_have_decl=1
5476 else 5695 else
5477 ac_have_decl=0 5696 ac_have_decl=0
5478 fi 5697 fi
5479 5698
5480 cat >>confdefs.h <<_ACEOF 5699 cat >>confdefs.h <<_ACEOF
5481 #define HAVE_DECL_ASPRINTF $ac_have_decl 5700 #define HAVE_DECL_ASPRINTF $ac_have_decl
5482 _ACEOF 5701 _ACEOF
5483 ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" 5702 ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
5484 if test "x$ac_cv_have_decl_basename" = x""yes; then : 5703 if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
5485 ac_have_decl=1 5704 ac_have_decl=1
5486 else 5705 else
5487 ac_have_decl=0 5706 ac_have_decl=0
5488 fi 5707 fi
5489 5708
5490 cat >>confdefs.h <<_ACEOF 5709 cat >>confdefs.h <<_ACEOF
5491 #define HAVE_DECL_BASENAME $ac_have_decl 5710 #define HAVE_DECL_BASENAME $ac_have_decl
5492 _ACEOF 5711 _ACEOF
5493 ac_fn_cxx_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default" 5712 ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default"
5494 if test "x$ac_cv_have_decl_errno" = x""yes; then : 5713 if test "x$ac_cv_have_decl_errno" = x""yes; then :
5495 ac_have_decl=1 5714 ac_have_decl=1
5496 else 5715 else
5497 ac_have_decl=0 5716 ac_have_decl=0
5498 fi 5717 fi
5499 5718
5500 cat >>confdefs.h <<_ACEOF 5719 cat >>confdefs.h <<_ACEOF
5501 #define HAVE_DECL_ERRNO $ac_have_decl 5720 #define HAVE_DECL_ERRNO $ac_have_decl
5502 _ACEOF 5721 _ACEOF
5503 ac_fn_cxx_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default" 5722 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
5504 if test "x$ac_cv_have_decl_getopt" = x""yes; then : 5723 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
5505 ac_have_decl=1 5724 ac_have_decl=1
5506 else 5725 else
5507 ac_have_decl=0 5726 ac_have_decl=0
5508 fi 5727 fi
5509 5728
5510 cat >>confdefs.h <<_ACEOF 5729 cat >>confdefs.h <<_ACEOF
5511 #define HAVE_DECL_GETOPT $ac_have_decl 5730 #define HAVE_DECL_GETOPT $ac_have_decl
5512 _ACEOF 5731 _ACEOF
5513 ac_fn_cxx_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default" 5732 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
5733 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
5734 ac_have_decl=1
5735 else
5736 ac_have_decl=0
5737 fi
5738
5739 cat >>confdefs.h <<_ACEOF
5740 #define HAVE_DECL_VASPRINTF $ac_have_decl
5741 _ACEOF
5742
5743 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
5514 if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then : 5744 if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then :
5515 ac_have_decl=1 5745 ac_have_decl=1
5516 else 5746 else
5517 ac_have_decl=0 5747 ac_have_decl=0
5518 fi 5748 fi
5519 5749
5520 cat >>confdefs.h <<_ACEOF 5750 cat >>confdefs.h <<_ACEOF
5521 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl 5751 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
5522 _ACEOF 5752 _ACEOF
5523 ac_fn_cxx_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default" 5753 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
5524 if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then : 5754 if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then :
5525 ac_have_decl=1 5755 ac_have_decl=1
5526 else 5756 else
5527 ac_have_decl=0 5757 ac_have_decl=0
5528 fi 5758 fi
5529 5759
5530 cat >>confdefs.h <<_ACEOF 5760 cat >>confdefs.h <<_ACEOF
5531 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl 5761 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
5532 _ACEOF 5762 _ACEOF
5533 ac_fn_cxx_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default" 5763 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
5534 if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then : 5764 if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then :
5535 ac_have_decl=1 5765 ac_have_decl=1
5536 else 5766 else
5537 ac_have_decl=0 5767 ac_have_decl=0
5538 fi 5768 fi
5539 5769
5540 cat >>confdefs.h <<_ACEOF 5770 cat >>confdefs.h <<_ACEOF
5541 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl 5771 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
5542 _ACEOF 5772 _ACEOF
5543 ac_fn_cxx_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default" 5773 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
5544 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then : 5774 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then :
5545 ac_have_decl=1 5775 ac_have_decl=1
5546 else 5776 else
5547 ac_have_decl=0 5777 ac_have_decl=0
5548 fi 5778 fi
5549 5779
5550 cat >>confdefs.h <<_ACEOF 5780 cat >>confdefs.h <<_ACEOF
5551 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl 5781 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
5552 _ACEOF 5782 _ACEOF
5553 ac_fn_cxx_check_decl "$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default" 5783 ac_fn_c_check_decl "$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default"
5554 if test "x$ac_cv_have_decl_fgetc_unlocked" = x""yes; then : 5784 if test "x$ac_cv_have_decl_fgetc_unlocked" = x""yes; then :
5555 ac_have_decl=1 5785 ac_have_decl=1
5556 else 5786 else
5557 ac_have_decl=0 5787 ac_have_decl=0
5558 fi 5788 fi
5559 5789
5560 cat >>confdefs.h <<_ACEOF 5790 cat >>confdefs.h <<_ACEOF
5561 #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl 5791 #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl
5562 _ACEOF 5792 _ACEOF
5563 ac_fn_cxx_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default" 5793 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
5564 if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then : 5794 if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then :
5565 ac_have_decl=1 5795 ac_have_decl=1
5566 else 5796 else
5567 ac_have_decl=0 5797 ac_have_decl=0
5568 fi 5798 fi
5569 5799
5570 cat >>confdefs.h <<_ACEOF 5800 cat >>confdefs.h <<_ACEOF
5571 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl 5801 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
5572 _ACEOF 5802 _ACEOF
5573 ac_fn_cxx_check_decl "$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default" 5803 ac_fn_c_check_decl "$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default"
5574 if test "x$ac_cv_have_decl_fileno_unlocked" = x""yes; then : 5804 if test "x$ac_cv_have_decl_fileno_unlocked" = x""yes; then :
5575 ac_have_decl=1 5805 ac_have_decl=1
5576 else 5806 else
5577 ac_have_decl=0 5807 ac_have_decl=0
5578 fi 5808 fi
5579 5809
5580 cat >>confdefs.h <<_ACEOF 5810 cat >>confdefs.h <<_ACEOF
5581 #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl 5811 #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl
5582 _ACEOF 5812 _ACEOF
5583 ac_fn_cxx_check_decl "$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default" 5813 ac_fn_c_check_decl "$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default"
5584 if test "x$ac_cv_have_decl_fprintf_unlocked" = x""yes; then : 5814 if test "x$ac_cv_have_decl_fprintf_unlocked" = x""yes; then :
5585 ac_have_decl=1 5815 ac_have_decl=1
5586 else 5816 else
5587 ac_have_decl=0 5817 ac_have_decl=0
5588 fi 5818 fi
5589 5819
5590 cat >>confdefs.h <<_ACEOF 5820 cat >>confdefs.h <<_ACEOF
5591 #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl 5821 #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl
5592 _ACEOF 5822 _ACEOF
5593 ac_fn_cxx_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default" 5823 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
5594 if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then : 5824 if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then :
5595 ac_have_decl=1 5825 ac_have_decl=1
5596 else 5826 else
5597 ac_have_decl=0 5827 ac_have_decl=0
5598 fi 5828 fi
5599 5829
5600 cat >>confdefs.h <<_ACEOF 5830 cat >>confdefs.h <<_ACEOF
5601 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl 5831 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
5602 _ACEOF 5832 _ACEOF
5603 ac_fn_cxx_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default" 5833 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
5604 if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then : 5834 if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then :
5605 ac_have_decl=1 5835 ac_have_decl=1
5606 else 5836 else
5607 ac_have_decl=0 5837 ac_have_decl=0
5608 fi 5838 fi
5609 5839
5610 cat >>confdefs.h <<_ACEOF 5840 cat >>confdefs.h <<_ACEOF
5611 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl 5841 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
5612 _ACEOF 5842 _ACEOF
5613 ac_fn_cxx_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default" 5843 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
5614 if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then : 5844 if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then :
5615 ac_have_decl=1 5845 ac_have_decl=1
5616 else 5846 else
5617 ac_have_decl=0 5847 ac_have_decl=0
5618 fi 5848 fi
5619 5849
5620 cat >>confdefs.h <<_ACEOF 5850 cat >>confdefs.h <<_ACEOF
5621 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl 5851 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
5622 _ACEOF 5852 _ACEOF
5623 ac_fn_cxx_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default" 5853 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
5624 if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then : 5854 if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then :
5625 ac_have_decl=1 5855 ac_have_decl=1
5626 else 5856 else
5627 ac_have_decl=0 5857 ac_have_decl=0
5628 fi 5858 fi
5629 5859
5630 cat >>confdefs.h <<_ACEOF 5860 cat >>confdefs.h <<_ACEOF
5631 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl 5861 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
5632 _ACEOF 5862 _ACEOF
5633 ac_fn_cxx_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default" 5863 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
5634 if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then : 5864 if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then :
5635 ac_have_decl=1 5865 ac_have_decl=1
5636 else 5866 else
5637 ac_have_decl=0 5867 ac_have_decl=0
5638 fi 5868 fi
5639 5869
5640 cat >>confdefs.h <<_ACEOF 5870 cat >>confdefs.h <<_ACEOF
5641 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl 5871 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
5642 _ACEOF 5872 _ACEOF
5643 ac_fn_cxx_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" 5873 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
5644 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then : 5874 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
5645 ac_have_decl=1 5875 ac_have_decl=1
5646 else 5876 else
5647 ac_have_decl=0 5877 ac_have_decl=0
5648 fi 5878 fi
5649 5879
5650 cat >>confdefs.h <<_ACEOF 5880 cat >>confdefs.h <<_ACEOF
5651 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl 5881 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
5652 _ACEOF 5882 _ACEOF
5653 ac_fn_cxx_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default" 5883 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
5654 if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then : 5884 if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then :
5655 ac_have_decl=1 5885 ac_have_decl=1
5656 else 5886 else
5657 ac_have_decl=0 5887 ac_have_decl=0
5658 fi 5888 fi
5659 5889
5660 cat >>confdefs.h <<_ACEOF 5890 cat >>confdefs.h <<_ACEOF
5661 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl 5891 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
5662 _ACEOF 5892 _ACEOF
5663 ac_fn_cxx_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default" 5893 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
5664 if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then : 5894 if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then :
5665 ac_have_decl=1 5895 ac_have_decl=1
5666 else 5896 else
5667 ac_have_decl=0 5897 ac_have_decl=0
5668 fi 5898 fi
5669 5899
5670 cat >>confdefs.h <<_ACEOF 5900 cat >>confdefs.h <<_ACEOF
5671 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl 5901 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
5672 _ACEOF
5673 ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
5674 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
5675 ac_have_decl=1
5676 else
5677 ac_have_decl=0
5678 fi
5679
5680 cat >>confdefs.h <<_ACEOF
5681 #define HAVE_DECL_VASPRINTF $ac_have_decl
5682 _ACEOF 5902 _ACEOF
5683 5903
5684 5904
5685 # Checks for library functions. 5905 # Checks for library functions.
5686 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5906 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5700 if (p) return 0; 5920 if (p) return 0;
5701 ; 5921 ;
5702 return 0; 5922 return 0;
5703 } 5923 }
5704 _ACEOF 5924 _ACEOF
5705 if ac_fn_cxx_try_link "$LINENO"; then : 5925 if ac_fn_c_try_link "$LINENO"; then :
5706 ac_cv_working_alloca_h=yes 5926 ac_cv_working_alloca_h=yes
5707 else 5927 else
5708 ac_cv_working_alloca_h=no 5928 ac_cv_working_alloca_h=no
5709 fi 5929 fi
5710 rm -f core conftest.err conftest.$ac_objext \ 5930 rm -f core conftest.err conftest.$ac_objext \
5753 if (p) return 0; 5973 if (p) return 0;
5754 ; 5974 ;
5755 return 0; 5975 return 0;
5756 } 5976 }
5757 _ACEOF 5977 _ACEOF
5758 if ac_fn_cxx_try_link "$LINENO"; then : 5978 if ac_fn_c_try_link "$LINENO"; then :
5759 ac_cv_func_alloca_works=yes 5979 ac_cv_func_alloca_works=yes
5760 else 5980 else
5761 ac_cv_func_alloca_works=no 5981 ac_cv_func_alloca_works=no
5762 fi 5982 fi
5763 rm -f core conftest.err conftest.$ac_objext \ 5983 rm -f core conftest.err conftest.$ac_objext \
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5808 $as_echo "$ac_cv_os_cray" >&6; } 6028 $as_echo "$ac_cv_os_cray" >&6; }
5809 if test $ac_cv_os_cray = yes; then 6029 if test $ac_cv_os_cray = yes; then
5810 for ac_func in _getb67 GETB67 getb67; do 6030 for ac_func in _getb67 GETB67 getb67; do
5811 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6031 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5812 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 6032 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5813 eval as_val=\$$as_ac_var 6033 eval as_val=\$$as_ac_var
5814 if test "x$as_val" = x""yes; then : 6034 if test "x$as_val" = x""yes; then :
5815 6035
5816 cat >>confdefs.h <<_ACEOF 6036 cat >>confdefs.h <<_ACEOF
5817 #define CRAY_STACKSEG_END $ac_func 6037 #define CRAY_STACKSEG_END $ac_func
5852 main () 6072 main ()
5853 { 6073 {
5854 return find_stack_direction () < 0; 6074 return find_stack_direction () < 0;
5855 } 6075 }
5856 _ACEOF 6076 _ACEOF
5857 if ac_fn_cxx_try_run "$LINENO"; then : 6077 if ac_fn_c_try_run "$LINENO"; then :
5858 ac_cv_c_stack_direction=1 6078 ac_cv_c_stack_direction=1
5859 else 6079 else
5860 ac_cv_c_stack_direction=-1 6080 ac_cv_c_stack_direction=-1
5861 fi 6081 fi
5862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5891 6111
5892 ; 6112 ;
5893 return 0; 6113 return 0;
5894 } 6114 }
5895 _ACEOF 6115 _ACEOF
5896 if ac_fn_cxx_try_compile "$LINENO"; then : 6116 if ac_fn_c_try_compile "$LINENO"; then :
5897 ac_cv_header_stdc=yes 6117 ac_cv_header_stdc=yes
5898 else 6118 else
5899 ac_cv_header_stdc=no 6119 ac_cv_header_stdc=no
5900 fi 6120 fi
5901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 || toupper (i) != TOUPPER (i)) 6184 || toupper (i) != TOUPPER (i))
5965 return 2; 6185 return 2;
5966 return 0; 6186 return 0;
5967 } 6187 }
5968 _ACEOF 6188 _ACEOF
5969 if ac_fn_cxx_try_run "$LINENO"; then : 6189 if ac_fn_c_try_run "$LINENO"; then :
5970 6190
5971 else 6191 else
5972 ac_cv_header_stdc=no 6192 ac_cv_header_stdc=no
5973 fi 6193 fi
5974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6000 char* cs = nl_langinfo(CODESET); 6220 char* cs = nl_langinfo(CODESET);
6001 ; 6221 ;
6002 return 0; 6222 return 0;
6003 } 6223 }
6004 _ACEOF 6224 _ACEOF
6005 if ac_fn_cxx_try_link "$LINENO"; then : 6225 if ac_fn_c_try_link "$LINENO"; then :
6006 am_cv_langinfo_codeset=yes 6226 am_cv_langinfo_codeset=yes
6007 else 6227 else
6008 am_cv_langinfo_codeset=no 6228 am_cv_langinfo_codeset=no
6009 fi 6229 fi
6010 rm -f core conftest.err conftest.$ac_objext \ 6230 rm -f core conftest.err conftest.$ac_objext \
6107 if (sizeof(uchar)) return 0; 6327 if (sizeof(uchar)) return 0;
6108 ; 6328 ;
6109 return 0; 6329 return 0;
6110 } 6330 }
6111 _ACEOF 6331 _ACEOF
6112 if ac_fn_cxx_try_compile "$LINENO"; then : 6332 if ac_fn_c_try_compile "$LINENO"; then :
6113 ac_cv_type_uchar=yes 6333 ac_cv_type_uchar=yes
6114 else 6334 else
6115 ac_cv_type_uchar=no 6335 ac_cv_type_uchar=no
6116 fi 6336 fi
6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6715 iconv_close(cd); 6935 iconv_close(cd);
6716 ; 6936 ;
6717 return 0; 6937 return 0;
6718 } 6938 }
6719 _ACEOF 6939 _ACEOF
6720 if ac_fn_cxx_try_link "$LINENO"; then : 6940 if ac_fn_c_try_link "$LINENO"; then :
6721 am_cv_func_iconv=yes 6941 am_cv_func_iconv=yes
6722 fi 6942 fi
6723 rm -f core conftest.err conftest.$ac_objext \ 6943 rm -f core conftest.err conftest.$ac_objext \
6724 conftest$ac_exeext conftest.$ac_ext 6944 conftest$ac_exeext conftest.$ac_ext
6725 if test "$am_cv_func_iconv" != yes; then 6945 if test "$am_cv_func_iconv" != yes; then
6737 iconv_close(cd); 6957 iconv_close(cd);
6738 ; 6958 ;
6739 return 0; 6959 return 0;
6740 } 6960 }
6741 _ACEOF 6961 _ACEOF
6742 if ac_fn_cxx_try_link "$LINENO"; then : 6962 if ac_fn_c_try_link "$LINENO"; then :
6743 am_cv_lib_iconv=yes 6963 am_cv_lib_iconv=yes
6744 am_cv_func_iconv=yes 6964 am_cv_func_iconv=yes
6745 fi 6965 fi
6746 rm -f core conftest.err conftest.$ac_objext \ 6966 rm -f core conftest.err conftest.$ac_objext \
6747 conftest$ac_exeext conftest.$ac_ext 6967 conftest$ac_exeext conftest.$ac_ext
6797 7017
6798 ; 7018 ;
6799 return 0; 7019 return 0;
6800 } 7020 }
6801 _ACEOF 7021 _ACEOF
6802 if ac_fn_cxx_try_compile "$LINENO"; then : 7022 if ac_fn_c_try_compile "$LINENO"; then :
6803 am_cv_proto_iconv_arg1="" 7023 am_cv_proto_iconv_arg1=""
6804 else 7024 else
6805 am_cv_proto_iconv_arg1="const" 7025 am_cv_proto_iconv_arg1="const"
6806 fi 7026 fi
6807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6906 7126
6907 cat >>confdefs.h <<_ACEOF 7127 cat >>confdefs.h <<_ACEOF
6908 #define HOST_WIDE_INT $host_wide_int 7128 #define HOST_WIDE_INT $host_wide_int
6909 _ACEOF 7129 _ACEOF
6910 7130
7131
7132 case $target in
7133 i?86-* | x86_64-*)
7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7136
7137 int
7138 main ()
7139 {
7140 asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0))
7141 ;
7142 return 0;
7143 }
7144 _ACEOF
7145 if ac_fn_c_try_compile "$LINENO"; then :
7146
7147 $as_echo "#define HAVE_SSE4 1" >>confdefs.h
7148
7149 fi
7150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7151 esac
6911 7152
6912 # Output. 7153 # Output.
6913 7154
6914 ac_config_headers="$ac_config_headers config.h:config.in" 7155 ac_config_headers="$ac_config_headers config.h:config.in"
6915 7156
7008 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 7249 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7009 done 7250 done
7010 LIBOBJS=$ac_libobjs 7251 LIBOBJS=$ac_libobjs
7011 7252
7012 LTLIBOBJS=$ac_ltlibobjs 7253 LTLIBOBJS=$ac_ltlibobjs
7254
7013 7255
7014 7256
7015 7257
7016 : ${CONFIG_STATUS=./config.status} 7258 : ${CONFIG_STATUS=./config.status}
7017 ac_write_fail=0 7259 ac_write_fail=0