changeset 108616:2ac105f2b2ac

* src/Makefile.in (LIBX_BASE): Always define.
author Glenn Morris <rgm@gnu.org>
date Sat, 15 May 2010 17:30:14 -0700
parents c82cd792792d
children 429144ae3b54
files src/ChangeLog src/Makefile.in
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sat May 15 17:21:58 2010 -0700
+++ b/src/ChangeLog	Sat May 15 17:30:14 2010 -0700
@@ -1,5 +1,7 @@
 2010-05-16  Glenn Morris  <rgm@gnu.org>
 
+	* Makefile.in (LIBX_BASE): Always define.
+
 	* Makefile.in (LIBX_OTHER): Move out of cpp section.
 
 	* Makefile.in (LIBXT): Always define.
--- a/src/Makefile.in	Sat May 15 17:21:58 2010 -0700
+++ b/src/Makefile.in	Sat May 15 17:30:14 2010 -0700
@@ -193,6 +193,12 @@
 ## If HAVE_X11, $(LIBXT) $(LIBX_EXTRA), else empty.
 LIBX_OTHER=@LIBX_OTHER@
 
+## LIBXMENU is nil if !HAVE_X_WINDOWS.
+## LD_SWITCH_X_SITE should not be used if not using X, but nothing
+## sets it at present, and if something ever does, it should be
+## configure, which should set it to nil in non-X builds.
+LIBX_BASE=$(LIBXMENU) $(LD_SWITCH_X_SITE)
+
 LIBSOUND= @LIBSOUND@
 CFLAGS_SOUND= @CFLAGS_SOUND@
 
@@ -310,9 +316,6 @@
 #endif
 	$(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $<
 
-#ifdef HAVE_X_WINDOWS
-LIBX_BASE=$(LIBXMENU) $(LD_SWITCH_X_SITE)
-#endif /* HAVE_X_WINDOWS */
 
 /* A macro which other sections of Makefile can redefine to munge the
    flags before they are passed to LD.  This is helpful if you have