Adjust enabling and disabling of options again
This commit is contained in:
parent
e9ee1bcfbe
commit
e19d038b53
1 changed files with 8 additions and 4 deletions
6
wscript
6
wscript
|
@ -117,14 +117,16 @@ def configure (conf):
|
|||
if option_enabled ('unique'):
|
||||
check_pkg ('unique-1.0', '0.9', False)
|
||||
unique = ['N/A', 'yes'][conf.env['HAVE_UNIQUE'] == 1]
|
||||
else:
|
||||
if unique != 'yes':
|
||||
option_checkfatal ('unique', 'single instance')
|
||||
else:
|
||||
unique = 'no '
|
||||
conf.define ('HAVE_UNIQUE', [0,1][unique == 'yes'])
|
||||
|
||||
if option_enabled ('libidn'):
|
||||
check_pkg ('libidn', '1.0', False)
|
||||
libidn = ['N/A','yes'][conf.env['HAVE_LIBIDN'] == 1]
|
||||
if libidn != 'yes':
|
||||
option_checkfatal ('libidn', 'international domain names')
|
||||
else:
|
||||
libidn = 'no '
|
||||
|
@ -133,6 +135,7 @@ def configure (conf):
|
|||
if option_enabled ('sqlite'):
|
||||
check_pkg ('sqlite3', '3.0', False, var='SQLITE')
|
||||
sqlite = ['N/A','yes'][conf.env['HAVE_SQLITE'] == 1]
|
||||
if sqlite != 'yes':
|
||||
option_checkfatal ('sqlite', 'history database')
|
||||
else:
|
||||
sqlite = 'no '
|
||||
|
@ -153,6 +156,7 @@ def configure (conf):
|
|||
if conf.env['HAVE_HILDON'] == 1:
|
||||
check_pkg ('libosso', mandatory=False, var='HILDON')
|
||||
hildon = ['N/A','yes'][conf.env['HAVE_HILDON'] == 1]
|
||||
if hildon != 'yes':
|
||||
option_checkfatal ('hildon', 'Maemo integration')
|
||||
else:
|
||||
hildon = 'no '
|
||||
|
|
Loading…
Reference in a new issue