From patchwork Tue Jul 27 17:44:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Carlini X-Patchwork-Id: 60016 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 7050DB70A9 for ; Wed, 28 Jul 2010 03:44:21 +1000 (EST) Received: (qmail 12401 invoked by alias); 27 Jul 2010 17:44:19 -0000 Received: (qmail 12386 invoked by uid 22791); 27 Jul 2010 17:44:18 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from vsmtp12.tin.it (HELO vsmtp12.tin.it) (212.216.176.206) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 27 Jul 2010 17:44:10 +0000 Received: from [192.168.0.4] (79.52.233.221) by vsmtp12.tin.it (8.5.113) id 4BC85B97099146E5; Tue, 27 Jul 2010 19:44:04 +0200 Message-ID: <4C4F1AE4.9000405@oracle.com> Date: Tue, 27 Jul 2010 19:44:04 +0200 From: Paolo Carlini User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100520 SUSE/3.0.5 Thunderbird/3.0.5 MIME-Version: 1.0 To: Paolo Bonzini CC: "gcc-patches@gcc.gnu.org" , libstdc++ Subject: Re: [v3] Use AC_COMPUTE_INT for EOF, SEEK_CUR, etc. References: <4C4EB72D.4040907@oracle.com> <4C4F2B4E.9030701@gnu.org> <4C4F0F9C.6080408@oracle.com> In-Reply-To: <4C4F0F9C.6080408@oracle.com> X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org ... as applied. Paolo. ///////////////// 2010-07-27 Paolo Carlini * acinclude.m4 ([GLIBCXX_COMPUTE_STDIO_INTEGER_CONSTANTS]): Fix messages. * configure: Regenerate. Index: acinclude.m4 =================================================================== --- acinclude.m4 (revision 162577) +++ acinclude.m4 (working copy) @@ -1623,32 +1623,27 @@ dnl AC_DEFUN([GLIBCXX_COMPUTE_STDIO_INTEGER_CONSTANTS], [ - AC_MSG_CHECKING([For some integer constants.]) - - AC_CACHE_VAL(glibcxx_cv_stdio_eof, [ + AC_CACHE_CHECK([for the value of EOF], glibcxx_cv_stdio_eof, [ AC_COMPUTE_INT([glibcxx_cv_stdio_eof], [[EOF]], [#include ], [AC_MSG_ERROR([computing EOF failed])]) ]) - AC_MSG_RESULT($glibcxx_cv_stdio_eof) AC_DEFINE_UNQUOTED(_GLIBCXX_STDIO_EOF, $glibcxx_cv_stdio_eof, [Define to the value of the EOF integer constant.]) - AC_CACHE_VAL(glibcxx_cv_stdio_seek_cur, [ + AC_CACHE_CHECK([for the value of SEEK_CUR], glibcxx_cv_stdio_seek_cur, [ AC_COMPUTE_INT([glibcxx_cv_stdio_seek_cur], [[SEEK_CUR]], [#include ], [AC_MSG_ERROR([computing SEEK_CUR failed])]) ]) - AC_MSG_RESULT($glibcxx_cv_stdio_seek_cur) AC_DEFINE_UNQUOTED(_GLIBCXX_STDIO_SEEK_CUR, $glibcxx_cv_stdio_seek_cur, [Define to the value of the SEEK_CUR integer constant.]) - AC_CACHE_VAL(glibcxx_cv_stdio_seek_end, [ + AC_CACHE_CHECK([for the value of SEEK_END], glibcxx_cv_stdio_seek_end, [ AC_COMPUTE_INT([glibcxx_cv_stdio_seek_end], [[SEEK_END]], [#include ], [AC_MSG_ERROR([computing SEEK_END failed])]) ]) - AC_MSG_RESULT($glibcxx_cv_stdio_seek_end) AC_DEFINE_UNQUOTED(_GLIBCXX_STDIO_SEEK_END, $glibcxx_cv_stdio_seek_end, [Define to the value of the SEEK_END integer constant.]) ])