File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -160,10 +160,13 @@ AM_CONDITIONAL([HAVE_TLS], [test "x$enable_tls" = xyes])
160
160
161
161
if test "x$enable_tls" = "xyes"; then
162
162
AC_DEFINE ( HAVE_TLS )
163
- AC_CHECK_LIB ( [ ssl] , [ SSL_ctrl ] , [ ] ,
164
- AC_MSG_ERROR ( [ libssl not found; install OpenSSL] ) )
165
- AC_CHECK_LIB ( [ crypto] , [ BIO_read] , [ ] ,
166
- AC_MSG_ERROR ( [ libcrypto not found; install OpenSSL] ) )
163
+ PKG_CHECK_MODULES([ SSL] , [ openssl] ,
164
+ [ CFLAGS="$CFLAGS $SSL_CFLAGS" LIBS="$LIBS $SSL_LIBS"] , [
165
+ AC_CHECK_LIB ( [ ssl] , [ SSL_ctrl ] , [ ] ,
166
+ AC_MSG_ERROR ( [ libssl not found; install OpenSSL] ) )
167
+ AC_CHECK_LIB ( [ crypto] , [ BIO_read] , [ ] ,
168
+ AC_MSG_ERROR ( [ libcrypto not found; install OpenSSL] ) )
169
+ ] )
167
170
fi
168
171
169
172
# ###############################################################################
You can’t perform that action at this time.
0 commit comments