aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac1
-rw-r--r--src/testcurl/https/Makefile.am65
2 files changed, 17 insertions, 49 deletions
diff --git a/configure.ac b/configure.ac
index 9d628ee1..982e52a7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -814,6 +814,7 @@ AS_IF([test "x$USE_THREADS" = "xposix"],
814 [AC_DEFINE([MHD_USE_W32_THREADS],[1],[define to use W32 threads])])]) 814 [AC_DEFINE([MHD_USE_W32_THREADS],[1],[define to use W32 threads])])])
815AM_CONDITIONAL([USE_POSIX_THREADS], [test "x$USE_THREADS" = "xposix"]) 815AM_CONDITIONAL([USE_POSIX_THREADS], [test "x$USE_THREADS" = "xposix"])
816AM_CONDITIONAL([USE_W32_THREADS], [test "x$USE_THREADS" = "xw32"]) 816AM_CONDITIONAL([USE_W32_THREADS], [test "x$USE_THREADS" = "xw32"])
817AM_CONDITIONAL([USE_THREADS], [test "x$USE_THREADS" != "xnone"])
817AM_CONDITIONAL([DISABLE_THREADS], [test "x$USE_THREADS" = "xnone"]) 818AM_CONDITIONAL([DISABLE_THREADS], [test "x$USE_THREADS" = "xnone"])
818AC_MSG_RESULT([$USE_THREADS]) 819AC_MSG_RESULT([$USE_THREADS])
819 820
diff --git a/src/testcurl/https/Makefile.am b/src/testcurl/https/Makefile.am
index f00355bb..47256c58 100644
--- a/src/testcurl/https/Makefile.am
+++ b/src/testcurl/https/Makefile.am
@@ -7,6 +7,19 @@ if USE_COVERAGE
7 AM_CFLAGS = --coverage 7 AM_CFLAGS = --coverage
8endif 8endif
9 9
10.NOTPARALLEL:
11
12MHD_CPU_COUNT_DEF = -DMHD_CPU_COUNT=$(CPU_COUNT)
13
14AM_CPPFLAGS = \
15 -I$(top_srcdir)/src/include \
16 -I$(top_srcdir)/src/microhttpd \
17 $(LIBCURL_CPPFLAGS) $(MHD_TLS_LIB_CPPFLAGS)
18
19LDADD = \
20 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
21 $(MHD_TLS_LIB_LDFLAGS) $(MHD_TLS_LIBDEPS) @LIBGCRYPT_LIBS@ @LIBCURL@
22
10if HAVE_GNUTLS_SNI 23if HAVE_GNUTLS_SNI
11 TEST_HTTPS_SNI = test_https_sni 24 TEST_HTTPS_SNI = test_https_sni
12endif 25endif
@@ -17,15 +30,6 @@ if HAVE_POSIX_THREADS
17 test_https_get_parallel_threads 30 test_https_get_parallel_threads
18endif 31endif
19 32
20.NOTPARALLEL:
21
22MHD_CPU_COUNT_DEF = -DMHD_CPU_COUNT=$(CPU_COUNT)
23
24AM_CPPFLAGS = \
25 -I$(top_srcdir)/src/include \
26 -I$(top_srcdir)/src/microhttpd \
27 $(LIBCURL_CPPFLAGS) $(MHD_TLS_LIB_CPPFLAGS)
28
29THREAD_ONLY_TESTS = \ 33THREAD_ONLY_TESTS = \
30 test_tls_options \ 34 test_tls_options \
31 test_tls_authentication \ 35 test_tls_authentication \
@@ -42,11 +46,7 @@ THREAD_ONLY_TESTS = \
42check_PROGRAMS = \ 46check_PROGRAMS = \
43 test_https_get_select 47 test_https_get_select
44 48
45if USE_POSIX_THREADS 49if USE_THREADS
46check_PROGRAMS += \
47 $(THREAD_ONLY_TESTS)
48endif
49if USE_W32_THREADS
50check_PROGRAMS += \ 50check_PROGRAMS += \
51 $(THREAD_ONLY_TESTS) 51 $(THREAD_ONLY_TESTS)
52endif 52endif
@@ -56,7 +56,6 @@ EXTRA_DIST = \
56 host1.crt host1.key \ 56 host1.crt host1.key \
57 host2.crt host2.key 57 host2.crt host2.key
58 58
59
60TESTS = \ 59TESTS = \
61 $(check_PROGRAMS) 60 $(check_PROGRAMS)
62 61
@@ -66,9 +65,6 @@ test_https_time_out_SOURCES = \
66 tls_test_keys.h \ 65 tls_test_keys.h \
67 tls_test_common.h \ 66 tls_test_common.h \
68 tls_test_common.c 67 tls_test_common.c
69test_https_time_out_LDADD = \
70 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
71 $(MHD_TLS_LIB_LDFLAGS) $(MHD_TLS_LIBDEPS) @LIBGCRYPT_LIBS@ @LIBCURL@
72 68
73test_tls_options_SOURCES = \ 69test_tls_options_SOURCES = \
74 test_tls_options.c \ 70 test_tls_options.c \
@@ -76,9 +72,6 @@ test_tls_options_SOURCES = \
76 tls_test_common.h \ 72 tls_test_common.h \
77 tls_test_common.c \ 73 tls_test_common.c \
78 curl_version_check.c 74 curl_version_check.c
79test_tls_options_LDADD = \
80 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
81 $(MHD_TLS_LIB_LDFLAGS) $(MHD_TLS_LIBDEPS) @LIBGCRYPT_LIBS@ @LIBCURL@
82 75
83test_https_get_parallel_SOURCES = \ 76test_https_get_parallel_SOURCES = \
84 test_https_get_parallel.c \ 77 test_https_get_parallel.c \
@@ -90,17 +83,13 @@ test_https_get_parallel_CPPFLAGS = \
90test_https_get_parallel_CFLAGS = \ 83test_https_get_parallel_CFLAGS = \
91 $(PTHREAD_CFLAGS) $(AM_CFLAGS) 84 $(PTHREAD_CFLAGS) $(AM_CFLAGS)
92test_https_get_parallel_LDADD = \ 85test_https_get_parallel_LDADD = \
93 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 86 $(PTHREAD_LIBS) $(LDADD)
94 $(PTHREAD_LIBS) $(MHD_TLS_LIB_LDFLAGS) $(MHD_TLS_LIBDEPS) @LIBGCRYPT_LIBS@ @LIBCURL@
95 87
96test_empty_response_SOURCES = \ 88test_empty_response_SOURCES = \
97 test_empty_response.c \ 89 test_empty_response.c \
98 tls_test_keys.h \ 90 tls_test_keys.h \
99 tls_test_common.h \ 91 tls_test_common.h \
100 tls_test_common.c 92 tls_test_common.c
101test_empty_response_LDADD = \
102 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
103 $(MHD_TLS_LIB_LDFLAGS) $(MHD_TLS_LIBDEPS) @LIBGCRYPT_LIBS@ @LIBCURL@
104 93
105test_https_get_parallel_threads_SOURCES = \ 94test_https_get_parallel_threads_SOURCES = \
106 test_https_get_parallel_threads.c \ 95 test_https_get_parallel_threads.c \
@@ -112,53 +101,37 @@ test_https_get_parallel_threads_CPPFLAGS = \
112test_https_get_parallel_threads_CFLAGS = \ 101test_https_get_parallel_threads_CFLAGS = \
113 $(PTHREAD_CFLAGS) $(AM_CFLAGS) 102 $(PTHREAD_CFLAGS) $(AM_CFLAGS)
114test_https_get_parallel_threads_LDADD = \ 103test_https_get_parallel_threads_LDADD = \
115 $(top_builddir)/src/microhttpd/libmicrohttpd.la \ 104 $(PTHREAD_LIBS) $(LDADD)
116 $(PTHREAD_LIBS) $(MHD_TLS_LIB_LDFLAGS) $(MHD_TLS_LIBDEPS) @LIBGCRYPT_LIBS@ @LIBCURL@
117 105
118test_tls_authentication_SOURCES = \ 106test_tls_authentication_SOURCES = \
119 test_tls_authentication.c \ 107 test_tls_authentication.c \
120 tls_test_keys.h \ 108 tls_test_keys.h \
121 tls_test_common.h \ 109 tls_test_common.h \
122 tls_test_common.c 110 tls_test_common.c
123test_tls_authentication_LDADD = \
124 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
125 $(MHD_TLS_LIB_LDFLAGS) $(MHD_TLS_LIBDEPS) @LIBGCRYPT_LIBS@ @LIBCURL@
126 111
127test_https_session_info_SOURCES = \ 112test_https_session_info_SOURCES = \
128 test_https_session_info.c \ 113 test_https_session_info.c \
129 tls_test_keys.h \ 114 tls_test_keys.h \
130 tls_test_common.h \ 115 tls_test_common.h \
131 tls_test_common.c 116 tls_test_common.c
132test_https_session_info_LDADD = \
133 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
134 $(MHD_TLS_LIB_LDFLAGS) $(MHD_TLS_LIBDEPS) @LIBGCRYPT_LIBS@ @LIBCURL@
135 117
136test_https_multi_daemon_SOURCES = \ 118test_https_multi_daemon_SOURCES = \
137 test_https_multi_daemon.c \ 119 test_https_multi_daemon.c \
138 tls_test_keys.h \ 120 tls_test_keys.h \
139 tls_test_common.h \ 121 tls_test_common.h \
140 tls_test_common.c 122 tls_test_common.c
141test_https_multi_daemon_LDADD = \
142 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
143 $(MHD_TLS_LIB_LDFLAGS) $(MHD_TLS_LIBDEPS) @LIBGCRYPT_LIBS@ @LIBCURL@
144 123
145test_https_get_SOURCES = \ 124test_https_get_SOURCES = \
146 test_https_get.c \ 125 test_https_get.c \
147 tls_test_keys.h \ 126 tls_test_keys.h \
148 tls_test_common.h \ 127 tls_test_common.h \
149 tls_test_common.c 128 tls_test_common.c
150test_https_get_LDADD = \
151 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
152 $(MHD_TLS_LIB_LDFLAGS) $(MHD_TLS_LIBDEPS) @LIBGCRYPT_LIBS@ @LIBCURL@
153 129
154test_https_get_iovec_SOURCES = \ 130test_https_get_iovec_SOURCES = \
155 test_https_get_iovec.c \ 131 test_https_get_iovec.c \
156 tls_test_keys.h \ 132 tls_test_keys.h \
157 tls_test_common.h \ 133 tls_test_common.h \
158 tls_test_common.c 134 tls_test_common.c
159test_https_get_iovec_LDADD = \
160 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
161 $(MHD_TLS_LIB_LDFLAGS) $(MHD_TLS_LIBDEPS) @LIBGCRYPT_LIBS@ @LIBCURL@
162 135
163if HAVE_GNUTLS_SNI 136if HAVE_GNUTLS_SNI
164test_https_sni_SOURCES = \ 137test_https_sni_SOURCES = \
@@ -169,9 +142,6 @@ test_https_sni_SOURCES = \
169test_https_sni_CPPFLAGS = \ 142test_https_sni_CPPFLAGS = \
170 $(AM_CPPFLAGS) \ 143 $(AM_CPPFLAGS) \
171 -DABS_SRCDIR=\"$(abs_srcdir)\" 144 -DABS_SRCDIR=\"$(abs_srcdir)\"
172test_https_sni_LDADD = \
173 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
174 $(MHD_TLS_LIB_LDFLAGS) $(MHD_TLS_LIBDEPS) @LIBGCRYPT_LIBS@ @LIBCURL@
175endif 145endif
176 146
177test_https_get_select_SOURCES = \ 147test_https_get_select_SOURCES = \
@@ -179,6 +149,3 @@ test_https_get_select_SOURCES = \
179 tls_test_keys.h \ 149 tls_test_keys.h \
180 tls_test_common.h \ 150 tls_test_common.h \
181 tls_test_common.c 151 tls_test_common.c
182test_https_get_select_LDADD = \
183 $(top_builddir)/src/microhttpd/libmicrohttpd.la \
184 $(MHD_TLS_LIB_LDFLAGS) $(MHD_TLS_LIBDEPS) @LIBGCRYPT_LIBS@ @LIBCURL@