MiniDLNA update: 1.0.19.1 to 1.0.20
[tomato.git] / release / src / router / transmission / autogen.sh
blob385f156257835e5fe2a5b78117bac0083b40408b
1 #!/bin/sh
2 srcdir=`dirname $0`
3 test -z "$srcdir" && srcdir=.
5 ORIGDIR=`pwd`
6 cd "$srcdir"
7 PROJECT=Transmission
9 GETTEXTIZE="glib-gettextize"
10 $GETTEXTIZE --version < /dev/null > /dev/null 2>&1
11 if test $? -ne 0; then
12 GETTEXTIZE=""
15 LIBTOOLIZE=libtoolize
16 if libtoolize --help >/dev/null 2>&1
17 then
19 elif glibtoolize --help >/dev/null 2>&1
20 then
21 LIBTOOLIZE=glibtoolize
23 export LIBTOOLIZE
25 ./update-version-h.sh
27 autoreconf -fi || exit 1;
30 if test "$GETTEXTIZE"; then
31 echo "Creating aclocal.m4 ..."
32 test -r aclocal.m4 || touch aclocal.m4
33 echo "Running $GETTEXTIZE... Ignore non-fatal messages."
34 echo "no" | $GETTEXTIZE --force --copy
35 echo "Making aclocal.m4 writable ..."
36 test -r aclocal.m4 && chmod u+w aclocal.m4
37 echo "Running intltoolize..."
38 intltoolize --copy --force --automake
41 cd "$ORIGDIR" || exit $?
43 if test -z "$AUTOGEN_SUBDIR_MODE"; then
44 echo Running $srcdir/configure "$@"
45 $srcdir/configure "$@"
47 echo
48 echo "Now type 'make' to compile $PROJECT."