]> Savannah Git Hosting - gnulib.git/commitdiff
Further improve cross-compilation for midipix.
authorBruno Haible <bruno@clisp.org>
Mon, 5 Feb 2024 23:41:56 +0000 (00:41 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 5 Feb 2024 23:41:56 +0000 (00:41 +0100)
Based on patch by Ørjan Malde <red@foxi.me> from
<https://lists.gnu.org/archive/html/bug-gnulib/2024-02/msg00004.html>.

* m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Add cross-compilation guess for
midipix.
* m4/rename.m4 (gl_FUNC_RENAME): Likewise.
* m4/truncate.m4 (gl_FUNC_TRUNCATE): Likewise.
* m4/utime.m4 (gl_FUNC_UTIME): Likewise.
* m4/utimens.m4 (gl_UTIMENS): Likewise.
* m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.

ChangeLog
m4/nanosleep.m4
m4/rename.m4
m4/truncate.m4
m4/utime.m4
m4/utimens.m4
m4/utimensat.m4

index 5096e5b8e26f1b71aa610ec30fc9c296d4ca9604..2e774f6114f5534ac4bc66a8fcaa428ebe579982 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2024-02-05  Bruno Haible  <bruno@clisp.org>
+
+       Further improve cross-compilation for midipix.
+       Based on patch by Ørjan Malde <red@foxi.me> from
+       <https://lists.gnu.org/archive/html/bug-gnulib/2024-02/msg00004.html>.
+       * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Add cross-compilation guess for
+       midipix.
+       * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
+       * m4/truncate.m4 (gl_FUNC_TRUNCATE): Likewise.
+       * m4/utime.m4 (gl_FUNC_UTIME): Likewise.
+       * m4/utimens.m4 (gl_UTIMENS): Likewise.
+       * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
+
 2024-02-05  Paul Eggert  <eggert@cs.ucla.edu>
 
        doc: Extend doc of *ctime functions.
index c51f590402f4fac729de4f2f7679fa6a56c73252..38c0a5e71f662693522c97cce9558296042e7782 100644 (file)
@@ -1,4 +1,4 @@
-# serial 46
+# serial 47
 
 dnl From Jim Meyering.
 dnl Check for the nanosleep function.
@@ -116,8 +116,9 @@ AC_DEFUN([gl_FUNC_NANOSLEEP],
         *)     gl_cv_func_nanosleep=no ;;
         esac],
        [case "$host_os" in
-            # Guess it halfway works when the kernel is Linux.
-          linux*)
+            # Guess it halfway works when the kernel is Linux
+            # and on systems that emulate the Linux system calls.
+          linux* | midipix*)
             gl_cv_func_nanosleep='guessing no (mishandles large arguments)' ;;
             # Guess no on native Windows.
           mingw* | windows*)
index 5383b3ea52ccccf76c1432158b6decdbdfea4852..757cc27b2ae1e31e84db5ec18e5ec2cfea0edb13 100644 (file)
@@ -1,4 +1,4 @@
-# serial 36
+# serial 37
 
 # Copyright (C) 2001, 2003, 2005-2006, 2009-2024 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -55,10 +55,9 @@ AC_DEFUN([gl_FUNC_RENAME],
       [gl_cv_func_rename_slash_dst_works=no],
       dnl When crosscompiling, assume rename is broken.
       [case "$host_os" in
-                            # Guess yes on Linux systems.
-         linux-* | linux)   gl_cv_func_rename_slash_dst_works="guessing yes" ;;
-                            # Guess yes on systems that emulate the Linux system calls.
-         midipix*)          gl_cv_func_rename_slash_dst_works="guessing yes" ;;
+                            # Guess yes on Linux systems
+                            # and on systems that emulate the Linux system calls.
+         linux* | midipix*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
                             # Guess yes on glibc systems.
          *-gnu*)            gl_cv_func_rename_slash_dst_works="guessing yes" ;;
                             # Guess no on native Windows.
