2 # Run this to generate all the initial makefiles, etc.
3 # Ripped off from GNOME macros version
10 test -z "$srcdir" && srcdir
=.
12 (autoconf
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
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/"
20 (automake
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
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)"
29 # if no automake, don't bother testing for aclocal
30 test -n "$NO_AUTOMAKE" ||
(aclocal
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
32 echo "**Error**: Missing \`aclocal'."
36 if test "$DIE" -eq 1; 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."
49 am_opt=--include-deps;;
52 echo "Running aclocal $ACLOCAL_FLAGS ..."
53 aclocal $ACLOCAL_FLAGS || {
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"
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
78 echo Skipping configure process.