summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-06-21 08:18:12 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-06-21 08:18:12 +0000
commit618bec71080daa2b6866d684a5f96e45bc2ccf7b (patch)
tree44bf0e92adb7fb8e139e662281e04df4e621e5cf /configure.ac
parent1db5d17a961b5020c9748d656356ce0eafbe55c4 (diff)
only print err or crit logs. others not compiled in.
SVN revision: 72572
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 8691f07..d9ac545 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,7 +34,7 @@ PKG_CHECK_MODULES([TERMINOLOGY], [${requirements}])
34 34
35EFL_WITH_BIN([edje], [edje-cc], [edje_cc]) 35EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
36 36
37with_max_log_level="<unset>" 37with_max_log_level="EINA_LOG_LEVEL_ERR"
38AC_ARG_WITH(maximum-log-level, 38AC_ARG_WITH(maximum-log-level,
39 [AC_HELP_STRING([--with-maximum-log-level=NUMBER], 39 [AC_HELP_STRING([--with-maximum-log-level=NUMBER],
40 [limit terminology log level to the given number, any call to EINA_LOG() with values greater than this will be compiled out, ignoring runtime settings, but saving function calls.])], 40 [limit terminology log level to the given number, any call to EINA_LOG() with values greater than this will be compiled out, ignoring runtime settings, but saving function calls.])],
@@ -42,7 +42,6 @@ AC_ARG_WITH(maximum-log-level,
42 if test "x${withval}" != "xno"; then 42 if test "x${withval}" != "xno"; then
43 if echo "${withval}" | grep -E '^[[0-9]]+$' >/dev/null 2>/dev/null; then 43 if echo "${withval}" | grep -E '^[[0-9]]+$' >/dev/null 2>/dev/null; then
44 AC_MSG_NOTICE([ignoring any EINA_LOG() with level greater than ${withval}]) 44 AC_MSG_NOTICE([ignoring any EINA_LOG() with level greater than ${withval}])
45 AC_DEFINE_UNQUOTED(EINA_LOG_LEVEL_MAXIMUM, ${withval}, [if set, logging is limited to this amount.])
46 with_max_log_level="${withval}" 45 with_max_log_level="${withval}"
47 else 46 else
48 AC_MSG_ERROR([--with-maximum-log-level takes a decimal number, got "${withval}" instead.]) 47 AC_MSG_ERROR([--with-maximum-log-level takes a decimal number, got "${withval}" instead.])
@@ -50,6 +49,8 @@ AC_ARG_WITH(maximum-log-level,
50 fi 49 fi
51 ], [:]) 50 ], [:])
52 51
52AC_DEFINE_UNQUOTED(EINA_LOG_LEVEL_MAXIMUM, ${with_max_log_level}, [if set, logging is limited to this amount.])
53
53AC_CONFIG_FILES([ 54AC_CONFIG_FILES([
54Makefile 55Makefile
55src/Makefile 56src/Makefile