]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.sh (check_executable): The WIN32 API and MinGW do not support
authorBob Friesenhahn <bfriesen@simple.dallas.tx.us>
Fri, 21 May 2004 22:27:07 +0000 (22:27 +0000)
committerBob Friesenhahn <bfriesen@simple.dallas.tx.us>
Fri, 21 May 2004 22:27:07 +0000 (22:27 +0000)
S_IXOTH and S_IXGRP so use of these modes should be conditional.

ChangeLog
ltmain.in

index dd92409f05f700c131045c5bc337062c54594328..9c3cc82698c03a8665a07fb9e5f34382fd9eeeeb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-05-21  Bob Friesenhahn  <bfriesen@simple.dallas.tx.us>
+
+       * 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  <gary@gnu.org>
 
        * tests/tagtrace.test: Forgot to add this file to the repository
index 09d89af5271e0d85cddcd39eab7e1e3e5a69acd7..93611e56a0f52d86668fd967bfed1b089a1ba748 100644 (file)
--- 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;