diff -Nurd nut-2.8.0.orig/m4/nut_compiler_family.m4 nut-2.8.0/m4/nut_compiler_family.m4 --- nut-2.8.0.orig/m4/nut_compiler_family.m4 2022-04-23 07:56:07.000000000 -0400 +++ nut-2.8.0/m4/nut_compiler_family.m4 2023-03-26 03:48:01.000000000 -0400 @@ -144,25 +144,6 @@ dnl AS_IF([test "x$GCC" = xyes], [CFLAGS="$CFLAGS -Wno-unknown-warning"]) dnl AS_IF([test "x$GXX" = xyes], [CXXFLAGS="$CXXFLAGS -Wno-unknown-warning"]) -dnl # There should be no need to include standard system paths (and possibly -dnl # confuse the compiler assumptions - along with its provided headers)... -dnl # ideally; in practice however cppunit, net-snmp and some system include -dnl # files do cause grief to picky compiler settings (more so from third -dnl # party packages shipped via /usr/local/... namespace): - AS_IF([test "x$CLANGCC" = xyes -o "x$GCC" = xyes], [ -dnl # CFLAGS="-isystem /usr/include $CFLAGS" - AS_IF([test -d /usr/local/include], - [CFLAGS="-isystem /usr/local/include $CFLAGS"]) - AS_IF([test -d /usr/pkg/include], - [CFLAGS="-isystem /usr/pkg/include $CFLAGS"]) - ]) - AS_IF([test "x$CLANGXX" = xyes -o "x$GXX" = xyes], [ -dnl # CXXFLAGS="-isystem /usr/include $CXXFLAGS" - AS_IF([test -d /usr/local/include], - [CXXFLAGS="-isystem /usr/local/include $CXXFLAGS"]) - AS_IF([test -d /usr/pkg/include], - [CXXFLAGS="-isystem /usr/pkg/include $CXXFLAGS"]) - ]) dnl # Default to avoid noisy warnings on older compilers dnl # (gcc-4.x, clang-3.x) due to their preference of