From 10d1c2be74e7dbe1887b7bc2285501aea28dfe2a Mon Sep 17 00:00:00 2001 From: Gabor Berkes Date: Fri, 20 Dec 2024 08:12:06 +0000 Subject: [PATCH] Refactor: improve PCRE settings output in configure.ac Enhanced the `configure.ac` script to provide clearer and more readable output for PCRE and PCRE2 settings during configuration. This change improves usability by ensuring that the configuration process displays relevant details in a structured and user-friendly format. This update aligns with the broader PCRE to PCRE2 migration effort, making the build configuration process more transparent and consistent. --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index 0bce5135..93addd70 100644 --- a/configure.ac +++ b/configure.ac @@ -582,6 +582,17 @@ if test "x$LUA_FOUND" = "x2"; then echo " + LUA ....disabled" fi +##PCRE +if test "x${with_pcre}" != "x" \ + && test "x${with_pcre}" != "xno" \ + && test "x${PCRE_VERSION}" == "x"; then + AC_MSG_NOTICE([*** pcre library not found.]) +else + echo " + PCRE ....found " + echo " using pcre v${PCRE_VERSION}" + echo " ${PCRE_LDADD}, ${PCRE_CFLAGS}" +fi + ## PCRE2 if test "x$PCRE2_FOUND" = "x0"; then