The -Wstrict-aliasing option that we use to compile atomic
tests does not exist with compilers other than gcc, so
don't pass it to those.
https://bugzilla.gnome.org/show_bug.cgi?id=652272
https://bugzilla.gnome.org/show_bug.cgi?id=656152
AC_PROG_CC
AC_PROG_CPP
+AM_CONDITIONAL(HAVE_GCC, [test "$GCC" = "yes"])
+
AC_CANONICAL_HOST
AC_MSG_CHECKING([for the BeOS])
unix_nothreads_LDADD = $(progs_ldadd)
noinst_PROGRAMS += atomic
-atomic_CFLAGS = -Wstrict-aliasing=2 $(INCLUDES)
+atomic_CFLAGS = $(INCLUDES)
+if HAVE_GCC
+atomic_CFLAGS += -Wstrict-aliasing=2
+endif
atomic_LDADD = $(progs_ldadd)
TEST_PROGS += bitlock