changeset 15092:b62edef35094

sig2str: Move AC_LIBOBJ invocations to module description. * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from here... * modules/sig2str (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sun, 22 May 2011 00:11:35 +0200
parents e5a3db1759c6
children 07cf2accb5ec
files ChangeLog m4/sig2str.m4 modules/sig2str
diffstat 3 files changed, 14 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+	sig2str: Move AC_LIBOBJ invocations to module description.
+	* m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
+	AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
+	here...
+	* modules/sig2str (configure.ac): ... to here.
+
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
 	setlocale: Move AC_LIBOBJ invocations to module description.
 	* m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
 	gl_PREREQ_SETLOCALE invocations from here...
--- a/m4/sig2str.m4
+++ b/m4/sig2str.m4
@@ -1,4 +1,4 @@
-# serial 6
+# serial 7
 dnl Copyright (C) 2002, 2005-2006, 2009-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,
@@ -6,11 +6,7 @@
 
 AC_DEFUN([gl_FUNC_SIG2STR],
 [
-
-  AC_REPLACE_FUNCS([sig2str])
-  if test $ac_cv_func_sig2str = no; then
-    gl_PREREQ_SIG2STR
-  fi
+  AC_CHECK_FUNCS([sig2str])
 ])
 
 # Prerequisites of lib/sig2str.c.
--- a/modules/sig2str
+++ b/modules/sig2str
@@ -11,6 +11,10 @@
 
 configure.ac:
 gl_FUNC_SIG2STR
+if test $ac_cv_func_sig2str = no; then
+  AC_LIBOBJ([sig2str])
+  gl_PREREQ_SIG2STR
+fi
 
 Makefile.am: