]> Savannah Git Hosting - gnulib.git/commitdiff
Add cross-compilation guesses for Linux systems without glibc.
authorBruno Haible <bruno@clisp.org>
Sun, 13 May 2018 18:25:13 +0000 (20:25 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 13 May 2018 18:25:13 +0000 (20:25 +0200)
* m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
* m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
* m4/link.m4 (gl_FUNC_LINK): Likewise.
* m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
* m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
* m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
* m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
* m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
* m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
* m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
* m4/rename.m4 (gl_FUNC_RENAME): Likewise.
* m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
* m4/select.m4 (gl_FUNC_SELECT): Likewise.
* m4/stat.m4 (gl_FUNC_STAT): Likewise.
* m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
* m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
* m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
* m4/utimens.m4 (gl_UTIMENS): Likewise.

19 files changed:
ChangeLog
m4/chown.m4
m4/fchdir.m4
m4/link.m4
m4/linkat.m4
m4/lstat.m4
m4/mkdir.m4
m4/mkfifo.m4
m4/mknod.m4
m4/pselect.m4
m4/readlink.m4
m4/rename.m4
m4/rmdir.m4
m4/select.m4
m4/stat.m4
m4/symlink.m4
m4/symlinkat.m4
m4/unlink.m4
m4/utimens.m4

index 611bdc501fbf4aa5e9cd214bb3cab0bc8fdf78a2..55f4802b8def28ef1f0180fd14ca46935476f8f0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,25 @@
+2018-05-13  Bruno Haible  <bruno@clisp.org>
+
+       Add cross-compilation guesses for Linux systems without glibc.
+       * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
+       * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
+       * m4/link.m4 (gl_FUNC_LINK): Likewise.
+       * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
+       * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
+       * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
+       * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
+       * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
+       * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
+       * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
+       * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
+       * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
+       * m4/select.m4 (gl_FUNC_SELECT): Likewise.
+       * m4/stat.m4 (gl_FUNC_STAT): Likewise.
+       * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
+       * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
+       * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
+       * m4/utimens.m4 (gl_UTIMENS): Likewise.
+
 2018-05-13  Bruno Haible  <bruno@clisp.org>
 
        getpagesize: Fix compilation error on Android.
index a3cd32ad41e655aed90e94772e75b8f256b64472..600ee934d188b6b1f26c2587211da424568a50b2 100644 (file)
@@ -1,4 +1,4 @@
-# serial 29
+# serial 30
 # Determine whether we need the chown wrapper.
 
 dnl Copyright (C) 1997-2001, 2003-2005, 2007, 2009-2018 Free Software
@@ -46,12 +46,14 @@ AC_DEFUN([AC_FUNC_CHOWN],
        [ac_cv_func_chown_works=yes],
        [ac_cv_func_chown_works=no],
        [case "$host_os" in # ((
-                         # Guess yes on glibc systems.
-          *-gnu* | gnu*) ac_cv_func_chown_works="guessing yes" ;;
-                         # Guess no on native Windows.
-          mingw*)        ac_cv_func_chown_works="guessing no" ;;
-                         # If we don't know, assume the worst.
-          *)             ac_cv_func_chown_works="guessing no" ;;
+                           # Guess yes on Linux systems.
+          linux-* | linux) ac_cv_func_chown_works="guessing yes" ;;
+                           # Guess yes on glibc systems.
+          *-gnu* | gnu*)   ac_cv_func_chown_works="guessing yes" ;;
+                           # Guess no on native Windows.
+          mingw*)          ac_cv_func_chown_works="guessing no" ;;
+                           # If we don't know, assume the worst.
+          *)               ac_cv_func_chown_works="guessing no" ;;
         esac
        ])
      rm -f conftest.chown
index b621ae216e91065a8a6bd5d10da1992ab75a2398..470b228f7f9f9a623ca2687814eff34ddf9833bc 100644 (file)
@@ -1,4 +1,4 @@
-# fchdir.m4 serial 23
+# fchdir.m4 serial 24
 dnl Copyright (C) 2006-2018 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -31,12 +31,14 @@ AC_DEFUN([gl_FUNC_FCHDIR],
         [gl_cv_func_open_directory_works=yes],
         [gl_cv_func_open_directory_works=no],
         [case "$host_os" in
-                          # Guess yes on glibc systems.
-           *-gnu* | gnu*) gl_cv_func_open_directory_works="guessing yes" ;;
-                          # Guess no on native Windows.
-           mingw*)        gl_cv_func_open_directory_works="guessing no" ;;
-                          # If we don't know, assume the worst.
-           *)             gl_cv_func_open_directory_works="guessing no" ;;
+                            # Guess yes on Linux systems.
+           linux-* | linux) gl_cv_func_open_directory_works="guessing yes" ;;
+                            # Guess yes on glibc systems.
+           *-gnu* | gnu*)   gl_cv_func_open_directory_works="guessing yes" ;;
+                            # Guess no on native Windows.
+           mingw*)          gl_cv_func_open_directory_works="guessing no" ;;
+                            # If we don't know, assume the worst.
+           *)               gl_cv_func_open_directory_works="guessing no" ;;
          esac
         ])])
     case "$gl_cv_func_open_directory_works" in
index b0b3ff25b8c64e3a1e992585bc3e399cdd57d222..d06b4f299a82746cdb063a369971bcdf0e18e0f8 100644 (file)
@@ -1,4 +1,4 @@
-# link.m4 serial 9
+# link.m4 serial 10
 dnl Copyright (C) 2009-2018 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -39,10 +39,12 @@ AC_DEFUN([gl_FUNC_LINK],
            ]])],
          [gl_cv_func_link_works=yes], [gl_cv_func_link_works=no],
          [case "$host_os" in
-                           # Guess yes on glibc systems.
-            *-gnu* | gnu*) gl_cv_func_link_works="guessing yes" ;;
-                           # If we don't know, assume the worst.
-            *)             gl_cv_func_link_works="guessing no" ;;
+                             # Guess yes on Linux systems.
+            linux-* | linux) gl_cv_func_link_works="guessing yes" ;;
+                             # Guess yes on glibc systems.
+            *-gnu* | gnu*)   gl_cv_func_link_works="guessing yes" ;;
+                             # If we don't know, assume the worst.
+            *)               gl_cv_func_link_works="guessing no" ;;
           esac
          ])
        rm -f conftest.a conftest.b conftest.lnk])
index 473cacce616495eecaa481021578767519526b58..ef601368eaa5102c5808b2a097de30dfb6170c66 100644 (file)
@@ -1,4 +1,4 @@
-# serial 8
+# serial 9
 # See if we need to provide linkat replacement.
 
 dnl Copyright (C) 2009-2018 Free Software Foundation, Inc.
@@ -96,10 +96,14 @@ AC_DEFUN([gl_FUNC_LINKAT],
             ]])],
          [gl_cv_func_linkat_slash=yes],
          [gl_cv_func_linkat_slash=no],
-         [# Guess yes on glibc systems, no otherwise.
+         [
           case "$host_os" in
-            *-gnu* | gnu*) gl_cv_func_linkat_slash="guessing yes";;
-            *)             gl_cv_func_linkat_slash="guessing no";;
+                             # Guess yes on Linux systems.
+            linux-* | linux) gl_cv_func_linkat_slash="guessing yes";;
+                             # Guess yes on glibc systems.
+            *-gnu* | gnu*)   gl_cv_func_linkat_slash="guessing yes";;
+                             # If we don't know, assume the worst.
+            *)               gl_cv_func_linkat_slash="guessing no";;
           esac
          ])
        rm -rf conftest.a conftest.b conftest.c conftest.d conftest.e conftest.s])
index ac6f143ce7dd86166e310bfb71899bdbd1cc33fa..3694e4ceaf74f594c7c7da147ba3d702c43c1341 100644 (file)
@@ -1,4 +1,4 @@
-# serial 31
+# serial 32
 
 # Copyright (C) 1997-2001, 2003-2018 Free Software Foundation, Inc.
 #
@@ -53,6 +53,9 @@ AC_DEFUN([gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK],
        [gl_cv_func_lstat_dereferences_slashed_symlink=yes],
        [gl_cv_func_lstat_dereferences_slashed_symlink=no],
        [case "$host_os" in
+          linux-* | linux)
+            # Guess yes on Linux systems.
+            gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
           *-gnu* | gnu*)
             # Guess yes on glibc systems.
             gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
index cea85a2eb6d5c9354a21a006978da19b21018353..1452999cbf25f9f0666d700a5438ff8da1e0fd8a 100644 (file)
@@ -1,4 +1,4 @@
-# serial 13
+# serial 14
 
 # Copyright (C) 2001, 2003-2004, 2006, 2008-2018 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -23,19 +23,21 @@ AC_DEFUN([gl_FUNC_MKDIR],
       [gl_cv_func_mkdir_trailing_slash_works=yes],
       [gl_cv_func_mkdir_trailing_slash_works=no],
       [case "$host_os" in
-                        # Guess yes on glibc systems.
-         *-gnu* | gnu*) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
-                        # Guess yes on MSVC, no on mingw.
-         mingw*)        AC_EGREP_CPP([Known], [
+                          # Guess yes on Linux systems.
+         linux-* | linux) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
+                          # Guess yes on glibc systems.
+         *-gnu* | gnu*)   gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
+                          # Guess yes on MSVC, no on mingw.
+         mingw*)          AC_EGREP_CPP([Known], [
 #ifdef _MSC_VER
  Known
 #endif
-                          ],
-                          [gl_cv_func_mkdir_trailing_slash_works="guessing yes"],
-                          [gl_cv_func_mkdir_trailing_slash_works="guessing no"])
-                        ;;
-                        # If we don't know, assume the worst.
-         *)             gl_cv_func_mkdir_trailing_slash_works="guessing no" ;;
+                            ],
+                            [gl_cv_func_mkdir_trailing_slash_works="guessing yes"],
+                            [gl_cv_func_mkdir_trailing_slash_works="guessing no"])
+                          ;;
+                          # If we don't know, assume the worst.
+         *)               gl_cv_func_mkdir_trailing_slash_works="guessing no" ;;
        esac
       ])
     rm -rf conftest.dir
index 5dda67c38973e10be0bb9c096ce0c26e09123b0e..668e786fcbe8bf0c464209809d85856f8a1fb819 100644 (file)
@@ -1,4 +1,4 @@
-# serial 6
+# serial 7
 # See if we need to provide mkfifo replacement.
 
 dnl Copyright (C) 2009-2018 Free Software Foundation, Inc.
@@ -50,10 +50,12 @@ AC_DEFUN([gl_FUNC_MKFIFO],
            ]])],
          [gl_cv_func_mkfifo_works=yes], [gl_cv_func_mkfifo_works=no],
          [case "$host_os" in
-                           # Guess yes on glibc systems.
-            *-gnu* | gnu*) gl_cv_func_mkfifo_works="guessing yes" ;;
-                           # If we don't know, assume the worst.
-            *)             gl_cv_func_mkfifo_works="guessing no" ;;
+                             # Guess yes on Linux systems.
+            linux-* | linux) gl_cv_func_mkfifo_works="guessing yes" ;;
+                             # Guess yes on glibc systems.
+            *-gnu* | gnu*)   gl_cv_func_mkfifo_works="guessing yes" ;;
+                             # If we don't know, assume the worst.
+            *)               gl_cv_func_mkfifo_works="guessing no" ;;
           esac
          ])
        rm -f conftest.tmp conftest.lnk])
