Upgrade some of the configure and autogen
Based on Roumen Petrov suggestions
diff --git a/Makefile.am b/Makefile.am
index 807e21d..c7f140c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,7 @@
## Process this file with automake to produce Makefile.in
+ACLOCAL_AMFLAGS = -I m4
+
SUBDIRS = include . doc example xstc @PYTHON_SUBDIR@
DIST_SUBDIRS = include . doc example python xstc
diff --git a/autogen.sh b/autogen.sh
index db6ece2..9dc7c33 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -48,7 +48,7 @@
libtoolize --copy --force
aclocal $ACLOCAL_FLAGS
-automake --add-missing
+automake --force-missing --add-missing --copy --foreign
autoconf
cd $THEDIR
diff --git a/configure.in b/configure.in
index 237846f..3e4a601 100644
--- a/configure.in
+++ b/configure.in
@@ -1,6 +1,7 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT(entities.c)
AM_CONFIG_HEADER(config.h)
+AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_HOST
LIBXML_MAJOR_VERSION=2