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.

31 lines
1.0 KiB

  1. --- a/scripts/checks.m4
  2. +++ b/scripts/checks.m4
  3. @@ -96,7 +96,7 @@ AC_DEFUN([TORRENT_CHECK_KQUEUE], [
  4. AC_DEFUN([TORRENT_CHECK_KQUEUE_SOCKET_ONLY], [
  5. AC_MSG_CHECKING(whether kqueue supports pipes and ptys)
  6. - AC_RUN_IFELSE([AC_LANG_SOURCE([
  7. + AC_LINK_IFELSE([AC_LANG_SOURCE([
  8. #include <fcntl.h>
  9. #include <stdlib.h>
  10. #include <unistd.h>
  11. --- a/scripts/common.m4
  12. +++ b/scripts/common.m4
  13. @@ -153,7 +153,7 @@ dnl Need to fix this so that it uses t
  14. AC_DEFUN([TORRENT_CHECK_EXECINFO], [
  15. AC_MSG_CHECKING(for execinfo.h)
  16. - AC_RUN_IFELSE([AC_LANG_SOURCE([
  17. + AC_LINK_IFELSE([AC_LANG_SOURCE([
  18. #include <execinfo.h>
  19. int main() { backtrace((void**)0, 0); backtrace_symbols((char**)0, 0); return 0;}
  20. ])],
  21. @@ -168,7 +168,7 @@ AC_DEFUN([TORRENT_CHECK_EXECINFO], [
  22. AC_DEFUN([TORRENT_CHECK_ALIGNED], [
  23. AC_MSG_CHECKING(the byte alignment)
  24. - AC_RUN_IFELSE([AC_LANG_SOURCE([
  25. + AC_LINK_IFELSE([AC_LANG_SOURCE([
  26. #include <inttypes.h>
  27. int main() {
  28. char buf@<:@8@:>@ = { 0, 0, 0, 0, 1, 0, 0, 0 };