emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r112840: * configure.ac (HAVE_GFILENO


From: Michael Albinus
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r112840: * configure.ac (HAVE_GFILENOTIFY): Do not change $LIBS.
Date: Mon, 03 Jun 2013 21:06:09 +0200
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 112840
author: Eli Zaretskii <address@hidden>
committer: Michael Albinus <address@hidden>
branch nick: trunk
timestamp: Mon 2013-06-03 21:06:09 +0200
message:
  * configure.ac (HAVE_GFILENOTIFY): Do not change $LIBS.
  (GFILENOTIFY_CFLAGS, GFILENOTIFY_LIBS): Substitute.
  
  * nt/config.nt: Add HAVE_GFILENOTIFY, HAVE_W32NOTIFY and USE_FILE_NOTIFY.
  
  * src/Makefile.in (GFILENOTIFY_CFLAGS, GFILENOTIFY_LIBS): New variables.
  (ALL_CFLAGS): Add $(GFILENOTIFY_CFLAGS).
  (LIBES): Add $(GFILENOTIFY_LIBS).
  
  * src/w32inevt.c (handle_file_notifications): Add dummy implementation
  for !HAVE_W32NOTIFY.
  
  * src/w32term.c: Wrap code with HAVE_W32NOTIFY.
modified:
  ChangeLog
  configure.ac
  nt/ChangeLog
  nt/config.nt
  src/ChangeLog
  src/Makefile.in
  src/w32inevt.c
  src/w32term.c
=== modified file 'ChangeLog'
--- a/ChangeLog 2013-06-03 18:47:35 +0000
+++ b/ChangeLog 2013-06-03 19:06:09 +0000
@@ -1,3 +1,8 @@
+2013-06-03  Eli Zaretskii  <address@hidden>
+
+       * configure.ac (HAVE_GFILENOTIFY): Do not change $LIBS.
+       (GFILENOTIFY_CFLAGS, GFILENOTIFY_LIBS): Substitute.
+
 2013-06-03  Jan Djärv  <address@hidden>
 
        * configure.ac (HAVE_GLIB): Add GLib check.  Set XGSELOBJ if GLib is

=== modified file 'configure.ac'
--- a/configure.ac      2013-06-03 18:47:35 +0000
+++ b/configure.ac      2013-06-03 19:06:09 +0000
@@ -2329,7 +2329,6 @@
    PKG_CHECK_MODULES(GFILENOTIFY, gio-2.0 >= 2.18, HAVE_GFILENOTIFY=yes, 
HAVE_GFILENOTIFY=no)
    if test "$HAVE_GFILENOTIFY" = "yes"; then
       AC_DEFINE(HAVE_GFILENOTIFY, 1, [Define to 1 if using GFile.])
-      LIBS="$LIBS $GFILENOTIFY_LIBS"
       NOTIFY_OBJ=gfilenotify.o
       NOTIFY_SUMMARY="yes -lgio (gfile)"
    fi
@@ -2359,6 +2358,8 @@
    AC_DEFINE(USE_FILE_NOTIFY, 1, [Define to 1 if using file notifications.])
 fi
 AC_SUBST(NOTIFY_OBJ)
+AC_SUBST(GFILENOTIFY_CFLAGS)
+AC_SUBST(GFILENOTIFY_LIBS)
 
 dnl Do not put whitespace before the #include statements below.
 dnl Older compilers (eg sunos4 cc) choke on it.

=== modified file 'nt/ChangeLog'
--- a/nt/ChangeLog      2013-06-03 17:15:44 +0000
+++ b/nt/ChangeLog      2013-06-03 19:06:09 +0000
@@ -1,5 +1,9 @@
 2013-06-03  Eli Zaretskii  <address@hidden>
 
+       * config.nt: Add HAVE_GFILENOTIFY, HAVE_W32NOTIFY and USE_FILE_NOTIFY.
+
+2013-06-03  Eli Zaretskii  <address@hidden>
+
        * inc/sys/time.h (struct timeval): Remove the _W64 guards.
 
 2013-06-01  Eli Zaretskii  <address@hidden>

=== modified file 'nt/config.nt'
--- a/nt/config.nt      2013-05-08 15:04:20 +0000
+++ b/nt/config.nt      2013-06-03 19:06:09 +0000
@@ -547,6 +547,9 @@
 /* Define to 1 if you have the `gettimeofday' function. */
 #define HAVE_GETTIMEOFDAY 1
 
+/* Define to 1 if using GFile. */
+#undef HAVE_GFILENOTIFY
+
 /* Define to 1 if you have the `get_current_dir_name' function. */
 #undef HAVE_GET_CURRENT_DIR_NAME
 
@@ -1141,6 +1144,9 @@
 /* Define to 1 if you have the <vfork.h> header file. */
 #undef HAVE_VFORK_H
 
+/* Define to 1 to use w32notify. */
+#define HAVE_W32NOTIFY 1
+
 /* Define to 1 if you have the <wchar.h> header file. */
 #undef HAVE_WCHAR_H
 
@@ -1497,6 +1503,9 @@
 /* Define to nonzero if you want access control list support. */
 #undef USE_ACL
 
+/* Define to 1 if using file notifications. */
+#define USE_FILE_NOTIFY 1
+
 /* Define to 1 if using GTK. */
 #undef USE_GTK
 

=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2013-06-03 18:47:35 +0000
+++ b/src/ChangeLog     2013-06-03 19:06:09 +0000
@@ -1,3 +1,14 @@
+2013-06-03  Eli Zaretskii  <address@hidden>
+
+       * Makefile.in (GFILENOTIFY_CFLAGS, GFILENOTIFY_LIBS): New variables.
+       (ALL_CFLAGS): Add $(GFILENOTIFY_CFLAGS).
+       (LIBES): Add $(GFILENOTIFY_LIBS).
+
+       * w32inevt.c (handle_file_notifications): Add dummy implementation
+       for !HAVE_W32NOTIFY.
+
+       * w32term.c: Wrap code with HAVE_W32NOTIFY.
+
 2013-06-03  Jan Djärv  <address@hidden>
 
        * xgselect.c: Replace #if defined ... with #ifdef HAVE_GLIB.

=== modified file 'src/Makefile.in'
--- a/src/Makefile.in   2013-06-03 18:47:35 +0000
+++ b/src/Makefile.in   2013-06-03 19:06:09 +0000
@@ -160,6 +160,8 @@
 ## inotify.o if HAVE_INOTIFY.
 ## w32notify.o if HAVE_W32NOTIFY.
 NOTIFY_OBJ = @NOTIFY_OBJ@
+GFILENOTIFY_CFLAGS = @GFILENOTIFY_CFLAGS@
+GFILENOTIFY_LIBS = @GFILENOTIFY_LIBS@
 
 ## -ltermcap, or -lncurses, or -lcurses, or "".
 address@hidden@
@@ -345,7 +347,7 @@
   $(LIBXML2_CFLAGS) $(DBUS_CFLAGS) $(XRANDR_CFLAGS) $(XINERAMA_CFLAGS) \
   $(SETTINGS_CFLAGS) $(FREETYPE_CFLAGS) $(FONTCONFIG_CFLAGS) \
   $(LIBOTF_CFLAGS) $(M17N_FLT_CFLAGS) $(DEPFLAGS) \
-  $(LIBGNUTLS_CFLAGS) \
+  $(LIBGNUTLS_CFLAGS) $(GFILENOTIFY_CFLAGS) \
   $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAGS)
 ALL_OBJC_CFLAGS=$(ALL_CFLAGS) $(GNU_OBJC_CFLAGS)
 
