2003-12-20 01:00:14 +08:00
|
|
|
// $Id$
|
|
|
|
// vim:ft=javascript
|
|
|
|
|
|
|
|
ARG_WITH("tidy", "TIDY support", "no");
|
|
|
|
|
|
|
|
if (PHP_TIDY != "no") {
|
2008-08-01 19:21:50 +08:00
|
|
|
if (CHECK_LIB("libtidy_a.lib;libtidy.lib", "tidy", PHP_TIDY) &&
|
2003-12-20 01:00:14 +08:00
|
|
|
(
|
|
|
|
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');
|
2004-03-23 07:07:55 +08:00
|
|
|
if (!PHP_TIDY_SHARED) {
|
|
|
|
ADD_DEF_FILE("ext\\tidy\\php_tidy.def");
|
|
|
|
}
|
2003-12-20 01:00:14 +08:00
|
|
|
} else {
|
|
|
|
WARNING("tidy not enabled; libraries and headers not found");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|