1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/autogen.sh Mon Jan 05 04:13:42 2009 +0000
1.5 +# Run this to generate all the initial makefiles, etc.
1.8 +test -z "$srcdir" && srcdir=.
1.12 +if [ -n "$GNOME2_DIR" ]; then
1.13 + ACLOCAL_FLAGS="-I $GNOME2_DIR/share/aclocal $ACLOCAL_FLAGS"
1.14 + LD_LIBRARY_PATH="$GNOME2_DIR/lib:$LD_LIBRARY_PATH"
1.15 + PATH="$GNOME2_DIR/bin:$PATH"
1.17 + export LD_LIBRARY_PATH
1.20 +(test -f $srcdir/configure.in) || {
1.21 + echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
1.22 + echo " top-level package directory"
1.26 +(autoconf --version) < /dev/null > /dev/null 2>&1 || {
1.28 + echo "**Error**: You must have \`autoconf' installed."
1.29 + echo "Download the appropriate package for your distribution,"
1.30 + echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
1.34 +(grep "^AC_PROG_INTLTOOL" $srcdir/configure.in >/dev/null) && {
1.35 + (intltoolize --version) < /dev/null > /dev/null 2>&1 || {
1.37 + echo "**Error**: You must have \`intltool' installed."
1.38 + echo "You can get it from:"
1.39 + echo " ftp://ftp.gnome.org/pub/GNOME/"
1.44 +(grep "^AM_PROG_XML_I18N_TOOLS" $srcdir/configure.in >/dev/null) && {
1.45 + (xml-i18n-toolize --version) < /dev/null > /dev/null 2>&1 || {
1.47 + echo "**Error**: You must have \`xml-i18n-toolize' installed."
1.48 + echo "You can get it from:"
1.49 + echo " ftp://ftp.gnome.org/pub/GNOME/"
1.54 +(grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
1.55 + (libtool --version) < /dev/null > /dev/null 2>&1 || {
1.57 + echo "**Error**: You must have \`libtool' installed."
1.58 + echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
1.63 +(grep "^AM_GLIB_GNU_GETTEXT" $srcdir/configure.in >/dev/null) && {
1.64 + (grep "sed.*POTFILES" $srcdir/configure.in) > /dev/null || \
1.65 + (glib-gettextize --version) < /dev/null > /dev/null 2>&1 || {
1.67 + echo "**Error**: You must have \`glib' installed."
1.68 + echo "You can get it from: ftp://ftp.gtk.org/pub/gtk"
1.73 +(automake --version) < /dev/null > /dev/null 2>&1 || {
1.75 + echo "**Error**: You must have \`automake' installed."
1.76 + echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/"
1.82 +# if no automake, don't bother testing for aclocal
1.83 +test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
1.85 + echo "**Error**: Missing \`aclocal'. The version of \`automake'"
1.86 + echo "installed doesn't appear recent enough."
1.87 + echo "You can get automake from ftp://ftp.gnu.org/pub/gnu/"
1.91 +if test "$DIE" -eq 1; then
1.95 +if test -z "$*"; then
1.96 + echo "**Warning**: I am going to run \`configure' with no arguments."
1.97 + echo "If you wish to pass any to it, please specify them on the"
1.98 + echo \`$0\'" command line."
1.104 + am_opt=--include-deps;;
1.107 +for coin in `find $srcdir -path $srcdir/CVS -prune -o -name configure.in -print`
1.109 + dr=`dirname $coin`
1.110 + if test -f $dr/NO-AUTO-GEN; then
1.111 + echo skipping $dr -- flagged as no auto-gen
1.113 + echo processing $dr
1.116 + aclocalinclude="$ACLOCAL_FLAGS"
1.118 + if grep "^AM_GLIB_GNU_GETTEXT" configure.in >/dev/null; then
1.119 + echo "Creating $dr/aclocal.m4 ..."
1.120 + test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
1.121 + echo "Running glib-gettextize... Ignore non-fatal messages."
1.122 + echo "no" | glib-gettextize --force --copy
1.123 + echo "Making $dr/aclocal.m4 writable ..."
1.124 + test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
1.126 + if grep "^AC_PROG_INTLTOOL" configure.in >/dev/null; then
1.127 + echo "Running intltoolize..."
1.128 + intltoolize --copy --force --automake
1.130 + if grep "^AM_PROG_XML_I18N_TOOLS" configure.in >/dev/null; then
1.131 + echo "Running xml-i18n-toolize..."
1.132 + xml-i18n-toolize --copy --force --automake
1.134 + if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
1.135 + if test -z "$NO_LIBTOOLIZE" ; then
1.136 + echo "Running libtoolize..."
1.137 + libtoolize --force --copy
1.140 + echo "Running aclocal $aclocalinclude ..."
1.141 + aclocal $aclocalinclude
1.142 + if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
1.143 + echo "Running autoheader..."
1.146 + echo "Running automake --gnu $am_opt ..."
1.147 + automake --add-missing --gnu $am_opt
1.148 + echo "Running autoconf ..."
1.154 +conf_flags="--enable-maintainer-mode"
1.156 +if test x$NOCONFIGURE = x; then
1.157 + echo Running $srcdir/configure $conf_flags "$@" ...
1.158 + $srcdir/configure $conf_flags "$@" \
1.159 + && echo Now type \`make\' to compile. || exit 1
1.161 + echo Skipping configure process.