mirror of
https://github.com/php/php-src.git
synced 2024-12-01 13:54:10 +08:00
24 lines
691 B
JavaScript
24 lines
691 B
JavaScript
// $Id$
|
|
// vim:ft=javascript
|
|
|
|
ARG_WITH("tidy", "TIDY support", "no");
|
|
|
|
if (PHP_TIDY != "no") {
|
|
if (CHECK_LIB("libtidy_a.lib;libtidy.lib", "tidy", PHP_TIDY) &&
|
|
(
|
|
CHECK_HEADER_ADD_INCLUDE("tidy.h", "CFLAGS_TIDY") ||
|
|
CHECK_HEADER_ADD_INCLUDE("tidy/tidy.h", "CFLAGS_TIDY", null, null, true) ||
|
|
CHECK_HEADER_ADD_INCLUDE("libtidy/tidy.h", "CFLAGS_TIDY", null, null, true)
|
|
)) {
|
|
EXTENSION("tidy", "tidy.c");
|
|
AC_DEFINE('HAVE_TIDY', 1, 'Have TIDY library');
|
|
ADD_FLAG('CFLAGS_TIDY', '/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1');
|
|
if (!PHP_TIDY_SHARED) {
|
|
ADD_DEF_FILE("ext\\tidy\\php_tidy.def");
|
|
}
|
|
} else {
|
|
WARNING("tidy not enabled; libraries and headers not found");
|
|
}
|
|
}
|
|
|