This library provides a simple and nice C++ wrapper around these libraries, so that programmers can concentrate on functionality. It offers general support for PCSC-lite, OpenSSL, PKCS#11, plus specific functionality for the SuisseID.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.4 KiB
50 lines
1.4 KiB
# $Id$ |
|
|
|
m4_define(x_package_name, libpcscxx) |
|
m4_define(x_major, 3) |
|
m4_define(x_minor, 1) |
|
m4_include(ax_init_standard_project.m4) |
|
AC_INIT(x_package_name, x_major.x_minor.x_least, x_bugreport, x_package_name) |
|
AM_INIT_AUTOMAKE([1.9 tar-pax]) |
|
AX_INIT_STANDARD_PROJECT |
|
|
|
# languages |
|
AX_USE_CXX |
|
AX_USE_LIBTOOL |
|
AX_USE_DOXYGEN |
|
AX_USE_DEBIAN_PACKAGING |
|
AX_USE_RPM_PACKAGING |
|
#AX_USE_CPPUNIT |
|
AX_BUILD_EXAMPLES |
|
|
|
# qt features |
|
AX_CXX_CHECK_QT([QTGUI], [QtCore QtGui]) |
|
AX_CXX_CHECK_QT([QTWIDGETS], [QtWidgets]) # optional, needed only for qt5 |
|
AX_CXX_CHECK_QT([QTNETWORK], [QtNetwork]) |
|
|
|
# programs |
|
#PKG_PROG_PKG_CONFIG |
|
|
|
# libraries |
|
AC_ARG_ENABLE(pkcs11-download, |
|
[AS_HELP_STRING([--enable-pkcs11-download], |
|
[download pkcs11 header])], |
|
[have_pedantic="$enableval" |
|
if test "$enableval" = "yes"; then |
|
mkdir -p usr/include |
|
cd usr/include |
|
for f in $(wget -q -O- ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/ 2>&1 | html2 | sed -n 's,.*/a/@href=\(.*\.h\)$,\1,gp'); do |
|
wget --unlink $f |
|
done |
|
AM_CPPFLAGS+="-I$(pwd)" |
|
cd - |
|
fi |
|
]) |
|
dnl problem in libs: -Wshadow -Wcast-qual |
|
dnl auto.hpp: -Wno-ctor-dtor-privacy (removed) |
|
AC_CHECK_HEADER([pkcs11.h], [], [AC_MSG_ERROR([Header pkcs11.h is required])]) |
|
AC_CHECK_HEADER([wintypes.h], [], [AC_MSG_ERROR([Header wintypes.h is required])]) |
|
AC_CHECK_HEADER([mrw/checkcxx11.hxx], [], [AC_MSG_ERROR([please install mrw-c++])]) |
|
|
|
# create output |
|
AC_OUTPUT
|
|
|