xref: /PHP-7.4/ext/gmp/config.w32 (revision 359a78b1)
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, 'GMP support');
11	} else {
12		WARNING("GMP not enabled; libraries and headers not found");
13	}
14}
15