build: don't hard-code pkg-config.
PATCH 1/1 build: don't hard-code pkg-config.
From: Helmut Grohne <[email protected]>
Use $PKG_CONFIG in configure.ac in order to allow it to be overridden. Fixes cross-compilation.
Signed-off-by Jeremy Sowden <[email protected]>
--- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
configure.ac +1 -1
@@ -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],
Signature · 1 line
2.28.0
Quoted 4 lines · Jeremy Sowden
From: Helmut Grohne <[email protected]>
Use $PKG_CONFIG in configure.ac in order to allow it to be overridden. Fixes cross-compilation.
It is done.