diff -r 638e7dd1d560 -r 4b54d6f79d25 configure --- a/configure Thu May 07 14:59:50 2020 +0200 +++ b/configure Mon May 11 17:32:08 2020 +0200 @@ -2043,7 +2043,7 @@ PACKAGE="bms" -VERSION="0.3.32" +VERSION="0.3.33" COPYRIGHT="Copyright (C) 2016-2020 Michiel Broek, All Rights Reserved" CYEARS="2016-2020" @@ -3790,6 +3790,67 @@ as_fn_error $? "libuuid not found" "$LINENO" 5 fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lws_client_connect in -lwebsockets" >&5 +$as_echo_n "checking for lws_client_connect in -lwebsockets... " >&6; } +if ${ac_cv_lib_websockets_lws_client_connect+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lwebsockets $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char lws_client_connect (); +int +main () +{ +return lws_client_connect (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_websockets_lws_client_connect=yes +else + ac_cv_lib_websockets_lws_client_connect=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_websockets_lws_client_connect" >&5 +$as_echo "$ac_cv_lib_websockets_lws_client_connect" >&6; } +if test "x$ac_cv_lib_websockets_lws_client_connect" = xyes; then : + result=yes +else + result=no +fi + +if test "$result" = "yes"; then + LIBS="$LIBS -lwebsockets" + for ac_header in libwebsockets.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "libwebsockets.h" "ac_cv_header_libwebsockets_h" "$ac_includes_default" +if test "x$ac_cv_header_libwebsockets_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBWEBSOCKETS_H 1 +_ACEOF + +fi + +done + +else + as_fn_error $? "libwebsockets not found" "$LINENO" 5 +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; }