xbmc-12.0-use-pkgconfig-for-samba.patch 690 B

123456789101112131415161718192021
  1. --- xbmc/configure.in.orig 2013-03-04 01:44:01.000000000 +0900
  2. +++ xbmc/configure.in 2013-03-04 01:49:32.000000000 +0900
  3. @@ -1351,8 +1351,8 @@
  4. # samba
  5. if test "x$use_samba" != "xno"; then
  6. - AC_CHECK_LIB([smbclient], [main],,
  7. - use_samba=no;AC_MSG_ERROR($missing_library))
  8. + PKG_CHECK_MODULES([SMBCLIENT],[smbclient],,
  9. + [use_samba="no";AC_MSG_ERROR($missing_library)])
  10. USE_LIBSMBCLIENT=0
  11. else
  12. AC_MSG_RESULT($samba_disabled)
  13. @@ -1360,6 +1360,7 @@
  14. fi
  15. if test "x$use_samba" != "xno"; then
  16. + INCLUDES="$INCLUDES $SMBCLIENT_CFLAGS";LIBS="$LIBS $SMBCLIENT_LIBS"
  17. AC_DEFINE([HAVE_LIBSMBCLIENT], [1], [Define to 1 if you have Samba installed])
  18. USE_LIBSMBCLIENT=1
  19. fi