[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: preproc vs. compiler in CHECK_HEADER
From: |
Akim Demaille |
Subject: |
FYI: preproc vs. compiler in CHECK_HEADER |
Date: |
Thu, 20 Feb 2003 18:14:59 +0100 |
User-agent: |
Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 |
Index: ChangeLog
from +2003-02-20 Akim Demaille <address@hidden>
* 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.
Index: lib/autoconf/headers.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/headers.m4,v
retrieving revision 1.29
diff -u -u -r1.29 headers.m4
--- lib/autoconf/headers.m4 27 Oct 2002 18:23:14 -0000 1.29
+++ lib/autoconf/headers.m4 20 Feb 2003 17:14:09 -0000
@@ -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 @@
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 address@hidden)
- ) |
- 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 address@hidden)
+ AS_BOX([Report this to ]m4_ifset([AC_PACKAGE_BUGREPORT],
+ [AC_PACKAGE_BUGREPORT],
+ [the AC_PACKAGE_NAME lists]))
) |
sed "s/^/$as_me: WARNING: /" >&2
;;
- FYI: preproc vs. compiler in CHECK_HEADER,
Akim Demaille <=