diff --git a/autogen.sh b/autogen.sh
index 705df95439..4ba99beae4 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -67,8 +67,8 @@ fi
 
 toplevel_check $srcfile
 
-tool_run "$aclocal" "-I common/m4 $ACLOCAL_FLAGS"
 tool_run "$libtoolize" "--copy --force"
+tool_run "$aclocal" "-I common/m4 $ACLOCAL_FLAGS"
 tool_run "$autoheader"
 
 # touch the stamp-h.in build stamp so we don't re-run autoheader in maintainer mode -- wingo