diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2013-07-23 10:25:00 +1200 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2013-07-23 10:25:00 +1200 |
commit | be30b6fe0ce330caa855f76608dfa4373f55a699 (patch) | |
tree | 7224181dfb0973cf4e17c3e01e2906207cb3bda7 /configure.ac | |
parent | ec4d24b6aa45d639acaa41b84268936c22c5ad38 (diff) | |
download | lightdm-git-be30b6fe0ce330caa855f76608dfa4373f55a699.tar.gz |
Check for GCC before enabling warning flags
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/configure.ac b/configure.ac index df3d2ff8..bed98673 100644 --- a/configure.ac +++ b/configure.ac @@ -11,17 +11,19 @@ AC_PROG_CXX AC_PROG_LIBTOOL AM_MAINTAINER_MODE -dnl Enable compile warnings -WARN_CFLAGS="-Wall \ - -Wstrict-prototypes \ - -Wnested-externs \ - -Werror=missing-prototypes \ - -Werror=implicit-function-declaration \ - -Werror=pointer-arith \ - -Werror=init-self \ - -Werror=format-security \ - -Werror=format=2 \ - -Werror=missing-include-dirs" +dnl Enable compile warnings (only supporting GCC) +if test "x$GCC" == xyes; then + WARN_CFLAGS="-Wall \ + -Wstrict-prototypes \ + -Wnested-externs \ + -Werror=missing-prototypes \ + -Werror=implicit-function-declaration \ + -Werror=pointer-arith \ + -Werror=init-self \ + -Werror=format-security \ + -Werror=format=2 \ + -Werror=missing-include-dirs" +fi AC_SUBST(WARN_CFLAGS) GOBJECT_INTROSPECTION_CHECK(0.9.5) |