diff options
author | Steve Bennett <steveb@workware.net.au> | 2016-10-09 20:00:08 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2016-10-09 20:00:08 +1000 |
commit | 00fb0474d517db114375b5e979d7f8cbb8b71b57 (patch) | |
tree | 094ac7c86d49aec02b834288ff06d855489bf653 /auto.def | |
parent | 4280c1c51fbe4ad8f7349ab74371e20226799b0f (diff) | |
download | jimtcl-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.def | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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;}]} { |