Skip to content

Commit f66feae

Browse files
authored
Sync HAVE_<extension> help texts (#15167)
This syncs all help texts of extension preprocessor macros to the same style "Define to 1 if the PHP extension '<ext>' is available.". [skip ci]
1 parent 4993453 commit f66feae

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+107
-76
lines changed

ext/bcmath/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@ if test "$PHP_BCMATH" != "no"; then
3232
[$ext_shared],,
3333
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
3434
PHP_ADD_BUILD_DIR([$ext_builddir/libbcmath/src])
35-
AC_DEFINE(HAVE_BCMATH, 1, [Whether you have bcmath])
35+
AC_DEFINE([HAVE_BCMATH], [1],
36+
[Define to 1 if the PHP extension 'bcmath' is available.])
3637
fi

ext/bcmath/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ if (PHP_BCMATH == "yes") {
1010
floor_or_ceil.c nearzero.c num2str.c raise.c rmzero.c str2num.c \
1111
round.c convert.c", "bcmath");
1212

13-
AC_DEFINE('HAVE_BCMATH', 1, 'Have BCMATH library');
13+
AC_DEFINE('HAVE_BCMATH', 1, "Define to 1 if the PHP extension 'bcmath' is available.");
1414
}

ext/bz2/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ if test "$PHP_BZ2" != "no"; then
2121
PHP_ADD_LIBRARY_WITH_PATH([bz2],
2222
[$BZIP_DIR/$PHP_LIBDIR],
2323
[BZ2_SHARED_LIBADD])
24-
AC_DEFINE([HAVE_BZ2], [1], [ ])
24+
AC_DEFINE([HAVE_BZ2], [1],
25+
[Define to 1 if the PHP extension 'bz2' is available.])
2526
],
2627
[AC_MSG_ERROR([bz2 module requires libbz2 >= 1.0.0])],
2728
[-L$BZIP_DIR/$PHP_LIBDIR])

ext/bz2/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if (PHP_BZ2 != "no") {
66
if (CHECK_LIB("libbz2_a.lib;libbz2.lib", "bz2", PHP_BZ2) &&
77
CHECK_HEADER_ADD_INCLUDE("bzlib.h", "CFLAGS_BZ2")) {
88
EXTENSION("bz2", "bz2.c bz2_filter.c");
9-
AC_DEFINE('HAVE_BZ2', 1, 'Have BZ2 library');
9+
AC_DEFINE('HAVE_BZ2', 1, "Define to 1 if the PHP extension 'bz2' is available.");
1010
// BZ2 extension does this slightly differently from others
1111
if (PHP_BZ2_SHARED) {
1212
ADD_FLAG("CFLAGS_BZ2", "/D PHP_BZ2_EXPORTS ");

ext/calendar/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ PHP_ARG_ENABLE([calendar],
44
[Enable support for calendar conversion])])
55

66
if test "$PHP_CALENDAR" = "yes"; then
7-
AC_DEFINE(HAVE_CALENDAR,1,[ ])
7+
AC_DEFINE([HAVE_CALENDAR], [1],
8+
[Define to 1 if the PHP extension 'calendar' is available.])
89
PHP_NEW_EXTENSION([calendar],
910
[calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c],
1011
[$ext_shared])

ext/calendar/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ ARG_ENABLE("calendar", "calendar conversion support", "yes");
55
if (PHP_CALENDAR == "yes") {
66
EXTENSION("calendar", "calendar.c dow.c french.c gregor.c jewish.c \
77
julian.c easter.c cal_unix.c");
8-
AC_DEFINE('HAVE_CALENDAR', 1, 'Have calendar');
8+
AC_DEFINE('HAVE_CALENDAR', 1, "Define to 1 if the PHP extension 'calendar' is available.");
99
}

ext/com_dotnet/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ if (PHP_COM_DOTNET == "yes") {
88
com_handlers.c com_iterator.c com_misc.c com_olechar.c \
99
com_typeinfo.c com_variant.c com_wrapper.c com_saproxy.c com_persist.c",
1010
null, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
11-
AC_DEFINE('HAVE_COM_DOTNET', 1, 'Have COM_DOTNET support');
11+
AC_DEFINE('HAVE_COM_DOTNET', 1, "Define to 1 if the PHP extension 'com_dotnet' is available.");
1212
CHECK_HEADER_ADD_INCLUDE('mscoree.h', 'CFLAGS_COM_DOTNET');
1313
}

ext/ctype/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ PHP_ARG_ENABLE([ctype],
55
[yes])
66

77
if test "$PHP_CTYPE" != "no"; then
8-
AC_DEFINE(HAVE_CTYPE, 1, [ ])
8+
AC_DEFINE([HAVE_CTYPE], [1],
9+
[Define to 1 if the PHP extension 'ctype' is available.])
910
PHP_NEW_EXTENSION([ctype], [ctype.c], [$ext_shared])
1011
fi

ext/ctype/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ ARG_ENABLE("ctype", "ctype", "yes");
44

55
if (PHP_CTYPE == "yes") {
66
EXTENSION("ctype", "ctype.c");
7-
AC_DEFINE('HAVE_CTYPE', 1, 'Have ctype');
7+
AC_DEFINE('HAVE_CTYPE', 1, "Define to 1 if the PHP extension 'ctype' is available.");
88
}

ext/curl/config.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ if test "$PHP_CURL" != "no"; then
7474
PHP_CHECK_LIBRARY([curl],
7575
[curl_easy_perform],
7676
[AC_DEFINE([HAVE_CURL], [1],
77-
[Define to 1 if curl extension is available.])],
77+
[Define to 1 if the PHP extension 'curl' is available.])],
7878
[AC_MSG_ERROR([The libcurl check failed. Please, check config.log for details.])],
7979
[$CURL_LIBS])
8080

