mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-03-21 22:07:03 +00:00
Bison: A bit more verbose error messages in config.
This commit is contained in:
parent
73587c1260
commit
0389931aad
2
aclocal.m4
vendored
2
aclocal.m4
vendored
@ -151,9 +151,11 @@ AC_DEFUN([BIRD_CHECK_BISON_VERSION],
|
|||||||
;;
|
;;
|
||||||
2.*)
|
2.*)
|
||||||
bird_bison_synclines=no
|
bird_bison_synclines=no
|
||||||
|
bird_bison_enhanced_error=no
|
||||||
;;
|
;;
|
||||||
3.* | 4.* | 5.* | 6.* | 7.* | 8.* | 9.*)
|
3.* | 4.* | 5.* | 6.* | 7.* | 8.* | 9.*)
|
||||||
bird_bison_synclines=yes
|
bird_bison_synclines=yes
|
||||||
|
bird_bison_enhanced_error=yes
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
AC_MSG_ERROR([Couldn't parse Bison version $$1. Call the developers for help.])
|
AC_MSG_ERROR([Couldn't parse Bison version $$1. Call the developers for help.])
|
||||||
|
@ -12,7 +12,7 @@ BISON_DEBUG=-t
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
cf-parse.tab.c: cf-parse.y
|
cf-parse.tab.c: cf-parse.y
|
||||||
$(BISON) -bcf-parse -dv -pcf_ $(BISON_DEBUG) cf-parse.y
|
$(BISON) $(BISONFLAGS) -bcf-parse -dv -pcf_ $(BISON_DEBUG) cf-parse.y
|
||||||
|
|
||||||
cf-parse.y: $(conf-fragments) $(conf-src)/gen_parser.m4
|
cf-parse.y: $(conf-fragments) $(conf-src)/gen_parser.m4
|
||||||
$(M4) $(M4FLAGS) -P $(conf-src)/gen_parser.m4 $(conf-fragments) >cf-parse.y
|
$(M4) $(M4FLAGS) -P $(conf-src)/gen_parser.m4 $(conf-fragments) >cf-parse.y
|
||||||
|
@ -185,7 +185,12 @@ if test "$bird_bison_synclines" = yes; then
|
|||||||
M4FLAGS="$M4FLAGS -s"
|
M4FLAGS="$M4FLAGS -s"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$bird_bison_enhanced_error" = yes; then
|
||||||
|
BISONFLAGS="$BISONFLAGS -Dparse.lac=full -Dparse.error=verbose"
|
||||||
|
fi
|
||||||
|
|
||||||
AC_SUBST([M4FLAGS])
|
AC_SUBST([M4FLAGS])
|
||||||
|
AC_SUBST([BISONFLAGS])
|
||||||
|
|
||||||
BIRD_CHECK_PROG_FLAVOR_GNU([$M4],
|
BIRD_CHECK_PROG_FLAVOR_GNU([$M4],
|
||||||
[],
|
[],
|
||||||
|
@ -23,6 +23,7 @@ CPPFLAGS=-I$(root-rel) -I$(srcdir) @CPPFLAGS@
|
|||||||
CFLAGS=$(CPPFLAGS) @CFLAGS@
|
CFLAGS=$(CPPFLAGS) @CFLAGS@
|
||||||
LDFLAGS=@LDFLAGS@
|
LDFLAGS=@LDFLAGS@
|
||||||
M4FLAGS=@M4FLAGS@
|
M4FLAGS=@M4FLAGS@
|
||||||
|
BISONFLAGS=@BISONFLAGS@
|
||||||
LIBS=@LIBS@
|
LIBS=@LIBS@
|
||||||
CLIENT_LIBS=@CLIENT_LIBS@
|
CLIENT_LIBS=@CLIENT_LIBS@
|
||||||
CC=@CC@
|
CC=@CC@
|
||||||
|
Loading…
x
Reference in New Issue
Block a user