summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 2ded490..9fc5c9d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -155,3 +155,3 @@ AC_CHECK_HEADER([expat.h],[
AC_CHECK_HEADERS([tidy.h tidy/tidy.h],[
- AC_CHECK_LIB([tidy],[tidyParseBuffer],[
+ test -z "$TIDY_LIBS" && AC_CHECK_LIB([tidy],[tidyParseBuffer],[
TIDY_LIBS=-ltidy
@@ -164,3 +164,3 @@ AC_CHECK_HEADERS([tidy.h tidy/tidy.h],[
],[
- test "$ac_header" = "tidy/tidy.h" \
+ test -z "$TIDY_LIBS" -a "$ac_header" = "tidy/tidy.h" \
&& AC_MSG_ERROR([no required htmltidy library found. get one from http://tidy.sourceforge.net/])