]> granicus.if.org Git - php/commitdiff
Break up the INSTALL_IT line into comprehensible pieces
authorSascha Schumann <sas@php.net>
Thu, 11 Jul 2002 14:41:03 +0000 (14:41 +0000)
committerSascha Schumann <sas@php.net>
Thu, 11 Jul 2002 14:41:03 +0000 (14:41 +0000)
and fix a bug related to [..] quotes.

sapi/apache2filter/config.m4

index 776af54fe7bafb9bbed7d411dc06bba223079a51..0d6393f8f2dee1fc38ef56c1419f0fb56e19d4b1 100644 (file)
@@ -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*)