[network-manager-pptp] build: require GLib 2.32
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-pptp] build: require GLib 2.32
- Date: Wed, 27 Feb 2013 09:29:56 +0000 (UTC)
commit 43b37827ffbe41c1d08479c5549e473dda50e983
Author: Dan Winship <danw gnome org>
Date: Tue Feb 26 11:11:37 2013 +0100
build: require GLib 2.32
auth-dialog/Makefile.am | 2 +-
auth-dialog/main.c | 4 ----
configure.ac | 7 ++++---
properties/Makefile.am | 1 +
src/Makefile.am | 4 ++--
5 files changed, 8 insertions(+), 10 deletions(-)
---
diff --git a/auth-dialog/Makefile.am b/auth-dialog/Makefile.am
index 7cc18b1..3c07050 100644
--- a/auth-dialog/Makefile.am
+++ b/auth-dialog/Makefile.am
@@ -4,7 +4,7 @@ libexec_PROGRAMS = nm-pptp-auth-dialog
nm_pptp_auth_dialog_CPPFLAGS = \
$(NM_CFLAGS) \
- $(GTHREAD_CFLAGS) \
+ $(GLIB_CFLAGS) \
$(GTK_CFLAGS) \
$(GNOMEKEYRING_CFLAGS) \
-DICONDIR=\""$(datadir)/pixmaps"\" \
diff --git a/auth-dialog/main.c b/auth-dialog/main.c
index 21df07f..8a5e61d 100644
--- a/auth-dialog/main.c
+++ b/auth-dialog/main.c
@@ -101,10 +101,6 @@ keyfile_print_stdout (GKeyFile *keyfile)
g_free (data);
}
-#if !GLIB_CHECK_VERSION(2,32,0)
-#define g_key_file_unref g_key_file_free
-#endif
-
static gboolean
get_secrets (const char *vpn_uuid,
const char *vpn_name,
diff --git a/configure.ac b/configure.ac
index f2cba04..c696c17 100644
--- a/configure.ac
+++ b/configure.ac
@@ -61,9 +61,10 @@ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
IT_PROG_INTLTOOL([0.35])
AM_GLIB_GNU_GETTEXT
-PKG_CHECK_MODULES(GTHREAD, gthread-2.0)
-AC_SUBST(GTHREAD_CFLAGS)
-AC_SUBST(GTHREAD_LIBS)
+PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.32)
+AC_SUBST(GLIB_CFLAGS)
+AC_SUBST(GLIB_LIBS)
+GLIB_CFLAGS="$GLIB_CFLAGS -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_32"
PKG_CHECK_MODULES(DBUS, dbus-glib-1 >= 0.74)
AC_SUBST(DBUS_GLIB_CFLAGS)
diff --git a/properties/Makefile.am b/properties/Makefile.am
index 094b412..55bbf22 100644
--- a/properties/Makefile.am
+++ b/properties/Makefile.am
@@ -15,6 +15,7 @@ uidir = $(datadir)/gnome-vpn-properties/pptp
ui_DATA = nm-pptp-dialog.ui
libnm_pptp_properties_la_CFLAGS = \
+ $(GLIB_CFLAGS) \
$(GTK_CFLAGS) \
$(NM_CFLAGS) \
-DICONDIR=\""$(datadir)/pixmaps"\" \
diff --git a/src/Makefile.am b/src/Makefile.am
index 3362cdc..9eefa31 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -2,7 +2,7 @@ INCLUDES = -I${top_srcdir}
AM_CPPFLAGS = \
$(DBUS_GLIB_CFLAGS) \
- $(GTHREAD_CFLAGS) \
+ $(GLIB_CFLAGS) \
$(NM_CFLAGS) \
-DG_DISABLE_DEPRECATED \
-DBINDIR=\"$(bindir)\" \
@@ -27,7 +27,7 @@ nm-pptp-pppd-service-glue.h: $(top_srcdir)/src/nm-pptp-pppd-service.xml
nm_pptp_service_LDADD = \
$(DBUS_GLIB_LIBS) \
- $(GTHREAD_LIBS) \
+ $(GLIB_LIBS) \
$(NM_LIBS)
pppd_plugindir = $(PPPD_PLUGIN_DIR)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]