The wrapper deals with various simple incompatibilities between byacc and bison:
* first deals with --version which might often be called
* --verbose and -v are ignored
* normally yacc is called like this: yacc [options] input, but with GNU programs like bison
the input can be mixed in the middle of the arguments, unmangle that
Add a new 'wrapper' argument to USES=bison use the wrapper
Reviewed by: mat
Differential Revision: https://reviews.freebsd.org/D24017
This is useful when 2 tools do provide the same feature, but the configure
scripts do test for some variables which are not in one of the tool.
For example m4 in base is mostly compatible with GNU m4 when called with the -g
arguement. This wrapper allows to use it with build systems that do check for it
calling --version and expecting GNU in the arguments.
Reviewed by: mat (final discussions on irc)
Differential Revision: https://reviews.freebsd.org/D21835