Message ID | 20200831103635.524666-1-jeremy@azazel.net |
---|---|
State | Awaiting Upstream |
Delegated to: | Pablo Neira |
Headers | show |
Series | [xtables-addons] build: don't hard-code pkg-config. | expand |
On Monday 2020-08-31 12:36, Jeremy Sowden wrote: >From: Helmut Grohne <helmut@subdivi.de> > >Use $PKG_CONFIG in configure.ac in order to allow it to be overridden. >Fixes cross-compilation. It is done.
diff --git a/configure.ac b/configure.ac index 8f8a13b9d4b7..7d779964f77d 100644 --- a/configure.ac +++ b/configure.ac @@ -27,7 +27,7 @@ fi AC_CHECK_HEADERS([linux/netfilter/x_tables.h], [], [AC_MSG_ERROR([You need to have linux/netfilter/x_tables.h, see INSTALL file for details])]) PKG_CHECK_MODULES([libxtables], [xtables >= 1.6.0]) -xtlibdir="$(pkg-config --variable=xtlibdir xtables)" +xtlibdir="$($PKG_CONFIG --variable=xtlibdir xtables)" AC_ARG_WITH([xtlibdir], AS_HELP_STRING([--with-xtlibdir=PATH],