configure.in: Add support for NetBSD cross compiles.

* configure.in: Add support for NetBSD cross compiles.
* configure: Regenerate.

From-SVN: r48443
This commit is contained in:
Jason Thorpe 2002-01-01 18:12:06 +00:00 committed by Jason Thorpe
parent af328d8dd7
commit 40ded87230
3 changed files with 1536 additions and 730 deletions

View File

@ -1,3 +1,8 @@
2002-01-01 Jason Thorpe <thorpej@wasabisystems.com>
* configure.in: Add support for NetBSD cross compiles.
* configure: Regenerate.
2001-12-31 Paolo Carlini <pcarlini@unitus.it>
* include/ext/iterator: Add #include <bits/std_iterator.h>, tweak.

2244
libstdc++-v3/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -124,6 +124,23 @@ if test -n "$with_cross_host" || test x"$build" != x"$host"; then
AC_DEFINE(HAVE_SINCOS)
AC_DEFINE(HAVE_SINCOSF)
;;
*-netbsd*)
# Check for available headers.
AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \
machine/endian.h machine/param.h sys/machine.h sys/types.h \
fp.h locale.h float.h inttypes.h])
SECTION_FLAGS='-ffunction-sections -fdata-sections'
AC_SUBST(SECTION_FLAGS)
GLIBCPP_CHECK_LINKER_FEATURES
GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT
GLIBCPP_CHECK_WCHAR_T_SUPPORT
os_include_dir="config/os/bsd/netbsd"
AC_DEFINE(HAVE_COPYSIGN)
AC_DEFINE(HAVE_COPYSIGNF)
AC_DEFINE(HAVE_FINITEF)
AC_DEFINE(HAVE_FREXPF)
AC_DEFINE(HAVE_HYPOTF)
;;
*)
os_include_dir="config/os/newlib"
AC_DEFINE(HAVE_HYPOT)