Rather than use a custom sed script to replace things in pcap-config,
use the already existing config.status script. This keeps people from
having to update the Makefile.in every time they want to add a new var
to the file.
Also, clean up the pcap-config.in script a bit to set local vars at the
top of the file and then refer to those rather than replacing all things
through out. This makes it easier to tweak on the fly as there is only
line to change rather than trying and figure out all the locations.
Reviewed-By: Guy Harris <guy@alum.mit.edu>
a shared libpcap and add into the archive when making an archive
library. Make V_LIBS in the configure script, and LIBS in the Makefile,
a list of additional libraries with which to link a shared libpcap and
with which to link applications built with a non-shared libpcap.
dynamically-linked libpcap should have been linked with them (if there
are any of them), so it shouldn't be necessary for a program or library
to explicitly link with them if it links with libpcap.
Add a -static flag that includes DEPLIBS, as, on most if not all
platforms, static libraries can't be linked with dynamic libraries, so
programs would have to link with libraries on which libpcap depends if
it links statically with libpcap.
If both --cflags and --libs are given, print both sets of flags, on the
same line (as pkg-config does).