diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2006-06-07 12:06:00 -0700 |
---|---|---|
committer | Jamey Sharp <jamey@minilop.net> | 2006-11-12 18:08:41 -0800 |
commit | 63e74439a603f969d8cf8d5a5621f558002599a8 (patch) | |
tree | 067304ec469a151002cc45505ce906515bbf3a35 | |
parent | ee73b61ce27617e44a00461708964fe3df1c01c9 (diff) |
Bug #7150: Check for gcc & Sun cc in configure.ac and use correct flags to turn on more warnings for each
This is the first of two fixes needed to get xcb-util building on
Solaris.
Signed-off-by: Jamey Sharp <jamey@minilop.net>
-rw-r--r-- | configure.ac | 10 | ||||
-rw-r--r-- | keysyms/Makefile.am | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 8b3c4ba..1204b00 100644 --- a/configure.ac +++ b/configure.ac @@ -11,6 +11,16 @@ fi AC_PROG_CC AC_PROG_LIBTOOL +if test "x$GCC" = xyes ; then + CWARNFLAGS="-Wall" +else + AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) + if test "x$SUNCC" = "xyes"; then + CWARNFLAGS="-v" + fi +fi +AC_SUBST(CWARNFLAGS) + xcbincludedir='${includedir}/xcb' AC_SUBST(xcbincludedir) diff --git a/keysyms/Makefile.am b/keysyms/Makefile.am index 6765333..e5a38cd 100644 --- a/keysyms/Makefile.am +++ b/keysyms/Makefile.am @@ -5,7 +5,7 @@ lib_LTLIBRARIES = libXCBKeysyms.la xcbinclude_HEADERS = xcb_keysyms.h -AM_CFLAGS = -Wall +AM_CFLAGS = $(CWARNFLAGS) libXCBKeysyms_la_SOURCES = keysyms.c libXCBKeysyms_la_CFLAGS = $(XCB_CFLAGS) |