mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
configure: Detection of libusb on FreeBSD.
* configure.ac (LIBUSB_LIBS): Use LIBUSB_NAME for AC_CHECK_LIB. -- Thanks to Michael Sinatra. GnuPG-bug-id: 2367 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
74028096e0
commit
b3e043ba90
16
configure.ac
16
configure.ac
@ -787,24 +787,28 @@ AM_PATH_KSBA("$NEED_KSBA_API:$NEED_KSBA_VERSION",have_ksba=yes,have_ksba=no)
|
||||
if test "$use_ccid_driver" = auto || test "$use_ccid_driver" = yes; then
|
||||
case "${host}" in
|
||||
*-mingw32*)
|
||||
LIBUSB_NAME=
|
||||
LIBUSB_LIBS=
|
||||
LIBUSB_CPPFLAGS=
|
||||
;;
|
||||
*-*-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 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
|
||||
fi
|
||||
if test x"$LIBUSB_LIBS" != x ; then
|
||||
AC_CHECK_LIB(usb-1.0, libusb_init,
|
||||
[ LIBUSB_LIBS="$LIBUSB_LIBS"
|
||||
if test x"$LIBUSB_NAME" != x ; then
|
||||
AC_CHECK_LIB($LIBUSB_NAME, libusb_init,
|
||||
[ LIBUSB_LIBS="-l$LIBUSB_NAME $LIBUSB_LIBS"
|
||||
have_libusb=yes ])
|
||||
AC_MSG_CHECKING([libusb include dir])
|
||||
usb_incdir_found="no"
|
||||
|
Loading…
x
Reference in New Issue
Block a user