summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2005-03-04 16:45:54 +0000
committerJan Djärv <jan.h.d@swipnet.se>2005-03-04 16:45:54 +0000
commitd0098f13fb6b610882b26be3d5356ab753a32e31 (patch)
tree8130e9260575c60da8f0761a90177e323a5ec68f /configure.in
parent524352d621cb5143c7c7cb0ccee2c913eedeec7f (diff)
downloademacs-d0098f13fb6b610882b26be3d5356ab753a32e31.tar.gz
* configure.in: Added --enable-asserts.
* configure: Regenerate.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in21
1 files changed, 11 insertions, 10 deletions
diff --git a/configure.in b/configure.in
index 0be1a465962..a23b28f0cf8 100644
--- a/configure.in
+++ b/configure.in
@@ -125,6 +125,11 @@ AC_ARG_ENABLE(carbon-app,
specify install directory for Emacs.app on Mac OS X]],
[ carbon_appdir_x=${enableval}])
+AC_ARG_ENABLE(asserts,
+[ --enable-asserts compile code with asserts enabled],
+ USE_XASSERTS=$enableval,
+ USE_XASSERTS=no)
+
AC_ARG_ENABLE(maintainer-mode,
[ --enable-maintainer-mode enable make rules and dependencies not useful
(and sometimes confusing) to the casual installer],
@@ -3096,18 +3101,14 @@ echo " Does Emacs use -lpng? ${HAVE_PNG}"
echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
echo
-if test "$emacs_cv_randomheap" = warn; then
- AC_MSG_WARN([
-**********************************************************************
+if test $USE_XASSERTS = yes; then
+ echo " Compiling with asserts turned on."
+ CFLAGS="$CFLAGS -DXASSERTS=1"
+ CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
+ echo
+fi
-Heap start address is randomized and no workaround is known.
-Emacs will probably dump core when temacs is run in the build phase.
-Maybe exec-shield is turned on. Read about exec-shield in `etc/PROBLEMS'
-for further information.
-**********************************************************************
-])
-fi
# Remove any trailing slashes in these variables.
[test "${prefix}" != NONE &&