summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDaniel Burrows <dburrows@debian.org>2009-06-25 07:34:34 -0700
committerDaniel Burrows <dburrows@debian.org>2009-06-25 07:34:34 -0700
commit41f427332ccef38100a5ed527d4591684316e9f4 (patch)
treef8e85cdc0964e9821933220ca21da1c3a2a31d2f /configure.ac
parented55a41d8b2079d64d6435d614c58d9f7cd35af7 (diff)
downloadaptitude-41f427332ccef38100a5ed527d4591684316e9f4.tar.gz
Add sanity-checks to problemresolver.h.
These are expensive and compiled out by default, but useful for empirically verifying that the resolver isn't going wrong. Right now it is.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 42c46e8c..30d8dda3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -340,6 +340,14 @@ AC_ARG_ENABLE(docs,
fi,
DOCDIRS=doc)
+AC_ARG_ENABLE(resolver-sanity-checks,
+ AS_HELP_STRING([--enable-resolver-sanity-checks], [enable expensive internal sanity-checks in the dependency resolver]),
+ if test x$enableval=xyes
+ then
+ [AC_DEFINE(ENABLE_RESOLVER_SANITY_CHECKS, , [Enable expensive internal sanity-checks in the dependency resolver.])]
+ fi
+ )
+
CXXFLAGS="$CXXFLAGS -Wall $WERROR"
AC_SUBST(SRCDIRS)