$OpenBSD: patch-ext_tidy_config_m4,v 1.1 2018/09/28 22:22:03 sthen Exp $
Index: ext/tidy/config.m4
--- ext/tidy/config.m4.orig
+++ ext/tidy/config.m4
@@ -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
 
@@ -37,8 +37,8 @@ if test "$PHP_TIDY" != "no"; then
 
   TIDY_LIBDIR=$TIDY_DIR/$PHP_LIBDIR
 
-  TIDY_LIB_NAME=tidy
-  PHP_CHECK_LIBRARY(tidy,tidyOptGetDoc,
+  TIDY_LIB_NAME=tidyp
+  PHP_CHECK_LIBRARY(tidyp,tidyOptGetDoc,
   [
     AC_DEFINE(HAVE_TIDYOPTGETDOC,1,[ ])
   ],[
