string-buffer tests: Avoid test failure on native Windows.
[gnulib.git] / m4 / copysign.m4
blob1f2ceab828fce519b9b1285a5a7a3dc696df1f91
1 # copysign.m4
2 # serial 1
3 dnl Copyright (C) 2011-2024 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
8 AC_DEFUN([gl_FUNC_COPYSIGN],
10   AC_REQUIRE([gl_MATH_H_DEFAULTS])
12   dnl Determine COPYSIGN_LIBM.
13   gl_MATHFUNC([copysign], [double], [(double, double)])
14   if test $gl_cv_func_copysign_no_libm = no \
15      && test $gl_cv_func_copysign_in_libm = no; then
16     HAVE_COPYSIGN=0
17     COPYSIGN_LIBM=
18   fi
19   AC_SUBST([COPYSIGN_LIBM])