Link Here
|
|
|
1 |
configure.in | 21 ++++++++++++++++++--- |
2 |
1 files changed, 18 insertions(+), 3 deletions(-) |
3 |
|
4 |
diff --git a/configure.in b/configure.in |
5 |
index 1908249..bf5d129 100644 |
6 |
--- a/configure.in |
7 |
+++ b/configure.in |
8 |
@@ -194,10 +194,24 @@ AC_SUBST(Z_LIBS)], AC_MSG_ERROR([*** zlib is required])) |
9 |
dnl ==================================== |
10 |
dnl = lzmadec for help converters |
11 |
dnl ==================================== |
12 |
+ |
13 |
+AC_ARG_ENABLE([lzma], |
14 |
+ AC_HELP_STRING([--enable-lzma], |
15 |
+ [Enable lzma support @<:@default=yes@:>@]), |
16 |
+ enable_lzma=$enableval, enable_lzma=yes) |
17 |
+ |
18 |
LZMADEC_LIBS= |
19 |
-AC_CHECK_LIB(lzmadec, lzmadec_open, [LZMADEC_LIBS=-llzmadec |
20 |
- AC_DEFINE(HAVE_LIBLZMADEC, 1, [Compile with liblzmadec support])]) |
21 |
-AC_SUBST(LZMADEC_LIBS) |
22 |
+if test x$enable_lzma = xyes; then |
23 |
+ AC_CHECK_LIB(lzmadec, lzmadec_open, |
24 |
+ [LZMADEC_LIBS=-llzmadec |
25 |
+ AC_DEFINE(HAVE_LIBLZMADEC, 1, [Compile with liblzmadec support])]) |
26 |
+ |
27 |
+ if test x$LZMADEC_LIBS != x-llzmadec; then |
28 |
+ enable_lzma=no |
29 |
+ fi |
30 |
+ |
31 |
+ AC_SUBST(LZMADEC_LIBS) |
32 |
+fi |
33 |
|
34 |
dnl ==================================== |
35 |
dnl = Bzip2, for the help converters |
36 |
@@ -289,6 +303,7 @@ yelp-$VERSION: |
37 |
compiler: ${CC} |
38 |
|
39 |
Debug enabled: ${enable_debug} |
40 |
+ lzma enabled: ${enable_lzma} |
41 |
Search backend: ${search_backend} |
42 |
Mozilla version: ${MOZILLA} |
43 |
" |