[Pcsclite-cvs-commit] CVS Drivers/ccid

CVS User rousseau ludovic.rousseau@free.fr
Sun, 27 Feb 2005 14:13:40 -0700


Update of /cvsroot/pcsclite/Drivers/ccid
In directory haydn:/tmp/cvs-serv24411

Modified Files:
	configure.in 
Log Message:
check that we can link with libpcsclite needed by
examples/scardcontrol.c


--- /cvsroot/pcsclite/Drivers/ccid/configure.in	2005/02/27 21:12:02	1.38
+++ /cvsroot/pcsclite/Drivers/ccid/configure.in	2005/02/27 21:13:39	1.39
@@ -1,7 +1,7 @@
 dnl Process this file with autoconf to produce a configure script.
 dnl You may need to use autoconf 2.56 or newer
 
-dnl $Id: configure.in,v 1.38 2005/02/27 21:12:02 rousseau Exp $
+dnl $Id: configure.in,v 1.39 2005/02/27 21:13:39 rousseau Exp $
 
 dnl Require autoconf 2.52
 AC_PREREQ(2.52)
@@ -47,6 +47,12 @@
 	[ #include <ifdhandler.h> ])
 CFLAGS="$OLD_CFLAGS"
 
+OLD_LDLIBS="$LDLIBS"
+LDLIBS="$LDLIBS $PCSCLITE_LIBS"
+AC_CHECK_LIB(pcsclite, SCardEstablishContext, [],
+	[AC_MSG_ERROR([SCardEstablishContext() not found, install pcsc-lite 1.2.9-beta5 or later,or use LDLIBS=... ./configure])])
+LDLIBS="$OLD_LDLIBS"
+
 dnl Add libtool support.
 AM_PROG_LIBTOOL