mkdtemp: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 13:43:36 +0000 (15:43 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:31 +0000 (00:06 +0200)
* m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
invocations from here...
* modules/mkdtemp (configure.ac): ... to here.

ChangeLog
m4/mkdtemp.m4
modules/mkdtemp

index cdf53eb..586e788 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+       mkdtemp: Move AC_LIBOBJ invocations to module description.
+       * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
+       invocations from here...
+       * modules/mkdtemp (configure.ac): ... to here.
+
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
        mkdir: Move AC_LIBOBJ invocations to module description.
        * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
        * modules/mkdir (configure.ac): ... to here.
index 073e14d..cc6483f 100644 (file)
@@ -1,4 +1,4 @@
-# mkdtemp.m4 serial 7
+# mkdtemp.m4 serial 8
 dnl Copyright (C) 2001-2003, 2006-2007, 2009-2011 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
@@ -8,10 +8,9 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_FUNC_MKDTEMP],
 [
   AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
-  AC_REPLACE_FUNCS([mkdtemp])
+  AC_CHECK_FUNCS([mkdtemp])
   if test $ac_cv_func_mkdtemp = no; then
     HAVE_MKDTEMP=0
-    gl_PREREQ_MKDTEMP
   fi
 ])
 
index 49ac06b..87718a1 100644 (file)
@@ -12,6 +12,10 @@ tempname        [test $HAVE_MKDTEMP = 0]
 
 configure.ac:
 gl_FUNC_MKDTEMP
+if test $HAVE_MKDTEMP = 0; then
+  AC_LIBOBJ([mkdtemp])
+  gl_PREREQ_MKDTEMP
+fi
 gl_STDLIB_MODULE_INDICATOR([mkdtemp])
 
 Makefile.am: