diff --git a/configure.ac b/configure.ac index 8d9e1a9..f7c2d6e 100644 --- a/configure.ac +++ b/configure.ac @@ -159,13 +159,19 @@ [AC_MSG_ERROR([mysql.h not found])]) fi + # mosuitoo.h and mosquittopp.h is required + if test "x$use_mqtt" != xno; then + AC_CHECK_HEADER([mosquitto.h], + , + [AC_MSG_ERROR([mosquitto.h not found])]) + fi AC_LANG_PUSH([C++]) if test "x$use_mqtt" != xno; then AC_CHECK_HEADER([mosquittopp.h], , [AC_MSG_ERROR([mosquittopp.h not found])]) fi - AC_LANG_POP([C++]) + AC_LANG_POP([C++]) # search for _init c function in c++ mosquittopp lib LIBMQTTCLIENT=