From 256f355af5cc3efb543608193da615d5a9fcd340 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 25 Sep 2011 07:45:08 +0000 Subject: [PATCH] * configure.in: ignore all warnings from an arbitrary header in /usr/local/include. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ configure.in | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b7fe3df031..3c6b364019 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Sep 25 16:45:05 2011 Nobuyoshi Nakada + + * configure.in: ignore all warnings from an arbitrary + header in /usr/local/include. + Sun Sep 25 03:43:03 2011 NARUSE, Yui * enum.c (slice_before_i): use rb_attr_get to surpress wrong warning diff --git a/configure.in b/configure.in index 14165a3c18..819a3d1ff8 100644 --- a/configure.in +++ b/configure.in @@ -2109,7 +2109,7 @@ if test "$with_dln_a_out" != yes; then # /usr/local/include is always searched for # some reason, but /usr/local/lib is not. hdr=`find /usr/local/include -name \*.h -type f | sed 's:^/usr/local/include/::;q'` - if test -n "$hdr" && $CC -E -include "$hdr" -xc /dev/null | fgrep -q "$hdr"; then + if test -n "$hdr" && $CC -E -include "$hdr" -xc /dev/null 2>/dev/null | fgrep -q "$hdr"; then $CC -print-search-dirs | grep -q '^libraries:.*:/usr/local/lib/*' || echo " $LDFLAGS " | grep -q ' -L */usr/local/lib/* ' || LDFLAGS="${LDFLAGS:+$LDFLAGS }-L/usr/local/lib"