diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-11 20:02:35 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-11 20:02:35 +0000 |
commit | 403ea0fd89d2d22c2cb2b0281c0e84761eb3e7c9 (patch) | |
tree | 616526c67c39c6b2496e1273b9313dd7839aee66 /configure.ac | |
parent | 36d9cbb0c08a610c43e870015e7a58f10417b412 (diff) |
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/trunk@163168 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index bf4ed43e7..986443023 100644 --- a/configure.ac +++ b/configure.ac @@ -1521,7 +1521,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 |