diff options
author | sje <sje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-31 17:12:35 +0000 |
---|---|---|
committer | sje <sje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-31 17:12:35 +0000 |
commit | d543aa0af36a626009a2bf6c30fead7f695d790e (patch) | |
tree | 6b578de9dd58011acc05d5406f069f861fc44122 /libstdc++-v3/configure | |
parent | eae21ed177bec1982cab2f69450f3743cd764629 (diff) | |
download | gcc-d543aa0af36a626009a2bf6c30fead7f695d790e.tar.gz |
2013-10-31 Steve Ellcey <sellcey@mips.com>
* configure.ac: Add header checks for fenv.h and complex.h.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204270 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/configure')
-rwxr-xr-x | libstdc++-v3/configure | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index c436cb98636..4be21b10eb3 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -18677,6 +18677,25 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu +# Check for fenv.h and complex.h before GLIBCXX_CHECK_C99_TR1 +# so that the check is done with the C compiler (not C++). +# Checking with C++ can break a canadian cross build if either +# file does not exist in C but does in C++. +for ac_header in fenv.h complex.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +eval as_val=\$$as_ac_Header + if test "x$as_val" = x""yes; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + # For C99 support to TR1. |