[distcc] Re: Distcc 2.7 fails to compile on OSX
Matt Watson
mwatson at apple.com
Mon Jul 7 07:16:51 GMT 2003
> Perhaps just a little check for whether variadic macros actually work
> would be enough. If they don't, then fall back to the non-gcc
> implementation.
2.7.1's configure tries to check for this, but cpp-precomp passes the
test, unfortunately :-(
Here's a more complete test which fails when run against the Apple
cpp-precomp (but succeeds with -no-cpp-precomp):
dnl
dnl Test if the preprocessor understand vararg macros
dnl
AC_MSG_CHECKING([for vararg macro support])
AC_TRY_COMPILE([#define func(a, b...) do { } while (0)],
[func("a"); func("a", "b"); func("a", "b", "c")],
[AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_VARARG_MACROS, , [Define if your cpp has vararg
macros])],
[AC_MSG_RESULT(no)])
matt.
More information about the distcc
mailing list