xref: /PHP-5.6/ext/mcrypt/config.w32 (revision 0e61859b)
1// $Id$
2// vim:ft=javascript
3
4ARG_WITH("mcrypt", "mcrypt support", "no");
5
6if (PHP_MCRYPT != "no") {
7
8	if (CHECK_HEADER_ADD_INCLUDE('mcrypt.h', 'CFLAGS_MCRYPT') &&
9			CHECK_LIB('libmcrypt_a.lib;libmcrypt.lib', 'mcrypt') &&
10			CHECK_LIB('Advapi32.lib', 'mcrypt')
11			) {
12
13		EXTENSION('mcrypt', 'mcrypt.c mcrypt_filter.c', false);
14		AC_DEFINE('HAVE_LIBMCRYPT', 1);
15		AC_DEFINE('HAVE_LIBMCRYPT24', 1);
16	} else {
17		WARNING("mcrypt not enabled; libraries and headers not found");
18	}
19}
20