|
|
|
@ -1806,20 +1806,31 @@ case "${target}" in |
|
|
|
*) mips_fpu=HARD_FLOATING_POINT ;; |
|
|
|
esac |
|
|
|
|
|
|
|
default_sim_floating_point="$mips_fpu" |
|
|
|
default_sim_float="$mips_fpu" |
|
|
|
default_sim_float_bitsize="" |
|
|
|
# Check whether --enable-sim-float or --disable-sim-float was given. |
|
|
|
if test "${enable_sim_float+set}" = set; then |
|
|
|
enableval="$enable_sim_float" |
|
|
|
case "${enableval}" in |
|
|
|
yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";; |
|
|
|
no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";; |
|
|
|
32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";; |
|
|
|
64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";; |
|
|
|
*) { echo "configure: error: "Unknown value $enableval passed to --enable-sim-float"" 1>&2; exit 1; }; sim_float="";; |
|
|
|
esac |
|
|
|
if test x"$silent" != x"yes" && test x"$sim_float" != x""; then |
|
|
|
echo "Setting float flags = $sim_float" 6>&1 |
|
|
|
fi |
|
|
|
else |
|
|
|
sim_float="-DWITH_FLOATING_POINT=${default_sim_floating_point}" |
|
|
|
|
|
|
|
sim_float= |
|
|
|
if test x"${default_sim_float}" != x""; then |
|
|
|
sim_float="-DWITH_FLOATING_POINT=${default_sim_float}" |
|
|
|
fi |
|
|
|
if test x"${default_sim_float_bitsize}" != x""; then |
|
|
|
sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}" |
|
|
|
fi |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
@ -1931,17 +1942,17 @@ for ac_hdr in string.h strings.h stdlib.h stdlib.h |
|
|
|
do |
|
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
|
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
|
|
|
echo "configure:1935: checking for $ac_hdr" >&5 |
|
|
|
echo "configure:1946: checking for $ac_hdr" >&5 |
|
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
|
else |
|
|
|
cat > conftest.$ac_ext <<EOF |
|
|
|
#line 1940 "configure" |
|
|
|
#line 1951 "configure" |
|
|
|
#include "confdefs.h" |
|
|
|
#include <$ac_hdr> |
|
|
|
EOF |
|
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
|
|
|
{ (eval echo configure:1945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|
|
|
{ (eval echo configure:1956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|
|
|
ac_err=`grep -v '^ *+' conftest.out` |
|
|
|
if test -z "$ac_err"; then |
|
|
|
rm -rf conftest* |
|
|
|
@ -1968,7 +1979,7 @@ fi |
|
|
|
done |
|
|
|
|
|
|
|
echo $ac_n "checking for fabs in -lm""... $ac_c" 1>&6 |
|
|
|
echo "configure:1972: checking for fabs in -lm" >&5 |
|
|
|
echo "configure:1983: checking for fabs in -lm" >&5 |
|
|
|
ac_lib_var=`echo m'_'fabs | sed 'y%./+-%__p_%'` |
|
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
|
@ -1976,7 +1987,7 @@ else |
|
|
|
ac_save_LIBS="$LIBS" |
|
|
|
LIBS="-lm $LIBS" |
|
|
|
cat > conftest.$ac_ext <<EOF |
|
|
|
#line 1980 "configure" |
|
|
|
#line 1991 "configure" |
|
|
|
#include "confdefs.h" |
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
|
@ -1987,7 +1998,7 @@ int main() { |
|
|
|
fabs() |
|
|
|
; return 0; } |
|
|
|
EOF |
|
|
|
if { (eval echo configure:1991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
|
|
|
if { (eval echo configure:2002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
|
|
|
rm -rf conftest* |
|
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
|
|
|
else |
|
|
|
@ -2017,12 +2028,12 @@ fi |
|
|
|
for ac_func in aint anint sqrt |
|
|
|
do |
|
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
|
|
|
echo "configure:2021: checking for $ac_func" >&5 |
|
|
|
echo "configure:2032: checking for $ac_func" >&5 |
|
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
|
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
|
else |
|
|
|
cat > conftest.$ac_ext <<EOF |
|
|
|
#line 2026 "configure" |
|
|
|
#line 2037 "configure" |
|
|
|
#include "confdefs.h" |
|
|
|
/* System header to define __stub macros and hopefully few prototypes, |
|
|
|
which can conflict with char $ac_func(); below. */ |
|
|
|
@ -2045,7 +2056,7 @@ $ac_func(); |
|
|
|
|
|
|
|
; return 0; } |
|
|
|
EOF |
|
|
|
if { (eval echo configure:2049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
|
|
|
if { (eval echo configure:2060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
|
|
|
rm -rf conftest* |
|
|
|
eval "ac_cv_func_$ac_func=yes" |
|
|
|
else |
|
|
|
|