.
[gnulib.git] / m4 / maintainer.m4
1 # Add --enable-maintainer-mode option to configure.
2 # From Jim Meyering
3
4 # serial 1
5
6 AC_DEFUN(AM_MAINTAINER_MODE,
7 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
8   dnl maintainer-mode is disabled by default
9   AC_ARG_ENABLE(maintainer-mode,
10 [  --enable-maintainer-mode enable make rules and dependencies not useful
11                           (and sometimes confusing) to the casual installer],
12       USE_MAINTAINER_MODE=$enableval,
13       USE_MAINTAINER_MODE=no)
14   AC_MSG_RESULT($USE_MAINTAINER_MODE)
15   if test $USE_MAINTAINER_MODE = yes; then
16     MAINT=
17   else
18     MAINT='#M#'
19   fi
20   AC_SUBST(MAINT)dnl
21 ]
22 )