Imported from libpng-1.2.9beta4.tar
diff --git a/autogen.sh b/autogen.sh
index e7f1dfe..98b966a 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,5 +1,24 @@
 #! /bin/sh
 # a quick hack script to generate necessary files from 
 # auto* tools.
-
-libtoolize -c -f && aclocal && autoheader && automake --foreign -a -c && autoconf
+#
+# WARNING: if you run this you will change the versions
+# of the tools which are used and, maybe, required!
+{
+	echo "running libtoolize" >&2
+	libtoolize --copy --automake
+} && {
+	echo "running aclocal" >&2
+	aclocal
+} && {
+	echo "running autoheader [ignore the warnings]" >&2
+	autoheader
+} && {
+	echo "running automake" >&2
+	automake --foreign -a -c
+} && {
+	echo "running autoconf" >&2
+	autoconf
+} &&
+	echo "autogen complete" >&2 ||
+	echo "ERROR: autogen.sh failed, autogen is incomplete" >&2