André Hentschel : configure: Add ARM check.

Alexandre Julliard julliard at winehq.org
Wed Apr 20 11:05:18 CDT 2011


Module: wine
Branch: master
Commit: 50ada0ff8e6871a6f17552a9955bad2278245e87
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=50ada0ff8e6871a6f17552a9955bad2278245e87

Author: André Hentschel <nerv at dawncrow.de>
Date:   Tue Apr 19 19:37:05 2011 +0200

configure: Add ARM check.

---

 configure    |   26 ++++++++++++++++++++++++++
 configure.ac |    1 +
 2 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 12783b3..ad73d52 100755
--- a/configure
+++ b/configure
@@ -14474,6 +14474,32 @@ if test $ac_cv_cpp_def___powerpc__ = yes; then :
   CFLAGS="$CFLAGS -D__powerpc__"
   LINTFLAGS="$LINTFLAGS -D__powerpc__"
 fi ;;
+  *arm*)            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
+$as_echo_n "checking whether we need to define __arm__... " >&6; }
+if test "${ac_cv_cpp_def___arm__+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#ifndef __arm__
+yes
+#endif
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+  $EGREP "yes" >/dev/null 2>&1; then :
+  ac_cv_cpp_def___arm__=yes
+else
+  ac_cv_cpp_def___arm__=no
+fi
+rm -f conftest*
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
+$as_echo "$ac_cv_cpp_def___arm__" >&6; }
+if test $ac_cv_cpp_def___arm__ = yes; then :
+  CFLAGS="$CFLAGS -D__arm__"
+  LINTFLAGS="$LINTFLAGS -D__arm__"
+fi ;;
 esac
 
 case $host_vendor in
diff --git a/configure.ac b/configure.ac
index 2b92883..c22fcc8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2334,6 +2334,7 @@ case $host_cpu in
   *x86_64*)         WINE_CHECK_DEFINE([__x86_64__]) ;;
   *sparc*)          WINE_CHECK_DEFINE([__sparc__]) ;;
   *powerpc*)        WINE_CHECK_DEFINE([__powerpc__]) ;;
+  *arm*)            WINE_CHECK_DEFINE([__arm__]) ;;
 esac
 
 case $host_vendor in




More information about the wine-cvs mailing list