libarchive 3.1.2 (reduced)

Extract upstream libarchive using the following shell code.

url=git://github.com/libarchive/libarchive.git &&
v=3.1.2 &&
r=19f23e19 &&
paths="
  CMakeLists.txt
  COPYING
  CTestConfig.cmake
  build/cmake
  build/pkgconfig
  build/utils
  build/version
  libarchive/*.*
" &&
mkdir libarchive-$v-g$r-reduced &&
git clone $url libarchive-git &&
date=$(cd libarchive-git && git log -n 1 --format='%cd' $r) &&
(cd libarchive-git && git archive --format=tar $r -- $paths) |
(cd libarchive-$v-g$r-reduced && tar xv) &&
echo "g$r date: $date"
Merge branch 'libarchive-upstream' into update-libarchive

Conflicts:
	Utilities/cmlibarchive/CMakeLists.txt
	Utilities/cmlibarchive/libarchive/archive.h
	Utilities/cmlibarchive/libarchive/archive_entry.h
	Utilities/cmlibarchive/libarchive/archive_read_disk_posix.c
	Utilities/cmlibarchive/libarchive/archive_read_support_format_iso9660.c
	Utilities/cmlibarchive/libarchive/archive_windows.h
	Utilities/cmlibarchive/libarchive/archive_write_set_format_iso9660.c
libarchive: Update README-CMake.txt for new snapshot
libarchive: Include cm_zlib.h to get zlib used by CMake

Follow up change from commit ffa6faa4 (libarchive: Include cm_zlib.h to
get zlib used by CMake, 2011-12-20) for new includes of zlib.h in
updated libarchive.
libarchive: Silence API deprecation warnings

CMake uses old libarchive APIs for now.
libarchive: Avoid struct init with variable on Borland

The Borland C compiler does not like struct initialization with variables.
Use constant initialization followed by assignment on this compiler.
libarchive: Remove build options not used by CMake

Drop options POSIX_REGEX_LIB and ENABLE_SAFESEH that we do not want for
the CMake build of libarchive.
libarchive: Avoid requiring CMake 2.8.6 for CMakePushCheckState

Include the module from our own source tree directly.
Merge topic 'update-libarchive' into next

44d5823 libarchive: Avoid requiring CMake 2.8.6 for CMakePushCheckState
cb9ce37 libarchive: Remove build options not used by CMake
a2dca0f libarchive: Avoid struct init with variable on Borland
801bbbe libarchive: Silence API deprecation warnings
a971aea libarchive: Include cm_zlib.h to get zlib used by CMake
6cbe287 libarchive: Update README-CMake.txt for new snapshot
7a89884 Merge branch 'libarchive-upstream' into update-libarchive
0ce4204 libarchive 3.1.2 (reduced)