changeset 14177:a4462b0f31f2

(HAVE_XMU): Check for libXmu.a only if using toolkit and use -lXt to link it.
author Richard M. Stallman <rms@gnu.org>
date Mon, 15 Jan 1996 05:11:07 +0000
parents 5e5779fa54cb
children 4c8fdbefbb58
files configure.in
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Mon Jan 15 05:08:57 1996 +0000
+++ b/configure.in	Mon Jan 15 05:11:07 1996 +0000
@@ -1258,7 +1258,6 @@
 
   AC_CHECK_FUNCS(XrmSetDatabase XScreenResourceString \
 XScreenNumberOfScreen XSetWMProtocols)
-  AC_CHECK_LIB(Xmu, XmuConvertStandardSelection)
 fi
 
 if test "${window_system}" = "x11"; then
@@ -1296,6 +1295,13 @@
 ], [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.