File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 129129# wolfSSL/wolfCrypt
130130AC_MSG_CHECKING ( [ for wolfSSL/wolfCrypt
131131] )
132- wcpath="/usr/local/"
132+ wcpath=$prefix
133133WOLFSSL_URL="http://www.wolfssl.com/download.html"
134134AC_ARG_WITH ( wolfcrypt ,
135135 [ AC_HELP_STRING ([ --with-wolfcrypt=PATH] , [ PATH to wolfssl install (default /usr/local)] )] ,
@@ -141,8 +141,6 @@ AC_ARG_WITH(wolfcrypt,
141141 AC_MSG_ERROR ( [ wolfCrypt path error (${withval}): missing lib and include] )
142142 fi
143143 fi
144- LDFLAGS="$LDFLAGS -L${wcpath}/lib"
145- CPPFLAGS="$CPPFLAGS -I${wcpath}/include"
146144 ]
147145)
148146
@@ -155,6 +153,8 @@ AC_ARG_ENABLE([wolfcrypt],
155153if test "x$ENABLED_WOLFCRYPT" = "xyes"
156154then
157155 LIBS="$LIBS -lwolfssl"
156+ LDFLAGS="$LDFLAGS -L${wcpath}/lib"
157+ CPPFLAGS="$CPPFLAGS -I${wcpath}/include"
158158
159159 AC_LIB_HAVE_LINKFLAGS(wolfssl,,
160160 [
You can’t perform that action at this time.
0 commit comments