[gimp] Move libpng specific warning CFLAGS to PNG_CFLAGS
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Move libpng specific warning CFLAGS to PNG_CFLAGS
- Date: Thu, 5 May 2011 04:18:44 +0000 (UTC)
commit 5a1a3209e9a55dd02cc53c52b31a311453aafd26
Author: Mukund Sivaraman <muks banu com>
Date: Thu May 5 09:48:02 2011 +0530
Move libpng specific warning CFLAGS to PNG_CFLAGS
configure.ac | 10 +++-------
plug-ins/common/Makefile.am | 2 ++
plug-ins/common/plugin-defs.pl | 2 +-
3 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2706220..1297e0c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1178,6 +1178,7 @@ fi
if test "x$have_libpng" = xyes; then
MIME_TYPES="$MIME_TYPES;image/png;image/x-icon"
+ PNG_CFLAGS="$PNG_CFLAGS -DPNG_PEDANTIC_WARNINGS"
fi
AC_SUBST(FILE_PNG)
@@ -1199,7 +1200,7 @@ if test "x$with_libmng" != xno && test -z "$MNG_LIBS" &&
[have_libmng="no (MNG library not found)"], -lz -lm)
if test "$mng_ok" = yes; then
have_libmng=yes
- FILE_MNG='file-mng$(EXEEXT)'; MNG_LIBS="-lmng $JPEG_LIBS $PNG_LIBS"
+ FILE_MNG='file-mng$(EXEEXT)'; MNG_LIBS="-lmng $JPEG_LIBS $PNG_LIBS"; MNG_CFLAGS="$PNG_CFLAGS"
else
have_libmng="no (MNG header file not found)"
fi
@@ -1207,6 +1208,7 @@ fi
AC_SUBST(FILE_MNG)
AC_SUBST(MNG_LIBS)
+AC_SUBST(MNG_CFLAGS)
############################################################
@@ -1977,12 +1979,6 @@ if test "x$have_pango_1_32" != "xyes"; then
fi
-###############################################
-# Enable additional warnings of other libraries
-###############################################
-
-CPPFLAGS="${CPPFLAGS} -DPNG_PEDANTIC_WARNINGS"
-
############################
# Require multihead safe API
############################
diff --git a/plug-ins/common/Makefile.am b/plug-ins/common/Makefile.am
index 656d099..d05be85 100644
--- a/plug-ins/common/Makefile.am
+++ b/plug-ins/common/Makefile.am
@@ -1236,6 +1236,8 @@ file_jp2_load_LDADD = \
$(INTLLIBS) \
$(file_jp2_load_RC)
+file_mng_CFLAGS = $(MNG_CFLAGS)
+
file_mng_SOURCES = \
file-mng.c
diff --git a/plug-ins/common/plugin-defs.pl b/plug-ins/common/plugin-defs.pl
index 23fd190..c0aed7e 100644
--- a/plug-ins/common/plugin-defs.pl
+++ b/plug-ins/common/plugin-defs.pl
@@ -60,7 +60,7 @@
'file-header' => { ui => 1 },
'file-html-table' => { ui => 1 },
'file-jp2-load' => { optional => 1, libs => 'JP2_LIBS' },
- 'file-mng' => { ui => 1, optional => 1, libs => 'MNG_LIBS' },
+ 'file-mng' => { ui => 1, optional => 1, libs => 'MNG_LIBS', cflags => 'MNG_CFLAGS' },
'file-pat' => { ui => 1 },
'file-pcx' => { ui => 1 },
'file-pix' => { ui => 1 },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]