forked from softhsm/SoftHSMv2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue softhsm#230: Move configuration to an M4 script and update docu…
…mentation
- Loading branch information
Showing
7 changed files
with
59 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
AC_DEFUN([ACX_P11KIT],[ | ||
AC_ARG_ENABLE([p11-kit], | ||
AC_HELP_STRING([--enable-p11-kit], | ||
[Enable p11-kit integration (default enabled)] | ||
), | ||
[enable_p11kit="${enableval}"], | ||
[enable_p11kit="yes"] | ||
) | ||
AC_ARG_WITH(p11-kit, | ||
AC_HELP_STRING([--with-p11-kit=PATH],[Specify install path of the p11-kit module, will override path given by pkg-config]), | ||
[P11KIT_PATH="$withval"], | ||
[P11KIT_PATH=""] | ||
) | ||
AC_MSG_CHECKING(for p11-kit integration) | ||
if test "x${enable_p11kit}" = "xyes"; then | ||
AC_MSG_RESULT(yes) | ||
if test "x${P11KIT_PATH}" = "x"; then | ||
AC_PATH_PROG(PKGCONFIG, [pkg-config]) | ||
if test "x${PKGCONFIG}" != "x" && ${PKGCONFIG} --exists p11-kit-1; then | ||
P11KIT_PATH=`${PKGCONFIG} --variable=p11_module_configs p11-kit-1` | ||
fi | ||
fi | ||
AC_MSG_CHECKING(where to install the p11-kit module) | ||
AC_MSG_RESULT($P11KIT_PATH) | ||
if test "x${P11KIT_PATH}" = "x"; then | ||
AC_MSG_ERROR([Missing install path for the p11-kit module]) | ||
fi | ||
else | ||
AC_MSG_RESULT(no) | ||
fi | ||
AC_SUBST(P11KIT_PATH) | ||
AM_CONDITIONAL([WITH_P11KIT], [test "x${enable_p11kit}" = "xyes"]) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# This file describes how to load the pk11 module | ||
# See: http://p11-glue.freedesktop.org/doc/p11-kit/config.html | ||
|
||
module: @libdir@/libsofthsm2.so | ||
module: @default_softhsm2_lib@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters