Linux Netfilter development
 help / color / mirror / Atom feed
* [PATCH nftables] build: Allow building from tarballs without yacc/lex
@ 2020-04-07 20:23 Matt Turner
  2020-04-17 19:38 ` Matt Turner
  2020-04-19 16:43 ` Pablo Neira Ayuso
  0 siblings, 2 replies; 3+ messages in thread
From: Matt Turner @ 2020-04-07 20:23 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Matt Turner

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(-)

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."
-- 
2.24.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH nftables] build: Allow building from tarballs without yacc/lex
  2020-04-07 20:23 [PATCH nftables] build: Allow building from tarballs without yacc/lex Matt Turner
@ 2020-04-17 19:38 ` Matt Turner
  2020-04-19 16:43 ` Pablo Neira Ayuso
  1 sibling, 0 replies; 3+ messages in thread
From: Matt Turner @ 2020-04-17 19:38 UTC (permalink / raw)
  To: netfilter-devel

Ping

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH nftables] build: Allow building from tarballs without yacc/lex
  2020-04-07 20:23 [PATCH nftables] build: Allow building from tarballs without yacc/lex Matt Turner
  2020-04-17 19:38 ` Matt Turner
@ 2020-04-19 16:43 ` Pablo Neira Ayuso
  1 sibling, 0 replies; 3+ messages in thread
From: Pablo Neira Ayuso @ 2020-04-19 16:43 UTC (permalink / raw)
  To: Matt Turner; +Cc: netfilter-devel

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-19 16:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-07 20:23 [PATCH nftables] build: Allow building from tarballs without yacc/lex Matt Turner
2020-04-17 19:38 ` Matt Turner
2020-04-19 16:43 ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox