summaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorJustin Erenkrantz <jerenkrantz@apache.org>2002-03-26 20:43:46 +0100
committerJustin Erenkrantz <jerenkrantz@apache.org>2002-03-26 20:43:46 +0100
commit345bfe7ad1417e36d4624e646412ffd67a1f7d27 (patch)
tree66e2da2ba115446965896a1e5b1b1ccb7e5d18aa /acinclude.m4
parentAdd text/xml, audio/mpeg, video/quicktime support to mime magic file. (diff)
downloadapache2-345bfe7ad1417e36d4624e646412ffd67a1f7d27.tar.xz
apache2-345bfe7ad1417e36d4624e646412ffd67a1f7d27.zip
Ensure that the build directory is created when using VPATH.
Previously, configure would try to write config_vars.mk into build without ensuring that that directory existed first. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94188 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index a9ef84e40f..244a6369c2 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -105,6 +105,12 @@ AC_DEFUN(APACHE_GEN_CONFIG_VARS,[
APACHE_MKDIR_P_CHECK
echo creating config_vars.mk
+ if test "$ac_cv_mkdir_p" = "yes"; then
+ mkdir_p="mkdir -p"
+ else
+ mkdir_p="$top_srcdir/build/mkdir.sh"
+ fi
+ test -d build || $mkdir_p build
> build/config_vars.mk
for i in $APACHE_VAR_SUBST; do
eval echo "$i = \$$i" >> build/config_vars.mk