summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorAdam Harvey <aharvey@php.net>2013-06-23 11:01:36 -0700
committerAdam Harvey <aharvey@php.net>2013-06-23 11:02:00 -0700
commit2531307be601b95a4aac38dc26dd2d27112b9291 (patch)
tree6e95b5565b49d09af1ff328f063a9aa635a5a48f /acinclude.m4
parent8623562b02dd6759617ef78ddcb06bdfe7710329 (diff)
downloadphp-git-2531307be601b95a4aac38dc26dd2d27112b9291.tar.gz
Fix bug #65088 (Generated configure script is malformed on OpenBSD).
We fell foul of a "common urban legend"[0], which resulted in us backslash escaping double quotes that we didn't need to in acinclude.m4. This worked fine on most shells, but OpenBSD's ksh implementation really didn't like it. [0] http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Shell-Substitutions.html
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 350e4989bb..d5912ad101 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -66,10 +66,10 @@ AC_DEFUN([PHP_EXPAND_PATH],[
$2=$1
else
changequote({,})
- ep_dir="`echo $1|$SED 's%/*[^/][^/]*/*$%%'`"
+ ep_dir=`echo $1|$SED 's%/*[^/][^/]*/*$%%'`
changequote([,])
- ep_realdir="`(cd \"$ep_dir\" && pwd)`"
- $2="$ep_realdir/`basename \"$1\"`"
+ ep_realdir=`(cd "$ep_dir" && pwd)`
+ $2="$ep_realdir"/`basename "$1"`
fi
])