~ubuntu-branches/ubuntu/saucy/libdvdread/saucy

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
#
# run this to generate all the initial makefiles, etc.

srcdir=`dirname "$0"`
test -z "$srcdir" && srcdir=.

ORIGDIR=`pwd`
cd "$srcdir"

AUTORECONF=${AUTORECONF-autoreconf}

if ! type $AUTORECONF >/dev/null 2>&1; then
  echo "**Error**: Missing \`autoreconf' program." >&2
  echo "You will need the autoconf and automake packages." >&2
  echo "You can download them from ftp://ftp.gnu.org/pub/gnu/." >&2
  exit 1
fi

$AUTORECONF -v --install || exit $?
cd "$ORIGDIR" || exit $?

test "$1" = noconfig && NOCONFIGURE=1

if test -z "$NOCONFIGURE"; then
  "$srcdir"/configure "$@"
fi