Source: memtailor
Version: 1.0~git20160311-2
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs
memtailor fails to cross build from source, because it abuses
AC_CHECK_FILE. The macro is meant to check for files on the host system,
but memtailor uses it to check for files expected on the build system.
Please use a simple test -e for the latter. Please consider applying the
attached patch.
Helmut
--- memtailor-1.0~git20160311.orig/configure.ac
+++ memtailor-1.0~git20160311/configure.ac
@@ -32,7 +32,7 @@
AS_IF([test "x$with_gtest" == "x"], [with_gtest="download"])
AS_IF([test "x$with_gtest" == "xdownload"],
- [with_gtest="yes"; AC_CHECK_FILE([$GTEST_PATH/src/gtest-all.cc], [], [
+ [with_gtest="yes"; AS_IF([test -e "$GTEST_PATH/src/gtest-all.cc"], [], [
echo "downloading of gtest disabled" >&2; exit 1
mkdir -p "$GTEST_PATH";
(
@@ -52,7 +52,7 @@
fi
])],
[test "x$with_gtest" == "xyes"], [
- AC_CHECK_FILE([$GTEST_PATH/src/gtest-all.cc], [], [
+ AS_IF([test -e "$GTEST_PATH/src/gtest-all.cc"], [], [
AC_MSG_ERROR([could not find gtest source at path $GTEST_PATH.])
])
],
--
debian-science-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers