]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(_AS_MKDIR_P_PREPARE): If mkdir -p . fails,
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 26 Sep 2003 08:24:30 +0000 (08:24 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 26 Sep 2003 08:24:30 +0000 (08:24 +0000)
rm -fr ./-p to remove junk left behind on NextStep and OpenStep.

lib/m4sugar/m4sh.m4

index 9826b538e7258d9a5de1d72f824bf0962e408adb..ae743f8f0a56f493ec53b03a0ec13bb8f5204013 100644 (file)
@@ -1,7 +1,7 @@
 # This file is part of Autoconf.                          -*- Autoconf -*-
 # M4 sugar for common shell constructs.
 # Requires GNU M4 and M4sugar.
-# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -690,6 +690,7 @@ m4_defun([_AS_MKDIR_P_PREPARE],
 [if mkdir -p . 2>/dev/null; then
   as_mkdir_p=:
 else
+  rm -fr ./-p
   as_mkdir_p=false
 fi
 ])# _AS_MKDIR_P_PREPARE