transmission/autogen.sh

51 lines
1015 B
Bash
Raw Normal View History

#!/bin/sh
2008-02-12 17:14:30 +00:00
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
ORIGDIR=`pwd`
2008-05-27 21:49:09 +00:00
cd "$srcdir"
2008-02-12 17:14:30 +00:00
PROJECT=Transmission
GETTEXTIZE="glib-gettextize"
$GETTEXTIZE --version < /dev/null > /dev/null 2>&1
if test $? -ne 0; then
GETTEXTIZE=""
fi
LIBTOOLIZE=libtoolize
2008-05-27 21:49:09 +00:00
if libtoolize --help >/dev/null 2>&1
then
:
elif glibtoolize --help >/dev/null 2>&1
then
LIBTOOLIZE=glibtoolize
fi
export LIBTOOLIZE
2009-05-31 20:25:37 +00:00
./update-version-h.sh
autoreconf -fi || exit 1;
if test "$GETTEXTIZE"; then
echo "Creating aclocal.m4 ..."
test -r aclocal.m4 || touch aclocal.m4
echo "Running $GETTEXTIZE... Ignore non-fatal messages."
echo "no" | $GETTEXTIZE --force --copy
echo "Making aclocal.m4 writable ..."
test -r aclocal.m4 && chmod u+w aclocal.m4
echo "Running intltoolize..."
intltoolize --copy --force --automake
fi
2008-05-27 21:49:09 +00:00
cd "$ORIGDIR" || exit $?
2008-02-12 17:14:30 +00:00
if test -z "$AUTOGEN_SUBDIR_MODE"; then
echo Running $srcdir/configure "$@"
$srcdir/configure "$@"
echo
echo "Now type 'make' to compile $PROJECT."
fi