> On NetBSD, I noticed that a junk directory ./--version exists after
> running configure.  AC_PROG_MKDIR_P needs to clean this up as part of
> checking for a decent mkdir program.

Nice catch.  It looks like your mkdir was not the first in the path,
so the existing attempt to cleanup did not fire.  Fixed thusly
(pushed).

Paolo

2009-10-01  Paolo Bonzini  <[email protected]>

        Unconditionally check for junk ./--version after mkdir search loop.
        * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Always check for
        presence of ./--version.  Reported by Eric Blake.

---
 ChangeLog                |    6 ++++++
 lib/autoconf/programs.m4 |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index d3443f7..6ff2239 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-10-01  Paolo Bonzini  <[email protected]>
+
+       Unconditionally check for junk ./--version after mkdir search loop.
+       * lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Always check for
+       presence of ./--version.  Reported by Eric Blake.
+
 2009-09-22  Ralf Wildenhues  <[email protected]>
 
        Clarify documentation about Solaris sed quantifier restriction.
diff --git a/lib/autoconf/programs.m4 b/lib/autoconf/programs.m4
index 25a284d..9e27bf7 100644
--- a/lib/autoconf/programs.m4
+++ b/lib/autoconf/programs.m4
@@ -680,6 +680,7 @@ if test -z "$MKDIR_P"; then
           esac
         done
        done])])
+  test -d ./--version && rmdir ./--version
   if test "${ac_cv_path_mkdir+set}" = set; then
     MKDIR_P="$ac_cv_path_mkdir -p"
   else
@@ -687,7 +688,6 @@ if test -z "$MKDIR_P"; then
     # value for MKDIR_P within a source directory, because that will
     # break other packages using the cache if that directory is
     # removed, or if the value is a relative name.
-    test -d ./--version && rmdir ./--version
     MKDIR_P="$ac_install_sh -d"
   fi
 fi
-- 
1.6.2.5



Reply via email to