[PATCH] configure: Check early for platform-specific symbols

Detlef Riekenberg wine.dev at web.de
Mon Jan 5 02:17:20 CST 2009


---
 configure.ac |   23 ++++++++++-------------
 1 files changed, 10 insertions(+), 13 deletions(-)

diff --git a/configure.ac b/configure.ac
index 8d45409..ca10c8b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -222,10 +222,20 @@ then
   if test "$ICOTOOL" = "false"; then WINE_WARNING([icotool is missing, icons can't be rebuilt.]); fi
 fi
 
+dnl *** check for the need to define platform-specific symbols and programs
 case $host_cpu in
   *i[[3456789]]86*)
+    WINE_CHECK_DEFINE([__i386__])
     AC_PATH_PROG(PRELINK, prelink, false, [/sbin /usr/sbin $PATH])
     ;;
+  *x86_64*)         WINE_CHECK_DEFINE([__x86_64__]) ;;
+  *alpha*)          WINE_CHECK_DEFINE([__ALPHA__]) ;;
+  *sparc*)          WINE_CHECK_DEFINE([__sparc__]) ;;
+  *powerpc*)        WINE_CHECK_DEFINE([__powerpc__]) ;;
+esac
+
+case $host_vendor in
+  *sun*) WINE_CHECK_DEFINE([__sun__]) ;;
 esac
 
 dnl **** Check for some libraries ****
@@ -1689,19 +1699,6 @@ then
     AC_DEFINE(HAVE_ISNAN, 1, [Define to 1 if you have the `isnan' function.])
 fi
 
-dnl *** check for the need to define platform-specific symbols
-
-case $host_cpu in
-  *i[[3456789]]86*) WINE_CHECK_DEFINE([__i386__]) ;;
-  *x86_64*)         WINE_CHECK_DEFINE([__x86_64__]) ;;
-  *alpha*)          WINE_CHECK_DEFINE([__ALPHA__]) ;;
-  *sparc*)          WINE_CHECK_DEFINE([__sparc__]) ;;
-  *powerpc*)        WINE_CHECK_DEFINE([__powerpc__]) ;;
-esac
-
-case $host_vendor in
-  *sun*) WINE_CHECK_DEFINE([__sun__]) ;;
-esac
 
 dnl **** Generate output files ****
 
-- 
1.5.4.3


--=-8prOtMDTXeG92dSHXxQ3--




More information about the wine-patches mailing list