]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): When
authorAkim Demaille <akim@epita.fr>
Thu, 20 Feb 2003 17:15:47 +0000 (17:15 +0000)
committerAkim Demaille <akim@epita.fr>
Thu, 20 Feb 2003 17:15:47 +0000 (17:15 +0000)
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
lib/autoconf/headers.m4

index 71b3f8e2caf71d8a786afa266bd3473a1acb7e2b..dc15a6df474c23d97e17a12de208baba6bc780d4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-02-20  Akim Demaille  <akim@epita.fr>
+
+       * 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  <kdienes@apple.com>
 
        * bin/autoreconf.in (autoreconf_current_directory): Properly
index d8e0e1a83270408c85b0d7b76d6c71d7fb95f2ce..9d422cb9c60deddee7b5552e59fb4a37d81f89c8 100644 (file)
@@ -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
     ;;