diff mbox series

[nftables] build: Allow building from tarballs without yacc/lex

Message ID 20200407202337.63505-1-mattst88@gmail.com
State Accepted
Delegated to: Pablo Neira
Headers show
Series [nftables] build: Allow building from tarballs without yacc/lex | expand

Commit Message

Matt Turner April 7, 2020, 8:23 p.m. UTC
The generated files are included in the tarballs already, but
configure.ac was coded to fail if yacc/lex were not found regardless.

Signed-off-by: Matt Turner <mattst88@gmail.com>
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Matt Turner April 17, 2020, 7:38 p.m. UTC | #1
Ping
Pablo Neira Ayuso April 19, 2020, 4:43 p.m. UTC | #2
On Tue, Apr 07, 2020 at 01:23:37PM -0700, Matt Turner wrote:
> The generated files are included in the tarballs already, but
> configure.ac was coded to fail if yacc/lex were not found regardless.

Also applied, thanks.
diff mbox series

Patch

diff --git a/configure.ac b/configure.ac
index a04d94bc..3496e410 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,13 +29,13 @@  AC_PROG_SED
 AM_PROG_LEX
 AC_PROG_YACC
 
-if test -z "$ac_cv_prog_YACC"
+if test -z "$ac_cv_prog_YACC" -a ! -f "${srcdir}/src/parser_bison.c"
 then
         echo "*** Error: No suitable bison/yacc found. ***"
         echo "    Please install the 'bison' package."
         exit 1
 fi
-if test -z "$ac_cv_prog_LEX"
+if test -z "$ac_cv_prog_LEX" -a ! -f "${srcdir}/src/scanner.c"
 then
         echo "*** Error: No suitable flex/lex found. ***"
         echo "    Please install the 'flex' package."