#! /bin/sh

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

PKG_NAME="sigc++"

(test -f "$srcdir/configure.in" \
  && test -d "$srcdir/sigc++" \
  && test -d "$srcdir/sigc++/macros") || {
    echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
    echo " top-level $PKG_NAME directory"
    exit 1
}


echo "Adding libtools."
libtoolize --automake --copy

echo "Building macros."
aclocal -I scripts $ACLOCAL_FLAGS

#echo "Building config header."
#autoheader

echo "Building makefiles."
automake --add-missing --copy

echo "Building configure."
autoconf

rm -f config.cache

if test -z "$AUTOGEN_SUBDIR_MODE"; then

    echo "Running configure."
    ./configure --enable-maintainer-mode "$@"
    echo
    echo 'run "make"'
    echo
else
    echo
    echo 'run "./configure ; make"'
    echo
fi



syntax highlighted by Code2HTML, v. 0.9.1