index 9af56ded7d80f17ab721feb1fdafbc0b63d4230c..b6397147ec57a925ee847e21be3dc29bd69f4ffb 100644 (file)
@@ -1,4 +1,4 @@
-# serial 6
+# serial 7
 # See if we need to provide mknod replacement.
 
 dnl Copyright (C) 2009-2018 Free Software Foundation, Inc.
@@ -43,10 +43,12 @@ AC_DEFUN([gl_FUNC_MKNOD],
           fi
           gl_cv_func_mknod_works=no],
          [case "$host_os" in
-                           # Guess yes on glibc systems.
-            *-gnu* | gnu*) gl_cv_func_mknod_works="guessing yes" ;;
-                           # If we don't know, assume the worst.
-            *)             gl_cv_func_mknod_works="guessing no" ;;
+                             # Guess yes on Linux systems.
+            linux-* | linux) gl_cv_func_mknod_works="guessing yes" ;;
+                             # Guess yes on glibc systems.
+            *-gnu* | gnu*)   gl_cv_func_mknod_works="guessing yes" ;;
+                             # If we don't know, assume the worst.
+            *)               gl_cv_func_mknod_works="guessing no" ;;
           esac
          ])
        rm -f conftest.fifo])
index edf4d8282095d8a7b0f0ba7630d2392319ff054e..5cd1e044fc95383effa83cedd8b24c930eb134b7 100644 (file)
@@ -1,4 +1,4 @@
-# pselect.m4 serial 6
+# pselect.m4 serial 7
 dnl Copyright (C) 2011-2018 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -51,10 +51,12 @@ AC_DEFUN([gl_FUNC_PSELECT],
       [gl_cv_func_pselect_detects_ebadf=no],
           [
            case "$host_os" in
-                           # Guess yes on glibc systems.
-            *-gnu* | gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
-                           # If we don't know, assume the worst.
-            *)             gl_cv_func_pselect_detects_ebadf="guessing no" ;;
+                             # Guess yes on Linux systems.
+            linux-* | linux) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
+                             # Guess yes on glibc systems.
+            *-gnu* | gnu*)   gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
+                             # If we don't know, assume the worst.
+            *)               gl_cv_func_pselect_detects_ebadf="guessing no" ;;
            esac
           ])
       ])
index 9d73f5cfa18957ea93059d035bf46852668bdfc4..4d0ab4836b036f76d4530f3030d1e936986fb391 100644 (file)
@@ -1,4 +1,4 @@
-# readlink.m4 serial 13
+# readlink.m4 serial 14
 dnl Copyright (C) 2003, 2007, 2009-2018 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -34,10 +34,12 @@ AC_DEFUN([gl_FUNC_READLINK],
       return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;]])],
          [gl_cv_func_readlink_works=yes], [gl_cv_func_readlink_works=no],
          [case "$host_os" in
-                           # Guess yes on glibc systems.
-            *-gnu* | gnu*) gl_cv_func_readlink_works="guessing yes" ;;
-                           # If we don't know, assume the worst.
-            *)             gl_cv_func_readlink_works="guessing no" ;;
+                             # Guess yes on Linux systems.
+            linux-* | linux) gl_cv_func_readlink_works="guessing yes" ;;
+                             # Guess yes on glibc systems.
+            *-gnu* | gnu*)   gl_cv_func_readlink_works="guessing yes" ;;
+                             # If we don't know, assume the worst.
+            *)               gl_cv_func_readlink_works="guessing no" ;;
           esac
          ])
       rm -f conftest.link conftest.lnk2])
index f7fa3bb2167fa8e583b2a970a67834c6f4bf63db..e7ff1bfac3c9f50d0091027a6e7aa05fd51932d4 100644 (file)
@@ -1,4 +1,4 @@
-# serial 29
+# serial 30
 
 # Copyright (C) 2001, 2003, 2005-2006, 2009-2018 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -55,12 +55,14 @@ 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 glibc systems.
