diff --git a/config.mk b/config.mk
index 3bf48d6f..07374589 100644
--- a/config.mk
+++ b/config.mk
@@ -54,13 +54,13 @@ USE_LIBC = internal
# you know what you are doing.
# Available architectures. Do not change
-export AVAILABLE_ARCHS := amd64 i386 aarch64
+export AVAILABLE_ARCHS := amd64 i386 arm aarch64
ifneq ($(filter $(OSARCH),$(AVAILABLE_ARCHS)),$(OSARCH))
$(error OSARCH=$(OSARCH) is not a supported architecture. Choose one of: $(AVAILABLE_ARCHS))
endif
-ARCH_MAP := amd64=x86_64 i386=i386 aarch64=aarch64
+ARCH_MAP := amd64=x86_64 i386=i386 arm=arm aarch64=aarch64
COMPILER_ARCH := $(patsubst $(OSARCH)=%,%,$(filter $(OSARCH)=%,$(ARCH_MAP)))
__CONF_QEMU_PATH := $(__CONF_QEMU_PATH)/bin/qemu-system-$(COMPILER_ARCH)
TOOLCHAIN_PREFIX := $(COMPILER_PATH)/bin/$(COMPILER_ARCH)-fennix-
diff --git a/tools/Makefile b/tools/Makefile
index 0014b9d2..0dfc7f66 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -2,7 +2,9 @@ WORKING_DIR = $(CURDIR)
CROSS_DIR=$(WORKING_DIR)/cross
export PATH := $(CROSS_DIR):$(PATH)
-QEMU_VERSION = 9.2.0
+BINUTILS_TAG = binutils-2_43_1
+GCC_TAG = releases/gcc-14.2.0
+QEMU_TAG = v9.2.0
default:
$(error Please specify a target)
@@ -30,12 +32,12 @@ endif
__clone_qemu:
ifeq ("$(wildcard ./qemu)", "")
- git clone --depth 1 -b v${QEMU_VERSION} --single-branch https://gitlab.com/qemu-project/qemu.git qemu
+ git clone --depth 1 -b ${QEMU_TAG} --single-branch https://gitlab.com/qemu-project/qemu.git qemu
else
$(info > TOOLS: Reseting qemu...)
cd qemu && \
git fetch origin && \
- git reset --hard v${QEMU_VERSION} && \
+ git reset --hard ${QEMU_TAG} && \
git clean -dfx
$(info > TOOLS: Operation completed for qemu)
endif
@@ -44,24 +46,24 @@ endif
__clone_binutils:
ifeq ("$(wildcard ./binutils-gdb)", "")
- git clone --depth 1 -b binutils-2_43_1 --single-branch git://sourceware.org/git/binutils-gdb.git binutils-gdb
+ git clone --depth 1 -b $(BINUTILS_TAG) --single-branch git://sourceware.org/git/binutils-gdb.git binutils-gdb
else
$(info > TOOLS: Reseting binutils-gdb...)
cd binutils-gdb && \
git fetch origin && \
- git reset --hard binutils-2_43_1 && \
+ git reset --hard $(BINUTILS_TAG) && \
git clean -dfx
$(info > TOOLS: Operation completed for binutils-gdb)
endif
__clone_gcc:
ifeq ("$(wildcard ./gcc)", "")
- git clone --depth 1 -b releases/gcc-14.2.0 --single-branch git://gcc.gnu.org/git/gcc.git gcc
+ git clone --depth 1 -b $(GCC_TAG) --single-branch git://gcc.gnu.org/git/gcc.git gcc
else
$(info > TOOLS: Reseting gcc...)
cd gcc && \
git fetch origin && \
- git reset --hard releases/gcc-14.2.0 && \
+ git reset --hard $(GCC_TAG) && \
git clean -dfx
$(info > TOOLS: Operation completed for gcc)
endif
@@ -94,30 +96,57 @@ __clone_all_no_qemu: __clone_binutils __clone_gcc
__clone_all: __clone_qemu __clone_all_no_qemu
-do_qemu: __prep_cross
+cross_dev:
+ $(MAKE) __clone_binutils
+ $(MAKE) __clone_gcc
+ $(MAKE) __clone_qemu
+ $(MAKE) __patch_cross_binutils
+ $(MAKE) __patch_cross_gcc
+ $(MAKE) __patch_cross_qemu
+
+update_patches:
+ifeq ("$(wildcard ./binutils-gdb.patch.bk)", "")
+ mv binutils-gdb.patch binutils-gdb.patch.bk
+endif
+ifeq ("$(wildcard ./gcc.patch.bk)", "")
+ mv gcc.patch gcc.patch.bk
+endif
+ifeq ("$(wildcard ./qemu.patch.bk)", "")
+ mv qemu.patch qemu.patch.bk
+endif
+# binutils-gdb
+ cd binutils-gdb && \
+ git add . && \
+ git diff --cached > ../binutils-gdb.patch
+# gcc
+ cd gcc && \
+ git add . && \
+ git diff --cached > ../gcc.patch
+# qemu
+ cd qemu && \
+ git add . && \
+ git diff --cached > ../qemu.patch
+
+do_qemu:
$(MAKE) __patch_cross_qemu
$(MAKE) __prep_cross
cd qemu && \
- bash ./configure --target-list=x86_64-softmmu,i386-softmmu,aarch64-softmmu \
+ bash ./configure --target-list=x86_64-softmmu,i386-softmmu,arm-softmmu,aarch64-softmmu \
--prefix="$(CROSS_DIR)" \
--enable-gtk --disable-tools \
--disable-gio --disable-virtfs --disable-vnc \
--disable-opengl && \
make --quiet -j$(shell nproc) && make --quiet install
-do_binutils:
-# x86_64
- $(MAKE) __patch_cross_binutils
- $(MAKE) __prep_cross
+__do_binutils_x86_64:
cd binutils-gdb/__build && \
../configure --target=x86_64-fennix \
--prefix="$(CROSS_DIR)" --disable-nls --quiet \
--with-sysroot --enable-shared --disable-werror && \
make --quiet all -j$(shell nproc) && \
make --quiet install
-# i386
- $(MAKE) __patch_cross_binutils
- $(MAKE) __prep_cross
+
+__do_binutils_i386:
cd binutils-gdb/__build && \
../configure --target=i386-fennix \
--prefix="$(CROSS_DIR)" --disable-nls --quiet \
@@ -125,10 +154,37 @@ do_binutils:
make --quiet all -j$(shell nproc) && \
make --quiet install
-do_gcc:
-# x86_64
- $(MAKE) __patch_cross_gcc
+__do_binutils_arm:
+ cd binutils-gdb/__build && \
+ ../configure --target=arm-fennix \
+ --prefix="$(CROSS_DIR)" --disable-nls --quiet \
+ --with-sysroot --enable-shared --disable-werror && \
+ make --quiet all -j$(shell nproc) && \
+ make --quiet install
+
+__do_binutils_aarch64:
+ cd binutils-gdb/__build && \
+ ../configure --target=aarch64-fennix \
+ --prefix="$(CROSS_DIR)" --disable-nls --quiet \
+ --with-sysroot --enable-shared --disable-werror && \
+ make --quiet all -j$(shell nproc) && \
+ make --quiet install
+
+__reset_binutils:
+ $(MAKE) __patch_cross_binutils
$(MAKE) __prep_cross
+
+do_binutils:
+ $(MAKE) __reset_binutils
+ $(MAKE) __do_binutils_x86_64
+ $(MAKE) __reset_binutils
+ $(MAKE) __do_binutils_i386
+ $(MAKE) __reset_binutils
+ $(MAKE) __do_binutils_arm
+ $(MAKE) __reset_binutils
+ $(MAKE) __do_binutils_aarch64
+
+__do_gcc_x86_64:
cd gcc/__build && \
../configure --target=x86_64-fennix --quiet \
--prefix="$(CROSS_DIR)" --disable-nls --enable-default-pie \
@@ -137,9 +193,8 @@ do_gcc:
make --quiet all-target-libgcc -j$(shell nproc) && \
make --quiet install-gcc -j$(shell nproc) && \
make --quiet install-target-libgcc -j$(shell nproc)
-# i386
- $(MAKE) __patch_cross_gcc
- $(MAKE) __prep_cross
+
+__do_gcc_i386:
cd gcc/__build && \
../configure --target=i386-fennix --quiet \
--prefix="$(CROSS_DIR)" --disable-nls --enable-default-pie \
@@ -148,3 +203,37 @@ do_gcc:
make --quiet all-target-libgcc -j$(shell nproc) && \
make --quiet install-gcc -j$(shell nproc) && \
make --quiet install-target-libgcc -j$(shell nproc)
+
+__do_gcc_arm:
+ cd gcc/__build && \
+ ../configure --target=arm-fennix --quiet \
+ --prefix="$(CROSS_DIR)" --disable-nls --enable-default-pie \
+ --enable-languages=c,c++ --enable-shared --without-headers && \
+ make --quiet all-gcc -j$(shell nproc) && \
+ make --quiet all-target-libgcc -j$(shell nproc) && \
+ make --quiet install-gcc -j$(shell nproc) && \
+ make --quiet install-target-libgcc -j$(shell nproc)
+
+__do_gcc_aarch64:
+ cd gcc/__build && \
+ ../configure --target=aarch64-fennix --quiet \
+ --prefix="$(CROSS_DIR)" --disable-nls --enable-default-pie \
+ --enable-languages=c,c++ --enable-shared --without-headers && \
+ make --quiet all-gcc -j$(shell nproc) && \
+ make --quiet all-target-libgcc -j$(shell nproc) && \
+ make --quiet install-gcc -j$(shell nproc) && \
+ make --quiet install-target-libgcc -j$(shell nproc)
+
+__reset_gcc:
+ $(MAKE) __patch_cross_gcc
+ $(MAKE) __prep_cross
+
+do_gcc:
+ $(MAKE) __reset_gcc
+ $(MAKE) __do_gcc_x86_64
+ $(MAKE) __reset_gcc
+ $(MAKE) __do_gcc_i386
+ $(MAKE) __reset_gcc
+ $(MAKE) __do_gcc_arm
+ $(MAKE) __reset_gcc
+ $(MAKE) __do_gcc_aarch64
diff --git a/tools/README.md b/tools/README.md
index 06e601bb..6eafd1a2 100644
--- a/tools/README.md
+++ b/tools/README.md
@@ -22,4 +22,6 @@ In this directory, you will find:
## Useful links
- [Create git patches](https://stackoverflow.com/a/15438863/9352057)
+- [binutils git tags](https://sourceware.org/git/?p=binutils-gdb.git;a=tags)
+- [gcc git tags](https://gcc.gnu.org/git/?p=gcc.git;a=tags)
- [QEMU git tags](https://gitlab.com/qemu-project/qemu/-/tags)
diff --git a/tools/binutils-gdb.patch b/tools/binutils-gdb.patch
index 6a74f6bf..aaab2c77 100644
--- a/tools/binutils-gdb.patch
+++ b/tools/binutils-gdb.patch
@@ -1,8 +1,17 @@
+diff --git a/.gitignore b/.gitignore
+index 0a40764c..9aa17853 100644
+--- a/.gitignore
++++ b/.gitignore
+@@ -74,3 +74,4 @@ stamp-*
+ /gmp*
+ /isl*
+ /gettext*
++/__build
diff --git a/bfd/config.bfd b/bfd/config.bfd
-index 6553aac1e99..40429e9bf43 100644
+index 6553aac1..39008568 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
-@@ -1502,6 +1502,20 @@ case "${targ}" in
+@@ -1502,6 +1502,31 @@ case "${targ}" in
;;
#endif
@@ -12,121 +21,30 @@ index 6553aac1e99..40429e9bf43 100644
+ targ64_selvecs=x86_64_elf64_vec
+ ;;
+
++ arm*-*-fennix*)
++ targ_defvec=arm_elf32_le_vec
++ targ_selvecs="arm_elf32_fdpic_le_vec arm_elf32_be_vec arm_elf32_fdpic_be_vec"
++ ;;
++
+#ifdef BFD64
+ x86_64-*-fennix*)
+ targ_defvec=x86_64_elf64_vec
+ targ_selvecs=i386_elf32_vec
+ want64=true
+ ;;
++
++ aarch64-*-fennix*)
++ targ_defvec=aarch64_elf64_le_vec
++ targ_selvecs="aarch64_elf64_be_vec arm_elf32_le_vec arm_elf32_be_vec"
++ want64=true
++ ;;
+#endif
+
# END OF targmatch.h
bpf-*-*)
echo "*** Configuration $targ is not fully supported." >&2
-diff --git a/config.sub b/config.sub
-index 2c6a07ab3c3..d279b50dc8b 100755
---- a/config.sub
-+++ b/config.sub
-@@ -1768,7 +1768,7 @@ case $os in
- | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
- | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
- | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \
-- | fiwix* | mlibc* | cos* | mbr* | ironclad* )
-+ | fiwix* | mlibc* | cos* | mbr* | ironclad* | fennix* )
- ;;
- # This one is extra strict with allowed versions
- sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
-diff --git a/gas/configure.tgt b/gas/configure.tgt
-index d58f21873a3..fa4215b9cff 100644
---- a/gas/configure.tgt
-+++ b/gas/configure.tgt
-@@ -267,6 +267,7 @@ case ${generic_target} in
- i386-*-*nt*) fmt=coff em=pe ;;
- i386-*-rdos*) fmt=elf ;;
- i386-*-darwin*) fmt=macho ;;
-+ i386-*-fennix*) fmt=elf em=gnu ;;
-
- ia16-*-elf*) fmt=elf ;;
-
-diff --git a/ld/Makefile.am b/ld/Makefile.am
-index 6a9833e5775..fb4f866ef55 100644
---- a/ld/Makefile.am
-+++ b/ld/Makefile.am
-@@ -279,6 +279,7 @@ ALL_EMULATION_SOURCES = \
- eelf_i386.c \
- eelf_i386_be.c \
- eelf_i386_fbsd.c \
-+ eelf_i386_fennix.c \
- eelf_i386_haiku.c \
- eelf_i386_ldso.c \
- eelf_i386_sol2.c \
-@@ -463,6 +464,7 @@ ALL_64_EMULATION_SOURCES = \
- eelf_x86_64.c \
- eelf_x86_64_cloudabi.c \
- eelf_x86_64_fbsd.c \
-+ eelf_x86_64_fennix.c \
- eelf_x86_64_haiku.c \
- eelf_x86_64_sol2.c \
- ehppa64linux.c \
-diff --git a/ld/configure.tgt b/ld/configure.tgt
-index f937f78b876..ea5491a1447 100644
---- a/ld/configure.tgt
-+++ b/ld/configure.tgt
-@@ -409,6 +409,11 @@ i[3-7]86-*-elf* | i[3-7]86-*-rtems* | i[3-7]86-*-genode*)
- i[3-7]86-*-dragonfly*) targ_emul=elf_i386
- targ_extra_emuls="elf_iamcu i386bsd"
- ;;
-+i[3-7]86-*-fennix*)
-+ targ_emul=elf_i386_fennix
-+ targ_extra_emuls=elf_i386
-+ targ64_extra_emuls="elf_x86_64_fennix elf_x86_64"
-+ ;;
- i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
- targ_emul=elf_i386_fbsd
- targ_extra_emuls="elf_i386 elf_iamcu i386bsd"
-@@ -1045,6 +1050,9 @@ x86_64-*-elf* | x86_64-*-rtems* | x86_64-*-fuchsia* | x86_64-*-genode*)
- x86_64-*-dragonfly*) targ_emul=elf_x86_64
- targ_extra_emuls="elf_i386 elf_iamcu"
- ;;
-+x86_64-*-fennix*) targ_emul=elf_x86_64_fennix
-+ targ_extra_emuls="elf_i386_fennix elf_x86_64 elf_i386"
-+ ;;
- x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
- targ_emul=elf_x86_64_fbsd
- targ_extra_emuls="elf_i386_fbsd elf_x86_64 elf_i386 elf_iamcu"
-@@ -1112,6 +1120,10 @@ case "${target}" in
- NATIVE_LIB_DIRS='/lib /usr/lib /usr/pkg/lib /usr/local/lib'
- ;;
-
-+*-*-fennix*)
-+ NATIVE_LIB_DIRS='/lib /usr/lib'
-+ ;;
-+
- *-*-freebsd*)
- NATIVE_LIB_DIRS='/lib /usr/lib /usr/local/lib'
- ;;
-diff --git a/ld/emulparams/elf_i386_fennix.sh b/ld/emulparams/elf_i386_fennix.sh
-new file mode 100644
-index 00000000000..19b75a06cf9
---- /dev/null
-+++ b/ld/emulparams/elf_i386_fennix.sh
-@@ -0,0 +1,4 @@
-+source_sh ${srcdir}/emulparams/elf_i386.sh
-+GENERATE_SHLIB_SCRIPT=yes
-+GENERATE_PIE_SCRIPT=yes
-+TEXT_START_ADDR=0x400000
-diff --git a/ld/emulparams/elf_x86_64_fennix.sh b/ld/emulparams/elf_x86_64_fennix.sh
-new file mode 100644
-index 00000000000..1509ec7fe53
---- /dev/null
-+++ b/ld/emulparams/elf_x86_64_fennix.sh
-@@ -0,0 +1,4 @@
-+source_sh ${srcdir}/emulparams/elf_x86_64.sh
-+GENERATE_SHLIB_SCRIPT=yes
-+GENERATE_PIE_SCRIPT=yes
-+TEXT_START_ADDR=0x400000
diff --git a/binutils/readelf.c b/binutils/readelf.c
-index 5d1cf9c3..671a8081 100644
+index 5d1cf9c3..2606967f 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -20909,6 +20909,30 @@ get_gnu_elf_note_type (unsigned e_type)
@@ -272,6 +190,47 @@ index 5d1cf9c3..671a8081 100644
else if (startswith (pnote->namedata, "stapsdt"))
return print_stapsdt_note (pnote);
else if (startswith (pnote->namedata, "CORE"))
+diff --git a/config.sub b/config.sub
+index 2c6a07ab..d279b50d 100755
+--- a/config.sub
++++ b/config.sub
+@@ -1768,7 +1768,7 @@ case $os in
+ | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
+ | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
+ | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \
+- | fiwix* | mlibc* | cos* | mbr* | ironclad* )
++ | fiwix* | mlibc* | cos* | mbr* | ironclad* | fennix* )
+ ;;
+ # This one is extra strict with allowed versions
+ sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
+diff --git a/gas/configure.tgt b/gas/configure.tgt
+index d58f2187..bd76e187 100644
+--- a/gas/configure.tgt
++++ b/gas/configure.tgt
+@@ -127,6 +127,7 @@ generic_target=${cpu_type}-$vendor-$os
+ # Note: This table is alpha-sorted, please try to keep it that way.
+ case ${generic_target} in
+ aarch64*-*-elf*) fmt=elf;;
++ aarch64*-*-fennix*) fmt=elf em=gnu ;;
+ aarch64*-*-fuchsia*) fmt=elf;;
+ aarch64*-*-haiku*) fmt=elf em=haiku ;;
+ aarch64*-*-genode*) fmt=elf;;
+@@ -167,6 +168,7 @@ case ${generic_target} in
+ arm-wince-pe | arm-*-wince | arm*-*-mingw32ce* | arm*-*-cegcc*)
+ fmt=coff em=wince-pe ;;
+ arm-*-pe) fmt=coff em=pe ;;
++ arm*-*-fennix*) fmt=elf em=gnu ;;
+ arm-*-fuchsia*) fmt=elf ;;
+ arm-*-haiku*) fmt=elf em=haiku ;;
+
+@@ -267,6 +269,7 @@ case ${generic_target} in
+ i386-*-*nt*) fmt=coff em=pe ;;
+ i386-*-rdos*) fmt=elf ;;
+ i386-*-darwin*) fmt=macho ;;
++ i386-*-fennix*) fmt=elf em=gnu ;;
+
+ ia16-*-elf*) fmt=elf ;;
+
diff --git a/include/elf/common.h b/include/elf/common.h
index c9920e77..a714bb2a 100644
--- a/include/elf/common.h
@@ -292,12 +251,147 @@ index c9920e77..a714bb2a 100644
/* Values for notes in non-core files using name "GNU". */
#define NT_GNU_ABI_TAG 1
-diff --git a/.gitignore b/.gitignore
-index 0a40764c..9aa17853 100644
---- a/.gitignore
-+++ b/.gitignore
-@@ -74,3 +74,4 @@ stamp-*
- /gmp*
- /isl*
- /gettext*
-+/__build
+diff --git a/ld/Makefile.am b/ld/Makefile.am
+index 6a9833e5..bf4c134d 100644
+--- a/ld/Makefile.am
++++ b/ld/Makefile.am
+@@ -165,6 +165,7 @@ ALL_EMULATION_SOURCES = \
+ earcv2elfx.c \
+ earm_wince_pe.c \
+ earmelf.c \
++ earmelf_fennix.c \
+ earmelf_fbsd.c \
+ earmelf_fuchsia.c \
+ earmelf_haiku.c \
+@@ -279,6 +280,7 @@ ALL_EMULATION_SOURCES = \
+ eelf_i386.c \
+ eelf_i386_be.c \
+ eelf_i386_fbsd.c \
++ eelf_i386_fennix.c \
+ eelf_i386_haiku.c \
+ eelf_i386_ldso.c \
+ eelf_i386_sol2.c \
+@@ -383,6 +385,7 @@ ALL_64_EMULATION_SOURCES = \
+ eaarch64elf32.c \
+ eaarch64elf32b.c \
+ eaarch64elfb.c \
++ eaarch64fennix.c \
+ eaarch64fbsd.c \
+ eaarch64fbsdb.c \
+ eaarch64haiku.c \
+@@ -463,6 +466,7 @@ ALL_64_EMULATION_SOURCES = \
+ eelf_x86_64.c \
+ eelf_x86_64_cloudabi.c \
+ eelf_x86_64_fbsd.c \
++ eelf_x86_64_fennix.c \
+ eelf_x86_64_haiku.c \
+ eelf_x86_64_sol2.c \
+ ehppa64linux.c \
+diff --git a/ld/configure.tgt b/ld/configure.tgt
+index f937f78b..3aa8c738 100644
+--- a/ld/configure.tgt
++++ b/ld/configure.tgt
+@@ -92,6 +92,9 @@ aarch64-*-elf | aarch64-*-rtems* | aarch64-*-genode*)
+ aarch64-*-cloudabi*) targ_emul=aarch64cloudabi
+ targ_extra_emuls=aarch64cloudabib
+ ;;
++aarch64-*-fennix*) targ_emul=aarch64fennix
++ targ_extra_emuls="aarch64fennixb aarch64elf"
++ ;;
+ aarch64-*-freebsd*) targ_emul=aarch64fbsd
+ targ_extra_emuls="aarch64fbsdb aarch64elf"
+ ;;
+@@ -183,6 +186,10 @@ arm-wince-pe | arm-*-wince | arm*-*-mingw32ce*)
+ arm-*-pe) targ_emul=armpe
+ targ_extra_ofiles="deffilep.o pe-dll.o"
+ ;;
++arm*-*-fennix*)
++ targ_emul=armelf_fennix
++ targ_extra_emuls="armelfb_fennix armelf"
++ ;;
+ arm*b-*-freebsd*) targ_emul=armelfb_fbsd
+ targ_extra_emuls="armelf_fbsd armelf"
+ ;;
+@@ -409,6 +416,11 @@ i[3-7]86-*-elf* | i[3-7]86-*-rtems* | i[3-7]86-*-genode*)
+ i[3-7]86-*-dragonfly*) targ_emul=elf_i386
+ targ_extra_emuls="elf_iamcu i386bsd"
+ ;;
++i[3-7]86-*-fennix*)
++ targ_emul=elf_i386_fennix
++ targ_extra_emuls=elf_i386
++ targ64_extra_emuls="elf_x86_64_fennix elf_x86_64"
++ ;;
+ i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
+ targ_emul=elf_i386_fbsd
+ targ_extra_emuls="elf_i386 elf_iamcu i386bsd"
+@@ -1045,6 +1057,9 @@ x86_64-*-elf* | x86_64-*-rtems* | x86_64-*-fuchsia* | x86_64-*-genode*)
+ x86_64-*-dragonfly*) targ_emul=elf_x86_64
+ targ_extra_emuls="elf_i386 elf_iamcu"
+ ;;
++x86_64-*-fennix*) targ_emul=elf_x86_64_fennix
++ targ_extra_emuls="elf_i386_fennix elf_x86_64 elf_i386"
++ ;;
+ x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
+ targ_emul=elf_x86_64_fbsd
+ targ_extra_emuls="elf_i386_fbsd elf_x86_64 elf_i386 elf_iamcu"
+@@ -1112,6 +1127,10 @@ case "${target}" in
+ NATIVE_LIB_DIRS='/lib /usr/lib /usr/pkg/lib /usr/local/lib'
+ ;;
+
++*-*-fennix*)
++ NATIVE_LIB_DIRS='/lib /usr/lib'
++ ;;
++
+ *-*-freebsd*)
+ NATIVE_LIB_DIRS='/lib /usr/lib /usr/local/lib'
+ ;;
+diff --git a/ld/emulparams/aarch64fennix.sh b/ld/emulparams/aarch64fennix.sh
+new file mode 100644
+index 00000000..ff5d1e20
+--- /dev/null
++++ b/ld/emulparams/aarch64fennix.sh
+@@ -0,0 +1,4 @@
++source_sh ${srcdir}/emulparams/aarch64elf.sh
++
++COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
++TEXT_START_ADDR=0x00400000
+diff --git a/ld/emulparams/armelf_fennix.sh b/ld/emulparams/armelf_fennix.sh
+new file mode 100644
+index 00000000..694377d8
+--- /dev/null
++++ b/ld/emulparams/armelf_fennix.sh
+@@ -0,0 +1,4 @@
++source_sh ${srcdir}/emulparams/armelf.sh
++
++GENERATE_SHLIB_SCRIPT=yes
++GENERATE_PIE_SCRIPT=yes
+diff --git a/ld/emulparams/armelfb_fennix.sh b/ld/emulparams/armelfb_fennix.sh
+new file mode 100644
+index 00000000..694377d8
+--- /dev/null
++++ b/ld/emulparams/armelfb_fennix.sh
+@@ -0,0 +1,4 @@
++source_sh ${srcdir}/emulparams/armelf.sh
++
++GENERATE_SHLIB_SCRIPT=yes
++GENERATE_PIE_SCRIPT=yes
+diff --git a/ld/emulparams/elf_i386_fennix.sh b/ld/emulparams/elf_i386_fennix.sh
+new file mode 100644
+index 00000000..a7210cc0
+--- /dev/null
++++ b/ld/emulparams/elf_i386_fennix.sh
+@@ -0,0 +1,4 @@
++source_sh ${srcdir}/emulparams/elf_i386.sh
++GENERATE_SHLIB_SCRIPT=yes
++GENERATE_PIE_SCRIPT=yes
++TEXT_START_ADDR=0x00400000
+diff --git a/ld/emulparams/elf_x86_64_fennix.sh b/ld/emulparams/elf_x86_64_fennix.sh
+new file mode 100644
+index 00000000..6612131d
+--- /dev/null
++++ b/ld/emulparams/elf_x86_64_fennix.sh
+@@ -0,0 +1,4 @@
++source_sh ${srcdir}/emulparams/elf_x86_64.sh
++GENERATE_SHLIB_SCRIPT=yes
++GENERATE_PIE_SCRIPT=yes
++TEXT_START_ADDR=0x00400000
diff --git a/tools/gcc.patch b/tools/gcc.patch
index cd466b0f..2e7e7d97 100644
--- a/tools/gcc.patch
+++ b/tools/gcc.patch
@@ -1,5 +1,14 @@
+diff --git a/.gitignore b/.gitignore
+index 93a16b0b9..14e244b55 100644
+--- a/.gitignore
++++ b/.gitignore
+@@ -70,3 +70,4 @@ stamp-*
+ /gmp*
+ /isl*
+ /gettext*
++/__build
diff --git a/config.sub b/config.sub
-index 38f3d037a78..e15a98ae991 100755
+index 38f3d037a..e15a98ae9 100755
--- a/config.sub
+++ b/config.sub
@@ -1749,7 +1749,7 @@ case $os in
@@ -12,7 +21,7 @@ index 38f3d037a78..e15a98ae991 100755
# This one is extra strict with allowed versions
sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
diff --git a/gcc/config.gcc b/gcc/config.gcc
-index 95c91ee02be..2f3e3b006dd 100644
+index 95c91ee02..cbcaac06b 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -825,6 +825,14 @@ case ${target} in
@@ -30,27 +39,183 @@ index 95c91ee02be..2f3e3b006dd 100644
*-*-freebsd*)
# This is the generic ELF configuration of FreeBSD. Later
# machine-specific sections may refine and add to this
-@@ -1981,6 +1989,14 @@ x86_64-*-openbsd*)
- gas=yes
- gnu_ld=yes
+@@ -1227,6 +1235,16 @@ aarch64*-*-elf | aarch64*-*-fuchsia* | aarch64*-*-rtems*)
+ done
+ TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'`
+ ;;
++aarch64*-*-fennix*)
++ tm_file="${tm_file} elfos.h glibc-stdint.h aarch64/aarch64-elf.h aarch64/aarch64-errata.h"
++ tm_file="${tm_file} fennix.h aarch64/aarch64-fennix.h"
++ tmake_file="${tmake_file} aarch64/t-aarch64 aarch64/t-aarch64-fennix"
++ case $target in
++ aarch64_be-*)
++ tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
++ ;;
++ esac
++ ;;
+ aarch64*-*-freebsd*)
+ tm_file="${tm_file} elfos.h ${fbsd_tm_file}"
+ tm_file="${tm_file} aarch64/aarch64-elf.h aarch64/aarch64-errata.h aarch64/aarch64-freebsd.h"
+@@ -1358,6 +1376,30 @@ arm-wrs-vxworks7*)
+ target_cpu_cname="generic-armv7-a"
+ need_64bit_hwint=yes
+ ;;
++arm*-*-fennix*)
++ case $target in
++ arm*b-*-fennix*)
++ tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
++ ;;
++ esac
++ tm_file="${tm_file} elfos.h glibc-stdint.h arm/elf.h arm/bpabi.h arm/aout.h" # this generates a lot of redefined warnings but at least it compiles
++ tm_file="${tm_file} fennix.h"
++ tmake_file="${tmake_file} arm/t-arm arm/t-bpabi arm/t-fennix"
++ case $target in
++ armv6*-*-fennix*)
++ target_cpu_cname="arm1176jzf-s"
++ tm_defines="${tm_defines} TARGET_ARM_HARD_FLOAT=1"
++ ;;
++ armv7*-*-fennix*)
++ target_cpu_cname="generic-armv7-a"
++ tm_defines="${tm_defines} TARGET_ARM_HARD_FLOAT=1"
++ ;;
++ *)
++ target_cpu_cname="arm9"
++ ;;
++ esac
++ with_tls=${with_tls:-gnu}
++ ;;
+ arm*-*-freebsd*) # ARM FreeBSD EABI
+ tm_file="elfos.h ${fbsd_tm_file} arm/elf.h"
+ case $target in
+@@ -1953,6 +1995,14 @@ x86_64-*-dragonfly*)
+ tm_file="${tm_file} i386/unix.h i386/att.h elfos.h dragonfly.h dragonfly-stdint.h i386/x86-64.h i386/dragonfly.h"
+ tmake_file="${tmake_file} i386/t-crtstuff"
;;
+i[34567]86-*-fennix*)
-+ tmake_file="${tmake_file} i386/t-fennix"
+ tm_file="${tm_file} i386/unix.h i386/att.h elfos.h glibc-stdint.h i386/i386elf.h fennix.h"
++ tmake_file="${tmake_file} i386/t-fennix"
+ ;;
+x86_64-*-fennix*)
-+ tmake_file="${tmake_file} i386/t-fennix"
+ tm_file="${tm_file} i386/unix.h i386/att.h elfos.h glibc-stdint.h i386/i386elf.h i386/x86-64.h fennix.h"
++ tmake_file="${tmake_file} i386/t-fennix"
+ ;;
- i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
- # Intel 80386's running GNU/*
- # with ELF format using glibc 2
+ i[34567]86-*-freebsd*)
+ tm_file="${tm_file} i386/unix.h i386/att.h elfos.h ${fbsd_tm_file} i386/freebsd.h"
+ ;;
+diff --git a/gcc/config/aarch64/aarch64-fennix.h b/gcc/config/aarch64/aarch64-fennix.h
+new file mode 100644
+index 000000000..dafd8f253
+--- /dev/null
++++ b/gcc/config/aarch64/aarch64-fennix.h
+@@ -0,0 +1,34 @@
++/* Definitions for AArch64 running Fennix
++ Copyright (C) 2016-2024 Free Software Foundation, Inc.
++
++ This file is part of GCC.
++
++ GCC is free software; you can redistribute it and/or modify it
++ under the terms of the GNU General Public License as published by
++ the Free Software Foundation; either version 3, or (at your option)
++ any later version.
++
++ GCC is distributed in the hope that it will be useful, but
++ WITHOUT ANY WARRANTY; without even the implied warranty of
++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ General Public License for more details.
++
++ You should have received a copy of the GNU General Public License
++ along with GCC; see the file COPYING3. If not see
++ . */
++
++#ifndef GCC_AARCH64_FENNIX_H
++#define GCC_AARCH64_FENNIX_H
++
++// #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
++
++// #undef TARGET_BINDS_LOCAL_P
++// #define TARGET_BINDS_LOCAL_P default_binds_local_p_2
++
++// #undef MCOUNT_NAME
++// #define MCOUNT_NAME ".mcount"
++
++// #undef ASM_GENERATE_INTERNAL_LABEL
++// #define ASM_GENERATE_INTERNAL_LABEL(LABEL, PREFIX, NUM) sprintf(LABEL, "*.L%s%lu", PREFIX, (unsigned long)(NUM))
++
++#endif /* GCC_AARCH64_FENNIX_H */
+diff --git a/gcc/config/aarch64/t-aarch64-fennix b/gcc/config/aarch64/t-aarch64-fennix
+new file mode 100644
+index 000000000..f93866693
+--- /dev/null
++++ b/gcc/config/aarch64/t-aarch64-fennix
+@@ -0,0 +1,19 @@
++# Multilibs for Fennix.
++#
++# Copyright (C) 2018-2024 Free Software Foundation, Inc.
++#
++# This file is part of GCC.
++#
++# GCC is free software; you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation; either version 3, or (at your option)
++# any later version.
++#
++# GCC is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with GCC; see the file COPYING3. If not see
++# .
+diff --git a/gcc/config/arm/t-fennix b/gcc/config/arm/t-fennix
+new file mode 100644
+index 000000000..f93866693
+--- /dev/null
++++ b/gcc/config/arm/t-fennix
+@@ -0,0 +1,19 @@
++# Multilibs for Fennix.
++#
++# Copyright (C) 2018-2024 Free Software Foundation, Inc.
++#
++# This file is part of GCC.
++#
++# GCC is free software; you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation; either version 3, or (at your option)
++# any later version.
++#
++# GCC is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with GCC; see the file COPYING3. If not see
++# .
diff --git a/gcc/config/fennix.h b/gcc/config/fennix.h
new file mode 100644
-index 00000000000..3739abe7983
+index 000000000..4cd35f5a0
--- /dev/null
+++ b/gcc/config/fennix.h
-@@ -0,0 +1,59 @@
+@@ -0,0 +1,77 @@
++/* Base configuration file for all Fennix targets.
++ Copyright (C) 2016-2024 Free Software Foundation, Inc.
++
++ This file is part of GCC.
++
++ GCC is free software; you can redistribute it and/or modify it
++ under the terms of the GNU General Public License as published by
++ the Free Software Foundation; either version 3, or (at your option)
++ any later version.
++
++ GCC is distributed in the hope that it will be useful, but
++ WITHOUT ANY WARRANTY; without even the implied warranty of
++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ General Public License for more details.
++
++ You should have received a copy of the GNU General Public License
++ along with GCC; see the file COPYING3. If not see
++ . */
+
+#undef TARGET_FENNIX
+#define TARGET_FENNIX 1
@@ -112,17 +277,65 @@ index 00000000000..3739abe7983
+ } while (0);
diff --git a/gcc/config/i386/t-fennix b/gcc/config/i386/t-fennix
new file mode 100644
-index 00000000000..8223e63c0c9
+index 000000000..632634dac
--- /dev/null
+++ b/gcc/config/i386/t-fennix
-@@ -0,0 +1,2 @@
+@@ -0,0 +1,22 @@
++# Multilibs for Fennix.
++#
++# Copyright (C) 2018-2024 Free Software Foundation, Inc.
++#
++# This file is part of GCC.
++#
++# GCC is free software; you can redistribute it and/or modify
++# it under the terms of the GNU General Public License as published by
++# the Free Software Foundation; either version 3, or (at your option)
++# any later version.
++#
++# GCC is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++# GNU General Public License for more details.
++#
++# You should have received a copy of the GNU General Public License
++# along with GCC; see the file COPYING3. If not see
++# .
++
+MULTILIB_OPTIONS += mno-red-zone
+MULTILIB_DIRNAMES += no-red-zone
diff --git a/libgcc/config.host b/libgcc/config.host
-index e75a7af647f..12ecba7be60 100644
+index e75a7af64..572fff51e 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
-@@ -760,6 +760,14 @@ x86_64-*-dragonfly*)
+@@ -418,6 +418,14 @@ aarch64*-*-elf | aarch64*-*-rtems*)
+ tmake_file="${tmake_file} t-dfprules"
+ md_unwind_header=aarch64/aarch64-unwind.h
+ ;;
++aarch64*-*-fennix*)
++ extra_parts="$extra_parts crtfastmath.o"
++ tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
++ tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
++ tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
++ tmake_file="${tmake_file} t-dfprules"
++ md_unwind_header=aarch64/aarch64-unwind.h
++ ;;
+ aarch64*-*-freebsd*)
+ extra_parts="$extra_parts crtfastmath.o"
+ tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
+@@ -512,6 +520,12 @@ arm-wrs-vxworks7*)
+ unwind_header=config/arm/unwind-arm.h
+ extra_parts="$extra_parts crti.o crtn.o"
+ ;;
++arm*-*-fennix*)
++ tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix arm/t-elf arm/t-bpabi"
++ tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
++ tm_file="${tm_file} arm/bpabi-lib.h"
++ unwind_header=config/arm/unwind-arm.h
++ ;;
+ arm*-*-freebsd*) # ARM FreeBSD EABI
+ tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix arm/t-elf"
+ tmake_file="${tmake_file} arm/t-bpabi arm/t-freebsd"
+@@ -760,6 +774,14 @@ x86_64-*-dragonfly*)
tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
md_unwind_header=i386/dragonfly-unwind.h
;;
@@ -137,8 +350,3237 @@ index e75a7af647f..12ecba7be60 100644
i[34567]86-*-freebsd*)
tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
md_unwind_header=i386/freebsd-unwind.h
+diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
+index 21abaeb07..8dcc519be 100755
+--- a/libstdc++-v3/configure
++++ b/libstdc++-v3/configure
+@@ -38122,6 +38122,3224 @@ done
+
+ ;;
+
++ *-fennix*)
++
++ # All these tests are for C++; save the language and the compiler flags.
++ # The CXXFLAGS thing is suspicious, but based on similar bits previously
++ # found in GLIBCXX_CONFIGURE.
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ ac_test_CXXFLAGS="${CXXFLAGS+set}"
++ ac_save_CXXFLAGS="$CXXFLAGS"
++
++ # Check for -ffunction-sections -fdata-sections
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
++$as_echo_n "checking for g++ that supports -ffunction-sections -fdata-sections... " >&6; }
++ CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections'
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++int foo; void bar() { };
++int
++main ()
++{
++
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ ac_fdsections=yes
++else
++ ac_fdsections=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ if test "$ac_test_CXXFLAGS" = set; then
++ CXXFLAGS="$ac_save_CXXFLAGS"
++ else
++ # this is the suspicious part
++ CXXFLAGS=''
++ fi
++ if test x"$ac_fdsections" = x"yes"; then
++ SECTION_FLAGS='-ffunction-sections -fdata-sections'
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
++$as_echo "$ac_fdsections" >&6; }
++
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++
++
++ # If we're not using GNU ld, then there's no point in even trying these
++ # tests. Check for that first. We should have already tested for gld
++ # by now (in libtool), but require it now just to be safe...
++ test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
++ test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
++
++
++
++ # The name set by libtool depends on the version of libtool. Shame on us
++ # for depending on an impl detail, but c'est la vie. Older versions used
++ # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
++ # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
++ # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
++ # set (hence we're using an older libtool), then set it.
++ if test x${with_gnu_ld+set} != xset; then
++ if test x${ac_cv_prog_gnu_ld+set} != xset; then
++ # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
++ with_gnu_ld=no
++ else
++ with_gnu_ld=$ac_cv_prog_gnu_ld
++ fi
++ fi
++
++ # Start by getting the version number. I think the libtool test already
++ # does some of this, but throws away the result.
++ glibcxx_ld_is_gold=no
++ glibcxx_ld_is_mold=no
++ if test x"$with_gnu_ld" = x"yes"; then
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
++$as_echo_n "checking for ld version... " >&6; }
++
++ if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
++ glibcxx_ld_is_gold=yes
++ elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
++ glibcxx_ld_is_mold=yes
++ fi
++ ldver=`$LD --version 2>/dev/null |
++ sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
++
++ glibcxx_gnu_ld_version=`echo $ldver | \
++ $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
++$as_echo "$glibcxx_gnu_ld_version" >&6; }
++ fi
++
++ # Set --gc-sections.
++ glibcxx_have_gc_sections=no
++ if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
++ if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
++ glibcxx_have_gc_sections=yes
++ fi
++ else
++ glibcxx_gcsections_min_ld=21602
++ if test x"$with_gnu_ld" = x"yes" &&
++ test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
++ glibcxx_have_gc_sections=yes
++ fi
++ fi
++ if test "$glibcxx_have_gc_sections" = "yes"; then
++ # Sufficiently young GNU ld it is! Joy and bunny rabbits!
++ # NB: This flag only works reliably after 2.16.1. Configure tests
++ # for this are difficult, so hard wire a value that should work.
++
++ ac_test_CFLAGS="${CFLAGS+set}"
++ ac_save_CFLAGS="$CFLAGS"
++ CFLAGS='-Wl,--gc-sections'
++
++ # Check for -Wl,--gc-sections
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
++$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
++ if test x$gcc_no_link = xyes; then
++ as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
++fi
++cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++ int one(void) { return 1; }
++ int two(void) { return 2; }
++
++int
++main ()
++{
++ two();
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_c_try_link "$LINENO"; then :
++ ac_gcsections=yes
++else
++ ac_gcsections=no
++fi
++rm -f core conftest.err conftest.$ac_objext \
++ conftest$ac_exeext conftest.$ac_ext
++ if test "$ac_gcsections" = "yes"; then
++ rm -f conftest.c
++ touch conftest.c
++ if $CC -c conftest.c; then
++ if $LD --gc-sections -o conftest conftest.o 2>&1 | \
++ grep "Warning: gc-sections option ignored" > /dev/null; then
++ ac_gcsections=no
++ fi
++ fi
++ rm -f conftest.c conftest.o conftest
++ fi
++ if test "$ac_gcsections" = "yes"; then
++ SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
++$as_echo "$ac_gcsections" >&6; }
++
++ if test "$ac_test_CFLAGS" = set; then
++ CFLAGS="$ac_save_CFLAGS"
++ else
++ # this is the suspicious part
++ CFLAGS=''
++ fi
++ fi
++
++ # Set -z,relro.
++ # Note this is only for shared objects.
++ ac_ld_relro=no
++ if test x"$with_gnu_ld" = x"yes"; then
++ # cygwin and mingw uses PE, which has no ELF relro support,
++ # multi target ld may confuse configure machinery
++ case "$host" in
++ *-*-cygwin*)
++ ;;
++ *-*-mingw*)
++ ;;
++ *)
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
++$as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
++ cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
++ if test -n "$cxx_z_relo"; then
++ OPT_LDFLAGS="-Wl,-z,relro"
++ ac_ld_relro=yes
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
++$as_echo "$ac_ld_relro" >&6; }
++ esac
++ fi
++
++ # Set linker optimization flags.
++ if test x"$with_gnu_ld" = x"yes"; then
++ OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
++ fi
++
++
++
++
++
++ ac_test_CXXFLAGS="${CXXFLAGS+set}"
++ ac_save_CXXFLAGS="$CXXFLAGS"
++ CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
++$as_echo_n "checking for sin in -lm... " >&6; }
++if ${ac_cv_lib_m_sin+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++ ac_check_lib_save_LIBS=$LIBS
++LIBS="-lm $LIBS"
++if test x$gcc_no_link = xyes; then
++ as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
++fi
++cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++
++/* Override any GCC internal prototype to avoid an error.
++ Use char because int might match the return type of a GCC
++ builtin and then its argument prototype would still apply. */
++#ifdef __cplusplus
++extern "C"
++#endif
++char sin ();
++int
++main ()
++{
++return sin ();
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_c_try_link "$LINENO"; then :
++ ac_cv_lib_m_sin=yes
++else
++ ac_cv_lib_m_sin=no
++fi
++rm -f core conftest.err conftest.$ac_objext \
++ conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
++$as_echo "$ac_cv_lib_m_sin" >&6; }
++if test "x$ac_cv_lib_m_sin" = xyes; then :
++ libm="-lm"
++fi
++
++ ac_save_LIBS="$LIBS"
++ LIBS="$LIBS $libm"
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
++$as_echo_n "checking for isinf declaration... " >&6; }
++ if test x${glibcxx_cv_func_isinf_use+set} != xset; then
++ if ${glibcxx_cv_func_isinf_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++ #ifdef HAVE_IEEEFP_H
++ #include
++ #endif
++
++int
++main ()
++{
++ isinf(0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_isinf_use=yes
++else
++ glibcxx_cv_func_isinf_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
++$as_echo "$glibcxx_cv_func_isinf_use" >&6; }
++
++ if test x$glibcxx_cv_func_isinf_use = x"yes"; then
++ for ac_func in isinf
++do :
++ ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
++if test "x$ac_cv_func_isinf" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_ISINF 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
++$as_echo_n "checking for isnan declaration... " >&6; }
++ if test x${glibcxx_cv_func_isnan_use+set} != xset; then
++ if ${glibcxx_cv_func_isnan_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++ #ifdef HAVE_IEEEFP_H
++ #include
++ #endif
++
++int
++main ()
++{
++ isnan(0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_isnan_use=yes
++else
++ glibcxx_cv_func_isnan_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
++$as_echo "$glibcxx_cv_func_isnan_use" >&6; }
++
++ if test x$glibcxx_cv_func_isnan_use = x"yes"; then
++ for ac_func in isnan
++do :
++ ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
++if test "x$ac_cv_func_isnan" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_ISNAN 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
++$as_echo_n "checking for finite declaration... " >&6; }
++ if test x${glibcxx_cv_func_finite_use+set} != xset; then
++ if ${glibcxx_cv_func_finite_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++ #ifdef HAVE_IEEEFP_H
++ #include
++ #endif
++
++int
++main ()
++{
++ finite(0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_finite_use=yes
++else
++ glibcxx_cv_func_finite_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
++$as_echo "$glibcxx_cv_func_finite_use" >&6; }
++
++ if test x$glibcxx_cv_func_finite_use = x"yes"; then
++ for ac_func in finite
++do :
++ ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
++if test "x$ac_cv_func_finite" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_FINITE 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
++$as_echo_n "checking for sincos declaration... " >&6; }
++ if test x${glibcxx_cv_func_sincos_use+set} != xset; then
++ if ${glibcxx_cv_func_sincos_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++ sincos(0, 0, 0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_sincos_use=yes
++else
++ glibcxx_cv_func_sincos_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
++$as_echo "$glibcxx_cv_func_sincos_use" >&6; }
++
++ if test x$glibcxx_cv_func_sincos_use = x"yes"; then
++ for ac_func in sincos
++do :
++ ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
++if test "x$ac_cv_func_sincos" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_SINCOS 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
++$as_echo_n "checking for fpclass declaration... " >&6; }
++ if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
++ if ${glibcxx_cv_func_fpclass_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++ #ifdef HAVE_IEEEFP_H
++ #include
++ #endif
++
++int
++main ()
++{
++ fpclass(0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_fpclass_use=yes
++else
++ glibcxx_cv_func_fpclass_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
++$as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
++
++ if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
++ for ac_func in fpclass
++do :
++ ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
++if test "x$ac_cv_func_fpclass" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_FPCLASS 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
++$as_echo_n "checking for qfpclass declaration... " >&6; }
++ if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
++ if ${glibcxx_cv_func_qfpclass_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++ #ifdef HAVE_IEEEFP_H
++ #include
++ #endif
++
++int
++main ()
++{
++ qfpclass(0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_qfpclass_use=yes
++else
++ glibcxx_cv_func_qfpclass_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
++$as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
++
++ if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
++ for ac_func in qfpclass
++do :
++ ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
++if test "x$ac_cv_func_qfpclass" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_QFPCLASS 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
++$as_echo_n "checking for hypot declaration... " >&6; }
++ if test x${glibcxx_cv_func_hypot_use+set} != xset; then
++ if ${glibcxx_cv_func_hypot_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++ hypot(0, 0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_hypot_use=yes
++else
++ glibcxx_cv_func_hypot_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
++$as_echo "$glibcxx_cv_func_hypot_use" >&6; }
++
++ if test x$glibcxx_cv_func_hypot_use = x"yes"; then
++ for ac_func in hypot
++do :
++ ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
++if test "x$ac_cv_func_hypot" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_HYPOT 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
++$as_echo_n "checking for float trig functions... " >&6; }
++ if ${glibcxx_cv_func_float_trig_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_float_trig_use=yes
++else
++ glibcxx_cv_func_float_trig_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++fi
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
++$as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
++ if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
++ for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
++do :
++ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
++ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
++if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
++ cat >>confdefs.h <<_ACEOF
++#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
++$as_echo_n "checking for float round functions... " >&6; }
++ if ${glibcxx_cv_func_float_round_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++ceilf (0); floorf (0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_float_round_use=yes
++else
++ glibcxx_cv_func_float_round_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++fi
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
++$as_echo "$glibcxx_cv_func_float_round_use" >&6; }
++ if test x$glibcxx_cv_func_float_round_use = x"yes"; then
++ for ac_func in ceilf floorf
++do :
++ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
++ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
++if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
++ cat >>confdefs.h <<_ACEOF
++#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
++$as_echo_n "checking for expf declaration... " >&6; }
++ if test x${glibcxx_cv_func_expf_use+set} != xset; then
++ if ${glibcxx_cv_func_expf_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++ #ifdef HAVE_IEEEFP_H
++ #include
++ #endif
++
++int
++main ()
++{
++ expf(0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_expf_use=yes
++else
++ glibcxx_cv_func_expf_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
++$as_echo "$glibcxx_cv_func_expf_use" >&6; }
++
++ if test x$glibcxx_cv_func_expf_use = x"yes"; then
++ for ac_func in expf
++do :
++ ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
++if test "x$ac_cv_func_expf" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_EXPF 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
++$as_echo_n "checking for isnanf declaration... " >&6; }
++ if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
++ if ${glibcxx_cv_func_isnanf_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++ #ifdef HAVE_IEEEFP_H
++ #include
++ #endif
++
++int
++main ()
++{
++ isnanf(0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_isnanf_use=yes
++else
++ glibcxx_cv_func_isnanf_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
++$as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
++
++ if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
++ for ac_func in isnanf
++do :
++ ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
++if test "x$ac_cv_func_isnanf" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_ISNANF 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
++$as_echo_n "checking for isinff declaration... " >&6; }
++ if test x${glibcxx_cv_func_isinff_use+set} != xset; then
++ if ${glibcxx_cv_func_isinff_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++ #ifdef HAVE_IEEEFP_H
++ #include
++ #endif
++
++int
++main ()
++{
++ isinff(0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_isinff_use=yes
++else
++ glibcxx_cv_func_isinff_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
++$as_echo "$glibcxx_cv_func_isinff_use" >&6; }
++
++ if test x$glibcxx_cv_func_isinff_use = x"yes"; then
++ for ac_func in isinff
++do :
++ ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
++if test "x$ac_cv_func_isinff" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_ISINFF 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
++$as_echo_n "checking for atan2f declaration... " >&6; }
++ if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
++ if ${glibcxx_cv_func_atan2f_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++ atan2f(0, 0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_atan2f_use=yes
++else
++ glibcxx_cv_func_atan2f_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
++$as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
++
++ if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
++ for ac_func in atan2f
++do :
++ ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
++if test "x$ac_cv_func_atan2f" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_ATAN2F 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
++$as_echo_n "checking for fabsf declaration... " >&6; }
++ if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
++ if ${glibcxx_cv_func_fabsf_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++ #ifdef HAVE_IEEEFP_H
++ #include
++ #endif
++
++int
++main ()
++{
++ fabsf(0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_fabsf_use=yes
++else
++ glibcxx_cv_func_fabsf_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
++$as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
++
++ if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
++ for ac_func in fabsf
++do :
++ ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
++if test "x$ac_cv_func_fabsf" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_FABSF 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
++$as_echo_n "checking for fmodf declaration... " >&6; }
++ if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
++ if ${glibcxx_cv_func_fmodf_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++ fmodf(0, 0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_fmodf_use=yes
++else
++ glibcxx_cv_func_fmodf_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
++$as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
++
++ if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
++ for ac_func in fmodf
++do :
++ ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
++if test "x$ac_cv_func_fmodf" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_FMODF 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
++$as_echo_n "checking for frexpf declaration... " >&6; }
++ if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
++ if ${glibcxx_cv_func_frexpf_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++ frexpf(0, 0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_frexpf_use=yes
++else
++ glibcxx_cv_func_frexpf_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
++$as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
++
++ if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
++ for ac_func in frexpf
++do :
++ ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
++if test "x$ac_cv_func_frexpf" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_FREXPF 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
++$as_echo_n "checking for hypotf declaration... " >&6; }
++ if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
++ if ${glibcxx_cv_func_hypotf_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++ hypotf(0, 0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_hypotf_use=yes
++else
++ glibcxx_cv_func_hypotf_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
++$as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
++
++ if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
++ for ac_func in hypotf
++do :
++ ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
++if test "x$ac_cv_func_hypotf" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_HYPOTF 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
++$as_echo_n "checking for ldexpf declaration... " >&6; }
++ if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
++ if ${glibcxx_cv_func_ldexpf_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++ ldexpf(0, 0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_ldexpf_use=yes
++else
++ glibcxx_cv_func_ldexpf_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
++$as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
++
++ if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
++ for ac_func in ldexpf
++do :
++ ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
++if test "x$ac_cv_func_ldexpf" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_LDEXPF 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
++$as_echo_n "checking for logf declaration... " >&6; }
++ if test x${glibcxx_cv_func_logf_use+set} != xset; then
++ if ${glibcxx_cv_func_logf_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++ #ifdef HAVE_IEEEFP_H
++ #include
++ #endif
++
++int
++main ()
++{
++ logf(0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_logf_use=yes
++else
++ glibcxx_cv_func_logf_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
++$as_echo "$glibcxx_cv_func_logf_use" >&6; }
++
++ if test x$glibcxx_cv_func_logf_use = x"yes"; then
++ for ac_func in logf
++do :
++ ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
++if test "x$ac_cv_func_logf" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_LOGF 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
++$as_echo_n "checking for log10f declaration... " >&6; }
++ if test x${glibcxx_cv_func_log10f_use+set} != xset; then
++ if ${glibcxx_cv_func_log10f_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++ #ifdef HAVE_IEEEFP_H
++ #include
++ #endif
++
++int
++main ()
++{
++ log10f(0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_log10f_use=yes
++else
++ glibcxx_cv_func_log10f_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
++$as_echo "$glibcxx_cv_func_log10f_use" >&6; }
++
++ if test x$glibcxx_cv_func_log10f_use = x"yes"; then
++ for ac_func in log10f
++do :
++ ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
++if test "x$ac_cv_func_log10f" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_LOG10F 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
++$as_echo_n "checking for modff declaration... " >&6; }
++ if test x${glibcxx_cv_func_modff_use+set} != xset; then
++ if ${glibcxx_cv_func_modff_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++ modff(0, 0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_modff_use=yes
++else
++ glibcxx_cv_func_modff_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
++$as_echo "$glibcxx_cv_func_modff_use" >&6; }
++
++ if test x$glibcxx_cv_func_modff_use = x"yes"; then
++ for ac_func in modff
++do :
++ ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
++if test "x$ac_cv_func_modff" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_MODFF 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
++$as_echo_n "checking for modf declaration... " >&6; }
++ if test x${glibcxx_cv_func_modf_use+set} != xset; then
++ if ${glibcxx_cv_func_modf_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++ modf(0, 0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_modf_use=yes
++else
++ glibcxx_cv_func_modf_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
++$as_echo "$glibcxx_cv_func_modf_use" >&6; }
++
++ if test x$glibcxx_cv_func_modf_use = x"yes"; then
++ for ac_func in modf
++do :
++ ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
++if test "x$ac_cv_func_modf" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_MODF 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
++$as_echo_n "checking for powf declaration... " >&6; }
++ if test x${glibcxx_cv_func_powf_use+set} != xset; then
++ if ${glibcxx_cv_func_powf_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++ powf(0, 0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_powf_use=yes
++else
++ glibcxx_cv_func_powf_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
++$as_echo "$glibcxx_cv_func_powf_use" >&6; }
++
++ if test x$glibcxx_cv_func_powf_use = x"yes"; then
++ for ac_func in powf
++do :
++ ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
++if test "x$ac_cv_func_powf" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_POWF 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
++$as_echo_n "checking for sqrtf declaration... " >&6; }
++ if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
++ if ${glibcxx_cv_func_sqrtf_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++ #ifdef HAVE_IEEEFP_H
++ #include
++ #endif
++
++int
++main ()
++{
++ sqrtf(0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_sqrtf_use=yes
++else
++ glibcxx_cv_func_sqrtf_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
++$as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
++
++ if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
++ for ac_func in sqrtf
++do :
++ ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
++if test "x$ac_cv_func_sqrtf" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_SQRTF 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
++$as_echo_n "checking for sincosf declaration... " >&6; }
++ if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
++ if ${glibcxx_cv_func_sincosf_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++ sincosf(0, 0, 0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_sincosf_use=yes
++else
++ glibcxx_cv_func_sincosf_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
++$as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
++
++ if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
++ for ac_func in sincosf
++do :
++ ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
++if test "x$ac_cv_func_sincosf" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_SINCOSF 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
++$as_echo_n "checking for finitef declaration... " >&6; }
++ if test x${glibcxx_cv_func_finitef_use+set} != xset; then
++ if ${glibcxx_cv_func_finitef_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++ #ifdef HAVE_IEEEFP_H
++ #include
++ #endif
++
++int
++main ()
++{
++ finitef(0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_finitef_use=yes
++else
++ glibcxx_cv_func_finitef_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
++$as_echo "$glibcxx_cv_func_finitef_use" >&6; }
++
++ if test x$glibcxx_cv_func_finitef_use = x"yes"; then
++ for ac_func in finitef
++do :
++ ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
++if test "x$ac_cv_func_finitef" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_FINITEF 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
++$as_echo_n "checking for long double trig functions... " >&6; }
++ if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_long_double_trig_use=yes
++else
++ glibcxx_cv_func_long_double_trig_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++fi
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
++$as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
++ if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
++ for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
++do :
++ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
++ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
++if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
++ cat >>confdefs.h <<_ACEOF
++#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
++$as_echo_n "checking for long double round functions... " >&6; }
++ if ${glibcxx_cv_func_long_double_round_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++ceill (0); floorl (0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_long_double_round_use=yes
++else
++ glibcxx_cv_func_long_double_round_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++fi
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
++$as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
++ if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
++ for ac_func in ceill floorl
++do :
++ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
++ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
++if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
++ cat >>confdefs.h <<_ACEOF
++#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
++$as_echo_n "checking for isnanl declaration... " >&6; }
++ if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
++ if ${glibcxx_cv_func_isnanl_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++ #ifdef HAVE_IEEEFP_H
++ #include
++ #endif
++
++int
++main ()
++{
++ isnanl(0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_isnanl_use=yes
++else
++ glibcxx_cv_func_isnanl_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
++$as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
++
++ if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
++ for ac_func in isnanl
++do :
++ ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
++if test "x$ac_cv_func_isnanl" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_ISNANL 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
++$as_echo_n "checking for isinfl declaration... " >&6; }
++ if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
++ if ${glibcxx_cv_func_isinfl_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++ #ifdef HAVE_IEEEFP_H
++ #include
++ #endif
++
++int
++main ()
++{
++ isinfl(0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_isinfl_use=yes
++else
++ glibcxx_cv_func_isinfl_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
++$as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
++
++ if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
++ for ac_func in isinfl
++do :
++ ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
++if test "x$ac_cv_func_isinfl" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_ISINFL 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
++$as_echo_n "checking for atan2l declaration... " >&6; }
++ if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
++ if ${glibcxx_cv_func_atan2l_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++ atan2l(0, 0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_atan2l_use=yes
++else
++ glibcxx_cv_func_atan2l_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
++$as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
++
++ if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
++ for ac_func in atan2l
++do :
++ ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
++if test "x$ac_cv_func_atan2l" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_ATAN2L 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
++$as_echo_n "checking for expl declaration... " >&6; }
++ if test x${glibcxx_cv_func_expl_use+set} != xset; then
++ if ${glibcxx_cv_func_expl_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++ #ifdef HAVE_IEEEFP_H
++ #include
++ #endif
++
++int
++main ()
++{
++ expl(0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_expl_use=yes
++else
++ glibcxx_cv_func_expl_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
++$as_echo "$glibcxx_cv_func_expl_use" >&6; }
++
++ if test x$glibcxx_cv_func_expl_use = x"yes"; then
++ for ac_func in expl
++do :
++ ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
++if test "x$ac_cv_func_expl" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_EXPL 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
++$as_echo_n "checking for fabsl declaration... " >&6; }
++ if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
++ if ${glibcxx_cv_func_fabsl_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++ #ifdef HAVE_IEEEFP_H
++ #include
++ #endif
++
++int
++main ()
++{
++ fabsl(0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_fabsl_use=yes
++else
++ glibcxx_cv_func_fabsl_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
++$as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
++
++ if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
++ for ac_func in fabsl
++do :
++ ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
++if test "x$ac_cv_func_fabsl" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_FABSL 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
++$as_echo_n "checking for fmodl declaration... " >&6; }
++ if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
++ if ${glibcxx_cv_func_fmodl_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++ fmodl(0, 0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_fmodl_use=yes
++else
++ glibcxx_cv_func_fmodl_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
++$as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
++
++ if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
++ for ac_func in fmodl
++do :
++ ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
++if test "x$ac_cv_func_fmodl" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_FMODL 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
++$as_echo_n "checking for frexpl declaration... " >&6; }
++ if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
++ if ${glibcxx_cv_func_frexpl_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++ frexpl(0, 0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_frexpl_use=yes
++else
++ glibcxx_cv_func_frexpl_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
++$as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
++
++ if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
++ for ac_func in frexpl
++do :
++ ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
++if test "x$ac_cv_func_frexpl" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_FREXPL 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
++$as_echo_n "checking for hypotl declaration... " >&6; }
++ if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
++ if ${glibcxx_cv_func_hypotl_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++ hypotl(0, 0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_hypotl_use=yes
++else
++ glibcxx_cv_func_hypotl_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
++$as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
++
++ if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
++ for ac_func in hypotl
++do :
++ ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
++if test "x$ac_cv_func_hypotl" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_HYPOTL 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
++$as_echo_n "checking for ldexpl declaration... " >&6; }
++ if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
++ if ${glibcxx_cv_func_ldexpl_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++ ldexpl(0, 0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_ldexpl_use=yes
++else
++ glibcxx_cv_func_ldexpl_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
++$as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
++
++ if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
++ for ac_func in ldexpl
++do :
++ ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
++if test "x$ac_cv_func_ldexpl" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_LDEXPL 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
++$as_echo_n "checking for logl declaration... " >&6; }
++ if test x${glibcxx_cv_func_logl_use+set} != xset; then
++ if ${glibcxx_cv_func_logl_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++ #ifdef HAVE_IEEEFP_H
++ #include
++ #endif
++
++int
++main ()
++{
++ logl(0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_logl_use=yes
++else
++ glibcxx_cv_func_logl_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
++$as_echo "$glibcxx_cv_func_logl_use" >&6; }
++
++ if test x$glibcxx_cv_func_logl_use = x"yes"; then
++ for ac_func in logl
++do :
++ ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
++if test "x$ac_cv_func_logl" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_LOGL 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
++$as_echo_n "checking for log10l declaration... " >&6; }
++ if test x${glibcxx_cv_func_log10l_use+set} != xset; then
++ if ${glibcxx_cv_func_log10l_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++ #ifdef HAVE_IEEEFP_H
++ #include
++ #endif
++
++int
++main ()
++{
++ log10l(0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_log10l_use=yes
++else
++ glibcxx_cv_func_log10l_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
++$as_echo "$glibcxx_cv_func_log10l_use" >&6; }
++
++ if test x$glibcxx_cv_func_log10l_use = x"yes"; then
++ for ac_func in log10l
++do :
++ ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
++if test "x$ac_cv_func_log10l" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_LOG10L 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
++$as_echo_n "checking for modfl declaration... " >&6; }
++ if test x${glibcxx_cv_func_modfl_use+set} != xset; then
++ if ${glibcxx_cv_func_modfl_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++ modfl(0, 0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_modfl_use=yes
++else
++ glibcxx_cv_func_modfl_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
++$as_echo "$glibcxx_cv_func_modfl_use" >&6; }
++
++ if test x$glibcxx_cv_func_modfl_use = x"yes"; then
++ for ac_func in modfl
++do :
++ ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
++if test "x$ac_cv_func_modfl" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_MODFL 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
++$as_echo_n "checking for powl declaration... " >&6; }
++ if test x${glibcxx_cv_func_powl_use+set} != xset; then
++ if ${glibcxx_cv_func_powl_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++ powl(0, 0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_powl_use=yes
++else
++ glibcxx_cv_func_powl_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
++$as_echo "$glibcxx_cv_func_powl_use" >&6; }
++
++ if test x$glibcxx_cv_func_powl_use = x"yes"; then
++ for ac_func in powl
++do :
++ ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
++if test "x$ac_cv_func_powl" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_POWL 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
++$as_echo_n "checking for sqrtl declaration... " >&6; }
++ if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
++ if ${glibcxx_cv_func_sqrtl_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++ #ifdef HAVE_IEEEFP_H
++ #include
++ #endif
++
++int
++main ()
++{
++ sqrtl(0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_sqrtl_use=yes
++else
++ glibcxx_cv_func_sqrtl_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
++$as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
++
++ if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
++ for ac_func in sqrtl
++do :
++ ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
++if test "x$ac_cv_func_sqrtl" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_SQRTL 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
++$as_echo_n "checking for sincosl declaration... " >&6; }
++ if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
++ if ${glibcxx_cv_func_sincosl_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++ sincosl(0, 0, 0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_sincosl_use=yes
++else
++ glibcxx_cv_func_sincosl_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
++$as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
++
++ if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
++ for ac_func in sincosl
++do :
++ ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
++if test "x$ac_cv_func_sincosl" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_SINCOSL 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
++$as_echo_n "checking for finitel declaration... " >&6; }
++ if test x${glibcxx_cv_func_finitel_use+set} != xset; then
++ if ${glibcxx_cv_func_finitel_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++ #ifdef HAVE_IEEEFP_H
++ #include
++ #endif
++
++int
++main ()
++{
++ finitel(0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_finitel_use=yes
++else
++ glibcxx_cv_func_finitel_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
++$as_echo "$glibcxx_cv_func_finitel_use" >&6; }
++
++ if test x$glibcxx_cv_func_finitel_use = x"yes"; then
++ for ac_func in finitel
++do :
++ ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
++if test "x$ac_cv_func_finitel" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_FINITEL 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++ LIBS="$ac_save_LIBS"
++ CXXFLAGS="$ac_save_CXXFLAGS"
++
++
++ ac_test_CXXFLAGS="${CXXFLAGS+set}"
++ ac_save_CXXFLAGS="$CXXFLAGS"
++ CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
++$as_echo_n "checking for at_quick_exit declaration... " >&6; }
++ if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
++ if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++ at_quick_exit(0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_at_quick_exit_use=yes
++else
++ glibcxx_cv_func_at_quick_exit_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
++$as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
++ if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
++ for ac_func in at_quick_exit
++do :
++ ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
++if test "x$ac_cv_func_at_quick_exit" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_AT_QUICK_EXIT 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
++$as_echo_n "checking for quick_exit declaration... " >&6; }
++ if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
++ if ${glibcxx_cv_func_quick_exit_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++ quick_exit(0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_quick_exit_use=yes
++else
++ glibcxx_cv_func_quick_exit_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
++$as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
++ if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
++ for ac_func in quick_exit
++do :
++ ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
++if test "x$ac_cv_func_quick_exit" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_QUICK_EXIT 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
++$as_echo_n "checking for strtold declaration... " >&6; }
++ if test x${glibcxx_cv_func_strtold_use+set} != xset; then
++ if ${glibcxx_cv_func_strtold_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++ strtold(0, 0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_strtold_use=yes
++else
++ glibcxx_cv_func_strtold_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
++$as_echo "$glibcxx_cv_func_strtold_use" >&6; }
++ if test x$glibcxx_cv_func_strtold_use = x"yes"; then
++ for ac_func in strtold
++do :
++ ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
++if test "x$ac_cv_func_strtold" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_STRTOLD 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
++$as_echo_n "checking for strtof declaration... " >&6; }
++ if test x${glibcxx_cv_func_strtof_use+set} != xset; then
++ if ${glibcxx_cv_func_strtof_use+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++
++
++ ac_ext=cpp
++ac_cpp='$CXXCPP $CPPFLAGS'
++ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
++
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include
++int
++main ()
++{
++ strtof(0, 0);
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_cxx_try_compile "$LINENO"; then :
++ glibcxx_cv_func_strtof_use=yes
++else
++ glibcxx_cv_func_strtof_use=no
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++
++fi
++
++ fi
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
++$as_echo "$glibcxx_cv_func_strtof_use" >&6; }
++ if test x$glibcxx_cv_func_strtof_use = x"yes"; then
++ for ac_func in strtof
++do :
++ ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
++if test "x$ac_cv_func_strtof" = xyes; then :
++ cat >>confdefs.h <<_ACEOF
++#define HAVE_STRTOF 1
++_ACEOF
++
++fi
++done
++
++ fi
++
++
++ CXXFLAGS="$ac_save_CXXFLAGS"
++
++ ;;
++
+ *-freebsd*)
+ SECTION_FLAGS='-ffunction-sections -fdata-sections'
+
diff --git a/libstdc++-v3/crossconfig.m4 b/libstdc++-v3/crossconfig.m4
-index b3269cb88e0..de1f886b9a6 100644
+index b3269cb88..de1f886b9 100644
--- a/libstdc++-v3/crossconfig.m4
+++ b/libstdc++-v3/crossconfig.m4
@@ -88,6 +88,13 @@ case "${host}" in