Merge pull request #190 from havardgraff/master

Add configure-option to disable building docs
This commit is contained in:
Anthony Green
2016-02-20 06:50:29 -05:00
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