Commit 9f4f40e2 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Use most recent automake version

Slower maybe, but safer
and arguably more suited for automatically issued tarballs
parent 52778f03
...@@ -48,30 +48,12 @@ fi ...@@ -48,30 +48,12 @@ fi
# Check for automake # Check for automake
amvers="none" amvers="none"
if automake-1.8 --version >/dev/null 2>&1; then if automake-1.9 --version >/dev/null 2>&1; then
amvers="-1.8"
# If we also have 1.6 (>> 1.6.1), use it instead because it is faster
if automake-1.6 --version >/dev/null 2>&1; then
if expr "`automake-1.6 --version | sed -e '1s/[^0-9]*//' -e q`" ">" "1.6.1" > /dev/null 2>&1; then
amvers="-1.6"
fi
fi
elif automake-1.9 --version >/dev/null 2>&1; then
amvers="-1.9" amvers="-1.9"
# If we also have 1.6 (>> 1.6.1), use it instead because it is faster elif automake-1.8 --version >/dev/null 2>&1; then
if automake-1.6 --version >/dev/null 2>&1; then amvers="-1.8"
if expr "`automake-1.6 --version | sed -e '1s/[^0-9]*//' -e q`" ">" "1.6.1" > /dev/null 2>&1; then
amvers="-1.6"
fi
fi
elif automake-1.7 --version >/dev/null 2>&1; then elif automake-1.7 --version >/dev/null 2>&1; then
amvers="-1.7" amvers="-1.7"
# If we also have 1.6 (>> 1.6.1), use it instead because it is faster
if automake-1.6 --version >/dev/null 2>&1; then
if expr "`automake-1.6 --version | sed -e '1s/[^0-9]*//' -e q`" ">" "1.6.1" > /dev/null 2>&1; then
amvers="-1.6"
fi
fi
elif automake-1.6 --version >/dev/null 2>&1; then elif automake-1.6 --version >/dev/null 2>&1; then
amvers="-1.6" amvers="-1.6"
if expr "`automake-1.6 --version | sed -e '1s/[^0-9]*//' -e q`" "<=" "1.6.1" > /dev/null 2>&1; then if expr "`automake-1.6 --version | sed -e '1s/[^0-9]*//' -e q`" "<=" "1.6.1" > /dev/null 2>&1; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment