Peter O'Gorman wrote:
> It looks like gl_CHECK_NEXT_HEADERS fails for headers that do not
> declare any functions. stdarg.h only defines macros :(

Yes. I think this is unavoidable.

So, we cannot use gl_CHECK_NEXT_HEADERS for stdarg.h.

Instead, how about generating the stdarg.h replacement only for
  defined _AIX && !defined __GNUC__
and letting it look like this:

#ifndef _GL_STDARG_H
#include "/usr/include/stdarg.h"
#ifndef va_copy
#define va_copy(a,b) ((a) = (b))
#endif
#endif

It should be safe to assume that for non-GNU compilers on AIX the <stdarg.h>
is in /usr/include.

Also please submit a patch for the documentation 
(doc/posix-functions/va_copy.texi),
describing the problem that your patch is solving.

Bruno



Reply via email to