4cda8a9f419984f0302b896795c1d9ab047baf92
[platform/upstream/automake.git] / m4 / lex.m4
1 ## Replacement for AC_PROG_LEX.                            -*-  Autoconf -*-
2 ## by Alexandre Oliva <oliva@dcc.unicamp.br>
3 # Copyright (C) 1998-2012 Free Software Foundation, Inc.
4 #
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # serial 6
10
11 # AM_PROG_LEX
12 # -----------
13 # Autoconf leaves LEX=: if lex or flex can't be found.  Change that to a
14 # "missing" invocation, for better error output.
15 AC_DEFUN([AM_PROG_LEX],
16 [AC_PREREQ([2.50])dnl
17 AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
18 AC_REQUIRE([AC_PROG_LEX])dnl
19 if test "$LEX" = :; then
20   LEX=${am_missing_run}flex
21 fi])