-
-
Notifications
You must be signed in to change notification settings - Fork 319
/
config.w32
33 lines (27 loc) · 1.18 KB
/
config.w32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// $Id$
// vim:ft=javascript
// If your extension references something external, use ARG_WITH
// ARG_WITH("yar", "for yar support", "no");
// Otherwise, use ARG_ENABLE
// ARG_ENABLE("yar", "enable yar support", "no");
ARG_ENABLE("yar", "enable yar support", "no");
if (PHP_YAR != "no") {
if (CHECK_LIB("libcurl_a.lib;libcurl.lib", "yar") &&
CHECK_HEADER_ADD_INCLUDE("curl/easy.h", "CFLAGS_YAR") &&
SETUP_OPENSSL("yar") > 0 &&
CHECK_LIB("winmm.lib", "yar") &&
CHECK_LIB("wldap32.lib", "yar") &&
CHECK_LIB("normaliz.lib", "yar") &&
CHECK_LIB("libssh2.lib", "yar") &&
CHECK_LIB("nghttp2.lib", "yar")) {
ADD_EXTENSION_DEP("yar", "json");
ADD_FLAG("CFLAGS_YAR", "/I " + configure_module_dirname);
ADD_FLAG("CFLAGS_YAR", "/D CURL_STATICLIB");
EXTENSION("yar", "yar.c yar_server.c yar_client.c yar_request.c yar_response.c yar_exception.c yar_packager.c yar_protocol.c yar_transport.c");
ADD_SOURCES(configure_module_dirname + "\\packagers", "php.c json.c msgpack.c", "yar");
ADD_SOURCES(configure_module_dirname + "\\transports", "curl.c socket.c", "yar");
AC_DEFINE("HAVE_YAR", 1, "Have Yar Support");
} else {
WARNING("yar not enabled, libs or headers not found");
}
}