|
@@ -1,4 +1,4 @@
|
|
|
-dnl @synopsis MC_CHECK_CFLAGS
|
|
|
+dnl @synopsis mc_CHECK_CFLAGS
|
|
|
dnl
|
|
|
dnl Check flags supported by C compiler
|
|
|
dnl
|
|
@@ -7,7 +7,7 @@ dnl @version 2013-01-16
|
|
|
dnl @license GPL
|
|
|
dnl @copyright Free Software Foundation, Inc.
|
|
|
|
|
|
-AC_DEFUN([MC_CHECK_ONE_CFLAG],[
|
|
|
+AC_DEFUN([mc_CHECK_ONE_CFLAG],[
|
|
|
|
|
|
AC_MSG_CHECKING([whether ${CC} accepts $1])
|
|
|
|
|
@@ -35,7 +35,7 @@ AC_DEFUN([MC_CHECK_ONE_CFLAG],[
|
|
|
fi
|
|
|
])
|
|
|
|
|
|
-AC_DEFUN([MC_CHECK_CFLAGS],[
|
|
|
+AC_DEFUN([mc_CHECK_CFLAGS],[
|
|
|
AC_LANG_PUSH(C)
|
|
|
|
|
|
mc_configured_cflags=""
|
|
@@ -44,57 +44,57 @@ dnl Sorted -f options:
|
|
|
dnl AC_MSG_CHECKING([CC is $CC])
|
|
|
case "$CC" in
|
|
|
gcc*)
|
|
|
- MC_CHECK_ONE_CFLAG([-fdiagnostics-show-option])
|
|
|
-dnl MC_CHECK_ONE_CFLAG([-fno-stack-protector])
|
|
|
+ mc_CHECK_ONE_CFLAG([-fdiagnostics-show-option])
|
|
|
+dnl mc_CHECK_ONE_CFLAG([-fno-stack-protector])
|
|
|
;;
|
|
|
*)
|
|
|
;;
|
|
|
esac
|
|
|
|
|
|
dnl Sorted -W options:
|
|
|
- MC_CHECK_ONE_CFLAG([-Wbad-function-cast])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wcomment])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wdeclaration-after-statement])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wfloat-equal])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wformat])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wformat-security])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wimplicit])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wignored-qualifiers])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wmaybe-uninitialized])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wmissing-braces])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wmissing-declarations])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wmissing-field-initializers])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wmissing-format-attribute])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wmissing-parameter-type])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wmissing-prototypes])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wmissing-variable-declarations])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wnested-externs])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wno-long-long])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wno-unreachable-code])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wparentheses])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wpointer-arith])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wpointer-sign])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wredundant-decls])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wreturn-type])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wsequence-point])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wshadow])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wsign-compare])
|
|
|
-dnl MC_CHECK_ONE_CFLAG([-Wstrict-aliasing])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wstrict-prototypes])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wswitch])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wswitch-default])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wtype-limits])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wundef])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wuninitialized])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wunreachable-code])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wunused-but-set-variable])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wunused-function])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wunused-label])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wunused-parameter])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wunused-result])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wunused-value])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wunused-variable])
|
|
|
- MC_CHECK_ONE_CFLAG([-Wwrite-strings])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wbad-function-cast])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wcomment])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wdeclaration-after-statement])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wfloat-equal])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wformat])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wformat-security])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wimplicit])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wignored-qualifiers])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wmaybe-uninitialized])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wmissing-braces])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wmissing-declarations])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wmissing-field-initializers])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wmissing-format-attribute])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wmissing-parameter-type])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wmissing-prototypes])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wmissing-variable-declarations])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wnested-externs])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wno-long-long])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wno-unreachable-code])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wparentheses])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wpointer-arith])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wpointer-sign])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wredundant-decls])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wreturn-type])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wsequence-point])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wshadow])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wsign-compare])
|
|
|
+dnl mc_CHECK_ONE_CFLAG([-Wstrict-aliasing])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wstrict-prototypes])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wswitch])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wswitch-default])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wtype-limits])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wundef])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wuninitialized])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wunreachable-code])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wunused-but-set-variable])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wunused-function])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wunused-label])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wunused-parameter])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wunused-result])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wunused-value])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wunused-variable])
|
|
|
+ mc_CHECK_ONE_CFLAG([-Wwrite-strings])
|
|
|
|
|
|
AC_LANG_POP()
|
|
|
])
|