Hi, Rudi Heitbaum wrote: > checking for strcasecmp... yes > checking whether strcasecmp works... configure: error: in > '/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/build/diffutils-3.12/.x86_64-libreelec-linux-gnu': > configure: error: cannot run test program while cross compiling
Thanks for the report. This patch fixes it: 2025-04-10 Bruno Haible <br...@clisp.org> strcasecmp: Support cross-compilation. Reported by Rudi Heitbaum <r...@heitbaum.com> in <https://lists.gnu.org/archive/html/bug-gnulib/2025-04/msg00055.html>. * m4/strcasecmp.m4 (gl_STRCASECMP_WORKS): Use a no-op command as third argument of AC_RUN_IFELSE. diff --git a/m4/strcasecmp.m4 b/m4/strcasecmp.m4 index e40ee5d14a..eb4345d947 100644 --- a/m4/strcasecmp.m4 +++ b/m4/strcasecmp.m4 @@ -1,5 +1,5 @@ # strcasecmp.m4 -# serial 2 +# serial 3 dnl Copyright (C) 2002-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -57,7 +57,7 @@ AC_DEFUN([gl_STRCASECMP_WORKS] gl_cv_func_strcasecmp_works=no fi ], - []) + [:]) ]) ])