~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Monty Taylor
  • Date: 2008-11-25 22:42:50 UTC
  • mto: (612.2.17 devel)
  • mto: This revision was merged to the branch mainline in revision 624.
  • Revision ID: mordred@solanthus.local-20081125224250-xzq4187mshvvkmyg
Added test for mtmalloc, if we haven't explicitly asked for tcmalloc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
604
604
AC_CHECK_LIB(pthread, pthread_create, [], [AC_MSG_ERROR(could not find libpthread)])
605
605
 
606
606
#--------------------------------------------------------------------
607
 
# Check for tcmalloc
 
607
# Check for tcmalloc/mtmalloc
608
608
#--------------------------------------------------------------------
609
609
 
610
610
AC_ARG_ENABLE([tcmalloc],
613
613
    [ac_enable_tcmalloc="$enableval"],
614
614
    [ac_enable_tcmalloc="no"])
615
615
 
616
 
if test "x$ac_enable_tcmalloc" = "xyes"
 
616
if test "x$ac_enable_tcmalloc" != "xno"
617
617
then
618
618
  AC_CHECK_LIB(tcmalloc,malloc,[],[])
619
619
fi
620
620
 
 
621
if test "x$ac_cv_lib_tcmalloc_malloc" != "xyes"
 
622
then
 
623
  AC_CHECK_LIB(mtmalloc,malloc,[],[])
 
624
fi
 
625
 
621
626
#--------------------------------------------------------------------
622
627
# Check for libz
623
628
#--------------------------------------------------------------------