Fixes the bug failed to build if X11 is not in the default ld path
authorMing-Ting Wei <mwei@lxde.org>
Wed, 6 Jan 2010 10:08:06 +0000 (10:08 +0000)
committerMing-Ting Wei <mwei@lxde.org>
Wed, 6 Jan 2010 10:08:06 +0000 (10:08 +0000)
configure.ac
src/Makefile.am

index f1a7f36..e4dc488 100644 (file)
@@ -24,6 +24,10 @@ PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
 AC_SUBST(PACKAGE_CFLAGS)
 AC_SUBST(PACKAGE_LIBS)
 
+pkg_modules="x11"
+PKG_CHECK_MODULES(X11, [$pkg_modules])
+AC_SUBST(X11_LIBS)
+
 pkg_modules="libmenu-cache"
 PKG_CHECK_MODULES(MENU_CACHE, [$pkg_modules],
                  enable_menu_cache=yes, enable_menu_cache=no)
index eec4a90..a1818a8 100644 (file)
@@ -48,7 +48,7 @@ lxpanel_LDADD = \
                $(INTLLIBS)
 
 lxpanelctl_SOURCES = lxpanelctl.c lxpanelctl.h
-lxpanelctl_LDADD = -lX11 $(INTLLIBS)
+lxpanelctl_LDADD = $(X11_LIBS) $(INTLLIBS)
 
 noinst_PROGRAMS=xml-purge
 xml_purge_SOURCES=xml-purge.c