Re: Finding "config.h" in VPATH builds

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> If I run configure from within trunk, make works successfully, but if
> I do a VPATH build I get errors because config.h is not located.  If I
> change ' #include "config.h" '  to ' #include ../config.h" ', it works
> as either a VPATH build or an in-tree build.  I'm not sure this is the
> right way to address this, however.

I have had good VPATH luck using "AM_CPPFLAGS = -I$(top_srcdir)
-I$(top_builddir)" in my Makefile.am.

I am not sure if this is the kosher way to do it, however.

- Rhys


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux