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