2010-03-19 17:13:59 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2012-06-27 16:08:03 +00:00
|
|
|
PROJECT="gstreamer-vaapi"
|
2010-03-19 17:13:59 +00:00
|
|
|
|
2012-06-27 16:08:03 +00:00
|
|
|
test -n "$srcdir" || srcdir="`dirname \"$0\"`"
|
|
|
|
test -n "$srcdir" || srcdir=.
|
2010-03-19 17:13:59 +00:00
|
|
|
|
2012-06-27 16:08:03 +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
|
2012-06-27 16:08:03 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
olddir="`pwd`"
|
|
|
|
cd "$srcdir"
|
2010-03-19 17:11:20 +00:00
|
|
|
|
2012-06-27 15:27:31 +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`
|
2012-10-11 11:40:37 +00:00
|
|
|
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`
|
2012-10-11 11:40:37 +00:00
|
|
|
if test -z "$AUTORECONF"; then
|
2010-03-19 17:13:59 +00:00
|
|
|
echo "*** No autoreconf found ***"
|
|
|
|
exit 1
|
|
|
|
else
|
2012-06-27 15:27:31 +00:00
|
|
|
autoreconf -v --install || exit $?
|
2010-03-19 17:13:59 +00:00
|
|
|
fi
|
|
|
|
|
2012-06-27 16:08:03 +00:00
|
|
|
cd "$olddir"
|
|
|
|
|
2011-12-09 09:44:52 +00:00
|
|
|
if test -z "$NO_CONFIGURE"; then
|
2012-06-27 16:08:03 +00:00
|
|
|
$srcdir/configure "$@" && echo "Now type 'make' to compile $PROJECT."
|
2011-12-09 09:44:52 +00:00
|
|
|
fi
|