Alexandre Julliard : configure: Require floating point support on ARM.
Alexandre Julliard
julliard at winehq.org
Wed Nov 1 17:20:44 CDT 2017
Module: wine
Branch: master
Commit: 05fad4b75171291619381bafe9acfbe71890e72c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=05fad4b75171291619381bafe9acfbe71890e72c
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Nov 1 09:52:26 2017 +0100
configure: Require floating point support on ARM.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
configure | 23 +++++++++++++++++++++++
configure.ac | 5 +++++
2 files changed, 28 insertions(+)
diff --git a/configure b/configure
index 00b0087..cb21f2a 100755
--- a/configure
+++ b/configure
@@ -5265,6 +5265,29 @@ rm -f core conftest.err conftest.$ac_objext \
CFLAGS="$CFLAGS -marm"
TARGETFLAGS="-marm"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports floating point" >&5
+$as_echo_n "checking whether $CC supports floating point... " >&6; }
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+asm("vmrs r2,fpscr");
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ as_fn_error $? "You need a target with floating point support to build Wine for ARM." "$LINENO" 5
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
;;
i[3456789]86*)
enable_win16=${enable_win16:-yes}
diff --git a/configure.ac b/configure.ac
index 3039c94..29f4cd1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -179,6 +179,11 @@ case $host in
AC_MSG_ERROR([You need a target with Thumb support to build Wine for ARM.])])
CFLAGS="$CFLAGS -marm"
AC_SUBST(TARGETFLAGS,"-marm")
+ AC_MSG_CHECKING([whether $CC supports floating point])
+ WINE_TRY_ASM_LINK(["vmrs r2,fpscr"],,,
+ [AC_MSG_RESULT([yes])],
+ [AC_MSG_RESULT([no])
+ AC_MSG_ERROR([You need a target with floating point support to build Wine for ARM.])])
;;
i[[3456789]]86*)
enable_win16=${enable_win16:-yes}
More information about the wine-cvs
mailing list