From 056cb9f09efa9116c7f5fb8bc0717a260ad23744 Mon Sep 17 00:00:00 2001 From: "Michael Thomas (malinka)" Date: Tue, 24 May 2016 12:47:36 -0400 Subject: [PATCH] m4/path.pkgconfig.m4: use PKG_PROG_PKG_CONFIG to find correct pkg-config pkg-config supplies this macro and prefers it to be used to allow for cross-compilation scenarios where target-prefixed binaries are prefered to pkg-config --- OpenEXR/m4/path.pkgconfig.m4 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OpenEXR/m4/path.pkgconfig.m4 b/OpenEXR/m4/path.pkgconfig.m4 index a6a36ae377..53c2d20d29 100644 --- a/OpenEXR/m4/path.pkgconfig.m4 +++ b/OpenEXR/m4/path.pkgconfig.m4 @@ -50,8 +50,7 @@ TEST_LIBS="" AC_ARG_WITH(arg_test_prefix,[ --with-arg_test_prefix=PFX Prefix where tested libraries are supposed to be installed (optional)], test_prefix="$withval", test_prefix="NONE") echo "test_prefix = $test_prefix" -AC_ARG_VAR(PKG_CONFIG, Path to pkg-config command) -AC_PATH_PROG(PKG_CONFIG, pkg-config, no) +PKG_PROG_PKG_CONFIG AC_ARG_WITH(pkg-config,[ --with-pkg-config=PATH Specify which pkg-config to use (optional)], PKG_CONFIG="$withval",)