Commit 92903cf5 authored by Olaf Bergmann's avatar Olaf Bergmann

configure.ac: Add tinydtls-specific flags if libcoap-2-tinydtls is used

* -DCOAP_DTLS_TINYDTLS is added to libcoap_CFLAGS,
* -ltinydtls is added to libcoap_LIBS.

Note that -I and -L also might need to be added.
parent 6f7298fa
......@@ -96,6 +96,10 @@ if test "x$have_libcoap" != "xno"; then
libcoap_CFLAGS="$libcoap_CFLAGS $OpenSSL_CFLAGS -DCOAP_DTLS_OPENSSL"
libcoap_LIBS="$libcoap_LIBS $OpenSSL_LIBS"
;;
*-tinydtls)
libcoap_CFLAGS="$libcoap_CFLAGS -DCOAP_DTLS_TINYDTLS"
libcoap_LIBS="$libcoap_LIBS -ltinydtls"
;;
esac
fi
......
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