medit/autogen.sh

60 lines
1.2 KiB
Bash
Raw Normal View History

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