mirror of https://github.com/encounter/SDL.git
fix AC_CHECK_HEADER for libusb.h
This commit is contained in:
parent
4fbb9f31ab
commit
282558379e
|
@ -24574,15 +24574,17 @@ else
|
||||||
$as_echo "yes" >&6; }
|
$as_echo "yes" >&6; }
|
||||||
have_libusb=yes
|
have_libusb=yes
|
||||||
fi
|
fi
|
||||||
save_CFLAGS="$CFLAGS"
|
save_CPPFLAGS="$CPPFLAGS"
|
||||||
CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
|
CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
|
||||||
ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
|
ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
|
||||||
if test "x$ac_cv_header_libusb_h" = xyes; then :
|
if test "x$ac_cv_header_libusb_h" = xyes; then :
|
||||||
have_libusb_h=yes
|
have_libusb_h=yes
|
||||||
|
else
|
||||||
|
have_libusb_h=no
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
CFLAGS="$save_CFLAGS"
|
CPPFLAGS="$save_CPPFLAGS"
|
||||||
if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
|
if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
|
||||||
hidapi_support=no
|
hidapi_support=no
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -3415,10 +3415,10 @@ AS_HELP_STRING([--enable-hidapi-libusb], [use libusb for low level joystick driv
|
||||||
hidapi_support=yes
|
hidapi_support=yes
|
||||||
if test x$enable_hidapi_libusb = xyes; then
|
if test x$enable_hidapi_libusb = xyes; then
|
||||||
PKG_CHECK_MODULES([LIBUSB], [libusb-1.0], have_libusb=yes, have_libusb=no)
|
PKG_CHECK_MODULES([LIBUSB], [libusb-1.0], have_libusb=yes, have_libusb=no)
|
||||||
save_CFLAGS="$CFLAGS"
|
save_CPPFLAGS="$CPPFLAGS"
|
||||||
CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
|
CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
|
||||||
AC_CHECK_HEADER(libusb.h, have_libusb_h=yes)
|
AC_CHECK_HEADER(libusb.h, have_libusb_h=yes, have_libusb_h=no)
|
||||||
CFLAGS="$save_CFLAGS"
|
CPPFLAGS="$save_CPPFLAGS"
|
||||||
if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
|
if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
|
||||||
hidapi_support=no
|
hidapi_support=no
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue