summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6e430c3)
raw | patch | inline | side by side (parent: 6e430c3)
author | Pierre-Yves Ritschard <pyr@spootnik.org> | |
Wed, 30 Jul 2014 10:17:27 +0000 (12:17 +0200) | ||
committer | Pierre-Yves Ritschard <pyr@spootnik.org> | |
Wed, 30 Jul 2014 10:17:27 +0000 (12:17 +0200) |
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 6f4f8d8d4b8df0575877f9a1133187a7fcd00d21..59f05710246ec36a66a2ea325f35551b70e039b6 100644 (file)
--- a/configure.ac
+++ b/configure.ac
with_libi2c="no"
if test "x$ac_system" = "xLinux"
then
-AC_CHECK_DECL(i2c_smbus_read_i2c_block_data,
- [with_libi2c="yes"],
- [with_libi2c="no (symbol i2c_smbus_read_i2c_block_data not found - have you installed libi2c-dev ?)"],
+AC_CHECK_DECL(i2c_smbus_read_i2c_block_data,
+ [with_libi2c="yes"],
+ [with_libi2c="no (symbol i2c_smbus_read_i2c_block_data not found - have you installed libi2c-dev ?)"],
[[#include <stdlib.h>
#include <linux/i2c-dev.h>]])
fi
# Load either syslog or logfile
LOAD_PLUGIN_SYSLOG=""
LOAD_PLUGIN_LOGFILE=""
+LOAD_PLUGIN_LOG_LOGSTASH=""
AC_MSG_CHECKING([which default log plugin to load])
default_log_plugin="none"
else
LOAD_PLUGIN_LOGFILE="##"
fi
+
+if test "x$enable_logfile" = "xyes"
+then
+ LOAD_PLUGIN_LOG_LOGSTASH="#"
+else
+ LOAD_PLUGIN_LOG_LOGSTASH="##"
+fi
+
+
AC_MSG_RESULT([$default_log_plugin])
AC_SUBST(LOAD_PLUGIN_SYSLOG)
AC_SUBST(LOAD_PLUGIN_LOGFILE)
+AC_SUBST(LOAD_PLUGIN_LOG_LOGSTASH)
DEFAULT_LOG_LEVEL="info"
if test "x$enable_debug" = "xyes"