File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -5,26 +5,21 @@ PHP_ARG_WITH([zip],
5
5
6
6
if test "$PHP_ZIP" != "no"; then
7
7
PKG_CHECK_MODULES([ LIBZIP] , [ libzip >= 1.0.1] )
8
- LIBZIP_LIBDIR=`$PKG_CONFIG --variable=libdir libzip`
8
+
9
+ PHP_EVAL_LIBLINE($LIBZIP_LIBS, ZIP_SHARED_LIBADD)
9
10
10
11
AC_DEFINE ( HAVE_LIBZIP , 1 , [ ] )
11
12
12
13
PHP_CHECK_LIBRARY(zip, zip_file_set_encryption,
13
14
[
14
- PHP_ADD_LIBRARY_WITH_PATH(zip, $LIBZIP_LIBDIR, ZIP_SHARED_LIBADD)
15
15
AC_DEFINE ( HAVE_ENCRYPTION , 1 , [ Libzip >= 1.2.0 with encryption support] )
16
16
] , [
17
17
AC_MSG_WARN ( Libzip >= 1.2.0 needed for encryption support )
18
- ] , [
19
- -L$LIBZIP_LIBDIR
20
18
] )
21
19
22
20
PHP_CHECK_LIBRARY(zip, zip_libzip_version,
23
21
[
24
22
AC_DEFINE ( HAVE_LIBZIP_VERSION , 1 , [ Libzip >= 1.3.1 with zip_libzip_version function] )
25
- ] , [
26
- ] , [
27
- -L$LIBZIP_LIBDIR
28
23
] )
29
24
30
25
AC_DEFINE ( HAVE_ZIP ,1 ,[ ] )
You can’t perform that action at this time.
0 commit comments