libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 7f86b4e0bf02f81a1ef3a7a8e24b644710f359c6
parent 20943e0b69cfd1baefb7f765bd97f7a8cf3d90d3
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Tue, 20 Feb 2024 20:35:31 +0500

tests: do not use test_auth_parse when messages are disabled

The test is not compatible with disabled messages

Diffstat:
Mconfigure.ac | 3++-
Msrc/microhttpd/Makefile.am | 2++
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac @@ -3595,9 +3595,10 @@ AC_ARG_ENABLE([messages], [enable_messages=${enableval}], [enable_messages=yes]) AS_IF([[test "x$enable_messages" = "xyes"]], - [ AC_DEFINE([HAVE_MESSAGES],[1],[Define to 1 to enable support for error messages.]) ], + [ AC_DEFINE([HAVE_MESSAGES],[1],[Define to 1 to enable support for text messages.]) ], [[ enable_messages=no ]]) AC_MSG_RESULT([[$enable_messages]]) +AM_CONDITIONAL([HAVE_MESSAGES], [test "x$enable_messages" != "xno"]) # optional: have postprocessor? diff --git a/src/microhttpd/Makefile.am b/src/microhttpd/Makefile.am @@ -295,9 +295,11 @@ endif endif if HAVE_ANYAUTH +if HAVE_MESSAGES check_PROGRAMS += \ test_auth_parse endif +endif if ENABLE_DAUTH check_PROGRAMS += \ test_str_quote \