On Sun, Nov 29, 2020 at 9:43 PM comex <com...@gmail.com> wrote:
>
> From m4/lib-prefix.m4:
>
> --
>   AC_CACHE_CHECK([for ELF binary format], [gl_cv_elf],
>     [AC_EGREP_CPP([Extensible Linking Format],
>        [#ifdef __ELF__
>         Extensible Linking Format
>         #endif
>        ],
>        [gl_cv_elf=yes],
>        [gl_cv_elf=no])
>      ])
>   if test $gl_cv_elf; then
> —
>
> I believe this does not work as intended.  'test $gl_cv_elf' is equivalent to 
> 'test -n $gl_cv_elf', i.e. it tests whether the variable is nonempty.  Both 
> ‘yes’ and ‘no’ are nonempty, so the ‘if’ will always be taken.

Hmm, also ELF stands for "Executable and Linking Format", not
"Extensible Linking Format".

Reply via email to