summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-12-29 12:46:05 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2009-12-29 12:46:05 +0100
commit7805532fffa81c46a01af77aa967cf11a948a9f1 (patch)
tree83dab960fddbbf7fd23fe28a25708a53abbd64ec /Makefile
parent0b9bf7c336b992c90e764c327b945bf8ee20a202 (diff)
check mksh version, reported by joerg
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8c66e020e..ac760019f 100644
--- a/Makefile
+++ b/Makefile
@@ -161,6 +161,11 @@ NO_ERROR=0
@if ! mksh -c 'echo $$KSH_VERSION' 2>&1 | fgrep 'MIRBSD' >/dev/null 2>&1; then \
echo "MirBSD ksh (mksh) needs to be installed."; \
exit 1; \
+ else \
+ if [ $$(mksh -c 'echo $$KSH_VERSION' |cut -d ' ' -f 3|sed "s#R##") -le 38 ]; then \
+ echo "MirBSD ksh is too old. R38 or higher needed."; \
+ exit 1; \
+ fi \
fi
@if test x"$$(umask 2>/dev/null | sed 's/00*22/OK/')" != x"OK"; then \
echo >&2 Error: you must build with umask 022, sorry.; \