1// vim:ft=javascript 2// $Id$ 3 4ARG_WITH("password-argon2", "Argon2 support", "no"); 5 6if (PHP_PASSWORD_ARGON2 != "no") { 7 if (CHECK_LIB("argon2_a.lib;argon2.lib", null, PHP_PASSWORD_ARGON2) 8 && CHECK_HEADER_ADD_INCLUDE("argon2.h", "CFLAGS")) { 9 AC_DEFINE('HAVE_ARGON2LIB', 1); 10 if (CHECK_FUNC_IN_HEADER("argon2.h", "argon2id_hash_raw", PHP_PHP_BUILD + "\\include", "CFLAGS")) { 11 AC_DEFINE('HAVE_ARGON2ID', 1); 12 } 13 } else { 14 WARNING("Argon2 not enabled; libaries and headers not found"); 15 } 16} 17 18ARG_WITH("config-file-scan-dir", "Dir to check for additional php ini files", ""); 19 20AC_DEFINE("PHP_CONFIG_FILE_SCAN_DIR", PHP_CONFIG_FILE_SCAN_DIR); 21AC_DEFINE("PHP_USE_PHP_CRYPT_R", 1); 22 23CHECK_HEADER_ADD_INCLUDE("timelib_config.h", "CFLAGS_STANDARD", "ext/date/lib"); 24 25EXTENSION("standard", "array.c base64.c basic_functions.c browscap.c \ 26 crc32.c crypt.c crypt_freesec.c crypt_blowfish.c crypt_sha256.c \ 27 crypt_sha512.c php_crypt_r.c \ 28 cyr_convert.c datetime.c dir.c dl.c dns.c dns_win32.c exec.c \ 29 file.c filestat.c formatted_print.c fsock.c head.c html.c image.c \ 30 info.c iptc.c lcg.c link_win32.c mail.c math.c md5.c metaphone.c microtime.c \ 31 pack.c pageinfo.c quot_print.c rand.c mt_rand.c soundex.c \ 32 string.c scanf.c syslog.c type.c uniqid.c url.c var.c \ 33 versioning.c assert.c strnatcmp.c levenshtein.c incomplete_class.c \ 34 url_scanner_ex.c ftp_fopen_wrapper.c http_fopen_wrapper.c \ 35 php_fopen_wrapper.c credits.c css.c var_unserializer.c ftok.c sha1.c \ 36 user_filters.c uuencode.c filters.c proc_open.c password.c \ 37 streamsfuncs.c http.c flock_compat.c random.c", false /* never shared */, 38 '/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1'); 39 PHP_INSTALL_HEADERS("", "ext/standard"); 40if (PHP_MBREGEX != "no") { 41 CHECK_HEADER_ADD_INCLUDE("oniguruma.h", "CFLAGS_STANDARD", PHP_MBREGEX + ";ext\\mbstring\\oniguruma") 42} 43ADD_MAKEFILE_FRAGMENT(); 44PHP_INSTALL_HEADERS("", "ext/standard"); 45