From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1SwLkE-0004Zs-RI for mharc-grub-devel@gnu.org; Tue, 31 Jul 2012 19:20:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwLkA-0004Zm-6i for grub-devel@gnu.org; Tue, 31 Jul 2012 19:20:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwLk5-0004zl-Va for grub-devel@gnu.org; Tue, 31 Jul 2012 19:20:50 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:56008) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwLk5-0004zX-OA for grub-devel@gnu.org; Tue, 31 Jul 2012 19:20:45 -0400 Received: by wibhm11 with SMTP id hm11so2581396wib.12 for ; Tue, 31 Jul 2012 16:20:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=C9H1cysHjIlZ5LtmTbTfpTHJxrNKbk3YkbNnAz3of6E=; b=c3XW2FwicJJML4BSYP8vkR6gNLUZydeiETdtFOagDvOKKhfeaHiDZdmgeB3WAP6h1v +FyP5r2pX6xGeEBdWKjUwkOInJkJ9YE9ISAMX/aJwUnM8oYNsznM8vcC+V/c59TdCm6B /QcWnqrdQZa1jclnVb0EqTrh1dgdPKBxY6afdW2Ca3XCsVm7PWWeDPcrFKDZhXzyBA6u DobxbmwmTt61Vaxj6Vu6XmsoQnSSITDY4+d4iYknmxCxHD7SyT08fJXKC4k7Ph5Ij5ve 9ibWWtqL2v1P3REOsreOVDx3soB2SOfcLsbjKPYZ9G+NLmm81wJ4+C9BRBLUKRTJiJ4B WKPQ== Received: by 10.180.78.37 with SMTP id y5mr6857252wiw.16.1343776844899; Tue, 31 Jul 2012 16:20:44 -0700 (PDT) Received: from [192.168.1.37] (c2433-1-88-160-112-182.fbx.proxad.net. [88.160.112.182]) by mx.google.com with ESMTPS id w7sm24729278wiz.0.2012.07.31.16.20.44 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 31 Jul 2012 16:20:44 -0700 (PDT) Message-ID: <5018684B.30803@gmail.com> Date: Wed, 01 Aug 2012 01:20:43 +0200 From: =?ISO-8859-1?Q?Gr=E9goire_Sutre?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120624 Icedove/10.0.5 MIME-Version: 1.0 To: The development of GNU GRUB Subject: [PATCH] Strengthen the test for working -nostdinc -isystem Content-Type: multipart/mixed; boundary="------------030306000500090908010203" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.177 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jul 2012 23:20:54 -0000 This is a multi-part message in MIME format. --------------030306000500090908010203 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit This prevents configure from believing that -nostdinc -isystem works in some cases where it doesn't (NetBSD with non-native gcc 4.4). The patch simply adds the requirement that #include works with -nostdinc -isystem. Grégoire --------------030306000500090908010203 Content-Type: text/plain; name="patch-configure.ac" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch-configure.ac" --- configure.ac.orig 2012-07-28 17:41:28.000000000 +0000 +++ configure.ac @@ -717,6 +717,7 @@ AC_CACHE_CHECK([whether -nostdinc -isyst SAVED_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include +#include int va_arg_func (int fixed, va_list args);]], [[]])], [grub_cv_cc_isystem=yes], [grub_cv_cc_isystem=no]) --------------030306000500090908010203--