]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Re-fix bashism in ./configure: s/let/$(( ))/
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>
Tue, 3 May 2011 10:57:16 +0000 (10:57 +0000)
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>
Tue, 3 May 2011 10:57:16 +0000 (10:57 +0000)
A forward-port in r278985 accidentally re-introduced issue 17485. Fixing
it. Thanks to Jilles Tjoelker for the good report.

(closes issue #17485)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@316193 65c4cc65-6c06-0410-ace0-fbb531ad65f3

autoconf/ast_check_pwlib.m4
configure

index 98f3eb7aacafb0bbe44157500b15b7fed8bd6286..ecacddb15a1dd0d4b318783b5b5ebf4e704174a4 100644 (file)
@@ -205,9 +205,9 @@ AC_DEFUN([AST_CHECK_PWLIB_VERSION], [
                $2_VER=$((${$2_MAJOR_VERSION}*10000+${$2_MINOR_VERSION}*100+${$2_BUILD_NUMBER}))
                $2_REQ=$(($4*10000+$5*100+$6))
                if test "x$10" = "x"; then
-                       let $2_MAX=9999999
+                       $2_MAX=9999999
                else
-                       let $2_MAX=$8*10000+$9*100+$10
+                       $2_MAX=$(($8*10000+$9*100+$10))
                fi
 
                AC_MSG_CHECKING(if $1 version ${$2_VERSION} is compatible with chan_h323)
index 723c89fde4e4e29917a644dac041dff5bd5cac74..c92b2280561af96f97528f500d5d85ab5387b99f 100755 (executable)
--- a/configure
+++ b/configure
@@ -44492,9 +44492,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
                PWLIB_VER=$((${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}))
                PWLIB_REQ=$((1*10000+9*100+2))
                if test "x" = "x"; then
-                       let PWLIB_MAX=9999999
+                       PWLIB_MAX=9999999
                else
-                       let PWLIB_MAX=*10000+*100+
+                       PWLIB_MAX=$((*10000+*100+))
                fi
 
                { echo "$as_me:$LINENO: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
@@ -45284,9 +45284,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
                OPENH323_VER=$((${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}))
                OPENH323_REQ=$((1*10000+17*100+3))
                if test "x0" = "x"; then
-                       let OPENH323_MAX=9999999
+                       OPENH323_MAX=9999999
                else
-                       let OPENH323_MAX=1*10000+19*100+0
+                       $((OPENH323_MAX=1*10000+19*100+0))
                fi
 
                { echo "$as_me:$LINENO: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5