summaryrefslogtreecommitdiff
path: root/dmake/aclocal.m4
diff options
context:
space:
mode:
Diffstat (limited to 'dmake/aclocal.m4')
-rwxr-xr-xdmake/aclocal.m420
1 files changed, 20 insertions, 0 deletions
diff --git a/dmake/aclocal.m4 b/dmake/aclocal.m4
index 8a9e9015a70c..e15fbf32a326 100755
--- a/dmake/aclocal.m4
+++ b/dmake/aclocal.m4
@@ -505,3 +505,23 @@ else
$1_FALSE=
fi])
+# 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])
+ AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
+ MAINT=$MAINTAINER_MODE_TRUE
+ AC_SUBST(MAINT)dnl
+]
+)
+