Add --with-pcsc-module to configure
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3452 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
c9b19135fc
commit
3f7aa03520
33
configure.ac
33
configure.ac
|
@ -193,6 +193,13 @@ AC_ARG_WITH(
|
||||||
[plugindir="\$(libdir)/mozilla/plugins"]
|
[plugindir="\$(libdir)/mozilla/plugins"]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
AC_ARG_WITH(
|
||||||
|
[pcsc-provider],
|
||||||
|
[AC_HELP_STRING([--with-pcsc-provider=PATH], [Path to system pcsc provider @<:@system default@:>@])],
|
||||||
|
,
|
||||||
|
[with_pcsc_provider="detect"]
|
||||||
|
)
|
||||||
|
|
||||||
AC_ARG_WITH(
|
AC_ARG_WITH(
|
||||||
[pinentry],
|
[pinentry],
|
||||||
[AC_HELP_STRING([--with-pinentry=PROG], [run PROG as PIN-entry for OpenSC Signer @<:/usr/bin/gpinentry:>@])],
|
[AC_HELP_STRING([--with-pinentry=PROG], [run PROG as PIN-entry for OpenSC Signer @<:/usr/bin/gpinentry:>@])],
|
||||||
|
@ -474,17 +481,20 @@ fi
|
||||||
|
|
||||||
if test "${enable_pcsc}" = "yes"; then
|
if test "${enable_pcsc}" = "yes"; then
|
||||||
AC_DEFINE([ENABLE_PCSC], [1], [Define if PC/SC is to be enabled])
|
AC_DEFINE([ENABLE_PCSC], [1], [Define if PC/SC is to be enabled])
|
||||||
case "${host}" in
|
if test "${with_pcsc_provider}" = "detect"; then
|
||||||
*-*-darwin*)
|
case "${host}" in
|
||||||
AC_DEFINE_UNQUOTED([PCSC_DEFAULT_LIBRARY_NAME], ["${full_usrlibdir}/libpcsclite.so"], [Default PC/SC library])
|
*-*-darwin*)
|
||||||
;;
|
with_pcsc_provider="${full_usrlibdir}/libpcsclite.so"
|
||||||
*-mingw32*|*-winnt*|*-cygwin*)
|
;;
|
||||||
AC_DEFINE_UNQUOTED([PCSC_DEFAULT_LIBRARY_NAME], ["winscard.dll"], [Default PC/SC library])
|
*-mingw32*|*-winnt*|*-cygwin*)
|
||||||
;;
|
with_pcsc_provider="winscard.dll"
|
||||||
*)
|
;;
|
||||||
AC_DEFINE_UNQUOTED([PCSC_DEFAULT_LIBRARY_NAME], ["${full_usrlibdir}/libpcsclite.so"], [Default PC/SC library])
|
*)
|
||||||
;;
|
with_pcsc_provider="${full_usrlibdir}/libpcsclite.so"
|
||||||
esac
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
AC_DEFINE_UNQUOTED([PCSC_DEFAULT_LIBRARY_NAME], ["${with_pcsc_provider}"], [Default PC/SC library])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl AM_PATH_LIBASSUAN([MINIMUM-VERSION,
|
dnl AM_PATH_LIBASSUAN([MINIMUM-VERSION,
|
||||||
|
@ -627,6 +637,7 @@ PC/SC support: ${enable_pcsc}
|
||||||
OpenCT support: ${enable_openct}
|
OpenCT support: ${enable_openct}
|
||||||
NSPlugin support: ${enable_nsplugin}
|
NSPlugin support: ${enable_nsplugin}
|
||||||
|
|
||||||
|
PC/SC default provider: ${with_pcsc_provider}
|
||||||
pinentry: ${with_pinentry}
|
pinentry: ${with_pinentry}
|
||||||
|
|
||||||
Host: ${host}
|
Host: ${host}
|
||||||
|
|
Loading…
Reference in New Issue