|
21 | 21 |
|
22 | 22 | AC_PREREQ(2.57) |
23 | 23 | m4_define([libhttpserver_MAJOR_VERSION],[0])dnl |
24 | | -m4_define([libhttpserver_MINOR_VERSION],[19])dnl |
| 24 | +m4_define([libhttpserver_MINOR_VERSION],[20])dnl |
25 | 25 | m4_define([libhttpserver_REVISION],[0])dnl |
26 | 26 | m4_define([libhttpserver_PKG_VERSION],[libhttpserver_MAJOR_VERSION.libhttpserver_MINOR_VERSION.libhttpserver_REVISION])dnl |
27 | 27 | m4_define([libhttpserver_LDF_VERSION],[libhttpserver_MAJOR_VERSION:libhttpserver_MINOR_VERSION:libhttpserver_REVISION])dnl |
|
149 | 149 | AM_CONDITIONAL([COND_CROSS_COMPILE],[test x"$cond_cross_compile" = x"yes"]) |
150 | 150 | AC_SUBST(COND_CROSS_COMPILE) |
151 | 151 |
|
| 152 | +# Check for basic auth support in libmicrohttpd |
| 153 | +AC_CHECK_LIB([microhttpd], [MHD_queue_basic_auth_fail_response], |
| 154 | + [have_bauth="yes"], |
| 155 | + [have_bauth="no"; AC_MSG_WARN("libmicrohttpd basic auth support not found. Basic auth will be disabled")]) |
| 156 | + |
152 | 157 | # Check for digest auth support in libmicrohttpd |
153 | 158 | AC_CHECK_LIB([microhttpd], [MHD_queue_auth_fail_response], |
154 | 159 | [have_dauth="yes"], |
|
264 | 269 |
|
265 | 270 | AM_CONDITIONAL([HAVE_GNUTLS],[test x"$have_gnutls" = x"yes"]) |
266 | 271 |
|
| 272 | +if test x"$have_bauth" = x"yes"; then |
| 273 | + AM_CXXFLAGS="$AM_CXXFLAGS -DHAVE_BAUTH" |
| 274 | + AM_CFLAGS="$AM_CXXFLAGS -DHAVE_BAUTH" |
| 275 | +fi |
| 276 | + |
| 277 | +AM_CONDITIONAL([HAVE_BAUTH],[test x"$have_bauth" = x"yes"]) |
| 278 | + |
267 | 279 | if test x"$have_dauth" = x"yes"; then |
268 | 280 | AM_CXXFLAGS="$AM_CXXFLAGS -DHAVE_DAUTH" |
269 | 281 | AM_CFLAGS="$AM_CXXFLAGS -DHAVE_DAUTH" |
@@ -327,6 +339,7 @@ AC_MSG_NOTICE([Configuration Summary: |
327 | 339 | License : LGPL only |
328 | 340 | Debug : ${debugit} |
329 | 341 | TLS Enabled : ${have_gnutls} |
| 342 | + Basic Auth : ${have_bauth} |
330 | 343 | Digest Auth : ${have_dauth} |
331 | 344 | TCP_FASTOPEN : ${is_fastopen_supported} |
332 | 345 | Static : ${static} |
|
0 commit comments