Commit cfe07c98 authored by Jeroen Vreeken's avatar Jeroen Vreeken
Browse files

Update configure checks for libwebsockets.

parent 57f7d6fc
......@@ -54,11 +54,11 @@ AC_ARG_WITH([libwebsockets],
[with_libwebsocket=check])
AS_CASE(["$with_libwebsockets"],
[yes],
[AC_CHECK_LIB(websockets,libwebsocket_create_context,[HAVE_LIBWEBSOCKETS=1])]
[AC_CHECK_LIB(websockets,lws_create_context,[HAVE_LIBWEBSOCKETS=1])]
[AC_CHECK_HEADERS([libwebsockets.h])],
[no],
[],
[AC_CHECK_LIB(websockets,libwebsocket_create_context,[HAVE_LIBWEBSOCKETS=1],[HAVE_LIBWEBSOCKETS=0])]
[AC_CHECK_LIB(websockets,lws_create_context,[HAVE_LIBWEBSOCKETS=1],[HAVE_LIBWEBSOCKETS=0])]
[AC_CHECK_HEADERS([libwebsockets.h])]
)
AS_IF([test "$ac_cv_header_libwebsockets_h" != yes],[HAVE_LIBWEBSOCKETS=0],[])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment