Detect libpcap dependencies using pkg-config
commit194ec61843b9598ce90873c812b817c4b96e2e0d
authorBaruch Siach <baruch@tkos.co.il>
Thu, 2 Sep 2021 09:56:00 +0000 (2 12:56 +0300)
committerTobias Klauser <tklauser@distanz.ch>
Thu, 2 Sep 2021 13:06:14 +0000 (2 15:06 +0200)
treec3909a9cfd9864802ccf5b07f635f3f5238c26ac
parentdc5783816136f5569622193cdaba22571b20d81e
Detect libpcap dependencies using pkg-config

When building statically the link command line must include all
dependencies of all libraries. libpcap can optionally depend on libnl.
mausezahn can't build statically in this case.

Use pkg-config in configure and in the link command to construct the
library flags we need to link with libpcap.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
configure
mausezahn/Makefile