Hi,
  is there any reason why mkdir_p still sometimes falls back to
mkinstalldirs?  I think the code will be nicer if we'll use
`install-sh -d' as a universal fallback.

Patch attached.

Thanks,
        Stepan Kasal
2005-07-29  Stepan Kasal  <[EMAIL PROTECTED]>

        * m4/mkdirp.m4 (AM_PROG_MKDIR_P): Don't use mkinstalldirs, always
        use `install-sh -d' as the fallback.

Index: m4/mkdirp.m4
===================================================================
RCS file: /cvsroot/automake/automake/m4/mkdirp.m4,v
retrieving revision 1.7
diff -u -r1.7 mkdirp.m4
--- m4/mkdirp.m4        9 Jan 2005 14:46:21 -0000       1.7
+++ m4/mkdirp.m4        29 Jul 2005 08:04:55 -0000
@@ -7,7 +7,8 @@
 
 # AM_PROG_MKDIR_P
 # ---------------
-# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
+# Check whether `mkdir -p' is supported, fall back to `install-sh -d'
+# otherwise.
 #
 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
 # created by `make install' are always world readable, even if the
@@ -53,11 +54,6 @@
   do
     test -d $d && rmdir $d
   done
-  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
-  if test -f "$ac_aux_dir/mkinstalldirs"; then
-    mkdir_p='$(mkinstalldirs)'
-  else
-    mkdir_p='$(install_sh) -d'
-  fi
+  mkdir_p='$(install_sh) -d'
 fi
 AC_SUBST([mkdir_p])])

Reply via email to