changeset 15094:0045e29408f4

sigprocmask: Move AC_LIBOBJ invocations to module description. * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and gl_PREREQ_SIGPROMASK invocations from here... * modules/sigprocmask (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sun, 22 May 2011 00:18:29 +0200
parents 07cf2accb5ec
children ace2724e4304
files ChangeLog m4/signalblocking.m4 modules/sigprocmask
diffstat 3 files changed, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+	sigprocmask: Move AC_LIBOBJ invocations to module description.
+	* m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
+	gl_PREREQ_SIGPROMASK invocations from here...
+	* modules/sigprocmask (configure.ac): ... to here.
+
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
 	sigaction: Move AC_LIBOBJ invocations to module description.
 	* m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
 	gl_PREREQ_SIGACTION invocations from here...
--- a/m4/signalblocking.m4
+++ b/m4/signalblocking.m4
@@ -1,4 +1,4 @@
-# signalblocking.m4 serial 10
+# signalblocking.m4 serial 11
 dnl Copyright (C) 2001-2002, 2006-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -19,8 +19,6 @@
   fi
   if test -z "$gl_cv_func_sigprocmask"; then
     HAVE_POSIX_SIGNALBLOCKING=0
-    AC_LIBOBJ([sigprocmask])
-    gl_PREREQ_SIGPROCMASK
   fi
 ])
 
--- a/modules/sigprocmask
+++ b/modules/sigprocmask
@@ -12,6 +12,10 @@
 
 configure.ac:
 gl_SIGNALBLOCKING
+if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
+  AC_LIBOBJ([sigprocmask])
+  gl_PREREQ_SIGPROCMASK
+fi
 gl_SIGNAL_MODULE_INDICATOR([sigprocmask])
 
 Makefile.am: