Alexandre Julliard : configure: Rename the main binary to "wine32" for the Wow64 build.

Alexandre Julliard julliard at winehq.org
Fri Aug 14 08:59:13 CDT 2009


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Aug 13 19:54:31 2009 +0200

configure: Rename the main binary to "wine32" for the Wow64 build.

---

 configure          |    5 +++++
 configure.ac       |    3 +++
 loader/Makefile.in |    6 +++---
 3 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/configure b/configure
index 06d06ee..12469cb 100755
--- a/configure
+++ b/configure
@@ -609,6 +609,7 @@ LDAPLIBS
 LIBPOLL
 LIBDL
 EXTRA_BINARIES
+MAIN_BINARY
 SOCKETLIBS
 CRTLIBS
 LDPATH
@@ -11718,6 +11719,10 @@ case $host_os in
     ;;
 esac
 
+MAIN_BINARY="wine"
+
+test -z "$with_wine64" || MAIN_BINARY="wine32"
+
 case $host_cpu in
   *i[3456789]86*)
     case $host_os in
diff --git a/configure.ac b/configure.ac
index a38c525..e186872 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1595,6 +1595,9 @@ case $host_os in
     ;;
 esac
 
+AC_SUBST(MAIN_BINARY,"wine")
+test -z "$with_wine64" || MAIN_BINARY="wine32"
+
 case $host_cpu in
   *i[[3456789]]86*)
     case $host_os in
diff --git a/loader/Makefile.in b/loader/Makefile.in
index 9bef13f..8f4d2a2 100644
--- a/loader/Makefile.in
+++ b/loader/Makefile.in
@@ -2,12 +2,12 @@ TOPSRCDIR = @top_srcdir@
 TOPOBJDIR = ..
 SRCDIR    = @srcdir@
 VPATH     = @srcdir@
-MODULE    = wine
 
 C_SRCS = \
 	main.c \
 	preloader.c
 
+MAIN_BINARY    = @MAIN_BINARY@
 EXTRA_BINARIES = @EXTRA_BINARIES@
 
 PROGRAMS = \
@@ -48,7 +48,7 @@ $(EXTRA_BINARIES:%=__install__%): $(EXTRA_BINARIES) $(DESTDIR)$(bindir) dummy
 .PHONY: install-man-pages $(EXTRA_BINARIES:%=__install__%)
 
 install install-lib:: wine-installed $(DESTDIR)$(bindir) $(EXTRA_BINARIES:%=__install__%)
-	$(INSTALL_PROGRAM) wine-installed $(DESTDIR)$(bindir)/$(MODULE)
+	$(INSTALL_PROGRAM) wine-installed $(DESTDIR)$(bindir)/$(MAIN_BINARY)
 
 @WOW64_DISABLE@ install install-lib:: install-man-pages
 
@@ -58,7 +58,7 @@ install-man-pages: $(MANPAGES) $(INSTALLDIRS) dummy
 	$(INSTALL_DATA) wine.fr.man $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)/wine.$(prog_manext)
 
 uninstall::
-	-cd $(DESTDIR)$(bindir) && $(RM) $(EXTRA_BINARIES) $(MODULE)
+	-cd $(DESTDIR)$(bindir) && $(RM) $(MAIN_BINARY) $(EXTRA_BINARIES)
 	$(RM) $(DESTDIR)$(mandir)/man$(prog_manext)/wine.$(prog_manext)
 	$(RM) $(DESTDIR)$(mandir)/de.UTF-8/man$(prog_manext)/wine.$(prog_manext)
 	$(RM) $(DESTDIR)$(mandir)/fr.UTF-8/man$(prog_manext)/wine.$(prog_manext)




More information about the wine-cvs mailing list