diff options
Diffstat (limited to 'src/microhttpd/Makefile.am')
-rw-r--r-- | src/microhttpd/Makefile.am | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/src/microhttpd/Makefile.am b/src/microhttpd/Makefile.am index 81dc95c2..cc48d11d 100644 --- a/src/microhttpd/Makefile.am +++ b/src/microhttpd/Makefile.am | |||
@@ -152,10 +152,12 @@ check_PROGRAMS = \ | |||
152 | test_shutdown_poll \ | 152 | test_shutdown_poll \ |
153 | test_daemon | 153 | test_daemon |
154 | 154 | ||
155 | if HAVE_POSIX_THREADS | ||
155 | if ENABLE_UPGRADE | 156 | if ENABLE_UPGRADE |
156 | check_PROGRAMS += test_upgrade | 157 | check_PROGRAMS += test_upgrade |
157 | if ENABLE_HTTPS | 158 | if ENABLE_HTTPS |
158 | check_PROGRAMS += test_upgrade_ssl | 159 | check_PROGRAMS += test_upgrade_tls |
160 | endif | ||
159 | endif | 161 | endif |
160 | endif | 162 | endif |
161 | 163 | ||
@@ -180,14 +182,28 @@ test_daemon_LDADD = \ | |||
180 | $(top_builddir)/src/microhttpd/libmicrohttpd.la | 182 | $(top_builddir)/src/microhttpd/libmicrohttpd.la |
181 | 183 | ||
182 | test_upgrade_SOURCES = \ | 184 | test_upgrade_SOURCES = \ |
183 | test_upgrade.c | 185 | test_upgrade.c test_helpers.h mhd_sockets.h |
186 | test_upgrade_CPPFLAGS = \ | ||
187 | $(AM_CPPFLAGS) $(GNUTLS_CPPFLAGS) | ||
188 | test_upgrade_CFLAGS = \ | ||
189 | $(AM_CFLAGS) $(PTHREAD_CFLAGS) | ||
190 | test_upgrade_LDFLAGS = \ | ||
191 | $(GNUTLS_LDFLAGS) | ||
184 | test_upgrade_LDADD = \ | 192 | test_upgrade_LDADD = \ |
185 | $(top_builddir)/src/microhttpd/libmicrohttpd.la | 193 | $(top_builddir)/src/microhttpd/libmicrohttpd.la \ |
194 | $(PTHREAD_LIBS) | ||
186 | 195 | ||
187 | test_upgrade_ssl_SOURCES = \ | 196 | test_upgrade_tls_SOURCES = \ |
188 | test_upgrade_ssl.c | 197 | test_upgrade.c test_helpers.h mhd_sockets.h |
189 | test_upgrade_ssl_LDADD = \ | 198 | test_upgrade_tls_CPPFLAGS = \ |
190 | $(top_builddir)/src/microhttpd/libmicrohttpd.la | 199 | $(AM_CPPFLAGS) $(GNUTLS_CPPFLAGS) |
200 | test_upgrade_tls_CFLAGS = \ | ||
201 | $(AM_CFLAGS) $(PTHREAD_CFLAGS) | ||
202 | test_upgrade_tls_LDFLAGS = \ | ||
203 | $(GNUTLS_LDFLAGS) | ||
204 | test_upgrade_tls_LDADD = \ | ||
205 | $(top_builddir)/src/microhttpd/libmicrohttpd.la \ | ||
206 | $(PTHREAD_LIBS) | ||
191 | 207 | ||
192 | test_postprocessor_SOURCES = \ | 208 | test_postprocessor_SOURCES = \ |
193 | test_postprocessor.c | 209 | test_postprocessor.c |