This commit was generated by cvs2svn to compensate for changes in r30,
[jelmer/samba4-debian.git] / source / autogen.sh
1 #! /bin/sh
2
3 # Run this script to build samba from CVS.
4
5 ## first try the default names
6 AUTOHEADER="autoheader"
7 AUTOCONF="autoconf"
8
9 if which $AUTOCONF > /dev/null
10 then
11     :
12 else
13     echo "$0: need autoconf 2.53 or later to build samba from CVS" >&2
14     exit 1
15 fi
16
17 ##
18 ## what version do we need?
19 ##
20 if [ `$AUTOCONF --version | head -1 | cut -d.  -f 2` -lt 53 ]; then
21
22         ## maybe it's installed under a different name (e.g. RedHat 7.3)
23
24         AUTOCONF="autoconf-2.53"
25         AUTOHEADER="autoheader-2.53"
26
27 fi
28
29 echo "$0: running $AUTOHEADER"
30 $AUTOHEADER || exit 1
31
32 echo "$0: running $AUTOCONF"
33 $AUTOCONF || exit 1
34
35 echo "Now run ./configure and then make."
36 exit 0