3 # Run this script to build samba from SVN.
5 ## insert all possible names (only works with
7 TESTAUTOHEADER
="autoheader autoheader-2.53 autoheader2.50"
8 TESTAUTOCONF
="autoconf autoconf-2.53 autoconf2.50"
15 ## Look for autoheader
17 for i
in $TESTAUTOHEADER; do
18 if which $i > /dev
/null
2>&1; then
19 if [ `$i --version | head -n 1 | cut -d. -f 2 | tr -d [:alpha:]` -ge 53 ]; then
31 for i
in $TESTAUTOCONF; do
32 if which $i > /dev
/null
2>&1; then
33 if [ `$i --version | head -n 1 | cut -d. -f 2 | tr -d [:alpha:]` -ge 53 ]; then
45 if [ "$AUTOCONFFOUND" = "0" -o "$AUTOHEADERFOUND" = "0" ]; then
46 echo "$0: need autoconf 2.53 or later to build samba from SVN" >&2
50 rm -rf autom4te
*.cache
52 echo "$0: running $AUTOHEADER"
55 echo "$0: running $AUTOCONF"
58 rm -rf autom4te
*.cache
60 echo "Now run ./configure and then make."