Added missing configure script.

This commit is contained in:
David Anderson 2009-08-29 19:50:52 -07:00
parent debfaebda8
commit 6e264b6eea
2 changed files with 12 additions and 0 deletions

10
configure.py Normal file
View File

@ -0,0 +1,10 @@
# vim: set ts=2 sw=2 tw=99 noet:
import sys
import ambuild.runner as runner
run = runner.Runner()
run.options.add_option('--enable-debug', action='store_const', const='1', dest='debug',
help='Enable debugging symbols')
run.options.add_option('--enable-optimize', action='store_const', const='1', dest='opt',
help='Enable optimization')
run.Configure(sys.path[0])

View File

@ -51,6 +51,8 @@ if ($reconf) {
print "$result\n";
if ($? == -1) {
die('Could not configure!');
} elsif ($? >> 8 != 0) {
die('Could not configure!');
}
}