git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/nagios-plugins-contrib-24.20190301~bpo9+1/check_varnish/varnish-nagios/autogen.sh
blob: 457a7d000f96b7f5b18207b2dc47fce6cb6ab1bb (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/sh
#
# $Id$
#

warn() {
	echo "WARNING: $@" 1>&2
}

case `uname -s` in
Darwin)
	LIBTOOLIZE=glibtoolize
	;;
FreeBSD)
	LIBTOOLIZE=libtoolize
	if [ -d /usr/local/gnu-autotools/bin ] ; then
		PATH=/usr/local/gnu-autotools/bin:${PATH}
		export PATH
		FIX_BROKEN_FREEBSD_PORTS="-I /usr/local/share/aclocal"
	fi
	;;
Linux)
	LIBTOOLIZE=libtoolize
	;;
esac

automake_version=$(automake --version | tr ' ' '\n' | egrep '^[0-9]\.[0-9a-z.-]+')
if [ -z "$automake_version" ] ; then
    warn "unable to determine automake version"
else
    case $automake_version in
	0.*|1.[0-8]|1.[0-8][.-]*)
	    warn "automake ($automake_version) detected; 1.9 or newer recommended"
	    ;;
	*)
	    ;;
    esac
fi

set -ex

aclocal ${FIX_BROKEN_FREEBSD_PORTS}
$LIBTOOLIZE --copy --force
autoheader
automake --add-missing --copy --foreign
autoconf