From: Bob Friesenhahn Date: Fri, 21 May 2004 22:27:07 +0000 (+0000) Subject: * ltmain.sh (check_executable): The WIN32 API and MinGW do not support X-Git-Tag: release-1-9b~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c23a06daace5920e34b87129065001c461f65c6;p=thirdparty%2Flibtool.git * ltmain.sh (check_executable): The WIN32 API and MinGW do not support S_IXOTH and S_IXGRP so use of these modes should be conditional. --- diff --git a/ChangeLog b/ChangeLog index dd92409f0..9c3cc8269 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-05-21 Bob Friesenhahn + + * ltmain.sh (check_executable): The WIN32 API and MinGW do not support + S_IXOTH and S_IXGRP so use of these modes should be conditional. + 2004-05-21 Gary V. Vaughan * tests/tagtrace.test: Forgot to add this file to the repository diff --git a/ltmain.in b/ltmain.in index 09d89af52..93611e56a 100644 --- a/ltmain.in +++ b/ltmain.in @@ -4898,9 +4898,16 @@ check_executable(const char * path) return 0; if ((stat (path, &st) >= 0) && - (((st.st_mode & S_IXOTH) == S_IXOTH) || + ( + /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */ +#if defined (S_IXOTH) + ((st.st_mode & S_IXOTH) == S_IXOTH) || +#endif +#if defined (S_IXGRP) ((st.st_mode & S_IXGRP) == S_IXGRP) || - ((st.st_mode & S_IXUSR) == S_IXUSR))) +#endif + ((st.st_mode & S_IXUSR) == S_IXUSR)) + ) return 1; else return 0;