dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone
Blob Blame History Raw
From cb6d50b03d383cae32b0fbe308acc76c9d041fc6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire=20Sutre?= <gregoire.sutre@gmail.com>
Date: Sun, 5 Aug 2012 16:49:03 +0200
Subject: [PATCH 020/482] Strengthen the configure test for working -nostdinc
 -isystem.

---
 ChangeLog    | 4 ++++
 configure.ac | 1 +
 2 files changed, 5 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index dd1fda8..a0a81b1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-08-05  Grégoire Sutre  <gregoire.sutre@gmail.com>
+
+	* configure.ac: Strengthen the test for working -nostdinc -isystem.
+
 2012-07-31  Grégoire Sutre  <gregoire.sutre@gmail.com>
 
 	* po/POTFILES.in: Regenerated.
diff --git a/configure.ac b/configure.ac
index 91b36d0..190665d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -717,6 +717,7 @@ AC_CACHE_CHECK([whether -nostdinc -isystem works], [grub_cv_cc_isystem], [
   SAVED_CPPFLAGS="$CPPFLAGS"
   CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdarg.h>
+#include <stddef.h>
 int va_arg_func (int fixed, va_list args);]], [[]])],
       [grub_cv_cc_isystem=yes],
       [grub_cv_cc_isystem=no])
-- 
1.8.2.1