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

Kenneth Graunke kenneth at whitecape.org
Wed Mar 14 10:26:33 PDT 2012


On 03/14/2012 07:20 AM, Brian Paul wrote:
> 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

Yes, absolutely.  Bison as well.



More information about the mesa-dev mailing list