When maintainer mode is enabled (./configure --enable-maintainer-mode)
it enables rebuild of documentation source files that require extra
tools to be installed or compiled. For a convenience, those files are
already committed into the repository and their rebuild is not required
to build BIND 9 from sources.
AC_CONFIG_MACRO_DIR([m4])
#
-# Enable maintainer mode by default, but allow to disable it in the CI
+# Enable maintainer mode by default only when building from git repository
#
-AM_MAINTAINER_MODE([enable])
+AM_MAINTAINER_MODE([m4_ifset([bind_SRCID],[enable],[disable])])
# Set the library versions
# https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html