summaryrefslogtreecommitdiffstats
path: root/aclocal.m4
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2005-02-02 20:59:46 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2005-02-02 20:59:46 (GMT)
commitab243bf369012a88eab45c95b0ea8e96890a3b69 (patch)
tree192fcb53e9e0110f26c88da6d369ca4e58cbf725 /aclocal.m4
parent42d126fa4e174d1f2749ee56275180da99f472a5 (diff)
downloadhdf5-ab243bf369012a88eab45c95b0ea8e96890a3b69.zip
hdf5-ab243bf369012a88eab45c95b0ea8e96890a3b69.tar.gz
hdf5-ab243bf369012a88eab45c95b0ea8e96890a3b69.tar.bz2
[svn-r9920] Purpose:
Bug fix Description: Found the permanant fix to automake/CVS dependency problem Solution: Added AM_MAINTAINER_MODE macro to configure.in. Now automake will never try to regenerate Makefiles, Makefiles.in, configure, H5config.h, etc. when they are out of date, nor will it print any warnings. Developers should be very very careful to use reconfigure script, and can add --enable-maintainer-mode flag to configure on heping to regenerate these files correctly. Platforms tested: heping sleipnir copper
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m437
1 files changed, 37 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index eacda92..3dc7589 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -834,6 +834,43 @@ AC_CONFIG_COMMANDS_PRE(
Usually this means the macro was only invoked conditionally.])
fi])])
+# Add --enable-maintainer-mode option to configure.
+# From Jim Meyering
+
+# Copyright 1996, 1998, 2000, 2001 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+# 02111-1307, USA.
+
+# 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
+]
+)
+
# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
# serial 46 AC_PROG_LIBTOOL