Description: Fix FTBFS caused by xml2-config removal Remove GIT_DEF Suppress format-truncation warnings (tidy up build log) Author: Peter Blackman Bug-Debian: https://bugs.debian.org/949143 Forwarded: not-needed Index: b/configure.ac =================================================================== --- a/configure.ac +++ b/configure.ac @@ -70,13 +70,11 @@ if test "${enable_pthread}" = "yes" ; then AC_CHECK_LIB([pthread],[pthread_create],,[AC_MSG_WARN([Pthread library not found - threads disabled.])]) fi + AC_CHECK_LIB([jpeg],[jpeg_start_compress],,[AC_MSG_ERROR([The jpeg library is required.])]) -AC_PATH_PROG(XML2_CONFIG,xml2-config, no, $PATH:/bin:/usr/bin:/usr/local/bin) -if test "$XML2_CONFIG" != "no" -then - CPPFLAGS="`$XML2_CONFIG --cflags` $CPPFLAGS" -fi +PKG_CHECK_MODULES(XML, libxml-2.0) +#CPPFLAGS+=" -I${includedir}/libxml2" AC_OUTPUT([ Makefile Index: b/Makefile.am =================================================================== --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,6 @@ AUTOMAKE_OPTIONS = foreign no-dependencies -GIT_DEF = -D'GIT_REV="$(shell git describe --tags --dirty)"' -AM_CFLAGS = -g -O3 -std=gnu99 -ffast-math -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" $(GIT_DEF) +AM_CFLAGS = -g -O3 -std=gnu99 -ffast-math -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" -Wno-format-truncation ACLOCAL_AMFLAGS = -I m4 @@ -35,3 +34,7 @@ pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = flam3.pc + +CPPFLAGS += $(XML_CFLAGS) +LDFLAGS += $(XML_LIBS) +