-         *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
-                 # Guess no on native Windows.
-         mingw*) gl_cv_func_rename_slash_dst_works="guessing no" ;;
-                 # If we don't know, assume the worst.
-         *)      gl_cv_func_rename_slash_dst_works="guessing no" ;;
+                          # Guess yes on Linux systems.
+         linux-* | linux) 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.
+         mingw*)          gl_cv_func_rename_slash_dst_works="guessing no" ;;
+                          # If we don't know, assume the worst.
+         *)               gl_cv_func_rename_slash_dst_works="guessing no" ;;
        esac
       ])
     rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
@@ -109,12 +111,14 @@ 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 glibc systems.
-         *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
-                 # Guess yes on native Windows.
-         mingw*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
-                 # If we don't know, assume the worst.
-         *)      gl_cv_func_rename_slash_src_works="guessing no" ;;
+                          # Guess yes on Linux systems.
+         linux-* | linux) 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.
+         mingw*)          gl_cv_func_rename_slash_src_works="guessing yes" ;;
+                          # If we don't know, assume the worst.
+         *)               gl_cv_func_rename_slash_src_works="guessing no" ;;
        esac
       ])
     rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
@@ -169,12 +173,14 @@ AC_DEFUN([gl_FUNC_RENAME],
            [gl_cv_func_rename_link_works=no],
            dnl When crosscompiling, assume rename is broken.
            [case "$host_os" in
-                      # Guess yes on glibc systems.
-              *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
-                      # Guess yes on native Windows.
-              mingw*) gl_cv_func_rename_link_works="guessing yes" ;;
-                      # If we don't know, assume the worst.
-              *)      gl_cv_func_rename_link_works="guessing no" ;;
+                               # Guess yes on Linux systems.
+              linux-* | linux) 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.
+              mingw*)          gl_cv_func_rename_link_works="guessing yes" ;;
+                               # If we don't know, assume the worst.
+              *)               gl_cv_func_rename_link_works="guessing no" ;;
             esac
            ])
        else
@@ -220,12 +226,14 @@ 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 glibc systems.
-         *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
-                 # Guess no on native Windows.
-         mingw*) gl_cv_func_rename_dest_works="guessing no" ;;
-                 # If we don't know, assume the worst.
-         *)      gl_cv_func_rename_dest_works="guessing no" ;;
+                          # Guess yes on Linux systems.
+         linux-* | linux) 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.
+         mingw*)          gl_cv_func_rename_dest_works="guessing no" ;;
+                          # If we don't know, assume the worst.
+         *)               gl_cv_func_rename_dest_works="guessing no" ;;
        esac
       ])
     rm -rf conftest.f conftest.d1 conftest.d2
index 36c45146f654c422c1afe74f328dc0ea19f23239..a24d845e37b970f578efcad4839e006037b623cc 100644 (file)
@@ -1,4 +1,4 @@
-# rmdir.m4 serial 15
+# rmdir.m4 serial 16
 dnl Copyright (C) 2002, 2005, 2009-2018 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -33,12 +33,14 @@ AC_DEFUN([gl_FUNC_RMDIR],
     ]])],
        [gl_cv_func_rmdir_works=yes], [gl_cv_func_rmdir_works=no],
        [case "$host_os" in
-                         # Guess yes on glibc systems.
-          *-gnu* | gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
-                         # Guess no on native Windows.
-          mingw*)        gl_cv_func_rmdir_works="guessing no" ;;
-                         # If we don't know, assume the worst.
-          *)             gl_cv_func_rmdir_works="guessing no" ;;
+                           # Guess yes on Linux systems.
+          linux-* | linux) gl_cv_func_rmdir_works="guessing yes" ;;
+                           # Guess yes on glibc systems.
+          *-gnu* | gnu*)   gl_cv_func_rmdir_works="guessing yes" ;;
+                           # Guess no on native Windows.
+          mingw*)          gl_cv_func_rmdir_works="guessing no" ;;
+                           # If we don't know, assume the worst.
+          *)               gl_cv_func_rmdir_works="guessing no" ;;
         esac
        ])
      rm -rf conftest.dir conftest.file])
