forked from iliaal/php_excel
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconfig.w32
More file actions
22 lines (19 loc) · 887 Bytes
/
config.w32
File metadata and controls
22 lines (19 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ARG_WITH("excel", "Excel support", "no");
ARG_WITH("libxl", "Path to LibXL", "no");
if (PHP_EXCEL != "no") {
var header_search = PHP_PHP_BUILD + "\\include";
var lib_search = PHP_PHP_BUILD + "\\lib";
if (PHP_LIBXL != "no" && PHP_LIBXL != "yes") {
header_search = PHP_LIBXL + "\\include_c;" + PHP_LIBXL + ";" + header_search;
lib_search = PHP_LIBXL + ";" + PHP_LIBXL + "\\lib64;" + PHP_LIBXL + "\\lib;" + lib_search;
}
if (CHECK_HEADER_ADD_INCLUDE("libxl.h", "CFLAGS_EXCEL", header_search) &&
CHECK_LIB("libxl.lib", "excel", lib_search)) {
EXTENSION("excel", "excel.c");
AC_DEFINE("HAVE_EXCELLIB", 1, "Have LibXL library");
AC_DEFINE("HAVE_LIBXL_SETKEY", 1, "Have LibXL license key support");
} else {
WARNING("excel not enabled; libxl libraries and headers not found");
PHP_EXCEL = "no";
}
}