summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@saftware.de>2013-04-15 22:46:06 +0200
committerMatt Turner <mattst88@gmail.com>2013-07-18 13:54:59 -0700
commita48be954ceb250b98fb6ee46d82653532d4e4f2f (patch)
tree75af2dceef597c740ec0263dc93b7109f60a1223 /m4
parent2da0bd05268f7fc3b602d4bf380ad7b414726933 (diff)
ax_prog_flex.m4: change grep syntax to accept e.g. flex.real
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>
Diffstat (limited to 'm4')
-rw-r--r--m4/ax_prog_flex.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/ax_prog_flex.m4 b/m4/ax_prog_flex.m4
index 117f8fe675..82fbc30c32 100644
--- a/m4/ax_prog_flex.m4
+++ b/m4/ax_prog_flex.m4
@@ -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"],