mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

137 lines
4.8 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/jsaw/multisync/irmc_sync-newbluetoothlibs.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- ./plugins/irmc_sync/configure.in.orig 2004-08-26 16:10:55.663700216 +0200
  20. +++ ./plugins/irmc_sync/configure.in 2004-08-26 16:22:42.186292456 +0200
  21. @@ -23,12 +23,12 @@
  22. CPPFLAGS="${PACKAGE_CFLAGS}"
  23. AC_CHECK_LIB(bluetooth,baswap,BLUETOOTH=1,BLUETOOTH=0)
  24. SDP=0
  25. -AC_CHECK_LIB(sdp,sdp_list_free,SDP=1,BLUETOOTH=0)
  26. +dnl AC_CHECK_LIB(sdp,sdp_record_alloc,SDP=1,BLUETOOTH=0)
  27. AC_MSG_CHECKING(for correct SDP lib version)
  28. AC_TRY_COMPILE([
  29. #include <bluetooth/sdp.h>
  30. #include <bluetooth/sdp_lib.h>
  31. -],[sdp_record_t t;],AC_MSG_RESULT(yes),BLUETOOTH=0;AC_MSG_RESULT(no))
  32. +],[sdp_record_t t;],AC_MSG_RESULT(yes),SDP=1,BLUETOOTH=0;AC_MSG_RESULT(no))
  33. AM_CONDITIONAL(BLUETOOTH,test "${BLUETOOTH}" = "1")
  34. if test "x${BLUETOOTH}" = "x0"; then
  35. echo "Bluetooth is DISABLED. You must have bluez-libs and bluez-kernel >= 2.3 and bluez-sdp >= 1.0-pre1."
  36. --- ./plugins/irmc_sync/configure.orig 2004-08-26 16:10:46.630073536 +0200
  37. +++ ./plugins/irmc_sync/configure 2004-08-26 16:26:08.325954464 +0200
  38. @@ -4307,67 +4307,6 @@
  39. BLUETOOTH=0
  40. fi
  41. -SDP=0
  42. -echo "$as_me:$LINENO: checking for sdp_list_free in -lsdp" >&5
  43. -echo $ECHO_N "checking for sdp_list_free in -lsdp... $ECHO_C" >&6
  44. -if test "${ac_cv_lib_sdp_sdp_list_free+set}" = set; then
  45. - echo $ECHO_N "(cached) $ECHO_C" >&6
  46. -else
  47. - ac_check_lib_save_LIBS=$LIBS
  48. -LIBS="-lsdp $LIBS"
  49. -cat >conftest.$ac_ext <<_ACEOF
  50. -#line $LINENO "configure"
  51. -/* confdefs.h. */
  52. -_ACEOF
  53. -cat confdefs.h >>conftest.$ac_ext
  54. -cat >>conftest.$ac_ext <<_ACEOF
  55. -/* end confdefs.h. */
  56. -
  57. -/* Override any gcc2 internal prototype to avoid an error. */
  58. -#ifdef __cplusplus
  59. -extern "C"
  60. -#endif
  61. -/* We use char because int might match the return type of a gcc2
  62. - builtin and then its argument prototype would still apply. */
  63. -char sdp_list_free ();
  64. -int
  65. -main ()
  66. -{
  67. -sdp_list_free ();
  68. - ;
  69. - return 0;
  70. -}
  71. -_ACEOF
  72. -rm -f conftest.$ac_objext conftest$ac_exeext
  73. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  74. - (eval $ac_link) 2>&5
  75. - ac_status=$?
  76. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  77. - (exit $ac_status); } &&
  78. - { ac_try='test -s conftest$ac_exeext'
  79. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  80. - (eval $ac_try) 2>&5
  81. - ac_status=$?
  82. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  83. - (exit $ac_status); }; }; then
  84. - ac_cv_lib_sdp_sdp_list_free=yes
  85. -else
  86. - echo "$as_me: failed program was:" >&5
  87. -sed 's/^/| /' conftest.$ac_ext >&5
  88. -
  89. -ac_cv_lib_sdp_sdp_list_free=no
  90. -fi
  91. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  92. -LIBS=$ac_check_lib_save_LIBS
  93. -fi
  94. -echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_sdp_list_free" >&5
  95. -echo "${ECHO_T}$ac_cv_lib_sdp_sdp_list_free" >&6
  96. -if test $ac_cv_lib_sdp_sdp_list_free = yes; then
  97. - SDP=1
  98. -else
  99. - BLUETOOTH=0
  100. -fi
  101. -
  102. echo "$as_me:$LINENO: checking for correct SDP lib version" >&5
  103. echo $ECHO_N "checking for correct SDP lib version... $ECHO_C" >&6
  104. cat >conftest.$ac_ext <<_ACEOF
  105. @@ -4401,7 +4340,7 @@
  106. ac_status=$?
  107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  108. (exit $ac_status); }; }; then
  109. - echo "$as_me:$LINENO: result: yes" >&5
  110. + SDP=1 ; echo "$as_me:$LINENO: result: yes" >&5
  111. echo "${ECHO_T}yes" >&6
  112. else
  113. echo "$as_me: failed program was:" >&5
  114. --- ./plugins/irmc_sync/src/Makefile.am.orig 2004-09-06 22:35:03.136190448 +0200
  115. +++ ./plugins/irmc_sync/src/Makefile.am 2004-09-06 22:35:15.150364016 +0200
  116. @@ -21,7 +21,7 @@
  117. libirmc_bluetooth_la_SOURCES = \
  118. irmc_bluetooth.c irmc_bluetooth.h
  119. -libirmc_bluetooth_la_LIBADD = -lbluetooth -lsdp -lpthread
  120. +libirmc_bluetooth_la_LIBADD = -lbluetooth -lpthread
  121. libirmc_sync_la_SOURCES = \
  122. interface.c interface.h \
  123. --- ./plugins/irmc_sync/src/Makefile.in.orig 2004-09-06 22:35:07.207571504 +0200
  124. +++ ./plugins/irmc_sync/src/Makefile.in 2004-09-06 22:35:23.023167168 +0200
  125. @@ -109,7 +109,7 @@
  126. irmc_bluetooth.c irmc_bluetooth.h
  127. -libirmc_bluetooth_la_LIBADD = -lbluetooth -lsdp -lpthread
  128. +libirmc_bluetooth_la_LIBADD = -lbluetooth -lpthread
  129. libirmc_sync_la_SOURCES = \
  130. interface.c interface.h \