@ -756,26 +756,29 @@ endif( WITH_LZMA )
# # # # # c h e c k f o r p c s c # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # # c h e c k f o r p c s c # # # # # # # # # # # # # # # # # # # # # # # # # # # #
if ( WITH_PCSC )
if ( WITH_TDEHWLIB AND WITH_PCSC )
find_path ( PCSCLITE_INCLUDE_DIR pcsclite.h
pkg_search_module ( PCSCLITE libpcsclite )
H I N T S / u s r / i n c l u d e / P C S C )
if ( NOT PCSCLITE_FOUND )
find_library ( PCSCLITE_LIBRARY NAMES pcsclite libpcsclite PCSC )
find_path ( PCSCLITE_INCLUDE_DIR pcsclite.h
if ( PCSCLITE_LIBRARY AND PCSCLITE_INCLUDE_DIR )
H I N T S / u s r / i n c l u d e / P C S C )
message ( STATUS "Found PCSCLITE: ${PCSCLITE_LIBRARY}" )
find_library ( PCSCLITE_LIBRARY NAMES pcsclite libpcsclite PCSC )
set ( PCSCLITE_FOUND 1 )
if ( PCSCLITE_LIBRARY AND PCSCLITE_INCLUDE_DIR )
set ( PCSCLITE_INCLUDE_DIRS ${ PCSCLITE_INCLUDE_DIR } )
message ( STATUS "Found PCSCLITE: ${PCSCLITE_LIBRARY}" )
set ( PCSCLITE_LIBRARIES ${ PCSCLITE_LIBRARY } )
set ( PCSCLITE_FOUND 1 )
endif ( PCSCLITE_LIBRARY AND PCSCLITE_INCLUDE_DIR )
set ( PCSCLITE_INCLUDE_DIRS ${ PCSCLITE_INCLUDE_DIR } )
set ( PCSCLITE_LIBRARIES ${ PCSCLITE_LIBRARY } )
endif ( PCSCLITE_LIBRARY AND PCSCLITE_INCLUDE_DIR )
endif ( NOT PCSCLITE_FOUND )
if ( NOT PCSCLITE_FOUND )
if ( NOT PCSCLITE_FOUND )
tde_message_fatal ( "PCSCLITE is requested, but not found on your system" )
tde_message_fatal ( "PCSCLITE is requested, but not found on your system" )
endif ( NOT PCSCLITE_FOUND )
endif ( NOT PCSCLITE_FOUND )
set ( HAVE_PCSC_SUPPORT 1 )
set ( HAVE_PCSC_SUPPORT 1 )
endif ( WITH_ PCSC )
endif ( WITH_ TDEHWLIB AND WITH_ PCSC )
# # # # # c h e c k f o r p k c s # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # # c h e c k f o r p k c s # # # # # # # # # # # # # # # # # # # # # # # # # # # #
if ( WITH_ PKCS )
if ( WITH_ TDEHWLIB AND WITH_ PKCS )
pkg_search_module ( LIBPKCS11-HELPER libpkcs11-helper-1 )
pkg_search_module ( LIBPKCS11-HELPER libpkcs11-helper-1 )
if ( NOT LIBPKCS11-HELPER_FOUND )
if ( NOT LIBPKCS11-HELPER_FOUND )
message ( FATAL_ERROR "\nPKCS support was requested, but libpkcs11-helper-1 was not found on your system" )
message ( FATAL_ERROR "\nPKCS support was requested, but libpkcs11-helper-1 was not found on your system" )
@ -797,7 +800,7 @@ endif( )
# # # # # c h e c k f o r p k c s # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # # c h e c k f o r p k c s # # # # # # # # # # # # # # # # # # # # # # # # # # # #
if ( WITH_ CRYPTSETUP )
if ( WITH_ TDEHWLIB AND WITH_ CRYPTSETUP )
pkg_search_module ( LIBCRYPTSETUP libcryptsetup )
pkg_search_module ( LIBCRYPTSETUP libcryptsetup )
if ( NOT LIBCRYPTSETUP_FOUND )
if ( NOT LIBCRYPTSETUP_FOUND )
find_library ( LIBCRYPTSETUP_LIBRARY cryptsetup )
find_library ( LIBCRYPTSETUP_LIBRARY cryptsetup )