summaryrefslogtreecommitdiff
path: root/acprep
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-03-11 19:15:16 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-03-11 19:15:16 -0400
commitf2eb941ab6ffdb00c9af226e858f456a7d16c96f (patch)
treee7711413687a0cc3830eab60146272676e3594bf /acprep
parent97784f72a29a48e204489bdd1bcc79b87563d1f9 (diff)
downloadfork-ledger-f2eb941ab6ffdb00c9af226e858f456a7d16c96f.tar.gz
fork-ledger-f2eb941ab6ffdb00c9af226e858f456a7d16c96f.tar.bz2
fork-ledger-f2eb941ab6ffdb00c9af226e858f456a7d16c96f.zip
Fixed the acprep distcheck build
Diffstat (limited to 'acprep')
-rwxr-xr-xacprep21
1 files changed, 7 insertions, 14 deletions
diff --git a/acprep b/acprep
index 49715cba..47626e2c 100755
--- a/acprep
+++ b/acprep
@@ -1182,28 +1182,21 @@ class PrepareBuild(CommandLineApp):
environ, conf_args = self.configure_environment()
- make_args = list(args)
- make_args.append('CPPFLAGS=%s' % string.join(self.CPPFLAGS, ' '))
- make_args.append('CXXFLAGS=%s' % string.join(self.CXXFLAGS, ' '))
- make_args.append('ARCHFLAGS=%s' % string.join(self.ARCHFLAGS, ' '))
- make_args.append('LDFLAGS=%s' % string.join(self.LDFLAGS, ' '))
+ configure_args = []
- configure_flags = []
skip_next = False
- for arg in conf_args:
+ for arg in conf_args[2:]: # skip "sh configure"
if arg == '--srcdir':
skip_next = True
- continue
elif skip_next:
skip_next = False
- continue
+ else:
+ configure_args.append('"' + self.escape_string(arg) + '"')
- if arg.startswith('--'):
- configure_flags.append(arg)
+ make_args = ['DISTCHECK_CONFIGURE_FLAGS=%s' %
+ string.join(configure_args, ' '), 'distcheck']
- make_args.append('DISTCHECK_CONFIGURE_FLAGS=%s' %
- string.join(configure_flags, ' '))
- make_args.append('distcheck')
+ self.log.debug('make_args for distcheck => ' + str(make_args))
self.phase_make(*make_args)