[Pcsclite-cvs-commit] r4505 - /trunk/Drivers/ccid/configure.in

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Sat Oct 24 14:52:44 UTC 2009


Author: rousseau
Date: Sat Oct 24 14:52:44 2009
New Revision: 4505

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4505
Log:
check for IFD_ERROR_INSUFFICIENT_BUFFER in ifdhandler.h and simplify the
PCSC checking code

Modified:
    trunk/Drivers/ccid/configure.in

Modified: trunk/Drivers/ccid/configure.in
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/configure.in?rev=4505&op=diff
==============================================================================
--- trunk/Drivers/ccid/configure.in (original)
+++ trunk/Drivers/ccid/configure.in Sat Oct 24 14:52:44 2009
@@ -49,12 +49,11 @@
 
 saved_CPPFLAGS="$CPPFLAGS"
 CPPFLAGS="$CPPFLAGS $PCSC_CFLAGS"
-AC_CHECK_HEADER(ifdhandler.h,,
-	[AC_MSG_ERROR([ifdhandler.h not found, install pcsc-lite $PCSC_NEEDED_VERSION or later, or use ./configure PCSC_CFLAGS=...])])
-AC_CHECK_DECL(IFD_NO_SUCH_DEVICE,, [AC_MSG_ERROR([install pcsc-lite $PCSC_NEEDED_VERSION or later])], [#include <ifdhandler.h>])
-AC_CHECK_DECLS(TAG_IFD_POLLING_THREAD,,, [#include <ifdhandler.h>])
-AC_CHECK_HEADER(reader.h,,
-	[AC_MSG_ERROR([reader.h not found, install pcsc-lite $PCSC_NEEDED_VERSION or later, or use ./configure PCSC_CFLAGS=...])])
+PCSC_ERROR_MSG="install pcsc-lite $PCSC_NEEDED_VERSION or later, or use ./configure PCSC_CFLAGS=..."
+AC_CHECK_HEADER(ifdhandler.h,, [AC_MSG_ERROR([$PCSC_ERROR_MSG])])
+AC_CHECK_DECLS([IFD_NO_SUCH_DEVICE, TAG_IFD_POLLING_THREAD, IFD_ERROR_INSUFFICIENT_BUFFER],,
+	[AC_MSG_ERROR([$PCSC_ERROR_MSG])], [#include <ifdhandler.h>])
+AC_CHECK_HEADER(reader.h,, [AC_MSG_ERROR([$PCSC_ERROR_MSG])])
 CPPFLAGS="$saved_CPPFLAGS"
 
 # Add libtool support.




More information about the Pcsclite-cvs-commit mailing list