tmpfile: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 15:04:09 +0000 (17:04 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:07:01 +0000 (00:07 +0200)
* m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
invocations from here...
* modules/tmpfile (configure.ac): ... to here.

ChangeLog
m4/tmpfile.m4
modules/tmpfile

index 2f4ce70e6998ed7e33d9647a4dfaaac8c10e0fb0..08aa6a4a2491609739b07140117804f4a99a8929 100644 (file)
--- 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.
index 29198062ce9cd021e6349aec267815e5675bf4bb..a0b8be72f069bd75086c826383848e8d9cdd73b4 100644 (file)
@@ -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 @@ choke me
        [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
 ])
 
index 6adf22a9deadcf1ea7edb95c8c90190f464a5b28..d3a97fe89623ff05aefd15195596bf7a6d13c5d7 100644 (file)
@@ -13,6 +13,10 @@ tmpdir          [test $REPLACE_TMPFILE = 1]
 
 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: