summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-09-14 15:57:48 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-09-14 15:57:48 (GMT)
commite7e37942d96b6393f906f210ade90f8b67809a22 (patch)
tree7c74dea60128e5e5525dd193dfacdfd9b11ded07 /configure
parentf791f6b6bfaffb595c2ef228e599c889341cae3e (diff)
Kill off bashisms in ./configure (thanks to Enrico Weigelt <weigelt@metux.de>).
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 6205e65..d591dc7 100755
--- a/configure
+++ b/configure
@@ -124,7 +124,8 @@ fi
# Check bash is present, and at least version 3.0
[ -x /bin/bash ] || do_error "bash 3.0 or above was not found in /bin/bash"
bash_version=$(/bin/bash --version |head -n 1 |cut -d ' ' -f 4)
-[ ${bash_version//%.*} -ge 3 ] || do_error "bash 3.0 or above is needed (found ${bash_version})"
+bash_major=$(echo "${bash_version}" |sed -e 's/\..*//g;')
+[ ${bash_major} -ge 3 ] || do_error "bash 3.0 or above is needed (found ${bash_version})"
sed -r -e "s,@@BINDIR@@,${BINDIR},g;" \
-e "s,@@LIBDIR@@,${LIBDIR},g;" \