@@ -3463,9 +3463,6 @@ dnl is set to 'no', we may still want to build some doc targets manually
34633463dnl (so enable the Makefile recipes for those targets if tools are available)
34643464NUT_CHECK_ASCIIDOC
34653465
3466- NUT_REPORT_FEATURE([ requested to build and install documentation] , [ ${nut_with_doc}] , [ ] ,
3467- [ WITH_ASCIIDOC] , [ Define to enable Asciidoc support] )
3468-
34693466DOC_INSTALL_DISTED_MANS=no
34703467KNOWN_UNABLE_MANS=no
34713468
@@ -3496,6 +3493,9 @@ dnl If user passed --with-doc='' they they want nothing, right?
34963493 ;;
34973494esac
34983495
3496+ NUT_REPORT_FEATURE([ requested to build and install documentation] , [ '${nut_with_doc}' => '${nut_doc_build_list}'] , [ ] ,
3497+ [ WITH_ASCIIDOC] , [ Define to enable Asciidoc support] , [ -] )
3498+
34993499if test -z "${abs_srcdir}" ; then
35003500 case "${srcdir}" in
35013501 /*) abs_srcdir="${srcdir}";;
@@ -3574,7 +3574,7 @@ dnl not fail if we have no tools to generate it (so add to SKIP list).
35743574 AC_MSG_RESULT ( no )
35753575 DOC_CANNOTBUILD_LIST="${DOC_CANNOTBUILD_LIST} ${nut_doc_build_target_base}"
35763576 if test "${nut_doc_build_target_flag}" = "yes" ; then
3577- AC_MSG_WARN ( [ Unable to build ${nut_doc_build_target_base} documentation which you requested] )
3577+ AC_MSG_WARN ( [ Unable to build ${nut_doc_build_target_base} documentation which you requested; will reflect on this below ] )
35783578 else
35793579 DOC_SKIPBUILD_LIST="${DOC_SKIPBUILD_LIST} ${nut_doc_build_target_base}"
35803580 fi
@@ -3597,7 +3597,7 @@ dnl not fail if we have no tools to generate it (so add to SKIP list).
35973597 AC_MSG_RESULT ( no )
35983598 DOC_CANNOTBUILD_LIST="${DOC_CANNOTBUILD_LIST} ${nut_doc_build_target_base}"
35993599 if test "${nut_doc_build_target_flag}" = "yes" ; then
3600- AC_MSG_WARN ( [ Unable to build ${nut_doc_build_target_base} documentation which you requested] )
3600+ AC_MSG_WARN ( [ Unable to build ${nut_doc_build_target_base} documentation which you requested; will reflect on this below ] )
36013601 else
36023602 DOC_SKIPBUILD_LIST="${DOC_SKIPBUILD_LIST} ${nut_doc_build_target_base}"
36033603 fi
@@ -3623,7 +3623,7 @@ dnl not fail if we have no tools to generate it (so add to SKIP list).
36233623 AC_MSG_RESULT ( no )
36243624 DOC_CANNOTBUILD_LIST="${DOC_CANNOTBUILD_LIST} ${nut_doc_build_target_base}"
36253625 if test "${nut_doc_build_target_flag}" = "yes" ; then
3626- AC_MSG_WARN ( [ Unable to build ${nut_doc_build_target_base} documentation which you requested] )
3626+ AC_MSG_WARN ( [ Unable to build ${nut_doc_build_target_base} documentation which you requested; will reflect on this below ] )
36273627 else
36283628 DOC_SKIPBUILD_LIST="${DOC_SKIPBUILD_LIST} ${nut_doc_build_target_base}"
36293629 fi
@@ -3660,7 +3660,7 @@ dnl not fail if we have no tools to generate it (so add to SKIP list).
36603660 DOC_CANNOTBUILD_LIST="${DOC_CANNOTBUILD_LIST} ${nut_doc_build_target_base}"
36613661 KNOWN_UNABLE_MANS=yes
36623662 if test "${nut_doc_build_target_flag}" = "yes" ; then
3663- AC_MSG_WARN ( [ Unable to build ${nut_doc_build_target_base} documentation which you requested] )
3663+ AC_MSG_WARN ( [ Unable to build ${nut_doc_build_target_base} documentation which you requested; will reflect on this below ] )
36643664 else
36653665 DOC_SKIPBUILD_LIST="${DOC_SKIPBUILD_LIST} ${nut_doc_build_target_base}"
36663666 if test "${nut_doc_build_target_flag}" = "auto" || test "${nut_doc_build_target_flag}" = "dist-auto" ; then
@@ -3684,28 +3684,30 @@ done
36843684rm -rf "${DOCTESTDIR}"
36853685
36863686AS_IF ( [ test x"${nut_enable_configure_debug}" = xyes] , [
3687- AC_MSG_NOTICE ( [ (CONFIGURE-DEVEL-DEBUG) DOC_BUILD_LIST: '${DOC_BUILD_LIST}'] )
3688- AC_MSG_NOTICE ( [ (CONFIGURE-DEVEL-DEBUG) DOC_CANNOTBUILD_LIST: '${DOC_CANNOTBUILD_LIST}'] )
3689- AC_MSG_NOTICE ( [ (CONFIGURE-DEVEL-DEBUG) DOC_SKIPBUILD_LIST: '${DOC_SKIPBUILD_LIST}'] )
3687+ AC_MSG_NOTICE ( [ (CONFIGURE-DEVEL-DEBUG) DOC_BUILD_LIST: '${DOC_BUILD_LIST}'] )
3688+ AC_MSG_NOTICE ( [ (CONFIGURE-DEVEL-DEBUG) DOC_CANNOTBUILD_LIST: '${DOC_CANNOTBUILD_LIST}'] )
3689+ AC_MSG_NOTICE ( [ (CONFIGURE-DEVEL-DEBUG) DOC_SKIPBUILD_LIST: '${DOC_SKIPBUILD_LIST}'] )
36903690] )
36913691
36923692case "${nut_with_doc}" in
36933693auto)
36943694 if test -n "${DOC_BUILD_LIST}"; then
3695+ dnl # We can build at least one format...
36953696 nut_with_doc="yes"
36963697 else
3698+ dnl # We can not build any formats...
36973699 nut_with_doc="no"
36983700 fi
36993701 ;;
37003702no)
37013703 ;;
3702- *)
3704+ *) dnl # yes, all, skip...
37033705 if test -n "${DOC_CANNOTBUILD_LIST}"; then
37043706 DOC_CANNOTBUILD_LIST_LINES="`echo "${DOC_CANNOTBUILD_LIST}" | tr ' ' '\n' | grep -vE '^$'`"
3705- for DOCTYPE in ${DOC_BUILD_LIST } ; do
3706- if echo "${DOC_CANNOTBUILD_LIST_LINES}" | grep -E "^${DOCTYPE}(=yes)?\$" ; then
3707+ for DOCTYPE in ${nut_doc_build_list } ; do
3708+ if echo "${DOC_CANNOTBUILD_LIST_LINES}" | grep -E "^${DOCTYPE}(=yes)?\$" >/dev/null 2>/dev/null ; then
37073709 AC_MSG_ERROR ( [ Unable to build${DOC_CANNOTBUILD_LIST} documentation (check for 'no' results above)] )
3708- else if echo "${DOC_CANNOTBUILD_LIST_LINES}" | grep -E "^${DOCTYPE}=(skip|auto|dist-auto)\$" ; then
3710+ else if echo "${DOC_CANNOTBUILD_LIST_LINES}" | grep -E "^${DOCTYPE}=(skip|auto|dist-auto)\$" >/dev/null 2>/dev/null ; then
37093711 AC_MSG_NOTICE ( [ Unable to build${DOC_CANNOTBUILD_LIST} documentation (check for 'no' results above), skipping] )
37103712 fi
37113713 fi
@@ -3727,7 +3729,7 @@ esac
37273729AM_CONDITIONAL(WITH_PDF_NONASCII_TITLES, [ test x"$can_build_doc_pdf_nonascii_titles" = xyes] )
37283730
37293731NUT_REPORT_FEATURE([ would build specific documentation format ( s ) ] , [ ${nut_with_doc}] , [ ${DOC_BUILD_LIST}] ,
3730- [ WITH_DOCS] , [ Define to enable overall documentation generation] )
3732+ [ WITH_DOCS] , [ Define to enable overall documentation generation] , [ - ] )
37313733
37323734# To cater for less portable make's, precalculate the target list
37333735# for "make check" in "docs/" here...
0 commit comments