Skip to content

Commit 16d9bd0

Browse files
authored
Sync AC_DEFINE help texts (#15207)
1 parent 3ad9f4d commit 16d9bd0

File tree

18 files changed

+38
-30
lines changed

18 files changed

+38
-30
lines changed

ext/date/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ tl_config.WriteLine("#define timelib_free efree");
2020
tl_config.Close();
2121

2222
PHP_INSTALL_HEADERS("ext/date", "php_date.h lib/timelib.h lib/timelib_config.h");
23-
AC_DEFINE('HAVE_TIMELIB_CONFIG_H', 1, 'Have timelib_config.h')
23+
AC_DEFINE('HAVE_TIMELIB_CONFIG_H', 1, 'Define to 1 if you have the <timelib_config.h> header file.');

ext/date/config0.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ PHP_ADD_INCLUDE([$ext_builddir/lib])
2222
PHP_ADD_INCLUDE([$ext_srcdir/lib])
2323

2424
PHP_INSTALL_HEADERS([ext/date], [php_date.h lib/timelib.h lib/timelib_config.h])
25-
AC_DEFINE([HAVE_TIMELIB_CONFIG_H], [1], [Have timelib_config.h])
25+
AC_DEFINE([HAVE_TIMELIB_CONFIG_H], [1],
26+
[Define to 1 if you have the <timelib_config.h> header file.])
2627

2728
cat > $ext_builddir/lib/timelib_config.h <<EOF
2829
#ifdef PHP_WIN32

ext/hash/config.m4

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ PHP_ARG_WITH([mhash],
55

66
if test "$PHP_MHASH" != "no"; then
77
AC_MSG_WARN([The --with-mhash option and mhash* functions are deprecated as of PHP 8.1.0])
8-
AC_DEFINE(PHP_MHASH_BC, 1, [ ])
8+
AC_DEFINE([PHP_MHASH_BC], [1], [Define to 1 if mhash support is enabled.])
99
fi
1010

1111
if test $ac_cv_c_bigendian_php = yes; then
1212
EXT_HASH_SHA3_SOURCES="hash_sha3.c"
13-
AC_DEFINE(HAVE_SLOW_HASH3, 1, [Define if hash3 algo is available])
13+
AC_DEFINE([HAVE_SLOW_HASH3], [1],
14+
[Define to 1 if the PHP hash extension uses the slow SHA3 algorithm.])
1415
AC_MSG_WARN([Using SHA3 slow implementation on bigendian])
1516
SHA3_DIR=
1617
else

ext/hash/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ARG_WITH('mhash', 'mhash support (BC via hash)', 'no');
44

55
if (PHP_MHASH != 'no') {
66
WARNING("mhash* functions are deprecated as of PHP 8.1.0");
7-
AC_DEFINE('PHP_MHASH_BC', 1);
7+
AC_DEFINE('PHP_MHASH_BC', 1, 'Define to 1 if mhash support is enabled.');
88
}
99

1010
PHP_HASH = 'yes';

ext/mbstring/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ AC_DEFUN([PHP_MBSTRING_SETUP_MBREGEX], [
7575
PHP_MBSTRING_ADD_CFLAG([-DONIG_ESCAPE_UCHAR_COLLISION=1])
7676
PHP_MBSTRING_ADD_CFLAG([-DUChar=OnigUChar])
7777
78-
AC_DEFINE([HAVE_MBREGEX], 1, [whether to have multibyte regex support])
78+
AC_DEFINE([HAVE_MBREGEX], [1],
79+
[Define to 1 if mbstring has multibyte regex support enabled.])
7980
8081
PHP_MBSTRING_ADD_BASE_SOURCES([php_mbregex.c])
8182
PHP_INSTALL_HEADERS([ext/mbstring], [php_mbregex.h php_onig_compat.h])

ext/mbstring/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ if (PHP_MBSTRING != "no") {
4343
if (PHP_MBREGEX != "no") {
4444
if (CHECK_HEADER_ADD_INCLUDE("oniguruma.h", "CFLAGS_MBSTRING", PHP_MBREGEX) &&
4545
CHECK_LIB("onig_a.lib;libonig_a.lib", "mbstring", PHP_MBSTRING)) {
46-
AC_DEFINE('HAVE_MBREGEX', 1);
46+
AC_DEFINE('HAVE_MBREGEX', 1, 'Define to 1 if mbstring has multibyte regex support enabled.');
4747

4848
/* XXX libonig is only usable as a static library ATM, code change required to link with a DLL. */
4949
ADD_FLAG("CFLAGS_MBSTRING", "/DONIG_EXTERN=extern /DPHP_ONIG_BAD_KOI8_ENTRY=1 /utf-8");

ext/opcache/config.m4

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ if test "$PHP_OPCACHE" != "no"; then
3030
dnl Always build as shared extension
3131
ext_shared=yes
3232

33-
if test "$PHP_HUGE_CODE_PAGES" = "yes"; then
34-
AC_DEFINE(HAVE_HUGE_CODE_PAGES, 1, [Define to enable copying PHP CODE pages into HUGE PAGES (experimental)])
35-
fi
33+
AS_VAR_IF([PHP_HUGE_CODE_PAGES], [yes],
34+
[AC_DEFINE([HAVE_HUGE_CODE_PAGES], [1],
35+
[Define to 1 to enable copying PHP CODE pages into HUGE PAGES.])])
3636

3737
if test "$PHP_OPCACHE_JIT" = "yes"; then
3838
case $host_cpu in
@@ -50,7 +50,7 @@ if test "$PHP_OPCACHE" != "no"; then
5050
fi
5151

5252
if test "$PHP_OPCACHE_JIT" = "yes" ; then
53-
AC_DEFINE(HAVE_JIT, 1, [Define to enable JIT])
53+
AC_DEFINE([HAVE_JIT], [1], [Define to 1 to enable JIT.])
5454
ZEND_JIT_SRC=m4_normalize(["
5555
jit/ir/ir_cfg.c
5656
jit/ir/ir_check.c

ext/opcache/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if (PHP_OPCACHE != "no") {
3232
DEFINE("DASM_FLAGS", dasm_flags);
3333
DEFINE("DASM_ARCH", "x86");
3434

35-
AC_DEFINE('HAVE_JIT', 1, 'Define to enable JIT');
35+
AC_DEFINE('HAVE_JIT', 1, 'Define to 1 to enable JIT.');
3636

3737
ADD_FLAG("CFLAGS_OPCACHE", "/I \"ext\\opcache\\jit\\ir\" /D "+ir_target+" /D IR_PHP");
3838
if (PHP_DEBUG == "yes") {

ext/openssl/config0.m4

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ if test "$PHP_OPENSSL" != "no"; then
2929
[Define to 1 if OpenSSL crypto library has the 'RAND_egd' function.])],,
3030
[$OPENSSL_LIBS])
3131

32-
if test "$PHP_SYSTEM_CIPHERS" != "no"; then
33-
AC_DEFINE(USE_OPENSSL_SYSTEM_CIPHERS,1,[ Use system default cipher list instead of hardcoded value ])
34-
fi
32+
AS_VAR_IF([PHP_SYSTEM_CIPHERS], [no],,
33+
[AC_DEFINE([USE_OPENSSL_SYSTEM_CIPHERS], [1],
34+
[Define to 1 to use system default cipher list instead of the hardcoded
35+
value in OpenSSL.])])
3536

36-
if test "$PHP_OPENSSL_LEGACY_PROVIDER" != "no"; then
37-
AC_DEFINE(LOAD_OPENSSL_LEGACY_PROVIDER,1,[ Load legacy algorithm provider in addition to default provider ])
38-
fi
37+
AS_VAR_IF([PHP_OPENSSL_LEGACY_PROVIDER], [no],,
38+
[AC_DEFINE([LOAD_OPENSSL_LEGACY_PROVIDER], [1],
39+
[Define to 1 to load the OpenSSL legacy algorithm provider in addition to
40+
the default provider.])])
3941
fi

ext/pcntl/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ int main(void) {
4949
[php_cv_func_sched_getcpu=no],
5050
[php_cv_func_sched_getcpu=no])])
5151
AS_VAR_IF([php_cv_func_sched_getcpu], [yes],
52-
[AC_DEFINE([HAVE_SCHED_GETCPU], [1], [Whether sched_getcpu is properly supported])])
52+
[AC_DEFINE([HAVE_SCHED_GETCPU], [1],
53+
[Define to 1 if the 'sched_getcpu' function is properly supported.])])
5354

5455
AC_CHECK_TYPE([siginfo_t],[PCNTL_CFLAGS="-DHAVE_STRUCT_SIGINFO_T"],,[#include <signal.h>])
5556

ext/posix/config.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ dnl (first argument is not validated and has different error).
5858
[php_cv_func_ttyname_r=yes], [php_cv_func_ttyname_r=no])])])
5959
AS_VAR_IF([php_cv_func_ttyname_r], [yes],
6060
[AC_DEFINE([HAVE_TTYNAME_R], [1],
61-
[Define to 1 if you have a working ttyname_r.])],
61+
[Define to 1 if you have a working 'ttyname_r' function.])],
6262
[AC_MSG_NOTICE([posix_ttyname() will be thread-unsafe])])
6363

