Blame autogen.sh

Packit Service 9402ce
#!/bin/sh
Packit Service 9402ce
# Copyright (c) 2007 Intel Corporation. All Rights Reserved.
Packit Service 9402ce
#
Packit Service 9402ce
# Permission is hereby granted, free of charge, to any person obtaining a
Packit Service 9402ce
# copy of this software and associated documentation files (the
Packit Service 9402ce
# "Software"), to deal in the Software without restriction, including
Packit Service 9402ce
# without limitation the rights to use, copy, modify, merge, publish,
Packit Service 9402ce
# distribute, sub license, and/or sell copies of the Software, and to
Packit Service 9402ce
# permit persons to whom the Software is furnished to do so, subject to
Packit Service 9402ce
# the following conditions:
Packit Service 9402ce
# 
Packit Service 9402ce
# The above copyright notice and this permission notice (including the
Packit Service 9402ce
# next paragraph) shall be included in all copies or substantial portions
Packit Service 9402ce
# of the Software.
Packit Service 9402ce
# 
Packit Service 9402ce
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
Packit Service 9402ce
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
Packit Service 9402ce
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
Packit Service 9402ce
# IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
Packit Service 9402ce
# ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
Packit Service 9402ce
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
Packit Service 9402ce
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Packit Service 9402ce
Packit Service 9402ce
PROJECT="libva"
Packit Service 9402ce
Packit Service 9402ce
test -n "$srcdir" || srcdir="`dirname \"$0\"`"
Packit Service 9402ce
test -n "$srcdir" || srcdir=.
Packit Service 9402ce
Packit Service 9402ce
if ! test -f "$srcdir/configure.ac"; then
Packit Service 9402ce
    echo "Failed to find the top-level $PROJECT directory"
Packit Service 9402ce
    exit 1
Packit Service 9402ce
fi
Packit Service 9402ce
Packit Service 9402ce
olddir="`pwd`"
Packit Service 9402ce
cd "$srcdir"
Packit Service 9402ce
Packit Service 9402ce
mkdir -p m4
Packit Service 9402ce
Packit Service 9402ce
AUTORECONF=`which autoreconf`
Packit Service 9402ce
if test -z $AUTORECONF; then
Packit Service 9402ce
    echo "*** No autoreconf found ***"
Packit Service 9402ce
    exit 1
Packit Service 9402ce
else
Packit Service 9402ce
    autoreconf -v --install || exit $?
Packit Service 9402ce
fi
Packit Service 9402ce
Packit Service 9402ce
cd "$olddir"
Packit Service 9402ce
Packit Service 9402ce
if test -z "$NOCONFIGURE"; then
Packit Service 9402ce
    $srcdir/configure "$@" && echo "Now type 'make' to compile $PROJECT."
Packit Service 9402ce
fi