Files
UltraGrid/autogen.sh
2015-02-20 10:33:32 +01:00

29 lines
347 B
Bash
Executable File

#! /bin/sh
set -e
[ -d m4 ] || mkdir m4
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
ORIGDIR=`pwd`
cd $srcdir
git submodule update --init ldgm
aclocal
autoheader
autoconf
CONFIGURE_OPTS=
if [ -n "$DEBUG" ]; then
CONFIGURE_OPTS="$CONFIGURE_OPTS --enable-debug"
fi
cd $ORIGDIR
$srcdir/configure $CONFIGURE_OPTS $@
cd $ORIGDIR