mkstemp: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 14:00:00 +0000 (16:00 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:33 +0000 (00:06 +0200)
* m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
gl_PREREQ_MKSTEMP invocations from here...
* modules/mkstemp (configure.ac): ... to here.

ChangeLog
m4/mkstemp.m4
modules/mkstemp

index c984ad0..b41bc18 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+       mkstemp: Move AC_LIBOBJ invocations to module description.
+       * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
+       gl_PREREQ_MKSTEMP invocations from here...
+       * modules/mkstemp (configure.ac): ... to here.
+
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
        mkostemps: Move AC_LIBOBJ invocations to module description.
        * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
        here...
index 0437f14..0bc918c 100644 (file)
@@ -1,4 +1,4 @@
-#serial 20
+#serial 21
 
 # Copyright (C) 2001, 2003-2007, 2009-2011 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -61,13 +61,9 @@ AC_DEFUN([gl_FUNC_MKSTEMP],
       ])
     if test "$gl_cv_func_working_mkstemp" != yes; then
       REPLACE_MKSTEMP=1
-      AC_LIBOBJ([mkstemp])
-      gl_PREREQ_MKSTEMP
     fi
   else
     HAVE_MKSTEMP=0
-    AC_LIBOBJ([mkstemp])
-    gl_PREREQ_MKSTEMP
   fi
 ])
 
index 0f4fef6..9ac5b3f 100644 (file)
@@ -12,6 +12,10 @@ tempname        [test $HAVE_MKSTEMP = 0 || test $REPLACE_MKSTEMP = 1]
 
 configure.ac:
 gl_FUNC_MKSTEMP
+if test $HAVE_MKSTEMP = 0 || test $REPLACE_MKSTEMP = 1; then
+  AC_LIBOBJ([mkstemp])
+  gl_PREREQ_MKSTEMP
+fi
 gl_STDLIB_MODULE_INDICATOR([mkstemp])
 
 Makefile.am: