summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-05-28 19:11:04 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-05-28 19:11:04 +0000
commit803f7b5a33c74ced027f3a171a6a7966206d4e1d (patch)
treec568630a3438b0784b98efe5625f68286cf920f8 /configure
parentf919aab408bc5cf22fb2a595437eab6868f3576d (diff)
Added -Wformat-nonliteral flag.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure35
1 files changed, 35 insertions, 0 deletions
diff --git a/configure b/configure
index 1479446..9a3aa0e 100755
--- a/configure
+++ b/configure
@@ -11927,6 +11927,41 @@ else
:
fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-nonliteral" >&5
+$as_echo_n "checking whether C compiler accepts -Wformat-nonliteral... " >&6; }
+if ${ax_cv_check_cflags___Wformat_nonliteral+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+
+ ax_check_save_flags=$CFLAGS
+ CFLAGS="$CFLAGS -Wformat-nonliteral"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ax_cv_check_cflags___Wformat_nonliteral=yes
+else
+ ax_cv_check_cflags___Wformat_nonliteral=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CFLAGS=$ax_check_save_flags
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wformat_nonliteral" >&5
+$as_echo "$ax_cv_check_cflags___Wformat_nonliteral" >&6; }
+if test x"$ax_cv_check_cflags___Wformat_nonliteral" = xyes; then :
+ DEFAULT_CFLAGS="$DEFAULT_CFLAGS -Wformat-nonliteral"
+else
+ :
+fi
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing -Wstrict-aliasing=2" >&5
$as_echo_n "checking whether C compiler accepts -fstrict-aliasing -Wstrict-aliasing=2... " >&6; }
if ${ax_cv_check_cflags___fstrict_aliasing__Wstrict_aliasing_2+:} false; then :