diff options
author | Brian Tarricone <brian@tarricone.org> | 2005-04-21 00:18:30 +0000 |
---|---|---|
committer | Brian Tarricone <brian@tarricone.org> | 2005-04-21 00:18:30 +0000 |
commit | 04fb57da1e42265c94e51e73adcc88989d7bf318 (patch) | |
tree | 2f86f3e9dbd303cb98f6c701a792dac7a1f7f345 | |
parent | e8f30a2b515f19ddb70ec6eef40bc2daac41a9b7 (diff) | |
download | xfce4-dev-tools-04fb57da1e42265c94e51e73adcc88989d7bf318.tar.gz |
* Modify checks for autoheader and autoconf so they first check for
versioned binaries (-2.59, -2.58, -2.57, -2.53) before falling back to a
non-versioned binary.
* Modify checks for automake and aclocal so they first check for
versioned binaries (-1.9, -1.8) before falling back to a non-
versioned binary.
* Fix two typos; 2>&0 -> 2>&1, autoconf -> automake.
(Old svn revision: 13702)
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | scripts/xdt-autogen.in | 49 |
2 files changed, 46 insertions, 13 deletions
@@ -1,3 +1,13 @@ +2005-04-20 Brian Tarricone <bjt23@cornell.edu> + + * Modify checks for autoheader and autoconf so they first check for + versioned binaries (-2.59, -2.58, -2.57, -2.53) before falling back to a + non-versioned binary. + * Modify checks for automake and aclocal so they first check for + versioned binaries (-1.9, -1.8) before falling back to a non- + versioned binary. + * Fix two typos; 2>&0 -> 2>&1, autoconf -> automake. + 2005-03-19 Benedikt Meurer <benny@xfce.org> * m4macros/xdt-features.m4: Fix typo. diff --git a/scripts/xdt-autogen.in b/scripts/xdt-autogen.in index 90b0c13..1759e1e 100644 --- a/scripts/xdt-autogen.in +++ b/scripts/xdt-autogen.in @@ -123,10 +123,16 @@ fi ## -## Check for autoconf +## Check for autoconf, first trying autoconf-2.59, then autoconf-2.58, then +## autoconf-2.57, then autoconf-2.53, and finally simply autoconf. ## -test -z "${XDT_PROG_AUTOCONF}" && XDT_PROG_AUTOCONF="autoconf" -(${XDT_PROG_AUTOCONF} --version) </dev/null >/dev/null 2>&0 || { +test -z "${XDT_PROG_AUTOCONF}" && +for i in autoconf-2.59 autoconf-2.58 autoconf-2.57 autoconf-2.53 autoconf; do + (${i} --version) </dev/null >/dev/null 2>&1 && + XDT_PROG_AUTOCONF=${i} && break +done + +test -z "${XDT_PROG_AUTOCONF}" && { cat >&2 <<EOF xdt-autogen: You must have "autoconf" installed on your system. Download the appropriate package for your distribution, @@ -212,12 +218,18 @@ done ## -## Check for aclocal +## Check for aclocal, first trying aclocal-1.9, then aclocal-1.8, and finally +## simply aclocal. ## -test -z "${XDT_PROG_ACLOCAL}" && XDT_PROG_ACLOCAL="aclocal" -(${XDT_PROG_ACLOCAL} --version) </dev/null >/dev/null 2>&1 || { +test -z "${XDT_PROG_ACLOCAL}" && +for i in aclocal-1.9 aclocal-1.8 aclocal; do + (${i} --version) </dev/null >/dev/null 2>&1 && + XDT_PROG_ACLOCAL=${i} && break +done + +test -z "${XDT_PROG_ACLOCAL}" && { cat >&2 <<EOF -xdt-autogen: You must have "autoconf" installed (which includes the +xdt-autogen: You must have "automake" installed (which includes the "aclocal" tool). You can get the source tarball at ftp://ftp.gnu.org/pub/gnu/. EOF @@ -226,12 +238,17 @@ EOF ## -## Check for autoheader +## Check for autoheader, first trying autoheader-2.59, then autoheader-2.58, +## then autoheader-2.57, then autoheader-2.53, and finally simply autoheader. ## -test -z "${XDT_PROG_AUTOHEADER}" && XDT_PROG_AUTOHEADER="autoheader" +test -z "${XDT_PROG_AUTOHEADER}" && for configure_file in $CONFIGURE_FILES; do if grep "^AM_CONFIG_HEADER" "${configure_file}" >/dev/null 2>&1; then - (${XDT_PROG_AUTOHEADER} --version) </dev/null >/dev/null 2>&1 || { + for i in 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 "${XDT_PROG_AUTOHEADER}" && { cat >&2 <<EOF xdt-autogen: You must have "autoconf" installed (which includes the "autoheader" tool). You can get the source tarball at @@ -245,10 +262,16 @@ done ## -## Check for automake +## Check for automake, first trying automake-1.9, then automake-1.8, and finally +## simply automake. ## -test -z "${XDT_PROG_AUTOMAKE}" && XDT_PROG_AUTOMAKE="automake" -(${XDT_PROG_AUTOMAKE} --version) </dev/null >/dev/null 2>&1 || { +test -z "${XDT_PROG_AUTOMAKE}" && +for i in automake-1.9 automake-1.8 automake; do + (${i} --version) </dev/null >/dev/null 2>&1 && + XDT_PROG_AUTOMAKE=${i} && break +done + +test -z "${XDT_PROG_AUTOMAKE}" && { cat >&2 <<EOF xdt-autogen: You must have "automake" installed on your system. You can get the source tarball at |