diff options
Diffstat (limited to 'm4/maintainer.m4')
-rw-r--r-- | m4/maintainer.m4 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/m4/maintainer.m4 b/m4/maintainer.m4 new file mode 100644 index 000000000..5d9a7658b --- /dev/null +++ b/m4/maintainer.m4 @@ -0,0 +1,22 @@ +# Add --enable-maintainer-mode option to configure. +# From Jim Meyering + +# serial 1 + +AC_DEFUN(AM_MAINTAINER_MODE, +[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) + dnl maintainer-mode is disabled by default + AC_ARG_ENABLE(maintainer-mode, +[ --enable-maintainer-mode enable make rules and dependencies not useful + (and sometimes confusing) to the casual installer], + USE_MAINTAINER_MODE=$enableval, + USE_MAINTAINER_MODE=no) + AC_MSG_RESULT($USE_MAINTAINER_MODE) + if test $USE_MAINTAINER_MODE = yes; then + MAINT= + else + MAINT='#M#' + fi + AC_SUBST(MAINT)dnl +] +) |