From: Lennart Poettering Date: Mon, 15 Nov 2010 17:42:34 +0000 (+0100) Subject: build-sys: make check for libnotify explicit X-Git-Tag: v12~24 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fa47da53e922eebf4ca52ef2b7c6ece383a85ea;p=systemd build-sys: make check for libnotify explicit --- diff --git a/Makefile.am b/Makefile.am index f27bed2a..a86639d7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -931,6 +931,7 @@ systemd_gnome_ask_password_agent_SOURCES = \ systemd_gnome_ask_password_agent_CFLAGS = \ $(AM_CFLAGS) \ $(DBUSGLIB_CFLAGS) \ + $(LIBNOTIFY_CFLAGS) \ $(GTK_CFLAGS) \ -Wno-unused-variable \ -Wno-unused-function \ @@ -948,6 +949,7 @@ systemd_gnome_ask_password_agent_VALAFLAGS = \ systemd_gnome_ask_password_agent_LDADD = \ $(DBUSGLIB_LIBS) \ + $(LIBNOTIFY_LIBS) \ $(GTK_LIBS) systemd_tty_ask_password_agent_SOURCES = \ diff --git a/configure.ac b/configure.ac index fc0fc90c..5c6379c2 100644 --- a/configure.ac +++ b/configure.ac @@ -241,7 +241,7 @@ AM_CONDITIONAL(HAVE_LIBCRYPTSETUP, [test "$have_libcryptsetup" = "yes"]) have_gtk=no AC_ARG_ENABLE(gtk, AS_HELP_STRING([--disable-gtk], [disable GTK tools])) if test "x$enable_gtk" != "xno"; then - PKG_CHECK_MODULES(GTK, [ gtk+-2.0 gio-unix-2.0 libnotify ], + PKG_CHECK_MODULES(GTK, [ gtk+-2.0 gio-unix-2.0 ], [AC_DEFINE(HAVE_GTK, 1, [Define if GTK is available]) have_gtk=yes], have_gtk=no) AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_LIBS) @@ -255,6 +255,10 @@ if test "$have_gtk" = "yes"; then PKG_CHECK_MODULES(DBUSGLIB, [ dbus-glib-1 ]) AC_SUBST(DBUSGLIB_CFLAGS) AC_SUBST(DBUSGLIB_LIBS) + + PKG_CHECK_MODULES(LIBNOTIFY, [ libnotify ]) + AC_SUBST(LIBNOTIFY_CFLAGS) + AC_SUBST(LIBNOTIFY_LIBS) fi AM_PROG_VALAC([0.9])