From cb039c14c7302fae7fceb2dba93c7944df2e0d54 Mon Sep 17 00:00:00 2001
From: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
Date: Tue, 3 May 2011 10:57:16 +0000
Subject: [PATCH] Re-fix bashism in ./configure: s/let/$(( ))/

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 | 4 ++--
 configure                   | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/autoconf/ast_check_pwlib.m4 b/autoconf/ast_check_pwlib.m4
index 98f3eb7aac..ecacddb15a 100644
--- a/autoconf/ast_check_pwlib.m4
+++ b/autoconf/ast_check_pwlib.m4
@@ -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)
diff --git a/configure b/configure
index 723c89fde4..c92b228056 100755
--- 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