diff options
author | Momchil Velikov <velco@fadata.bg> | 2002-10-17 08:26:21 +0300 |
---|---|---|
committer | Loren J. Rittle <ljrittle@gcc.gnu.org> | 2002-10-17 05:26:21 +0000 |
commit | 58be18836f5c2572379cbcbd29ccb4ef08cdc77e (patch) | |
tree | f1cad971b01717faae84df27b1bfc8af2c083a92 /libstdc++-v3/configure.in | |
parent | d3133e688d46aa668981d013ab331cddccdd4444 (diff) | |
download | gcc-58be18836f5c2572379cbcbd29ccb4ef08cdc77e.zip gcc-58be18836f5c2572379cbcbd29ccb4ef08cdc77e.tar.gz gcc-58be18836f5c2572379cbcbd29ccb4ef08cdc77e.tar.bz2 |
configure.in: Add *-freebsd* to cross list.
2002-10-17 Momchil Velikov <velco@fadata.bg>
Loren J. Rittle <ljrittle@acm.org>
* configure.in: Add *-freebsd* to cross list.
* configure: Rebuilt.
Co-Authored-By: Loren J. Rittle <ljrittle@acm.org>
From-SVN: r58236
Diffstat (limited to 'libstdc++-v3/configure.in')
-rw-r--r-- | libstdc++-v3/configure.in | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/libstdc++-v3/configure.in b/libstdc++-v3/configure.in index f73a4c1..858a245 100644 --- a/libstdc++-v3/configure.in +++ b/libstdc++-v3/configure.in @@ -186,6 +186,39 @@ if test -n "$with_cross_host" || test x"$build" != x"$host"; then AC_DEFINE(HAVE_ISNANL) fi ;; + *-freebsd*) + # 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 sys/resource.h sys/stat.h \ + sys/time.h unistd.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="os/bsd/freebsd" + AC_DEFINE(HAVE_LC_MESSAGES) + AC_DEFINE(HAVE_DRAND48) + AC_DEFINE(HAVE_GETPAGESIZE) + AC_DEFINE(HAVE_SETENV) + AC_DEFINE(HAVE_SIGSETJMP) + AC_DEFINE(HAVE_COPYSIGN) + AC_DEFINE(HAVE_COPYSIGNF) + AC_DEFINE(HAVE_FINITEF) + AC_DEFINE(HAVE_FINITE) + AC_DEFINE(HAVE_FREXPF) + AC_DEFINE(HAVE_HYPOT) + AC_DEFINE(HAVE_HYPOTF) + AC_DEFINE(HAVE_ISINF) + AC_DEFINE(HAVE_ISNAN) + AC_DEFINE(HAVE_ISNANF) + if test x"long_double_math_on_this_cpu" = x"yes"; then + AC_DEFINE(HAVE_FINITEL) + AC_DEFINE(HAVE_ISINFL) + AC_DEFINE(HAVE_ISNANL) + fi + ;; *-mingw32*) AC_CHECK_HEADERS([sys/types.h locale.h float.h]) GLIBCPP_CHECK_LINKER_FEATURES @@ -253,6 +286,34 @@ changequote([,])dnl AC_DEFINE(HAVE_TANF) AC_DEFINE(HAVE_TANHF) ;; + *-freebsd*) + # Must replicate generic section since we don't have strtof or strtold. + AC_DEFINE(HAVE_MMAP) + AC_DEFINE(HAVE_ACOSF) + AC_DEFINE(HAVE_ASINF) + AC_DEFINE(HAVE_ATAN2F) + AC_DEFINE(HAVE_ATANF) + AC_DEFINE(HAVE_CEILF) + AC_DEFINE(HAVE_COPYSIGN) + AC_DEFINE(HAVE_COPYSIGNF) + 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_FREXPF) + 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) + ;; *) # GLIBCPP_CHECK_STDLIB_SUPPORT AC_DEFINE(HAVE_STRTOF) |