@@ -113,10 +112,9 @@ AC_DEFUN([gl_FUNC_RENAME],
       [gl_cv_func_rename_slash_src_works=no],
       dnl When crosscompiling, assume rename is broken.
       [case "$host_os" in
-                            # Guess yes on Linux systems.
-         linux-* | linux)   gl_cv_func_rename_slash_src_works="guessing yes" ;;
-                            # Guess yes on systems that emulate the Linux system calls.
-         midipix*)          gl_cv_func_rename_slash_src_works="guessing yes" ;;
+                            # Guess yes on Linux systems
+                            # and on systems that emulate the Linux system calls.
+         linux* | midipix*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
                             # Guess yes on glibc systems.
          *-gnu*)            gl_cv_func_rename_slash_src_works="guessing yes" ;;
                             # Guess yes on native Windows.
@@ -186,10 +184,9 @@ AC_DEFUN([gl_FUNC_RENAME],
        else
          dnl When crosscompiling, assume rename is broken.
          case "$host_os" in
-                              # Guess yes on Linux systems.
-           linux-* | linux)   gl_cv_func_rename_link_works="guessing yes" ;;
-                              # Guess yes on systems that emulate the Linux system calls.
-           midipix*)          gl_cv_func_rename_link_works="guessing yes" ;;
+                              # Guess yes on Linux systems
+                              # and on systems that emulate the Linux system calls.
+           linux* | midipix*) gl_cv_func_rename_link_works="guessing yes" ;;
                               # Guess yes on glibc systems.
            *-gnu*)            gl_cv_func_rename_link_works="guessing yes" ;;
                               # Guess yes on native Windows.
@@ -237,8 +234,9 @@ AC_DEFUN([gl_FUNC_RENAME],
       [gl_cv_func_rename_dest_works=no],
       dnl When crosscompiling, assume rename is broken.
       [case "$host_os" in
-                            # Guess yes on Linux systems.
-         linux-* | linux)   gl_cv_func_rename_dest_works="guessing yes" ;;
+                            # Guess yes on Linux systems
+                            # and on systems that emulate the Linux system calls.
+         linux* | midipix*) gl_cv_func_rename_dest_works="guessing yes" ;;
                             # Guess yes on glibc systems.
          *-gnu*)            gl_cv_func_rename_dest_works="guessing yes" ;;
                             # Guess no on native Windows.
index 727832224af990cdc0e043d6b169bd80a8ec5318..2abc9aea749d886f05f4b3121f1ab5e286a7bd74 100644 (file)
@@ -1,4 +1,4 @@
-# truncate.m4 serial 6   -*- Autoconf -*-
+# truncate.m4 serial 7   -*- Autoconf -*-
 dnl Copyright (C) 2017-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,
@@ -48,14 +48,15 @@ AC_DEFUN([gl_FUNC_TRUNCATE],
            [gl_cv_func_truncate_works=yes],
            [gl_cv_func_truncate_works=no],
            [case "$host_os" in
-                               # Guess yes on Linux systems.
-              linux-* | linux) gl_cv_func_truncate_works="guessing yes" ;;
-                               # Guess yes on glibc systems.
-              *-gnu* | gnu*)   gl_cv_func_truncate_works="guessing yes" ;;
-                               # Guess no on AIX systems.
-              aix*)            gl_cv_func_truncate_works="guessing no" ;;
-                               # If we don't know, obey --enable-cross-guesses.
-              *)               gl_cv_func_truncate_works="$gl_cross_guess_normal" ;;
+                                 # Guess yes on Linux systems
+                                 # and on systems that emulate the Linux system calls.
+              linux* | midipix*) gl_cv_func_truncate_works="guessing yes" ;;
+                                 # Guess yes on glibc systems.
+              *-gnu* | gnu*)     gl_cv_func_truncate_works="guessing yes" ;;
+                                 # Guess no on AIX systems.
+              aix*)              gl_cv_func_truncate_works="guessing no" ;;
+                                 # If we don't know, obey --enable-cross-guesses.
+              *)                 gl_cv_func_truncate_works="$gl_cross_guess_normal" ;;
             esac
            ])
          rm -f conftest.tmp