6464
AC_CHECK_MEMBERS([struct utsname.domainname],,,[

ext/session/config.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ if test "$PHP_MM" != "no"; then
4545
[SESSION_SHARED_LIBADD])
4646
PHP_ADD_INCLUDE([$MM_DIR/include])
4747
PHP_INSTALL_HEADERS([ext/session], [mod_mm.h])
48-
AC_DEFINE(HAVE_LIBMM, 1, [Whether you have libmm])
48+
AC_DEFINE([HAVE_LIBMM], [1], [Define to 1 if the system has the 'mm' library.])
4949
fi

ext/standard/config.m4

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,9 @@ case "$PHP_SAPI" in
324324
;;
325325
esac
326326

327-
if test "$PHP_ENABLE_CHROOT_FUNC" = "yes"; then
328-
AC_DEFINE(ENABLE_CHROOT_FUNC, 1, [Whether to enable chroot() function])
329-
fi
327+
AS_VAR_IF([PHP_ENABLE_CHROOT_FUNC], [yes],
328+
[AC_DEFINE([ENABLE_CHROOT_FUNC], [1],
329+
[Define to 1 to enable the 'chroot' function.])])
330330

331331
dnl
332332
dnl Detect library functions needed by php dns_xxx functions
@@ -370,7 +370,8 @@ if test "$PHP_PASSWORD_ARGON2" != "no"; then
370370
PHP_EVAL_INCLINE([$ARGON2_CFLAGS])
371371
PHP_EVAL_LIBLINE([$ARGON2_LIBS])
372372

373-
AC_DEFINE(HAVE_ARGON2LIB, 1, [ ])
373+
AC_DEFINE([HAVE_ARGON2LIB], [1],
374+
[Define to 1 if the system has the 'libargon2' library.])
374375
fi
375376

376377
dnl

ext/standard/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if (PHP_PASSWORD_ARGON2 != "no") {
88
if (!CHECK_FUNC_IN_HEADER("argon2.h", "argon2id_hash_raw", PHP_PHP_BUILD + "\\include", "CFLAGS")) {
99
ERROR("Please verify that Argon2 header and libraries >= 20161029 are installed");
1010
}
11-
AC_DEFINE('HAVE_ARGON2LIB', 1);
11+
AC_DEFINE('HAVE_ARGON2LIB', 1, "Define to 1 if the system has the 'libargon2' library.");
1212
} else {
1313
WARNING("Argon2 not enabled; libraries and headers not found");
1414
}

ext/xsl/config.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if test "$PHP_XSL" != "no"; then
2323
PHP_EVAL_INCLINE([$EXSLT_CFLAGS])
2424
PHP_EVAL_LIBLINE([$EXSLT_LIBS], [XSL_SHARED_LIBADD])
2525
AC_DEFINE([HAVE_XSL_EXSLT], [1],
26-
[Define to 1 if system has the EXSLT extension library for XSLT.])
26+
[Define to 1 if the system has the EXSLT extension library for XSLT.])
2727
], [ ])
2828