ext/curl/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if (PHP_CURL != "no") {
2626
CHECK_LIB("nghttp2.lib", "curl", PHP_CURL))
2727
) {
2828
EXTENSION("curl", "interface.c multi.c share.c curl_file.c");
29-
AC_DEFINE('HAVE_CURL', 1, 'Define to 1 if curl extension is available.');
29+
AC_DEFINE('HAVE_CURL', 1, "Define to 1 if the PHP extension 'curl' is available.");
3030
ADD_FLAG("CFLAGS_CURL", "/D CURL_STATICLIB /D PHP_CURL_EXPORTS=1");
3131
PHP_INSTALL_HEADERS("ext/curl", "php_curl.h");
3232
} else {

ext/dba/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,8 @@ if test "$HAVE_DBA" = "1"; then
700700
else
701701
AC_MSG_RESULT([yes])
702702
fi
703-
AC_DEFINE(HAVE_DBA, 1, [ ])
703+
AC_DEFINE([HAVE_DBA], [1],
704+
[Define to 1 if the PHP extension 'dba' is available.])
704705
PHP_NEW_EXTENSION([dba], m4_normalize([
705706
dba_cdb.c
706707
dba_db1.c

ext/dba/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if (PHP_DBA != "no") {
1010
ADD_SOURCES("ext/dba/libcdb", "cdb.c cdb_make.c uint32.c", "dba");
1111
ADD_SOURCES("ext/dba/libflatfile", "flatfile.c", "dba");
1212
ADD_SOURCES("ext/dba/libinifile", "inifile.c", "dba");
13-
AC_DEFINE('HAVE_DBA', 1, 'DBA support');
13+
AC_DEFINE('HAVE_DBA', 1, "Define to 1 if the PHP extension 'dba' is available.");
1414
ADD_FLAG("CFLAGS_DBA", "/D DBA_FLATFILE=1 /D DBA_CDB=1 /D DBA_CDB_BUILTIN=1 /D DBA_INIFILE=1");
1515

1616
if (PHP_DB != "no") {

ext/dom/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ if test "$PHP_DOM" != "no"; then
1111
fi
1212

1313
PHP_SETUP_LIBXML([DOM_SHARED_LIBADD], [
14-
AC_DEFINE([HAVE_DOM], [1], [Define to 1 if dom extension is available.])
14+
AC_DEFINE([HAVE_DOM], [1],
15+
[Define to 1 if the PHP extension 'dom' is available.])
1516
PHP_LEXBOR_CFLAGS="-I@ext_srcdir@/lexbor -DLEXBOR_STATIC"
1617
LEXBOR_DIR="lexbor/lexbor"
1718
LEXBOR_SOURCES=m4_normalize(["

ext/dom/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ if (PHP_DOM == "yes") {
3838
ADD_SOURCES("ext/dom/lexbor/lexbor/tag", "tag.c", "dom");
3939
ADD_FLAG("CFLAGS_DOM", "/D LEXBOR_STATIC ");
4040

41-
AC_DEFINE("HAVE_DOM", 1, "Define to 1 if dom extension is available.");
41+
AC_DEFINE("HAVE_DOM", 1, "Define to 1 if the PHP extension 'dom' is available.");
4242

4343
if (!PHP_DOM_SHARED) {
4444
ADD_FLAG("CFLAGS_DOM", "/D LIBXML_STATIC ");

ext/enchant/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ if test "$PHP_ENCHANT" != "no"; then
3333
[$ENCHANT_LIBS])
3434
])
3535

36-
AC_DEFINE(HAVE_ENCHANT, 1, [ ])
36+
AC_DEFINE([HAVE_ENCHANT], [1],
37+
[Define to 1 if the PHP extension 'enchant' is available.])
3738

3839
PHP_NEW_EXTENSION([enchant], [enchant.c], [$ext_shared])
3940
PHP_SUBST([ENCHANT_SHARED_LIBADD])

ext/enchant/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if (PHP_ENCHANT == "yes") {
1616
}
1717
if (have_enchant) {
1818
EXTENSION("enchant", "enchant.c");
19-
AC_DEFINE('HAVE_ENCHANT', 1, 'Have Enchant support', false);
19+
AC_DEFINE('HAVE_ENCHANT', 1, "Define to 1 if the PHP extension 'enchant' is available.");
2020
AC_DEFINE('HAVE_ENCHANT_GET_VERSION', 1);
2121
}
2222
} else {

ext/exif/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ PHP_ARG_ENABLE([exif],
44
[Enable EXIF (metadata from images) support])])
55

66
if test "$PHP_EXIF" != "no"; then
7-
AC_DEFINE(HAVE_EXIF, 1, [Whether you want EXIF (metadata from images) support])
7+
AC_DEFINE([HAVE_EXIF], [1],
8+
[Define to 1 if the PHP extension 'exif' is available.])
89
PHP_NEW_EXTENSION([exif],
910
[exif.c],
1011
[$ext_shared],,

ext/exif/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if(PHP_EXIF != 'no')
66
{
77
if(ADD_EXTENSION_DEP('exif', 'mbstring'))
88
{
9-
AC_DEFINE('HAVE_EXIF', 1, 'Have EXIF Support');
9+
AC_DEFINE('HAVE_EXIF', 1, "Define to 1 if the PHP extension 'exif' is available.");
1010

1111
EXTENSION('exif', 'exif.c', null, '/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1');
1212
}

ext/ffi/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ if test "$PHP_FFI" != "no"; then
99
PHP_EVAL_INCLINE([$FFI_CFLAGS])
1010
PHP_EVAL_LIBLINE([$FFI_LIBS], [FFI_SHARED_LIBADD])
1111

12-
AC_DEFINE(HAVE_FFI, 1, [Have ffi support])
12+
AC_DEFINE([HAVE_FFI], [1],
13+
[Define to 1 if the PHP extension 'ffi' is available.])
1314

1415
AC_CHECK_TYPES([long double])
1516

ext/ffi/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ARG_WITH('ffi', 'ffi support', 'no');
33
if (PHP_FFI != 'no') {
44
if (CHECK_HEADER_ADD_INCLUDE("ffi.h", "CFLAGS_FFI", PHP_FFI+ ";" + PHP_PHP_BUILD + "\\include") &&
55
CHECK_LIB("libffi.lib", "ffi", PHP_FFI)) {
6-
AC_DEFINE('HAVE_FFI', 1, 'ffi support enabled');
6+
AC_DEFINE('HAVE_FFI', 1, "Define to 1 if the PHP extension 'ffi' is available.");
77

88
if (!X64) {
99
AC_DEFINE('HAVE_FFI_FASTCALL', 1 ,'libffi supports fastcall calling convention');

ext/ftp/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ PHP_ARG_WITH([ftp-ssl],
1313
[no])
1414

1515
if test "$PHP_FTP" = "yes"; then
16-
AC_DEFINE(HAVE_FTP,1,[Whether you want FTP support])
16+
AC_DEFINE([HAVE_FTP], [1],
17+
[Define to 1 if the PHP extension 'ftp' is available.])
1718
PHP_NEW_EXTENSION([ftp], [php_ftp.c ftp.c], [$ext_shared])
1819

1920
dnl Empty variable means 'no' (for phpize builds).

ext/ftp/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ if (PHP_FTP != "no") {
1313
AC_DEFINE('HAVE_FTP_SSL', 1, 'Have FTP over SSL support');
1414
}
1515

16-
AC_DEFINE('HAVE_FTP', 1, 'Have FTP support');
16+
AC_DEFINE('HAVE_FTP', 1, "Define to 1 if the PHP extension 'ftp' is available.");
1717
}

ext/gmp/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,6 @@ if test "$PHP_GMP" != "no"; then
3333
[$ext_shared],,
3434
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
3535
PHP_SUBST([GMP_SHARED_LIBADD])
36-
AC_DEFINE(HAVE_GMP, 1, [ ])
36+
AC_DEFINE([HAVE_GMP], [1],
37+
[Define to 1 if the PHP extension 'gmp' is available.])
3738
fi

ext/gmp/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if (PHP_GMP != "no") {
77
CHECK_HEADER_ADD_INCLUDE("gmp.h", "CFLAGS_GMP", PHP_GMP + ";" + PHP_PHP_BUILD + "\\include\\mpir")) {
88
EXTENSION("gmp", "gmp.c", null, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
99
PHP_INSTALL_HEADERS("ext/gmp", "php_gmp_int.h");
10-
AC_DEFINE('HAVE_GMP', 1, 'GMP support');
10+
AC_DEFINE('HAVE_GMP', 1, "Define to 1 if the PHP extension 'gmp' is available.");
1111
} else {
1212
WARNING("GMP not enabled; libraries and headers not found");
1313
}

ext/iconv/config.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ int main(void) {
128128
CFLAGS="$save_CFLAGS"
129129

130130
AC_DEFINE([HAVE_ICONV], [1],
131-
[Define to 1 if PHP extension 'iconv' is available.])
131+
[Define to 1 if the PHP extension 'iconv' is available.])
132132

133133
PHP_NEW_EXTENSION([iconv],
134134
[iconv.c],

ext/iconv/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if (PHP_ICONV != "no") {
99

1010
EXTENSION("iconv", "iconv.c", PHP_ICONV_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
1111

12-
AC_DEFINE("HAVE_ICONV", 1, "Define to 1 if PHP extension 'iconv' is available.");
12+
AC_DEFINE("HAVE_ICONV", 1, "Define to 1 if the PHP extension 'iconv' is available.");
1313
AC_DEFINE("HAVE_LIBICONV", 1, "Define to 1 if you have the 'libiconv' function.");
1414
AC_DEFINE("ICONV_ALIASED_LIBICONV", 1, "Define to 1 if 'iconv()' is aliased to 'libiconv()'.");
1515
AC_DEFINE("PHP_ICONV_IMPL", "\"libiconv\"", "The iconv implementation.");

ext/ldap/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ if test "$PHP_LDAP" != "no"; then
9696

9797
PHP_ADD_INCLUDE([$LDAP_INCDIR])
9898
PHP_SUBST([LDAP_SHARED_LIBADD])
99-
AC_DEFINE(HAVE_LDAP,1,[ ])
99+
AC_DEFINE([HAVE_LDAP], [1],
100+
[Define to 1 if the PHP extension 'ldap' is available.])
100101

101102
dnl Save original values
102103
_SAVE_CPPFLAGS=$CPPFLAGS

ext/ldap/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if (PHP_LDAP != "no") {
1515
AC_DEFINE('HAVE_LDAP_PARSE_RESULT', 1);
1616
AC_DEFINE('HAVE_LDAP_PARSE_REFERENCE', 1);
1717
AC_DEFINE('HAVE_LDAP_START_TLS_S', 1);
18-
AC_DEFINE('HAVE_LDAP', 1);
18+
AC_DEFINE('HAVE_LDAP', 1, "Define to 1 if the PHP extension 'ldap' is available.");
1919
AC_DEFINE('HAVE_LDAP_SASL', 1);
2020
AC_DEFINE('HAVE_LDAP_CONTROL_FIND', 1);
2121
AC_DEFINE('HAVE_LDAP_PARSE_EXTENDED_RESULT', 1);

ext/libxml/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if (PHP_LIBXML == "yes") {
1010
ADD_EXTENSION_DEP('libxml', 'iconv')) {
1111

1212
EXTENSION("libxml", "libxml.c mime_sniff.c", false /* never shared */, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
13-
AC_DEFINE("HAVE_LIBXML", 1, "Define to 1 if libxml extension is available.");
13+
AC_DEFINE("HAVE_LIBXML", 1, "Define to 1 if the PHP extension 'libxml' is available.");
1414
ADD_FLAG("CFLAGS_LIBXML", "/D LIBXML_STATIC /D LIBXML_STATIC_FOR_DLL /D HAVE_WIN32_THREADS ");
1515
if (!PHP_LIBXML_SHARED) {
1616
ADD_DEF_FILE("ext\\libxml\\php_libxml2.def");

ext/libxml/config0.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if test "$PHP_LIBXML" != "no"; then
1111

1212
PHP_SETUP_LIBXML([LIBXML_SHARED_LIBADD], [
1313
AC_DEFINE([HAVE_LIBXML], [1],
14-
[Define to 1 if libxml extension is available.])
14+
[Define to 1 if the PHP extension 'libxml' is available.])
1515
PHP_NEW_EXTENSION([libxml],
1616
[libxml.c mime_sniff.c],
1717
[$ext_shared],,

ext/mbstring/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ PHP_ARG_ENABLE([mbregex],
167167
[no])
168168

169169
if test "$PHP_MBSTRING" != "no"; then
170-
AC_DEFINE([HAVE_MBSTRING],1,[whether to have multibyte string support])
170+
AC_DEFINE([HAVE_MBSTRING], [1],
171+
[Define to 1 if the PHP extension 'mbstring' is available.])
171172

172173
PHP_MBSTRING_ADD_BASE_SOURCES([mbstring.c php_unicode.c mb_gpc.c])
173174

ext/mbstring/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ if (PHP_MBSTRING != "no") {
3838

3939
PHP_INSTALL_HEADERS("ext/mbstring", "mbstring.h libmbfl/config.h libmbfl/mbfl/eaw_table.h libmbfl/mbfl/mbfilter.h libmbfl/mbfl/mbfilter_8bit.h libmbfl/mbfl/mbfilter_pass.h libmbfl/mbfl/mbfilter_wchar.h libmbfl/mbfl/mbfl_consts.h libmbfl/mbfl/mbfl_convert.h libmbfl/mbfl/mbfl_defs.h libmbfl/mbfl/mbfl_encoding.h libmbfl/mbfl/mbfl_filter_output.h libmbfl/mbfl/mbfl_language.h libmbfl/mbfl/mbfl_memory_device.h libmbfl/mbfl/mbfl_string.h");
4040

41-
AC_DEFINE('HAVE_MBSTRING', 1, 'Have mbstring support');
41+
AC_DEFINE('HAVE_MBSTRING', 1, "Define to 1 if the PHP extension 'mbstring' is available.");
4242

4343
if (PHP_MBREGEX != "no") {
4444
if (CHECK_HEADER_ADD_INCLUDE("oniguruma.h", "CFLAGS_MBSTRING", PHP_MBREGEX) &&

ext/odbc/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,8 @@ if test -n "$ODBC_TYPE"; then
448448
fi
449449
fi
450450

451-
AC_DEFINE(HAVE_UODBC,1,[ ])
451+
AC_DEFINE([HAVE_UODBC], [1],
452+
[Define to 1 if the PHP extension 'odbc' is available.])
452453
PHP_SUBST([ODBC_SHARED_LIBADD])
453454
AC_SUBST([ODBC_CFLAGS])
454455
AC_SUBST([ODBC_LIBS])

ext/odbc/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if (PHP_ODBC == "yes") {
88
&& CHECK_HEADER_ADD_INCLUDE("sql.h", "CFLAGS_ODBC")
99
&& CHECK_HEADER_ADD_INCLUDE("sqlext.h", "CFLAGS_ODBC")) {
1010
EXTENSION("odbc", "php_odbc.c odbc_utils.c", PHP_ODBC_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
11-
AC_DEFINE("HAVE_UODBC", 1, "ODBC support");
11+
AC_DEFINE("HAVE_UODBC", 1, "Define to 1 if the PHP extension 'odbc' is available.");
1212
if ("no" == PHP_ODBCVER) {
1313
AC_DEFINE("ODBCVER", "0x0350", "The highest supported ODBC version", false);
1414
} else if ("0" != PHP_ODBCVER) {

ext/openssl/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ if (PHP_OPENSSL != "no") {
77

88
if (ret >= 2) {
99
EXTENSION("openssl", "openssl.c xp_ssl.c");
10-
AC_DEFINE("HAVE_OPENSSL_EXT", 1, "Define to 1 if the openssl extension is available.");
10+
AC_DEFINE("HAVE_OPENSSL_EXT", 1, "Define to 1 if the PHP extension 'openssl' is available.");
1111
}
1212
}

ext/openssl/config0.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if test "$PHP_OPENSSL" != "no"; then
2222
PHP_SUBST([OPENSSL_SHARED_LIBADD])
2323
PHP_SETUP_OPENSSL([OPENSSL_SHARED_LIBADD],
2424
[AC_DEFINE([HAVE_OPENSSL_EXT], [1],
25-
[Define to 1 if the openssl extension is available.])])
25+
[Define to 1 if the PHP extension 'openssl' is available.])])
2626

2727
PHP_CHECK_LIBRARY([crypto], [RAND_egd],
2828
[AC_DEFINE([HAVE_RAND_EGD], [1],

ext/pdo_pgsql/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ if test "$PHP_PDO_PGSQL" != "no"; then
1414
PHP_SETUP_PGSQL([PDO_PGSQL_SHARED_LIBADD],,, [$PHP_PDO_PGSQL])
1515
PHP_SUBST([PDO_PGSQL_SHARED_LIBADD])
1616

17-
AC_DEFINE(HAVE_PDO_PGSQL,1,[Whether to build PostgreSQL for PDO support or not])
17+
AC_DEFINE([HAVE_PDO_PGSQL], [1],
18+
[Define to 1 if the PHP extension 'pdo_pgsql' is available.])
1819

1920
PHP_CHECK_LIBRARY([pq], [PQresultMemorySize],
2021
[AC_DEFINE([HAVE_PG_RESULT_MEMORY_SIZE], [1], [PostgreSQL 12 or later])],,

ext/pdo_pgsql/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if (PHP_PDO_PGSQL != "no") {
77
CHECK_HEADER_ADD_INCLUDE("libpq-fe.h", "CFLAGS_PDO_PGSQL", PHP_PDO_PGSQL + "\\include;" + PHP_PHP_BUILD + "\\include\\pgsql;" + PHP_PHP_BUILD + "\\include\\libpq;")) {
88
EXTENSION("pdo_pgsql", "pdo_pgsql.c pgsql_driver.c pgsql_statement.c pgsql_sql_parser.c");
99

10-
AC_DEFINE('HAVE_PDO_PGSQL', 1, 'Have PostgreSQL library');
10+
AC_DEFINE('HAVE_PDO_PGSQL', 1, "Define to 1 if the PHP extension 'pdo_pgsql' is available.");
1111

1212
ADD_EXTENSION_DEP('pdo_pgsql', 'pdo');
1313
ADD_MAKEFILE_FRAGMENT();

ext/pgsql/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ if test "$PHP_PGSQL" != "no"; then
1010
PHP_SETUP_PGSQL([PGSQL_SHARED_LIBADD],,, [$PHP_PGSQL])
1111
PHP_SUBST([PGSQL_SHARED_LIBADD])
1212

13-
AC_DEFINE(HAVE_PGSQL,1,[Whether to build PostgreSQL support or not])
13+
AC_DEFINE([HAVE_PGSQL], [1],
14+
[Define to 1 if the PHP extension 'pgsql' is available.])
1415

1516
PHP_CHECK_LIBRARY([pq], [PQresultMemorySize],
1617
[AC_DEFINE([HAVE_PG_RESULT_MEMORY_SIZE], [1], [PostgreSQL 12 or later])],,

ext/pgsql/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if (PHP_PGSQL != "no") {
66
if (CHECK_LIB("libpq.lib", "pgsql", PHP_PGSQL) &&
77
CHECK_HEADER_ADD_INCLUDE("libpq-fe.h", "CFLAGS_PGSQL", PHP_PGSQL + "\\include;" + PHP_PHP_BUILD + "\\include\\pgsql;" + PHP_PHP_BUILD + "\\include\\libpq;" + PHP_PGSQL)) {
88
EXTENSION("pgsql", "pgsql.c", PHP_PGSQL_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
9-
AC_DEFINE('HAVE_PGSQL', 1, 'Have PostgreSQL library');
9+
AC_DEFINE('HAVE_PGSQL', 1, "Define to 1 if the PHP extension 'pgsql' is available.");
1010
ADD_FLAG("CFLAGS_PGSQL", "/D PGSQL_EXPORTS");
1111
ADD_EXTENSION_DEP('pgsql', 'pcre');
1212
} else {

ext/posix/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ PHP_ARG_ENABLE([posix],
55
[yes])
66

77
if test "$PHP_POSIX" = "yes"; then
8-
AC_DEFINE(HAVE_POSIX, 1, [whether to include POSIX-like functions])
8+
AC_DEFINE([HAVE_POSIX], [1],
9+
[Define to 1 if the PHP extension 'posix' is available.])
910
PHP_NEW_EXTENSION([posix],
1011
[posix.c],
1112
[$ext_shared],,

ext/session/config.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ if test "$PHP_SESSION" != "no"; then
2222
PHP_ADD_EXTENSION_DEP(session, spl, true)
2323
PHP_SUBST([SESSION_SHARED_LIBADD])
2424
PHP_INSTALL_HEADERS([ext/session], [php_session.h mod_files.h mod_user.h])
25-
AC_DEFINE(HAVE_PHP_SESSION,1,[ ])
25+
AC_DEFINE([HAVE_PHP_SESSION], [1],
26+
[Define to 1 if the PHP extension 'session' is available.])
2627
fi
2728

2829
if test "$PHP_MM" != "no"; then

ext/session/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ if (PHP_SESSION == "yes") {
66
EXTENSION("session", "mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c", false /* never shared */, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
77
// https://bugs.php.net/53141
88
ADD_EXTENSION_DEP('session', 'spl', true);
9-
AC_DEFINE("HAVE_PHP_SESSION", 1, "Session support");
9+
AC_DEFINE("HAVE_PHP_SESSION", 1, "Define to 1 if the PHP extension 'session' is available.");
1010
PHP_INSTALL_HEADERS("ext/session", "mod_mm.h php_session.h mod_files.h mod_user.h");
1111
}

0 commit comments

Comments
 (0)