From cf1370f1c116848ab4a454195f03b8007dd87a73 Mon Sep 17 00:00:00 2001 From: lloyd Date: Wed, 1 Jul 2009 23:57:15 +0000 Subject: Handle the local config option --- configure.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.py b/configure.py index fe0abf615..64e25d415 100755 --- a/configure.py +++ b/configure.py @@ -41,6 +41,9 @@ def process_command_line(args): parser.add_option("--docdir", dest="docdir", default="docdir", help="set the documentation installation directory") + parser.add_option("--with-local-config", dest="local_config", metavar="FILE", + help="include the contents of FILE into build.h") + compat_with_autoconf_options = [ "bindir", "datadir", @@ -298,7 +301,9 @@ def create_template_vars(options, modules, cc, arch, osinfo): vars['target_cpu_defines'] = arch.defines(options.cpu) vars['target_compiler_defines'] = cc.defines() - vars['local_config'] = "NO LOCAL CONFIG FOR YOU" + vars['local_config'] = "" + if options.local_config != None: + vars['local_config'] = ''.join(open(options.local_config).readlines()) vars['cc'] = cc.binary_name vars['lib_opt'] = cc.lib_opt_flags -- cgit v1.2.3