Re: autoconf-2.61's AC_LINK_IFELSE with MinGW cross-compilers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Paul Eggert wrote:

I want it to evaluate as false on platforms where 'test -x' doesn't
work as Posix-conforming scripts would expect.

Can we assume a chmod is present ? So on Linux:

$ set -x; touch a.out; chmod +x a.out; test -x; echo $?
+ touch a.out
+ chmod +x a.out
+ test -x
+ echo 0
0

and on MSYS:

$ set -x; touch a.out; chmod +x a.out; test -x a.out; echo $?
+ set -x
+ touch a.out
+ chmod +x a.out
+ test -x a.out
+ echo 1
1

Or is something as simple as this, first on Linux:

$ set -x; echo "test" > a.exe; test -x a.exe; echo $?
+ echo test
+ test -x a.exe
+ echo 1
1

and on MSYS:

$ set -x; echo "test" > a.exe; test -x a.exe; echo $?
+ set -x
+ echo test
+ test -x a.exe
+ echo 0
0

I understand that MSYS
has a problem, but I don't know that Cygwin does.  Does Cygwin have
the problem?  If not, then the test is incorrect.

It may have the problem if the file-system is FAT32 rather than NTFS. An RTEMS user reported Cygwin worked once he changed from FAT32 to NTFS.

Regards
Chris


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux