* First cut at static-linking the citserver. Ripped out libtool and
[citadel.git] / citadel / bootstrap
1 #!/bin/sh
2 #
3 # run me after checking Citadel out of CVS.
4 #
5 # $Id$
6 #
7
8 # Goofy red hat 7.3 stuff
9 [ `cut -f 5 -d ' ' /etc/redhat-release` = 7.3 ] && redhat73=true
10 if [ "$redhat73" = "true" ]; then
11         aclocal=/usr/bin/aclocal-1.5
12         autoconf=/usr/bin/autoconf-2.53
13         autoheader=/usr/bin/autoheader-2.53
14
15         if test -z $aclocal ; then
16                 echo "Please install the automake15 RPM package"
17                 redhat73=missing
18         fi
19         if test -z $autoconf || test -z $autoheader ; then
20                 echo "Please install the autoconf253 RPM package"
21                 redhat73=missing
22         fi
23         if test "$redhat73" = "missing" ; then
24                 exit 1
25         fi
26 else
27         aclocal=aclocal
28         autoconf=autoconf
29         autoheader=autoheader
30 fi
31
32 echo ... running aclocal ...
33 $aclocal
34 echo ... running autoconf ...
35 $autoconf
36 echo ... running autoheader ...
37 $autoheader
38
39 echo
40 echo This script has been tested with autoconf 2.53 and
41 echo automake 1.5. Other versions may work, but I recommend the latest
42 echo compatible versions of these.
43 echo
44 echo Also note that autoconf and automake should be configured
45 echo with the same prefix.
46 echo