mirror of git://git.gnupg.org/gnupg.git
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
|
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"
|
||||||
|
|
Loading…
Reference in New Issue