gdb: fix cygwin check in configure script
authorSteffen Sledz <sledz@dresearch-fe.de>
Wed, 27 Nov 2013 18:51:49 +0000 (18:51 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 27 Nov 2013 18:51:49 +0000 (18:51 +0000)
Avoid false positives if the search pattern "lose" is found in path
descriptions in comments generated by the preprocessor.

See <https://sourceware.org/bugzilla/show_bug.cgi?id=16152>.

gdb/
2013-11-27  Steffen Sledz  <sledz@dresearch-fe.de>

* configure.ac: Tighten Cygwin detection check.
* configure: Rebuild.

gdb/ChangeLog
gdb/configure
gdb/configure.ac

index 00369e98f20b0dca5411b3dcc2da1fda02869e0d..5921de342cd52730720138bb33b8c53435109e04 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-27  Steffen Sledz <sledz@dresearch-fe.de>
+
+       * configure: Rebuild.
+       * configure.ac: fix cygwin detection check
+
 2013-11-27  Pedro Alves  <palves@redhat.com>
 
        * frame-unwind.c (frame_unwind_got_optimized): Use the type of the
index 5514b2f9715d1c512042bdb5a061f98fe3723dd7..b38e18330680f67626dbb4eca83ab5e215238dbd 100755 (executable)
@@ -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
index 9b73887b5e47b41bec71d5dd8acc8e858e3acc66..294729305ff8e0623dbb3f9d96c5dab70d18110e 100644 (file)
@@ -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])])
This page took 0.042314 seconds and 4 git commands to generate.