#!/bin/sh
#
# This bootstrap file has been inspired by Bootstraping chapter
# in Autobook by Vaughan, Elliston, Tromey and Taylor.
# http://sources.redhat.com/autobook/

set -x

if [ ! -d configure.aux ]; then
  mkdir configure.aux
fi

# required by autoconf
hg log --style changelog > ChangeLog

# generate Mercurial's id
echo '#define CHANGESET "Mercurial changeset ' `hg id` '"' > xmunipack/hgid.h

aclocal \
&& automake --gnu --add-missing --copy \
&& autoconf

#./configure FCFLAGS="-Wall -g -p" CFLAGS="-Wall -g -p"  CXXFLAGS="-D__WXDEBUG__ -g -p -Wall"
