1#!/bin/sh
2
3[ -f autogen.sh ] || {
4  echo "autogen.sh: run this command only at the top of the source tree."
5  exit 1
6}
7
8if test -z "$AUTOMAKE" ; then
9 for each in automake ; do
10   AUTOMAKE=$each
11   if test -n "`which $each 2>/dev/null`" ; then break ; fi
12 done
13fi
14
15if [ `uname -s` = Darwin ] ; then
16# libtoolize is glibtoolize on OSX
17  LIBTOOLIZE=glibtoolize
18else
19  LIBTOOLIZE=libtoolize
20fi
21
22./aclocal.sh &&
23echo $LIBTOOLIZE --force --copy --automake --ltdl &&
24$LIBTOOLIZE --force --copy --automake --ltdl &&
25echo autoheader &&
26autoheader &&
27echo autoconf &&
28autoconf &&
29echo $AUTOMAKE --foreign --copy --add-missing &&
30$AUTOMAKE --foreign --copy --add-missing &&
31echo Now run configure and make.
32