[Pcsclite-cvs-commit] Drivers/ccid configure.in,1.27,1.28

rousseau@haydn.debian.org rousseau@haydn.debian.org


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

Modified Files:
	configure.in 
Log Message:
use `pkg-config libpcsclite --cflags` to locate ifdhandler.h and do not
use PCSC/ifdhandler.h but just ifdhandler.h


Index: configure.in
===================================================================
RCS file: /cvsroot/pcsclite/Drivers/ccid/configure.in,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- configure.in	22 Jul 2004 10:01:37 -0000	1.27
+++ configure.in	15 Aug 2004 19:07:48 -0000	1.28
@@ -49,10 +49,13 @@
 AC_CHECK_HEADERS(errno.h fcntl.h stdlib.h unistd.h termios.h string.h errno.h sys/time.h sys/types.h stdarg.h,,
 	[AC_MSG_WARN([some header files not found])])
 
-AC_CHECK_HEADERS(PCSC/ifdhandler.h,,
-	[AC_MSG_ERROR([PCSC/ifdhandler.h not found, install pcsc-lite 1.2.9-beta5 or later])],
-	[ #include <PCSC/pcsclite.h> ])
-
+OLD_CFLAGS="$CFLAGS"
+CFLAGS=`pkg-config libpcsclite --cflags`
+CFLAGS="$OLD_CFLAGS $CFLAGS"
+AC_CHECK_HEADER(ifdhandler.h,,
+	[AC_MSG_ERROR([ifdhandler.h not found, install pcsc-lite 1.2.9-beta5 or later])],
+	[ #include <pcsclite.h> ])
+CFLAGS="$OLD_CFLAGS"
 
 dnl Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST