Commit f280fdf4 by Benjamin Kosnik Committed by Benjamin Kosnik

configure.in: Fix cross compiling math routines.


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.

From-SVN: r45530
parent 2c3fcba6
2001-09-10 Benjamin Kosnik <bkoz@redhat.com> 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.
2001-09-10 Benjamin Kosnik <bkoz@redhat.com>
* config/locale/moneypunct_members_generic.cc * config/locale/moneypunct_members_generic.cc
(money_base::_S_construct_pattern): Remove unused parameters. (money_base::_S_construct_pattern): Remove unused parameters.
......
...@@ -52,6 +52,18 @@ ...@@ -52,6 +52,18 @@
// Define if you have the modfl function. // Define if you have the modfl function.
#undef HAVE_MODFL #undef HAVE_MODFL
// Define if you have the expf function.
#undef HAVE_EXPF
// Define if you have the expl function.
#undef HAVE_EXPL
// Define if you have the hypotf function.
#undef HAVE_HYPOTF
// Define if you have the hypotl function.
#undef HAVE_HYPOTL
// Define if the compiler/host combination has __builtin_abs // Define if the compiler/host combination has __builtin_abs
#undef HAVE___BUILTIN_ABS #undef HAVE___BUILTIN_ABS
......
...@@ -36,6 +36,18 @@ ...@@ -36,6 +36,18 @@
// Define if you have the modfl function. // Define if you have the modfl function.
#undef HAVE_MODFL #undef HAVE_MODFL
// Define if you have the expf function.
#undef HAVE_EXPF
// Define if you have the expl function.
#undef HAVE_EXPL
// Define if you have the hypotf function.
#undef HAVE_HYPOTF
// Define if you have the hypotl function.
#undef HAVE_HYPOTL
// Define if the compiler/host combination has __builtin_abs // Define if the compiler/host combination has __builtin_abs
#undef HAVE___BUILTIN_ABS #undef HAVE___BUILTIN_ABS
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -52,11 +52,20 @@ GLIBCPP_ENABLE_SJLJ_EXCEPTIONS ...@@ -52,11 +52,20 @@ GLIBCPP_ENABLE_SJLJ_EXCEPTIONS
if test -n "$with_cross_host" || test x"$build" != x"$host"; then 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. # 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 GLIBCPP_IS_CROSS_COMPILING=1
# If Canadian cross, then don't pick up tools from the build # 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 ...@@ -97,6 +106,7 @@ if test -n "$with_cross_host" || test x"$build" != x"$host"; then
AC_DEFINE(HAVE_FLOORF) AC_DEFINE(HAVE_FLOORF)
AC_DEFINE(HAVE_FMODF) AC_DEFINE(HAVE_FMODF)
AC_DEFINE(HAVE_FREXPF) AC_DEFINE(HAVE_FREXPF)
AC_DEFINE(HAVE_HYPOTF)
AC_DEFINE(HAVE_ISINF) AC_DEFINE(HAVE_ISINF)
AC_DEFINE(HAVE_ISINFF) AC_DEFINE(HAVE_ISINFF)
AC_DEFINE(HAVE_ISNAN) AC_DEFINE(HAVE_ISNAN)
...@@ -132,6 +142,7 @@ if test -n "$with_cross_host" || test x"$build" != x"$host"; then ...@@ -132,6 +142,7 @@ if test -n "$with_cross_host" || test x"$build" != x"$host"; then
AC_DEFINE(HAVE_FLOORL) AC_DEFINE(HAVE_FLOORL)
AC_DEFINE(HAVE_FMODL) AC_DEFINE(HAVE_FMODL)
AC_DEFINE(HAVE_FREXPL) AC_DEFINE(HAVE_FREXPL)
AC_DEFINE(HAVE_HYPOTL)
AC_DEFINE(HAVE_ISINFL) AC_DEFINE(HAVE_ISINFL)
AC_DEFINE(HAVE_ISNANL) AC_DEFINE(HAVE_ISNANL)
AC_DEFINE(HAVE_LDEXPL) AC_DEFINE(HAVE_LDEXPL)
...@@ -156,17 +167,40 @@ if test -n "$with_cross_host" || test x"$build" != x"$host"; then ...@@ -156,17 +167,40 @@ if test -n "$with_cross_host" || test x"$build" != x"$host"; then
AC_DEFINE(HAVE_MMAP) AC_DEFINE(HAVE_MMAP)
;; ;;
*) *)
# We assume newlib. This lets us hard-code the functions we know # We assume newlib.
# we'll have. # GLIBCPP_CHECK_BUILTIN_MATH_SUPPORT
# GLIBCPP_CHECK_MATH_SUPPORT
AC_DEFINE(HAVE_FINITE) AC_DEFINE(HAVE_FINITE)
AC_DEFINE(HAVE_HYPOT)
AC_DEFINE(HAVE_ISNAN) AC_DEFINE(HAVE_ISNAN)
AC_DEFINE(HAVE_ISNANF)
AC_DEFINE(HAVE_ISINF) 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_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" os_include_dir="config/os/newlib"
# need to check for faster f versions of math functions, ie sinf?
;; ;;
esac esac
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment