Eliminated the obsolete function osrf_message_free(), which is now
[OpenSRF.git] / autogen.sh
1 #!/bin/sh
2 # autogen.sh - generates configure using the autotools
3
4 OS=`uname`
5 if [ "$OS" = "Darwin" ]; then
6     : ${LIBTOOLIZE=glibtoolize}
7 elif [ "$OS" = "Linux" ]; then
8     : ${LIBTOOLIZE=libtoolize}
9 fi
10
11 : ${ACLOCAL=aclocal}
12 : ${AUTOHEADER=autoheader}
13 : ${AUTOMAKE=automake}
14 : ${AUTOCONF=autoconf}
15
16
17 ${LIBTOOLIZE} --force --copy
18 ${ACLOCAL}
19 ${AUTOMAKE} --add-missing --copy
20
21
22 ${AUTOCONF}
23
24 SILENT=`which ${LIBTOOLIZE} ${ACLOCAL} ${AUTOHEADER} ${AUTOMAKE} ${AUTOCONF}`
25 case "$?" in
26     0 )
27         echo All build tools found.
28         ;;
29     1)
30         echo
31         echo "--------------------------------------------------------------"
32         echo "          >>> Some build tools are missing! <<<"
33         echo Please make sure your system has the GNU autoconf and automake
34         echo toolchains installed.
35         echo "--------------------------------------------------------------"
36         exit
37         ;;
38 esac
39
40 echo 
41 echo "---------------------------------------------"
42 echo "autogen finished running, now run ./configure"
43 echo "---------------------------------------------"