summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index f5d52c72..ae99a1fa 100644
--- a/configure.in
+++ b/configure.in
@@ -302,14 +302,18 @@ AC_ARG_ENABLE([networkmanager],
ENABLE_NETWORKMANAGER=$enableval, ENABLE_NETWORKMANAGER=yes)
HAVE_NETWORKMANAGER=no
+NETWORKMANAGER_VERSION=unknown
+AC_SUBST(NETWORKMANAGER_VERSION)
if test "x$ENABLE_NETWORKMANAGER" = "xyes"; then
PKG_CHECK_MODULES(NETWORKMANAGER, NetworkManager >= $NETWORKMANAGER_REQUIRED,
HAVE_NETWORKMANAGER=yes, HAVE_NETWORKMANAGER=no)
if test "x$HAVE_NETWORKMANAGER" = "xyes"; then
AC_DEFINE(HAVE_NETWORKMANAGER, 1, [NetworkManager available])
+ NETWORKMANAGER_VERSION=`$PKG_CONFIG --modversion NetworkManager`
AC_SUBST(NETWORKMANAGER_CFLAGS)
AC_SUBST(NETWORKMANAGER_LIBS)
+ AC_SUBST(NETWORKMANAGER_VERSION)
fi
fi