[asterisk-commits] mjordan: branch 1.8 r380297 - in /branches/1.8: ./ autoconf/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jan 28 20:02:36 CST 2013


Author: mjordan
Date: Mon Jan 28 20:02:32 2013
New Revision: 380297

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=380297
Log:
Update configure script to be compatible with ptlib 2.10.9

With ptlib 2.10.9, the configure script fails due to grep returning multiple
matches for the pattern it searches for. This patch updates the pattern
matching to return only the actual version for the symbol searched for,
PTLIB_VERSION.

(closes issue ASTERISK-20980)
Reported by: Stefan Reuter
patches:
  ASTERISK-20980-1.patch uploaded by Stefan Reuter (license 5339)

Modified:
    branches/1.8/autoconf/ast_check_pwlib.m4
    branches/1.8/configure

Modified: branches/1.8/autoconf/ast_check_pwlib.m4
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/autoconf/ast_check_pwlib.m4?view=diff&rev=380297&r1=380296&r2=380297
==============================================================================
--- branches/1.8/autoconf/ast_check_pwlib.m4 (original)
+++ branches/1.8/autoconf/ast_check_pwlib.m4 Mon Jan 28 20:02:32 2013
@@ -198,7 +198,7 @@
 	fi
 
 	if test "${HAS_$2:-unset}" != "unset"; then
-		$2_VERSION=`grep "$VNAME" ${$2_INCDIR}/$3 | sed -e 's/[[[:space:]]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
+		$2_VERSION=`grep "$VNAME \"" ${$2_INCDIR}/$3 | sed -e 's/[[[:space:]]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
 		$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.`




More information about the asterisk-commits mailing list