Separate scan for commands used during configure.

This commit is contained in:
Graydon Hoare 2011-03-19 18:31:59 -07:00
parent b56f4540e9
commit 50c78313f2
1 changed files with 11 additions and 0 deletions

11
configure vendored
View File

@ -12,6 +12,14 @@ err() {
exit 1
}
need_cmd() {
if which $1 >/dev/null 2>&1
then msg "found $1"
else err "need $1"
fi
}
make_dir() {
if [ ! -d $1 ]
then
@ -63,6 +71,9 @@ probe_need() {
fi
}
msg "looking for configure programs"
need_cmd mkdir
need_cmd printf
msg "recreating config.mk"
echo '' >config.mk