aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-11 20:04:15 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-11 20:04:15 +0000
commit90b850a7bea2f380bfe75b3462019403795afde7 (patch)
treeb553849442b6755467b07732c65f018f96f6dfc9 /configure.ac
parent0882ccc8f3e361468ae293399323894f61047973 (diff)
Merged revisions 163168 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r163168 | tilghman | 2008-12-11 14:02:35 -0600 (Thu, 11 Dec 2008) | 5 lines Sometimes even Linux needs -lm to link libtonezone, such as when libtonezone is compiled statically. (closes issue #13887) Reported by: tzafrir ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@163169 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 20e8e3361..086eb8d39 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1449,7 +1449,9 @@ AST_EXT_LIB_CHECK([TERMCAP], [termcap], [tgetent], [])
AST_EXT_LIB_CHECK([TINFO], [tinfo], [tgetent], [])
-if test "${host_os}" != "linux-gnu" ; then
+AC_CHECK_LIB([tonezone], [tone_zone_find_by_num], tonezone_does_not_need_lm=yes, tonezone_does_not_need_lm=no)
+
+if test "${tonezone_does_not_need_lm}" = "no" ; then
tonezone_extra="-lm"
fi