Merge pull request #4825 from nxhack/node-hid_fix_depends
[feed/packages.git] / lang / ruby / patches / 010-configure-2.4.2.patch
1 diff -pU3 a/configure b/configure
2 --- a/configure 2017-09-14 21:52:19.000000000 +0900
3 +++ b/configure 2017-09-15 07:03:12.000000000 +0900
4 @@ -10614,6 +10614,7 @@ fi
5 ac_res=$ac_cv_search___gmpz_init
6 if test "$ac_res" != no; then :
7 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8 + $as_echo "#define HAVE_LIBGMP 1" >>confdefs.h
9
10 fi
11
12 @@ -10683,6 +10684,7 @@ fi
13 ac_res=$ac_cv_search_malloc_conf
14 if test "$ac_res" != no; then :
15 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16 + $as_echo "#define HAVE_LIBJEMALLOC 1" >>confdefs.h
17
18 else
19 with_jemalloc=no
20 diff -pU3 a/configure.in b/configure.in
21 --- a/configure.in 2017-08-04 23:39:29.000000000 +0900
22 +++ b/configure.in 2017-09-15 07:20:40.000000000 +0900
23 @@ -1403,13 +1403,15 @@ AC_ARG_WITH([gmp],
24 AS_IF([test "x$with_gmp" != xno],
25 [AC_CHECK_HEADERS(gmp.h)
26 AS_IF([test "x$ac_cv_header_gmp_h" != xno],
27 - AC_SEARCH_LIBS([__gmpz_init], [gmp]))])
28 + AC_SEARCH_LIBS([__gmpz_init], [gmp],
29 + [AC_DEFINE(HAVE_LIBGMP, 1)]))])
30
31 AC_ARG_WITH([jemalloc],
32 [AS_HELP_STRING([--with-jemalloc],[use jemalloc allocator])],
33 [with_jemalloc=$withval], [with_jemalloc=no])
34 AS_IF([test "x$with_jemalloc" = xyes],[
35 - AC_SEARCH_LIBS([malloc_conf], [jemalloc], [], [with_jemalloc=no])
36 + AC_SEARCH_LIBS([malloc_conf], [jemalloc],
37 + [AC_DEFINE(HAVE_LIBJEMALLOC, 1)], [with_jemalloc=no])
38 AC_CHECK_HEADER(jemalloc/jemalloc.h, [
39 AC_DEFINE(RUBY_ALTERNATIVE_MALLOC_HEADER, [<jemalloc/jemalloc.h>])
40 ])