aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2006-06-29 06:45:51 +0000
committerMartin Schlemmer <azarah@gentoo.org>2006-06-29 06:45:51 +0000
commit745dc8d10eeabecb2eba541bdb7b87f5ca632600 (patch)
treef3263b5aa04eb9a5028bf99ca21e023d5bdde25d
parentRemove awk compat crap as gawk now works on Darwin. (diff)
downloadautotools-wrappers-745dc8d10eeabecb2eba541bdb7b87f5ca632600.tar.gz
autotools-wrappers-745dc8d10eeabecb2eba541bdb7b87f5ca632600.tar.bz2
autotools-wrappers-745dc8d10eeabecb2eba541bdb7b87f5ca632600.zip
Update wrapper to be more generic with different versions of autconf-2.59 or later.ac-3.3
Package-Manager: portage-2.1.1_pre1-r5
-rwxr-xr-xac-wrapper.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/ac-wrapper.sh b/ac-wrapper.sh
index 9701f84..ad4ca4a 100755
--- a/ac-wrapper.sh
+++ b/ac-wrapper.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/autoconf-wrapper/files/ac-wrapper-3.2.sh,v 1.1 2005/09/09 23:15:25 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/autoconf-wrapper/files/ac-wrapper-3.3.sh,v 1.1 2006/06/29 06:45:51 azarah Exp $
# Based on the ac-wrapper.pl script provided by MandrakeSoft
# Rewritten in bash by Gregorio Guidi
@@ -28,7 +28,13 @@ if [[ ${WANT_AUTOCONF} == "2.1" && ${0##*/} == "autom4te" ]] ; then
exit 1
fi
-binary_new="${0}-2.59"
+if type -p autoconf-2.60 &>/dev/null ; then
+ binary_new="${0}-2.60"
+elif type -p autoconf-2.59d &>/dev/null ; then
+ binary_new="${0}-2.59d"
+else
+ binary_new="${0}-2.59"
+fi
binary_old="${0}-2.13"
binary=${binary_new}