summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-07-07 15:24:48 -0700
committerMichael Niedermayer <michaelni@gmx.at>2014-07-08 02:08:04 +0200
commitcee98aadb12915a6103306746495b0592573d57a (patch)
tree28c66d35357575af49ed2c6d4c6b1ea48f966309 /configure
parent865a761081869c8a69c74742205916770c840ec6 (diff)
doc: make doxygen program configurable
Signed-off-by: Timothy Gu <timothygu99@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 11 insertions, 1 deletions
diff --git a/configure b/configure
index d5314776bf..a398bb3a14 100755
--- a/configure
+++ b/configure
@@ -286,6 +286,7 @@ Toolchain options:
--pkg-config=PKGCONFIG use pkg-config tool PKGCONFIG [$pkg_config_default]
--pkg-config-flags=FLAGS pass additional flags to pkgconf []
--ranlib=RANLIB use ranlib RANLIB [$ranlib_default]
+ --doxygen=DOXYGEN use DOXYGEN to generate API doc [$doxygen_default]
--host-cc=HOSTCC use host C compiler HOSTCC
--host-cflags=HCFLAGS use HCFLAGS when compiling for host
--host-cppflags=HCPPFLAGS use HCPPFLAGS when compiling for host
@@ -1877,6 +1878,7 @@ CMDLINE_SET="
cross_prefix
cxx
dep_cc
+ doxygen
extra_version
gas
host_cc
@@ -2618,6 +2620,7 @@ cc_default="gcc"
cxx_default="g++"
host_cc_default="gcc"
cp_f="cp -f"
+doxygen_default="doxygen"
install="install"
ln_s="ln -s -f"
nm_default="nm -g"
@@ -2994,7 +2997,8 @@ case "$toolchain" in
;;
esac
-set_default arch cc cxx pkg_config ranlib strip sysinclude target_exec target_os yasmexe
+set_default arch cc cxx doxygen pkg_config ranlib strip sysinclude \
+ target_exec target_os yasmexe
enabled cross_compile || host_cc_default=$cc
set_default host_cc
@@ -3003,6 +3007,11 @@ if ! $pkg_config --version >/dev/null 2>&1; then
pkg_config=false
fi
+if test $doxygen != $doxygen_default && \
+ ! $doxygen --version >/dev/null 2>&1; then
+ warn "Specified doxygen \"$doxygen\" not found, API documentation will fail to build."
+fi
+
exesuf() {
case $1 in
mingw32*|win32|win64|cygwin*|*-dos|freedos|opendos|os/2*|symbian) echo .exe ;;
@@ -5388,6 +5397,7 @@ LD_PATH=$LD_PATH
DLLTOOL=$dlltool
WINDRES=$windres
DEPWINDRES=$dep_cc
+DOXYGEN=$doxygen
LDFLAGS=$LDFLAGS
SHFLAGS=$(echo $($ldflags_filter $SHFLAGS))
ASMSTRIPFLAGS=$ASMSTRIPFLAGS