From 6d643eb03509a8059b778f917b82d8d27f65c3e7 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Thu, 11 Jul 2002 14:41:03 +0000 Subject: [PATCH] Break up the INSTALL_IT line into comprehensible pieces and fix a bug related to [..] quotes. --- sapi/apache2filter/config.m4 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sapi/apache2filter/config.m4 b/sapi/apache2filter/config.m4 index 776af54fe7..0d6393f8f2 100644 --- a/sapi/apache2filter/config.m4 +++ b/sapi/apache2filter/config.m4 @@ -50,7 +50,15 @@ AC_ARG_WITH(apxs2, AC_MSG_ERROR([Please note that Apache version >= 2.0.40 is required.]) fi - INSTALL_IT="\$(mkinstalldirs) \"\$(INSTALL_ROOT)`$APXS -q LIBEXECDIR`\" && $APXS -S LIBEXECDIR=\"\$(INSTALL_ROOT)`$APXS -q LIBEXECDIR`\" -i `[ -d \`$APXS -q SYSCONFDIR\` ] || echo -a` -n php4" + APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR` + if test -z `$APXS -q SYSCONFDIR`; then + optarg=-a + else + optarg= + fi + + INSTALL_IT='$(mkinstalldirs) '"$APXS_LIBEXECDIR && \ +$APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' -i ${optarg}-n php4" case $host_alias in *aix*) -- 2.50.1