Skip to content
Snippets Groups Projects
Commit 625efd94 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

If rsaref is needed, add it to TLS_LIBS.

parent 5b83a959
No related branches found
No related tags found
No related merge requests found
...@@ -116,7 +116,7 @@ AC_DEFUN([OL_BERKELEY_DB2], ...@@ -116,7 +116,7 @@ AC_DEFUN([OL_BERKELEY_DB2],
fi fi
]) ])
if test $ol_cv_berkeley_db2 = yes ; then if test $ol_cv_berkeley_db2 = yes ; then
AC_DEFINE(HAVE_BERKELEY_DB2,1) AC_DEFINE(HAVE_BERKELEY_DB2,1, [define if Berkeley DBv2 is available])
fi fi
])dnl ])dnl
dnl dnl
...@@ -182,7 +182,7 @@ AC_DEFUN([OL_BERKELEY_DB], ...@@ -182,7 +182,7 @@ AC_DEFUN([OL_BERKELEY_DB],
fi fi
]) ])
if test $ol_cv_berkeley_db = yes ; then if test $ol_cv_berkeley_db = yes ; then
AC_DEFINE(HAVE_BERKELEY_DB,1) AC_DEFINE(HAVE_BERKELEY_DB,1, [define if Berkeley DB is available])
fi fi
])dnl ])dnl
dnl dnl
...@@ -227,7 +227,7 @@ AC_DEFUN([OL_GDBM], ...@@ -227,7 +227,7 @@ AC_DEFUN([OL_GDBM],
fi fi
]) ])
if test $ol_cv_gdbm = yes ; then if test $ol_cv_gdbm = yes ; then
AC_DEFINE(HAVE_GDBM,1) AC_DEFINE(HAVE_GDBM,1, [define if GNU DBM is available])
fi fi
])dnl ])dnl
dnl dnl
...@@ -283,7 +283,7 @@ AC_DEFUN([OL_NDBM], ...@@ -283,7 +283,7 @@ AC_DEFUN([OL_NDBM],
fi fi
]) ])
if test $ol_cv_ndbm = yes ; then if test $ol_cv_ndbm = yes ; then
AC_DEFINE(HAVE_NDBM,1) AC_DEFINE(HAVE_NDBM,1, [define if NDBM is available])
fi fi
])dnl ])dnl
dnl dnl
...@@ -363,7 +363,7 @@ main() ...@@ -363,7 +363,7 @@ main()
[ol_cv_c_upper_lower=safe])]) [ol_cv_c_upper_lower=safe])])
AC_MSG_RESULT($ol_cv_c_upper_lower) AC_MSG_RESULT($ol_cv_c_upper_lower)
if test $ol_cv_c_upper_lower != no ; then if test $ol_cv_c_upper_lower != no ; then
AC_DEFINE(C_UPPER_LOWER,1) AC_DEFINE(C_UPPER_LOWER,1, [define if toupper() requires islower()])
fi fi
]) ])
...@@ -386,7 +386,8 @@ AC_MSG_RESULT($ol_cv_dcl_sys_errlist) ...@@ -386,7 +386,8 @@ AC_MSG_RESULT($ol_cv_dcl_sys_errlist)
# It's possible (for near-UNIX clones) that sys_errlist doesn't exist # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
if test $ol_cv_dcl_sys_errlist = no ; then if test $ol_cv_dcl_sys_errlist = no ; then
AC_DEFINE(DECL_SYS_ERRLIST,1) AC_DEFINE(DECL_SYS_ERRLIST,1,
[define if sys_errlist is declared in stdio.h or errno.h])
AC_MSG_CHECKING([existence of sys_errlist]) AC_MSG_CHECKING([existence of sys_errlist])
AC_CACHE_VAL(ol_cv_have_sys_errlist,[ AC_CACHE_VAL(ol_cv_have_sys_errlist,[
AC_TRY_LINK([#include <errno.h>], AC_TRY_LINK([#include <errno.h>],
...@@ -410,7 +411,7 @@ AC_DEFUN(OL_C_VOLATILE, ...@@ -410,7 +411,7 @@ AC_DEFUN(OL_C_VOLATILE,
if test $ol_cv_c_volatile = yes; then if test $ol_cv_c_volatile = yes; then
: :
else else
AC_DEFINE(volatile, ) AC_DEFINE(volatile,)
fi fi
])dnl ])dnl
...@@ -440,7 +441,8 @@ AC_DEFUN(OL_FUNC_CTIME_R_NARGS, ...@@ -440,7 +441,8 @@ AC_DEFUN(OL_FUNC_CTIME_R_NARGS,
fi fi
]) ])
if test $ol_cv_func_ctime_r_nargs -gt 1 ; then if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
AC_DEFINE_UNQUOTED(CTIME_R_NARGS, $ol_cv_func_ctime_r_nargs) AC_DEFINE_UNQUOTED(CTIME_R_NARGS, $ol_cv_func_ctime_r_nargs,
[set to the number of arguments ctime_r() expects])
fi fi
])dnl ])dnl
dnl -------------------------------------------------------------------- dnl --------------------------------------------------------------------
...@@ -452,7 +454,7 @@ AC_DEFUN(OL_FUNC_CTIME_R_TYPE, ...@@ -452,7 +454,7 @@ AC_DEFUN(OL_FUNC_CTIME_R_TYPE,
ol_cv_func_ctime_r_type="int", ol_cv_func_ctime_r_type="charp") ol_cv_func_ctime_r_type="int", ol_cv_func_ctime_r_type="charp")
]) ])
if test $ol_cv_func_ctime_r_type = "int" ; then if test $ol_cv_func_ctime_r_type = "int" ; then
AC_DEFINE_UNQUOTED(CTIME_R_RETURNS_INT, 1) AC_DEFINE(CTIME_R_RETURNS_INT,1, [define if ctime_r() returns int])
fi fi
])dnl ])dnl
dnl ==================================================================== dnl ====================================================================
...@@ -484,7 +486,9 @@ AC_DEFUN(OL_FUNC_GETHOSTBYNAME_R_NARGS, ...@@ -484,7 +486,9 @@ AC_DEFUN(OL_FUNC_GETHOSTBYNAME_R_NARGS,
fi fi
]) ])
if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
AC_DEFINE_UNQUOTED(GETHOSTBYNAME_R_NARGS, $ol_cv_func_gethostbyname_r_nargs) AC_DEFINE_UNQUOTED(GETHOSTBYNAME_R_NARGS,
$ol_cv_func_gethostbyname_r_nargs,
[set to the number of arguments gethostbyname_r() expects])
fi fi
])dnl ])dnl
dnl check no of arguments for gethostbyaddr_r dnl check no of arguments for gethostbyaddr_r
...@@ -523,7 +527,9 @@ AC_DEFUN(OL_FUNC_GETHOSTBYADDR_R_NARGS, ...@@ -523,7 +527,9 @@ AC_DEFUN(OL_FUNC_GETHOSTBYADDR_R_NARGS,
fi fi
]) ])
if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
AC_DEFINE_UNQUOTED(GETHOSTBYADDR_R_NARGS, $ol_cv_func_gethostbyaddr_r_nargs) AC_DEFINE_UNQUOTED(GETHOSTBYADDR_R_NARGS,
$ol_cv_func_gethostbyaddr_r_nargs,
[set to the number of arguments gethostbyaddr_r() expects])
fi fi
])dnl ])dnl
...@@ -463,28 +463,37 @@ if test $ol_with_tls != no ; then ...@@ -463,28 +463,37 @@ if test $ol_with_tls != no ; then
AC_CHECK_HEADERS(ssl.h) AC_CHECK_HEADERS(ssl.h)
if test $ac_cv_header_ssl_h = yes ; then if test $ac_cv_header_ssl_h = yes ; then
AC_CHECK_LIB( ssl, SSLeay_add_ssl_algorithms, AC_CHECK_LIB(ssl, SSLeay_add_ssl_algorithms,
[have_ssleay=yes], [have_ssleay=no], [-lcrypto]) [have_ssleay=yes
need_rsaref=no],
[have_ssleay=no],
[-lcrypto])
if test $have_ssleay = no ; then if test $have_ssleay = no ; then
AC_CHECK_LIB( ssl, ssl3_accept, AC_CHECK_LIB(ssl, ssl3_accept,
[have_ssleay=yes], [have_ssleay=no], [-lcrypto -lRSAglue -lrsaref]) [have_ssleay=yes
need_rsaref=yes], [have_ssleay=no],
[-lcrypto -lRSAglue -lrsaref])
fi fi
if test $have_ssleay = yes ; then if test $have_ssleay = yes ; then
ol_with_tls=found ol_with_tls=found
ol_link_tls=yes ol_link_tls=yes
AC_DEFINE( HAVE_SSLEAY, 1, AC_DEFINE(HAVE_SSLEAY, 1,
[define if you have SSLeay] ) [define if you have SSLeay or OpenSSL])
TLS_LIBS="-lssl -lcrypto" if test $need_rsaref = yes; then
TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
else
TLS_LIBS="-lssl -lcrypto"
fi
fi fi
fi fi
fi fi
if test $ol_link_tls = yes ; then if test $ol_link_tls = yes ; then
AC_DEFINE( HAVE_TLS, 1, [define if you have TLS] ) AC_DEFINE(HAVE_TLS, 1, [define if you have TLS])
fi fi
ol_link_threads=no ol_link_threads=no
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment