[asterisk-commits] tzafrir: trunk r270184 - in /trunk: autoconf/ast_check_pwlib.m4 configure
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun Jun 13 04:16:30 CDT 2010
Author: tzafrir
Date: Sun Jun 13 04:16:25 2010
New Revision: 270184
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=270184
Log:
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)
Modified:
trunk/autoconf/ast_check_pwlib.m4
trunk/configure
Modified: trunk/autoconf/ast_check_pwlib.m4
URL: http://svnview.digium.com/svn/asterisk/trunk/autoconf/ast_check_pwlib.m4?view=diff&rev=270184&r1=270183&r2=270184
==============================================================================
--- trunk/autoconf/ast_check_pwlib.m4 (original)
+++ trunk/autoconf/ast_check_pwlib.m4 Sun Jun 13 04:16:25 2010
@@ -202,8 +202,8 @@
$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
More information about the asterisk-commits
mailing list