One more configuration test

This commit is contained in:
Thomas Nagy 2016-04-06 21:58:09 +02:00
parent 49ed1e0c0a
commit 102a345eb0
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
1 changed files with 8 additions and 0 deletions

View File

@ -88,6 +88,14 @@ def configure(conf):
@test
def fun7():
"uselib_store=UNISTD -> HAVE_UNISTD=1"
conf.check_cc(header_name='unistd.h', uselib_store='UNISTD')
val = conf.env.HAVE_UNISTD
if val != 1:
return 'conf.env.HAVE_UNISTD = %r' % val
@test
def fun8():
"global_defines=0, define_name=HAVE_FOO -> DEFINES_LIBPNG=['HAVE_FOO=1']"
conf.check_cfg(package='libpng', global_define=0, define_name='HAVE_FOO')
val = conf.env.DEFINES_LIBPNG