]> git.eshelyaron.com Git - emacs.git/commitdiff
(HAVE_XMU): Check for libXmu.a only if using toolkit
authorRichard M. Stallman <rms@gnu.org>
Mon, 15 Jan 1996 05:11:07 +0000 (05:11 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 15 Jan 1996 05:11:07 +0000 (05:11 +0000)
and use -lXt to link it.

configure.in

index de3383a9cb9114a36c99220dd639246641b6ba9e..bbeee3efaace41ebdf7d9b268c163e3482f11e86 100644 (file)
@@ -1258,7 +1258,6 @@ if test "${HAVE_X11}" = "yes"; then
 
   AC_CHECK_FUNCS(XrmSetDatabase XScreenResourceString \
 XScreenNumberOfScreen XSetWMProtocols)
-  AC_CHECK_LIB(Xmu, XmuConvertStandardSelection)
 fi
 
 if test "${window_system}" = "x11"; then
@@ -1296,6 +1295,13 @@ fail;
 ], [AC_MSG_RESULT(6)
     AC_DEFINE(HAVE_X11XTR6)],
    [AC_MSG_RESULT(not 6)])
+
+dnl If using toolkit, check whether libXmu.a exists.
+dnl tranle@intellicorp.com says libXmu.a can need XtMalloc in libXt.a to link.
+  OLDLIBS="$LIBS"
+  LIBS="-lXt $LIBS"
+  AC_CHECK_LIB(Xmu, XmuConvertStandardSelection)
+  LIBS=$"OLDLIBS"
 fi
 
 # If netdb.h doesn't declare h_errno, we must declare it by hand.