fix lintian autotools-pkg-config-macro-not-cross-compilation-safe warning
authorPaul <paul@claws-mail.org>
Mon, 27 Aug 2018 17:42:44 +0000 (18:42 +0100)
committerPaul <paul@claws-mail.org>
Mon, 27 Aug 2018 17:42:44 +0000 (18:42 +0100)
see
https://lintian.debian.org/tags/autotools-pkg-config-macro-not-cross-compilation-safe.html

configure.ac

index a3d2a672bd35ae284de313e4a68498e546bcf4dc..edf77674d9296fa92b5695478a57ec78aeca5adb 100644 (file)
@@ -65,10 +65,7 @@ AC_SUBST(GIT_VERSION)
 AC_CHECK_PROG(HAVE_GTK_ICON_CACHE, gtk-update-icon-cache, yes, no)
 AM_CONDITIONAL(UPDATE_GTK_ICON_CACHE, test x"$HAVE_GTK_ICON_CACHE" = xyes)
 
-AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
-if test x$PKG_CONFIG = xno ; then
-  AC_MSG_ERROR([*** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/])
-fi
+PKG_PROG_PKG_CONFIG
 
 dnl libtool versioning
 LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
@@ -427,7 +424,7 @@ dnl *****************
 dnl check for glib
 PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.28 gmodule-2.0 >= 2.28 gobject-2.0 >= 2.28 gthread-2.0 >= 2.28)
 
-GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
+GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
 AC_SUBST(GLIB_GENMARSHAL)
 
 AC_SUBST(GLIB_CFLAGS)