Source: librsl
Version: 1.43-1.2
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs

librsl fails to cross build from source, because it uses AC_CHECK_FILE
to search for static libraries. The macro is meant to check for files on
the host system, but librsl tries to find build system files. Please use
a simple test -f here. The attached patch fixes AC_CHECK_FILE usage. It
continues to fail to cross build due to #893023.

Helmut
--- librsl-1.43.orig/configure.in
+++ librsl-1.43/configure.in
@@ -66,10 +66,10 @@
 L=""
 
 if test "$L" = ""; then # Check for the file directly.
-	AC_CHECK_FILE($prefix/lib/libetor.a, L="-letor -lrsl -letor"; AC_DEFINE(HAVE_LIBETOR))
+	AS_IF([test -f "$prefix/lib/libetor.a"], L="-letor -lrsl -letor"; AC_DEFINE(HAVE_LIBETOR))
 fi
 if test "$L" = ""; then # Check for the file directly.
-	AC_CHECK_FILE(/usr/local/lib/libetor.a, L="-letor -lrsl -letor"; AC_DEFINE(HAVE_LIBETOR))
+	AS_IF([test -f "/usr/local/lib/libetor.a"], L="-letor -lrsl -letor"; AC_DEFINE(HAVE_LIBETOR))
 fi
 
 if test "$L" != ""; then # libetor exists.
-- 
debian-science-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to