1 sinclude(./aclocal.m4)dnl Autoconf lossage
2 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
3 # Local configure fragment for sysdeps/unix/sysv/linux/mips.
7 #if (_MIPS_SIM != _ABIO32)
13 #if (_MIPS_SIM != _ABIN32)
19 #if (_MIPS_SIM != _ABI64)
25 if test -z "$libc_mips_abi"; then
26 AC_MSG_ERROR([could not determine what ABI the compiler is using])
31 #if !defined(__mips_soft_float)
34 [libc_mips_float=soft],
37 #if !defined(__mips_hard_float)
40 [libc_mips_float=hard],
43 if test -z "$libc_mips_float"; then
44 AC_MSG_ERROR([could not determine if compiler is using hard or soft floating point ABI])
49 if test x"$libc_mips_abi" = xo32 -a x"$libc_mips_float" = xhard; then
52 #if !defined(__mips_fpr)
53 #error Missing FPR sizes
57 #if (__mips_fpr != 32)
60 [libc_mips_o32_fp=32],
63 #if (__mips_fpr != 0) || !defined(_MIPS_SPFPSET) || (_MIPS_SPFPSET != 16)
64 #error Not FPXX (without odd single-precision registers)
66 [libc_mips_o32_fp=xx],
70 #error Not FPXX (with odd single precision registers)
72 [libc_mips_o32_fp=xxo],
75 #if (__mips_fpr != 64) || !defined(_MIPS_SPFPSET) || (_MIPS_SPFPSET != 16)
78 [libc_mips_o32_fp=64a],
81 #if (__mips_fpr != 64)
84 [libc_mips_o32_fp=64],
88 LIBC_CONFIG_VAR([o32-fpabi],[${libc_mips_o32_fp}])
92 #include <linux/prctl.h>
93 #if !defined(PR_GET_FP_MODE) || !defined(PR_SET_FP_MODE)
94 #error New prctl support for setting FP modes not found
96 [libc_mips_mode_switch=yes],
97 [libc_mips_mode_switch=no])
98 LIBC_CONFIG_VAR([mips-mode-switch],[${libc_mips_mode_switch}])
100 AC_CACHE_CHECK([whether the compiler is using the 2008 NaN encoding],
101 libc_cv_mips_nan2008, [AC_EGREP_CPP(yes, [dnl
102 #ifdef __mips_nan2008
104 #endif], libc_cv_mips_nan2008=yes, libc_cv_mips_nan2008=no)])
107 if test x"$libc_cv_mips_nan2008" = xyes; then
111 LIBC_CONFIG_VAR([default-abi],
112 [${libc_mips_abi}_${libc_mips_float}${libc_mips_nan}])
116 LIBC_SLIBDIR_RTLDDIR([lib64], [lib64])
119 LIBC_SLIBDIR_RTLDDIR([lib32], [lib32])
123 libc_cv_gcc_unwind_find_fde=yes
125 if test -z "$arch_minimum_kernel"; then
126 if test x$libc_cv_mips_nan2008 = xyes; then
127 # FIXME: Adjust this setting to the actual first upstream kernel
128 # version to support the 2008 NaN encoding and then remove this
130 arch_minimum_kernel=10.0.0