]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
When we check for libX11 in the autoconf script, add it to $GTK_LIBS
authorSimon Tatham <anakin@pobox.com>
Wed, 20 Jul 2011 17:50:02 +0000 (17:50 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 20 Jul 2011 17:50:02 +0000 (17:50 +0000)
on success rather than to $LIBS, because it's only used in the GUI
tools and we don't want the command-line tools linked against it.

[originally from svn r9238]

unix/configure.ac

index 1232917241392fbeb52de887785e150be4c99f9b..bd40373e9e863c295cc338d7c0725032bab1a236 100644 (file)
@@ -92,7 +92,9 @@ AS_IF([test "x$with_gssapi" != xno],
        [],
        [AC_DEFINE([NO_GSSAPI_LIB], [1], [Define if we could not find a gssapi library])])])])
 
-AC_CHECK_LIB(X11, XOpenDisplay)
+AC_CHECK_LIB(X11, XOpenDisplay,
+             [GTK_LIBS="-lX11 $GTK_LIBS"
+              AC_DEFINE([HAVE_LIBX11],[],[Define if libX11.a is available])])
 
 AC_CHECK_FUNCS([getaddrinfo ptsname setresuid strsignal updwtmpx])