GNOME Bugzilla – Bug 511507
enable_notify not properly defined / supported
Last modified: 2008-06-27 09:49:17 UTC
Hi, When building on a system without libnotify: gnome-mount.c:39:30: erreur: libnotify/notify.h : Aucun fichier ou répertoire de ce type Configure.ac checks are like: PKG_CHECK_MODULES([NOTIFY], [libnotify >= 0.3.0], [enable_notify=yes], [enable_notify=yes]) if test "x$enable_notify" != "xno"; then AC_DEFINE_UNQUOTED([ENABLE_NOTIFY], 1, [Enable notifications with libnotify]) AC_SUBST(NOTIFY_CFLAGS) AC_SUBST(NOTIFY_LIBS) fi So it's always enable_notify=yes... Looking at gnome-mount.c, there's not enough NOTIFY ifdef use anyway, so I think libnotify should simply be made mandatory to build gnome-mount. Will attach a patch to require it in configure; I'm leaving the enable_notify bits in place if someone wants to complete them. Bye,
Created attachment 103538 [details] [review] AC_MSG_ERROR if libnotify >= 0.3.0 is missing; drop useless AC_SUBST
I fixed this in trunk adding the missing #ifdefs and #includes. 2008-06-27 Cosimo Cecchi <cosimoc@gnome.org> * configure.in: * src/gnome-mount.c: (unmount_cache_timeout_start), (unmount_cache_timeout_cancel): Make the dependency on libnotify really optional. (#511507).