forked from Fyb3roptik/php-pecl-solr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.w32
executable file
·54 lines (48 loc) · 1.89 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// $Id: config.w32 291135 2009-11-22 11:56:22Z pajoye $
// vim:ft=javascript
// config.w32 for solr extension
ARG_ENABLE('solr-debug', 'Whether to enable Solr debugging support', 'no');
PHP_SOLR = "yes";
if(!CHECK_LIB('libcurl_a.lib;libcurl.lib', 'solr', PHP_SOLR) ||
!CHECK_HEADER_ADD_INCLUDE('curl/easy.h', 'CFLAGS_SOLR')) {
WARNING('solr was not enabled; curl libraries and/or headers not found');
PHP_SOLR = "no";
}
if(!CHECK_LIB('ssleay32.lib', 'solr', PHP_SOLR)
|| !CHECK_LIB('libeay32.lib', 'solr', PHP_SOLR)) {
WARNING('solr was not enabled; openssl libraries not found');
PHP_SOLR = "no";
}
if(!CHECK_LIB('winmm.lib', 'solr', PHP_SOLR)
|| !CHECK_LIB('wldap32.lib', 'solr', PHP_SOLR)) {
WARNING('solr not enabled; ldap libraries not found');
PHP_SOLR = "no";
}
if(!((PHP_ZLIB == 'no' && CHECK_LIB('zlib_a.lib;zlib.lib', 'solr', PHP_SOLR))
|| (PHP_ZLIB_SHARED && CHECK_LIB('zlib.lib', 'solr', PHP_SOLR))
|| (PHP_ZLIB == 'yes' && !PHP_ZLIB_SHARED))) {
WARNING('solr not enabled; zlib libraries not found');
PHP_SOLR = "no";
}
if(PHP_LIBXML == 'no' || !ADD_EXTENSION_DEP('solr', 'libxml')) {
WARNING('solr was not enabled; libxml is not enabled');
PHP_SOLR = "no";
}
if(PHP_SOLR != 'no') {
if(PHP_SOLR_DEBUG != 'no') {
AC_DEFINE('SOLR_DEBUG', 1, 'Defining SOLR_DEBUG');
}
EXTENSION('solr',
'php_solr.c php_solr_client.c php_solr_document.c php_solr_exception.c ' +
'php_solr_input_document.c php_solr_object.c php_solr_params.c php_solr_query.c ' +
'php_solr_response.c php_solr_utils.c solr_functions_client.c solr_functions_debug.c ' +
'solr_functions_document.c solr_functions_helpers.c solr_functions_params.c ' +
'solr_functions_response.c solr_string.c'
);
ADD_FLAG('CFLAGS_SOLR', '/D CURL_STATICLIB /D LIBXML_STATICLIB');
AC_DEFINE('HAVE_SOLR', 1, 'Solr support');
if(!PHP_SOLR_SHARED) {
ADD_FLAG("CFLAGS_SOLR", "/D LIBXML_STATIC");
}
ADD_EXTENSION_DEP('solr', 'libxml');
}