From 9ccdfc227c55f5b6d45f136a517f2d2e988fac0f Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 11 Mar 2008 05:28:42 +0100 Subject: [PATCH] Document a pitfall. --- ChangeLog | 6 ++++++ m4/absolute-header.m4 | 7 +++++-- m4/include_next.m4 | 7 +++++-- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2483b344b..4266b9d5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2008-03-10 Bruno Haible + * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction. + * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise. + Reported by Peter O'Gorman . + +2008-03-10 Bruno Haible + * modules/stdlib (Depends-on): Add include_next, remove absolute-header. diff --git a/m4/absolute-header.m4 b/m4/absolute-header.m4 index 5b7a2fc35..e039f0c6e 100644 --- a/m4/absolute-header.m4 +++ b/m4/absolute-header.m4 @@ -1,5 +1,5 @@ -# absolute-header.m4 serial 7 -dnl Copyright (C) 2006, 2007 Free Software Foundation, Inc. +# 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,6 +16,9 @@ dnl From Derek Price. # 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], diff --git a/m4/include_next.m4 b/m4/include_next.m4 index 7ce472bc0..7c08e9319 100644 --- a/m4/include_next.m4 +++ b/m4/include_next.m4 @@ -1,5 +1,5 @@ -# include_next.m4 serial 4 -dnl Copyright (C) 2006, 2007 Free Software Foundation, Inc. +# 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,6 +63,9 @@ EOF # 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]) -- 2.11.0