From: Rusty Russell Date: Tue, 26 Apr 2016 04:54:21 +0000 (+0930) Subject: generator: don't even try to compile if !HAVE_UCONTEXT. X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=b744da8cdcb59542f5452c30d4f0c7b5b42255d1 generator: don't even try to compile if !HAVE_UCONTEXT. Signed-off-by: Rusty Russell --- diff --git a/ccan/generator/_info b/ccan/generator/_info index b0b7343f..11753a5b 100644 --- a/ccan/generator/_info +++ b/ccan/generator/_info @@ -63,6 +63,14 @@ int main(int argc, char *argv[]) return 0; } + if (strcmp(argv[1], "ported") == 0) { +#if HAVE_UCONTEXT + printf("\n"); +#else + printf("Needs ucontext support\n"); +#endif + } + if (strcmp(argv[1], "testdepends") == 0) { printf("ccan/str\n"); return 0;