Build Wine as 32-bit by default on x86-64, and added a --enable-win64
option for people who want to play with 64-bit support.
diff --git a/configure.ac b/configure.ac
index ef88545..00a1f87 100644
--- a/configure.ac
+++ b/configure.ac
@@ -15,6 +15,7 @@
AC_ARG_ENABLE(win16, AC_HELP_STRING([--disable-win16],[do not include Win16 support]))
AC_ARG_ENABLE(debug, AC_HELP_STRING([--disable-debug],[compile out all debugging messages]))
AC_ARG_ENABLE(trace, AC_HELP_STRING([--disable-trace],[compile out TRACE messages]))
+AC_ARG_ENABLE(win64, AC_HELP_STRING([--enable-win64], [build a Win64 emulator on AMD64 (won't run Win32 binaries)]))
AC_ARG_WITH(opengl, AC_HELP_STRING([--without-opengl],[do not use OpenGL]))
AC_ARG_WITH(curses, AC_HELP_STRING([--without-curses],[do not use curses]))
@@ -39,6 +40,17 @@
dnl **** Check for some programs ****
AC_CANONICAL_HOST
+case $host in
+ x86_64*linux*)
+ if test "x$enable_win64" != "xyes"
+ then
+ test -n "$CC" || CC="gcc -m32"
+ test -n "$LD" || LD="ld -m elf_i386"
+ test -n "$AS" || AS="as --32"
+ fi
+ ;;
+esac
+
AC_PROG_MAKE_SET
AC_PROG_CC
AC_PROG_CXX