The following configure.ac input creates a circular dependency error: $ cat configure.ac AC_INIT AC_PROG_LIBTOOL AC_LANG_CPLUSPLUS AC_PROG_CC AC_HEADER_STDC AC_OUTPUT $ autoreconf -fi configure.ac:5: error: m4_require: circular dependency of AC_LANG_COMPILER(C++) ../../lib/autoconf/lang.m4:271: AC_LANG_COMPILER_REQUIRE is expanded from... ../../lib/autoconf/general.m4:2517: AC_LINK_IFELSE is expanded from... /usr/share/aclocal/libtool.m4:1018: _LT_SYS_MODULE_PATH_AIX is expanded from... /usr/share/aclocal/libtool.m4:5305: _LT_LANG_CXX_CONFIG is expanded from... /usr/share/aclocal/libtool.m4:785: _LT_LANG is expanded from... /usr/share/aclocal/libtool.m4:768: LT_LANG is expanded from... ../../lib/autoconf/c.m4:769: AC_LANG_COMPILER(C++) is expanded from... ../../lib/autoconf/lang.m4:271: AC_LANG_COMPILER_REQUIRE is expanded from... ../../lib/autoconf/general.m4:2461: AC_COMPILE_IFELSE is expanded from... ../../lib/m4sugar/m4sh.m4:508: AS_IF is expanded from... ../../lib/autoconf/general.m4:1973: AC_CACHE_VAL is expanded from... ../../lib/autoconf/general.m4:1993: AC_CACHE_CHECK is expanded from... ../../lib/autoconf/headers.m4:622: AC_HEADER_STDC is expanded from... configure.ac:5: the top level autom4te: /usr/bin/m4 failed with exit status: 1 aclocal: autom4te failed with exit status: 1 autoreconf: aclocal failed with exit status: 1
When AC_PROG_LIBTOOL is commented out no error occurs and the generated configure script works as expected. Workaround is to explicitly add the missing AC_PROG_CXX. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool