Skip to content

Sync HAVE_<extension> help texts #15167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ext/bcmath/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ if test "$PHP_BCMATH" != "no"; then
[$ext_shared],,
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
PHP_ADD_BUILD_DIR([$ext_builddir/libbcmath/src])
AC_DEFINE(HAVE_BCMATH, 1, [Whether you have bcmath])
AC_DEFINE([HAVE_BCMATH], [1],
[Define to 1 if the PHP extension 'bcmath' is available.])
fi
2 changes: 1 addition & 1 deletion ext/bcmath/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ if (PHP_BCMATH == "yes") {
floor_or_ceil.c nearzero.c num2str.c raise.c rmzero.c str2num.c \
round.c convert.c", "bcmath");

AC_DEFINE('HAVE_BCMATH', 1, 'Have BCMATH library');
AC_DEFINE('HAVE_BCMATH', 1, "Define to 1 if the PHP extension 'bcmath' is available.");
}
3 changes: 2 additions & 1 deletion ext/bz2/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ if test "$PHP_BZ2" != "no"; then
PHP_ADD_LIBRARY_WITH_PATH([bz2],
[$BZIP_DIR/$PHP_LIBDIR],
[BZ2_SHARED_LIBADD])
AC_DEFINE([HAVE_BZ2], [1], [ ])
AC_DEFINE([HAVE_BZ2], [1],
[Define to 1 if the PHP extension 'bz2' is available.])
],
[AC_MSG_ERROR([bz2 module requires libbz2 >= 1.0.0])],
[-L$BZIP_DIR/$PHP_LIBDIR])
Expand Down
2 changes: 1 addition & 1 deletion ext/bz2/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if (PHP_BZ2 != "no") {
if (CHECK_LIB("libbz2_a.lib;libbz2.lib", "bz2", PHP_BZ2) &&
CHECK_HEADER_ADD_INCLUDE("bzlib.h", "CFLAGS_BZ2")) {
EXTENSION("bz2", "bz2.c bz2_filter.c");
AC_DEFINE('HAVE_BZ2', 1, 'Have BZ2 library');
AC_DEFINE('HAVE_BZ2', 1, "Define to 1 if the PHP extension 'bz2' is available.");
// BZ2 extension does this slightly differently from others
if (PHP_BZ2_SHARED) {
ADD_FLAG("CFLAGS_BZ2", "/D PHP_BZ2_EXPORTS ");
Expand Down
3 changes: 2 additions & 1 deletion ext/calendar/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ PHP_ARG_ENABLE([calendar],
[Enable support for calendar conversion])])

if test "$PHP_CALENDAR" = "yes"; then
AC_DEFINE(HAVE_CALENDAR,1,[ ])
AC_DEFINE([HAVE_CALENDAR], [1],
[Define to 1 if the PHP extension 'calendar' is available.])
PHP_NEW_EXTENSION([calendar],
[calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c],
[$ext_shared])
Expand Down
2 changes: 1 addition & 1 deletion ext/calendar/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ ARG_ENABLE("calendar", "calendar conversion support", "yes");
if (PHP_CALENDAR == "yes") {
EXTENSION("calendar", "calendar.c dow.c french.c gregor.c jewish.c \
julian.c easter.c cal_unix.c");
AC_DEFINE('HAVE_CALENDAR', 1, 'Have calendar');
AC_DEFINE('HAVE_CALENDAR', 1, "Define to 1 if the PHP extension 'calendar' is available.");
}
2 changes: 1 addition & 1 deletion ext/com_dotnet/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ if (PHP_COM_DOTNET == "yes") {
com_handlers.c com_iterator.c com_misc.c com_olechar.c \
com_typeinfo.c com_variant.c com_wrapper.c com_saproxy.c com_persist.c",
null, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
AC_DEFINE('HAVE_COM_DOTNET', 1, 'Have COM_DOTNET support');
AC_DEFINE('HAVE_COM_DOTNET', 1, "Define to 1 if the PHP extension 'com_dotnet' is available.");
CHECK_HEADER_ADD_INCLUDE('mscoree.h', 'CFLAGS_COM_DOTNET');
}
3 changes: 2 additions & 1 deletion ext/ctype/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ PHP_ARG_ENABLE([ctype],
[yes])

if test "$PHP_CTYPE" != "no"; then
AC_DEFINE(HAVE_CTYPE, 1, [ ])
AC_DEFINE([HAVE_CTYPE], [1],
[Define to 1 if the PHP extension 'ctype' is available.])
PHP_NEW_EXTENSION([ctype], [ctype.c], [$ext_shared])
fi
2 changes: 1 addition & 1 deletion ext/ctype/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ ARG_ENABLE("ctype", "ctype", "yes");

if (PHP_CTYPE == "yes") {
EXTENSION("ctype", "ctype.c");
AC_DEFINE('HAVE_CTYPE', 1, 'Have ctype');
AC_DEFINE('HAVE_CTYPE', 1, "Define to 1 if the PHP extension 'ctype' is available.");
}
2 changes: 1 addition & 1 deletion ext/curl/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ if test "$PHP_CURL" != "no"; then
PHP_CHECK_LIBRARY([curl],
[curl_easy_perform],
[AC_DEFINE([HAVE_CURL], [1],
[Define to 1 if curl extension is available.])],
[Define to 1 if the PHP extension 'curl' is available.])],
[AC_MSG_ERROR([The libcurl check failed. Please, check config.log for details.])],
[$CURL_LIBS])

Expand Down
2 changes: 1 addition & 1 deletion ext/curl/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if (PHP_CURL != "no") {
CHECK_LIB("nghttp2.lib", "curl", PHP_CURL))
) {
EXTENSION("curl", "interface.c multi.c share.c curl_file.c");
AC_DEFINE('HAVE_CURL', 1, 'Define to 1 if curl extension is available.');
AC_DEFINE('HAVE_CURL', 1, "Define to 1 if the PHP extension 'curl' is available.");
ADD_FLAG("CFLAGS_CURL", "/D CURL_STATICLIB /D PHP_CURL_EXPORTS=1");
PHP_INSTALL_HEADERS("ext/curl", "php_curl.h");
} else {
Expand Down
3 changes: 2 additions & 1 deletion ext/dba/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,8 @@ if test "$HAVE_DBA" = "1"; then
else
AC_MSG_RESULT([yes])
fi
AC_DEFINE(HAVE_DBA, 1, [ ])
AC_DEFINE([HAVE_DBA], [1],
[Define to 1 if the PHP extension 'dba' is available.])
PHP_NEW_EXTENSION([dba], m4_normalize([
dba_cdb.c
dba_db1.c
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if (PHP_DBA != "no") {
ADD_SOURCES("ext/dba/libcdb", "cdb.c cdb_make.c uint32.c", "dba");
ADD_SOURCES("ext/dba/libflatfile", "flatfile.c", "dba");
ADD_SOURCES("ext/dba/libinifile", "inifile.c", "dba");
AC_DEFINE('HAVE_DBA', 1, 'DBA support');
AC_DEFINE('HAVE_DBA', 1, "Define to 1 if the PHP extension 'dba' is available.");
ADD_FLAG("CFLAGS_DBA", "/D DBA_FLATFILE=1 /D DBA_CDB=1 /D DBA_CDB_BUILTIN=1 /D DBA_INIFILE=1");

if (PHP_DB != "no") {
Expand Down
3 changes: 2 additions & 1 deletion ext/dom/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ if test "$PHP_DOM" != "no"; then
fi

PHP_SETUP_LIBXML([DOM_SHARED_LIBADD], [
AC_DEFINE([HAVE_DOM], [1], [Define to 1 if dom extension is available.])
AC_DEFINE([HAVE_DOM], [1],
[Define to 1 if the PHP extension 'dom' is available.])
PHP_LEXBOR_CFLAGS="-I@ext_srcdir@/lexbor -DLEXBOR_STATIC"
LEXBOR_DIR="lexbor/lexbor"
LEXBOR_SOURCES=m4_normalize(["
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if (PHP_DOM == "yes") {
ADD_SOURCES("ext/dom/lexbor/lexbor/tag", "tag.c", "dom");
ADD_FLAG("CFLAGS_DOM", "/D LEXBOR_STATIC ");

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

if (!PHP_DOM_SHARED) {
ADD_FLAG("CFLAGS_DOM", "/D LIBXML_STATIC ");
Expand Down
3 changes: 2 additions & 1 deletion ext/enchant/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ if test "$PHP_ENCHANT" != "no"; then
[$ENCHANT_LIBS])
])

AC_DEFINE(HAVE_ENCHANT, 1, [ ])
AC_DEFINE([HAVE_ENCHANT], [1],
[Define to 1 if the PHP extension 'enchant' is available.])

PHP_NEW_EXTENSION([enchant], [enchant.c], [$ext_shared])
PHP_SUBST([ENCHANT_SHARED_LIBADD])
Expand Down
2 changes: 1 addition & 1 deletion ext/enchant/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if (PHP_ENCHANT == "yes") {
}
if (have_enchant) {
EXTENSION("enchant", "enchant.c");
AC_DEFINE('HAVE_ENCHANT', 1, 'Have Enchant support', false);
AC_DEFINE('HAVE_ENCHANT', 1, "Define to 1 if the PHP extension 'enchant' is available.");
AC_DEFINE('HAVE_ENCHANT_GET_VERSION', 1);
}
} else {
Expand Down
3 changes: 2 additions & 1 deletion ext/exif/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ PHP_ARG_ENABLE([exif],
[Enable EXIF (metadata from images) support])])

if test "$PHP_EXIF" != "no"; then
AC_DEFINE(HAVE_EXIF, 1, [Whether you want EXIF (metadata from images) support])
AC_DEFINE([HAVE_EXIF], [1],
[Define to 1 if the PHP extension 'exif' is available.])
PHP_NEW_EXTENSION([exif],
[exif.c],
[$ext_shared],,
Expand Down
2 changes: 1 addition & 1 deletion ext/exif/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if(PHP_EXIF != 'no')
{
if(ADD_EXTENSION_DEP('exif', 'mbstring'))
{
AC_DEFINE('HAVE_EXIF', 1, 'Have EXIF Support');
AC_DEFINE('HAVE_EXIF', 1, "Define to 1 if the PHP extension 'exif' is available.");

EXTENSION('exif', 'exif.c', null, '/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1');
}
Expand Down
3 changes: 2 additions & 1 deletion ext/ffi/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ if test "$PHP_FFI" != "no"; then
PHP_EVAL_INCLINE([$FFI_CFLAGS])
PHP_EVAL_LIBLINE([$FFI_LIBS], [FFI_SHARED_LIBADD])

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

AC_CHECK_TYPES([long double])

Expand Down
2 changes: 1 addition & 1 deletion ext/ffi/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG_WITH('ffi', 'ffi support', 'no');
if (PHP_FFI != 'no') {
if (CHECK_HEADER_ADD_INCLUDE("ffi.h", "CFLAGS_FFI", PHP_FFI+ ";" + PHP_PHP_BUILD + "\\include") &&
CHECK_LIB("libffi.lib", "ffi", PHP_FFI)) {
AC_DEFINE('HAVE_FFI', 1, 'ffi support enabled');
AC_DEFINE('HAVE_FFI', 1, "Define to 1 if the PHP extension 'ffi' is available.");

if (!X64) {
AC_DEFINE('HAVE_FFI_FASTCALL', 1 ,'libffi supports fastcall calling convention');
Expand Down
3 changes: 2 additions & 1 deletion ext/ftp/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ PHP_ARG_WITH([ftp-ssl],
[no])

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

dnl Empty variable means 'no' (for phpize builds).
Expand Down
2 changes: 1 addition & 1 deletion ext/ftp/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ if (PHP_FTP != "no") {
AC_DEFINE('HAVE_FTP_SSL', 1, 'Have FTP over SSL support');
}

AC_DEFINE('HAVE_FTP', 1, 'Have FTP support');
AC_DEFINE('HAVE_FTP', 1, "Define to 1 if the PHP extension 'ftp' is available.");
}
3 changes: 2 additions & 1 deletion ext/gmp/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ if test "$PHP_GMP" != "no"; then
[$ext_shared],,
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
PHP_SUBST([GMP_SHARED_LIBADD])
AC_DEFINE(HAVE_GMP, 1, [ ])
AC_DEFINE([HAVE_GMP], [1],
[Define to 1 if the PHP extension 'gmp' is available.])
fi
2 changes: 1 addition & 1 deletion ext/gmp/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (PHP_GMP != "no") {
CHECK_HEADER_ADD_INCLUDE("gmp.h", "CFLAGS_GMP", PHP_GMP + ";" + PHP_PHP_BUILD + "\\include\\mpir")) {
EXTENSION("gmp", "gmp.c", null, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
PHP_INSTALL_HEADERS("ext/gmp", "php_gmp_int.h");
AC_DEFINE('HAVE_GMP', 1, 'GMP support');
AC_DEFINE('HAVE_GMP', 1, "Define to 1 if the PHP extension 'gmp' is available.");
} else {
WARNING("GMP not enabled; libraries and headers not found");
}
Expand Down
2 changes: 1 addition & 1 deletion ext/iconv/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ int main(void) {
CFLAGS="$save_CFLAGS"

AC_DEFINE([HAVE_ICONV], [1],
[Define to 1 if PHP extension 'iconv' is available.])
[Define to 1 if the PHP extension 'iconv' is available.])

PHP_NEW_EXTENSION([iconv],
[iconv.c],
Expand Down
2 changes: 1 addition & 1 deletion ext/iconv/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if (PHP_ICONV != "no") {

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

AC_DEFINE("HAVE_ICONV", 1, "Define to 1 if PHP extension 'iconv' is available.");
AC_DEFINE("HAVE_ICONV", 1, "Define to 1 if the PHP extension 'iconv' is available.");
AC_DEFINE("HAVE_LIBICONV", 1, "Define to 1 if you have the 'libiconv' function.");
AC_DEFINE("ICONV_ALIASED_LIBICONV", 1, "Define to 1 if 'iconv()' is aliased to 'libiconv()'.");
AC_DEFINE("PHP_ICONV_IMPL", "\"libiconv\"", "The iconv implementation.");
Expand Down
3 changes: 2 additions & 1 deletion ext/ldap/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ if test "$PHP_LDAP" != "no"; then

PHP_ADD_INCLUDE([$LDAP_INCDIR])
PHP_SUBST([LDAP_SHARED_LIBADD])
AC_DEFINE(HAVE_LDAP,1,[ ])
AC_DEFINE([HAVE_LDAP], [1],
[Define to 1 if the PHP extension 'ldap' is available.])

dnl Save original values
_SAVE_CPPFLAGS=$CPPFLAGS
Expand Down
2 changes: 1 addition & 1 deletion ext/ldap/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if (PHP_LDAP != "no") {
AC_DEFINE('HAVE_LDAP_PARSE_RESULT', 1);
AC_DEFINE('HAVE_LDAP_PARSE_REFERENCE', 1);
AC_DEFINE('HAVE_LDAP_START_TLS_S', 1);
AC_DEFINE('HAVE_LDAP', 1);
AC_DEFINE('HAVE_LDAP', 1, "Define to 1 if the PHP extension 'ldap' is available.");
AC_DEFINE('HAVE_LDAP_SASL', 1);
AC_DEFINE('HAVE_LDAP_CONTROL_FIND', 1);
AC_DEFINE('HAVE_LDAP_PARSE_EXTENDED_RESULT', 1);
Expand Down
2 changes: 1 addition & 1 deletion ext/libxml/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if (PHP_LIBXML == "yes") {
ADD_EXTENSION_DEP('libxml', 'iconv')) {

EXTENSION("libxml", "libxml.c mime_sniff.c", false /* never shared */, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
AC_DEFINE("HAVE_LIBXML", 1, "Define to 1 if libxml extension is available.");
AC_DEFINE("HAVE_LIBXML", 1, "Define to 1 if the PHP extension 'libxml' is available.");
ADD_FLAG("CFLAGS_LIBXML", "/D LIBXML_STATIC /D LIBXML_STATIC_FOR_DLL /D HAVE_WIN32_THREADS ");
if (!PHP_LIBXML_SHARED) {
ADD_DEF_FILE("ext\\libxml\\php_libxml2.def");
Expand Down
2 changes: 1 addition & 1 deletion ext/libxml/config0.m4
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if test "$PHP_LIBXML" != "no"; then

PHP_SETUP_LIBXML([LIBXML_SHARED_LIBADD], [
AC_DEFINE([HAVE_LIBXML], [1],
[Define to 1 if libxml extension is available.])
[Define to 1 if the PHP extension 'libxml' is available.])
PHP_NEW_EXTENSION([libxml],
[libxml.c mime_sniff.c],
[$ext_shared],,
Expand Down
3 changes: 2 additions & 1 deletion ext/mbstring/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ PHP_ARG_ENABLE([mbregex],
[no])

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

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

Expand Down
2 changes: 1 addition & 1 deletion ext/mbstring/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if (PHP_MBSTRING != "no") {

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");

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

if (PHP_MBREGEX != "no") {
if (CHECK_HEADER_ADD_INCLUDE("oniguruma.h", "CFLAGS_MBSTRING", PHP_MBREGEX) &&
Expand Down
3 changes: 2 additions & 1 deletion ext/odbc/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,8 @@ if test -n "$ODBC_TYPE"; then
fi
fi

AC_DEFINE(HAVE_UODBC,1,[ ])
AC_DEFINE([HAVE_UODBC], [1],
[Define to 1 if the PHP extension 'odbc' is available.])
PHP_SUBST([ODBC_SHARED_LIBADD])
AC_SUBST([ODBC_CFLAGS])
AC_SUBST([ODBC_LIBS])
Expand Down
2 changes: 1 addition & 1 deletion ext/odbc/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if (PHP_ODBC == "yes") {
&& CHECK_HEADER_ADD_INCLUDE("sql.h", "CFLAGS_ODBC")
&& CHECK_HEADER_ADD_INCLUDE("sqlext.h", "CFLAGS_ODBC")) {
EXTENSION("odbc", "php_odbc.c odbc_utils.c", PHP_ODBC_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
AC_DEFINE("HAVE_UODBC", 1, "ODBC support");
AC_DEFINE("HAVE_UODBC", 1, "Define to 1 if the PHP extension 'odbc' is available.");
if ("no" == PHP_ODBCVER) {
AC_DEFINE("ODBCVER", "0x0350", "The highest supported ODBC version", false);
} else if ("0" != PHP_ODBCVER) {
Expand Down
2 changes: 1 addition & 1 deletion ext/openssl/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ if (PHP_OPENSSL != "no") {

if (ret >= 2) {
EXTENSION("openssl", "openssl.c xp_ssl.c");
AC_DEFINE("HAVE_OPENSSL_EXT", 1, "Define to 1 if the openssl extension is available.");
AC_DEFINE("HAVE_OPENSSL_EXT", 1, "Define to 1 if the PHP extension 'openssl' is available.");
}
}
2 changes: 1 addition & 1 deletion ext/openssl/config0.m4
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if test "$PHP_OPENSSL" != "no"; then
PHP_SUBST([OPENSSL_SHARED_LIBADD])
PHP_SETUP_OPENSSL([OPENSSL_SHARED_LIBADD],
[AC_DEFINE([HAVE_OPENSSL_EXT], [1],
[Define to 1 if the openssl extension is available.])])
[Define to 1 if the PHP extension 'openssl' is available.])])

PHP_CHECK_LIBRARY([crypto], [RAND_egd],
[AC_DEFINE([HAVE_RAND_EGD], [1],
Expand Down
3 changes: 2 additions & 1 deletion ext/pdo_pgsql/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ if test "$PHP_PDO_PGSQL" != "no"; then
PHP_SETUP_PGSQL([PDO_PGSQL_SHARED_LIBADD],,, [$PHP_PDO_PGSQL])
PHP_SUBST([PDO_PGSQL_SHARED_LIBADD])

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

PHP_CHECK_LIBRARY([pq], [PQresultMemorySize],
[AC_DEFINE([HAVE_PG_RESULT_MEMORY_SIZE], [1], [PostgreSQL 12 or later])],,
Expand Down
2 changes: 1 addition & 1 deletion ext/pdo_pgsql/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (PHP_PDO_PGSQL != "no") {
CHECK_HEADER_ADD_INCLUDE("libpq-fe.h", "CFLAGS_PDO_PGSQL", PHP_PDO_PGSQL + "\\include;" + PHP_PHP_BUILD + "\\include\\pgsql;" + PHP_PHP_BUILD + "\\include\\libpq;")) {
EXTENSION("pdo_pgsql", "pdo_pgsql.c pgsql_driver.c pgsql_statement.c pgsql_sql_parser.c");

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

ADD_EXTENSION_DEP('pdo_pgsql', 'pdo');
ADD_MAKEFILE_FRAGMENT();
Expand Down
3 changes: 2 additions & 1 deletion ext/pgsql/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ if test "$PHP_PGSQL" != "no"; then
PHP_SETUP_PGSQL([PGSQL_SHARED_LIBADD],,, [$PHP_PGSQL])
PHP_SUBST([PGSQL_SHARED_LIBADD])

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

PHP_CHECK_LIBRARY([pq], [PQresultMemorySize],
[AC_DEFINE([HAVE_PG_RESULT_MEMORY_SIZE], [1], [PostgreSQL 12 or later])],,
Expand Down
2 changes: 1 addition & 1 deletion ext/pgsql/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if (PHP_PGSQL != "no") {
if (CHECK_LIB("libpq.lib", "pgsql", PHP_PGSQL) &&
CHECK_HEADER_ADD_INCLUDE("libpq-fe.h", "CFLAGS_PGSQL", PHP_PGSQL + "\\include;" + PHP_PHP_BUILD + "\\include\\pgsql;" + PHP_PHP_BUILD + "\\include\\libpq;" + PHP_PGSQL)) {
EXTENSION("pgsql", "pgsql.c", PHP_PGSQL_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
AC_DEFINE('HAVE_PGSQL', 1, 'Have PostgreSQL library');
AC_DEFINE('HAVE_PGSQL', 1, "Define to 1 if the PHP extension 'pgsql' is available.");
ADD_FLAG("CFLAGS_PGSQL", "/D PGSQL_EXPORTS");
ADD_EXTENSION_DEP('pgsql', 'pcre');
} else {
Expand Down
3 changes: 2 additions & 1 deletion ext/posix/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ PHP_ARG_ENABLE([posix],
[yes])

if test "$PHP_POSIX" = "yes"; then
AC_DEFINE(HAVE_POSIX, 1, [whether to include POSIX-like functions])
AC_DEFINE([HAVE_POSIX], [1],
[Define to 1 if the PHP extension 'posix' is available.])
PHP_NEW_EXTENSION([posix],
[posix.c],
[$ext_shared],,
Expand Down
3 changes: 2 additions & 1 deletion ext/session/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ if test "$PHP_SESSION" != "no"; then
PHP_ADD_EXTENSION_DEP(session, spl, true)
PHP_SUBST([SESSION_SHARED_LIBADD])
PHP_INSTALL_HEADERS([ext/session], [php_session.h mod_files.h mod_user.h])
AC_DEFINE(HAVE_PHP_SESSION,1,[ ])
AC_DEFINE([HAVE_PHP_SESSION], [1],
[Define to 1 if the PHP extension 'session' is available.])
fi

if test "$PHP_MM" != "no"; then
Expand Down
2 changes: 1 addition & 1 deletion ext/session/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ if (PHP_SESSION == "yes") {
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");
// https://bugs.php.net/53141
ADD_EXTENSION_DEP('session', 'spl', true);
AC_DEFINE("HAVE_PHP_SESSION", 1, "Session support");
AC_DEFINE("HAVE_PHP_SESSION", 1, "Define to 1 if the PHP extension 'session' is available.");
PHP_INSTALL_HEADERS("ext/session", "mod_mm.h php_session.h mod_files.h mod_user.h");
}
Loading