From: Colin Leroy Date: Thu, 12 Aug 2004 13:32:27 +0000 (+0000) Subject: better place for startup notif checks X-Git-Tag: rel_0_9_12a~25 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=63ead62216cc4b92328ed13f6b9045462f0b33a4 better place for startup notif checks --- diff --git a/configure.ac b/configure.ac index a80468bd9..1cf314cbc 100644 --- a/configure.ac +++ b/configure.ac @@ -457,6 +457,27 @@ else AC_MSG_RESULT(no) fi +dnl ####################################################################### +dnl # Check for startup notification +dnl ####################################################################### +AC_ARG_ENABLE(startup-notification, [ --disable-startup-notification compile without startup notification support],,enable_startup_notification=yes) + +if test "x$enable_startup_notification" = "xyes"; then + PKG_CHECK_MODULES(STARTUP_NOTIFICATION, libstartup-notification-1.0 >= 0.5, + [ + AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, [Define if we're using libstartup-notification.]) + echo "Building with libstartup-notification" + enable_startup_notification=yes + ], + [ + echo "Building without libstartup-notification" + enable_startup_notification=no + ]) + + AC_SUBST(STARTUP_NOTIFICATION_CFLAGS) + AC_SUBST(STARTUP_NOTIFICATION_LIBS) +fi + dnl ************************* dnl ** section for plugins ** dnl ************************* @@ -576,28 +597,6 @@ fi AC_SUBST(CLAMAV_LIBS) AM_CONDITIONAL(BUILD_CLAMAV_PLUGIN, test x"$ac_cv_enable_clamav_plugin" = xyes) -dnl ####################################################################### -dnl # Check for startup notification -dnl ####################################################################### -AC_ARG_ENABLE(startup-notification, [ --disable-startup-notification compile without startup notification support],,enable_startup_notification=yes) - -if test "x$enable_startup_notification" = "xyes"; then - PKG_CHECK_MODULES(STARTUP_NOTIFICATION, libstartup-notification-1.0 >= 0.5, - [ - AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, [Define if we're using libstartup-notification.]) - echo "Building with libstartup-notification" - enable_startup_notification=yes - ], - [ - echo "Building without libstartup-notification" - enable_startup_notification=no - ]) - - AC_SUBST(STARTUP_NOTIFICATION_CFLAGS) - AC_SUBST(STARTUP_NOTIFICATION_LIBS) -fi - - dnl **************************** dnl ** Final configure output ** dnl ****************************