Project

General

Profile

Bug #13899 » configure-2.3.5.diff

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

View differences:

configure 2017-09-14 21:09:29.000000000 +0900 → configure 2017-09-15 05:56:46.000000000 +0900
10366 10366
ac_res=$ac_cv_search___gmpz_init
10367 10367
if test "$ac_res" != no; then :
10368 10368
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10369
  $as_echo "#define HAVE_LIBGMP 1" >>confdefs.h
10369 10370

  
10370 10371
fi
10371 10372

  
......
10435 10436
ac_res=$ac_cv_search_malloc_conf
10436 10437
if test "$ac_res" != no; then :
10437 10438
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10439
  $as_echo "#define HAVE_LIBJEMALLOC 1" >>confdefs.h
10438 10440

  
10439 10441
else
10440 10442
  with_jemalloc=no
configure.in 2017-08-09 19:28:56.000000000 +0900 → configure.in 2017-09-15 07:18:25.000000000 +0900
1337 1337
AS_IF([test "x$with_gmp" != xno],
1338 1338
  [AC_CHECK_HEADERS(gmp.h)
1339 1339
   AS_IF([test "x$ac_cv_header_gmp_h" != xno],
1340
     AC_SEARCH_LIBS([__gmpz_init], [gmp]))])
1340
     AC_SEARCH_LIBS([__gmpz_init], [gmp],
1341
       [AC_DEFINE(HAVE_LIBGMP, 1)]))])
1341 1342

  
1342 1343
AC_ARG_WITH([jemalloc],
1343 1344
  [AS_HELP_STRING([--with-jemalloc],[use jemalloc allocator])],
1344 1345
  [with_jemalloc=$withval], [with_jemalloc=no])
1345 1346
AS_IF([test "x$with_jemalloc" = xyes],[
1346
  AC_SEARCH_LIBS([malloc_conf], [jemalloc], [], [with_jemalloc=no])
1347
  AC_SEARCH_LIBS([malloc_conf], [jemalloc],
1348
    [AC_DEFINE(HAVE_LIBJEMALLOC, 1)], [with_jemalloc=no])
1347 1349
  AC_CHECK_HEADER(jemalloc/jemalloc.h, [
1348 1350
    AC_DEFINE(RUBY_ALTERNATIVE_MALLOC_HEADER, [<jemalloc/jemalloc.h>])
1349 1351
  ])