summaryrefslogtreecommitdiff
path: root/libstdc++-v3/aclocal.m4
diff options
context:
space:
mode:
authorpme <pme@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-09 14:54:08 +0000
committerpme <pme@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-09 14:54:08 +0000
commitd1fde434b0130735c91f93b5553f1251f03c4050 (patch)
treeb0528c1cf7bf63f9ca2c6098a52a345bf4217e73 /libstdc++-v3/aclocal.m4
parent8e3b4c7b42c78314b10fbe0c1763898833dc25e7 (diff)
downloadgcc-d1fde434b0130735c91f93b5553f1251f03c4050.tar.gz
2003-06-09 Phil Edwards <pme@gcc.gnu.org>
* acinclude.m4: Move all AM_CONDITIONAL calls out. (GLIBCPP_CONFIGURE): Set defaults for variables used in AM_CONDITIONAL statements. * configure.in: Centralize AM_CONDITIONALs so that they are always run. Make use of GLIBCPP_IS_CROSS_COMPILING. * aclocal.m4, configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67663 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/aclocal.m4')
-rw-r--r--libstdc++-v3/aclocal.m425
1 files changed, 16 insertions, 9 deletions
diff --git a/libstdc++-v3/aclocal.m4 b/libstdc++-v3/aclocal.m4
index f130d561b25..9671ead695f 100644
--- a/libstdc++-v3/aclocal.m4
+++ b/libstdc++-v3/aclocal.m4
@@ -214,6 +214,18 @@ AC_DEFUN(GLIBCPP_CONFIGURE, [
*) glibcpp_flagbasedir='[$](top_builddir)/'[$]{glibcpp_basedir} ;;
esac
+ # Set up safe default values for all subsequent AM_CONDITIONAL tests.
+ need_libmath=no
+ enable_wchar_t=no
+ #enable_debug=no
+ #need_libio=no
+ #need_wlibio=no
+ #glibcpp_pch_comp=no
+ #enable_cheaders=c
+ #c_compatibility=no
+ enable_abi_check=no
+ #enable_symvers=no
+
# Find platform-specific directories containing configuration info. In
# addition to possibly modifying the same flags, it also sets up symlinks.
GLIBCPP_CHECK_HOST
@@ -861,7 +873,9 @@ dnl Define USE_COMPLEX_LONG_DOUBLE etc if "copysignl" is found.
dnl
dnl GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT
AC_DEFUN(GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT, [
- dnl Check for complex versions of math functions of platform.
+ 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_CHECK_LIB(m, main)
AC_REPLACE_MATHFUNCS(nan copysignf)
@@ -881,7 +895,6 @@ AC_DEFUN(GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT, [
need_libmath=yes
fi
AC_SUBST(LIBMATHOBJS)
- AM_CONDITIONAL(GLIBCPP_BUILD_LIBMATH, test "$need_libmath" = yes)
])
@@ -908,7 +921,6 @@ dnl
dnl GLIBCPP_CHECK_WCHAR_T_SUPPORT
AC_DEFUN(GLIBCPP_CHECK_WCHAR_T_SUPPORT, [
dnl Wide characters disabled by default.
- enable_wchar_t=no
dnl Test wchar.h for mbstate_t, which is needed for char_traits and
dnl others even if wchar_t support is not on.
@@ -1007,7 +1019,6 @@ AC_DEFUN(GLIBCPP_CHECK_WCHAR_T_SUPPORT, [
fi
AC_MSG_CHECKING([for enabled wchar_t specializations])
AC_MSG_RESULT($enable_wchar_t)
- AM_CONDITIONAL(GLIBCPP_TEST_WCHAR_T, test "$enable_wchar_t" = yes)
])
@@ -2144,15 +2155,11 @@ AC_DEFUN(GLIBCPP_CONFIGURE_TESTSUITE, [
baseline_file="${glibcpp_srcdir}/config/abi/${abi_baseline_triplet}/baseline_symbols.txt"
AC_SUBST(baseline_file)
+ dnl XXX move to configure.host?
case "$target" in
*-*-cygwin* ) enable_abi_check=no ;;
* ) enable_abi_check=yes ;;
esac
-
- # Don't do ABI checking unless native.
- AM_CONDITIONAL(GLIBCPP_BUILD_ABI_CHECK,
- test x"$build" = x"$host" && test -z "$with_cross_host" \
- && test "$enable_abi_check" = yes )
])