>a/configure.ac b/configure.ac index 1cce0b25f583..129c2f9d4d4d 100644 >--- a/configure.ac >+++ b/configure.ac >@@ -7,13 +7,13 @@ AM_CONFIG_HEADER(config.h) AC_PROG_CC # >AC_PROG_CXX AC_PROG_INSTALL >- >-# Adding libtools to the build seems to bring in C++ environment - >AC_PROG_LIBTOOL > > # AM_PROG_AR is supported and needed since automake v1.12+ >ifdef([AM_PROG_AR], [AM_PROG_AR], []) > >+# Adding libtools to the build seems to bring in C++ environment >+AC_PROG_LIBTOOL >+ > # check for headers > AC_HEADER_STDC > After moving "AC_PROG_LIBTOOL" to back " ifdef([AM_PROG_AR], [AM_PROG_AR], [])", "Warning: LT_INIT was called before AM_PROG_AR" disappears. Tested-by: Bean Huo <beanhuo@xxxxxxxxxx> >-- >2.15.1