X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=autogen.sh;h=af7d03c30cb5c190170f521186b6067f9996d5c1;hb=4b8e981b82b9698c4023014f2409c1cf724193d4;hp=afa23945648aab8037c7612ce498e0a93c8624b2;hpb=8e8e58c292f979d869f101dd45cdb51752efa447;p=android-x86%2Fhardware-intel-common-libva.git diff --git a/autogen.sh b/autogen.sh index afa2394..af7d03c 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,3 +1,4 @@ +#!/bin/sh # Copyright (c) 2007 Intel Corporation. All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a @@ -20,6 +21,31 @@ # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -#! /bin/sh -autoreconf -v --install -./configure "$@" +PROJECT="libva" + +test -n "$srcdir" || srcdir="`dirname \"$0\"`" +test -n "$srcdir" || srcdir=. + +if ! test -f "$srcdir/configure.ac"; then + echo "Failed to find the top-level $PROJECT directory" + exit 1 +fi + +olddir="`pwd`" +cd "$srcdir" + +mkdir -p m4 + +AUTORECONF=`which autoreconf` +if test -z $AUTORECONF; then + echo "*** No autoreconf found ***" + exit 1 +else + autoreconf -v --install || exit $? +fi + +cd "$olddir" + +if test -z "$NOCONFIGURE"; then + $srcdir/configure "$@" && echo "Now type 'make' to compile $PROJECT." +fi