]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - configure
ncurses 6.4 - patch 20230311
[ncurses.git] / configure
index 6664a8aac17306a790b906a2cf28558dccca3606..412e5af2a21cbda6d7927691ed49bf54b816edcd 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 1.756 .
+# From configure.in Revision: 1.757 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by Autoconf 2.52.20230114.
 #
@@ -2317,7 +2317,7 @@ GCC_VERSION=none
 if test "$GCC" = yes ; then
        echo "$as_me:2318: checking version of $CC" >&5
 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
-       GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
+       GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^[^(]*([^)][^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
        test -z "$GCC_VERSION" && GCC_VERSION=unknown
        echo "$as_me:2322: result: $GCC_VERSION" >&5
 echo "${ECHO_T}$GCC_VERSION" >&6
@@ -3623,7 +3623,7 @@ GXX_VERSION=none
 if test "$GXX" = yes; then
        echo "$as_me:3624: checking version of ${CXX:-g++}" >&5
 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
-       GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
+       GXX_VERSION="`${CXX:-g++} --version 2>/dev/null | sed -e '2,$d' -e 's/^[^(]*([^)][^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
        if test -z "$GXX_VERSION"
        then
                GXX_VERSION=unknown
@@ -10418,7 +10418,7 @@ case "$host_os" in
        cf_xopen_source="-D_SGI_SOURCE"
        cf_XOPEN_SOURCE=
        ;;
-(linux*gnu|linux*gnuabi64|linux*gnuabin32|linux*gnueabi|linux*gnueabihf|linux*gnux32|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin|msys)
+(linux*gnu|linux*gnuabi64|linux*gnuabin32|linux*gnueabi|linux*gnueabihf|linux*gnux32|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin|msys|mingw*)
 
 cf_gnu_xopen_source=$cf_XOPEN_SOURCE