[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Finding "config.h" in VPATH builds
From: |
Rhys Ulerich |
Subject: |
Re: Finding "config.h" in VPATH builds |
Date: |
Sat, 19 Sep 2009 22:20:23 -0500 |
> 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