lib: Make pcre, libmagic and hivex libraries optional.
authorRichard Jones <rjones@redhat.com>
Tue, 9 Nov 2010 15:59:40 +0000 (15:59 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 18 Nov 2010 11:34:07 +0000 (11:34 +0000)
commit678876aeefc96cb6e11aae31f279abf64895e6e5
treeaa07644743d5c305653b0d9b0e57c443dcc712d4
parenta60c3d9e7a190120259eda1326d576104d9316e4
lib: Make pcre, libmagic and hivex libraries optional.

This change makes these libraries optional.  If they are not
available at compile time then certain core API features will
be disabled (see below).

This also changes PCRE detection to use pkg-config instead
of the ad hoc autoconf checks.

The large inspect.c file has been split out into separate
function-specific files.

  file-architecture: requires pcre & libmagic
  inspection: requires pcre & hivex

Cherry picked from commit a0b4caa0821b759de01361b7019c9c9c9607027d.
README
configure.ac
po/POTFILES.in
src/Makefile.am
src/filearch.c [new file with mode: 0644]
src/guestfs-internal.h
src/guestfs.c
src/inspect.c
src/listfs.c [new file with mode: 0644]