From: Steffen Sledz Date: Wed, 27 Nov 2013 18:51:49 +0000 (+0000) Subject: gdb: fix cygwin check in configure script X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=92a021debf2a247a03477b3450fd8f889a651ab2;p=binutils-gdb.git gdb: fix cygwin check in configure script Avoid false positives if the search pattern "lose" is found in path descriptions in comments generated by the preprocessor. See . gdb/ 2013-11-27 Steffen Sledz * configure.ac: Tighten Cygwin detection check. * configure: Rebuild. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 00369e98f20..5921de342cd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-11-27 Steffen Sledz + + * configure: Rebuild. + * configure.ac: fix cygwin detection check + 2013-11-27 Pedro Alves * frame-unwind.c (frame_unwind_got_optimized): Use the type of the diff --git a/gdb/configure b/gdb/configure index 5514b2f9715..b38e1833068 100755 --- a/gdb/configure +++ b/gdb/configure @@ -12446,7 +12446,7 @@ lose #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "lose" >/dev/null 2>&1; then : + $EGREP "^lose$" >/dev/null 2>&1; then : gdb_cv_os_cygwin=yes else gdb_cv_os_cygwin=no diff --git a/gdb/configure.ac b/gdb/configure.ac index 9b73887b5e4..294729305ff 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1877,7 +1877,7 @@ AC_SUBST(WERROR_CFLAGS) # In the Cygwin environment, we need some additional flags. AC_CACHE_CHECK([for cygwin], gdb_cv_os_cygwin, -[AC_EGREP_CPP(lose, [ +[AC_EGREP_CPP(^lose$, [ #if defined (__CYGWIN__) || defined (__CYGWIN32__) lose #endif],[gdb_cv_os_cygwin=yes],[gdb_cv_os_cygwin=no])])