summaryrefslogtreecommitdiff
path: root/scripts/autoconf
blob: ce75759cf5aa9c59a6c481ccbfb9e5f8e7d812db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

ac262=$(which autoconf-2.62)
ac261=$(which autoconf-2.61)

if [ ! -z "$ac262" -a -x "$ac262" ];then
	if [ -x /usr/bin/autoconf ];then
		AUTOCONF_VERSION=2.62 /usr/bin/autoconf "$@"
	else
		AUTOCONF_VERSION=2.62 /usr/local/bin/autoconf "$@"
	fi
elif [ ! -z "$ac261" -a -x "$ac261" ];then
	if [ -x /usr/bin/autoconf ];then
		AUTOCONF_VERSION=2.61 /usr/bin/autoconf "$@"
	else
		AUTOCONF_VERSION=2.61 /usr/local/bin/autoconf "$@"
	fi
else
	if [ -x /usr/bin/autoconf ];then
		/usr/bin/autoconf "$@"
	else
		/usr/local/bin/autoconf "$@"
	fi
fi