mirror of
https://github.com/php/php-src.git
synced 2024-12-29 11:48:13 +08:00
f504e9eb72
* PHP-7.0: Support also no,shared configure arg vals by default
27 lines
507 B
JavaScript
27 lines
507 B
JavaScript
// $Id$
|
|
// vim:ft=javascript
|
|
|
|
ARG_WITH("openssl", "OpenSSL support", "no,shared");
|
|
|
|
if (PHP_OPENSSL != "no") {
|
|
var ret = SETUP_OPENSSL("openssl", PHP_OPENSSL);
|
|
|
|
if (ret > 0) {
|
|
EXTENSION("openssl", "openssl.c xp_ssl.c");
|
|
AC_DEFINE("HAVE_OPENSSL_EXT", PHP_OPENSSL_SHARED ? 0 : 1, "Have openssl");
|
|
AC_DEFINE("HAVE_OPENSSL", 1);
|
|
|
|
switch (ret) {
|
|
/* Openssl 1.0.x and lower */
|
|
case 1:
|
|
AC_DEFINE("HAVE_DSA_DEFAULT_METHOD", 1);
|
|
break;
|
|
/* Openssl 1.1.x */
|
|
case 2:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
|