fix ticket 14, waf configure now fails if expat is not found

This commit is contained in:
Nedko Arnaudov 2009-11-24 00:46:09 +02:00
parent 2f97ac2bab
commit bda0255efb
1 changed files with 5 additions and 3 deletions

View File

@ -77,10 +77,12 @@ def configure(conf):
errmsg = "not installed, see http://e2fsprogs.sourceforge.net/",
args = '--cflags --libs')
conf.check(header_name='expat.h', define_name="HAVE_EXPAT")
conf.check(
header_name='expat.h',
mandatory = True,
errmsg = "not installed, see http://expat.sourceforge.net/")
if conf.is_defined('HAVE_EXPAT'):
conf.env['LIB_EXPAT'] = ['expat']
conf.env['LIB_EXPAT'] = ['expat']
build_gui = True