aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2006-01-16 06:42:46 +0800
committerChristian Persch <chpe@src.gnome.org>2006-01-16 06:42:46 +0800
commit73e8920c461a5403f8f0ad1e9754910c3089ef2f (patch)
tree2f50b0c5f734542062889d54a53e5cbe9070fa6b /configure.ac
parent2097f11220e25f83dda2026d07cc66e7a0a31544 (diff)
downloadgsoc2013-epiphany-73e8920c461a5403f8f0ad1e9754910c3089ef2f.tar
gsoc2013-epiphany-73e8920c461a5403f8f0ad1e9754910c3089ef2f.tar.gz
gsoc2013-epiphany-73e8920c461a5403f8f0ad1e9754910c3089ef2f.tar.bz2
gsoc2013-epiphany-73e8920c461a5403f8f0ad1e9754910c3089ef2f.tar.lz
gsoc2013-epiphany-73e8920c461a5403f8f0ad1e9754910c3089ef2f.tar.xz
gsoc2013-epiphany-73e8920c461a5403f8f0ad1e9754910c3089ef2f.tar.zst
gsoc2013-epiphany-73e8920c461a5403f8f0ad1e9754910c3089ef2f.zip
Add NetworkManager magic for connection status autodetection. Defaults to
2006-01-15 Christian Persch <chpe@cvs.gnome.org> * configure.ac: * embed/mozilla/Makefile.am: * embed/mozilla/mozilla-embed-single.cpp: * src/Makefile.am: Add NetworkManager magic for connection status autodetection. Defaults to disabled because I'm not very happy with the libnm-glib implementation. Oh, and it may crash on startup, too.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac23
1 files changed, 23 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 074089a5e..a1bb14fbe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -557,6 +557,29 @@ fi
AM_CONDITIONAL([ENABLE_CERTIFICATE_MANAGER],[test "$enable_certificate_manager" = "yes"])
+# NetworkManager
+
+AC_MSG_CHECKING([whether to enable NetworkManager support])
+AC_ARG_ENABLE([network-manager],
+ AS_HELP_STRING([--enable-network-manager],[Whether to enable automatic network status with NetworkManager (default: disabled]),
+ [],[enable_network_manager=no])
+AC_MSG_RESULT([$enable_network_manager])
+
+if test "x$enable_network_manager" != "xno"; then
+ NETWORKMANAGER_REQUIRED=0.5.0
+
+ PKG_CHECK_MODULES([NETWORK_MANAGER],[libnm_glib >= $NETWORKMANAGER_REQUIRED],
+ [enable_network_manager=yes],[enable_network_manager=no])
+ AC_SUBST([NETWORK_MANAGER_CFLAGS])
+ AC_SUBST([NETWORK_MANAGER_LIBS])
+fi
+
+if test "x$enable_network_manager" = "xyes"; then
+ AC_DEFINE([ENABLE_NETWORK_MANAGER],[1],[Define for NetworkManager support])
+fi
+
+AM_CONDITIONAL([ENABLE_NETWORK_MANAGER],[test "x$enable_network_manager" = "xyes"])
+
# *******************************
# Add warning flags
# *******************************