NEWS.stable: log cherry-pick [e446f25]->[c092018] relocatable-shell: Update suggested...
[gnulib.git] / modules / roundl
index 516ee0b..22486ab 100644 (file)
@@ -12,10 +12,14 @@ m4/ceill.m4
 Depends-on:
 math
 extensions
-float           [test $HAVE_DECL_ROUNDL = 0 || test $REPLACE_ROUNDL = 1]
+round           [{ test $HAVE_ROUNDL = 0 || test $REPLACE_ROUNDL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1]
+float           [{ test $HAVE_ROUNDL = 0 || test $REPLACE_ROUNDL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0]
 
 configure.ac:
 gl_FUNC_ROUNDL
+if test $HAVE_ROUNDL = 0 || test $REPLACE_ROUNDL = 1; then
+  AC_LIBOBJ([roundl])
+fi
 gl_MATH_MODULE_INDICATOR([roundl])
 
 Makefile.am: