libexpat ported to NetWare; added prefixes to all exports in NetWare; other minor...
[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
b263092f
VK
12ACLOCAL=aclocal
13AUTOCONF=autoconf
14AUTOHEADER=autoheader
15AUTOMAKE=automake
6caa8b7f
VK
16if test -x `which libtoolize`; then
17 LIBTOOLIZE=libtoolize
18fi
19if test -x `which glibtoolize`; then
20 LIBTOOLIZE=glibtoolize
21fi
22#which libtoolize > /dev/null && LIBTOOLIZE=libtoolize
23#which glibtoolize > /dev/null && LIBTOOLIZE=glibtoolize
3d9b275c 24
c2f314dc 25mkdir -p config
050afaa8 26touch README
c2f314dc 27
6cd235ca
AK
28echo \*\*\* ACLOCAL: `which $ACLOCAL`
29echo \*\*\* AUTOCONF: `which $AUTOCONF`
30echo \*\*\* AUTOHEADER: `which $AUTOHEADER`
31echo \*\*\* AUTOMAKE: `which $AUTOMAKE`
32echo \*\*\* LIBTOOLIZE: `which $LIBTOOLIZE`
33
950013d9 34rm -f config.cache &&
3d9b275c 35[ ! -f config/ltmain.sh ] && $LIBTOOLIZE
950013d9 36echo "- aclocal." &&
3d9b275c 37$ACLOCAL -I m4 &&
950013d9 38echo "- autoconf." &&
3d9b275c 39$AUTOCONF &&
950013d9 40echo "- autoheader." &&
3d9b275c 41$AUTOHEADER &&
950013d9 42echo "- automake." &&
3d9b275c 43$AUTOMAKE -a &&
4cd0c9a7
VK
44chmod 755 configure
45
46if test -d src/private; then
47 FILES=`cat src/private/configure.files`
48 for file in $FILES; do
49 echo "Processing $file"
50 $AUTOMAKE $file
51 done
52fi
53
6693a1d0 54exit $?