commit 71ea2211730b2a932637e913b88260f7ea695359
parent 8aaf0276c11cecaca09672e440c421df2e0b2e22
Author: Ricardo Mones <ricardo@mones.org>
Date: Thu, 15 Dec 2022 13:34:27 +0100
Add debug calls to configure summary
Diffstat:
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
@@ -1058,8 +1058,15 @@ else
fi
AM_CONDITIONAL(BUILD_TESTS, test "x$enable_tests" = "xyes")
+dnl =======================
+dnl section for debug calls
+dnl =======================
+
+DEBUG_CALLS=""
+
AC_MSG_CHECKING([whether to build addressbook debug calls])
if test x$enable_addressbook_debug = xyes; then
+ DEBUG_CALLS="$DEBUG_CALLS AddressBook"
AC_MSG_RESULT(yes)
AC_DEFINE(DEBUG_ADDRBOOK, 1, [Define if you want addressbook debug calls])
else
@@ -1068,12 +1075,19 @@ fi
AC_MSG_CHECKING([whether to build LDAP debug calls])
if test x$enable_ldap_debug = xyes; then
+ DEBUG_CALLS="$DEBUG_CALLS LDAP"
AC_MSG_RESULT(yes)
AC_DEFINE(DEBUG_LDAP, 1, [Define if you want LDAP debug calls])
else
AC_MSG_RESULT(no)
fi
+if test -z "$DEBUG_CALLS"; then
+ DEBUG_CALLS="no"
+else
+ DEBUG_CALLS=`echo $DEBUG_CALLS | sed 's/^\s+|\s+$//;s/\s/, /g'`
+fi
+
dnl *************************
dnl ** section for plugins **
dnl *************************
@@ -2300,6 +2314,7 @@ echo "SVG support : $enable_svg"
echo "Config dir : $ac_cv_with_config_dir"
echo "Password crypto : $pwd_crypto"
echo "Unit tests : $enable_tests"
+echo "Debug calls : $DEBUG_CALLS"
echo "Plugins"
echo " Built:"