summaryrefslogtreecommitdiff
path: root/xdelta3
diff options
context:
space:
mode:
authorJoshua MacDonald <josh.macdonald@gmail.com>2015-05-02 22:20:35 -0700
committerJoshua MacDonald <josh.macdonald@gmail.com>2015-05-02 22:20:35 -0700
commit7b1623ee69fd80034a5772e1ac7523af1375ddb9 (patch)
treef99264cffd748ccea4b1a03cac51cfe27e346571 /xdelta3
parent9095fce2a9cb614f5e6fbb8b91801236aa5f5510 (diff)
parentadcba8bb76667f648fbeac099ad1f014a781b228 (diff)
Pulling this
Diffstat (limited to 'xdelta3')
-rw-r--r--xdelta3/configure.ac22
1 files changed, 20 insertions, 2 deletions
diff --git a/xdelta3/configure.ac b/xdelta3/configure.ac
index ffec737..b6f5f1b 100644
--- a/xdelta3/configure.ac
+++ b/xdelta3/configure.ac
@@ -8,8 +8,26 @@ AM_INIT_AUTOMAKE([1.9 no-define foreign tar-ustar subdir-objects])
8AX_CHECK_ALIGNED_ACCESS_REQUIRED 8AX_CHECK_ALIGNED_ACCESS_REQUIRED
9AC_PROG_CC 9AC_PROG_CC
10AC_PROG_CXX 10AC_PROG_CXX
11AC_CHECK_HEADERS([lzma.h]) 11
12AC_CHECK_LIB(lzma, lzma_easy_buffer_encode) 12AC_ARG_WITH(
13 [liblzma],
14 [AC_HELP_STRING(
15 [--with-liblzma],
16 [build with liblzma support @<:@default=autodetect@:>@])],
17 [USE_LIBLZMA=$withval],
18 [USE_LIBLZMA=auto])
19
20if test "x$USE_LIBLZMA" != xno ; then
21 AC_CHECK_HEADERS([lzma.h],,[
22 if test "x$with_liblzma" = xyes ; then
23 AC_MSG_FAILURE([liblzma includes were not found])
24 fi])
25 AC_CHECK_LIB([lzma], [lzma_easy_buffer_encode],,[
26 if test "x$with_liblzma" = xyes ; then
27 AC_MSG_FAILURE([liblzma library were not found])
28 fi])
29fi
30
13AC_CHECK_SIZEOF(size_t) 31AC_CHECK_SIZEOF(size_t)
14AC_CHECK_SIZEOF(unsigned int) 32AC_CHECK_SIZEOF(unsigned int)
15AC_CHECK_SIZEOF(unsigned long) 33AC_CHECK_SIZEOF(unsigned long)