$OpenBSD: patch-ext_tidy_config_m4,v 1.1.1.1 2015/12/14 17:58:46 robert Exp $
--- ext/tidy/config.m4.orig.port	Tue May  9 14:29:39 2017
+++ ext/tidy/config.m4	Wed May 24 14:20:21 2017
@@ -14,12 +14,12 @@ if test "$PHP_TIDY" != "no"; then
   fi
 
   for i in $TIDY_SEARCH_DIRS; do
-    if test -f $i/include/tidy/tidy.h; then
+    if test -f $i/include/tidyp/tidyp.h; then
       TIDY_DIR=$i
-      TIDY_INCDIR=$i/include/tidy
-    elif test -f $i/include/tidy.h; then
+      TIDY_INCDIR=$i/include/tidyp
+    elif test -f $i/include/tidyp.h; then
       TIDY_DIR=$i
-      TIDY_INCDIR=$i/include
+      TIDY_INCDIR=$i/include/tidyp
     fi
   done
 
