3 # Run this script to build openchange from SVN
5 ## insert all possible names (only works with
7 TESTAUTOHEADER="autoheader autoheader-2.53 autoheader2.50 autoheader259 autoheader253"
8 TESTAUTOCONF="autoconf autoconf-2.53 autoconf2.50 autoconf259 autoconf253"
9 TESTACLOCAL="aclocal aclocal19"
16 ## Look for autoheader
18 for i in $TESTAUTOHEADER; do
19 if which $i > /dev/null 2>&1; then
20 if test `$i --version | head -n 1 | cut -d. -f 2 | tr -d [:alpha:]` -ge 53; then
32 for i in $TESTAUTOCONF; do
33 if which $i > /dev/null 2>&1; then
34 if test `$i --version | head -n 1 | cut -d. -f 2 | tr -d [:alpha:]` -ge 53; then
45 for i in $TESTACLOCAL; do
46 if which $i > /dev/null 2>&1; then
57 if test "$AUTOCONFFOUND" = "0" -o "$AUTOHEADERFOUND" = "0"; then
58 echo "$0: need autoconf 2.53 or later to build openchange from SVN" >&2
62 if test "$ACLOCALFOUND" = "0"; then
63 echo "$0: aclocal not found" >&2
68 rm -rf autom4te*.cache
69 rm -f configure include/config.h*
71 echo "$0: running $ACLOCAL"
74 echo "$0: running $AUTOHEADER"
77 echo "$0: running $AUTOCONF"
81 rm -rf autom4te*.cache
83 echo "Now run ./configure and gmake"