changeset 2767:b08e78ab545a

PR2161: RHEL 6 has a version of GIO which meets the version criteria, but has no g_settings_* 2015-01-07 Andrew John Hughes <gnu.andrew@member.fsf.org> PR2161: RHEL 6 has a version of GIO which meets the version criteria, but has no g_settings_* * NEWS: Updated. * acinclude.m4: (IT_CHECK_FOR_GIO): Replace version test with a check for g_settings_new.
author Andrew John Hughes <gnu_andrew@member.fsf.org>
date Wed, 21 Jan 2015 18:20:42 +0000
parents bf9210d67acb
children 17332a8545d8
files ChangeLog NEWS acinclude.m4
diffstat 3 files changed, 17 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Jan 21 18:17:25 2015 +0000
+++ b/ChangeLog	Wed Jan 21 18:20:42 2015 +0000
@@ -1,3 +1,12 @@
+2015-01-07  Andrew John Hughes  <gnu.andrew@member.fsf.org>
+
+	PR2161: RHEL 6 has a version of GIO which meets
+	the version criteria, but has no g_settings_*
+	* NEWS: Updated.
+	* acinclude.m4:
+	(IT_CHECK_FOR_GIO): Replace version test with
+	a check for g_settings_new.
+
 2015-01-06  Andrew John Hughes  <gnu.andrew@member.fsf.org>
 
 	PR2064: Unset OS before running OpenJDK build
--- a/NEWS	Wed Jan 21 18:17:25 2015 +0000
+++ b/NEWS	Wed Jan 21 18:20:42 2015 +0000
@@ -109,6 +109,7 @@
   - PR2123: SunEC provider crashes when built using system NSS
   - PR2124: Synchronise elliptic curves in sun.security.ec.NamedCurve with those listed by NSS
   - PR2135: Race condition in SunEC provider with system NSS
+  - PR2161: RHEL 6 has a version of GIO which meets the version criteria, but has no g_settings_*
 
 New in release 2.5.3 (2014-10-14):
 
--- a/acinclude.m4	Wed Jan 21 18:17:25 2015 +0000
+++ b/acinclude.m4	Wed Jan 21 18:20:42 2015 +0000
@@ -2129,10 +2129,13 @@
   AC_MSG_RESULT(${ENABLE_SYSTEM_GIO})
   if test x"${ENABLE_SYSTEM_GIO}" = "xyes"; then
     dnl Check for Gio+ headers and libraries.
-    PKG_CHECK_MODULES(GIO, gio-2.0 >= 2.26,[GIO_FOUND=yes],[GIO_FOUND=no])
-    if test "x${GIO_FOUND}" = xno
-    then
-      AC_MSG_ERROR([Could not find GIO >= 2.26; install GIO or build with --disable-system-gio to use the in-tree headers.])
+    PKG_CHECK_MODULES(GIO, gio-2.0,[GIO_FOUND=yes],[GIO_FOUND=no])
+    OLD_LIBS=${LIBS}
+    LIBS="${LIBS} ${GIO_LIBS}"
+    AC_CHECK_FUNC([g_settings_new],[GIO_FUNC_FOUND=yes],[GIO_FUNC_FOUND=no])
+    LIBS=${OLD_LIBS}
+    if test "x${GIO_FOUND}" = xno -o "x${GIO_FUNC_FOUND}" = xno; then
+      AC_MSG_ERROR([Could not find GIO; install GIO or build with --disable-system-gio to use the in-tree headers.])
     fi
     AC_SUBST(GIO_CFLAGS)
     AC_SUBST(GIO_LIBS)