On Mon, Jul 09, 2007 at 10:54:12PM +0100, Joe Orton wrote:
> On Mon, Jul 09, 2007 at 06:25:27PM -0300, Davi Arnaut wrote:
> > +AC_DEFUN([APR_CHECK_TYPES_COMPATIBLE], [
> > +AC_MSG_CHECKING(whether $1 and $2 are the same)
> > +AC_TRY_COMPILE(AC_INCLUDES_DEFAULT, [
> > +    __builtin_types_compatible_p($1, $2);
> > +], [apr_types_compile=yes], [apr_types_compile=no])
> > +AC_RUN_IFELSE([AC_LANG_SOURCE([AC_INCLUDES_DEFAULT
> 
> This should really cache properly; compiling as well as running is 
> redundant too; something like this should do it:

Or just compile and use one of those neat tricks I can never remember to 
arrange for a compiler error in one of the cases...

int foo[0 - __builtin_thing()];

?

Reply via email to