From 7f86b4e0bf02f81a1ef3a7a8e24b644710f359c6 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Tue, 20 Feb 2024 20:35:31 +0500 Subject: [PATCH] tests: do not use test_auth_parse when messages are disabled The test is not compatible with disabled messages --- configure.ac | 3 ++- src/microhttpd/Makefile.am | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c20e6f02..a7633b06 100644 --- 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 index a802b580..ef5f9bb5 100644 --- 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 \