diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2021-11-11 11:57:59 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2021-11-11 11:58:50 +0100 |
commit | 6125c10c2981853a6ff41817763d38794dbad518 (patch) | |
tree | f748d048ead0f1bba0cb06b48e33d82cd1676106 /configure.ac | |
parent | Merge pull request #10026 from idryzhov/bfd-peer-str-coverity (diff) | |
download | frr-6125c10c2981853a6ff41817763d38794dbad518.tar.xz frr-6125c10c2981853a6ff41817763d38794dbad518.zip |
build: work around AC_PROG_LEX deprecation warning
`AC_PROG_LEX without either yywrap or noyywrap is obsolete`, says
autoconf 2.70. Sadly, there is no transition window for this, in 2.69
the macro takes no arguments.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index c5e5d64aa..92a60ce81 100644 --- a/configure.ac +++ b/configure.ac @@ -2235,7 +2235,16 @@ dnl -------------------------------------- dnl checking for flex and bison dnl -------------------------------------- -AM_PROG_LEX +dnl autoconf 2.69 AC_PROG_LEX has no parameters +dnl autoconf 2.70 AC_PROG_LEX prints a deprecation warning without params +m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]), [2.70]), [-1], [dnl + dnl autoconf < 2.70 + AC_PROG_LEX +], [ + dnl autoconf >= 2.70 + AC_PROG_LEX([noyywrap]) +]) + AC_MSG_CHECKING([version of flex]) frr_ac_flex_version="$(eval $LEX -V | grep flex | head -n 1)" frr_ac_flex_version="${frr_ac_flex_version##* }" |