diff --git a/autogen.sh b/autogen.sh
index 0c99021..bc7c59c 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -20,7 +20,7 @@ if test -z $AUTORECONF; then
 	echo "*** No autoreconf found, please install it ***"
 	exit 1
 else
-	autoreconf --force --install || exit $?
+	ACLOCAL="aclocal $ACLOCAL_FLAGS" autoreconf --force --install || exit $?
 fi
 
 
