From 61fbbf1197a2394fe20f598f3d1217e6b2ec3ba3 Mon Sep 17 00:00:00 2001
From: Michael Biebl <biebl@debian.org>
Date: Thu, 11 Feb 2010 12:28:31 +0000
Subject: [PATCH 3/3] configure: update configure check to use new nm-glib pkgconfig file names

since network-manager 0.7.999-1, libnm_glib and libnm_glib_vpn have been
renamed to libnm-glib and libnm-glib-vpn along with its pkgconfig files.

For now, I ship compat symlinks in libnm-glib-dev and libnm-glib-vpn-dev
so packages like yours don't ftbfs. As I want to get rid of those
symlinks eventually, please consider updating the configure check in
your package. Attached is a patch for that and I would appreciate if
you forward that also to upstream.

You will also need to regenerate ./configure, either by shipping a
separate patch for that or running autoreconf during build time,
whatever suits you best

In addition, the build dependencies should be bumped to:
libnm-glib-vpn-dev (>= 0.7.999) resp.
libnm-glib-dev (>= 0.7.999)

Signed-off-by: Jonny Lamb <jonny@debian.org>
---
 configure.ac |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index f4df7f6..39aedb9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -87,7 +87,7 @@ PLATFORM_CFLAGS='-I$(top_srcdir)/$(PLATFORM)'
 have_platform=yes
 
 dnl ### Enable NetworkManager ##
-PKG_CHECK_MODULES(libnm_glib, libnm_glib, [have_libnm_glib="true"],
+PKG_CHECK_EXISTS(libnm-glib, [have_libnm_glib="true"],
                   [have_libnm_glib="false"])
 AC_ARG_ENABLE(nm,
 AC_HELP_STRING([--enable-nm],
@@ -546,7 +546,7 @@ build_nm="false"
 fi
 
 if test x$build_nm = xtrue; then
-extranmpkgs="libnm_glib"
+extranmpkgs="libnm-glib"
 AC_DEFINE_UNQUOTED(NM_SUPPORT, 1, ["NetworkManager support."])
 fi
 
