xref: /PHP-8.4/ext/standard/config.w32 (revision d6a75e19)
1// vim:ft=javascript
2
3ARG_WITH("password-argon2", "Argon2 support", "no");
4
5if (PHP_PASSWORD_ARGON2 != "no") {
6	if (CHECK_LIB("argon2_a.lib;argon2.lib", null, PHP_PASSWORD_ARGON2)
7	&& CHECK_HEADER_ADD_INCLUDE("argon2.h", "CFLAGS")) {
8		if (!CHECK_FUNC_IN_HEADER("argon2.h", "argon2id_hash_raw", PHP_PHP_BUILD + "\\include", "CFLAGS")) {
9			ERROR("Please verify that Argon2 header and libraries >= 20161029 are installed");
10		}
11		AC_DEFINE('HAVE_ARGON2LIB', 1, "Define to 1 if the system has the 'libargon2' library.");
12	} else {
13		WARNING("Argon2 not enabled; libraries and headers not found");
14	}
15}
16
17ARG_WITH("config-file-scan-dir", "Dir to check for additional php ini files", "");
18
19AC_DEFINE("PHP_CONFIG_FILE_SCAN_DIR", PHP_CONFIG_FILE_SCAN_DIR);
20AC_DEFINE("PHP_USE_PHP_CRYPT_R", 1, "Define to 1 if PHP uses its own crypt_r, and to 0 if using the external crypt library.");
21
22CHECK_HEADER_ADD_INCLUDE("timelib_config.h", "CFLAGS_STANDARD", "ext/date/lib");
23
24ADD_FLAG("LIBS_STANDARD", "iphlpapi.lib");
25
26EXTENSION("standard", "array.c base64.c basic_functions.c browscap.c \
27	crc32.c crypt.c crypt_freesec.c crypt_blowfish.c crypt_sha256.c \
28	crypt_sha512.c  php_crypt_r.c " + (TARGET_ARCH != 'arm64'? " crc32_x86.c" : "") + " \
29	datetime.c dir.c dl.c dns.c dns_win32.c exec.c \
30	file.c filestat.c formatted_print.c fsock.c head.c html.c image.c \
31	info.c iptc.c link.c mail.c math.c md5.c metaphone.c microtime.c \
32	net.c pack.c pageinfo.c quot_print.c soundex.c \
33	string.c scanf.c syslog.c type.c uniqid.c url.c var.c \
34	versioning.c assert.c strnatcmp.c levenshtein.c incomplete_class.c \
35	url_scanner_ex.c ftp_fopen_wrapper.c http_fopen_wrapper.c \
36	php_fopen_wrapper.c credits.c css.c var_unserializer.c ftok.c sha1.c \
37	user_filters.c uuencode.c filters.c proc_open.c password.c \
38	streamsfuncs.c http.c flock_compat.c hrtime.c", false /* never shared */,
39	'/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1');
40ADD_SOURCES("ext/standard/libavifinfo", "avifinfo.c", "standard");
41PHP_STANDARD = "yes";
42ADD_MAKEFILE_FRAGMENT();
43PHP_INSTALL_HEADERS("", "ext/standard");
44