xref: /freebsd/contrib/ntp/sntp/m4/ntp_lib_m.m4 (revision 2e3f49888ec8851bafb22011533217487764fdb0)
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