version 1.1, 2012/02/21 23:47:54
|
version 1.1.1.3, 2013/07/22 01:31:40
|
Line 4
|
Line 4
|
ARG_ENABLE("fileinfo", "fileinfo support", "no"); |
ARG_ENABLE("fileinfo", "fileinfo support", "no"); |
|
|
if (PHP_FILEINFO != 'no') { |
if (PHP_FILEINFO != 'no') { |
if (CHECK_HEADER_ADD_INCLUDE("dirent.h", "CFLAGS_FILEINFO") && | LIBMAGIC_SOURCES=" apprentice.c apptype.c ascmagic.c \ |
CHECK_LIB("dirent_a.lib", "fileinfo", PHP_FILEINFO)) { | cdf.c cdf_time.c compress.c \ |
LIBMAGIC_SOURCES=" apprentice.c apptype.c ascmagic.c \ | encoding.c fsmagic.c funcs.c \ |
cdf.c cdf_time.c compress.c \ | is_tar.c magic.c print.c \ |
encoding.c fsmagic.c funcs.c \ | readcdf.c readelf.c softmagic.c"; |
is_tar.c magic.c print.c \ | |
readcdf.c readelf.c softmagic.c"; | |
|
|
if (VCVERS < 1500) { | if (VCVERS < 1500) { |
ADD_FLAG('CFLAGS', '/Zm1000'); | ADD_FLAG('CFLAGS', '/Zm1000'); |
} | } |
|
|
EXTENSION('fileinfo', 'fileinfo.c', true, "/I" + configure_module_dirname + "/libmagic /I" + configure_module_dirname); | EXTENSION('fileinfo', 'fileinfo.c', true, "/I" + configure_module_dirname + "/libmagic /I" + configure_module_dirname); |
ADD_SOURCES(configure_module_dirname + '\\libmagic', LIBMAGIC_SOURCES, "fileinfo"); | ADD_SOURCES(configure_module_dirname + '\\libmagic', LIBMAGIC_SOURCES, "fileinfo"); |
} else { | |
WARNING("fileinfo not enabled; libraries and headers not found"); | |
PHP_FILEINFO = "no"; | |
} | |
} |
} |