aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2006-04-23 17:57:59 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2006-04-23 17:57:59 +0000
commitcc8ae6de58eb6cd8748197442bbcdc165b5f87a2 (patch)
treee565deddd2339eb6e59e51261928522a720a7d35 /configure
parentd0ecd2aaf9ecc2c434eed4c5de7917787476223e (diff)
downloadqemu-cc8ae6de58eb6cd8748197442bbcdc165b5f87a2.zip
qemu-cc8ae6de58eb6cd8748197442bbcdc165b5f87a2.tar.gz
qemu-cc8ae6de58eb6cd8748197442bbcdc165b5f87a2.tar.bz2
Autodetect tools neccessary for building documentation.
Make distclean remove generated documentation files. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1834 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index 3564617..120e03d 100755
--- a/configure
+++ b/configure
@@ -94,6 +94,7 @@ check_gfx="yes"
check_gcc="yes"
softmmu="yes"
user="no"
+build_docs="no"
# OS specific
targetos=`uname -s`
@@ -427,6 +428,11 @@ fi # sdl compile test
fi # cross compilation
fi # -z $sdl
+# Check if tools are available to build documentation.
+if [ ! -z `which texi2html` ] && [ ! -z `which pod2man` ]; then
+ build_docs="yes"
+fi
+
if test "$mingw32" = "yes" ; then
if test -z "$prefix" ; then
prefix="/c/Program Files/Qemu"
@@ -489,6 +495,7 @@ else
fi
echo "FMOD support $fmod $fmod_support"
echo "kqemu support $kqemu"
+echo "Documentation $build_docs"
if test $sdl_too_old = "yes"; then
echo "-> Your SDL version is too old - please upgrade to have SDL support"
@@ -632,6 +639,9 @@ if [ "$source_path_used" = "yes" ]; then
echo "VPATH=$source_path" >> $config_mak
fi
echo "TARGET_DIRS=$target_list" >> $config_mak
+if [ "$build_docs" = "yes" ] ; then
+ echo "BUILD_DOCS=yes" >> $config_mak
+fi
# XXX: suppress that
if [ "$bsd" = "yes" ] ; then