OS X compilation issues
[public/netxms.git] / reconf
1 #!/bin/sh
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
12 ACLOCAL=aclocal
13 AUTOCONF=autoconf
14 AUTOHEADER=autoheader
15 AUTOMAKE=automake
16 which libtoolize > /dev/null && LIBTOOLIZE=libtoolize
17 which glibtoolize > /dev/null && LIBTOOLIZE=glibtoolize
18
19 mkdir -p config
20 touch README
21
22 echo \*\*\* ACLOCAL: `which $ACLOCAL`
23 echo \*\*\* AUTOCONF: `which $AUTOCONF`
24 echo \*\*\* AUTOHEADER: `which $AUTOHEADER`
25 echo \*\*\* AUTOMAKE: `which $AUTOMAKE`
26 echo \*\*\* LIBTOOLIZE: `which $LIBTOOLIZE`
27
28 rm -f config.cache &&
29 [ ! -f config/ltmain.sh ] && $LIBTOOLIZE
30 echo "- aclocal." &&
31 $ACLOCAL -I m4 &&
32 echo "- autoconf." &&
33 $AUTOCONF &&
34 echo "- autoheader." &&
35 $AUTOHEADER &&
36 echo "- automake." &&
37 $AUTOMAKE -a &&
38 chmod 755 configure
39
40 if 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
46 fi
47
48 exit $?