[PATCH] similar treatment for CYGWIN and MSYS2

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

 



Attached for your consideration a patch such that MSYS2 and CYGWIN are
treated the same.

Thanks,
J.

diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4
index 59a8859b..e53220c7 100644
--- a/lib/autoconf/fortran.m4
+++ b/lib/autoconf/fortran.m4
@@ -666,7 +666,7 @@ while test $[@%:@] != 1; do
 	  ;;
 	-lkernel32)
 	  case $host_os in
-	  *cygwin*) ;;
+	  *cygwin* | *msys* ) ;;
 	  *) ac_cv_[]_AC_LANG_ABBREV[]_libs="$ac_cv_[]_AC_LANG_ABBREV[]_libs
$ac_arg"
 	    ;;
 	  esac
diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4
index 4598b408..0f29ea7e 100644
--- a/lib/autoconf/functions.m4
+++ b/lib/autoconf/functions.m4
@@ -961,7 +961,7 @@ AC_CACHE_CHECK([for GNU libc compatible malloc],
ac_cv_func_malloc_0_nonnull,
 	       [case "$host_os" in # ((
 		  # Guess yes on platforms where we know the result.
 		  *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
-		  | hpux* | solaris* | cygwin* | mingw*)
+		  | hpux* | solaris* | cygwin* | mingw* | msys*)
 		    ac_cv_func_malloc_0_nonnull=yes ;;
 		  # If we don't know, assume the worst.
 		  *) ac_cv_func_malloc_0_nonnull=no ;;
@@ -1467,7 +1467,7 @@ AC_CACHE_CHECK([for GNU libc compatible realloc],
ac_cv_func_realloc_0_nonnull,
 	       [case "$host_os" in # ((
 		  # Guess yes on platforms where we know the result.
 		  *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
-		  | hpux* | solaris* | cygwin* | mingw*)
+		  | hpux* | solaris* | cygwin* | mingw* | msys*)
 		    ac_cv_func_realloc_0_nonnull=yes ;;
 		  # If we don't know, assume the worst.
 		  *) ac_cv_func_realloc_0_nonnull=no ;;
diff --git a/tests/local.at b/tests/local.at
index b9f866f7..cb215625 100644
--- a/tests/local.at
+++ b/tests/local.at
@@ -366,7 +366,7 @@ if test -f state-env.before && test -f state-env.after;
then
       [OPENMP_CFLAGS],
       [LIBS|LIB@&t@OBJS|LTLIBOBJS|LDFLAGS],
       [INSTALL(_(DATA|PROGRAM|SCRIPT))?],
-      [CYGWIN|ISC|MINGW32|MINIX|EMXOS2|XENIX|EXEEXT|OBJEXT],
+      [CYGWIN|ISC|MSYS|MINGW32|MINIX|EMXOS2|XENIX|EXEEXT|OBJEXT],
       [X_(CFLAGS|(EXTRA_|PRE_)?LIBS)|x_(includes|libraries)|(have|no)_x],
       [(host|build|target)(_(alias|cpu|vendor|os))?],
       [cross_compiling|U],

Attachment: 0001-treat-msys-2-and-cygwin-the-same.patch
Description: Binary data


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

  Powered by Linux