Annotation of embedaddon/php/ext/zip/config.w32, revision 1.1.1.1
1.1 misho 1: // $Id: config.w32 264425 2008-08-07 23:24:11Z pajoye $
2: // vim:ft=javascript
3:
4: ARG_ENABLE("zip", "ZIP support", "yes");
5:
6: if (PHP_ZIP != "no") {
7: if (CHECK_HEADER_ADD_INCLUDE("zlib.h", "CFLAGS_ZIP", "..\\zlib;" + PHP_ZIP) &&
8: (((PHP_ZLIB=="no") && (CHECK_LIB("zlib_a.lib", "zip", PHP_ZIP) || CHECK_LIB("zlib.lib", "zip", PHP_ZIP))) ||
9: (PHP_ZLIB_SHARED && CHECK_LIB("zlib.lib", "zip", PHP_ZIP)) || (PHP_ZLIB == "yes" && (!PHP_ZLIB_SHARED)))
10: ) {
11: EXTENSION('zip', 'php_zip.c zip_stream.c');
12: ADD_SOURCES(configure_module_dirname + "/lib", "zip_add.c zip_error.c zip_fclose.c \
13: zip_fread.c zip_open.c zip_source_filep.c \
14: zip_strerror.c zip_close.c zip_error_get.c \
15: zip_file_error_get.c zip_free.c zip_rename.c \
16: zip_source_free.c zip_unchange_all.c zip_delete.c \
17: zip_error_get_sys_type.c zip_file_get_offset.c \
18: zip_get_name.c zip_replace.c zip_source_function.c \
19: zip_unchange.c zip_dirent.c zip_error_strerror.c \
20: zip_filerange_crc.c zip_file_strerror.c zip_get_num_files.c \
21: zip_get_archive_flag.c zip_set_archive_flag.c \
22: zip_set_name.c zip_source_zip.c zip_unchange_data.c \
23: zip_entry_free.c zip_error_to_str.c zip_fopen.c \
24: zip_name_locate.c zip_source_buffer.c zip_stat.c \
25: zip_entry_new.c zip_err_str.c zip_fopen_index.c \
26: zip_new.c zip_source_file.c zip_stat_index.c \
27: zip_get_archive_comment.c zip_get_file_comment.c \
28: zip_set_archive_comment.c zip_set_file_comment.c \
29: zip_unchange_archive.c zip_memdup.c zip_stat_init.c \
30: zip_add_dir.c zip_file_error_clear.c zip_error_clear.c", "zip");
31:
32: AC_DEFINE('HAVE_ZIP', 1);
33: } else {
34: WARNING("zip not enabled; libraries and headers not found");
35: }
36: }
37:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>