From 5be04ec2ceb1df77afbca4fcbf9e92a712612d6f Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 31 Oct 2024 16:27:12 +0100 Subject: Sync with the latest Gnulib code (d4ec02b3cc) --- gl/m4/floorf.m4 | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'gl/m4/floorf.m4') diff --git a/gl/m4/floorf.m4 b/gl/m4/floorf.m4 index c49ffa6b..2572c848 100644 --- a/gl/m4/floorf.m4 +++ b/gl/m4/floorf.m4 @@ -1,5 +1,6 @@ -# floorf.m4 serial 18 -dnl Copyright (C) 2007, 2009-2023 Free Software Foundation, Inc. +# floorf.m4 +# serial 21 +dnl Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -26,7 +27,7 @@ AC_DEFUN([gl_FUNC_FLOORF], AC_CACHE_CHECK([whether floorf works according to ISO C 99 with IEC 60559], [gl_cv_func_floorf_ieee], [ - save_LIBS="$LIBS" + saved_LIBS="$LIBS" LIBS="$LIBS $FLOORF_LIBM" AC_RUN_IFELSE( [AC_LANG_SOURCE([[ @@ -49,17 +50,17 @@ int main (int argc, char *argv[]) [gl_cv_func_floorf_ieee=yes], [gl_cv_func_floorf_ieee=no], [case "$host_os" in - # Guess yes on glibc systems. - *-gnu* | gnu*) gl_cv_func_floorf_ieee="guessing yes" ;; - # Guess yes on musl systems. - *-musl*) gl_cv_func_floorf_ieee="guessing yes" ;; - # Guess yes on native Windows. - mingw*) gl_cv_func_floorf_ieee="guessing yes" ;; - # If we don't know, obey --enable-cross-guesses. - *) gl_cv_func_floorf_ieee="$gl_cross_guess_normal" ;; + # Guess yes on glibc systems. + *-gnu* | gnu*) gl_cv_func_floorf_ieee="guessing yes" ;; + # Guess yes on musl systems. + *-musl* | midipix*) gl_cv_func_floorf_ieee="guessing yes" ;; + # Guess yes on native Windows. + mingw* | windows*) gl_cv_func_floorf_ieee="guessing yes" ;; + # If we don't know, obey --enable-cross-guesses. + *) gl_cv_func_floorf_ieee="$gl_cross_guess_normal" ;; esac ]) - LIBS="$save_LIBS" + LIBS="$saved_LIBS" ]) case "$gl_cv_func_floorf_ieee" in *yes) ;; @@ -94,7 +95,7 @@ AC_DEFUN([gl_FUNC_FLOORF_LIBS], [[x = funcptr(x) + floorf(x);]])], [gl_cv_func_floorf_libm=]) if test "$gl_cv_func_floorf_libm" = "?"; then - save_LIBS="$LIBS" + saved_LIBS="$LIBS" LIBS="$LIBS -lm" AC_LINK_IFELSE( [AC_LANG_PROGRAM( @@ -106,7 +107,7 @@ AC_DEFUN([gl_FUNC_FLOORF_LIBS], float x;]], [[x = funcptr(x) + floorf(x);]])], [gl_cv_func_floorf_libm="-lm"]) - LIBS="$save_LIBS" + LIBS="$saved_LIBS" fi ]) FLOORF_LIBM="$gl_cv_func_floorf_libm" -- cgit v1.2.3-74-g34f1