Source: aobook Version: 1.0.3-3 Tags: patch upstream User: debian-cr...@lists.debian.org Usertags: ftcbfs
aobook fails to cross build from source, because configure.ac abuses AC_CHECK_FILE to search for files (includes in this case) expected on the build system while it is meant to search the host system. Please use a simple test -f for build system checks. I'm attaching a patch for your convenience. Helmut
--- aobook-1.0.3.orig/configure.ac +++ aobook-1.0.3/configure.ac @@ -28,7 +28,7 @@ [AC_DEFINE([HAVE_PTHREAD_H], [1], [pthread.h])], AC_MSG_ERROR(pthread.h not found)) -AC_CHECK_FILE("$freetype_dir/ft2build.h",,AC_MSG_ERROR([(freetype) ft2build.h not found])) +AS_IF([test -f "$freetype_dir/ft2build.h"],,AC_MSG_ERROR([(freetype) ft2build.h not found])) AC_CHECK_HEADER([fontconfig/fontconfig.h],,AC_MSG_ERROR(fontconfig.h not found)) AC_CHECK_HEADER([zlib.h],,AC_MSG_ERROR(zlib.h not found)) AC_CHECK_HEADER([png.h],,AC_MSG_ERROR(png.h not found))