summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2025-05-02 00:10:24 +0100
committerAndrew Clayton <a.clayton@nginx.com>2025-05-07 16:33:32 +0100
commit68ae5b526541c15beb14868e2b1d7e23dec1ac43 (patch)
treeb44081c92166c97e44cc29335d4440d4a438faa1
parent414d258c48afbf7cf2136ab169ab53564e1591d9 (diff)
downloadunit-68ae5b526541c15beb14868e2b1d7e23dec1ac43.tar.gz
unit-68ae5b526541c15beb14868e2b1d7e23dec1ac43.tar.bz2
auto/compression: Error out if requested library not found
You asked for a specific compression library, be clear when it isn't found. Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
-rw-r--r--auto/compression15
1 files changed, 15 insertions, 0 deletions
diff --git a/auto/compression b/auto/compression
index 684242f2..ff2c31e9 100644
--- a/auto/compression
+++ b/auto/compression
@@ -39,6 +39,11 @@ if [ $NXT_ZLIB = YES ]; then
if [ $nxt_found = yes ]; then
NXT_HAVE_ZLIB=YES
echo " + zlib version: $(pkgconf --modversion zlib)"
+ else
+ $echo
+ $echo $0: error: zlib library not found.
+ $echo
+ exit 1;
fi
fi
@@ -65,6 +70,11 @@ if [ $NXT_ZSTD = YES ]; then
if [ $nxt_found = yes ]; then
NXT_HAVE_ZSTD=YES
echo " + zstd version: $(pkgconf --modversion libzstd)"
+ else
+ $echo
+ $echo $0: error: zstd library not found.
+ $echo
+ exit 1;
fi
fi
@@ -92,5 +102,10 @@ if [ $NXT_BROTLI = YES ]; then
if [ $nxt_found = yes ]; then
NXT_HAVE_BROTLI=YES
echo " + brotli version: $(pkgconf --modversion libbrotlienc)"
+ else
+ $echo
+ $echo $0: error: brotli library not found.
+ $echo
+ exit 1;
fi
fi