mkheaders.in uses substitutions of @SHELL@ to run fixinc.sh and mkinstalldirs. Problem is, SHELL comes from CONFIG_SHELL for the build system, and it needs not match whatever is available at an unrelated host system after installation, when mkheaders is supposed to be run. I considered ditching the hardcoding altogether, but decided to retain it, but allowing CONFIG_SHELL and SHELL to override it, if any of them can successfully run mkinstalldirs, and if those and the substituted @SHELL@ fail, fallback to /bin/sh and to plain execution of the script, which appears to enable at least one shell on a system that doesn't typicall have a shell to recognize a script by #!/bin/sh and reinvoke itself to run it. If all of these fail, we fail, but only after telling the user to retry after setting CONFIG_SHELL, that fixincl itself also uses. for fixincludes/ChangeLog * mkheaders.in: Don't require build-time shell on host.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
tests/base | Loading commit data... | |
ChangeLog | Loading commit data... | |
Makefile.in | Loading commit data... | |
README | Loading commit data... | |
README-fixinc | Loading commit data... | |
aclocal.m4 | Loading commit data... | |
check.tpl | Loading commit data... | |
config.h.in | Loading commit data... | |
configure | Loading commit data... | |
configure.ac | Loading commit data... | |
fixfixes.c | Loading commit data... | |
fixinc.in | Loading commit data... | |
fixincl.c | Loading commit data... | |
fixincl.tpl | Loading commit data... | |
fixincl.x | Loading commit data... | |
fixlib.c | Loading commit data... | |
fixlib.h | Loading commit data... | |
fixopts.c | Loading commit data... | |
fixtests.c | Loading commit data... | |
genfixes | Loading commit data... | |
inclhack.def | Loading commit data... | |
mkfixinc.sh | Loading commit data... | |
mkheaders.in | Loading commit data... | |
procopen.c | Loading commit data... | |
server.c | Loading commit data... | |
server.h | Loading commit data... | |
system.h | Loading commit data... |