link libtonezone directly to libm
authorOron Peled <oron.peled@xorcom.com>
Mon, 28 Dec 2015 17:34:39 +0000 (19:34 +0200)
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>
Mon, 15 Feb 2016 15:22:21 +0000 (17:22 +0200)
commite1da7b528467a8f8f82058993b2e01333677ee39
treec1b8679653da436a62f5135dc35f6f46c6b16314
parentf105a09eda3a3b832078194e7ece902271a8d7b7
link libtonezone directly to libm

* Now we properly '-lm' to libtonezone itself.
  Tools that link with libtonezone get it automatically without having
  to individually link it.
  - dahdi_cfg historically needed -lm, but no longer does.

* Also use "autoscan" to refresh "configure.ac":
  - Added missing tests
  - Move AC_CHECK_HEADERS() to their correct location (before testing
    libraries).
* Fixes the following (on Ubuntu-14.04):
      CCLD     dahdi_cfg
    ./.libs/libtonezone.so: undefined reference to `sin'
    ./.libs/libtonezone.so: undefined reference to `cos'
    ./.libs/libtonezone.so: undefined reference to `pow'
    collect2: error: ld returned 1 exit status
    make[2]: *** [dahdi_cfg] Error 1

Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
Makefile.am
configure.ac