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