* Makefile.am:
[monodevelop.git] / extras / MonoDevelop.Database / autogen.sh
blob59d1fc3a623903a67a38978c7114d27cd06203ee
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3 # Ripped off from GNOME macros version
5 DIE=0
7 PKG_NAME=MonoDevelop
8 WANT_AUTOCONF="2.5"
9 srcdir=`dirname $0`
10 test -z "$srcdir" && srcdir=.
12 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
13 echo
14 echo "**Error**: You must have \`autoconf' installed to compile MonoDevelop."
15 echo "Download the appropriate package for your distribution,"
16 echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
17 DIE=1
20 (automake --version) < /dev/null > /dev/null 2>&1 || {
21 echo
22 echo "**Error**: You must have \`automake' installed to compile MonoDevelop."
23 echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
24 echo "(or a newer version if it is available)"
25 DIE=1
26 NO_AUTOMAKE=yes
29 # if no automake, don't bother testing for aclocal
30 test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
31 echo
32 echo "**Error**: Missing \`aclocal'."
33 DIE=1
36 if test "$DIE" -eq 1; then
37 exit 1
40 if test -z "$*"; then
41 echo "**Warning**: I am going to run \`configure' with no arguments."
42 echo "If you wish to pass any to it, please specify them on the"
43 echo \`$0\'" command line."
44 echo
47 case $CC in
48 xlc )
49 am_opt=--include-deps;;
50 esac
52 echo "Running aclocal $ACLOCAL_FLAGS ..."
53 aclocal $ACLOCAL_FLAGS || {
54 echo
55 echo "**Error**: aclocal failed. This may mean that you have not"
56 echo "installed all of the packages you need, or you may need to"
57 echo "set ACLOCAL_FLAGS to include \"-I \$prefix/share/aclocal\""
58 echo "for the prefix where you installed the packages whose"
59 echo "macros were not found"
60 exit 1
63 echo "Running automake --gnu $am_opt ..."
64 automake --add-missing --gnu $am_opt ||
65 { echo "**Error**: automake failed."; exit 1; }
67 echo "Running autoconf ..."
68 WANT_AUTOCONF="2.5" autoconf || { echo "**Error**: autoconf failed."; exit 1; }
71 conf_flags="--enable-maintainer-mode --enable-compile-warnings"
73 if test x$NOCONFIGURE = x; then
74 echo Running $srcdir/configure $conf_flags "$@" ...
75 $srcdir/configure $conf_flags "$@" \
76 && echo Now type \`make\' to compile $PKG_NAME || exit 1
77 else
78 echo Skipping configure process.