summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2012-04-13 18:34:17 +0200
committerNick Schermer <nick@xfce.org>2012-04-13 22:17:43 +0200
commit286be3696483d5fcd5633371b23cbdca6a4e06fd (patch)
tree35e26960fe95f926ee9e4f048d46dba8d6c48eaa /scripts
parent69de50c7cd911c8014f27db08bcde5e9f79afb0a (diff)
downloadxfce4-dev-tools-286be3696483d5fcd5633371b23cbdca6a4e06fd.tar.gz
Use ?_VERSION for special versioned binary detection (bug #8683).
Use AUTOCONF_VERSION for automake-$ver, ACLOCAL_VERSION for aclocal-$ver, AUTOMAKE_VERSION for automake-$ver and AUTOHEADER_VERSION for autoheader-$ver. This removes the custom checks for the //newest// binary version, which gets constantly outdated.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/xdt-autogen.in.in41
1 files changed, 19 insertions, 22 deletions
diff --git a/scripts/xdt-autogen.in.in b/scripts/xdt-autogen.in.in
index 0ba203f..2feb2c1 100644
--- a/scripts/xdt-autogen.in.in
+++ b/scripts/xdt-autogen.in.in
@@ -366,14 +366,13 @@ fi
##
-## Check for autoconf, first trying autoconf-2.59, then autoconf-2.58, then
-## autoconf-2.57, then autoconf-2.53, and finally simply autoconf.
+## Check for autoconf
##
-test -z "${XDT_PROG_AUTOCONF}" &&
-for i in autoconf-2.61 autoconf-2.60 autoconf-2.59 autoconf-2.58 autoconf-2.57 autoconf-2.53 autoconf; do
+if test -z "${XDT_PROG_AUTOCONF}"; then
+ test -z "${AUTOCONF_VERSION}" && i=autoconf || i=autoconf-${AUTOCONF_VERSION}
(${i} --version) </dev/null >/dev/null 2>&1 &&
- XDT_PROG_AUTOCONF=${i} && break
-done
+ XDT_PROG_AUTOCONF=${i}
+fi
test -z "${XDT_PROG_AUTOCONF}" && {
cat >&2 <<EOF
@@ -485,14 +484,13 @@ done
##
-## Check for aclocal, first trying aclocal-1.9, then aclocal-1.8, and finally
-## simply aclocal.
+## Check for aclocal
##
-test -z "${XDT_PROG_ACLOCAL}" &&
-for i in aclocal-1.11 aclocal-1.10 aclocal-1.9 aclocal-1.8 aclocal; do
+if test -z "${XDT_PROG_ACLOCAL}"; then
+ test -z "${ACLOCAL_VERSION}" && i=aclocal || i=aclocal-${ACLOCAL_VERSION}
(${i} --version) </dev/null >/dev/null 2>&1 &&
- XDT_PROG_ACLOCAL=${i} && break
-done
+ XDT_PROG_ACLOCAL=${i}
+fi
test -z "${XDT_PROG_ACLOCAL}" && {
cat >&2 <<EOF
@@ -511,10 +509,10 @@ EOF
test -z "${XDT_PROG_AUTOHEADER}" &&
for configure_ac_file in $CONFIGURE_AC_FILES; do
if $EGREP -q "^A(M|C)_CONFIG_HEADER" "${configure_ac_file}"; then
- for i in autoheader-2.61 autoheader-2.60 autoheader-2.59 autoheader-2.58 autoheader-2.57 autoheader-2.53 autoheader; do
- (${i} --version) </dev/null >/dev/null 2>&1 &&
- XDT_PROG_AUTOHEADER=${i} && break
- done
+ test -z "${AUTOHEADER_VERSION}" && i=autoheader || i=autoheader-${AUTOHEADER_VERSION}
+ (${i} --version) </dev/null >/dev/null 2>&1 &&
+ XDT_PROG_AUTOHEADER=${i}
+
test -z "${XDT_PROG_AUTOHEADER}" && {
cat >&2 <<EOF
xdt-autogen: You must have "autoconf" installed (which includes the
@@ -529,14 +527,13 @@ done
##
-## Check for automake, first trying automake-1.9, then automake-1.8, and finally
-## simply automake.
+## Check for automake
##
-test -z "${XDT_PROG_AUTOMAKE}" &&
-for i in automake-1.11 automake-1.10 automake-1.9 automake-1.8 automake; do
+if test -z "${XDT_PROG_AUTOMAKE}"; then
+ test -z "${AUTOMAKE_VERSION}" && i=automake || i=automake-${AUTOMAKE_VERSION}
(${i} --version) </dev/null >/dev/null 2>&1 &&
- XDT_PROG_AUTOMAKE=${i} && break
-done
+ XDT_PROG_AUTOMAKE=${i}
+fi
test -z "${XDT_PROG_AUTOMAKE}" && {
cat >&2 <<EOF