3 if [ "$USER" = "root" ]; then
4 echo "*** You cannot do this as "$USER" please use a normal user account."
7 if test ! -f configure.ac ; then
8 echo "*** Please invoke this script from directory containing configure.ac."
12 echo "running aclocal"
16 if test $rc -eq 0; then
17 echo "running libtool"
18 libtoolize --force --automake --copy
21 echo "An error occured, autogen.sh stopping."
25 if test $rc -eq 0; then
26 echo "libtool worked."
28 echo "libtool not found. trying glibtool."
29 glibtoolize --force --automake --copy
33 if test $rc -eq 0; then
34 echo "running automake"
35 automake --add-missing --copy
38 echo "An error occured, autogen.sh stopping."
42 if test $rc -eq 0; then
43 echo "running autoheader"
47 echo "An error occured, autogen.sh stopping."
51 if test $rc -eq 0; then
52 echo "running autoconf"
56 echo "An error occured, autogen.sh stopping."
60 echo "autogen.sh complete"