source: trunk/autogen.sh @ 5603

Last change on this file since 5603 was 5603, checked in by charles, 13 years ago

#701: Run configure at the end of autogen.sh

  • Property svn:executable set to *
File size: 1023 bytes
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 && glibtoolize --help >/dev/null 2>&1
17then
18  LIBTOOLIZE=glibtoolize
19fi
20export LIBTOOLIZE
21
22autoreconf -fi -I m4
23
24if test "$GETTEXTIZE"; then
25  echo "Creating aclocal.m4 ..."
26  test -r aclocal.m4 || touch aclocal.m4
27  echo "Running $GETTEXTIZE...  Ignore non-fatal messages."
28  echo "no" | $GETTEXTIZE --force --copy
29  echo "Making aclocal.m4 writable ..."
30  test -r aclocal.m4 && chmod u+w aclocal.m4
31  echo "Running intltoolize..."
32  intltoolize --copy --force --automake
33fi
34
35cd $ORIGDIR || exit $?
36
37if test -z "$AUTOGEN_SUBDIR_MODE"; then
38        echo Running $srcdir/configure --enable-maintainer-mode "$@"
39        $srcdir/configure --enable-maintainer-mode "$@"
40
41        echo 
42        echo "Now type 'make' to compile $PROJECT."
43fi
44
Note: See TracBrowser for help on using the repository browser.