X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;fp=configure.ac;h=e59793980a0fa8b0c29791529407a0f9f72d04b3;hb=f4f6a4d699c857e97a6fca07df3b942de7649f67;hp=edea64c831b188092a932b5057c98353a89b4973;hpb=6ce7a436e33e65a4ddabdbc4d4487cb040f31e87;p=ovirt-viewer.git diff --git a/configure.ac b/configure.ac index edea64c..e597939 100644 --- a/configure.ac +++ b/configure.ac @@ -46,6 +46,15 @@ AC_ARG_ENABLE([cainfo], [CAINFO=$sysconfdir/pki/tls/certs/ca-bundle.crt]) AC_SUBST([CAINFO]) +dnl If the C compiler is really GCC, enable warnings and +dnl GCC-specific flags. Bug in glib GStaticMutex prevents +dnl us from using strict aliasing safely. +dnl NB: We have to do this after all the function tests +dnl because '-Werror' tends to break them. +if test "$GCC" = "yes"; then + CFLAGS="$CFLAGS -Wall -Werror -fno-strict-aliasing" +fi + dnl Output. AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([Makefile])