index db580378cd7d4e266eecbf0100c01b7af90fc679..098af8ee7a755128adad72c258abd58ab7c597b9 100644 (file)
@@ -1,4 +1,4 @@
-# select.m4 serial 9
+# select.m4 serial 10
 dnl Copyright (C) 2009-2018 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -74,10 +74,12 @@ changequote([,])dnl
       [gl_cv_func_select_detects_ebadf=no],
           [
            case "$host_os" in
-                           # Guess yes on glibc systems.
-            *-gnu* | gnu*) gl_cv_func_select_detects_ebadf="guessing yes" ;;
-                           # If we don't know, assume the worst.
-            *)             gl_cv_func_select_detects_ebadf="guessing no" ;;
+                             # Guess yes on Linux systems.
+            linux-* | linux) gl_cv_func_select_detects_ebadf="guessing yes" ;;
+                             # Guess yes on glibc systems.
+            *-gnu* | gnu*)   gl_cv_func_select_detects_ebadf="guessing yes" ;;
+                             # If we don't know, assume the worst.
+            *)               gl_cv_func_select_detects_ebadf="guessing no" ;;
            esac
           ])
       ])
index d762cba24ee0a1a62ff26c3ba1ad23e0de8464a4..e8ec3b2b966902813ca9a6349c532eb937279596 100644 (file)
@@ -1,4 +1,4 @@
-# serial 14
+# serial 15
 
 # Copyright (C) 2009-2018 Free Software Foundation, Inc.
 #
@@ -43,10 +43,12 @@ AC_DEFUN([gl_FUNC_STAT],
              ]])],
            [gl_cv_func_stat_file_slash=yes], [gl_cv_func_stat_file_slash=no],
            [case "$host_os" in
-                             # Guess yes on glibc systems.
-              *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
-                             # If we don't know, assume the worst.
-              *)             gl_cv_func_stat_file_slash="guessing no" ;;
+                               # Guess yes on Linux systems.
+              linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
+                               # Guess yes on glibc systems.
+              *-gnu* | gnu*)   gl_cv_func_stat_file_slash="guessing yes" ;;
+                               # If we don't know, assume the worst.
+              *)               gl_cv_func_stat_file_slash="guessing no" ;;
             esac
            ])
          rm -f conftest.tmp conftest.lnk])
index a452f7cc3a89d67e5d899be008b37e1375696c1c..afaa941744e7ebdb2c83150eae3e7239e8f0ea52 100644 (file)
@@ -1,4 +1,4 @@
-# serial 7
+# serial 8
 # See if we need to provide symlink replacement.
 
 dnl Copyright (C) 2009-2018 Free Software Foundation, Inc.
@@ -36,10 +36,12 @@ AC_DEFUN([gl_FUNC_SYMLINK],
            ]])],
          [gl_cv_func_symlink_works=yes], [gl_cv_func_symlink_works=no],
          [case "$host_os" in
-                           # Guess yes on glibc systems.
-            *-gnu* | gnu*) gl_cv_func_symlink_works="guessing yes" ;;
-                           # If we don't know, assume the worst.
-            *)             gl_cv_func_symlink_works="guessing no" ;;
+                             # Guess yes on Linux systems.
+            linux-* | linux) gl_cv_func_symlink_works="guessing yes" ;;
+                             # Guess yes on glibc systems.
+            *-gnu* | gnu*)   gl_cv_func_symlink_works="guessing yes" ;;
+                             # If we don't know, assume the worst.
+            *)               gl_cv_func_symlink_works="guessing no" ;;
           esac
          ])
       rm -f conftest.f conftest.link conftest.lnk2])
