aboutsummaryrefslogtreecommitdiffstats
path: root/autoconf
diff options
context:
space:
mode:
authortzafrir <tzafrir@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-13 09:16:25 +0000
committertzafrir <tzafrir@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-13 09:16:25 +0000
commitf0ae72b3ea0352fdd677397a23f575ac823c3c75 (patch)
treed75c76d6be3ba87deac252065885baa297c4f7a3 /autoconf
parente4d97639f8bc338d2b88f1d141fead3bfa97f45f (diff)
bashism in configure script
Theoretically the ./configure script is a pure bourne-shell script. Practically it may be run by bash if /bin/sh is not good enough. But we should not count on it. See bug report for the gory details. (closes issue #17485) Patches: 0001-remove-bashism-from-ast_check_pwlib.m4.patch uploaded by tzafrir (license 46) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@270184 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/ast_check_pwlib.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/autoconf/ast_check_pwlib.m4 b/autoconf/ast_check_pwlib.m4
index f92fb2cac..876c50849 100644
--- a/autoconf/ast_check_pwlib.m4
+++ b/autoconf/ast_check_pwlib.m4
@@ -202,8 +202,8 @@ AC_DEFUN([AST_CHECK_PWLIB_VERSION], [
$2_MAJOR_VERSION=`echo ${$2_VERSION} | cut -f1 -d.`
$2_MINOR_VERSION=`echo ${$2_VERSION} | cut -f2 -d.`
$2_BUILD_NUMBER=`echo ${$2_VERSION} | cut -f3 -d.`
- let $2_VER=${$2_MAJOR_VERSION}*10000+${$2_MINOR_VERSION}*100+${$2_BUILD_NUMBER}
- let $2_REQ=$4*10000+$5*100+$6
+ $2_VER=$((${$2_MAJOR_VERSION}*10000+${$2_MINOR_VERSION}*100+${$2_BUILD_NUMBER}))
+ $2_REQ=$(($4*10000+$5*100+$6))
AC_MSG_CHECKING(if $1 version ${$2_VERSION} is compatible with chan_h323)
if test ${$2_VER} -lt ${$2_REQ}; then