[svn r176] Added the Monitor socket handler to receive backend event messages.
2 # Run this to generate all the initial makefiles, etc.
8 # a quick cvs co if necessary to alleviate the pain - may remove this
9 # when developers get a clue ;)
12 echo "+ getting common/ from svn"
16 # source helper functions
17 if test ! -f common/autogen-helper.sh;
19 echo There is something wrong with your source tree.
20 echo You are missing common/autogen-helper.sh
23 . common/autogen-helper.sh
25 CONFIGURE_DEF_OPT='--enable-maintainer-mode'
26 CONFIGURE_EXT_OPT="$@"
30 echo -n "+ check for build tools"
31 if test ! -z "$NOCHECK"; then echo " skipped"; else echo; fi
32 version_check "autoconf" "$AUTOCONF autoconf autoconf-2.54 autoconf-2.53" \
33 "ftp://ftp.gnu.org/pub/gnu/autoconf/" 2 53 || DIE=1
34 version_check "automake" "$AUTOMAKE automake automake-1.9 automake-1.8 automake-1.7 automake-1.6" \
35 "ftp://ftp.gnu.org/pub/gnu/automake/" 1 6 || DIE=1
36 version_check "libtoolize" "$LIBTOOLIZE libtoolize" \
37 "ftp://ftp.gnu.org/pub/gnu/libtool/" 1 5 0 || DIE=1
38 version_check "pkg-config" "" \
39 "http://www.freedesktop.org/software/pkgconfig" 0 8 0 || DIE=1
43 aclocal_check || DIE=1
44 autoheader_check || DIE=1
48 # if no arguments specified then this will be printed
50 echo "+ checking for autogen.sh options"
51 echo " This autogen script will automatically run ./configure as:"
52 echo " ./configure $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT"
53 echo " To pass any additional options, please specify them on the $0"
57 toplevel_check $srcfile
59 tool_run "$aclocal" "-I m4 $ACLOCAL_FLAGS"
60 tool_run "$libtoolize" "--copy --force"
61 tool_run "$autoheader"
63 # touch the stamp-h.in build stamp so we don't re-run autoheader in maintainer mode -- wingo
64 echo timestamp > stamp-h.in 2> /dev/null
67 tool_run "$automake" "-a -c"
69 # if enable exists, add an -enable option for each of the lines in that file
70 if test -f enable; then
71 for a in `cat enable`; do
72 CONFIGURE_FILE_OPT="--enable-$a"
76 # if disable exists, add an -disable option for each of the lines in that file
77 if test -f disable; then
78 for a in `cat disable`; do
79 CONFIGURE_FILE_OPT="$CONFIGURE_FILE_OPT --disable-$a"
83 test -n "$NOCONFIGURE" && {
84 echo "+ skipping configure stage for package $package, as requested."
85 echo "+ autogen.sh done."
89 echo "+ running configure ... "
90 test ! -z "$CONFIGURE_DEF_OPT" && echo " ./configure default flags: $CONFIGURE_DEF_OPT"
91 test ! -z "$CONFIGURE_EXT_OPT" && echo " ./configure external flags: $CONFIGURE_EXT_OPT"
92 test ! -z "$CONFIGURE_FILE_OPT" && echo " ./configure enable/disable flags: $CONFIGURE_FILE_OPT"
95 ./configure $CONFIGURE_DEF_OPT $CONFIGURE_EXT_OPT $CONFIGURE_FILE_OPT || {
96 echo " configure failed"
100 echo "Now type 'make' to compile $package."