From: Bruno Haible Date: Thu, 24 Dec 2020 21:13:49 +0000 (+0100) Subject: sh-filename: Add support for native Windows. X-Git-Tag: v1.0~3317 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=c9ed8d9a58bae5a90fc1410232354cf8e27e2e3c;p=gnulib.git sh-filename: Add support for native Windows. * m4/sh-filename.m4 (gl_SH_FILENAME): Treat native Windows like Cygwin. --- diff --git a/ChangeLog b/ChangeLog index 5b05bb3109..d93aa474aa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2020-12-24 Bruno Haible + + sh-filename: Add support for native Windows. + * m4/sh-filename.m4 (gl_SH_FILENAME): Treat native Windows like Cygwin. + 2020-12-24 Paul Eggert careadlinkat: improve warning line number diff --git a/m4/sh-filename.m4 b/m4/sh-filename.m4 index f7b31548e0..63bbd6737f 100644 --- a/m4/sh-filename.m4 +++ b/m4/sh-filename.m4 @@ -1,4 +1,4 @@ -# 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, @@ -10,8 +10,10 @@ AC_DEFUN([gl_SH_FILENAME], [ 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. */