@@ -427,7 +429,7 @@
    $(LIBS_TERMCAP) $(GETLOADAVG_LIBS) $(SETTINGS_LIBS) $(LIBSELINUX_LIBS) \
    $(FREETYPE_LIBS) $(FONTCONFIG_LIBS) $(LIBOTF_LIBS) $(M17N_FLT_LIBS) \
    $(LIBGNUTLS_LIBS) $(LIB_PTHREAD) $(LIB_PTHREAD_SIGMASK) \
-   $(LIB_MATH)
+   $(GFILENOTIFY_LIBS) $(LIB_MATH)
 
 all: emacs$(EXEEXT) $(OTHER_FILES)
 .PHONY: all

=== modified file 'src/w32inevt.c'
--- a/src/w32inevt.c    2013-01-02 16:13:04 +0000
+++ b/src/w32inevt.c    2013-06-03 19:06:09 +0000
@@ -577,6 +577,7 @@
                     0, 0, 0);
 }
 
+#if HAVE_W32NOTIFY
 static int
 handle_file_notifications (struct input_event *hold_quit)
 {
@@ -644,6 +645,13 @@
   leave_crit ();
   return nevents;
 }
+#else  /* !HAVE_W32NOTIFY */
+static int
+handle_file_notifications (struct input_event *hold_quit)
+{
+  return 0;
+}
+#endif /* !HAVE_W32NOTIFY */
 
 /* Here's an overview of how Emacs input works in non-GUI sessions on
    MS-Windows.  (For description of the GUI input, see the commentary

=== modified file 'src/w32term.c'
--- a/src/w32term.c     2013-04-14 00:58:45 +0000
+++ b/src/w32term.c     2013-06-03 19:06:09 +0000
@@ -3210,6 +3210,8 @@
 }
 
 
+#if HAVE_W32NOTIFY
+
 /* File event notifications (see w32notify.c).  */
 
 Lisp_Object
@@ -3325,7 +3327,8 @@
   /* We've stuffed all the events ourselves, so w32_read_socket shouldn't.  */
   event->kind = NO_EVENT;
 }
-#endif
+#endif /* WINDOWSNT */
+#endif /* HAVE_W32NOTIFY */
 
 
 /* Function to report a mouse movement to the mainstream Emacs code.
@@ -4968,7 +4971,7 @@
          check_visibility = 1;
          break;
 
-#ifdef WINDOWSNT
+#if HAVE_W32NOTIFY
        case WM_EMACS_FILENOTIFY:
          f = x_window_to_frame (dpyinfo, msg.msg.hwnd);
          if (f)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]