Skip to content

Commit 5fc68d8

Browse files
authored
Update preprocessor macros help texts for enchant and snmp extensions (php#15255)
[skip ci]
1 parent 84e1920 commit 5fc68d8

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

ext/enchant/config.m4

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ if test "$PHP_ENCHANT" != "no"; then
1212
PHP_EVAL_INCLINE([$ENCHANT2_CFLAGS])
1313
PHP_EVAL_LIBLINE([$ENCHANT2_LIBS], [ENCHANT_SHARED_LIBADD])
1414
AC_DEFINE([HAVE_ENCHANT_GET_VERSION], [1],
15-
[enchant_get_version since 1.6.0])
15+
[Define to 1 if Enchant library has the 'enchant_get_version' function
16+
(available since 1.6.0).])
1617
], [
1718
AC_MSG_WARN([libenchant-2 not found trying with old libenchant])
1819
PKG_CHECK_MODULES([ENCHANT], [enchant >= 1.4.2])
@@ -21,14 +22,14 @@ if test "$PHP_ENCHANT" != "no"; then
2122
PHP_EVAL_LIBLINE([$ENCHANT_LIBS], [ENCHANT_SHARED_LIBADD])
2223
2324
PHP_CHECK_LIBRARY([enchant], [enchant_get_version],
24-
[AC_DEFINE([HAVE_ENCHANT_GET_VERSION], [1],
25-
[enchant_get_version since 1.6.0])],
25+
[AC_DEFINE([HAVE_ENCHANT_GET_VERSION], [1])],
2626
[],
2727
[$ENCHANT_LIBS])
2828
2929
PHP_CHECK_LIBRARY([enchant], [enchant_broker_set_param],
3030
[AC_DEFINE([HAVE_ENCHANT_BROKER_SET_PARAM], [1],
31-
[enchant_broker_set_param since 1.5.0 and removed in 2.x])],
31+
[Define to 1 if Enchant library has the 'enchant_broker_set_param'
32+
function (available since 1.5.0 and removed in 2.x).])],
3233
[],
3334
[$ENCHANT_LIBS])
3435
])

ext/enchant/config.w32

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ if (PHP_ENCHANT == "yes") {
99
have_enchant = true;
1010
} else if (CHECK_LIB("libenchant.lib", "enchant", PHP_ENCHANT)) {
1111
have_enchant = true;
12-
AC_DEFINE('HAVE_ENCHANT_BROKER_SET_PARAM', 1);
12+
AC_DEFINE('HAVE_ENCHANT_BROKER_SET_PARAM', 1, "Define to 1 if Enchant library has the 'enchant_broker_set_param' function (available since 1.5.0 and removed in 2.x).");
1313
} else {
1414
have_enchant = false;
1515
WARNING('Could not find libenchant.lib; skipping');
1616
}
1717
if (have_enchant) {
1818
EXTENSION("enchant", "enchant.c");
1919
AC_DEFINE('HAVE_ENCHANT', 1, "Define to 1 if the PHP extension 'enchant' is available.");
20-
AC_DEFINE('HAVE_ENCHANT_GET_VERSION', 1);
20+
AC_DEFINE('HAVE_ENCHANT_GET_VERSION', 1, "Define to 1 if Enchant library has the 'enchant_get_version' function (available since 1.6.0).");
2121
}
2222
} else {
2323
WARNING('Could not find enchant.h; skipping');

ext/snmp/config.m4

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,24 @@ if test "$PHP_SNMP" != "no"; then
4545

4646
dnl Check whether shutdown_snmp_logging() exists.
4747
PHP_CHECK_LIBRARY([$SNMP_LIBNAME], [shutdown_snmp_logging],
48-
[AC_DEFINE([HAVE_SHUTDOWN_SNMP_LOGGING], [1], [ ])],
48+
[AC_DEFINE([HAVE_SHUTDOWN_SNMP_LOGGING], [1],
49+
[Define to 1 if SNMP library has the 'shutdown_snmp_logging' function.])],
4950
[],
5051
[$SNMP_SHARED_LIBADD])
5152

5253
dnl Check whether usmHMAC192SHA256AuthProtocol exists.
5354
PHP_CHECK_LIBRARY([$SNMP_LIBNAME], [usmHMAC192SHA256AuthProtocol],
54-
[AC_DEFINE([HAVE_SNMP_SHA256], [1], [ ])],
55+
[AC_DEFINE([HAVE_SNMP_SHA256], [1],
56+
[Define to 1 if SNMP library has the 'usmHMAC192SHA256AuthProtocol'
57+
array.])],
5558
[],
5659
[$SNMP_SHARED_LIBADD])
5760

5861
dnl Check whether usmHMAC384SHA512AuthProtocol exists.
5962
PHP_CHECK_LIBRARY([$SNMP_LIBNAME], [usmHMAC384SHA512AuthProtocol],
60-
[AC_DEFINE([HAVE_SNMP_SHA512], [1], [ ])],
63+
[AC_DEFINE([HAVE_SNMP_SHA512], [1],
64+
[Define to 1 if SNMP library has the 'usmHMAC384SHA512AuthProtocol'
65+
array.])],
6166
[],
6267
[$SNMP_SHARED_LIBADD])
6368

0 commit comments

Comments
 (0)