index 0009e4f2f98b33cadda2e182882f9b3c991bdf8a..b738e1c0a0a40a652307ca8dc86ac6fdd02a2561 100644 (file)
@@ -1,4 +1,4 @@
-# utime.m4 serial 5
+# utime.m4 serial 6
 dnl Copyright (C) 2017-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,
@@ -48,14 +48,15 @@ AC_DEFUN([gl_FUNC_UTIME],
              [gl_cv_func_utime_file_slash=yes],
              [gl_cv_func_utime_file_slash=no],
              [case "$host_os" in
-                                 # Guess yes on Linux systems.
-                linux-* | linux) gl_cv_func_utime_file_slash="guessing yes" ;;
-                                 # Guess yes on glibc systems.
-                *-gnu* | gnu*)   gl_cv_func_utime_file_slash="guessing yes" ;;
-                                 # Guess no on macOS.
-                darwin*)         gl_cv_func_utime_file_slash="guessing no" ;;
-                                 # If we don't know, obey --enable-cross-guesses.
-                *)               gl_cv_func_utime_file_slash="$gl_cross_guess_normal" ;;
+                                   # Guess yes on Linux systems
+                                   # and on systems that emulate the Linux system calls.
+                linux* | midipix*) gl_cv_func_utime_file_slash="guessing yes" ;;
+                                   # Guess yes on glibc systems.
+                *-gnu* | gnu*)     gl_cv_func_utime_file_slash="guessing yes" ;;
+                                   # Guess no on macOS.
+                darwin*)           gl_cv_func_utime_file_slash="guessing no" ;;
+                                   # If we don't know, obey --enable-cross-guesses.
+                  *)               gl_cv_func_utime_file_slash="$gl_cross_guess_normal" ;;
               esac
              ])
            rm -f conftest.tmp conftest.lnk
index af03e6b52be81ec017532c0d103ab2a0e7f412b5..0f5bfd4c84357608e2be59a39f89ae12b2e86fd8 100644 (file)
@@ -3,7 +3,7 @@ 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.
 
-dnl serial 15
+dnl serial 16
 
 AC_DEFUN([gl_UTIMENS],
 [
@@ -36,12 +36,13 @@ AC_DEFUN([gl_UTIMENS],
         [gl_cv_func_futimesat_works=yes],
         [gl_cv_func_futimesat_works=no],
         [case "$host_os" in
-                            # Guess yes on Linux systems.
-           linux-* | linux) gl_cv_func_futimesat_works="guessing yes" ;;
-                            # Guess yes on glibc systems.
-           *-gnu*)          gl_cv_func_futimesat_works="guessing yes" ;;
-                            # If we don't know, obey --enable-cross-guesses.
-           *)               gl_cv_func_futimesat_works="$gl_cross_guess_normal" ;;
+                              # Guess yes on Linux systems
+                              # and on systems that emulate the Linux system calls.
+           linux* | midipix*) gl_cv_func_futimesat_works="guessing yes" ;;
+                              # Guess yes on glibc systems.
+           *-gnu*)            gl_cv_func_futimesat_works="guessing yes" ;;
+                              # If we don't know, obey --enable-cross-guesses.
+           *)                 gl_cv_func_futimesat_works="$gl_cross_guess_normal" ;;
          esac
         ])
       rm -f conftest.file])
index e595b333d17e1571c574c8755f3ffd5191613f67..4af7f6f81c847dcdf9236c4f57c1a1fadf3706b7 100644 (file)
@@ -1,4 +1,4 @@
-# serial 11
+# serial 12
 # See if we need to provide utimensat replacement.
 
 dnl Copyright (C) 2009-2024 Free Software Foundation, Inc.
@@ -83,6 +83,9 @@ AC_DEFUN([gl_FUNC_UTIMENSAT],
             # Guess yes on Linux or glibc systems.
             linux-* | linux | *-gnu* | gnu*)
               gl_cv_func_utimensat_works="guessing yes" ;;
+            # Guess yes on systems that emulate the Linux system calls.
+            midipix*)
+              gl_cv_func_utimensat_works="guessing yes" ;;
             # Guess 'nearly' on AIX.
             aix*)
               gl_cv_func_utimensat_works="guessing nearly" ;;