From 866dc475a75f8462bc08e333d3ebb1b34e8006cd Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Wed, 13 Nov 2013 09:47:14 +0100 Subject: [PATCH] fix compilation on windows --- configure.ac | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/configure.ac b/configure.ac index f24f05b1c..b1a4df656 100644 --- a/configure.ac +++ b/configure.ac @@ -607,16 +607,12 @@ STRICT_OPTIONS="-Wall" #for clang -LDFLAGS_SAV=$LDFLAGS -LDFLAGS="$LDFLAGS -Qunused-arguments -Wall -Werror" -AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], - [[]])] - , [cc_option_q_allowed=yes] - , [cc_option_q_allowed=no]) -LD_FLAGS=$LDFLAGS_SAV -if test $cc_option_q_allowed = "yes"; then - STRICT_OPTIONS="$STRICT_OPTIONS -Qunused-arguments" -fi +case $CC in + *clang*) + STRICT_OPTIONS="$STRICT_OPTIONS -Qunused-arguments" + ;; +esac + if test "$strictness" = "yes" ; then STRICT_OPTIONS="$STRICT_OPTIONS -Werror" CFLAGS="$CFLAGS -fno-strict-aliasing"