Skip to content

Commit 353ecec

Browse files
committed
check for broken libzip version
1 parent e9bb07d commit 353ecec

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

config.m4

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,19 @@ if test "$PHP_ZIP" != "no"; then
4141
AC_MSG_RESULT(from option: found in $PHP_LIBZIP)
4242

4343
elif test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libzip; then
44-
if $PKG_CONFIG libzip --atleast-version 0.11; then
44+
45+
if $PKG_CONFIG libzip --exact-version 1.3.1]; then
46+
AC_MSG_ERROR(system libzip 1.3.1 is broken please update)
47+
48+
elif $PKG_CONFIG libzip --exact-version 1.7.0]; then
49+
AC_MSG_ERROR(system libzip 1.7.0 is broken please update)
50+
51+
elif $PKG_CONFIG libzip --atleast-version 0.11; then
4552
LIBZIP_CFLAGS=`$PKG_CONFIG libzip --cflags`
4653
LIBZIP_LIBDIR=`$PKG_CONFIG libzip --variable=libdir`
4754
LIBZIP_VERSON=`$PKG_CONFIG libzip --modversion`
4855
AC_MSG_RESULT(from pkgconfig: version $LIBZIP_VERSON found in $LIBZIP_LIBDIR)
56+
4957
else
5058
AC_MSG_ERROR(system libzip must be upgraded to version >= 0.11)
5159
fi

0 commit comments

Comments
 (0)