From 3fa6f4b4c400c7354e05ac7bae128d4d9ee30e5c Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Mon, 14 Oct 2013 15:00:12 -0700 Subject: Add infrastructure for debug pretty printers --- configure | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 584f965..838cb34 100755 --- a/configure +++ b/configure @@ -55,6 +55,14 @@ class Configuration(Cxx, Flex, Bison, Install, ConfigHash, Templates): self.add_alias('--dev', ['--user', '--enable-warnings', '--enable-abi6'], help=None, hidden=False) + def paths(self): + super(Configuration, self).paths() + + self.add_option('--debugdir', init='/', + type=filepath, check=lambda build, DIR: None, + help='root for split debug files (often /usr/lib/debug)', hidden=False, + help_var='DIR') + def features(self): super(Configuration, self).features() # TODO: check VERSION_CONTROL environment variable? @@ -75,6 +83,9 @@ class Configuration(Cxx, Flex, Bison, Install, ConfigHash, Templates): self.add_bool_feature('compat-symlinks', init='yes', check=lambda build, ENABLE_COMPAT_SYMLINKS: None, help='Install symlinks to avoid breaking old scripts') + self.add_bool_feature('debug', init='yes', + check=lambda build, ENABLE_DEBUG: None, + help='Install extra files useful for debugging') def vars(self): super(Configuration, self).vars() -- cgit v1.2.3-70-g09d2