* 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>
+
+       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.
 
-# 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
   )
   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],
   )
   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
 
 
 configure.ac:
 gl_FUNC_MKDIR
+if test $REPLACE_MKDIR = 1; then
+  AC_LIBOBJ([mkdir])
+fi
 
 Makefile.am: