autogen.sh 1.16 KB
Newer Older
aymeric's avatar
aymeric committed
1 2
#!/bin/sh

3
#AM_VERSION="1.10"
aymeric's avatar
aymeric committed
4
if ! type aclocal-$AM_VERSION 1>/dev/null 2>&1; then
5
	# automake-1.10 (recommended) is not available on Fedora 8
aymeric's avatar
aymeric committed
6 7 8 9 10 11 12
	AUTOMAKE=automake
	ACLOCAL=aclocal
else
	ACLOCAL=aclocal-${AM_VERSION}
	AUTOMAKE=automake-${AM_VERSION}
fi

13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
libtoolize="libtoolize"
for lt in glibtoolize libtoolize15 libtoolize14 libtoolize13 ; do
        if test -x /usr/bin/$lt ; then
                libtoolize=$lt ; break
        fi
        if test -x /usr/local/bin/$lt ; then
                libtoolize=$lt ; break
        fi
        if test -x /opt/local/bin/$lt ; then
                libtoolize=$lt ; break
        fi
done
AUTOMAKE_FLAGS=""
case $libtoolize in
*glibtoolize)
	AUTOMAKE_FLAGS="-i"
	;;
esac

32 33 34
if test -d /opt/local/share/aclocal ; then
	ACLOCAL_ARGS="-I /opt/local/share/aclocal"
fi
35
if test -d /usr/local/share/aclocal ; then
36 37 38 39 40
	ACLOCAL_ARGS="$ACLOCAL_ARGS -I /usr/local/share/aclocal"
fi

if test -d /share/aclocal ; then
        ACLOCAL_ARGS="$ACLOCAL_ARGS -I /share/aclocal"
41
fi
42

aymeric's avatar
aymeric committed
43 44
echo "Generating build scripts in mediastreamer..."
set -x
45
$libtoolize --copy --force
46
$ACLOCAL  $ACLOCAL_ARGS
47
autoheader
48
$AUTOMAKE --force-missing --add-missing --copy ${AUTOMAKE_FLAGS}
aymeric's avatar
aymeric committed
49
autoconf
50