mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-29 04:09:31 +03:00
add build option to compile MHD without threads
This commit is contained in:
36 files changed
+622
-255
No files matched your search
@@ -10,8 +10,9 @@ if HAVE_GNUTLS_SNI
|
||||
endif
|
||||
|
||||
if HAVE_POSIX_THREADS
|
||||
HTTPS_PARALLEL_TESTS = test_https_get_parallel \
|
||||
test_https_get_parallel_threads
|
||||
HTTPS_PARALLEL_TESTS = \
|
||||
test_https_get_parallel \
|
||||
test_https_get_parallel_threads
|
||||
endif
|
||||
|
||||
CPU_COUNT_DEF = -DCPU_COUNT=$(CPU_COUNT)
|
||||
@@ -22,32 +23,36 @@ AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/platform \
|
||||
$(LIBCURL_CPPFLAGS) $(MHD_TLS_LIB_CPPFLAGS)
|
||||
|
||||
check_PROGRAMS = \
|
||||
THREAD_ONLY_TESTS = \
|
||||
test_tls_options \
|
||||
test_tls_authentication \
|
||||
test_https_multi_daemon \
|
||||
test_https_get \
|
||||
$(TEST_HTTPS_SNI) \
|
||||
test_https_get_select \
|
||||
$(HTTPS_PARALLEL_TESTS) \
|
||||
$(TEST_HTTPS_SNI) \
|
||||
test_https_session_info \
|
||||
test_https_time_out \
|
||||
test_https_multi_daemon \
|
||||
test_https_get \
|
||||
test_empty_response
|
||||
|
||||
EXTRA_DIST = cert.pem key.pem \
|
||||
host1.crt host1.key host2.crt host2.key
|
||||
check_PROGRAMS = \
|
||||
test_https_get_select
|
||||
|
||||
if USE_POSIX_THREADS
|
||||
check_PROGRAMS +=
|
||||
$(THREAD_ONLY_TESTS)
|
||||
endif
|
||||
if USE_W32_THREADS
|
||||
check_PROGRAMS +=
|
||||
$(THREAD_ONLY_TESTS)
|
||||
endif
|
||||
|
||||
EXTRA_DIST = \
|
||||
cert.pem key.pem \
|
||||
host1.crt host1.key \
|
||||
host2.crt host2.key
|
||||
|
||||
TESTS = \
|
||||
test_tls_options \
|
||||
test_https_multi_daemon \
|
||||
test_https_get \
|
||||
$(TEST_HTTPS_SNI) \
|
||||
test_https_get_select \
|
||||
$(HTTPS_PARALLEL_TESTS) \
|
||||
test_https_session_info \
|
||||
test_https_time_out \
|
||||
test_tls_authentication \
|
||||
test_empty_response
|
||||
$(check_PROGRAMS)
|
||||
|
||||
|
||||
test_https_time_out_SOURCES = \
|
||||
|
||||
@@ -526,7 +526,9 @@ test_wrap (const char *test_name, int
|
||||
return ret;
|
||||
}
|
||||
|
||||
int testsuite_curl_global_init (void)
|
||||
|
||||
int
|
||||
testsuite_curl_global_init (void)
|
||||
{
|
||||
CURLcode res;
|
||||
#if LIBCURL_VERSION_NUM >= 0x073800
|
||||
|
||||
Reference in new issue
Block a user