>From 9eb544252ca9ecb9b52b8a26bd98a5e6723bbc3a Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 14 May 2019 09:20:56 -0700 Subject: [PATCH] stdbuf: port configure-time checking to HP-UX aCC Problem reported by Michael Osipov (Bug#35650). * configure.ac: Use AC_LANG_WERROR to pay attention to compiler and linker warnings when testing whether stdbuf will work. --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 0ee01b2cd..f97ff862e 100644 --- a/configure.ac +++ b/configure.ac @@ -476,6 +476,8 @@ fi # Build stdbuf only if supported ac_save_CFLAGS=$CFLAGS ac_save_LDFLAGS=$LDFLAGS +cu_save_c_werror_flag=$ac_c_werror_flag +AC_LANG_WERROR # Detect warnings about ignored "constructor" attributes. gl_WARN_ADD([-Werror], [CFLAGS]) gl_WARN_ADD([-errwarn], [CFLAGS]) @@ -504,6 +506,7 @@ if test "$stdbuf_supported" = "yes" && test -z "$EXEEXT"; then fi CFLAGS=$ac_save_CFLAGS LDFLAGS=$ac_save_LDFLAGS +ac_c_werror_flag=$cu_save_c_werror_flag # Detect when using xlc to determine whether to use -qinclude= AC_CACHE_CHECK([whether the system supports xlc include], [utils_cv_xlc], -- 2.21.0