summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2014-04-25 17:44:26 +0300
committerLasse Collin <lasse.collin@tukaani.org>2014-04-26 08:47:36 +0300
commitba3b5dd082db2cb5973e877a74221d739c663fb4 (patch)
tree84b9f274994f8969b8fc40bf7ea83fb127f3cb60
parent3d4575f2367fe8f1f2dcacba014e6c0aef388535 (diff)
downloadxz-ba3b5dd082db2cb5973e877a74221d739c663fb4.tar.gz
Build: Add --disable-doc to configure.
-rw-r--r--INSTALL6
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac6
3 files changed, 14 insertions, 0 deletions
diff --git a/INSTALL b/INSTALL
index bdbde66..ba1939a 100644
--- a/INSTALL
+++ b/INSTALL
@@ -253,6 +253,12 @@ XZ Utils Installation
Don't install the scripts xzdiff, xzgrep, xzmore, xzless,
and their symlinks.
+ --disable-doc
+ Don't install the documentation files to $docdir
+ (often /usr/doc/xz or /usr/local/doc/xz). Man pages
+ will still be installed. The $docdir can be changed
+ with --docdir=DIR.
+
--disable-assembler
liblzma includes some assembler optimizations. Currently
there is only assembler code for CRC32 and CRC64 for
diff --git a/Makefile.am b/Makefile.am
index 8aa6dfc..51cc56f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -17,6 +17,7 @@ endif
SUBDIRS += src po tests
+if COND_DOC
dist_doc_DATA = \
AUTHORS \
COPYING \
@@ -42,6 +43,7 @@ examplesolddir = $(docdir)/examples_old
dist_examplesold_DATA = \
doc/examples_old/xz_pipe_comp.c \
doc/examples_old/xz_pipe_decomp.c
+endif
EXTRA_DIST = \
extra \
diff --git a/configure.ac b/configure.ac
index 541181f..0fd8c1e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -402,6 +402,12 @@ AC_ARG_ENABLE([scripts], [AC_HELP_STRING([--disable-scripts],
[], [enable_scripts=yes])
AM_CONDITIONAL([COND_SCRIPTS], [test x$enable_scripts != xno])
+AC_ARG_ENABLE([doc], [AC_HELP_STRING([--disable-doc],
+ [do not install documentation files to docdir
+ (man pages will still be installed)])],
+ [], [enable_doc=yes])
+AM_CONDITIONAL([COND_DOC], [test x$enable_doc != xno])
+
###############################################################################
# Checks for programs.