2929
AC_DEFINE([HAVE_XSL], [1],

ext/xsl/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if (PHP_XSL != "no") {
2828
if (ext_xsl_lib_found && CHECK_HEADER_ADD_INCLUDE("libxslt\\xslt.h", "CFLAGS_XSL")) {
2929
if (ext_exslt_lib_found) {
3030
if (CHECK_HEADER_ADD_INCLUDE("libexslt\\exslt.h", "CFLAGS_XSL")) {
31-
AC_DEFINE("HAVE_XSL_EXSLT", 1, "Define to 1 if system has the EXSLT extension library for XSLT.");
31+
AC_DEFINE("HAVE_XSL_EXSLT", 1, "Define to 1 if the system has the EXSLT extension library for XSLT.");
3232
}
3333
}
3434
EXTENSION("xsl", "php_xsl.c xsltprocessor.c", PHP_XSL_SHARED);

sapi/cgi/config9.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if test "$PHP_CGI" != "no"; then
1414
SunOS\ 5.*)
1515
AC_MSG_RESULT([yes])
1616
AC_DEFINE([USE_LOCKING], [1],
17-
[Define if cross-process locking is required by accept()])
17+
[Define to 1 if cross-process locking is required by 'accept()'.])
1818
;;
1919
*)
2020
AC_MSG_RESULT([no])

sapi/phpdbg/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ if test "$PHP_PHPDBG" != "no"; then
3232
AC_MSG_CHECKING([for phpdbg and readline integration])
3333
if test "$PHP_PHPDBG_READLINE" = "yes"; then
3434
if test "$PHP_READLINE" != "no" || test "$PHP_LIBEDIT" != "no"; then
35-
AC_DEFINE(HAVE_PHPDBG_READLINE, 1, [ ])
35+
AC_DEFINE([HAVE_PHPDBG_READLINE], [1],
36+
[Define to 1 if the phpdbg SAPI has libedit/readline integration.])
3637
PHPDBG_EXTRA_LIBS="$PHP_READLINE_LIBS"
3738
AC_MSG_RESULT([ok])
3839
else

0 commit comments

Comments
 (0)