xref: /PHP-8.4/ext/gmp/config.w32 (revision f66feaec)
1// vim:ft=javascript
2
3ARG_WITH("gmp", "Include GNU MP support.", "no");
4
5if (PHP_GMP != "no") {
6	if (CHECK_LIB("mpir_a.lib", "gmp", PHP_GMP) &&
7		CHECK_HEADER_ADD_INCLUDE("gmp.h", "CFLAGS_GMP", PHP_GMP +  ";" + PHP_PHP_BUILD + "\\include\\mpir")) {
8		EXTENSION("gmp", "gmp.c", null, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
9		PHP_INSTALL_HEADERS("ext/gmp", "php_gmp_int.h");
10		AC_DEFINE('HAVE_GMP', 1, "Define to 1 if the PHP extension 'gmp' is available.");
11	} else {
12		WARNING("GMP not enabled; libraries and headers not found");
13	}
14}
15