--- a/configure.ac Wed Jan 31 00:51:25 2024 -0600
+++ b/configure.ac Wed Jan 31 01:30:28 2024 -0600
@@ -1267,7 +1267,8 @@
dnl We enable -Wall later.
dnl If it's set after the warning CFLAGS in the compiler invocation, it counteracts the -Wno... flags.
dnl This leads to warnings we don't want.
- CFLAGS=`echo $CFLAGS |$sedpath 's/-Wall//'`
+ starting_CFLAGS=`echo $CFLAGS |$sedpath 's/-Wall//'` dnl ENABLE WARNINGS SUPPORTED BY THE VERSION OF GCC IN USE
@@ -1301,18 +1302,16 @@
- CFLAGS="$CFLAGS $newflag"
+ CFLAGS="$starting_CFLAGS $newflag" AC_MSG_CHECKING(for $newflag option to gcc)
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], [
DEBUG_CFLAGS="$DEBUG_CFLAGS $newflag"
if test "x$enable_fortify" = "xyes"; then
AC_MSG_CHECKING(for FORTIFY_SOURCE support)