Permalink
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (13 sloc) 602 Bytes
ARG_WITH("excel", "Excel", "no");
if (PHP_EXCEL != "no") {
if (CHECK_LIB("libxl.lib", "excel", PHP_EXCEL) && CHECK_HEADER_ADD_INCLUDE("libxl.h", "CFLAGS_EXCEL", PHP_EXCEL+ ";" + PHP_PHP_BUILD + "\\include\\libxl")) {
EXTENSION("excel", "excel.c");
AC_DEFINE('HAVE_EXCELLIB', 1, 'Have LibXL library');
AC_DEFINE('HAVE_LIBXL_243_PLUS', 1, 'Have LibXL version 2.4.3 or later');
AC_DEFINE("HAVE_LIBXL_SETKEY", 1, "non-source libxl build");
AC_DEFINE("EXCEL_WITH_LIBXML", 1, "libxml support");
} else {
WARNING("excel not enabled; libraries and headers not found");
PHP_EXCEL = "no";
}
}