]> Savannah Git Hosting - gnulib.git/commitdiff
config: add msys support
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 9 Nov 2019 20:02:24 +0000 (12:02 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 9 Nov 2019 20:03:38 +0000 (12:03 -0800)
Requested by Arnold Robbins in:
https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
He also requested a change to config.guess, which I’ll forward
upstream.
* build-aux/ar-lib (func_file_conv):
* build-aux/compile (func_file_conv):
* build-aux/config.rpath (wl, with_gnu_ld)
(hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
Treat msys like cygwin.

ChangeLog
build-aux/ar-lib
build-aux/compile
build-aux/config.rpath

index 1400624d419989f3a6fe10288291781a4f65a3e1..b97643ffb3c25cf7d6877b7efa8c92cb67f6b3a1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
+
+       config: add msys support
+       Requested by Arnold Robbins in:
+       https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
+       He also requested a change to config.guess, which I’ll forward
+       upstream.
+       * build-aux/ar-lib (func_file_conv):
+       * build-aux/compile (func_file_conv):
+       * build-aux/config.rpath (wl, with_gnu_ld)
+       (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
+       Treat msys like cygwin.
+
 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
 
        regex: now back in sync with glibc
index f64465e4f4f20dd328ecf2a5d42991707fc0ef3f..be8806a2fe59decc1d0c3b6110977c746054827b 100755 (executable)
@@ -53,7 +53,7 @@ func_file_conv ()
          MINGW*)
            file_conv=mingw
            ;;
-         CYGWIN*)
+         CYGWIN* | MSYS*)
            file_conv=cygwin
            ;;
          *)
@@ -65,7 +65,7 @@ func_file_conv ()
        mingw)
          file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
          ;;
-       cygwin)
+       cygwin | msys)
          file=`cygpath -m "$file" || echo "$file"`
          ;;
        wine)
index d23d320dd1adeb5aa685395d7a20a993349db6d9..be68b4b287bae5de6a2748762d9d1f9ac199a4a7 100755 (executable)
@@ -53,7 +53,7 @@ func_file_conv ()
          MINGW*)
            file_conv=mingw
            ;;
-         CYGWIN*)
+         CYGWIN* | MSYS*)
            file_conv=cygwin
            ;;
          *)
@@ -67,7 +67,7 @@ func_file_conv ()
        mingw/*)
          file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
          ;;
-       cygwin/*)
+       cygwin/* | msys/*)
          file=`cygpath -m "$file" || echo "$file"`
          ;;
        wine/*)
index be202c1a9e79567b62ac71c96ee9f2bec8f40324..1644dbd6196a154d8fde180379f4e4c162ae1a61 100755 (executable)
@@ -57,7 +57,7 @@ else
     aix*)
       wl='-Wl,'
       ;;
-    mingw* | cygwin* | pw32* | os2* | cegcc*)
+    mingw* | cygwin* | msys* | pw32* | os2* | cegcc*)
       ;;
     hpux9* | hpux10* | hpux11*)
       wl='-Wl,'
@@ -149,7 +149,7 @@ hardcode_direct=no
 hardcode_minus_L=no
 
 case "$host_os" in
-  cygwin* | mingw* | pw32* | cegcc*)
+  cygwin* | msys* | mingw* | pw32* | cegcc*)
     # FIXME: the MSVC++ port hasn't been tested in a loooong time
     # When not using gcc, we currently assume that we are using
     # Microsoft Visual C++.
@@ -198,7 +198,7 @@ if test "$with_gnu_ld" = yes; then
         ld_shlibs=no
       fi
       ;;
-    cygwin* | mingw* | pw32* | cegcc*)
+    cygwin* | msys* | mingw* | pw32* | cegcc*)
       # hardcode_libdir_flag_spec is actually meaningless, as there is
       # no search path for DLLs.
       hardcode_libdir_flag_spec='-L$libdir'
@@ -348,7 +348,7 @@ else
       ;;
     bsdi[45]*)
       ;;
-    cygwin* | mingw* | pw32* | cegcc*)
+    cygwin* | msys* | mingw* | pw32* | cegcc*)
       # When not using gcc, we currently assume that we are using
       # Microsoft Visual C++.
       # hardcode_libdir_flag_spec is actually meaningless, as there is
@@ -533,7 +533,7 @@ case "$host_os" in
   bsdi[45]*)
     library_names_spec='$libname$shrext'
     ;;
-  cygwin* | mingw* | pw32* | cegcc*)
+  cygwin* | msys* | mingw* | pw32* | cegcc*)
     shrext=.dll
     library_names_spec='$libname.dll.a $libname.lib'
     ;;