* configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not

to the empty string.
This commit is contained in:
Colin Watson 2010-05-28 18:13:48 +01:00
parent fa4b84900a
commit c7c75cf4cb
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-05-28 Colin Watson <cjwatson@ubuntu.com>
* configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
to the empty string.
2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
Fix grub-emu issues on NetBSD, with gcc 4.1.3.

View File

@ -192,7 +192,7 @@ AC_PROG_LEX
AC_PROG_MAKE_SET
AC_PROG_MKDIR_P
if test "x$LEX" = x; then
if test "x$LEX" = "x:"; then
AC_MSG_ERROR([flex is not found])
else
version=`$LEX --version | $AWK '{ split($NF,x,"."); print x[[1]]*10000+x[[2]]*100+x[[3]]; }'`