libtool doesn't provide library dependencies to link
问题 I am using libtool 2.2.6b on ubuntu lucid, and libtool 2.4.2 on ubuntu precise. On lucid my project will link properly. On precise it fails to link. Here's example code that demonstrates my problem; configure.ac AC_INIT([ltp], [0.0.1], [someone]) AM_INIT_AUTOMAKE AC_CONFIG_HEADERS([config.h]) AC_CONFIG_MACRO_DIR([.m4]) AC_CONFIG_FILES([Makefile foo/Makefile bar/Makefile wah/Makefile]) AC_PROG_CXX AC_PROG_LIBTOOL AM_SANITY_CHECK AC_LANG_CPLUSPLUS AC_OUTPUT Makefile.am SUBDIRS = foo bar wah