summaryrefslogtreecommitdiffstats
path: root/autogen.sh
diff options
context:
space:
mode:
authorSebastien Estienne <sebastien.estienne@gmail.com>2005-10-24 23:44:05 +0000
committerSebastien Estienne <sebastien.estienne@gmail.com>2005-10-24 23:44:05 +0000
commit5c0f7327451ba44f43aaaf28816c7ed172128ccc (patch)
tree309529117098f63970b83060b088402df426ae3a /autogen.sh
parent992425c67dc0e66f155969a8eb7f466a384736d2 (diff)
* use which in autogen.sh instead of type -p
* add NetBSD support in bootstrap.sh * Netbsd doesn t have RLIMIT_AS -> ifdef * reorder an include in dnsconfd/main.c git-svn-id: file:///home/lennart/svn/public/avahi/trunk@862 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/autogen.sh b/autogen.sh
index 902181d..f75ad60 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -26,12 +26,14 @@ run_versioned() {
V=$(echo "$2" | sed -e 's,\.,,g')
- if type -p "$1$V" &> /dev/null ; then
+ if [ -e "`which $1$V`" ] ; then
P="$1$V"
- elif type -p "$1-$2" &> /dev/null ; then
- P="$1-$2"
else
- P="$1"
+ if [ -e "`which $1-$2`" ] ; then
+ P="$1-$2"
+ else
+ P="$1"
+ fi
fi
shift 2