mkostemp: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 13:55:19 +0000 (15:55 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:33 +0000 (00:06 +0200)
* m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
gl_PREREQ_MKOSTEMP invocations from here...
* modules/mkostemp (configure.ac): ... to here.

ChangeLog
m4/mkostemp.m4
modules/mkostemp

index ca01218..10d8f29 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+       mkostemp: Move AC_LIBOBJ invocations to module description.
+       * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
+       gl_PREREQ_MKOSTEMP invocations from here...
+       * modules/mkostemp (configure.ac): ... to here.
+
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
        mknod: Move AC_LIBOBJ invocations to module description.
        * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
        * modules/mknod (configure.ac): ... to here.
index 03c12bb..e408bb2 100644 (file)
@@ -1,4 +1,4 @@
-# mkostemp.m4 serial 1
+# mkostemp.m4 serial 2
 dnl Copyright (C) 2009-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,
@@ -14,8 +14,6 @@ AC_DEFUN([gl_FUNC_MKOSTEMP],
   AC_CHECK_FUNCS_ONCE([mkostemp])
   if test $ac_cv_func_mkostemp != yes; then
     HAVE_MKOSTEMP=0
-    AC_LIBOBJ([mkostemp])
-    gl_PREREQ_MKOSTEMP
   fi
 ])
 
index 85b01b7..299b01f 100644 (file)
@@ -13,6 +13,10 @@ tempname        [test $HAVE_MKOSTEMP = 0]
 
 configure.ac:
 gl_FUNC_MKOSTEMP
+if test $HAVE_MKOSTEMP = 0; then
+  AC_LIBOBJ([mkostemp])
+  gl_PREREQ_MKOSTEMP
+fi
 gl_MODULE_INDICATOR([mkostemp])
 gl_STDLIB_MODULE_INDICATOR([mkostemp])