diff options
author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-11 00:12:57 +0000 |
---|---|---|
committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-11 00:12:57 +0000 |
commit | a803096302aeff495fe604df57d4cb56930835c5 (patch) | |
tree | cc90028b7b2006140ced1a471f90fed71e0f1742 /libstdc++-v3/configure.in | |
parent | 66a5287e74f3ae963d4701edd9072578adb6ef12 (diff) |
2001-09-10 Benjamin Kosnik <bkoz@redhat.com>
* configure.in: Fix cross compiling math routines. Correct
comments for cross compiling and limits. Add floating point math
routines found in newlib.
* configure: Regenerate.
* acconfig.h: Add macros.
* config.h.in: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45530 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/configure.in')
-rw-r--r-- | libstdc++-v3/configure.in | 52 |
1 files changed, 43 insertions, 9 deletions
diff --git a/libstdc++-v3/configure.in b/libstdc++-v3/configure.in index 00bb59f32e5..ebf969ff830 100644 --- a/libstdc++-v3/configure.in +++ b/libstdc++-v3/configure.in @@ -52,11 +52,20 @@ GLIBCPP_ENABLE_SJLJ_EXCEPTIONS if test -n "$with_cross_host" || test x"$build" != x"$host"; then + # This lets us hard-code the functionality we know + # we'll have in the cross target environment. "Let" is a + # sugar-coated word placed on an especially dull and tedious hack, actually. + # Here's why GLIBCPP_CHECK_MATH_SUPPORT, and other autoconf macros + # that involve linking can't be used: + # "cannot open sim-crt0.o" + # "cannot open crt0.o" + # etc. All this is because there currently exists no unified, + # consistent way for top level CC information to be passed down + # to target directories: newlib includes, newlib linking info, + # libgloss versus newlib crt0.o, etc. When all of this is done, all + # of this hokey, excessive AC_DEFINE junk for crosses can be removed. + # We are being configured with some form of cross compiler. - # mknumeric_limits may not work correctly, either because the - # compiler may not run on this machine, may not be able to link - # executables, or may produce executables we can't run on this - # machine. Thus, just use the pre-generated include/bits/limits_generic.h GLIBCPP_IS_CROSS_COMPILING=1 # If Canadian cross, then don't pick up tools from the build @@ -97,6 +106,7 @@ if test -n "$with_cross_host" || test x"$build" != x"$host"; then AC_DEFINE(HAVE_FLOORF) AC_DEFINE(HAVE_FMODF) AC_DEFINE(HAVE_FREXPF) + AC_DEFINE(HAVE_HYPOTF) AC_DEFINE(HAVE_ISINF) AC_DEFINE(HAVE_ISINFF) AC_DEFINE(HAVE_ISNAN) @@ -132,6 +142,7 @@ if test -n "$with_cross_host" || test x"$build" != x"$host"; then AC_DEFINE(HAVE_FLOORL) AC_DEFINE(HAVE_FMODL) AC_DEFINE(HAVE_FREXPL) + AC_DEFINE(HAVE_HYPOTL) AC_DEFINE(HAVE_ISINFL) AC_DEFINE(HAVE_ISNANL) AC_DEFINE(HAVE_LDEXPL) @@ -156,17 +167,40 @@ if test -n "$with_cross_host" || test x"$build" != x"$host"; then AC_DEFINE(HAVE_MMAP) ;; *) - # We assume newlib. This lets us hard-code the functions we know - # we'll have. + # We assume newlib. + # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT + # GLIBCPP_CHECK_MATH_SUPPORT AC_DEFINE(HAVE_FINITE) + AC_DEFINE(HAVE_HYPOT) AC_DEFINE(HAVE_ISNAN) - AC_DEFINE(HAVE_ISNANF) AC_DEFINE(HAVE_ISINF) + + AC_DEFINE(HAVE_ACOSF) + AC_DEFINE(HAVE_ASINF) + AC_DEFINE(HAVE_ATAN2F) + AC_DEFINE(HAVE_ATANF) + AC_DEFINE(HAVE_CEILF) + AC_DEFINE(HAVE_COSF) + AC_DEFINE(HAVE_COSHF) + AC_DEFINE(HAVE_EXPF) + AC_DEFINE(HAVE_FABSF) + AC_DEFINE(HAVE_FLOORF) + AC_DEFINE(HAVE_FMODF) + AC_DEFINE(HAVE_HYPOTF) + AC_DEFINE(HAVE_ISNANF) AC_DEFINE(HAVE_ISINFF) + AC_DEFINE(HAVE_LDEXPF) + AC_DEFINE(HAVE_LOG10F) + AC_DEFINE(HAVE_LOGF) + AC_DEFINE(HAVE_MODFF) + AC_DEFINE(HAVE_POWF) + AC_DEFINE(HAVE_SINF) + AC_DEFINE(HAVE_SINHF) + AC_DEFINE(HAVE_SQRTF) + AC_DEFINE(HAVE_TANF) + AC_DEFINE(HAVE_TANHF) os_include_dir="config/os/newlib" - - # need to check for faster f versions of math functions, ie sinf? ;; esac else |