Mercurial > hg > icedtea7
changeset 2799:909fa12f498c
PR2320: Allow use of system GConf
2015-06-12 Andrew John Hughes <gnu.andrew@member.fsf.org>
* INSTALL:
Document GConf2 option and requirements.
* Makefile.am:
(ICEDTEA_ENV): Add SYSTEM_GCONF, GCONF_LIBS
and GCONF_CFLAGS.
* acinclude.m4:
(IT_CHECK_FOR_GCONF): Add --enable-system-gconf
for building using the system installation of
GConf. This is disabled by default on
systems where the preferable GSettings API in GIO
is found.
* configure.ac: Call IT_CHECK_FOR_GCONF.
author | Andrew John Hughes <gnu_andrew@member.fsf.org> |
---|---|
date | Fri, 12 Jun 2015 19:21:14 +0100 |
parents | 237b37f0f9d1 |
children | 7040aac5c90e |
files | ChangeLog INSTALL Makefile.am acinclude.m4 configure.ac |
diffstat | 5 files changed, 54 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri Jun 12 15:16:54 2015 +0100 +++ b/ChangeLog Fri Jun 12 19:21:14 2015 +0100 @@ -1,3 +1,18 @@ +2015-06-12 Andrew John Hughes <gnu.andrew@member.fsf.org> + + * INSTALL: + Document GConf2 option and requirements. + * Makefile.am: + (ICEDTEA_ENV): Add SYSTEM_GCONF, GCONF_LIBS + and GCONF_CFLAGS. + * acinclude.m4: + (IT_CHECK_FOR_GCONF): Add --enable-system-gconf + for building using the system installation of + GConf. This is disabled by default on + systems where the preferable GSettings API in GIO + is found. + * configure.ac: Call IT_CHECK_FOR_GCONF. + 2015-06-09 Andrew John Hughes <gnu.andrew@member.fsf.org> * NEWS: Add additional Red Hat and
--- a/INSTALL Fri Jun 12 15:16:54 2015 +0100 +++ b/INSTALL Fri Jun 12 19:21:14 2015 +0100 @@ -22,6 +22,7 @@ xsltproc (for bootstrapping) ant >= 1.6.5 with the regexp task from ant-nodeps glib2-devel (for --enable-system-gio) +GConf2-devel (for --enable-system-gconf) gtk2-devel (for --enable-system-gtk) giflib-devel (for --enable-system-gif) libpng-devel (for --enable-system-png) @@ -105,6 +106,9 @@ Gtk+ instead of trying to dynamically open it at runtime. * --enable-system-gio: Build and link against the system installation of GIO instead of trying to dynamically open it at runtime. +* --enable-system-gconf: Build and link against the system installation of + GConf instead of trying to dynamically open it at runtime (only enabled + by default on systems with older versions of Glib/GIO without the GSettings API) * --enable-system-fontconfig: Build and link against the system installation of fontconfig instead of trying to dynamically open it at runtime. * --enable-system-pcsc: Build and link against the system installation of
--- a/Makefile.am Fri Jun 12 15:16:54 2015 +0100 +++ b/Makefile.am Fri Jun 12 19:21:14 2015 +0100 @@ -518,6 +518,9 @@ SYSTEM_GSETTINGS="${ENABLE_SYSTEM_GSETTINGS}" \ GIO_LIBS="${GIO_LIBS}" \ GIO_CFLAGS="${GIO_CFLAGS}" \ + SYSTEM_GCONF="${ENABLE_SYSTEM_GCONF}" \ + GCONF_LIBS="${GCONF_LIBS}" \ + GCONF_CFLAGS="${GCONF_CFLAGS}" \ SYSTEM_FONTCONFIG="${ENABLE_SYSTEM_FONTCONFIG}" \ FONTCONFIG_LIBS="${FONTCONFIG_LIBS}" \ FONTCONFIG_CFLAGS="${FONTCONFIG_CFLAGS}" \
--- a/acinclude.m4 Fri Jun 12 15:16:54 2015 +0100 +++ b/acinclude.m4 Fri Jun 12 19:21:14 2015 +0100 @@ -2960,3 +2960,34 @@ AM_CONDITIONAL([JAVAC_LACKS_UNDERSCORED_LITERALS], test x"${it_cv_underscore}" = "xyes") AC_PROVIDE([$0])dnl ]) + +AC_DEFUN_ONCE([IT_CHECK_FOR_GCONF], +[ + AC_REQUIRE([IT_CHECK_FOR_GIO]) + AC_MSG_CHECKING([whether to use the system GConf install]) + AC_ARG_ENABLE([system-gconf], + [AS_HELP_STRING(--enable-system-gconf,use the system GConf [[default=no if g_settings is available]])], + [ + ENABLE_SYSTEM_GCONF="${enableval}" + ], + [ + if test x"${ENABLE_SYSTEM_GSETTINGS}" = "xtrue"; then + ENABLE_SYSTEM_GCONF="no" + else + ENABLE_SYSTEM_GCONF="yes" + fi + ]) + AC_MSG_RESULT(${ENABLE_SYSTEM_GCONF}) + if test x"${ENABLE_SYSTEM_GCONF}" = "xyes"; then + dnl Check for Gconf+ headers and libraries. + PKG_CHECK_MODULES(GCONF, gconf-2.0 gobject-2.0,[GCONF_FOUND=yes],[GCONF_FOUND=no]) + if test "x${GCONF_FOUND}" = xno; then + AC_MSG_ERROR([Could not find GConf; install GConf or build with --disable-system-gconf to use the in-tree headers.]) + fi + AC_SUBST(GCONF_CFLAGS) + AC_SUBST(GCONF_LIBS) + ENABLE_SYSTEM_GCONF=true + fi + AM_CONDITIONAL(USE_SYSTEM_GCONF, test x"${ENABLE_SYSTEM_GCONF}" = "xtrue") + AC_SUBST(ENABLE_SYSTEM_GCONF) +])