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"
25 if which which > /dev
/null
2>&1; then
28 echo "$0: need 'which' to figure out if we have the right autoconf to build samba from git" >&2
32 ## Look for autoheader
34 for i
in $TESTAUTOHEADER; do
35 if which $i > /dev
/null
2>&1; then
36 if test `$i --version | head -n 1 | cut -d. -f 2 | sed "s/[^0-9]//g"` -ge 53; then
48 for i
in $TESTAUTOCONF; do
49 if which $i > /dev
/null
2>&1; then
50 if test `$i --version | head -n 1 | cut -d. -f 2 | sed "s/[^0-9]//g"` -ge 53; then
62 if test "$AUTOCONFFOUND" = "0" -o "$AUTOHEADERFOUND" = "0"; then
63 echo "$0: need autoconf 2.53 or later to build samba from git" >&2
67 echo "$0: running script/mkversion.sh"
68 .
/script
/mkversion.sh
$VERSION_FILE ||
exit 1
70 rm -rf autom4te
*.cache
71 rm -f configure include
/config_tmp.h
*
72 rm -f makefile Makefile
74 IPATHS
="-I. -I../lib/replace"
76 echo "$0: running $AUTOHEADER $IPATHS"
77 $AUTOHEADER $IPATHS ||
exit 1
79 echo "$0: running $AUTOCONF $IPATHS"
80 $AUTOCONF $IPATHS ||
exit 1
82 rm -rf autom4te
*.cache
84 echo "Now run ./configure (or ./configure.developer) and then make."