diff options
-rw-r--r-- | lib/m4/hooks.m4 | 3 | ||||
-rw-r--r-- | lib/pakchois/pakchois.c | 10 |
2 files changed, 8 insertions, 5 deletions
diff --git a/lib/m4/hooks.m4 b/lib/m4/hooks.m4 index 4fad2ba8a5..720a675e34 100644 --- a/lib/m4/hooks.m4 +++ b/lib/m4/hooks.m4 @@ -119,9 +119,6 @@ AC_DEFUN([LIBGNUTLS_HOOKS], AC_CHECK_LIB(dl, dlopen,, [AC_MSG_ERROR([could not find dlopen])]) - module_path="${libdir}:${libdir}/pkcs11" - - CPPFLAGS="$CPPFLAGS -DPAKCHOIS_MODPATH=\"\"" fi AC_ARG_WITH(lzo, diff --git a/lib/pakchois/pakchois.c b/lib/pakchois/pakchois.c index 946f714cba..17a45d7a88 100644 --- a/lib/pakchois/pakchois.c +++ b/lib/pakchois/pakchois.c @@ -85,7 +85,7 @@ struct slot { #define DIR_DELIMITER '/' -char* pkcs11ize(const char* name) +static char* pkcs11ize(const char* name) { int len; char* oname; @@ -150,7 +150,13 @@ static const char *suffix_prefixes[][2] = { static void *find_pkcs11_module(const char *name, CK_C_GetFunctionList *gfl) { - char module_path[] = PAKCHOIS_MODPATH; + + char module_path[] = +#ifdef PAKCHOIS_MODPATH + PAKCHOIS_MODPATH; +#else + ""; +#endif char *next = module_path; void *h; |