+2020-12-24 Bruno Haible <bruno@clisp.org>
+
+ sh-filename: Add support for native Windows.
+ * m4/sh-filename.m4 (gl_SH_FILENAME): Treat native Windows like Cygwin.
+
2020-12-24 Paul Eggert <eggert@cs.ucla.edu>
careadlinkat: improve warning line number
-# sh-filename.m4 serial 2
+# sh-filename.m4 serial 3
dnl Copyright (C) 2018-2020 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
[
AH_VERBATIM([SH_FILENAME],
[/* File name of the Bourne shell. */
-#if defined __CYGWIN__ || defined __ANDROID__
+#if (defined _WIN32 && !defined __CYGWIN__) || defined __CYGWIN__ || defined __ANDROID__
/* Omit the directory part because
+ - For native Windows programs in a Cygwin environment, the Cygwin mounts
+ are not visible.
- For 32-bit Cygwin programs in a 64-bit Cygwin environment, the Cygwin
mounts are not visible.
- On Android, /bin/sh does not exist. It's /system/bin/sh instead. */