summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorAkim Demaille <akim@epita.fr>2003-04-08 07:42:14 +0000
committerAkim Demaille <akim@epita.fr>2003-04-08 07:42:14 +0000
commit15753f052d16536388d62ea3d34b20f87f74efa2 (patch)
treefb626c04861de79c4f4c2bbc3eed952f78960e49 /GNUmakefile
parent9870a8db2f08bdc48bda522f1bcf947515488566 (diff)
downloadautoconf-15753f052d16536388d62ea3d34b20f87f74efa2.tar.gz
* GNUmakefile (SHELL): Don't assume sh is in /bin/.
From Ilya Zakharevich.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 4a8d2484..d6465a53 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -22,7 +22,13 @@
# Systems where /bin/sh is not the default shell need this. The $(shell)
# command below won't work with e.g. stock DOS/Windows shells.
+ifeq ($(wildcard /bin/s[h]),/bin/sh)
SHELL = /bin/sh
+else
+# will be used only with the next shell-test line, then overwritten
+# by a configured-in value
+SHELL = sh
+endif
have-Makefile := $(shell test -f Makefile && echo yes)