summaryrefslogtreecommitdiff
path: root/gdb/aclocal.m4
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-04-13 05:33:41 +0000
committerAndrew Cagney <cagney@redhat.com>2000-04-13 05:33:41 +0000
commitbb97001bd6781eb65d1b3323c70aa609c0500053 (patch)
tree92ef0bb8eeae016ccec9bc690d4d027103338381 /gdb/aclocal.m4
parent853571402b1d5cb69164dde0c0a9d104b4638c73 (diff)
downloadgdb-bb97001bd6781eb65d1b3323c70aa609c0500053.tar.gz
Only re-generate copying.c when maintainer mode.
Diffstat (limited to 'gdb/aclocal.m4')
-rw-r--r--gdb/aclocal.m433
1 files changed, 33 insertions, 0 deletions
diff --git a/gdb/aclocal.m4 b/gdb/aclocal.m4
index 1a1183223c1..de9e2d5e5a0 100644
--- a/gdb/aclocal.m4
+++ b/gdb/aclocal.m4
@@ -872,6 +872,39 @@ dnl AC_SUBST(TIX_BUILD_INCLUDES)
dnl AC_SUBST(TIX_LIB_SPEC)
])
+# 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
+]
+)
+
+# Define a conditional.
+
+AC_DEFUN(AM_CONDITIONAL,
+[AC_SUBST($1_TRUE)
+AC_SUBST($1_FALSE)
+if $2; then
+ $1_TRUE=
+ $1_FALSE='#'
+else
+ $1_TRUE='#'
+ $1_FALSE=
+fi])
+
# serial 1