]> git.eshelyaron.com Git - emacs.git/commitdiff
Notice when gfilenotify depends on glib
authorDaniel Colascione <dancol@dancol.org>
Sun, 23 Mar 2014 09:17:29 +0000 (02:17 -0700)
committerDaniel Colascione <dancol@dancol.org>
Sun, 23 Mar 2014 09:17:29 +0000 (02:17 -0700)
ChangeLog
configure.ac

index f7917d6bec46755c52497f8096a8bfe5d659cd30..627fd22a1a68e9dae05c59425cff5dafb60a2722 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-03-23  Daniel Colascione  <dancol@dancol.org>
+
+       * configure.ac: (Bug#17069) Include GFILENOTIFY objects in glib
+       check.
+
 2014-03-22  Glenn Morris  <rgm@gnu.org>
 
        * make-dist: Do not distribute lib-src/testfile.
index af4a42c211f4258f151c036030afc901c830daa3..f726251b219d73ec25e55334710ff6c2ebe37479 100644 (file)
@@ -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 <glib.h>
@@ -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.