From: Bruno Haible Date: Mon, 30 Nov 2020 07:35:59 +0000 (+0100) Subject: havelib: Fix for non-ELF platforms (regression 2019-11-17). X-Git-Tag: v1.0~3450 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=e9787734caab28333bd9849826edb79694d22d08;p=gnulib.git havelib: Fix for non-ELF platforms (regression 2019-11-17). Reported by comex in . * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On non-ELF platforms, don't expect an ELF header. --- diff --git a/ChangeLog b/ChangeLog index f350418137..0ad75a8008 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2020-11-30 Bruno Haible + + havelib: Fix for non-ELF platforms (regression 2019-11-17). + Reported by comex in + . + * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On non-ELF platforms, + don't expect an ELF header. + 2020-11-29 Akim Demaille bitset: use integer_length in table implementation diff --git a/m4/lib-prefix.m4 b/m4/lib-prefix.m4 index c8a0b464c2..28bb3d366a 100644 --- a/m4/lib-prefix.m4 +++ b/m4/lib-prefix.m4 @@ -1,4 +1,4 @@ -# lib-prefix.m4 serial 17 +# lib-prefix.m4 serial 18 dnl Copyright (C) 2001-2005, 2008-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -180,8 +180,8 @@ AC_DEFUN([AC_LIB_PREPARE_MULTILIB], ], [gl_cv_elf=yes], [gl_cv_elf=no]) - ]) - if test $gl_cv_elf; then + ]) + if test $gl_cv_elf = yes; then # Extract the ELF class of a file (5th byte) in decimal. # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header if od -A x < /dev/null >/dev/null 2>/dev/null; then