Changeset View
Changeset View
Standalone View
Standalone View
b/configure.ac
Context not available. | |||||
if test "$use_ccid_driver" = auto || test "$use_ccid_driver" = yes; then | if test "$use_ccid_driver" = auto || test "$use_ccid_driver" = yes; then | ||||
case "${host}" in | case "${host}" in | ||||
*-mingw32*) | *-mingw32*) | ||||
LIBUSB_NAME= | |||||
LIBUSB_LIBS= | LIBUSB_LIBS= | ||||
LIBUSB_CPPFLAGS= | LIBUSB_CPPFLAGS= | ||||
;; | ;; | ||||
*-*-darwin*) | *-*-darwin*) | ||||
LIBUSB_LIBS="-lusb-1.0 -Wl,-framework,CoreFoundation -Wl,-framework,IOKit" | LIBUSB_NAME=usb-1.0 | ||||
LIBUSB_LIBS="-Wl,-framework,CoreFoundation -Wl,-framework,IOKit" | |||||
;; | ;; | ||||
*-*-freebsd*) | *-*-freebsd*) | ||||
# FreeBSD has a native 1.0 compatible library by -lusb. | # FreeBSD has a native 1.0 compatible library by -lusb. | ||||
LIBUSB_LIBS="-lusb" | LIBUSB_NAME=usb | ||||
LIBUSB_LIBS= | |||||
;; | ;; | ||||
*) | *) | ||||
LIBUSB_LIBS="-lusb-1.0" | LIBUSB_NAME=usb-1.0 | ||||
LIBUSB_LIBS= | |||||
;; | ;; | ||||
esac | esac | ||||
fi | fi | ||||
if test x"$LIBUSB_LIBS" != x ; then | if test x"$LIBUSB_NAME" != x ; then | ||||
AC_CHECK_LIB(usb-1.0, libusb_init, | AC_CHECK_LIB($LIBUSB_NAME, libusb_init, | ||||
[ LIBUSB_LIBS="$LIBUSB_LIBS" | [ LIBUSB_LIBS="-l$LIBUSB_NAME $LIBUSB_LIBS" | ||||
have_libusb=yes ]) | have_libusb=yes ]) | ||||
AC_MSG_CHECKING([libusb include dir]) | AC_MSG_CHECKING([libusb include dir]) | ||||
usb_incdir_found="no" | usb_incdir_found="no" | ||||
Context not available. |