Browse Source

Update configure checks for libwebsockets.

jeroen
Jeroen Vreeken 5 years ago
parent
commit
cfe07c9884
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      configure.ac

+ 2
- 2
configure.ac View File

@ -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],[])


Loading…
Cancel
Save