]> code.delx.au - gnu-emacs/commitdiff
Move GPM check outside HAVE_X_WINDOWS.
authorJan Djärv <jan.h.d@swipnet.se>
Sun, 20 May 2007 13:20:25 +0000 (13:20 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Sun, 20 May 2007 13:20:25 +0000 (13:20 +0000)
src/ChangeLog
src/Makefile.in

index a5dad6a3505069b961760bdba8ce7e0ced897265..67f6bd282c25e00a9c435965a499b5a240de6f8f 100644 (file)
@@ -1,3 +1,7 @@
+2007-05-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
+
 2007-05-20  Nick Roberts  <nickrob@snap.net.nz>
 
        * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
index 09b85b4f2e2788cd55d1c19fb1120a8866707f81..65a604bf78c68d7416d510dbb92d76412371c146 100644 (file)
@@ -446,14 +446,6 @@ XFT_LIBS=@XFT_LIBS@
 #define LIBGIF
 #endif /* not HAVE_GIF */
 
-#if HAVE_GPM
-#ifndef LIBGPM
-#define LIBGPM -lgpm
-#endif /* not defined LIBGPM */
-#else /* not HAVE_GPM */
-#define LIBGPM
-#endif /* not HAVE_GPM */
-
 #ifdef HAVE_X11
 /* LD_SWITCH_X_DEFAULT comes after everything else that specifies
    options for where to find X libraries, but before those libraries.  */
@@ -465,6 +457,15 @@ LIBX= $(LIBXMENU) LD_SWITCH_X_SITE -lX10 LIBX10_MACHINE LIBX10_SYSTEM
 #else /* not HAVE_X_WINDOWS */
 #endif /* not HAVE_X_WINDOWS */
 
+#if HAVE_GPM
+#ifndef LIBGPM
+#define LIBGPM -lgpm
+#endif /* not defined LIBGPM */
+#else /* not HAVE_GPM */
+#define LIBGPM
+#endif /* not HAVE_GPM */
+
+
 LIBSOUND= @LIBSOUND@
 CFLAGS_SOUND= @CFLAGS_SOUND@
 
@@ -941,7 +942,7 @@ SOME_MACHINE_LISP = ${dotdot}/lisp/mouse.elc \
    Note that SunOS needs -lm to come before -lc; otherwise, you get
    duplicated symbols.  If the standard libraries were compiled
    with GCC, we might need gnulib again after them.  */
-LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(LIBSOUND) LIBGPM\
+LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(LIBSOUND) LIBGPM \
    LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP \
    LIBS_DEBUG $(GETLOADAVG_LIBS) $(GNULIB_VAR) LIB_MATH LIB_STANDARD \
    $(GNULIB_VAR)