[Pcsclite-cvs-commit] Drivers/ccid configure.in,1.8,1.9

rousseau@quantz.debian.org rousseau@quantz.debian.org
Thu, 06 Nov 2003 19:53:43 +0100


Update of /cvsroot/pcsclite/Drivers/ccid
In directory quantz:/tmp/cvs-serv7283

Modified Files:
	configure.in 
Log Message:
check that the installed libusb implements usb_get_string_simple()


Index: configure.in
===================================================================
RCS file: /cvsroot/pcsclite/Drivers/ccid/configure.in,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- configure.in	4 Nov 2003 21:58:44 -0000	1.8
+++ configure.in	6 Nov 2003 18:53:40 -0000	1.9
@@ -110,6 +110,12 @@
 	[ AC_MSG_ERROR([libusb not found]) ])
 LIBS="$ac_save_LIBS"
 
+ac_save_LIBS="$LIBS"
+LIBS="$LIBS $COREFOUNDATION $IOKIT"
+AC_CHECK_LIB(usb, usb_get_string_simple, [LIBUSB="$LIBUSB -lusb"],
+	[ AC_MSG_ERROR([your libusb is too old. install version 0.1.7 or above]) ])
+LIBS="$ac_save_LIBS"
+
 dnl check shat to use for dlopen
 AC_SUBST(LIBDL)
 AC_CHECK_LIB(dl, dlopen, [LIBDL="$LIBDL -ldl" ac_cv_func_dlopen_ldl=yes], ac_cv_func_dlopen_ldl=no)