aboutsummaryrefslogtreecommitdiff
path: root/auto.def
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2016-10-09 20:00:08 +1000
committerSteve Bennett <steveb@workware.net.au>2016-10-09 20:00:08 +1000
commit00fb0474d517db114375b5e979d7f8cbb8b71b57 (patch)
tree094ac7c86d49aec02b834288ff06d855489bf653 /auto.def
parent4280c1c51fbe4ad8f7349ab74371e20226799b0f (diff)
downloadjimtcl-00fb0474d517db114375b5e979d7f8cbb8b71b57.zip
jimtcl-00fb0474d517db114375b5e979d7f8cbb8b71b57.tar.gz
jimtcl-00fb0474d517db114375b5e979d7f8cbb8b71b57.tar.bz2
docs: Only try to build Tcl.html if asciidoc is found
Otherwise install the shipped docs with a warning. Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'auto.def')
-rw-r--r--auto.def11
1 files changed, 11 insertions, 0 deletions
diff --git a/auto.def b/auto.def
index 21348b8..2f694bd 100644
--- a/auto.def
+++ b/auto.def
@@ -146,6 +146,17 @@ switch -glob -- $host_os {
cc-check-tools ar ranlib strip
define tclsh [info nameofexecutable]
+if {[opt-bool docs]} {
+ if {[cc-check-progs asciidoc]} {
+ define INSTALL_DOCS docs
+ define HAVE_ASCIIDOC
+ } else {
+ define INSTALL_DOCS shipped
+ }
+} else {
+ define INSTALL_DOCS nodocs
+}
+
if {![cc-check-functions _NSGetEnviron]} {
msg-checking "Checking environ declared in unistd.h..."
if {[cctest -cflags {-D_GNU_SOURCE -D_POSIX_SOURCE} -includes unistd.h -code {char **ep = environ;}]} {