Port libselinux to pcre2

This patch moves all pcre1/2 dependencies into the new files regex.h
and regex.c implementing the common denominator of features needed
by libselinux. The compiler flag -DUSE_PCRE2 toggles between the
used implementations.

As of this patch, libselinux is still built against PCRE.

Bug: 24091652
Change-Id: Iafca54db166666f9e681022a529fd7409f1e4848
6 files changed
tree: 1b850c15ccad2b9f1b9e94c6a890322218749024
  1. include/
  2. src/
  3. utils/
  4. Android.mk
  5. MODULE_LICENSE_PUBLIC_DOMAIN
  6. NOTICE
  7. README.android