summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2019-02-09 18:25:19 +0000
committerMonty Taylor <mordred@inaugust.com>2019-02-09 18:25:19 +0000
commit52ba519ce2cc4ea00c01ad3b03d11a22f844060c (patch)
treec54e350dc042da20816e81af22a441d763111843
parenteeafe3e9263fcf887778db1e2f81294ad0be727e (diff)
Test for cpprest with pthreads
-rw-r--r--m4/pandora_have_libcpprest.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/m4/pandora_have_libcpprest.m4 b/m4/pandora_have_libcpprest.m4
index e0a1990..2d05e63 100644
--- a/m4/pandora_have_libcpprest.m4
+++ b/m4/pandora_have_libcpprest.m4
@@ -21,11 +21,16 @@ AC_DEFUN([_PANDORA_SEARCH_LIBCPPREST],[
21 21
22 AS_IF([test "x$ac_enable_libcpprest" = "xyes"],[ 22 AS_IF([test "x$ac_enable_libcpprest" = "xyes"],[
23 AC_LANG_PUSH([C++]) 23 AC_LANG_PUSH([C++])
24 save_CXXFLAGS="${CXXFLAGS}"
25 CXXFLAGS="${PTHREAD_CFLAGS} ${CXXFLAGS}"
24 AC_LIB_HAVE_LINKFLAGS(cpprest,[boost_system ssl crypto],[ 26 AC_LIB_HAVE_LINKFLAGS(cpprest,[boost_system ssl crypto],[
25#include <cpprest/http_client.h> 27#include <cpprest/http_client.h>
26 ],[ 28 ],[
27web::http::client::http_client client("http://example.com/"); 29web::http::client::http_client client("http://example.com/");
28 ]) 30 ])
31 CXXFLAGS="${save_CXXFLAGS}"
32 LIBCPPREST="${LIBCPPREST} ${PTHREAD_LIBS}"
33 LTLIBCPPREST="${LTLIBCPPREST} ${PTHREAD_LIBS}"
29 AC_LANG_POP() 34 AC_LANG_POP()
30 ],[ 35 ],[
31 ac_cv_libcpprest="no" 36 ac_cv_libcpprest="no"