#!/bin/sh
# Run this to generate all the initial makefiles, etc.
if test `uname` = "Darwin"; then
LIBTOOL=glibtool;
LIBTOOLIZE=glibtoolize
else
LIBTOOL=libtool
LIBTOOLIZE=libtoolize
fi
srcdir=`dirname $0`
if test -z "$srcdir"; then srcdir=.; fi
DIE=0
(autoconf --version && autoheader --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have autoconf installed to compile Gwydion Dylan."
echo "Download the appropriate package for your distribution,"
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
DIE=1
}
(aclocal --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have automake installed to compile Gwydion Dylan."
echo "Download the appropriate package for your distribution,"
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
DIE=1
}
($LIBTOOL --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have $LIBTOOL installed to compile Gwydion Dylan."
if test $LIBTOOL = glibtool; then
echo "This should have come with Darwin/MacOS X"
else
echo "Get ftp://ftp.gnu.org/pub/gnu/libtool/libtool-1.3.2.tar.gz"
echo "(or a newer version if it is available)"
fi
DIE=1
}
if test "$DIE" -eq 1; then
exit 1
fi
(test -d $srcdir/d2c && test -d $srcdir/mindy) || {
echo "I can't find the Gwydion Dylan source directory in $srcdir"
exit 1
}
echo processing...
( cd $srcdir
aclocal $ACLOCAL_FLAGS
# we just run automake for copying in missing files. Ignore errors.
automake --add-missing
$LIBTOOLIZE --force --copy
autoheader
autoconf )
syntax highlighted by Code2HTML, v. 0.9.1