summaryrefslogtreecommitdiffstats
path: root/autogen.sh
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-10-19 13:40:05 +0000
committerLennart Poettering <lennart@poettering.net>2005-10-19 13:40:05 +0000
commit35e5f1fd14f04d201e39c85f7772579d21f4bfdb (patch)
treeea16751aa8a995688e6c8907ff132c1bd2021d10 /autogen.sh
parentcb5fd7f601a158562b5ec003fecc928a720e10f3 (diff)
improve autgen.sh version check
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@822 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 9205c57..1514221 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -22,7 +22,17 @@ VERSION=1.9
run_versioned() {
local P
- type -p "$1-$2" &> /dev/null && P="$1-$2" || local P="$1"
+ local V
+
+ V=$(echo "$VERSION" | sed -e 's,\.,,g')
+
+ if type -p "$1$V" &> /dev/null ; then
+ P="$1$V"
+ elif type -p "$1-$2" &> /dev/null ; then
+ P="$1-$2"
+ else
+ P="$1"
+ fi
shift 2
"$P" "$@"