summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2003-07-20 12:22:01 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2003-07-20 12:22:01 +0000
commitfe77ec33afaa8ca136813da2e6746cb2667009f5 (patch)
tree02d265c162e7031ce9a266f75ca8045412a760ab
parent430843e64c42af14c6931e33cd643b94a21562b5 (diff)
downloadxine-lib-fe77ec33afaa8ca136813da2e6746cb2667009f5.tar.gz
xine-lib-fe77ec33afaa8ca136813da2e6746cb2667009f5.tar.bz2
collapse GCC-specific CFLAG handling in one place,
do not disable strict-aliasing and sign-compare warnings, no double -Wall CVS patchset: 5198 CVS date: 2003/07/20 12:22:01
-rw-r--r--configure.ac30
1 files changed, 5 insertions, 25 deletions
diff --git a/configure.ac b/configure.ac
index 5b48f8a95..d11a54d18 100644
--- a/configure.ac
+++ b/configure.ac
@@ -937,6 +937,11 @@ if test "$GCC" = yes; then
AC_TRY_CFLAGS("-fbranch-probabilities", PASS2_CFLAGS="$PASS2_CFLAGS -fbranch-probabilities",)
AC_SUBST(PASS1_CFLAGS)
AC_SUBST(PASS2_CFLAGS)
+ dnl
+ dnl Warnings
+ dnl
+ CFLAGS="$CFLAGS -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes"
+ CFLAGS="$CFLAGS -Wnested-externs -Wpointer-arith -Wcast-align"
fi
dnl Flags not supported by all *cc* variants
@@ -1232,31 +1237,6 @@ case "$host_or_hostalias" in
;;
esac
-if test "$GCC" = "yes" ; then
- AC_MSG_RESULT(yes)
- CFLAGS="\
- -Wall \
- -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
- -Wnested-externs -Wpointer-arith \
- -Wcast-align \
- $CFLAGS"
-
- for option in -Wno-strict-aliasing -Wno-sign-compare; do
- SAVE_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $option"
- AC_TRY_COMPILE([], [],
- has_option=yes,
- has_option=no,)
- if test $has_option = no; then
- CFLAGS="$SAVE_CFLAGS"
- fi
- unset has_option
- unset SAVE_CFLAGS
- done
- unset option
-fi
-
-
CFLAGS="$CFLAGS $ALSA_CFLAGS $ESD_CFLAGS $ARTS_CFLAGS $IRIXAL_CFLAGS"
DEBUG_CFLAGS="$DEBUG_CFLAGS $ALSA_CFLAGS $ESD_CFLAGS $ARTS_CFLAGS $IRIXAL_CFLAGS"