From 4ca048da49f150a9fb5964f253d86b5cd1cd8e5b Mon Sep 17 00:00:00 2001 From: Gerhard Rieger Date: Sun, 24 Feb 2019 22:35:45 +0100 Subject: [PATCH] configure option --enable-msglevel did not work with numbers --- CHANGES | 2 ++ configure.in | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/CHANGES b/CHANGES index 6fa7acd..54fdc36 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,8 @@ corrections: Thanks to Craig Leres, Clayton Shotwell, and Chris Packham for providing patches. + configure option --enable-msglevel did not work with numbers + git: Added missing Config/Makefile.DragonFly-2-8-2, Config/config.DragonFly-2-8-2.h diff --git a/configure.in b/configure.in index 2b804d0..5115e5e 100644 --- a/configure.in +++ b/configure.in @@ -706,12 +706,12 @@ AC_ARG_ENABLE(retry, [ --disable-retry disable retry support], AC_MSG_CHECKING(included message level) AC_ARG_ENABLE(msglevel, [ --enable-msglevel=N set max verbosity to debug,info,notice,warn,error,fatal], [case "$enableval" in - debug) AC_DEFINE(WITH_MSGLEVEL,0) AC_MSG_RESULT(debug);; - info) AC_DEFINE(WITH_MSGLEVEL,1) AC_MSG_RESULT(info);; - notice) AC_DEFINE(WITH_MSGLEVEL,2) AC_MSG_RESULT(notice);; - warn) AC_DEFINE(WITH_MSGLEVEL,3) AC_MSG_RESULT(warn);; - error) AC_DEFINE(WITH_MSGLEVEL,4) AC_MSG_RESULT(error);; - fatal) AC_DEFINE(WITH_MSGLEVEL,5) AC_MSG_RESULT(fatal);; + 0|debug) AC_DEFINE(WITH_MSGLEVEL,0) AC_MSG_RESULT(debug);; + 1|info) AC_DEFINE(WITH_MSGLEVEL,1) AC_MSG_RESULT(info);; + 2|notice) AC_DEFINE(WITH_MSGLEVEL,2) AC_MSG_RESULT(notice);; + 3|warn) AC_DEFINE(WITH_MSGLEVEL,3) AC_MSG_RESULT(warn);; + 4|error) AC_DEFINE(WITH_MSGLEVEL,4) AC_MSG_RESULT(error);; + 5|fatal) AC_DEFINE(WITH_MSGLEVEL,5) AC_MSG_RESULT(fatal);; *) AC_DEFINE(WITH_MSGLEVEL,0) AC_MSG_RESULT(debug);; esac], [AC_DEFINE(WITH_MSGLEVEL,0) AC_MSG_RESULT(debug)])