Automake: How to use a header from one library in a another library in a sister directory
问题 My directory set up: libone one.c one.h Makefile.am libtwo two.c #includes one.h two.h Makefile.am ... Makefile.am configure.ac ... Now when I do autoreconf -fvi and configure and make, I get the error from two.c: could not find one.h. How do I setup the include paths in Makefile.am's? Any help appreciated. 回答1: Either do it the quick'n'dirty way #include "../libone/one.h" or (preferred, because then it doesn't matter whether one.h is installed or in the source tree or split out into a