medit/autogen.sh

56 lines
1.1 KiB
Bash
Raw Normal View History

2005-06-22 11:20:32 -07:00
#! /bin/sh
builddir=`pwd`
2005-06-22 11:20:32 -07:00
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
2005-11-03 14:56:53 -08:00
if test -d $srcdir/m4 ; then
m4dir=`cd $srcdir/m4 && pwd`
aclocal_extra="-I $m4dir"
fi
cd $srcdir
echo "Generating configuration files..."
2005-11-03 14:56:53 -08:00
ACLOCAL=${ACLOCAL:-aclocal-1.9}
2006-05-05 11:31:37 -07:00
ACLOCAL_FLAGS="$ACLOCAL_FLAGS $aclocal_extra"
2005-11-03 14:56:53 -08:00
AUTOMAKE=${AUTOMAKE:-automake-1.9}
2005-11-03 14:56:53 -08:00
LIBTOOLIZE=${LIBTOOLIZE:-libtoolize}
2005-11-03 14:56:53 -08:00
AUTOHEADER=${AUTOHEADER:-autoheader}
AUTOCONF=${AUTOCONF:-autoconf}
2005-11-03 14:56:53 -08:00
echo $LIBTOOLIZE --automake --copy
$LIBTOOLIZE --automake --copy || exit $?
2006-08-02 22:39:06 -07:00
echo glib-gettextize --force
glib-gettextize --force
echo intltoolize --force --automake
intltoolize --force --automake
2006-05-05 11:31:37 -07:00
echo $ACLOCAL $ACLOCAL_FLAGS
$ACLOCAL $ACLOCAL_FLAGS || exit $?
2005-11-03 14:56:53 -08:00
echo $AUTOHEADER
$AUTOHEADER || exit $?
2006-04-20 15:59:37 -07:00
echo $AUTOMAKE --add-missing --copy --foreign
$AUTOMAKE --add-missing --copy --foreign || exit $?
2005-11-03 14:56:53 -08:00
echo $AUTOCONF
$AUTOCONF || exit $?
2005-10-30 13:16:22 -08:00
if test -z $1; then
echo
echo "run '$srcdir/configure ; make ; make install'"
echo
else
if test $1 = "do" -o $1 = "--do"; then
shift
fi
cd $builddir
$srcdir/configure $*
fi