changeset 14936:0f6fba78c418

_Exit: Move AC_LIBOBJ invocations to module description. * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT invocations from here... * modules/_Exit (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Fri, 06 May 2011 12:58:23 +0200
parents f852b19fc41a
children a6c05261a4fc
files ChangeLog m4/_Exit.m4 modules/_Exit
diffstat 3 files changed, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-06  Bruno Haible  <bruno@clisp.org>
+
+	_Exit: Move AC_LIBOBJ invocations to module description.
+	* m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
+	invocations from here...
+	* modules/_Exit (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
 	euidaccess: Respect rules for use of AC_LIBOBJ.
--- a/m4/_Exit.m4
+++ b/m4/_Exit.m4
@@ -1,4 +1,4 @@
-# _Exit.m4 serial 1
+# _Exit.m4 serial 2
 dnl Copyright (C) 2010-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,
@@ -10,8 +10,6 @@
   AC_CHECK_FUNCS([_Exit])
   if test $ac_cv_func__Exit = no; then
     HAVE__EXIT=0
-    AC_LIBOBJ([_Exit])
-    gl_PREREQ__EXIT
   fi
 ])
 
--- a/modules/_Exit
+++ b/modules/_Exit
@@ -10,6 +10,10 @@
 
 configure.ac:
 gl_FUNC__EXIT
+if test $HAVE__EXIT = 0; then
+  AC_LIBOBJ([_Exit])
+  gl_PREREQ__EXIT
+fi
 gl_STDLIB_MODULE_INDICATOR([_Exit])
 
 Makefile.am: