RE: finding the value of a preprocessor symbol

2010-01-24 Thread David Byron
On Sunday, January 24, 2010, Ralf Wildenhues wrote: > * David Byron wrote on Fri, Jan 22, 2010 at 12:38:03AM CET: > > Let's say I have a header file named foo.h that contains: > > > > #define FOO an_interesting_value > > > > (I think) I'm looking for a macro like this: > > > > AC_GET_VALUE([fo

Re: finding the value of a preprocessor symbol

2010-01-24 Thread Ralf Wildenhues
Hello David, * David Byron wrote on Fri, Jan 22, 2010 at 12:38:03AM CET: > Let's say I have a header file named foo.h that contains: > > #define FOO an_interesting_value > > (I think) I'm looking for a macro like this: > > AC_GET_VALUE([foo.h],[FOO]) > > that populates ac_cv_value_of_FOO with

RE: finding the value of a preprocessor symbol

2010-01-21 Thread Thomas Dickey
On Thu, 21 Jan 2010, David Byron wrote: On Thursday, January 21, 2010, John Calcote wrote: On 1/21/2010 4:38 PM, David Byron wrote: $ cpp -dM foo.h | grep FOO #define FOO an_interesting_value Good idea. Replace cpp -dM with $CPP $CPPFLAGS and I'm getting close. Also starting to convince mys

RE: finding the value of a preprocessor symbol

2010-01-21 Thread David Byron
On Thursday, January 21, 2010, John Calcote wrote: > On 1/21/2010 4:38 PM, David Byron wrote: > > Let's say I have a header file named foo.h that contains: > > > > #define FOO an_interesting_value > > > > (I think) I'm looking for a macro like this: > > > > AC_GET_VALUE([foo.h],[FOO]) > > > > that

Re: finding the value of a preprocessor symbol

2010-01-21 Thread John Calcote
Hi David, On 1/21/2010 4:38 PM, David Byron wrote: Let's say I have a header file named foo.h that contains: #define FOO an_interesting_value (I think) I'm looking for a macro like this: AC_GET_VALUE([foo.h],[FOO]) that populates ac_cv_value_of_FOO with an_interesting_value This is tot