]> code.delx.au - gnu-emacs/blobdiff - configure.ac
* lisp/help.el (temp-buffer-setup-hook,temp-buffer-show-hook): Revert
[gnu-emacs] / configure.ac
index fc7a87a075ac0516c595217b1a8a8da4a15dc10f..7e101aa9fc9aae1963127fd4b8a405b74561a469 100644 (file)
@@ -1539,7 +1539,7 @@ if test "$ac_cv_header_sys_sysinfo_h" = yes; then
       AC_DEFINE(LINUX_SYSINFO_UNIT, 1,
                 [Define to 1 if Linux sysinfo sizes are in multiples of mem_unit bytes.]))
   fi
-fi  
+fi
 
 dnl On Solaris 8 there's a compilation warning for term.h because
 dnl it doesn't define `bool'.
@@ -3710,6 +3710,20 @@ fi
 AC_SUBST(LIBS_TERMCAP)
 AC_SUBST(TERMCAP_OBJ)
 
+# GNU/Linux-specific timer functions.
+AC_CACHE_CHECK([for timerfd interface], [emacs_cv_have_timerfd],
+  [AC_COMPILE_IFELSE(
+     [AC_LANG_PROGRAM([[#include <sys/timerfd.h>
+                     ]],
+                     [[timerfd_create (CLOCK_REALTIME,
+                                       TFD_CLOEXEC | TFD_NONBLOCK);
+                       timerfd_settime (0, TFD_TIMER_ABSTIME, 0, 0);]])],
+     [emacs_cv_have_timerfd=yes],
+     [emacs_cv_have_timerfd=no])])
+if test "$emacs_cv_have_timerfd" = yes; then
+  AC_DEFINE([HAVE_TIMERFD], 1,
+    [Define to 1 if timerfd functions are supported as in GNU/Linux.])
+fi
 
 # Do we have res_init, for detecting changes in /etc/resolv.conf?
 # On Darwin, res_init appears not to be useful: see bug#562 and