[postgis-tickets] r17434 - Give meaningful error upon missing flex/bison

Sandro Santilli strk at kbt.io
Thu May 9 06:21:17 PDT 2019


Author: strk
Date: 2019-05-09 06:21:17 -0700 (Thu, 09 May 2019)
New Revision: 17434

Modified:
   trunk/liblwgeom/Makefile.in
Log:
Give meaningful error upon missing flex/bison

Modified: trunk/liblwgeom/Makefile.in
===================================================================
--- trunk/liblwgeom/Makefile.in	2019-05-09 13:21:09 UTC (rev 17433)
+++ trunk/liblwgeom/Makefile.in	2019-05-09 13:21:17 UTC (rev 17434)
@@ -202,9 +202,17 @@
 	$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) $(NUMERICFLAGS) -c -o $@ $<
 
 lwin_wkt_parse.c lwin_wkt_parse.h: lwin_wkt_parse.y
+	@test -n "$(YACC)" || { \
+			echo "No yacc found, cannot build parser" >&2; \
+			false; \
+	}
 	$(YACC) -p wkt_yy -o'lwin_wkt_parse.c' -d lwin_wkt_parse.y
 
 lwin_wkt_lex.c: lwin_wkt_lex.l
+	@test -n "$(LEX)" || { \
+			echo "No lex found, cannot build parser" >&2; \
+			false; \
+	}
 	$(LEX) -i lwin_wkt_lex.l
 
 liblwgeom.h: liblwgeom.h.in



More information about the postgis-tickets mailing list