Project

General

Profile

Bug #13899 » configure-2.4.2.diff

usa (Usaku NAKAMURA), 09/14/2017 10:33 PM

View differences:

configure 2017-09-14 21:52:19.000000000 +0900 → configure 2017-09-15 07:03:12.000000000 +0900
10614 10614
ac_res=$ac_cv_search___gmpz_init
10615 10615
if test "$ac_res" != no; then :
10616 10616
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10617
  $as_echo "#define HAVE_LIBGMP 1" >>confdefs.h
10617 10618

  
10618 10619
fi
10619 10620

  
......
10683 10684
ac_res=$ac_cv_search_malloc_conf
10684 10685
if test "$ac_res" != no; then :
10685 10686
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10687
  $as_echo "#define HAVE_LIBJEMALLOC 1" >>confdefs.h
10686 10688

  
10687 10689
else
10688 10690
  with_jemalloc=no
configure.in 2017-08-04 23:39:29.000000000 +0900 → configure.in 2017-09-15 07:20:40.000000000 +0900
1403 1403
AS_IF([test "x$with_gmp" != xno],
1404 1404
  [AC_CHECK_HEADERS(gmp.h)
1405 1405
   AS_IF([test "x$ac_cv_header_gmp_h" != xno],
1406
     AC_SEARCH_LIBS([__gmpz_init], [gmp]))])
1406
     AC_SEARCH_LIBS([__gmpz_init], [gmp],
1407
       [AC_DEFINE(HAVE_LIBGMP, 1)]))])
1407 1408

  
1408 1409
AC_ARG_WITH([jemalloc],
1409 1410
  [AS_HELP_STRING([--with-jemalloc],[use jemalloc allocator])],
1410 1411
  [with_jemalloc=$withval], [with_jemalloc=no])
1411 1412
AS_IF([test "x$with_jemalloc" = xyes],[
1412
  AC_SEARCH_LIBS([malloc_conf], [jemalloc], [], [with_jemalloc=no])
1413
  AC_SEARCH_LIBS([malloc_conf], [jemalloc],
1414
    [AC_DEFINE(HAVE_LIBJEMALLOC, 1)], [with_jemalloc=no])
1413 1415
  AC_CHECK_HEADER(jemalloc/jemalloc.h, [
1414 1416
    AC_DEFINE(RUBY_ALTERNATIVE_MALLOC_HEADER, [<jemalloc/jemalloc.h>])
1415 1417
  ])