- nxcptest fully functional
[public/netxms.git] / reconf
CommitLineData
3d9b275c 1#!/bin/sh
950013d9
AK
2# Copyright (C) 2004 Alex Kirhenshtein <alk@alk.lv>
3#
4# This file is free software; as a special exception the author gives
5# unlimited permission to copy and/or distribute it, with or without
6# modifications, as long as this notice is preserved.
7#
8# This program is distributed in the hope that it will be useful, but
9# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
10# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
3d9b275c 12ACLOCAL=aclocal-1.7
20a35966
AK
13AUTOCONF=autoconf-2.60
14AUTOHEADER=autoheader-2.60
3d9b275c
AK
15AUTOMAKE=automake-1.7
16LIBTOOLIZE=libtoolize
17
18if [ `uname -s` = "FreeBSD" ]; then
19 ACLOCAL=aclocal19
20 AUTOCONF=autoconf259
21 AUTOHEADER=autoheader259
22 AUTOMAKE=automake19
23 LIBTOOLIZE=libtoolize15
24fi
25
702ab1a8
VK
26if [ "$1" = "-n" ]; then
27 ACLOCAL=aclocal
28 AUTOCONF=autoconf
29 AUTOHEADER=autoheader
30 AUTOMAKE=automake
31 LIBTOOLIZE=libtoolize
32fi
33
c2f314dc 34mkdir -p config
050afaa8 35touch README
c2f314dc 36
6cd235ca
AK
37echo \*\*\* ACLOCAL: `which $ACLOCAL`
38echo \*\*\* AUTOCONF: `which $AUTOCONF`
39echo \*\*\* AUTOHEADER: `which $AUTOHEADER`
40echo \*\*\* AUTOMAKE: `which $AUTOMAKE`
41echo \*\*\* LIBTOOLIZE: `which $LIBTOOLIZE`
42
950013d9 43rm -f config.cache &&
3d9b275c 44[ ! -f config/ltmain.sh ] && $LIBTOOLIZE
950013d9 45echo "- aclocal." &&
3d9b275c 46$ACLOCAL -I m4 &&
950013d9 47echo "- autoconf." &&
3d9b275c 48$AUTOCONF &&
950013d9 49echo "- autoheader." &&
3d9b275c 50$AUTOHEADER &&
950013d9 51echo "- automake." &&
3d9b275c 52$AUTOMAKE -a &&
5e40a69e 53chmod 755 configure &&
6693a1d0 54exit $?