2004-03-01 Benjamin Kosnik * acinclude.m4: Quote correctly. * linkage.m4: Same. Index: linkage.m4 =================================================================== RCS file: /cvs/gcc/gcc/libstdc++-v3/linkage.m4,v retrieving revision 1.5 diff -c -p -r1.5 linkage.m4 *** linkage.m4 23 Jan 2004 16:46:14 -0000 1.5 --- linkage.m4 1 Mar 2004 18:18:05 -0000 *************** dnl declared when using the c++ compiler *** 8,14 **** dnl ASSUMES argument is a math function with ONE parameter dnl dnl GLIBCXX_CHECK_MATH_DECL_1 ! AC_DEFUN(GLIBCXX_CHECK_MATH_DECL_1, [ AC_MSG_CHECKING([for $1 declaration]) if test x${glibcxx_cv_func_$1_use+set} != xset; then AC_CACHE_VAL(glibcxx_cv_func_$1_use, [ --- 8,14 ---- dnl ASSUMES argument is a math function with ONE parameter dnl dnl GLIBCXX_CHECK_MATH_DECL_1 ! AC_DEFUN([GLIBCXX_CHECK_MATH_DECL_1], [ AC_MSG_CHECKING([for $1 declaration]) if test x${glibcxx_cv_func_$1_use+set} != xset; then AC_CACHE_VAL(glibcxx_cv_func_$1_use, [ *************** dnl *** 40,46 **** dnl ASSUMES argument is a math function with ONE parameter dnl dnl GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_1 ! AC_DEFUN(GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_1, [ GLIBCXX_CHECK_MATH_DECL_1($1) if test x$glibcxx_cv_func_$1_use = x"yes"; then AC_CHECK_FUNCS($1) --- 40,46 ---- dnl ASSUMES argument is a math function with ONE parameter dnl dnl GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_1 ! AC_DEFUN([GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_1], [ GLIBCXX_CHECK_MATH_DECL_1($1) if test x$glibcxx_cv_func_$1_use = x"yes"; then AC_CHECK_FUNCS($1) *************** dnl Like GLIBCXX_CHECK_MATH_DECL_AND_LIN *** 58,64 **** dnl of functions at once. It's an all-or-nothing check -- either dnl HAVE_XYZ is defined for each of the functions, or for none of them. dnl Doing it this way saves significant configure time. ! AC_DEFUN(GLIBCXX_CHECK_MATH_DECLS_AND_LINKAGES_1, [ AC_MSG_CHECKING([for $1 functions]) AC_CACHE_VAL(glibcxx_cv_func_$2_use, [ AC_LANG_SAVE --- 58,64 ---- dnl of functions at once. It's an all-or-nothing check -- either dnl HAVE_XYZ is defined for each of the functions, or for none of them. dnl Doing it this way saves significant configure time. ! AC_DEFUN([GLIBCXX_CHECK_MATH_DECLS_AND_LINKAGES_1], [ AC_MSG_CHECKING([for $1 functions]) AC_CACHE_VAL(glibcxx_cv_func_$2_use, [ AC_LANG_SAVE *************** dnl declared when using the c++ compiler *** 80,86 **** dnl ASSUMES argument is a math function with TWO parameters dnl dnl GLIBCXX_CHECK_MATH_DECL_2 ! AC_DEFUN(GLIBCXX_CHECK_MATH_DECL_2, [ AC_MSG_CHECKING([for $1 declaration]) if test x${glibcxx_cv_func_$1_use+set} != xset; then AC_CACHE_VAL(glibcxx_cv_func_$1_use, [ --- 80,86 ---- dnl ASSUMES argument is a math function with TWO parameters dnl dnl GLIBCXX_CHECK_MATH_DECL_2 ! AC_DEFUN([GLIBCXX_CHECK_MATH_DECL_2], [ AC_MSG_CHECKING([for $1 declaration]) if test x${glibcxx_cv_func_$1_use+set} != xset; then AC_CACHE_VAL(glibcxx_cv_func_$1_use, [ *************** dnl *** 107,113 **** dnl ASSUMES argument is a math function with TWO parameters dnl dnl GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_2 ! AC_DEFUN(GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_2, [ GLIBCXX_CHECK_MATH_DECL_2($1) if test x$glibcxx_cv_func_$1_use = x"yes"; then AC_CHECK_FUNCS($1) --- 107,113 ---- dnl ASSUMES argument is a math function with TWO parameters dnl dnl GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_2 ! AC_DEFUN([GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_2], [ GLIBCXX_CHECK_MATH_DECL_2($1) if test x$glibcxx_cv_func_$1_use = x"yes"; then AC_CHECK_FUNCS($1) *************** dnl declared when using the c++ compiler *** 126,132 **** dnl ASSUMES argument is a math function with THREE parameters dnl dnl GLIBCXX_CHECK_MATH_DECL_3 ! AC_DEFUN(GLIBCXX_CHECK_MATH_DECL_3, [ AC_MSG_CHECKING([for $1 declaration]) if test x${glibcxx_cv_func_$1_use+set} != xset; then AC_CACHE_VAL(glibcxx_cv_func_$1_use, [ --- 126,132 ---- dnl ASSUMES argument is a math function with THREE parameters dnl dnl GLIBCXX_CHECK_MATH_DECL_3 ! AC_DEFUN([GLIBCXX_CHECK_MATH_DECL_3], [ AC_MSG_CHECKING([for $1 declaration]) if test x${glibcxx_cv_func_$1_use+set} != xset; then AC_CACHE_VAL(glibcxx_cv_func_$1_use, [ *************** dnl *** 153,159 **** dnl ASSUMES argument is a math function with THREE parameters dnl dnl GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_3 ! AC_DEFUN(GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_3, [ GLIBCXX_CHECK_MATH_DECL_3($1) if test x$glibcxx_cv_func_$1_use = x"yes"; then AC_CHECK_FUNCS($1) --- 153,159 ---- dnl ASSUMES argument is a math function with THREE parameters dnl dnl GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_3 ! AC_DEFUN([GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_3], [ GLIBCXX_CHECK_MATH_DECL_3($1) if test x$glibcxx_cv_func_$1_use = x"yes"; then AC_CHECK_FUNCS($1) *************** dnl *** 176,182 **** dnl ASSUMES argument is a stdlib function without parameters dnl dnl GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0 ! AC_DEFUN(GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0, [ AC_MSG_CHECKING([for $1 declaration]) if test x${glibcxx_cv_func_$1_use+set} != xset; then AC_CACHE_VAL(glibcxx_cv_func_$1_use, [ --- 176,182 ---- dnl ASSUMES argument is a stdlib function without parameters dnl dnl GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0 ! AC_DEFUN([GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_0], [ AC_MSG_CHECKING([for $1 declaration]) if test x${glibcxx_cv_func_$1_use+set} != xset; then AC_CACHE_VAL(glibcxx_cv_func_$1_use, [ *************** dnl *** 205,211 **** dnl ASSUMES argument is a math function with TWO parameters dnl dnl GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_2 ! AC_DEFUN(GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_2, [ AC_MSG_CHECKING([for $1 declaration]) if test x${glibcxx_cv_func_$1_use+set} != xset; then AC_CACHE_VAL(glibcxx_cv_func_$1_use, [ --- 205,211 ---- dnl ASSUMES argument is a math function with TWO parameters dnl dnl GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_2 ! AC_DEFUN([GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_2], [ AC_MSG_CHECKING([for $1 declaration]) if test x${glibcxx_cv_func_$1_use+set} != xset; then AC_CACHE_VAL(glibcxx_cv_func_$1_use, [ *************** dnl *** 234,240 **** dnl ASSUMES argument is a function with THREE parameters dnl dnl GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_3 ! AC_DEFUN(GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_3, [ AC_MSG_CHECKING([for $1 declaration]) if test x${glibcxx_cv_func_$1_use+set} != xset; then AC_CACHE_VAL(glibcxx_cv_func_$1_use, [ --- 234,240 ---- dnl ASSUMES argument is a function with THREE parameters dnl dnl GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_3 ! AC_DEFUN([GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_3], [ AC_MSG_CHECKING([for $1 declaration]) if test x${glibcxx_cv_func_$1_use+set} != xset; then AC_CACHE_VAL(glibcxx_cv_func_$1_use, [ *************** dnl *** 266,272 **** dnl ASSUMES argument is a math function with ONE parameter dnl dnl GLIBCXX_CHECK_BUILTIN_MATH_DECL_LINKAGE_1 ! AC_DEFUN(GLIBCXX_CHECK_BUILTIN_MATH_DECL_AND_LINKAGE_1, [ AC_MSG_CHECKING([for $1 declaration]) if test x${glibcxx_cv_func_$1_use+set} != xset; then AC_CACHE_VAL(glibcxx_cv_func_$1_use, [ --- 266,272 ---- dnl ASSUMES argument is a math function with ONE parameter dnl dnl GLIBCXX_CHECK_BUILTIN_MATH_DECL_LINKAGE_1 ! AC_DEFUN([GLIBCXX_CHECK_BUILTIN_MATH_DECL_AND_LINKAGE_1], [ AC_MSG_CHECKING([for $1 declaration]) if test x${glibcxx_cv_func_$1_use+set} != xset; then AC_CACHE_VAL(glibcxx_cv_func_$1_use, [ *************** dnl check for __builtin_cos *** 316,322 **** dnl check for __builtin_cosl dnl dnl GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT ! AC_DEFUN(GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT, [ dnl Test for builtin math functions. dnl These are made in gcc/c-common.c GLIBCXX_CHECK_BUILTIN_MATH_DECL_AND_LINKAGE_1(__builtin_abs) --- 316,322 ---- dnl check for __builtin_cosl dnl dnl GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT ! AC_DEFUN([GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT], [ dnl Test for builtin math functions. dnl These are made in gcc/c-common.c GLIBCXX_CHECK_BUILTIN_MATH_DECL_AND_LINKAGE_1(__builtin_abs) *************** dnl Define HAVE_STRTOLD if "strtold" is *** 373,379 **** dnl Define HAVE_STRTOF if "strtof" is declared and links dnl dnl GLIBCXX_CHECK_STDLIB_SUPPORT ! AC_DEFUN(GLIBCXX_CHECK_STDLIB_SUPPORT, [ ac_test_CXXFLAGS="${CXXFLAGS+set}" ac_save_CXXFLAGS="$CXXFLAGS" CXXFLAGS='-fno-builtin -D_GNU_SOURCE' --- 373,379 ---- dnl Define HAVE_STRTOF if "strtof" is declared and links dnl dnl GLIBCXX_CHECK_STDLIB_SUPPORT ! AC_DEFUN([GLIBCXX_CHECK_STDLIB_SUPPORT], [ ac_test_CXXFLAGS="${CXXFLAGS+set}" ac_save_CXXFLAGS="$CXXFLAGS" CXXFLAGS='-fno-builtin -D_GNU_SOURCE' *************** dnl *** 394,400 **** dnl Define HAVE_CARGF etc if "cargf" is found. dnl dnl GLIBCXX_CHECK_MATH_SUPPORT ! AC_DEFUN(GLIBCXX_CHECK_MATH_SUPPORT, [ ac_test_CXXFLAGS="${CXXFLAGS+set}" ac_save_CXXFLAGS="$CXXFLAGS" CXXFLAGS='-fno-builtin -D_GNU_SOURCE' --- 394,400 ---- dnl Define HAVE_CARGF etc if "cargf" is found. dnl dnl GLIBCXX_CHECK_MATH_SUPPORT ! AC_DEFUN([GLIBCXX_CHECK_MATH_SUPPORT], [ ac_test_CXXFLAGS="${CXXFLAGS+set}" ac_save_CXXFLAGS="$CXXFLAGS" CXXFLAGS='-fno-builtin -D_GNU_SOURCE' *************** dnl *** 505,511 **** dnl Define USE_COMPLEX_LONG_DOUBLE etc if "copysignl" is found. dnl dnl GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT ! AC_DEFUN(GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT, [ dnl Check for complex versions of math functions of platform. This will dnl always pass if libm is available, and fail if it isn't. If it is dnl available, we assume we'll need it later, so add it to LIBS. --- 505,511 ---- dnl Define USE_COMPLEX_LONG_DOUBLE etc if "copysignl" is found. dnl dnl GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT ! AC_DEFUN([GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT], [ dnl Check for complex versions of math functions of platform. This will dnl always pass if libm is available, and fail if it isn't. If it is dnl available, we assume we'll need it later, so add it to LIBS. *************** AC_DEFUN(GLIBCXX_CHECK_COMPLEX_MATH_SUPP *** 543,549 **** # serial 1 # dnl AC_REPLACE_MATHFUNCS(FUNCTION...) ! AC_DEFUN(AC_REPLACE_MATHFUNCS, [AC_CHECK_FUNCS([$1], , [LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"])]) dnl vim:et:ts=2 --- 543,549 ---- # serial 1 # dnl AC_REPLACE_MATHFUNCS(FUNCTION...) ! AC_DEFUN([AC_REPLACE_MATHFUNCS], [AC_CHECK_FUNCS([$1], , [LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"])]) dnl vim:et:ts=2 Index: acinclude.m4 =================================================================== RCS file: /cvs/gcc/gcc/libstdc++-v3/acinclude.m4,v retrieving revision 1.281 diff -c -p -r1.281 acinclude.m4 *** acinclude.m4 5 Feb 2004 23:19:53 -0000 1.281 --- acinclude.m4 1 Mar 2004 18:18:06 -0000 *************** dnl conditional will depend on the final *** 8,19 **** dnl example of why this is needed, see GLIBCXX_ENABLE_HOSTED. dnl m4_define([_m4_divert(glibcxx_diversion)], 8000)dnl ! AC_DEFUN(GLIBCXX_CONDITIONAL, [dnl m4_divert_text([glibcxx_diversion],dnl AM_CONDITIONAL([$1],[$2]) )dnl ])dnl ! AC_DEFUN(GLIBCXX_EVALUATE_CONDITIONALS, [m4_undivert([glibcxx_diversion])])dnl dnl --- 8,19 ---- dnl example of why this is needed, see GLIBCXX_ENABLE_HOSTED. dnl m4_define([_m4_divert(glibcxx_diversion)], 8000)dnl ! AC_DEFUN([GLIBCXX_CONDITIONAL], [dnl m4_divert_text([glibcxx_diversion],dnl AM_CONDITIONAL([$1],[$2]) )dnl ])dnl ! AC_DEFUN([GLIBCXX_EVALUATE_CONDITIONALS], [m4_undivert([glibcxx_diversion])])dnl dnl *************** dnl Check to see what architecture and o *** 21,30 **** dnl for. Also, if architecture- or OS-specific flags are required for dnl compilation, pick them up here. dnl ! AC_DEFUN(GLIBCXX_CHECK_HOST, [ . $glibcxx_srcdir/configure.host ! AC_MSG_NOTICE(CPU config directory is $cpu_include_dir) ! AC_MSG_NOTICE(OS config directory is $os_include_dir) ]) --- 21,30 ---- dnl for. Also, if architecture- or OS-specific flags are required for dnl compilation, pick them up here. dnl ! AC_DEFUN([GLIBCXX_CHECK_HOST], [ . $glibcxx_srcdir/configure.host ! AC_MSG_NOTICE([CPU config directory is $cpu_include_dir]) ! AC_MSG_NOTICE([OS config directory is $os_include_dir]) ]) *************** dnl *** 34,40 **** dnl Substs: dnl multi_basedir dnl ! AC_DEFUN(GLIBCXX_TOPREL_CONFIGURE, [ # Sets up multi_basedir, which is srcdir/.. plus the usual # "multi_source_toprel_bottom_adjust" lunacy as needed. AM_ENABLE_MULTILIB(, ..) --- 34,40 ---- dnl Substs: dnl multi_basedir dnl ! AC_DEFUN([GLIBCXX_TOPREL_CONFIGURE], [ # Sets up multi_basedir, which is srcdir/.. plus the usual # "multi_source_toprel_bottom_adjust" lunacy as needed. AM_ENABLE_MULTILIB(, ..) *************** dnl - the variables in GLIBCXX_CHECK_HO *** 78,84 **** dnl - default settings for all AM_CONFITIONAL test variables dnl - lots of tools, like CC and CXX dnl ! AC_DEFUN(GLIBCXX_CONFIGURE, [ # Keep these sync'd with the list in Makefile.am. The first provides an # expandable list at autoconf time; the second provides an expandable list # (i.e., shell variable) at configure time. --- 78,84 ---- dnl - default settings for all AM_CONFITIONAL test variables dnl - lots of tools, like CC and CXX dnl ! AC_DEFUN([GLIBCXX_CONFIGURE], [ # Keep these sync'd with the list in Makefile.am. The first provides an # expandable list at autoconf time; the second provides an expandable list # (i.e., shell variable) at configure time. *************** dnl Leave it out by default and use ma *** 193,199 **** dnl SECTION_FLAGS='-ffunction-sections -fdata-sections' if dnl compiler supports it and the user has not requested debug mode. dnl ! AC_DEFUN(GLIBCXX_CHECK_COMPILER_FEATURES, [ # All these tests are for C++; save the language and the compiler flags. # The CXXFLAGS thing is suspicious, but based on similar bits previously # found in GLIBCXX_CONFIGURE. --- 193,199 ---- dnl SECTION_FLAGS='-ffunction-sections -fdata-sections' if dnl compiler supports it and the user has not requested debug mode. dnl ! AC_DEFUN([GLIBCXX_CHECK_COMPILER_FEATURES], [ # All these tests are for C++; save the language and the compiler flags. # The CXXFLAGS thing is suspicious, but based on similar bits previously # found in GLIBCXX_CONFIGURE. *************** dnl *** 246,252 **** dnl The last will be a single integer, e.g., version 1.23.45.0.67.89 will dnl set glibcxx_gnu_ld_version to 12345. Zeros cause problems. dnl ! AC_DEFUN(GLIBCXX_CHECK_LINKER_FEATURES, [ # If we're not using GNU ld, then there's no point in even trying these # tests. Check for that first. We should have already tested for gld # by now (in libtool), but require it now just to be safe... --- 246,252 ---- dnl The last will be a single integer, e.g., version 1.23.45.0.67.89 will dnl set glibcxx_gnu_ld_version to 12345. Zeros cause problems. dnl ! AC_DEFUN([GLIBCXX_CHECK_LINKER_FEATURES], [ # If we're not using GNU ld, then there's no point in even trying these # tests. Check for that first. We should have already tested for gld # by now (in libtool), but require it now just to be safe... *************** dnl Defines: *** 337,343 **** dnl HAVE_MBSTATE_T if mbstate_t is not in wchar.h dnl _GLIBCXX_USE_WCHAR_T if all the bits are found. dnl ! AC_DEFUN(GLIBCXX_CHECK_WCHAR_T_SUPPORT, [ # Test wchar.h for mbstate_t, which is needed for char_traits and # others even if wchar_t support is not on. AC_MSG_CHECKING([for mbstate_t]) --- 337,343 ---- dnl HAVE_MBSTATE_T if mbstate_t is not in wchar.h dnl _GLIBCXX_USE_WCHAR_T if all the bits are found. dnl ! AC_DEFUN([GLIBCXX_CHECK_WCHAR_T_SUPPORT], [ # Test wchar.h for mbstate_t, which is needed for char_traits and # others even if wchar_t support is not on. AC_MSG_CHECKING([for mbstate_t]) *************** dnl Defines: *** 454,460 **** dnl _GLIBCXX_MEM_LIMITS if we can set artificial limits on memory dnl various HAVE_MEMLIMIT_* for individual limit names dnl ! AC_DEFUN(GLIBCXX_CHECK_SETRLIMIT_ancilliary, [ AC_TRY_COMPILE( [#include #include --- 454,460 ---- dnl _GLIBCXX_MEM_LIMITS if we can set artificial limits on memory dnl various HAVE_MEMLIMIT_* for individual limit names dnl ! AC_DEFUN([GLIBCXX_CHECK_SETRLIMIT_ancilliary], [ AC_TRY_COMPILE( [#include #include *************** AC_DEFUN(GLIBCXX_CHECK_SETRLIMIT_ancilli *** 466,472 **** [Only used in build directory testsuite_hooks.h.]) ]) ! AC_DEFUN(GLIBCXX_CHECK_SETRLIMIT, [ setrlimit_have_headers=yes AC_CHECK_HEADERS(unistd.h sys/time.h sys/resource.h, [], --- 466,472 ---- [Only used in build directory testsuite_hooks.h.]) ]) ! AC_DEFUN([GLIBCXX_CHECK_SETRLIMIT], [ setrlimit_have_headers=yes AC_CHECK_HEADERS(unistd.h sys/time.h sys/resource.h, [], *************** dnl *** 508,514 **** dnl Check whether S_ISREG (Posix) or S_IFREG is available in . dnl Define HAVE_S_ISREG / HAVE_S_IFREG appropriately. dnl ! AC_DEFUN(GLIBCXX_CHECK_S_ISREG_OR_S_IFREG, [ AC_CACHE_VAL(glibcxx_cv_S_ISREG, [ AC_TRY_LINK( [#include ], --- 508,514 ---- dnl Check whether S_ISREG (Posix) or S_IFREG is available in . dnl Define HAVE_S_ISREG / HAVE_S_IFREG appropriately. dnl ! AC_DEFUN([GLIBCXX_CHECK_S_ISREG_OR_S_IFREG], [ AC_CACHE_VAL(glibcxx_cv_S_ISREG, [ AC_TRY_LINK( [#include ], *************** AC_DEFUN(GLIBCXX_CHECK_S_ISREG_OR_S_IFRE *** 538,544 **** dnl dnl Check whether poll is available in , and define HAVE_POLL. dnl ! AC_DEFUN(GLIBCXX_CHECK_POLL, [ AC_CACHE_VAL(glibcxx_cv_POLL, [ AC_TRY_LINK( [#include ], --- 538,544 ---- dnl dnl Check whether poll is available in , and define HAVE_POLL. dnl ! AC_DEFUN([GLIBCXX_CHECK_POLL], [ AC_CACHE_VAL(glibcxx_cv_POLL, [ AC_TRY_LINK( [#include ], *************** AC_DEFUN(GLIBCXX_CHECK_POLL, [ *** 557,563 **** dnl dnl Check whether writev is available in , and define HAVE_WRITEV. dnl ! AC_DEFUN(GLIBCXX_CHECK_WRITEV, [ AC_CACHE_VAL(glibcxx_cv_WRITEV, [ AC_TRY_LINK( [#include ], --- 557,563 ---- dnl dnl Check whether writev is available in , and define HAVE_WRITEV. dnl ! AC_DEFUN([GLIBCXX_CHECK_WRITEV], [ AC_CACHE_VAL(glibcxx_cv_WRITEV, [ AC_TRY_LINK( [#include ], *************** AC_DEFUN(GLIBCXX_CHECK_WRITEV, [ *** 575,581 **** dnl dnl Check whether int64_t is available in , and define HAVE_INT64_T. dnl ! AC_DEFUN(GLIBCXX_CHECK_INT64_T, [ AC_CACHE_VAL(glibcxx_cv_INT64_T, [ AC_TRY_COMPILE( [#include ], --- 575,581 ---- dnl dnl Check whether int64_t is available in , and define HAVE_INT64_T. dnl ! AC_DEFUN([GLIBCXX_CHECK_INT64_T], [ AC_CACHE_VAL(glibcxx_cv_INT64_T, [ AC_TRY_COMPILE( [#include ], *************** AC_DEFUN(GLIBCXX_CHECK_INT64_T, [ *** 592,598 **** dnl dnl Check whether LFS support is available. dnl ! AC_DEFUN(GLIBCXX_CHECK_LFS, [ AC_LANG_SAVE AC_LANG_CPLUSPLUS ac_save_CXXFLAGS="$CXXFLAGS" --- 592,598 ---- dnl dnl Check whether LFS support is available. dnl ! AC_DEFUN([GLIBCXX_CHECK_LFS], [ AC_LANG_SAVE AC_LANG_CPLUSPLUS ac_save_CXXFLAGS="$CXXFLAGS" *************** dnl enable_abi_check / GLIBCXX_TEST_ABI *** 629,635 **** dnl Substs: dnl baseline_dir dnl ! AC_DEFUN(GLIBCXX_CONFIGURE_TESTSUITE, [ if $GLIBCXX_IS_NATIVE && test $is_hosted = yes; then # Do checks for memory limit functions. GLIBCXX_CHECK_SETRLIMIT --- 629,635 ---- dnl Substs: dnl baseline_dir dnl ! AC_DEFUN([GLIBCXX_CONFIGURE_TESTSUITE], [ if $GLIBCXX_IS_NATIVE && test $is_hosted = yes; then # Do checks for memory limit functions. GLIBCXX_CHECK_SETRLIMIT *************** dnl Substs: *** 669,675 **** dnl GLIBCXX_INCLUDES dnl TOPLEVEL_INCLUDES dnl ! AC_DEFUN(GLIBCXX_EXPORT_INCLUDES, [ # Used for every C++ compile we perform. GLIBCXX_INCLUDES="\ -I$glibcxx_builddir/include/$host_alias \ --- 669,675 ---- dnl GLIBCXX_INCLUDES dnl TOPLEVEL_INCLUDES dnl ! AC_DEFUN([GLIBCXX_EXPORT_INCLUDES], [ # Used for every C++ compile we perform. GLIBCXX_INCLUDES="\ -I$glibcxx_builddir/include/$host_alias \ *************** dnl Substs: *** 700,706 **** dnl OPTIMIZE_CXXFLAGS dnl WARN_FLAGS dnl ! AC_DEFUN(GLIBCXX_EXPORT_FLAGS, [ # Optimization flags that are probably a good idea for thrill-seekers. Just # uncomment the lines below and make, everything else is ready to go... # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc --- 700,706 ---- dnl OPTIMIZE_CXXFLAGS dnl WARN_FLAGS dnl ! AC_DEFUN([GLIBCXX_EXPORT_FLAGS], [ # Optimization flags that are probably a good idea for thrill-seekers. Just # uncomment the lines below and make, everything else is ready to go... # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc *************** dnl *** 724,730 **** dnl Assumes cross_compiling bits already done, and with_cross_host in dnl particular. dnl ! AC_DEFUN(GLIBCXX_EXPORT_INSTALL_INFO, [ glibcxx_toolexecdir=no glibcxx_toolexeclibdir=no glibcxx_prefixdir=$prefix --- 724,730 ---- dnl Assumes cross_compiling bits already done, and with_cross_host in dnl particular. dnl ! AC_DEFUN([GLIBCXX_EXPORT_INSTALL_INFO], [ glibcxx_toolexecdir=no glibcxx_toolexeclibdir=no glibcxx_prefixdir=$prefix *************** dnl + Usage: GLIBCXX_ENABLE_C99[(DEFA *** 844,850 **** dnl Where DEFAULT is either `yes' or `no'. dnl + If 'C99' stuff is not available, ignores DEFAULT and sets `no'. dnl ! AC_DEFUN(GLIBCXX_ENABLE_C99, [ GLIBCXX_ENABLE(c99,$1,,[turns on ISO/IEC 9899:1999 support]) AC_LANG_SAVE --- 844,850 ---- dnl Where DEFAULT is either `yes' or `no'. dnl + If 'C99' stuff is not available, ignores DEFAULT and sets `no'. dnl ! AC_DEFUN([GLIBCXX_ENABLE_C99], [ GLIBCXX_ENABLE(c99,$1,,[turns on ISO/IEC 9899:1999 support]) AC_LANG_SAVE *************** dnl --disable-cheaders [does not do anyt *** 971,977 **** dnl + Usage: GLIBCXX_ENABLE_CHEADERS[(DEFAULT)] dnl Where DEFAULT is either `c' or `c_std'. dnl ! AC_DEFUN(GLIBCXX_ENABLE_CHEADERS, [ GLIBCXX_ENABLE(cheaders,$1,[=KIND], [construct "C" headers for g++], [permit c|c_std]) AC_MSG_NOTICE("C" header strategy set to $enable_cheaders) --- 971,977 ---- dnl + Usage: GLIBCXX_ENABLE_CHEADERS[(DEFAULT)] dnl Where DEFAULT is either `c' or `c_std'. dnl ! AC_DEFUN([GLIBCXX_ENABLE_CHEADERS], [ GLIBCXX_ENABLE(cheaders,$1,[=KIND], [construct "C" headers for g++], [permit c|c_std]) AC_MSG_NOTICE("C" header strategy set to $enable_cheaders) *************** dnl a subdirectory of config/locale. *** 991,997 **** dnl dnl Default is generic. dnl ! AC_DEFUN(GLIBCXX_ENABLE_CLOCALE, [ AC_MSG_CHECKING([for C locale to use]) GLIBCXX_ENABLE(clocale,auto,[@<:@=MODEL@:>@], [use MODEL for target locale package], --- 991,997 ---- dnl dnl Default is generic. dnl ! AC_DEFUN([GLIBCXX_ENABLE_CLOCALE], [ AC_MSG_CHECKING([for C locale to use]) GLIBCXX_ENABLE(clocale,auto,[@<:@=MODEL@:>@], [use MODEL for target locale package], *************** dnl --disable-concept-checks leaves them *** 1178,1184 **** dnl + Usage: GLIBCXX_ENABLE_CONCEPT_CHECKS[(DEFAULT)] dnl Where DEFAULT is either `yes' or `no'. dnl ! AC_DEFUN(GLIBCXX_ENABLE_CONCEPT_CHECKS, [ GLIBCXX_ENABLE(concept-checks,$1,,[use Boost-derived template checks]) if test $enable_concept_checks = yes; then AC_DEFINE(_GLIBCXX_CONCEPT_CHECKS) --- 1178,1184 ---- dnl + Usage: GLIBCXX_ENABLE_CONCEPT_CHECKS[(DEFAULT)] dnl Where DEFAULT is either `yes' or `no'. dnl ! AC_DEFUN([GLIBCXX_ENABLE_CONCEPT_CHECKS], [ GLIBCXX_ENABLE(concept-checks,$1,,[use Boost-derived template checks]) if test $enable_concept_checks = yes; then AC_DEFINE(_GLIBCXX_CONCEPT_CHECKS) *************** dnl Check for which I/O library to use: *** 1191,1197 **** dnl dnl Default is stdio. dnl ! AC_DEFUN(GLIBCXX_ENABLE_CSTDIO, [ AC_MSG_CHECKING([for underlying I/O to use]) GLIBCXX_ENABLE(cstdio,stdio,[=PACKAGE], [use target-specific I/O package], [permit stdio]) --- 1191,1197 ---- dnl dnl Default is stdio. dnl ! AC_DEFUN([GLIBCXX_ENABLE_CSTDIO], [ AC_MSG_CHECKING([for underlying I/O to use]) GLIBCXX_ENABLE(cstdio,stdio,[=PACKAGE], [use target-specific I/O package], [permit stdio]) *************** dnl + Usage: GLIBCXX_ENABLE_CXX_FLAGS *** 1227,1233 **** dnl If "default flags" is an empty string, the effect is the same dnl as --disable or --enable=no. dnl ! AC_DEFUN(GLIBCXX_ENABLE_CXX_FLAGS, [dnl AC_MSG_CHECKING([for extra compiler flags for building]) GLIBCXX_ENABLE(cxx-flags,$1,[=FLAGS], [pass compiler FLAGS when building library], --- 1227,1233 ---- dnl If "default flags" is an empty string, the effect is the same dnl as --disable or --enable=no. dnl ! AC_DEFUN([GLIBCXX_ENABLE_CXX_FLAGS], [dnl AC_MSG_CHECKING([for extra compiler flags for building]) GLIBCXX_ENABLE(cxx-flags,$1,[=FLAGS], [pass compiler FLAGS when building library], *************** dnl --disable-c-mbchar doesn't. *** 1265,1271 **** dnl + Usage: GLIBCXX_ENABLE_C_MBCHAR[(DEFAULT)] dnl Where DEFAULT is either `yes' or `no'. dnl ! AC_DEFUN(GLIBCXX_ENABLE_C_MBCHAR, [ GLIBCXX_ENABLE(c-mbchar,$1,,[enable multibyte (wide) characters]) # Option parsed, now other scripts can test enable_c_mbchar for yes/no. ]) --- 1265,1271 ---- dnl + Usage: GLIBCXX_ENABLE_C_MBCHAR[(DEFAULT)] dnl Where DEFAULT is either `yes' or `no'. dnl ! AC_DEFUN([GLIBCXX_ENABLE_C_MBCHAR], [ GLIBCXX_ENABLE(c-mbchar,$1,,[enable multibyte (wide) characters]) # Option parsed, now other scripts can test enable_c_mbchar for yes/no. ]) *************** dnl *** 1287,1293 **** dnl + Usage: GLIBCXX_ENABLE_DEBUG[(DEFAULT)] dnl Where DEFAULT is either `yes' or `no'. dnl ! AC_DEFUN(GLIBCXX_ENABLE_DEBUG, [ AC_MSG_CHECKING([for additional debug build]) GLIBCXX_ENABLE(libstdcxx-debug,$1,,[build extra debug library]) AC_MSG_RESULT($enable_libstdcxx_debug) --- 1287,1293 ---- dnl + Usage: GLIBCXX_ENABLE_DEBUG[(DEFAULT)] dnl Where DEFAULT is either `yes' or `no'. dnl ! AC_DEFUN([GLIBCXX_ENABLE_DEBUG], [ AC_MSG_CHECKING([for additional debug build]) GLIBCXX_ENABLE(libstdcxx-debug,$1,,[build extra debug library]) AC_MSG_RESULT($enable_libstdcxx_debug) *************** dnl + Usage: GLIBCXX_ENABLE_DEBUG_FLA *** 1307,1313 **** dnl If "default flags" is an empty string, the effect is the same dnl as --disable or --enable=no. dnl ! AC_DEFUN(GLIBCXX_ENABLE_DEBUG_FLAGS, [ GLIBCXX_ENABLE(libstdcxx-debug-flags,[$1],[=FLAGS], [pass compiler FLAGS when building debug library], [case "x$enable_libstdcxx_debug_flags" in --- 1307,1313 ---- dnl If "default flags" is an empty string, the effect is the same dnl as --disable or --enable=no. dnl ! AC_DEFUN([GLIBCXX_ENABLE_DEBUG_FLAGS], [ GLIBCXX_ENABLE(libstdcxx-debug-flags,[$1],[=FLAGS], [pass compiler FLAGS when building debug library], [case "x$enable_libstdcxx_debug_flags" in *************** dnl *** 1338,1344 **** dnl Defines: dnl _GLIBCXX_HOSTED (always defined, either to 1 or 0) dnl ! AC_DEFUN(GLIBCXX_ENABLE_HOSTED, [ AC_ARG_ENABLE([hosted-libstdcxx], AC_HELP_STRING([--disable-hosted-libstdcxx], [only build freestanding C++ runtime support]),, --- 1338,1344 ---- dnl Defines: dnl _GLIBCXX_HOSTED (always defined, either to 1 or 0) dnl ! AC_DEFUN([GLIBCXX_ENABLE_HOSTED], [ AC_ARG_ENABLE([hosted-libstdcxx], AC_HELP_STRING([--disable-hosted-libstdcxx], [only build freestanding C++ runtime support]),, *************** dnl + Usage: GLIBCXX_ENABLE_LONG_LONG *** 1370,1376 **** dnl Where DEFAULT is either `yes' or `no'. dnl + If 'long long' stuff is not available, ignores DEFAULT and sets `no'. dnl ! AC_DEFUN(GLIBCXX_ENABLE_LONG_LONG, [ GLIBCXX_ENABLE(long-long,$1,,[enables I/O support for 'long long']) AC_LANG_SAVE --- 1370,1376 ---- dnl Where DEFAULT is either `yes' or `no'. dnl + If 'long long' stuff is not available, ignores DEFAULT and sets `no'. dnl ! AC_DEFUN([GLIBCXX_ENABLE_LONG_LONG], [ GLIBCXX_ENABLE(long-long,$1,,[enables I/O support for 'long long']) AC_LANG_SAVE *************** dnl *** 1407,1413 **** dnl Substs: dnl glibcxx_PCHFLAGS dnl ! AC_DEFUN(GLIBCXX_ENABLE_PCH, [ AC_MSG_CHECKING([for enabled PCH]) GLIBCXX_ENABLE(libstdcxx-pch,$1,,[build pre-compiled libstdc++ headers]) AC_MSG_RESULT([$enable_libstdcxx_pch]) --- 1407,1413 ---- dnl Substs: dnl glibcxx_PCHFLAGS dnl ! AC_DEFUN([GLIBCXX_ENABLE_PCH], [ AC_MSG_CHECKING([for enabled PCH]) GLIBCXX_ENABLE(libstdcxx-pch,$1,,[build pre-compiled libstdc++ headers]) AC_MSG_RESULT([$enable_libstdcxx_pch]) *************** dnl *** 1459,1465 **** dnl Defines: dnl _GLIBCXX_SJLJ_EXCEPTIONS if the compiler is configured for it dnl ! AC_DEFUN(GLIBCXX_ENABLE_SJLJ_EXCEPTIONS, [ AC_MSG_CHECKING([for exception model to use]) AC_LANG_SAVE AC_LANG_CPLUSPLUS --- 1459,1465 ---- dnl Defines: dnl _GLIBCXX_SJLJ_EXCEPTIONS if the compiler is configured for it dnl ! AC_DEFUN([GLIBCXX_ENABLE_SJLJ_EXCEPTIONS], [ AC_MSG_CHECKING([for exception model to use]) AC_LANG_SAVE AC_LANG_CPLUSPLUS *************** dnl Where DEFAULT is either 'yes' *** 1529,1535 **** dnl choose a default style based on linker characteristics. Passing dnl 'no' disables versioning. dnl ! AC_DEFUN(GLIBCXX_ENABLE_SYMVERS, [ GLIBCXX_ENABLE(symvers,$1,[=STYLE], [enables symbol versioning of the shared library], --- 1529,1535 ---- dnl choose a default style based on linker characteristics. Passing dnl 'no' disables versioning. dnl ! AC_DEFUN([GLIBCXX_ENABLE_SYMVERS], [ GLIBCXX_ENABLE(symvers,$1,[=STYLE], [enables symbol versioning of the shared library], *************** dnl Defines: *** 1633,1639 **** dnl HAVE_GTHR_DEFAULT dnl _GLIBCXX_SUPPORTS_WEAK dnl ! AC_DEFUN(GLIBCXX_ENABLE_THREADS, [ AC_MSG_CHECKING([for thread model used by GCC]) target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'` AC_MSG_RESULT([$target_thread_file]) --- 1633,1639 ---- dnl HAVE_GTHR_DEFAULT dnl _GLIBCXX_SUPPORTS_WEAK dnl ! AC_DEFUN([GLIBCXX_ENABLE_THREADS], [ AC_MSG_CHECKING([for thread model used by GCC]) target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'` AC_MSG_RESULT([$target_thread_file]) *************** AC_DEFUN(GLIBCXX_ENABLE_THREADS, [ *** 1657,1663 **** # Please note that the actual code is *not* freely available. # serial 1 ! AC_DEFUN(AC_LC_MESSAGES, [ AC_CHECK_HEADER(locale.h, [ AC_CACHE_CHECK([for LC_MESSAGES], ac_cv_val_LC_MESSAGES, [AC_TRY_LINK([#include ], [return LC_MESSAGES], --- 1657,1663 ---- # Please note that the actual code is *not* freely available. # serial 1 ! AC_DEFUN([AC_LC_MESSAGES], [ AC_CHECK_HEADER(locale.h, [ AC_CACHE_CHECK([for LC_MESSAGES], ac_cv_val_LC_MESSAGES, [AC_TRY_LINK([#include ], [return LC_MESSAGES],