]> Savannah Git Hosting - gnulib.git/commitdiff
fpurge: Improve configure test.
authorBruno Haible <bruno@clisp.org>
Wed, 27 Nov 2024 06:33:34 +0000 (07:33 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 27 Nov 2024 06:33:34 +0000 (07:33 +0100)
Reported by Eli Schwartz <eschwartz@gentoo.org>.

* m4/fpurge.m4 (gl_FUNC_FPURGE): If fpurge is not declared, don't test
whether it works. Remove now-redundant cross-compilation guess.

ChangeLog
m4/fpurge.m4

index 51c477244fa496db9bf400c054f3e60b15472d91..9662b37341c54fb714b416a758d1d8184db2f868 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,7 +3,7 @@
        fpurge: Improve configure test.
        Reported by Eli Schwartz <eschwartz@gentoo.org>.
        * m4/fpurge.m4 (gl_FUNC_FPURGE): If fpurge is not declared, don't test
-       whether it works.
+       whether it works. Remove now-redundant cross-compilation guess.
 
 2024-11-25  Simon Josefsson  <simon@josefsson.org>
 
index a8911a07bd1991499597a8450ad3dbbd941b0693..1e31a18a9d28a296394a198dcc8dbebf83e81cd5 100644 (file)
@@ -1,5 +1,5 @@
 # fpurge.m4
-# serial 15
+# serial 16
 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,
@@ -9,7 +9,6 @@ dnl This file is offered as-is, without any warranty.
 AC_DEFUN([gl_FUNC_FPURGE],
 [
   AC_REQUIRE([gl_STDIO_H_DEFAULTS])
-  AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
   AC_CHECK_HEADERS_ONCE([stdio_ext.h])
   AC_CHECK_FUNCS_ONCE([fpurge])
   gl_CHECK_FUNCS_ANDROID([__fpurge], [[#include <stdio_ext.h>]])
@@ -55,12 +54,8 @@ AC_DEFUN([gl_FUNC_FPURGE],
               ]])],
            [gl_cv_func_fpurge_works=yes],
            [gl_cv_func_fpurge_works=no],
-           [case "$host_os" in
-                                  # Guess yes on musl systems.
-              *-musl* | midipix*) gl_cv_func_fpurge_works="guessing yes" ;;
-                                  # Otherwise obey --enable-cross-guesses.
-              *)                  gl_cv_func_fpurge_works="$gl_cross_guess_normal" ;;
-            esac
+           [# Obey --enable-cross-guesses.
+            gl_cv_func_fpurge_works="$gl_cross_guess_normal"
            ])
        else
          gl_cv_func_fpurge_works=no