make libnotify support an option (Fixes bug #346843). Patch from Saleem

2007-05-15  Lucas Rocha  <lucasr@gnome.org>

	* configure.ac: make libnotify support an option (Fixes bug #346843).
	Patch from Saleem Abdulrasool <compnerd@gentoo.org>.

svn path=/trunk/; revision=1210
This commit is contained in:
Lucas Rocha 2007-05-14 21:49:32 +00:00 committed by Lucas Almeida Rocha
parent f297dd91bd
commit ab6159f84b
2 changed files with 19 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2007-05-15 Lucas Rocha <lucasr@gnome.org>
* configure.ac: make libnotify support an option (Fixes bug #346843).
Patch from Saleem Abdulrasool <compnerd@gentoo.org>.
2007-05-15 Lucas Rocha <lucasr@gnome.org>
* src/calendar.c (zenity_calendar, zenity_calendar_double_click):

View File

@ -33,13 +33,21 @@ AC_PATH_PROG([PERL],[perl],)
# *******************************
LIBNOTIFY_REQUIRED=0.4.1
PKG_CHECK_MODULES([LIBNOTIFY],[libnotify >= $LIBNOTIFY_REQUIRED],
[HAVE_LIBNOTIFY="yes"],[HAVE_LIBNOTIFY="no"])
AC_SUBST([LIBNOTIFY_CFLAGS])
AC_SUBST([LIBNOTIFY_LIBS])
if test "x$HAVE_LIBNOTIFY" = "xyes"; then
AC_DEFINE([HAVE_LIBNOTIFY],[1],[libnotify is available on this machine])
AC_ARG_ENABLE([libnotify],
AC_HELP_STRING([--enable-libnotify],[enable libnotify support]),,
[enable_libnotify=yes])
if test x$enable_libnotify = xyes ; then
PKG_CHECK_MODULES([LIBNOTIFY],[libnotify >= $LIBNOTIFY_REQUIRED],
[HAVE_LIBNOTIFY="yes"],[HAVE_LIBNOTIFY="no"])
AC_SUBST([LIBNOTIFY_CFLAGS])
AC_SUBST([LIBNOTIFY_LIBS])
if test "x$HAVE_LIBNOTIFY" = "xyes"; then
AC_DEFINE([HAVE_LIBNOTIFY],[1],[libnotify is available on this machine])
fi
fi
# *******************************