[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AIX 5.1 xlc va_copy (stdarg patch)
From: |
Bruno Haible |
Subject: |
Re: AIX 5.1 xlc va_copy (stdarg patch) |
Date: |
Tue, 11 Mar 2008 05:30:02 +0100 |
User-agent: |
KMail/1.5.4 |
Peter O'Gorman wrote:
> Looks like this breaks on AIX 4.3.3 :(
>
> gl_CHECK_NEXT_HEADERS fails to find the absolute file name for
> stddef.h, it finds the empty string and substitutes
>
> #include ""
>
> into the generated stdarg.h
>
> It looks like gl_CHECK_NEXT_HEADERS fails for headers that do not
> declare any functions. stdarg.h only defines macros :(
I'm documenting this limitation:
2008-03-10 Bruno Haible <address@hidden>
* m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
* m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
Reported by Peter O'Gorman <address@hidden>.
*** m4/absolute-header.m4.orig 2008-03-11 05:26:35.000000000 +0100
--- m4/absolute-header.m4 2008-03-11 04:26:43.000000000 +0100
***************
*** 1,5 ****
! # absolute-header.m4 serial 7
! dnl Copyright (C) 2006, 2007 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
--- 1,5 ----
! # absolute-header.m4 serial 8
! dnl Copyright (C) 2006-2008 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
***************
*** 16,21 ****
--- 16,24 ----
# The three "///" are to pacify Sun C 5.8, which otherwise would say
# "warning: #include of /usr/include/... may be non-portable".
# Use `""', not `<>', so that the /// cannot be confused with a C99 comment.
+ # Note: This macro assumes that the header file is not empty after
+ # preprocessing, i.e. it does not only define preprocessor macros but also
+ # provides some type/enum definitions or function/variable declarations.
AC_DEFUN([gl_ABSOLUTE_HEADER],
[AC_LANG_PREPROC_REQUIRE()dnl
AC_FOREACH([gl_HEADER_NAME], [$1],
*** m4/include_next.m4.orig 2008-03-11 05:26:36.000000000 +0100
--- m4/include_next.m4 2008-03-11 04:37:46.000000000 +0100
***************
*** 1,5 ****
! # include_next.m4 serial 4
! dnl Copyright (C) 2006, 2007 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
--- 1,5 ----
! # include_next.m4 serial 5
! dnl Copyright (C) 2006-2008 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
***************
*** 63,68 ****
--- 63,71 ----
# The three "///" are to pacify Sun C 5.8, which otherwise would say
# "warning: #include of /usr/include/... may be non-portable".
# Use `""', not `<>', so that the /// cannot be confused with a C99 comment.
+ # Note: This macro assumes that the header file is not empty after
+ # preprocessing, i.e. it does not only define preprocessor macros but also
+ # provides some type/enum definitions or function/variable declarations.
AC_DEFUN([gl_CHECK_NEXT_HEADERS],
[
AC_REQUIRE([gl_INCLUDE_NEXT])
- Re: AIX 5.1 xlc va_copy (stdarg patch),
Bruno Haible <=