mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
Build System: Fix --disable-xmldoc option.
The configure option to disable XML documentation does not currently work. This patch makes it effective, but also causes an ABI change by removing the ast_xmldoc_* symbols. Disabling xmldoc also prevents docs from being automatically generated, but they can still be manually generated with 'make doc/core-en_US.xml'. ASTERISK-26639 Change-Id: Ifac562340c09f80c83e0203de098fcac93bf8c44
This commit is contained in:
13
configure
vendored
13
configure
vendored
@@ -718,6 +718,7 @@ PBX_DYNAMIC_LIST
|
||||
POW_LIB
|
||||
PBX_WORKING_FORK
|
||||
LIBOBJS
|
||||
DISABLE_XMLDOC
|
||||
CONFIG_LIBXML2
|
||||
UUID_LIB
|
||||
UUID_INCLUDE
|
||||
@@ -14660,16 +14661,20 @@ fi
|
||||
# Check whether --enable-xmldoc was given.
|
||||
if test "${enable_xmldoc+set}" = set; then :
|
||||
enableval=$enable_xmldoc; case "${enableval}" in
|
||||
y|ye|yes) disable_xmldoc=no ;;
|
||||
n|no) disable_xmldoc=yes ;;
|
||||
y|ye|yes) DISABLE_XMLDOC=no ;;
|
||||
n|no) DISABLE_XMLDOC=yes ;;
|
||||
*) as_fn_error $? "bad value ${enableval} for --disable-xmldoc" "$LINENO" 5 ;;
|
||||
esac
|
||||
else
|
||||
disable_xmldoc=no
|
||||
DISABLE_XMLDOC=no
|
||||
fi
|
||||
|
||||
|
||||
if test "${disable_xmldoc}" != "yes"; then
|
||||
|
||||
if test "${DISABLE_XMLDOC}" != "yes"; then
|
||||
|
||||
$as_echo "#define AST_XML_DOCS 1" >>confdefs.h
|
||||
|
||||
|
||||
if test "x${PBX_LIBXSLT}" != "x1" -a "${USE_LIBXSLT}" != "no"; then
|
||||
pbxlibdir=""
|
||||
|
Reference in New Issue
Block a user