Bug 634003 - Fix yasm version check's sed string. r=ted, a2.0=bsmedberg
authorJustin Lebar <justin.lebar@gmail.com>
Mon, 14 Feb 2011 10:35:49 -0800
changeset 62616 39c1bcf89e728f9917811db9f5c24b4305a53aa0
parent 62615 b4f2b87f03a0730e16a27801553590fe955975dd
child 62617 02311190012b08ac38c78b1d97eb9782af9ca6fb
push id1
push userroot
push dateTue, 10 Dec 2013 15:46:25 +0000
reviewersted
bugs634003
milestone2.0b12pre
Bug 634003 - Fix yasm version check's sed string. r=ted, a2.0=bsmedberg
configure.in
--- a/configure.in
+++ b/configure.in
@@ -4736,17 +4736,17 @@ dnl Detect yasm
 dnl ======================
 
 AC_MSG_CHECKING([for YASM assembler])
 AC_CHECK_PROGS(YASM, yasm, "")
 
 if test -n "$YASM"; then
   dnl Pull out yasm's version string
   changequote(,)
-  _YASM_VER_FILTER='s|.* \([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\).*|\1|p'
+  _YASM_VER_FILTER='s|.* \([0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}\).*|\1|p'
   changequote([,])
 
   YASM_VERSION=`yasm --version | sed -ne "$_YASM_VER_FILTER"`
   _YASM_MAJOR_VERSION=`echo ${YASM_VERSION} | $AWK -F\. '{ print $1 }'`
   _YASM_MINOR_VERSION=`echo ${YASM_VERSION} | $AWK -F\. '{ print $2 }'`
   _YASM_RELEASE=`      echo ${YASM_VERSION} | $AWK -F\. '{ print $3 }'`
   _YASM_BUILD=`        echo ${YASM_VERSION} | $AWK -F\. '{ print $4 }'`
 fi