configure check for flex

Hans-Peter Nilsson hp@bitrange.com
Mon Jan 27 05:38:00 GMT 2014


On Sun, 8 Dec 2013, Bruce Korb wrote:
> On 12/08/13 13:06, Gerald Pfeifer wrote:
> > Lovely.  Thank you very much!

(Looks like nobody replied to this and it isn't committed.)

> $ svn diff
> Index: configure.ac
> ===================================================================
> --- configure.ac        (revision 205790)
> +++ configure.ac        (working copy)
> @@ -1319,10 +1319,17 @@
>  # Used for setting $lt_cv_objdir
>  _LT_CHECK_OBJDIR
>
> -# Check for GMP, MPFR and MPC
> +# Check for flex, GMP, MPFR and MPC
> +[for p in flex
> +do
> +  c=`command -v $p`
> +  test -x "$c" || \
> +    ]AC_MSG_ERROR([the $p command is required to build GCC])[
> +done
> +

No, flex isn't "required to build GCC" as a hard and fast rule.
It's not required for releases, just when building from a svn
checkout (or really: when the flex-generated files are not in
the source directory).

You'd need some additional conditions.  There might be the
additional issue that any "lex" is expected to work too, not
just "flex".

brgds, H-P



More information about the Gcc-patches mailing list