From 439db8d47839ee969f2931f8a82af9c104e7b1b9 Mon Sep 17 00:00:00 2001
From: P. J. McDermott <pj@pehjota.net>
Date: Fri, 01 Aug 2014 17:35:44 -0400
Subject: Use pregenerated lexical scanners and parsers

---
(limited to 'build')

diff --git a/build b/build
index bf6f41e..7c851a9 100755
--- a/build
+++ b/build
@@ -6,7 +6,19 @@ nop:
 	@:
 
 build:
-	oh-autoconfigure
+	@# ProteanOS doesn't have Bison (needs Perl) or Flex yet, so we need to
+	@# provide pregenerated files.  Many other packages just include such
+	@# files in their source archives, but libnl doesn't.
+	cp ../src.gen/pktloc_grammar.c src/lib/route/pktloc_grammar.c
+	cp ../src.gen/pktloc_grammar.h src/lib/route/pktloc_grammar.h
+	cp ../src.gen/pktloc_syntax.c  src/lib/route/pktloc_syntax.c
+	cp ../src.gen/pktloc_syntax.h  src/lib/route/pktloc_syntax.h
+	cp ../src.gen/ematch_grammar.c src/lib/route/cls/ematch_grammar.c
+	cp ../src.gen/ematch_grammar.h src/lib/route/cls/ematch_grammar.h
+	cp ../src.gen/ematch_syntax.c  src/lib/route/cls/ematch_syntax.c
+	cp ../src.gen/ematch_syntax.h  src/lib/route/cls/ematch_syntax.h
+	printf 'ac_cv_prog_FLEX=:\nac_cv_prog_YACC=:\n' >src/config.cache
+	oh-autoconfigure -- --cache-file=config.cache
 	oh-autobuild
 	touch $@
 
--
cgit v0.9.1