summaryrefslogtreecommitdiffstats
path: root/autogen.sh
diff options
context:
space:
mode:
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