diff options
author | Alejandro Colomar <alx@nginx.com> | 2023-07-21 13:58:37 +0200 |
---|---|---|
committer | Alejandro Colomar <alx@nginx.com> | 2023-09-03 18:38:05 +0200 |
commit | d3f4e09c9e2e451b047dbfba739d54b6b1c4c9ba (patch) | |
tree | 6a579fc98a827a96c3e886c650fff5f03bb6e764 /auto | |
parent | 6e164a368b4aea80233b17486fe549ab70816e86 (diff) | |
download | unit-d3f4e09c9e2e451b047dbfba739d54b6b1c4c9ba.tar.gz unit-d3f4e09c9e2e451b047dbfba739d54b6b1c4c9ba.tar.bz2 |
Auto: zlib: compiling with zlib.
Signed-off-by: Alejandro Colomar <alx@nginx.com>
Diffstat (limited to 'auto')
-rw-r--r-- | auto/zlib | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/auto/zlib b/auto/zlib new file mode 100644 index 00000000..dab30d38 --- /dev/null +++ b/auto/zlib @@ -0,0 +1,23 @@ + +# Copyright (C) Alejandro Colomar +# Copyright (C) NGINX, Inc. + + +NXT_ZLIB_CFLAGS="$(pkgconf --cflags-only-I zlib 2>/dev/null || echo "")" +NXT_ZLIB_LIBS="$(pkgconf --libs zlib 2>/dev/null || echo "-lz")" + + +nxt_feature="zlib" +nxt_feature_name=NXT_HAVE_ZLIB +nxt_feature_run=no +nxt_feature_incs=$NXT_ZLIB_CFLAGS +nxt_feature_libs=$NXT_ZLIB_LIBS +nxt_feature_test="#include <stdio.h> + + #include <zlib.h> + + int main(void) { + puts(zlibVersion()); + return 0; + }" +. auto/feature |