tools/configure: fix pkg-config install path for FreeBSD
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 25 Oct 2016 09:53:28 +0000 (11:53 +0200)
committerWei Liu <wei.liu2@citrix.com>
Wed, 26 Oct 2016 11:37:34 +0000 (12:37 +0100)
commit4000a7c7d7b0e01837abd3918e393f289c07d68c
treee15c41369584b1a56b498fcb3a14523e27575c5e
parent0d250b69eae5d1e8039270c763b05acc84589a8c
tools/configure: fix pkg-config install path for FreeBSD

pkg-config from FreeBSD ports doesn't have ${prefix}/share/pkgconfig in the
default search path, fix this by having a PKG_INSTALLDIR variable that can
be changed on a per-OS basis.

It would be best to use PKG_INSTALLDIR as defined by the pkg.m4 macro, but
sadly this also reports a wrong value on FreeBSD (${libdir}/pkgconfig, which
expands to /usr/local/lib/pkgconfig by default, and is also _not_ part of
the default pkg-config search path).

This patch should not change the behavior for Linux installs.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reported-by: Alexander Nusov <alexander.nusov@nfvexpress.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
config/FreeBSD.mk
config/Paths.mk.in
tools/libxl/Makefile