#!/bin/sh
#
# $Id$
#

if [ -d /usr/local/gnu-autotools/bin ] ; then
	PATH=/usr/local/gnu-autotools/bin:${PATH}
	export PATH
fi

automake_version=$(automake --version | tr ' ' '\n' | egrep '^[0-9]\.[0-9a-z.-]+')
if [ -z "$automake_version" ] ; then
    echo "unable to determine automake version"
    exit 1
else
    case $automake_version in
	1.9*|[23456789].*)
	    ;;
	*)
	    echo "your version of automake ($automake_version) is too old;" \
		"you need 1.9 or newer."
	    exit 1
	    ;;
    esac
fi

set -ex

aclocal
libtoolize --copy --force
autoheader
automake --add-missing --copy --foreign
autoconf

#!/bin/sh
#
# $Id$
#

if [ -d /usr/local/gnu-autotools/bin ] ; then
	PATH=/usr/local/gnu-autotools/bin:${PATH}
	export PATH
fi

automake_version=$(automake --version | tr ' ' '\n' | egrep '^[0-9]\.[0-9a-z.-]+')
if [ -z "$automake_version" ] ; then
    echo "unable to determine automake version"
    exit 1
else
    case $automake_version in
	1.9*|[23456789].*)
	    ;;
	*)
	    echo "your version of automake ($automake_version) is too old;" \
		"you need 1.9 or newer."
	    exit 1
	    ;;
    esac
fi

set -ex

if [ "x`uname -s`" = "xFreeBSD" ] ; then
	# Ask DES
	aclocal -I /usr/local/share/aclocal
else
	aclocal 
fi
libtoolize --copy --force
autoheader
automake --add-missing --copy --foreign
autoconf

Add a FreeBSD workaround while des@ tries to get autocrap to DTRT under FreeBSD also.
Add a FreeBSD workaround while des@ tries to get autocrap to DTRT under
FreeBSD also.


git-svn-id: 2c9807fa3ff65b17195bd55dc8a6c4261e10127b@1227 d4fa192b-c00b-0410-8231-f00ffab90ce4
