Skip to content

Commit

Permalink
m4/path.pkgconfig.m4: use PKG_PROG_PKG_CONFIG to find correct pkg-config
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Michael Thomas (malinka) authored and nickrasmussen committed Aug 8, 2018
1 parent 165dcea commit 056cb9f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions OpenEXR/m4/path.pkgconfig.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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",)
Expand Down

0 comments on commit 056cb9f

Please sign in to comment.