From 13984e2d07e2b9fba4af05b6778e990e5b0935a7 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Thu, 20 Feb 2003 17:15:47 +0000 Subject: [PATCH] * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When compiler says yeah, but preproc says nope, compiler is right. Conversely, prompt the reader to send a bug report to the maintainers of the package, not of Autoconf. --- ChangeLog | 7 +++++++ lib/autoconf/headers.m4 | 14 +++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 71b3f8e2c..dc15a6df4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-02-20 Akim Demaille + + * lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When + compiler says yeah, but preproc says nope, compiler is right. + Conversely, prompt the reader to send a bug report to the + maintainers of the package, not of Autoconf. + 2003-02-20 Klee Dienes * bin/autoreconf.in (autoreconf_current_directory): Properly diff --git a/lib/autoconf/headers.m4 b/lib/autoconf/headers.m4 index d8e0e1a83..9d422cb9c 100644 --- a/lib/autoconf/headers.m4 +++ b/lib/autoconf/headers.m4 @@ -1,7 +1,7 @@ # This file is part of Autoconf. -*- Autoconf -*- # Checking for headers. # -# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -124,18 +124,18 @@ AC_MSG_RESULT([$ac_header_preproc]) case $ac_header_compiler:$ac_header_preproc in yes:no ) AC_MSG_WARN([$1: accepted by the compiler, rejected by the preprocessor!]) - AC_MSG_WARN([$1: proceeding with the preprocessor's result]) - ( - AS_BOX([Report this to bug-autoconf@gnu.org.]) - ) | - sed "s/^/$as_me: WARNING: /" >&2 + AC_MSG_WARN([$1: proceeding with the compiler's result]) + ac_header_preproc=yes ;; no:yes ) AC_MSG_WARN([$1: present but cannot be compiled]) AC_MSG_WARN([$1: check for missing prerequisite headers?]) AC_MSG_WARN([$1: proceeding with the preprocessor's result]) + AC_MSG_WARN([$1: in the future, the compiler will take precedence]) ( - AS_BOX([Report this to bug-autoconf@gnu.org.]) + AS_BOX([Report this to ]m4_ifset([AC_PACKAGE_BUGREPORT], + [AC_PACKAGE_BUGREPORT], + [the AC_PACKAGE_NAME lists. ])) ) | sed "s/^/$as_me: WARNING: /" >&2 ;; -- 2.47.3