summaryrefslogtreecommitdiffstats
path: root/cadr.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-04-17 18:23:02 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-04-17 18:23:02 -0700
commit6c593ff0ce9277a8ddc98eaa1980b3e6f0832fa5 (patch)
treefdcd1bfa1e4466df8866fa7e68ebd709f52c5530 /cadr.h
parent8daa2d98fe335ae2a9ec6a074d3a2c4037dcd79c (diff)
downloadtxr-6c593ff0ce9277a8ddc98eaa1980b3e6f0832fa5.tar.gz
txr-6c593ff0ce9277a8ddc98eaa1980b3e6f0832fa5.tar.bz2
txr-6c593ff0ce9277a8ddc98eaa1980b3e6f0832fa5.zip
configure: improve shell search-and-re-execute logic.
* configure: If we determine we are running on Bash, then do not re-execute. If re-executing, then look for CONFIG_SHELL first, which is an Autoconf convention that some distros rely on. Include dash in the fallback shell list because dash works fine. Include more places in which to look for bash and dash. Uses of txr_shell must be quoted now because it could take on the value of CONFIG_SHELL which we don't control. Print a trace message about re-executing. Print the message about which shell we are running on earlier, before parsing the variables and printing the baner. Since we might not re-execute any more, we might not know the exact name of the shell we are running on. That is difficult and hacky to obtain, so instead we print an alternative message that we are running on the original shell. (gen_config_make): Only generate the SHELL Makefile variable if txr_shell is set. If whatever shell we were run with is good enough for the configure script, it's good enough for Makefile recipes. Likely, the configure script was executed directly, so that /bin/sh is that default shell and that is what GNU Make will use by default.
Diffstat (limited to 'cadr.h')
0 files changed, 0 insertions, 0 deletions