diff options
author | Benjamin Kosnik <bkoz@redhat.com> | 2005-06-07 16:52:32 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2005-06-07 16:52:32 +0000 |
commit | 225962a09b477edd843f345218f75aaa71fea52f (patch) | |
tree | 5c165a896893f947d57b5147fce8fe2dd36400e4 | |
parent | e0374221d9a8296937d7943791de7267a9d7dafa (diff) | |
download | gcc-225962a09b477edd843f345218f75aaa71fea52f.zip gcc-225962a09b477edd843f345218f75aaa71fea52f.tar.gz gcc-225962a09b477edd843f345218f75aaa71fea52f.tar.bz2 |
acinclude.m4 (GLIBCXX_ENABLE_C99): Use C++ compiler for complex tests.
2005-06-07 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCXX_ENABLE_C99): Use C++ compiler for complex
tests.
* configure: Regenerated.
From-SVN: r100713
-rw-r--r-- | libstdc++-v3/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++-v3/acinclude.m4 | 7 | ||||
-rwxr-xr-x | libstdc++-v3/configure | 7 |
3 files changed, 8 insertions, 12 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 37f3fc3..ed08283 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2005-06-07 Benjamin Kosnik <bkoz@redhat.com> + + * acinclude.m4 (GLIBCXX_ENABLE_C99): Use C++ compiler for complex + tests. + * configure: Regenerated. + 2005-06-07 Adrian Straetling <straetling@de.ibm.com> * config/cpu/s390/atomicity.h: (__exchange_and_add, diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index 8a99521..1cf013e 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -797,14 +797,10 @@ AC_DEFUN([GLIBCXX_ENABLE_C99], [ in <cmath> in namespace std.]) fi - # Check for the existence of <complex.h> complex functions. + # Check for the existence of <complex.h> complex math 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. - # In addition, need to explicitly specify "C" compilation for this - # one, or else the backwards C++ <complex.h> include will be selected. - save_CXXFLAGS="$CXXFLAGS" - CXXFLAGS="$CXXFLAGS -x c" AC_CHECK_HEADERS(complex.h, ac_has_complex_h=yes, ac_has_complex_h=no) ac_c99_complex=no; if test x"$ac_has_complex_h" = x"yes"; then @@ -851,7 +847,6 @@ AC_DEFUN([GLIBCXX_ENABLE_C99], [ cpowl(tmpld, tmpld); ],[ac_c99_complex=yes], [ac_c99_complex=no]) fi - CXXFLAGS="$save_CXXFLAGS" AC_MSG_RESULT($ac_c99_complex) if test x"$ac_c99_complex" = x"yes"; then AC_DEFINE(_GLIBCXX_USE_C99_COMPLEX, 1, diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index 42a6111..1d36c95 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -6715,14 +6715,10 @@ _ACEOF fi - # Check for the existence of <complex.h> complex functions. + # Check for the existence of <complex.h> complex math 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. - # In addition, need to explicitly specify "C" compilation for this - # one, or else the backwards C++ <complex.h> include will be selected. - save_CXXFLAGS="$CXXFLAGS" - CXXFLAGS="$CXXFLAGS -x c" for ac_header in complex.h do @@ -6964,7 +6960,6 @@ ac_c99_complex=no fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi - CXXFLAGS="$save_CXXFLAGS" echo "$as_me:$LINENO: result: $ac_c99_complex" >&5 echo "${ECHO_T}$ac_c99_complex" >&6 if test x"$ac_c99_complex" = x"yes"; then |