aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/configure
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2017-01-19 22:00:53 +0100
committerUros Bizjak <uros@gcc.gnu.org>2017-01-19 22:00:53 +0100
commit7b32a8f61f4b3a34cacbd029e85220787eada240 (patch)
treecacf5acabfee467ac9b6420c71be5a7c048e6fea /libgfortran/configure
parent9ade9945a07c47abf2d1d5ad3a5de504e9f37b73 (diff)
downloadgcc-7b32a8f61f4b3a34cacbd029e85220787eada240.zip
gcc-7b32a8f61f4b3a34cacbd029e85220787eada240.tar.gz
gcc-7b32a8f61f4b3a34cacbd029e85220787eada240.tar.bz2
re PR target/78478 (Compile Error for i386-rtems)
PR target/78478 * config/ax_check_define.m4: New file. libgfortran/ChangeLog: PR target/78478 * acinclude.m4: Include ../config/ax_check_define.m4 * configure.ac: Check if _SOFT_FLOAT is defined. * configure.host (i?86 | x86_64): Use fpu-generic when have_soft_float is set. * configure: Regenerate. From-SVN: r244651
Diffstat (limited to 'libgfortran/configure')
-rwxr-xr-xlibgfortran/configure37
1 files changed, 37 insertions, 0 deletions
diff --git a/libgfortran/configure b/libgfortran/configure
index 20b5e68..81238fc 100755
--- a/libgfortran/configure
+++ b/libgfortran/configure
@@ -25822,6 +25822,43 @@ $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
fi
+# Check if _SOFT_FLOAT is defined
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5
+$as_echo_n "checking for _SOFT_FLOAT defined... " >&6; }
+if test "${ac_cv_defined__SOFT_FLOAT+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ #ifdef _SOFT_FLOAT
+ int ok;
+ #else
+ choke me
+ #endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_defined__SOFT_FLOAT=yes
+else
+ ac_cv_defined__SOFT_FLOAT=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5
+$as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; }
+if test $ac_cv_defined__SOFT_FLOAT != "no"; then :
+ have_soft_float=yes
+fi
+
# Runs configure.host to set up necessary host-dependent shell variables.
# We then display a message about it, and propagate them through the
# build chain.