Add configure-option to disable building docs

This commit is contained in:
Havard Graff
2015-05-12 10:45:13 +02:00
parent 17ffc3655a
commit fa7a257113
2 changed files with 12 additions and 1 deletions

View File

@@ -15,7 +15,11 @@ EXTRA_DIST = LICENSE ChangeLog.v1 ChangeLog.libgcj \
libffi.xcodeproj/project.pbxproj \
libtool-ldflags
info_TEXINFOS = doc/libffi.texi
info_TEXINFOS =
if BUILD_DOCS
#info_TEXINFOS += doc/libffi.texi
endif
## ################################################################

View File

@@ -282,6 +282,13 @@ if test "x$GCC" = "xyes"; then
fi
fi
AC_ARG_ENABLE(docs,
AC_HELP_STRING([--disable-docs],
[Disable building of docs (default: no)]),
[enable_docs=no],
[enable_docs=yes])
AM_CONDITIONAL(BUILD_DOCS, [test x$enable_docs = xyes])
AH_BOTTOM([
#ifdef HAVE_HIDDEN_VISIBILITY_ATTRIBUTE
#ifdef LIBFFI_ASM