]> granicus.if.org Git - jq/commitdiff
BSD sed lacks -r; fix #551
authorNicolas Williams <nico@cryptonector.com>
Thu, 14 Aug 2014 08:31:25 +0000 (03:31 -0500)
committerNicolas Williams <nico@cryptonector.com>
Thu, 14 Aug 2014 08:31:25 +0000 (03:31 -0500)
m4/ax_prog_bison_version.m4

index 91652fe9ddf7bc70d6f466223cf9b8eaf6f5f069..e3b52920715bbc1ea14ad9e00125083d3009dbac 100644 (file)
@@ -48,7 +48,7 @@ AC_DEFUN([AX_PROG_BISON_VERSION],[
         changequote(<<,>>)
         bison_version=`$YACC --version 2>&1 \
           | $GREP bison \
-          | $SED -rn -e 's/bison .* ([0-9]+([.][0-9])+)+/\1/p'`
+          | $SED -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
         changequote([,])
         AC_MSG_RESULT($bison_version)