From 62c4adfccd0e9155a6c1682511f3dc6a1d527c35 Mon Sep 17 00:00:00 2001 From: Albert Chin Date: Fri, 5 Sep 2008 00:50:51 +0200 Subject: [PATCH] Add check whether #include_next also works after #include directives. --- ChangeLog | 6 ++++++ m4/include_next.m4 | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8109f7b2a..e7a4333b5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-09-04 Albert Chin + Bruno Haible + + * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next + also works after #include directives. + 2008-09-04 Ondřej Vašík getdate.y: reject an out-of-range timezone value diff --git a/m4/include_next.m4 b/m4/include_next.m4 index 08c63dbc2..b6e4d3ae7 100644 --- a/m4/include_next.m4 +++ b/m4/include_next.m4 @@ -1,4 +1,4 @@ -# include_next.m4 serial 7 +# include_next.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, @@ -28,8 +28,12 @@ AC_DEFUN([gl_INCLUDE_NEXT], [gl_cv_have_include_next], [rm -rf conftestd1 conftestd2 mkdir conftestd1 conftestd2 + dnl The include of is because IBM C 9.0 on AIX 6.1 supports + dnl include_next when used as first preprocessor directive in a file, + dnl but not when preceded by another include directive. cat < conftestd1/conftest.h #define DEFINED_IN_CONFTESTD1 +#include #include_next #ifdef DEFINED_IN_CONFTESTD2 int foo; -- 2.11.0