2008-06-22 Bruno Haible <bruno@clisp.org>
+ * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
+ (gl_PREREQ_SIGPROCMASK): Invoke it.
+ * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
+
* lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
* lib/sigprocmask.c: Update a comment.
-# sigaction.m4 serial 1
+# sigaction.m4 serial 2
dnl Copyright (C) 2008 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
fi
])
-# Prerequisites of the part of lib/signal.in.h and of lib/sigprocmask.c.
+# Prerequisites of the part of lib/signal.in.h and of lib/sigaction.c.
AC_DEFUN([gl_PREREQ_SIGACTION],
[
+ AC_REQUIRE([gl_SIGNAL_H_DEFAULTS])
AC_REQUIRE([AC_C_RESTRICT])
AC_REQUIRE([AC_TYPE_UID_T])
- AC_REQUIRE([gl_SIGNAL_H_DEFAULTS])
AC_CHECK_FUNCS_ONCE([sigaltstack siginterrupt])
AC_CHECK_TYPES([siginfo_t], [], [], [[
#include <signal.h>
HAVE_SIGINFO_T=0
AC_SUBST([HAVE_SIGINFO_T])
fi
+ gl_PREREQ_SIG_HANDLER_H
])
-# signalblocking.m4 serial 7
+# signalblocking.m4 serial 8
dnl Copyright (C) 2001-2002, 2006-2008 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl HAVE_SIGSET_T is 1 if the system lacks the sigprocmask function but has
dnl the sigset_t type.
AC_SUBST([HAVE_SIGSET_T])
+ gl_PREREQ_SIG_HANDLER_H
+])
+
+# Prerequisites of lib/sig-handler.h.
+AC_DEFUN([gl_PREREQ_SIG_HANDLER_H],
+[
+ AC_REQUIRE([AC_C_INLINE])
+ :
])