summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@gmail.com>2017-07-06 19:04:17 (GMT)
committerDavid Goldblatt <davidtgoldblatt@gmail.com>2017-09-21 19:18:19 (GMT)
commit24766ccd5bcc379b7d518b3ec2480d2d146873ac (patch)
tree069572651b2754aa7add50f7b41c4be35235c78a
parent96f1468221b9e846dd70eb7e65634a41e6804c20 (diff)
downloadjemalloc-24766ccd5bcc379b7d518b3ec2480d2d146873ac.zip
jemalloc-24766ccd5bcc379b7d518b3ec2480d2d146873ac.tar.gz
jemalloc-24766ccd5bcc379b7d518b3ec2480d2d146873ac.tar.bz2
Allow toolchain to determine nm
-rw-r--r--configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 4373c21..c98f7b6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -512,6 +512,11 @@ AN_PROGRAM([ar], [AC_PROG_AR])
AC_DEFUN([AC_PROG_AR], [AC_CHECK_TOOL(AR, ar, :)])
AC_PROG_AR
+AN_MAKEVAR([NM], [AC_PROG_NM])
+AN_PROGRAM([nm], [AC_PROG_NM])
+AC_DEFUN([AC_PROG_NM], [AC_CHECK_TOOL(NM, nm, :)])
+AC_PROG_NM
+
AC_PROG_AWK
dnl Platform-specific settings. abi and RPATH can probably be determined
@@ -523,7 +528,7 @@ dnl definitions need to be seen before any headers are included, which is a pain
dnl to make happen otherwise.
default_retain="0"
maps_coalesce="1"
-DUMP_SYMS="nm -a"
+DUMP_SYMS="${NM} -a"
SYM_PREFIX=""
case "${host}" in
*-*-darwin* | *-*-ios*)