changeset 15044:761f4b6451f0

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.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 15:32:08 +0200
parents 0527dd6759fc
children 8484091dcead
files ChangeLog m4/mkdir.m4 modules/mkdir
diffstat 3 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
 	memset: Move AC_LIBOBJ invocations to module description.
--- a/m4/mkdir.m4
+++ b/m4/mkdir.m4
@@ -1,4 +1,4 @@
-# serial 9
+# serial 10
 
 # Copyright (C) 2001, 2003-2004, 2006, 2008-2011 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -27,7 +27,6 @@
   )
   if test "$gl_cv_func_mkdir_trailing_slash_works" != yes; then
     REPLACE_MKDIR=1
-    AC_LIBOBJ([mkdir])
   fi
 
   AC_CACHE_CHECK([whether mkdir handles trailing dot],
@@ -45,7 +44,6 @@
   )
   if test "$gl_cv_func_mkdir_trailing_dot_works" != yes; then
     REPLACE_MKDIR=1
-    AC_LIBOBJ([mkdir])
     AC_DEFINE([FUNC_MKDIR_DOT_BUG], [1], [Define to 1 if mkdir mistakenly
       creates a directory given with a trailing dot component.])
   fi
--- a/modules/mkdir
+++ b/modules/mkdir
@@ -11,6 +11,9 @@
 
 configure.ac:
 gl_FUNC_MKDIR
+if test $REPLACE_MKDIR = 1; then
+  AC_LIBOBJ([mkdir])
+fi
 
 Makefile.am: