summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2016-03-02 10:21:45 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2016-03-02 10:24:11 -0800
commitd5a18a93270bfc8c36e40910f8520b3738a91f43 (patch)
tree9b1ec350299e142d4431ca7da9d519e80c0ca366 /configure.ac
parenta59a4bd47a9435fed49213d9613cce7aba193da7 (diff)
Remove build system name from deterministic dumps
* configure.ac (DETERMINISTIC_DUMP): New configuration option. * lisp/version.el (emacs-build-time): Add a comment to make the build time deterministic if requested. (emacs-build-system): Make variable deterministic if requested. * src/emacs.c (main): Initialize `deterministic-dump' from the configuration option. (syms_of_emacs): New constant `deterministic-dump'. * src/sysdep.c (init_system_name): Use a constant if a deterministic dump is requested.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 48d9df1426..ad90ce8b6c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -546,6 +546,19 @@ AC_ARG_ENABLE(gtk-deprecation-warnings,
[Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0])],
[ac_enable_gtk_deprecation_warnings="${enableval}"],[])
+AC_ARG_ENABLE(deterministic-dump,
+[AS_HELP_STRING([--enable-deterministic-dump],
+ [Make dumping deterministic by removing system-specific
+ information from the dump, such as host names and
+ timestamps.])])
+if test "x${enableval}" = xno ; then
+ AC_DEFINE(DETERMINISTIC_DUMP, false,
+ [Set this to true to make dumping deterministic.])
+else
+ AC_DEFINE(DETERMINISTIC_DUMP, true,
+ [Set this to true to make dumping deterministic.])
+fi
+
dnl This used to use changequote, but, apart from 'changequote is evil'
dnl per the autoconf manual, we can speed up autoconf somewhat by quoting
dnl the great gob of text. Thus it's not processed for possible expansion.