From d612c6f11e55d6798c892bef30bf53cb62f885cd Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Tue, 8 May 2007 15:57:04 -0500 Subject: [PATCH] Use AC_X_EXTRA to get path to libSM --- m4/moo-flags.m4 | 1 + moo/mooapp/smclient/Makefile.am | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/m4/moo-flags.m4 b/m4/moo-flags.m4 index b3b63c1f..7cd1c093 100644 --- a/m4/moo-flags.m4 +++ b/m4/moo-flags.m4 @@ -14,6 +14,7 @@ AC_DEFUN_ONCE([MOO_AC_FLAGS],[ AC_REQUIRE([MOO_AC_CHECK_OS]) AC_REQUIRE([MOO_AC_SET_DIRS]) + AC_PATH_XTRA MOO_AC_FUNCS MOO_PKG_CHECK_GTK_VERSIONS MOO_AC_DEBUG diff --git a/moo/mooapp/smclient/Makefile.am b/moo/mooapp/smclient/Makefile.am index 6c09edac..c36aa4da 100644 --- a/moo/mooapp/smclient/Makefile.am +++ b/moo/mooapp/smclient/Makefile.am @@ -18,8 +18,8 @@ libsmclient_la_SOURCES = \ libsmclient_la_LIBADD = if GDK_X11 -AM_CFLAGS += -DEGG_SM_CLIENT_BACKEND_XSMP -libsmclient_la_LIBADD += -lSM -lICE +AM_CFLAGS += $(X_CFLAGS) -DEGG_SM_CLIENT_BACKEND_XSMP +libsmclient_la_LIBADD += $(X_LIBS) $(X_EXTRA_LIBS) -lSM -lICE libsmclient_la_SOURCES += eggsmclient-xsmp.c endif GDK_X11