This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix to egrep for yes$ to avoid matching it on include paths


Benjamin Esquivel <benjamin.esquivel@linux.intel.com> writes:

> diff --git a/sysdeps/aarch64/configure.ac b/sysdeps/aarch64/configure.ac
> index 7851dd4..6002697 100644
> --- a/sysdeps/aarch64/configure.ac
> +++ b/sysdeps/aarch64/configure.ac
> @@ -10,7 +10,7 @@ GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
>  # the dynamic linker via %ifdef.
>  AC_CACHE_CHECK([for big endian],
>    [libc_cv_aarch64_be],
> -  [AC_EGREP_CPP(yes,[#ifdef __AARCH64EB__
> +  [AC_EGREP_CPP(yes$$,[#ifdef __AARCH64EB__
>                        yes
>                       #endif

It would be more robust to use AC_PREPROC_IFELSE and #error.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]