tools/bison: hardcode path to m4 with STAGING_DIR_HOST
authorMichael Pratt <mcpratt@pm.me>
Mon, 1 Apr 2024 19:51:16 +0000 (15:51 -0400)
committerRobert Marko <robimarko@gmail.com>
Thu, 25 Apr 2024 19:33:51 +0000 (21:33 +0200)
commit41bc16dcc4594cd85fb87942032dcbec0ade7068
tree8d98ebcb01faf6840401141081c3c69cc3a6ed36
parent098bde1f3ebee9b5f302924474a99c00d6cc0242
tools/bison: hardcode path to m4 with STAGING_DIR_HOST

Force bison to ignore the M4 environment variable and hardcode it to the
locally built m4 during build operations using the relocatable path
variable STAGING_DIR_HOST.

This allows bison to continue to function while we are forcefully avoiding
autoreconf and other autoconf and automake-like operations by giving a
fake path to m4 with the M4 environment variable.

The specific path can still be overridden independently from the
environment within the line of invocation that runs bison by setting
STAGING_DIR_HOST within the command, so document this in the help printout.

Tested-by: Georgi Valkov <gvalkov@gmail.com> # MacOS
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
tools/bison/patches/000-relocatable.patch [new file with mode: 0644]