SHARE
TWEET

Untitled

a guest Sep 16th, 2011 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/build/generic/configure.in b/build/generic/configure.in
  2. index 8c6565f..1a6300c 100644
  3. --- a/build/generic/configure.in
  4. +++ b/build/generic/configure.in
  5. @@ -620,15 +620,35 @@ dnl
  6.  dnl ==========================================================================
  7.  
  8.  if test x"$pthread" = x"yes" ; then
  9. -   AC_CHECK_HEADER(
  10. -       [pthread.h],
  11. -       [AC_CHECK_LIB(
  12. -               [pthread],
  13. -               [pthread_create],
  14. -               [SPECIFIC_CFLAGS="$SPECIFIC_CFLAGS -DHAVE_PTHREAD"
  15. -                SPECIFIC_LDFLAGS="$SPECIFIC_LDFLAGS -lpthread"],
  16. -               AC_MSG_WARN(Pthread not supported. No SMP support))],
  17. -       AC_MSG_WARN(Pthread not supported. No SMP support))
  18. +    case "$target_os" in
  19. +        mingw32*)
  20. +            AC_CHECK_HEADER(
  21. +                [pthread.h],
  22. +                [AC_CHECK_LIB(
  23. +                    [pthreadGC2],
  24. +                    [pthread_create],
  25. +                    [SPECIFIC_CFLAGS="$SPECIFIC_CFLAGS -DHAVE_PTHREAD"
  26. +                     SPECIFIC_LDFLAGS="$SPECIFIC_LDFLAGS -lpthreadGC2"],
  27. +                    [AC_CHECK_LIB(
  28. +                        [pthread],
  29. +                        [pthread_create],
  30. +                        [SPECIFIC_CFLAGS="$SPECIFIC_CFLAGS -DHAVE_PTHREAD"
  31. +                         SPECIFIC_LDFLAGS="$SPECIFIC_LDFLAGS -lpthread"],
  32. +                        AC_MSG_WARN(Pthread not supported. No SMP support))])],
  33. +                AC_MSG_WARN(Pthread not supported. No SMP support))
  34. +            ;;
  35. +         *)
  36. +            AC_CHECK_HEADER(
  37. +                [pthread.h],
  38. +                [AC_CHECK_LIB(
  39. +                    [pthread],
  40. +                    [pthread_create],
  41. +                    [SPECIFIC_CFLAGS="$SPECIFIC_CFLAGS -DHAVE_PTHREAD"
  42. +                     SPECIFIC_LDFLAGS="$SPECIFIC_LDFLAGS -lpthread"],
  43. +                    AC_MSG_WARN(Pthread not supported. No SMP support))],
  44. +                AC_MSG_WARN(Pthread not supported. No SMP support))
  45. +            ;;
  46. +    esac
  47.  else
  48.     AC_MSG_WARN(Pthread support disabled. No SMP support)
  49.  fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top