From 58109c79513670eb5d35e8eae0c58c2f7a293c91 Mon Sep 17 00:00:00 2001 From: Roger Pau Monne Date: Mon, 8 Oct 2012 12:18:29 +0100 Subject: autoconf: add -Werror to libutil.h header check libutil.h is only needed on BSDs, but not in Linux. Debian package libbsd-dev-0.3.0-1 installed a libutil.h overlay that contains a Perform the libutil.h check with -Werror, so we don't include this bogus header. Signed-off-by: Roger Pau Monne Acked-by: Ian Campbell Committed-by: Ian Campbell --- tools/configure | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tools/configure') diff --git a/tools/configure b/tools/configure index 2e20a61ed4..9e342ede8e 100755 --- a/tools/configure +++ b/tools/configure @@ -6543,6 +6543,10 @@ $as_echo "$ax_cv_pthread_flags" >&6; } + + saved_CPPFLAGS="$CPPFLAGS" + + CPPFLAGS="$CPPFLAGS -Werror" ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default" if test "x$ac_cv_header_libutil_h" = x""yes; then : @@ -6553,6 +6557,9 @@ $as_echo "#define INCLUDE_LIBUTIL_H " >>confdefs.h fi + + CPPFLAGS="$saved_CPPFLAGS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty et al" >&5 $as_echo_n "checking for openpty et al... " >&6; } if test "${ax_cv_ptyfuncs_libs+set}" = set; then : -- cgit v1.2.3