@@ -34,26 +34,28 @@ if test "$PHP_TIDY" != "no"; then
34
34
dnl that we are building against tidy-html5 and not the legacy htmltidy. The
35
35
dnl two are compatible, except for with regard to this header file.
36
36
if test -f "$TIDY_INCDIR/tidybuffio.h"; then
37
- AC_DEFINE ( HAVE_TIDYBUFFIO_H ,1 ,[ defined if tidybuffio.h exists] )
37
+ AC_DEFINE ( [ HAVE_TIDYBUFFIO_H] , [ 1] ,
38
+ [ Define to 1 if you have the <tidybuffio.h> header file.] )
38
39
fi
39
40
fi
40
41
41
42
TIDY_LIBDIR=$TIDY_DIR/$PHP_LIBDIR
42
- if test "$TIDY_LIB_NAME" == 'tidyp'; then
43
- AC_DEFINE ( HAVE_TIDYP_H ,1 ,[ defined if tidyp.h exists] )
44
- else
45
- AC_DEFINE ( HAVE_TIDY_H ,1 ,[ defined if tidy.h exists] )
46
- fi
47
-
43
+ AS_VAR_IF ( [ TIDY_LIB_NAME] , [ tidyp] ,
44
+ [ AC_DEFINE ( [ HAVE_TIDYP_H] , [ 1] ,
45
+ [ Define to 1 if you have the <tidyp.h> header file.] ) ] ,
46
+ [ AC_DEFINE ( [ HAVE_TIDY_H] , [ 1] ,
47
+ [ Define to 1 if you have the <tidy.h> header file.] ) ] )
48
48
49
49
PHP_CHECK_LIBRARY([ $TIDY_LIB_NAME] , [ tidyOptGetDoc] ,
50
- [ AC_DEFINE ( [ HAVE_TIDYOPTGETDOC] , [ 1] , [ ] ) ] ,
50
+ [ AC_DEFINE ( [ HAVE_TIDYOPTGETDOC] , [ 1] ,
51
+ [ Define to 1 if Tidy library has the 'tidyOptGetDoc' function.] ) ] ,
51
52
[ PHP_CHECK_LIBRARY([ tidy5] , [ tidyOptGetDoc] ,
52
53
[ TIDY_LIB_NAME=tidy5
53
- AC_DEFINE ( [ HAVE_TIDYOPTGETDOC] , [ 1] , [ ] ) ] )] )
54
+ AC_DEFINE ( [ HAVE_TIDYOPTGETDOC] , [ 1] ) ] )] )
54
55
55
56
PHP_CHECK_LIBRARY([ $TIDY_LIB_NAME] , [ tidyReleaseDate] ,
56
- [ AC_DEFINE ( [ HAVE_TIDYRELEASEDATE] , [ 1] , [ ] ) ] )
57
+ [ AC_DEFINE ( [ HAVE_TIDYRELEASEDATE] , [ 1] ,
58
+ [ Define to 1 if Tidy library has the 'tidyReleaseDate' function.] ) ] )
57
59
58
60
PHP_ADD_LIBRARY_WITH_PATH([ $TIDY_LIB_NAME] ,
59
61
[ $TIDY_LIBDIR] ,
0 commit comments