M7350/oe-core/meta/recipes-sato/webkit/files/autogen.sh
2024-09-09 08:52:07 +00:00

24 lines
574 B
Bash
Executable File

#! /bin/sh
# Allow invocation from a separate build directory; in that case, we change
# to the source directory to run the auto*, then change back before running configure
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
ORIGDIR=`pwd`
cd $srcdir
rm -f $top_srcdir/autom4te.cache
touch README INSTALL
if test -z `which autoreconf`; then
echo "Error: autoreconf not found, please install it."
exit 1
fi
autoreconf --verbose --install -I Source/autotools $ACLOCAL_FLAGS|| exit $?
cd $ORIGDIR || exit 1
$srcdir/configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?