[goffice] configure: mirror libgsf changes re Werror.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] configure: mirror libgsf changes re Werror.
- Date: Thu, 1 Aug 2013 22:47:10 +0000 (UTC)
commit 6a125c56d9b4452a2a621235f187731c22fe8156
Author: Morten Welinder <terra gnome org>
Date: Thu Aug 1 18:46:48 2013 -0400
configure: mirror libgsf changes re Werror.
configure.ac | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 0884f8c..76d7388 100644
--- a/configure.ac
+++ b/configure.ac
@@ -445,8 +445,10 @@ if test "$GCC" = yes -a "x$set_more_warnings" != xno; then
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $uwoption $option"
AC_MSG_CHECKING([whether gcc understands $option])
+ dnl Include a system header so we ignore Werror=... flags
+ dnl that cause trouble.
AC_COMPILE_IFELSE(
- [AC_LANG_PROGRAM([], [])],
+ [AC_LANG_PROGRAM([[#include <stdio.h>]], [])],
[has_option=yes],
[has_option=no])
CFLAGS="$SAVE_CFLAGS"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]