2 # Run this to generate all the initial makefiles, etc.
8 # a silly hack that generates autoregen.sh but it's handy
9 echo "#!/bin/sh" > autoregen.sh
10 echo "./autogen.sh $@ \$@" >> autoregen.sh
16 test -z "$srcdir" && srcdir
=.
22 (autoconf
--version) < /dev
/null
> /dev
/null
2>&1 ||
{
24 echo "You must have autoconf installed to compile $PROJECT."
25 echo "Download the appropriate package for your distribution,"
26 echo "or get the source tarball at ftp://ftp.gnu.org/gnu/autoconf/"
30 if automake
--version < /dev
/null
> /dev
/null
2>&1; then
33 elif automake-1.11
--version < /dev
/null
> /dev
/null
2>&1; then
34 AUTOMAKE
=automake-1.11
36 elif automake-1.10
--version < /dev
/null
> /dev
/null
2>&1; then
37 AUTOMAKE
=automake-1.10
39 elif automake-1.9
--version < /dev
/null
> /dev
/null
2>&1; then
42 elif automake-1.8
--version < /dev
/null
> /dev
/null
2>&1; then
45 elif automake-1.7
--version < /dev
/null
> /dev
/null
2>&1; then
48 elif automake-1.6
--version < /dev
/null
> /dev
/null
2>&1; then
53 echo "You must have automake installed to compile $PROJECT."
54 echo "Download the appropriate package for your distribution,"
55 echo "or get the source tarball at ftp://ftp.gnu.org/gnu/automake/"
59 if test "$DIE" -eq 1; then
63 test $TEST_TYPE $FILE ||
{
64 echo "You must run this script in the top-level $PROJECT directory"
68 if test "$#" = 0; then
69 echo "I am going to run ./configure with no arguments - if you wish "
70 echo "to pass any to it, please specify them on the $0 command line."
73 if gnome-doc-prepare
--version < /dev
/null
> /dev
/null
2>&1; then
74 echo "* Running gnome-doc-prepare"
75 gnome-doc-prepare
--copy --force --automake
77 touch gnome-doc-utils.
make
80 # to support timj aclocal setup we are shipping gnome-doc-utils.m4
81 # and making sure automake picks it up ;)
82 # this is bad as -I prepends to the search path
83 echo "* Running $ACLOCAL"
84 $ACLOCAL $ACLOCAL_FLAGS -I m4 ||
exit $?
86 echo "* Running autoconf"
88 # optionally feature autoheader
89 #(autoheader --version) < /dev/null > /dev/null 2>&1 && autoheader
91 echo "* Running libtoolize"
92 libtoolize
--copy --force
94 echo "* Running $AUTOMAKE"
95 $AUTOMAKE --add-missing -Wno-portability $am_opt ||
exit $?
99 $srcdir/configure
--enable-maintainer-mode "$@" ||
exit $?
102 echo "Now type 'make install' to install $PROJECT."