lirc-0.9.0-libusb-config-is-no-more.patch 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. diff --git a/configure.ac b/configure.ac
  2. index 6c07e0d..1a3347e 100644
  3. --- a/configure.ac
  4. +++ b/configure.ac
  5. @@ -20,11 +20,11 @@ AC_PROG_MAKE_SET
  6. AC_PATH_PROG(mknod, mknod, /bin/mknod)
  7. AC_PATH_PROG(mkfifo, mkfifo, /usr/bin/mkfifo)
  8. AC_PATH_PROG(depmod, depmod, /sbin/depmod, $PATH:/sbin)
  9. -AC_PATH_PROG(LIBUSB_CONFIG, libusb-config)
  10. AC_PROG_LN_S
  11. AC_PROG_LIBTOOL
  12. AM_PATH_PYTHON(,, [:])
  13. AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != ""])
  14. +LIBUSB_CONFIG="pkg-config libusb"
  15. dnl Checks for header files.
  16. AC_HEADER_STDC
  17. @@ -310,15 +310,14 @@ AH_TEMPLATE([SYSCONFDIR],
  18. AH_TEMPLATE([USE_SYSLOG],
  19. [define if you want to log to syslog instead of logfile])
  20. -if test -n "${LIBUSB_CONFIG}"; then
  21. - AC_DEFINE(HAVE_LIBUSB)
  22. - possible_drivers="${possible_drivers} (atilibusb) (awlibusb) (dfclibusb) (commandir) (srm7500libusb)"
  23. -fi
  24. -
  25. AC_CHECK_LIB(caraca_client, caraca_init,
  26. AC_DEFINE(HAVE_LIBCARACA)
  27. possible_drivers="${possible_drivers} (caraca)"
  28. )
  29. +AC_CHECK_HEADER(usb.h,
  30. + AC_DEFINE(HAVE_LIBUSB)
  31. + possible_drivers="${possible_drivers} (atilibusb) (awlibusb) (dfclibusb) (commandir) (srm7500libusb)"
  32. +)
  33. AC_CHECK_HEADER(ftdi.h,
  34. AC_DEFINE(HAVE_FTDI)
  35. possible_drivers="${possible_drivers} (ftdi)"
  36. @@ -1449,7 +1448,7 @@ Get it at:
  37. Or install these packages from your distro:
  38. libusb
  39. - libusb-dev
  40. + libusb-devel
  41. ])
  42. ;;
  43. --- lirc-0.9.0/configure.orig 2011-06-07 00:08:14.850212313 -0400
  44. +++ lirc-0.9.0/configure 2011-06-07 00:11:07.140109458 -0400
  45. @@ -865,7 +865,6 @@ build_cpu
  46. build
  47. LIBTOOL
  48. LN_S
  49. -LIBUSB_CONFIG
  50. depmod
  51. mkfifo
  52. mknod
  53. @@ -4160,37 +4159,7 @@ $as_echo "no" >&6; }
  54. fi
  55. -# Extract the first word of "libusb-config", so it can be a program name with args.
  56. -set dummy libusb-config; ac_word=$2
  57. -{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  58. -$as_echo_n "checking for $ac_word... " >&6; }
  59. -if test "${ac_cv_path_LIBUSB_CONFIG+set}" = set; then
  60. - $as_echo_n "(cached) " >&6
  61. -else
  62. - case $LIBUSB_CONFIG in
  63. - [\\/]* | ?:[\\/]*)
  64. - ac_cv_path_LIBUSB_CONFIG="$LIBUSB_CONFIG" # Let the user override the test with a path.
  65. - ;;
  66. - *)
  67. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  68. -for as_dir in $PATH
  69. -do
  70. - IFS=$as_save_IFS
  71. - test -z "$as_dir" && as_dir=.
  72. - for ac_exec_ext in '' $ac_executable_extensions; do
  73. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  74. - ac_cv_path_LIBUSB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  75. - $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  76. - break 2
  77. - fi
  78. -done
  79. -done
  80. -IFS=$as_save_IFS
  81. -
  82. - ;;
  83. -esac
  84. -fi
  85. -LIBUSB_CONFIG=$ac_cv_path_LIBUSB_CONFIG
  86. +LIBUSB_CONFIG="pkg-config libusb"
  87. if test -n "$LIBUSB_CONFIG"; then
  88. { $as_echo "$as_me:$LINENO: result: $LIBUSB_CONFIG" >&5
  89. $as_echo "$LIBUSB_CONFIG" >&6; }