changeset 15128:c7623a5ec63d

tmpfile: Move AC_LIBOBJ invocations to module description. * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE invocations from here... * modules/tmpfile (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sun, 22 May 2011 17:04:09 +0200
parents dc03b3279cc1
children 9d42c63bc50d
files ChangeLog m4/tmpfile.m4 modules/tmpfile
diffstat 3 files changed, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+	tmpfile: Move AC_LIBOBJ invocations to module description.
+	* m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
+	invocations from here...
+	* modules/tmpfile (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
 	times: Move AC_LIBOBJ invocations to module description.
--- a/m4/tmpfile.m4
+++ b/m4/tmpfile.m4
@@ -1,4 +1,4 @@
-# tmpfile.m4 serial 1
+# tmpfile.m4 serial 2
 # Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -31,8 +31,6 @@
        [gl_cv_func_tmpfile_unusable=no])])
   if test $gl_cv_func_tmpfile_unusable = yes; then
     REPLACE_TMPFILE=1
-    AC_LIBOBJ([tmpfile])
-    gl_PREREQ_TMPFILE
   fi
 ])
 
--- a/modules/tmpfile
+++ b/modules/tmpfile
@@ -13,6 +13,10 @@
 
 configure.ac:
 gl_FUNC_TMPFILE
+if test $REPLACE_TMPFILE = 1; then
+  AC_LIBOBJ([tmpfile])
+  gl_PREREQ_TMPFILE
+fi
 gl_STDIO_MODULE_INDICATOR([tmpfile])
 
 Makefile.am: