4 test -z "$srcdir" && srcdir=.
6 PROJECT=gstreamer-vaapi
10 test $TEST_TYPE $FILE || {
11 echo "You must run this script in the top-level $PROJECT directory"
17 GTKDOCIZE=`which gtkdocize`
18 if test -z $GTKDOCIZE; then
19 echo "*** No gtk-doc support ***"
20 echo "EXTRA_DIST =" > gtk-doc.make
23 # we need to patch gtk-doc.make to support pretty output with
24 # libtool 1.x. Should be fixed in the next version of gtk-doc.
25 # To be more resilient with the various versions of gtk-doc one
26 # can find, just sed gkt-doc.make rather than patch it.
27 sed -e 's#) --mode=compile#) --tag=CC --mode=compile#' gtk-doc.make > gtk-doc.temp \
28 && mv gtk-doc.temp gtk-doc.make
29 sed -e 's#) --mode=link#) --tag=CC --mode=link#' gtk-doc.make > gtk-doc.temp \
30 && mv gtk-doc.temp gtk-doc.make
33 AUTORECONF=`which autoreconf`
34 if test -z $AUTORECONF; then
35 echo "*** No autoreconf found ***"
38 autoreconf -v --install || exit $?
41 if test -z "$NO_CONFIGURE"; then
42 ./configure "$@" && echo "Now type 'make' to compile $PROJECT."