3b14f6649a
* acinclude.m4 (LIBGFOR_CHECK_FPSETMASK): New check. * configure.ac: Check for floatingpoint.h, fptrap.h and float.h headers. Use LIBGFOR_CHECK_FPSETMASK. Check for fp_trap and fp_enable functions. * configure.host: Add case for systems with fpsetmask and systems with fp_trap/fp_enable. * config/fpu-sysv.h: New file, FPU code using fpsetmask. * config/fpu-aix.h: New file, FPU code for AIX using fp_trap and fp_enable. * aclocal.m4: Regenerate. * configure: Regenerate. * config.h.in: Regenerate. From-SVN: r105956
41 lines
1.0 KiB
Plaintext
41 lines
1.0 KiB
Plaintext
# configure.host
|
|
#
|
|
# This shell script handles all host based configuration for libgfortran.
|
|
# It sets various shell variables based on the the host triplet.
|
|
# You can modify this shell script without rerunning autoconf/aclocal/etc.
|
|
# This file is "sourced", not executed.
|
|
#
|
|
#
|
|
# It uses the following shell variables as set by config.guess:
|
|
# host The configuration host (full CPU-vendor-OS triplet)
|
|
# host_cpu The configuration host CPU
|
|
# host_os The configuration host OS
|
|
#
|
|
#
|
|
# It sets the following shell variables:
|
|
#
|
|
# fpu_host FPU-specific code file, defaults to fpu-generic.
|
|
|
|
|
|
# DEFAULTS
|
|
fpu_host='fpu-generic'
|
|
|
|
# HOST-SPECIFIC OVERRIDES
|
|
case "${host_cpu}" in
|
|
i?86 | x86_64)
|
|
fpu_host='fpu-387' ;;
|
|
esac
|
|
|
|
# CONFIGURATION-SPECIFIC OVERRIDES
|
|
if test "x${have_feenableexcept}" = "xyes"; then
|
|
fpu_host='fpu-glibc'
|
|
fi
|
|
|
|
if test "x${have_fpsetmask}" = "xyes"; then
|
|
fpu_host='fpu-sysv'
|
|
fi
|
|
|
|
if test "x${have_fp_enable}" = "xyes" && test "x${have_fp_trap}" = "xyes"; then
|
|
fpu_host='fpu-aix'
|
|
fi
|