maint: update all copyright year number ranges
[gnulib.git] / m4 / modff.m4
1 # modff.m4 serial 2
2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
6
7 AC_DEFUN([gl_FUNC_MODFF],
8 [
9   AC_REQUIRE([gl_MATH_H_DEFAULTS])
10   AC_REQUIRE([gl_FUNC_MODF])
11
12   dnl Test whether modff() exists. We cannot assume that modff(), if it
13   dnl exists, is defined in the same library as modf(). This is not the case
14   dnl on FreeBSD, NetBSD, OpenBSD.
15   gl_MATHFUNC([modff], [float], [(float, float *)])
16   if test $gl_cv_func_modff_no_libm = no \
17      && test $gl_cv_func_modff_in_libm = no; then
18     HAVE_MODFF=0
19     MODFF_LIBM="$MODF_LIBM"
20   fi
21   AC_SUBST([MODFF_LIBM])
22 ])