]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-linux/ti-softhsmv2.git/blob - m4/acx_dlopen.m4
Fix issue: Softhsm-daemon leaks memory when certificate is stored
[keystone-linux/ti-softhsmv2.git] / m4 / acx_dlopen.m4
1 # $Id: acx_dlopen.m4 4829 2010-07-29 11:29:33Z rb $
3 AC_DEFUN([ACX_DLOPEN],[
4   AC_CHECK_FUNC(dlopen, [AC_DEFINE(HAVE_DLOPEN,1,[Define if you have dlopen])],
5   [
6     AC_CHECK_LIB([dl],[dlopen], 
7       [AC_DEFINE(HAVE_DLOPEN,1,[Define if you have dlopen])
8       LIBS="$LIBS -ldl"],
9       [AC_CHECK_FUNC(LoadLibrary, 
10         [if test $ac_cv_func_LoadLibrary = yes; then
11           AC_DEFINE(HAVE_LOADLIBRARY, 1, [Whether LoadLibrary is available])
12         fi
13         ], [AC_MSG_ERROR(No dynamic library loading support)]
14       )]
15     )
16   ])
17 ])