diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-26 10:34:53 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-01-26 10:34:53 +0000 |
commit | 356ae5351920b732762f99162eb6732966608165 (patch) | |
tree | 8649195ff92300ce4f1438e8b0637e1bc93132c4 /libstdc++-v3/acinclude.m4 | |
parent | c5f23d18de7baa78e26cfe883a2fd9ca5661ba8f (diff) | |
download | gcc-356ae5351920b732762f99162eb6732966608165.tar.gz |
2005-01-26 Paolo Carlini <pcarlini@suse.de>
* acinclude.m4 ([GLIBCXX_ENABLE_C99]): Add ac_c99_complex
to the final test for enable_c99, thus robustifying it; remove
duplicate final test on ac_99_math.
* configure: Regenerate.
* include/std/std_complex.h: Remove usages of the dead
_GLIBCXX_BUGGY_COMPLEX macro.
* testsuite/26_numerics/cmath/19322.cc: Protect with
_GLIBCXX_USE_C99_MATH instead of the stronger _GLIBCXX_USE_C99,
since only C99 math facilities are involved.
* testsuite/26_numerics/cmath/c99_classification_macros_c++.cc:
Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94257 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/acinclude.m4')
-rw-r--r-- | libstdc++-v3/acinclude.m4 | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index d7442f1e384..f18b7d90b53 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -871,7 +871,7 @@ AC_DEFUN([GLIBCXX_ENABLE_C99], [ AC_DEFINE(_GLIBCXX_USE_C99_MATH) fi - # Check for the existence of <math.h> complex functions. + # Check for the existence of <complex.h> complex functions. # This is necessary even though libstdc++ uses the builtin versions # of these functions, because if the builtin cannot be used, a reference # to the library function is emitted. @@ -1055,6 +1055,7 @@ AC_DEFUN([GLIBCXX_ENABLE_C99], [ AC_MSG_CHECKING([for enabled ISO C99 support]) if test x"$ac_c99_math" = x"no" || + test x"$ac_c99_complex" = x"no" || test x"$ac_c99_stdio" = x"no" || test x"$ac_c99_stdlib" = x"no" || test x"$ac_c99_wchar" = x"no"; then @@ -1062,10 +1063,6 @@ AC_DEFUN([GLIBCXX_ENABLE_C99], [ fi; AC_MSG_RESULT($enable_c99) - if test x"$ac_99_math" = x"yes"; then - AC_DEFINE(_GLIBCXX_USE_C99_MATH) - fi - # Option parsed, now set things appropriately if test x"$enable_c99" = x"yes"; then AC_DEFINE(_GLIBCXX_USE_C99) |