Skip to content

Commit 778d1bc

Browse files
committed
CDRIVER-2292 fix --with-snappy/zlib=no
1 parent 9c38148 commit 778d1bc

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

build/autotools/CheckSnappy.m4

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ AS_IF([test "x${found_snappy}" = xyes], [
2525
AS_IF([test "x${with_snappy}" = xauto -o "x${with_snappy}" = xbundled], [
2626
with_snappy=bundled
2727
], [
28-
# snappy not found, with-snappy=system
29-
AC_MSG_ERROR([Cannot find system installed snappy. try --with-snappy=bundled])
30-
]
31-
)])
28+
AS_IF([test "x${with_snappy}" = xno ], [], [
29+
# snappy not found, with-snappy=system
30+
AC_MSG_ERROR([Cannot find system installed snappy. try --with-snappy=bundled])
31+
])
32+
])
33+
])
3234

3335
# If we are using the bundled snappy, recurse into its configure.
3436
AS_IF([test "x${with_snappy}" = xbundled],[

build/autotools/CheckZlib.m4

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ AS_IF([test "x${found_zlib}" = "xyes"], [
2929
AS_IF([test "x${with_zlib}" = xauto -o "x${with_zlib}" = xbundled], [
3030
with_zlib=bundled
3131
], [
32-
# zlib not found, with-zlib=system
33-
AC_MSG_ERROR([Cannot find system installed zlib. try --with-zlib=bundled])
34-
]
35-
)])
32+
AS_IF([test "x${with_zlib}" = xno], [], [
33+
# zlib not found, with-zlib=system
34+
AC_MSG_ERROR([Cannot find system installed zlib. try --with-zlib=bundled])
35+
])
36+
])
37+
])
3638

3739

3840
# If we are using the bundled zlib, recurse into its configure.

0 commit comments

Comments
 (0)