mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-06 11:55:48 +00:00
Fix link error on Fedora 14: newer GConf don't use g_type_*.
* configure.in (HAVE_GCONF): Check for g_type_init if GConf is found. * src/config.in (HAVE_G_TYPE_INIT): New symbol. * src/xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
This commit is contained in:
parent
545aad4c00
commit
1e60039597
@ -1776,6 +1776,8 @@ if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
|
||||
PKG_CHECK_MODULES(GCONF, gconf-2.0 >= 2.13, HAVE_GCONF=yes, HAVE_GCONF=no)
|
||||
if test "$HAVE_GCONF" = yes; then
|
||||
AC_DEFINE(HAVE_GCONF, 1, [Define to 1 if using GConf.])
|
||||
dnl Newer GConf doesn't link with g_objects, so this is not defined.
|
||||
AC_CHECK_FUNCS([g_type_init])
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -292,6 +292,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
||||
/* Define to 1 if GTK can handle more than one display. */
|
||||
#undef HAVE_GTK_MULTIDISPLAY
|
||||
|
||||
/* Define to 1 if you have the `g_type_init' function. */
|
||||
#undef HAVE_G_TYPE_INIT
|
||||
|
||||
/* Define to 1 if netdb.h declares h_errno. */
|
||||
#undef HAVE_H_ERRNO
|
||||
|
||||
@ -334,9 +337,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
||||
/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
|
||||
#undef HAVE_LANGINFO_CODESET
|
||||
|
||||
/* Define to 1 if the directory /usr/lib64 exists. */
|
||||
#undef HAVE_LIB64_DIR
|
||||
|
||||
/* Define to 1 if you have the `com_err' library (-lcom_err). */
|
||||
#undef HAVE_LIBCOM_ERR
|
||||
|
||||
|
@ -563,7 +563,9 @@ init_gconf ()
|
||||
int i;
|
||||
char *s;
|
||||
|
||||
#ifdef HAVE_G_TYPE_INIT
|
||||
g_type_init ();
|
||||
#endif
|
||||
gconf_client = gconf_client_get_default ();
|
||||
s = gconf_client_get_string (gconf_client, SYSTEM_MONO_FONT, NULL);
|
||||
if (s)
|
||||
|
Loading…
Reference in New Issue
Block a user