xref: /freebsd/contrib/ntp/sntp/m4/ntp_lib_m.m4 (revision 924226fba12cc9a228c73b956e1b7fa24c60b055)
1dnl ######################################################################
2dnl What do we need for math libraries?
3AC_DEFUN([NTP_LIB_M], [
4LIBM=
5case "$host" in
6 *-*-darwin*)
7    ;;
8 *)
9    _libs=$LIBS
10    AC_SEARCH_LIBS([cos], [m], [LIBM="-lm"])
11    LIBS=$_libs
12    ;;
13esac
14AC_SUBST([LIBM])
15AS_UNSET([_libs])
16])
17dnl ======================================================================
18