index 0713c18e8cbb7cfe736b8fc24db4878690687f20..d69228af70f63f0befa4b339fd376bdeb0adc8b4 100644 (file)
@@ -1,4 +1,4 @@
-# serial 8
+# serial 9
 # See if we need to provide symlinkat replacement.
 
 dnl Copyright (C) 2009-2018 Free Software Foundation, Inc.
@@ -37,10 +37,12 @@ AC_DEFUN([gl_FUNC_SYMLINKAT],
          [gl_cv_func_symlinkat_works=yes],
          [gl_cv_func_symlinkat_works=no],
          [case "$host_os" in
-                           # Guess yes on glibc systems.
-            *-gnu* | gnu*) gl_cv_func_symlinkat_works="guessing yes" ;;
-                           # If we don't know, assume the worst.
-            *)             gl_cv_func_symlinkat_works="guessing no" ;;
+                             # Guess yes on Linux systems.
+            linux-* | linux) gl_cv_func_symlinkat_works="guessing yes" ;;
+                             # Guess yes on glibc systems.
+            *-gnu* | gnu*)   gl_cv_func_symlinkat_works="guessing yes" ;;
+                             # If we don't know, assume the worst.
+            *)               gl_cv_func_symlinkat_works="guessing no" ;;
           esac
          ])
       rm -f conftest.f conftest.link conftest.lnk2])
index 73172e84d2d19a6dba9bb6c63a9cc3d69e6f1d88..6faaa5cd2e95100d36ba6b6edbc8bba747618b1b 100644 (file)
@@ -1,4 +1,4 @@
-# unlink.m4 serial 12
+# unlink.m4 serial 13
 dnl Copyright (C) 2009-2018 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -43,12 +43,14 @@ AC_DEFUN([gl_FUNC_UNLINK],
       [gl_cv_func_unlink_honors_slashes=yes],
       [gl_cv_func_unlink_honors_slashes=no],
       [case "$host_os" in
-                 # Guess yes on glibc systems.
-         *-gnu*) gl_cv_func_unlink_honors_slashes="guessing yes" ;;
-                 # Guess no on native Windows.
-         mingw*) gl_cv_func_unlink_honors_slashes="guessing no" ;;
-                 # If we don't know, assume the worst.
-         *)      gl_cv_func_unlink_honors_slashes="guessing no" ;;
+                          # Guess yes on Linux systems.
+         linux-* | linux) gl_cv_func_unlink_honors_slashes="guessing yes" ;;
+                          # Guess yes on glibc systems.
+         *-gnu*)          gl_cv_func_unlink_honors_slashes="guessing yes" ;;
+                          # Guess no on native Windows.
+         mingw*)          gl_cv_func_unlink_honors_slashes="guessing no" ;;
+                          # If we don't know, assume the worst.
+         *)               gl_cv_func_unlink_honors_slashes="guessing no" ;;
        esac
       ])
      rm -f conftest.file conftest.lnk])
index 16798a0ad1e0df7490f9ceb9f3a2e07da1fe3a57..9a4db07a3dae4a3526c66f881eaed675f0f1acf2 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 8
+dnl serial 9
 
 AC_DEFUN([gl_UTIMENS],
 [
@@ -31,10 +31,12 @@ AC_DEFUN([gl_UTIMENS],
         [gl_cv_func_futimesat_works=yes],
         [gl_cv_func_futimesat_works=no],
         [case "$host_os" in
-                   # Guess yes on glibc systems.
-           *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
-                   # If we don't know, assume the worst.
-           *)      gl_cv_func_futimesat_works="guessing no" ;;
+                            # 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, assume the worst.
+           *)               gl_cv_func_futimesat_works="guessing no" ;;
          esac
         ])
       rm -f conftest.file])