summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-04-18 16:59:11 +0100
committerColin Walters <walters@verbum.org>2012-04-18 13:01:36 -0400
commitb792258e1f76c04a5bb61f60e7121a362b38a00b (patch)
treeec78a9a16b42b28a9041dc3ccdc389c41bb99007
parentd234ccf15a897024bb004d0f3a9a2f3b8d0976e6 (diff)
downloadlinux-user-chroot-b792258e1f76c04a5bb61f60e7121a362b38a00b.tar.gz
autogen: remove dependency on which
Signed-off-by: Colin Walters <walters@verbum.org>
-rwxr-xr-xautogen.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/autogen.sh b/autogen.sh
index 6035bc0..4674ca8 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -6,9 +6,8 @@ test -n "$srcdir" || srcdir=.
olddir=`pwd`
cd $srcdir
-AUTORECONF=`which autoreconf`
-if test -z $AUTORECONF; then
- echo "*** No autoreconf found, please intall it ***"
+if ! (autoreconf --version >/dev/null 2>&1); then
+ echo "*** No autoreconf found, please install it ***"
exit 1
fi