[Pcsclite-cvs-commit] PCSC configure.in,1.43,1.44
rousseau@haydn.debian.org
rousseau@haydn.debian.org
Update of /cvsroot/pcsclite/PCSC
In directory haydn:/tmp/cvs-serv32449
Modified Files:
configure.in
Log Message:
add support of --enable-extendedapdu argument to allow the use of big
APDUs (up to 128 KBytes)
Index: configure.in
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/configure.in,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- configure.in 2 Apr 2004 14:43:58 -0000 1.43
+++ configure.in 6 May 2004 06:38:14 -0000 1.44
@@ -303,6 +303,23 @@
AC_MSG_RESULT([enable threadsafe client : $threadsafe])
AM_CONDITIONAL(PCSC_THR_SAFE, test x$threadsafe = xtrue)
+dnl --enable-extendedapdu
+AC_ARG_ENABLE(extendedapdu,
+ AC_HELP_STRING([--enable-extendedapdu], [support of extended APDU (for APDU 256B < size < 128KB)]),
+ [ case "${enableval}" in
+ yes) extendedapdu=true ;;
+ no) extendedapdu=false ;;
+ *) AC_MSG_ERROR([bad value ${enableval} for --enable-extendedapdu]) ;;
+ esac], [extendedapdu=false])
+
+AC_MSG_RESULT([enable extended APDU : $extendedapdu])
+
+if test x${extendedapdu} = xtrue ; then
+ extended_apdu="#define PCSCLITE_ENHANCED_MESSAGING"
+else
+ extended_apdu="#undef PCSCLITE_ENHANCED_MESSAGING"
+fi
+
dnl warning about pthread
if test x${threadsafe} = xtrue ; then
AC_MSG_RESULT([NOTE :: You must link pthread libraries with your app.])
@@ -316,6 +333,7 @@
AC_SUBST(usbdropdir)
AC_SUBST(confdir)
AC_SUBST(runpid)
+AC_SUBST(extended_apdu)
dnl Write Makefiles
AC_OUTPUT([
@@ -331,6 +349,7 @@
src/Makefile
src/libmusclecard.pc
src/libpcsclite.pc
+src/pcsclite.h
src/utils/Makefile
win32/Makefile
])