3 # Run this script to build samba from GIT.
17 ## insert all possible names (only works with
19 TESTAUTOHEADER
="autoheader autoheader-2.53 autoheader2.50 autoheader259 autoheader253"
20 TESTAUTOCONF
="autoconf autoconf-2.53 autoconf2.50 autoconf259 autoconf253"
27 ## Look for autoheader
29 for i
in $TESTAUTOHEADER; do
30 if which $i > /dev
/null
2>&1; then
31 if test `$i --version | head -n 1 | cut -d. -f 2 | sed "s/[^0-9]//g"` -ge 53; then
43 for i
in $TESTAUTOCONF; do
44 if which $i > /dev
/null
2>&1; then
45 if test `$i --version | head -n 1 | cut -d. -f 2 | sed "s/[^0-9]//g"` -ge 53; then
57 if test "$AUTOCONFFOUND" = "0" -o "$AUTOHEADERFOUND" = "0"; then
58 echo "$0: need autoconf 2.53 or later to build samba from GIT" >&2
62 echo "$0: running script/mkversion.sh"
63 .
/script
/mkversion.sh
$VERSION_FILE ||
exit 1
65 rm -rf autom4te
*.cache
66 rm -f configure include
/config.h
*
68 IPATHS
="-Im4 -I../m4 -I../lib/replace -I../source4"
70 echo "$0: running $AUTOHEADER $IPATHS"
71 $AUTOHEADER $IPATHS ||
exit 1
73 echo "$0: running $AUTOCONF $IPATHS"
74 $AUTOCONF $IPATHS ||
exit 1
76 rm -rf autom4te
*.cache
78 echo "Now run ./configure (or ./configure.developer) and then make."