better place for startup notif checks
authorColin Leroy <colin@colino.net>
Thu, 12 Aug 2004 13:32:27 +0000 (13:32 +0000)
committerColin Leroy <colin@colino.net>
Thu, 12 Aug 2004 13:32:27 +0000 (13:32 +0000)
configure.ac

index a80468bd90b2adc0094af602d9f29e88e5a71553..1cf314cbc866a5f8844d61eaca5304c0065492be 100644 (file)
@@ -457,6 +457,27 @@ else
        AC_MSG_RESULT(no)
 fi
 
        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 *************************
 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)
 
 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 ****************************
 dnl ****************************
 dnl ** Final configure output **
 dnl ****************************