[Mesa-dev] [PATCH] autoconf: bail out if flex isn't found

Brian Paul brian.e.paul at gmail.com
Wed Mar 14 07:20:56 PDT 2012


On Tue, Mar 13, 2012 at 9:14 PM, Matt Turner <mattst88 at gmail.com> wrote:
> Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=47248
> Signed-off-by: Matt Turner <mattst88 at gmail.com>
> ---
>  configure.ac |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index a2d906a..e7994b0 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -66,6 +66,9 @@ if test ! -f "$srcdir/src/glsl/glcpp/glcpp-parse.y"; then
>     fi
>  fi
>  AC_PROG_LEX
> +if test "x$LEX" != xflex; then
> +    AC_MSG_ERROR([flex not found - unable to compile glcpp-lex.l])
> +fi


What if the system actually has lex?  Would that work?  Do our .l
files use any flex-specific features?

-Brian


More information about the mesa-dev mailing list