Move SM test in configure.ac after LIB_PRE and DYN_LIB_EXT assignment
SM test in configure.ac makes use of LIB_PRE and DYN_LIB_EXT variables so let's move it further down in this file, just after these variables are assigned. Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
This commit is contained in:
parent
7f778ccff8
commit
20f781de28
35
configure.ac
35
configure.ac
|
@ -643,25 +643,6 @@ else
|
|||
OPENPACE_LIBS=""
|
||||
fi
|
||||
|
||||
|
||||
|
||||
if test "${enable_sm}" = "yes"; then
|
||||
AC_DEFINE([ENABLE_SM], [1], [Enable secure messaging support])
|
||||
|
||||
DEFAULT_SM_MODULE="${LIB_PRE}smm-local${DYN_LIB_EXT}"
|
||||
case "${host}" in
|
||||
*-mingw*|*-winnt*|*-cygwin*)
|
||||
DEFAULT_SM_MODULE_PATH="\# module_path = \"\";"
|
||||
;;
|
||||
*)
|
||||
DEFAULT_SM_MODULE="libsmm-local.so"
|
||||
DEFAULT_SM_MODULE_PATH="module_path = \$(libdir);"
|
||||
;;
|
||||
esac
|
||||
AC_DEFINE_UNQUOTED([DEFAULT_SM_MODULE], ["${DEFAULT_SM_MODULE}"], [Default SM module])
|
||||
AC_DEFINE_UNQUOTED([DEFAULT_SM_MODULE_PATH], ["${DEFAULT_SM_MODULE_PATH}"], [Default SM module path])
|
||||
fi
|
||||
|
||||
if test "${enable_openct}" = "yes"; then
|
||||
PKG_CHECK_MODULES(
|
||||
[OPENCT],
|
||||
|
@ -740,6 +721,22 @@ case "${host}" in
|
|||
;;
|
||||
esac
|
||||
|
||||
if test "${enable_sm}" = "yes"; then
|
||||
AC_DEFINE([ENABLE_SM], [1], [Enable secure messaging support])
|
||||
|
||||
DEFAULT_SM_MODULE="${LIB_PRE}smm-local${DYN_LIB_EXT}"
|
||||
case "${host}" in
|
||||
*-mingw*|*-winnt*|*-cygwin*)
|
||||
DEFAULT_SM_MODULE_PATH="\# module_path = \"\";"
|
||||
;;
|
||||
*)
|
||||
DEFAULT_SM_MODULE="libsmm-local.so"
|
||||
DEFAULT_SM_MODULE_PATH="module_path = \$(libdir);"
|
||||
;;
|
||||
esac
|
||||
AC_DEFINE_UNQUOTED([DEFAULT_SM_MODULE], ["${DEFAULT_SM_MODULE}"], [Default SM module])
|
||||
AC_DEFINE_UNQUOTED([DEFAULT_SM_MODULE_PATH], ["${DEFAULT_SM_MODULE_PATH}"], [Default SM module path])
|
||||
fi
|
||||
|
||||
if test "${with_pkcs11_provider}" = "detect"; then
|
||||
DEFAULT_PKCS11_PROVIDER="opensc-pkcs11${DYN_LIB_EXT}"
|
||||
|
|
Loading…
Reference in New Issue