X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=m4%2Fasm-underscore.m4;fp=m4%2Fasm-underscore.m4;h=547dd62d26a4e158a4637435f5719612f7224a4e;hb=20fcfc81ece044b8b0a6768ec6cf47be4e22a2e6;hp=b1159d57b5cf76c1c6ead0400a7791d854cbf7b6;hpb=d57728a6ca2413a7c564d8b7bb13d9e5a5a180f3;p=debian%2Fgzip diff --git a/m4/asm-underscore.m4 b/m4/asm-underscore.m4 index b1159d5..547dd62 100644 --- a/m4/asm-underscore.m4 +++ b/m4/asm-underscore.m4 @@ -1,5 +1,5 @@ -# asm-underscore.m4 serial 2 -dnl Copyright (C) 2010-2013 Free Software Foundation, Inc. +# asm-underscore.m4 serial 3 +dnl Copyright (C) 2010-2016 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -29,7 +29,7 @@ int foo(void) { return 0; } EOF # Look for the assembly language name in the .s file. AC_TRY_COMMAND(${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c) >/dev/null 2>&1 - if grep _foo conftest.$gl_asmext >/dev/null ; then + if LC_ALL=C grep -E '(^|[^a-zA-Z0-9_])_foo([^a-zA-Z0-9_]|$)' conftest.$gl_asmext >/dev/null; then gl_cv_prog_as_underscore=yes else gl_cv_prog_as_underscore=no