diff configure @ 109201:0aaff477ec9f

Merge from mainline.
author Katsumi Yamaoka <katsumi@flagship2>
date Sun, 23 May 2010 11:52:45 +0000
parents ce6895773462
children f6d1128c9985
line wrap: on
line diff
--- a/configure	Sat May 22 03:32:53 2010 +0000
+++ b/configure	Sun May 23 11:52:45 2010 +0000
@@ -9561,7 +9561,10 @@
    fi
    if test $ac_enable_autodepend = yes; then
       DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
-      MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR}'
+      ## In parallel builds, another make might create depdir between
+      ## the first test and mkdir, so stick another test on the end.
+      ## Or use mkinstalldirs?  mkdir -p is not portable.
+      MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
       deps_frag=autodeps.mk
    fi
 fi