[network-manager-openconnect] Don't build auth-dialog if configured --without-gnome



commit 93899d2e971f38dabb890ce3ccc06bb125d58eec
Author: David Woodhouse <David Woodhouse intel com>
Date:   Sat May 21 14:39:07 2011 +0100

    Don't build auth-dialog if configured --without-gnome

 Makefile.am  |    2 +-
 configure.ac |   12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 08953ef..2c7d8a0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,11 +4,11 @@ SUBDIRS = src
 
 if WITH_GNOME
 SUBDIRS += properties po
-endif
 
 if WITH_AUTHDLG
 SUBDIRS += auth-dialog
 endif
+endif
 
 dbusservicedir = $(sysconfdir)/dbus-1/system.d
 dbusservice_DATA = nm-openconnect-service.conf
diff --git a/configure.ac b/configure.ac
index fae51ea..0c96bc1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -64,12 +64,6 @@ PKG_CHECK_MODULES(DBUS, dbus-glib-1 >= 0.74)
 AC_SUBST(DBUS_CFLAGS)
 AC_SUBST(DBUS_LIBS)
 
-if test x"$with_authdlg" != xno; then
-	PKG_CHECK_MODULES(OPENCONNECT, openconnect)
-	AC_SUBST(OPENCONNECT_CFLAGS)
-	AC_SUBST(OPENCONNECT_LIBS)
-fi
-
 if test x"$with_gnome" != xno; then
 	AC_ARG_WITH([gtkver], AS_HELP_STRING([--with-gtkver], [The major version of GTK+ to build with]),
 	            with_gtkver="$withval",with_gtkver=3)
@@ -95,6 +89,12 @@ if test x"$with_gnome" != xno; then
 	PKG_CHECK_MODULES(GNOMEKEYRING, gnome-keyring-1)
 	AC_SUBST(GNOMEKEYRING_CFLAGS)
 	AC_SUBST(GNOMEKEYRING_LIBS)
+
+	if test x"$with_authdlg" != xno; then
+		PKG_CHECK_MODULES(OPENCONNECT, openconnect)
+		AC_SUBST(OPENCONNECT_CFLAGS)
+		AC_SUBST(OPENCONNECT_LIBS)
+	fi
 fi
 
 PKG_CHECK_MODULES(NETWORKMANAGER,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]