diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2010-06-13 09:16:25 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2010-06-13 09:16:25 +0000 |
commit | 2743e9b2acd57827ec151dfe3233d372d90b3bbd (patch) | |
tree | d75c76d6be3ba87deac252065885baa297c4f7a3 /autoconf | |
parent | 41821558c72fb5b395e196b9b8942588c8979bdf (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: https://origsvn.digium.com/svn/asterisk/trunk@270184 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/ast_check_pwlib.m4 | 4 |
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 |