[network-manager-openconnect] Make auth-dialog build optional until everyone has new openconnect



commit e09250a9bfbf3175b941616207bb5dd9da08354b
Author: David Woodhouse <David Woodhouse intel com>
Date:   Wed Mar 9 22:16:04 2011 +0000

    Make auth-dialog build optional until everyone has new openconnect

 configure.ac |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index fd89b9e..eb680b2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -42,6 +42,9 @@ dnl
 AC_ARG_WITH(gnome, AS_HELP_STRING([--without-gnome], [Build NetworkManager-openconnect without GNOME support, e.g. vpn service only]))
 AM_CONDITIONAL(WITH_GNOME, test x"$with_gnome" != xno)
 
+AC_ARG_WITH(authdlg, AS_HELP_STRING([--without-authdlg], [Build NetworkManager-openconnect without authentication dialog]))
+AM_CONDITIONAL(WITH_AUTHDLG, test x"$with_authdlg" != xno)
+
 GETTEXT_PACKAGE=NetworkManager-openconnect
 AC_SUBST(GETTEXT_PACKAGE)
 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
@@ -57,9 +60,11 @@ PKG_CHECK_MODULES(DBUS, dbus-glib-1 >= 0.74)
 AC_SUBST(DBUS_CFLAGS)
 AC_SUBST(DBUS_LIBS)
 
-PKG_CHECK_MODULES(OPENCONNECT, openconnect)
-AC_SUBST(OPENCONNECT_CFLAGS)
-AC_SUBST(OPENCONNECT_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
 	PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.6)



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