ax_prog_flex.m4: change grep syntax to accept e.g. flex.real 48/7548/1
authorAndreas Oberritter <obi@saftware.de>
Mon, 15 Apr 2013 20:46:06 +0000 (22:46 +0200)
committerMatt Turner <mattst88@gmail.com>
Thu, 18 Jul 2013 20:54:59 +0000 (13:54 -0700)
This is required in case a wrapper or symlink is used. This patch
has also been sent upstream, awaiting moderation.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Andreas Oberritter <obi@saftware.de>
m4/ax_prog_flex.m4

index 117f8fe..82fbc30 100644 (file)
@@ -53,7 +53,7 @@ AC_DEFUN([AX_PROG_FLEX], [
   AC_REQUIRE([AC_PROG_EGREP])
 
   AC_CACHE_CHECK([if flex is the lexer generator],[ax_cv_prog_flex],[
-    AS_IF([$LEX --version 2>/dev/null | $EGREP -q '^flex '],
+    AS_IF([$LEX --version 2>/dev/null | $EGREP -q '^\<flex\>'],
       [ax_cv_prog_flex=yes], [ax_cv_prog_flex=no])
   ])
   AS_IF([test "$ax_cv_prog_flex" = "yes"],