From: Daniel Colascione Date: Sun, 23 Mar 2014 09:17:29 +0000 (-0700) Subject: Notice when gfilenotify depends on glib X-Git-Tag: emacs-25.0.90~2640^2~344^2~3 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dfdce7dc1c6876b70ecc5ef8886699d0cf158294;p=emacs.git Notice when gfilenotify depends on glib --- diff --git a/ChangeLog b/ChangeLog index f7917d6bec4..627fd22a1a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-03-23 Daniel Colascione + + * configure.ac: (Bug#17069) Include GFILENOTIFY objects in glib + check. + 2014-03-22 Glenn Morris * make-dist: Do not distribute lib-src/testfile. diff --git a/configure.ac b/configure.ac index af4a42c211f..f726251b219 100644 --- a/configure.ac +++ b/configure.ac @@ -3834,6 +3834,10 @@ AC_CHECK_FUNCS(snprintf) dnl Check this late. It depends on what other libraries (lrsvg, Gtk+ etc) dnl Emacs uses. XGSELOBJ= +OLDCFLAGS="$CFLAGS" +OLDLIBS="$LIBS" +CFLAGS="$CFLAGS $GFILENOTIFY_CFLAGS" +LIBS="$LIBS $GFILENOTIFY_LIBS" AC_MSG_CHECKING([whether GLib is linked in]) AC_LINK_IFELSE([AC_LANG_PROGRAM( [[#include @@ -3848,6 +3852,8 @@ if test "${links_glib}" = "yes"; then XGSELOBJ=xgselect.o fi fi +CFLAGS="$OLDCFLAGS" +LIBS="$OLDLIBS" AC_SUBST(XGSELOBJ) dnl Adapted from Haible's version.