Re: Howto: run the C preprocessor and capture its output

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

 



According to Zack Weinberg on 10/19/2007 8:45 AM:
>
> Really?  As far as I can tell, that just lets me make a binary
> decision based on the presence or absence of some pattern; the text
> matching the pattern still gets bitbucketed.

You can use AC_RUN_IFELSE to covert preprocessor macros into text.  Or, if
you are computing a number and worried about cross-compilations, you can
use up to 32 invocations of AC_EGREP_CPP to build a 32-bit number using
binary decisions.  In fact, that's what AC_COMPUTE_INT does.

So maybe AC_COMPUTE_INT is what you want.

-- 
Eric Blake




_______________________________________________
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