Cross-Platform build scripts for audio plugins
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.

84 lines
3.2KB

  1. diff --git a/glib/gatomic.h b/glib/gatomic.h
  2. index 9d04b1d..c80c927 100644
  3. --- a/glib/gatomic.h
  4. +++ b/glib/gatomic.h
  5. @@ -82,7 +82,7 @@ gint g_atomic_int_exchange_and_add (volatile gint *a
  6. G_END_DECLS
  7. -#if defined(G_ATOMIC_LOCK_FREE) && defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)
  8. +#if defined(G_ATOMIC_LOCK_FREE) && defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4) && !defined(__EMSCRIPTEN__)
  9. /* We prefer the new C11-style atomic extension of GCC if available */
  10. #if defined(__ATOMIC_SEQ_CST) && !defined(__clang__)
  11. diff --git a/configure.ac b/configure.ac
  12. index df1b223..9d76b91 100644
  13. --- a/configure.ac
  14. +++ b/configure.ac
  15. @@ -1049,47 +1049,6 @@ AS_IF([test $glib_native_win32 = yes], [
  16. # We can't just use AC_CHECK_FUNC/AC_CHECK_LIB here. Bug 586150
  17. NETWORK_LIBS=""
  18. - AC_MSG_CHECKING([for res_query])
  19. - AC_TRY_LINK([#include <sys/types.h>
  20. - #include <netinet/in.h>
  21. - #include <arpa/nameser.h>
  22. - #include <resolv.h>
  23. - ],[
  24. - res_query("test", 0, 0, (void *)0, 0);
  25. - ],[AC_MSG_RESULT([yes])],
  26. - [save_libs="$LIBS"
  27. - LIBS="-lresolv $LIBS"
  28. - AC_TRY_LINK([#include <sys/types.h>
  29. - #include <netinet/in.h>
  30. - #include <arpa/nameser.h>
  31. - #include <resolv.h>
  32. - ],[
  33. - res_query("test", 0, 0, (void *)0, 0);
  34. - ],[AC_MSG_RESULT([in -lresolv])
  35. - NETWORK_LIBS="-lresolv $NETWORK_LIBS"],
  36. - [LIBS="-lbind $save_libs"
  37. - AC_TRY_LINK([#include <resolv.h>],
  38. - [res_query("test", 0, 0, (void *)0, 0);],
  39. - [AC_MSG_RESULT([in -lbind])
  40. - NETWORK_LIBS="-lbind $NETWORK_LIBS"],
  41. - [AC_MSG_ERROR(not found)])])
  42. - LIBS="$save_libs"])
  43. - AC_CHECK_FUNC(socket, :, AC_CHECK_LIB(socket, socket,
  44. - [NETWORK_LIBS="-lsocket $NETWORK_LIBS"],
  45. - [AC_MSG_ERROR(Could not find socket())]))
  46. - save_libs="$LIBS"
  47. - LIBS="$LIBS $NETWORK_LIBS"
  48. - AC_MSG_CHECKING([for res_init])
  49. - AC_TRY_LINK([#include <sys/types.h>
  50. - #include <netinet/in.h>
  51. - #include <arpa/nameser.h>
  52. - #include <resolv.h>
  53. - ],[
  54. - res_init();
  55. - ],[AC_MSG_RESULT([yes])
  56. - AC_DEFINE(HAVE_RES_INIT, 1, [Define to 1 if you have the 'res_init' function.])
  57. - ],[AC_MSG_RESULT([no])])
  58. - LIBS="$save_libs"
  59. ])
  60. AC_SUBST(NETWORK_LIBS)
  61. @@ -1949,7 +1908,7 @@ AS_IF([ test x"$have_threads" = xposix], [
  62. G_THREAD_LIBS="-lpthread -lthread"
  63. ;;
  64. *)
  65. - for flag in pthread pthreads mt; do
  66. + for flag in pthread mt; do
  67. glib_save_CFLAGS="$CFLAGS"
  68. CFLAGS="$CFLAGS -$flag"
  69. AC_TRY_RUN(glib_thread_test(0),
  70. @@ -2046,7 +2005,7 @@ AS_IF([test x$have_threads = xposix], [
  71. *)
  72. G_THREAD_LIBS=error
  73. glib_save_LIBS="$LIBS"
  74. - for thread_lib in "" pthread pthread32 pthreads thread; do
  75. + for thread_lib in "" pthread pthread32 thread; do
  76. if test x"$thread_lib" = x; then
  77. add_thread_lib=""
  78. IN=""