gstreamer/autogen.sh

50 lines
930 B
Bash
Raw Normal View History

2010-03-19 17:13:59 +00:00
#!/bin/sh
PROJECT="gstreamer-vaapi"
2010-03-19 17:13:59 +00:00
test -n "$srcdir" || srcdir="`dirname \"$0\"`"
test -n "$srcdir" || srcdir=.
2010-03-19 17:13:59 +00:00
if ! test -f "$srcdir/configure.ac"; then
echo "Failed to find the top-level $PROJECT directory"
2010-03-19 17:13:59 +00:00
exit 1
fi
olddir="`pwd`"
cd "$srcdir"
2010-03-19 17:11:20 +00:00
mkdir -p m4
2012-10-11 08:03:14 +00:00
GIT=`which git`
if test -z "$GIT"; then
echo "*** No git found ***"
exit 1
else
if test ! -f ext/codecparsers/autogen.sh; then
$GIT submodule init
fi
$GIT submodule update
fi
2010-03-19 17:11:20 +00:00
GTKDOCIZE=`which gtkdocize`
if test -z "$GTKDOCIZE"; then
2010-03-19 17:11:20 +00:00
echo "*** No gtk-doc support ***"
echo "EXTRA_DIST =" > gtk-doc.make
else
gtkdocize || exit $?
fi
2010-03-19 17:13:59 +00:00
AUTORECONF=`which autoreconf`
if test -z "$AUTORECONF"; then
2010-03-19 17:13:59 +00:00
echo "*** No autoreconf found ***"
exit 1
else
autoreconf -v --install || exit $?
2010-03-19 17:13:59 +00:00
fi
cd "$olddir"
if test -z "$NO_CONFIGURE"; then
$srcdir/configure "$@" && echo "Now type 'make' to compile $PROJECT."
fi