From: Paul Brossier Date: Sat, 23 Apr 2016 18:47:22 +0000 (+0200) Subject: wscript: first check for headers, add getopt.h and unistd.h X-Git-Tag: 0.4.4~300^2~235 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=bef979aa867d5d6189ba72f864d534db45fcc2ad;p=aubio.git wscript: first check for headers, add getopt.h and unistd.h --- diff --git a/wscript b/wscript index 4b2335bd..041a4364 100644 --- a/wscript +++ b/wscript @@ -102,6 +102,15 @@ def configure(ctx): ctx.load('waf_unit_test') ctx.load('gnu_dirs') + # check for common headers + ctx.check(header_name='stdlib.h') + ctx.check(header_name='stdio.h') + ctx.check(header_name='math.h') + ctx.check(header_name='string.h') + ctx.check(header_name='limits.h') + ctx.check(header_name='getopt.h') + ctx.check(header_name='unistd.h') + target_platform = Options.platform if ctx.options.target_platform: target_platform = ctx.options.target_platform @@ -174,13 +183,6 @@ def configure(ctx): if (ctx.options.enable_atlas != True): ctx.options.enable_atlas = False - # check for required headers - ctx.check(header_name='stdlib.h') - ctx.check(header_name='stdio.h') - ctx.check(header_name='math.h') - ctx.check(header_name='string.h') - ctx.check(header_name='limits.h') - # check support for C99 __VA_ARGS__ macros check_c99_varargs = ''' #include