[lasem/lasem-0-4] Adopt GNOME compile warnings (if available)
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lasem/lasem-0-4] Adopt GNOME compile warnings (if available)
- Date: Sun, 6 Jan 2013 16:59:58 +0000 (UTC)
commit c3d0bf12f2ef98202d217e5c5b72819a46386801
Author: J.H.M. Dassen (Ray) <jdassen debian org>
Date: Tue Jan 1 12:17:02 2013 +0100
Adopt GNOME compile warnings (if available)
configure.ac | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 7fbcd6f..fc0d643 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,6 +47,12 @@ PKG_CHECK_MODULES(LASEM, [gobject-2.0
# a pkgconfig file.
LASEM_LIBS="${LASEM_LIBS} -lm"
+## this should come after `AC_PROG_CC'
+ifdef([GNOME_COMPILE_WARNINGS],
+ [GNOME_COMPILE_WARNINGS] CFLAGS="$CFLAGS $WARN_CFLAGS",
+ []
+)
+
AC_SUBST(LASEM_CFLAGS)
AC_SUBST(LASEM_LIBS)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]