freebsd-skq/usr.bin/m4
Alex Richardson 5bb9250e0a Add necessary Makefile.inc1 infrastructure for building on non-FreeBSD
The most awkward bit in this patch is the bootstrapping of m4:
We can't simply use the host version of m4 since that is not compatible
with the flags passed by lex (at least on macOS, possibly also on Linux).
Therefore we need to bootstrap m4, but lex needs m4 to build and m4 also
depends on lex (which needs m4 to generate any files). To work around this
cyclic dependency we can build a bootstrap version of m4 (with pre-generated
files) then use that to build the real m4.

This patch also changes the xz/unxz/dd tools to always use the host version
since the version in the source tree cannot easily be bootstrapped on macOS
or Linux.

Reviewed By:	brooks, imp (earlier version)
Differential Revision: https://reviews.freebsd.org/D25992
2020-08-25 13:29:57 +00:00
..
TEST
tests
eval.c m4: import from OpenBSD 2019-09-09 15:37:40 +00:00
expr.c
extern.h
gnum4.c m4: import patch from OpenBSD 2019-09-09 15:24:48 +00:00
look.c
m4.1
main.c
Makefile Add necessary Makefile.inc1 infrastructure for building on non-FreeBSD 2020-08-25 13:29:57 +00:00
Makefile.depend
mdef.h
misc.c
NOTES
parser.y
pathnames.h
stdd.h
tokenizer.l Import from OpenBSD a patch which eliminates the link with -ly or -ly 2019-09-09 15:20:19 +00:00
trace.c