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.
__ distcc mailing list http://distcc.samba.org/
To unsubscribe or change options: http://lists.samba.org/cgi-bin/mailman/listinfo/distcc
