--- freem/configure.ac 2025/04/07 23:40:30 1.23 +++ freem/configure.ac 2025/04/15 03:42:30 1.32 @@ -1,5 +1,5 @@ # -# $Id: configure.ac,v 1.23 2025/04/07 23:40:30 snw Exp $ +# $Id: configure.ac,v 1.32 2025/04/15 03:42:30 snw Exp $ # autoconf rules for FreeM # # @@ -24,6 +24,33 @@ # along with FreeM. If not, see . # # $Log: configure.ac,v $ +# Revision 1.32 2025/04/15 03:42:30 snw +# Remove -fno-stack-protector to fix dynamic executable builds on SunCC on Solaris +# +# Revision 1.31 2025/04/15 03:37:30 snw +# Remove -fno-mudflap to fix Solaris builds +# +# Revision 1.30 2025/04/12 00:54:16 snw +# Set -fno-stack-protector and -fno-mudflap where available, and set _FORTIFY_SOURCE to 0 everywhere +# +# Revision 1.29 2025/04/12 00:42:05 snw +# Remove -Wall and all supporting directives +# +# Revision 1.28 2025/04/11 20:55:47 snw +# Disable -Wunused-result where possible +# +# Revision 1.27 2025/04/10 18:01:34 snw +# Further tweaks to the autoconf configuration +# +# Revision 1.26 2025/04/10 01:24:38 snw +# Remove C++ style comments +# +# Revision 1.25 2025/04/09 21:10:14 snw +# Only use -Wno-format-truncation et al when the compiler supports them +# +# Revision 1.24 2025/04/09 20:06:02 snw +# Add macros to check for compiler flags to suppress unavoidable warnings +# # Revision 1.23 2025/04/07 23:40:30 snw # Move to 0.64.0-rc0 and prepare to optimize global file lookup # @@ -91,6 +118,14 @@ AC_CONFIG_HEADERS([src/config.h]) AC_CONFIG_MACRO_DIR([m4]) AX_LIB_READLINE +## +# The following may be needed once we get back to enabling -Wall -Wextra -pedantic +# +# AX_CHECK_COMPILE_FLAG([-Wno-format-truncation], [AX_APPEND_FLAG([-Wno-format-truncation])]) +# AX_CHECK_COMPILE_FLAG([-Wno-format-contains-nul], [AX_APPEND_FLAG([-Wno-format-contains-nul])]) +# AX_CHECK_COMPILE_FLAG([-Wno-stringop-truncation], [AX_APPEND_FLAG([-Wno-stringop-truncation])]) +# AX_CHECK_COMPILE_FLAG([-Wno-parentheses], [AX_APPEND_FLAG([-Wno-parentheses])]) +# AX_CHECK_COMPILE_FLAG([-Wno-pointer-sign], [AX_APPEND_FLAG([-Wno-pointer-sign])]) # check for libm AC_CHECK_LIB([m], [powf])