[PATCH] configure: Check early for platform-specific symbols
Detlef Riekenberg
wine.dev at web.de
Tue Dec 23 05:26:46 CST 2008
---
configure.ac | 24 +++++++++++-------------
1 files changed, 11 insertions(+), 13 deletions(-)
diff --git a/configure.ac b/configure.ac
index ce90fca..99fe000 100644
--- a/configure.ac
+++ b/configure.ac
@@ -218,10 +218,21 @@ 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*)
AC_PATH_PROG(PRELINK, prelink, false, [/sbin /usr/sbin $PATH])
+ 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 **** Check for some libraries ****
@@ -1674,19 +1685,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
--=-5ss1rg8z7o5qYTB5Z5Ak--
More information about the wine-patches
mailing list