summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorDave Cottlehuber <dch@skunkwerks.at>2021-05-28 08:15:05 +0000
committerDave Cottlehuber <dch@skunkwerks.at>2021-05-28 08:20:03 +0000
commitc86d3f285aa844dafc55548bcfc367ffacc73daa (patch)
tree79e9f0c858be4487de8b0226b95b410f0ea6dd73 /configure
parentae4f8649c0ed90abf177124a5c974abf89dd70e3 (diff)
downloaderlang-c86d3f285aa844dafc55548bcfc367ffacc73daa.tar.gz
fix ./configure script handling of expr(1) on BSD
Without this patch, the following error occurs: expr: illegal option -- - expr: usage: expr [-e] expression FreeBSD ports tree has carried a local patch addressing this for a while
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 5 insertions, 5 deletions
diff --git a/configure b/configure
index e02aed6a00..de7045e377 100755
--- a/configure
+++ b/configure
@@ -55,7 +55,7 @@ skip_applications=
while test $# != 0; do
case $1 in
-srcdir=* | --srcdir=*)
- user_srcdir=`expr "$1" : '[^=]*=\(.*\)'`
+ user_srcdir=`expr -- "$1" : '[^=]*=\(.*\)'`
if test "$ERL_TOP" != ""; then
echo "WARNING: Overriding ERL_TOP with $user_srcdir" 1>&2
echo "" 1>&2
@@ -95,7 +95,7 @@ while test $# != 0; do
echo "" 1>&2
;;
-cache-file=* | --cache-file=* )
- static_cache=`expr "$1" : '[^=]*=\(.*\)'`
+ static_cache=`expr -- "$1" : '[^=]*=\(.*\)'`
if test "$static_cache" != "/dev/null"; then
echo "WARNING: Only using config cache file '$static_cache' as static cache" 1>&2
echo "" 1>&2
@@ -140,8 +140,8 @@ while test $# != 0; do
pie_ldflags="-no-pie"
;;
CFLAGS=* | LDFLAGS=*)
- flgs_var=`expr "$1" : '\([^=]*\)=.*'`
- flgs_val=`expr "$1" : '[^=]*=\(.*\)'`
+ flgs_var=`expr -- "$1" : '\([^=]*\)=.*'`
+ flgs_val=`expr -- "$1" : '[^=]*=\(.*\)'`
eval $flgs_var=\$flgs_val
;;
--help=r* | -help=r*)
@@ -151,7 +151,7 @@ while test $# != 0; do
*)
case $1 in
--without-*)
- skip_app=`expr "$1" : '--without-\(.*\)'`
+ skip_app=`expr -- "$1" : '--without-\(.*\)'`
if [ "$skip_app" = "stdlib" ] ||
[ "$skip_app" = "kernel" ] ||
[ "$skip_app" = "sasl" ] ||