source: branches/2.0x/autogen.sh @ 10791

Last change on this file since 10791 was 10791, checked in by charles, 12 years ago

(2.0x) fix the autoreconf invocation s.t. automake knows to add our .m4 files to amaclocal_m4_deps

  • Property svn:executable set to *
File size: 1.0 KB
RevLine 
[2400]1#!/bin/sh
[5008]2srcdir=`dirname $0`
3test -z "$srcdir" && srcdir=.
[2770]4
[5008]5ORIGDIR=`pwd`
[5952]6cd "$srcdir"
[5008]7PROJECT=Transmission
8
[3328]9GETTEXTIZE="glib-gettextize"
10$GETTEXTIZE --version < /dev/null > /dev/null 2>&1
11if test $? -ne 0; then
12    GETTEXTIZE=""
13fi
14
[2770]15LIBTOOLIZE=libtoolize
[5952]16if libtoolize --help >/dev/null 2>&1
[2798]17then
[5952]18  :
19elif glibtoolize --help >/dev/null 2>&1
20then
[2770]21  LIBTOOLIZE=glibtoolize
22fi
[2798]23export LIBTOOLIZE
[2770]24
[8573]25./update-version-h.sh
[8572]26
[10791]27autoreconf -fi
[3328]28
29if test "$GETTEXTIZE"; then
30  echo "Creating aclocal.m4 ..."
31  test -r aclocal.m4 || touch aclocal.m4
32  echo "Running $GETTEXTIZE...  Ignore non-fatal messages."
33  echo "no" | $GETTEXTIZE --force --copy
34  echo "Making aclocal.m4 writable ..."
35  test -r aclocal.m4 && chmod u+w aclocal.m4
36  echo "Running intltoolize..."
37  intltoolize --copy --force --automake
38fi
39
[5952]40cd "$ORIGDIR" || exit $?
[5008]41
[5603]42if test -z "$AUTOGEN_SUBDIR_MODE"; then
43        echo Running $srcdir/configure --enable-maintainer-mode "$@"
44        $srcdir/configure --enable-maintainer-mode "$@"
45
46        echo 
47        echo "Now type 'make' to compile $PROJECT."
48fi
49
Note: See TracBrowser for help on using the repository browser.