On NetBSD/sparc64, there is a 'sparc' subdirectory that contains 32-bit
libraries. The 'havelib' module should use this info.


2024-02-10  Bruno Haible  <br...@clisp.org>

        havelib: Add support for NetBSD/sparc64.
        * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On NetBSD/sparc64 in
        32-bit mode, search for libraries in /usr/lib/sparc.

diff --git a/m4/lib-prefix.m4 b/m4/lib-prefix.m4
index 0c6f96ca68..f327c6ef03 100644
--- a/m4/lib-prefix.m4
+++ b/m4/lib-prefix.m4
@@ -1,4 +1,4 @@
-# lib-prefix.m4 serial 21
+# lib-prefix.m4 serial 22
 dnl Copyright (C) 2001-2005, 2008-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -256,6 +256,15 @@ AC_DEFUN([AC_LIB_PREPARE_MULTILIB]
            esac
          fi
          ;;
+       netbsd*)
+         dnl On NetBSD/sparc64, there is a 'sparc' subdirectory that contains
+         dnl 32-bit libraries.
+         if test $HOST_CPU_C_ABI_32BIT != no; then
+           case "$host_cpu" in
+             sparc*) acl_libdirstem2=lib/sparc ;;
+           esac
+         fi
+         ;;
        *)
          dnl If $CC generates code for a 32-bit ABI, the libraries are
          dnl surely under $prefix/lib or $prefix/lib32, not $prefix/lib64.




Reply via email to