source: trunk/autogen.sh @ 10792

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

(trunk) 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
Line 
1#!/bin/sh
2srcdir=`dirname $0`
3test -z "$srcdir" && srcdir=.
4
5ORIGDIR=`pwd`
6cd "$srcdir"
7PROJECT=Transmission
8
9GETTEXTIZE="glib-gettextize"
10$GETTEXTIZE --version < /dev/null > /dev/null 2>&1
11if test $? -ne 0; then
12    GETTEXTIZE=""
13fi
14
15LIBTOOLIZE=libtoolize
16if libtoolize --help >/dev/null 2>&1
17then
18  :
19elif glibtoolize --help >/dev/null 2>&1
20then
21  LIBTOOLIZE=glibtoolize
22fi
23export LIBTOOLIZE
24
25./update-version-h.sh
26
27autoreconf -fi
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
40cd "$ORIGDIR" || exit $?
41
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.