[libbluray-devel] Fix configure with --enable-udf when cross compiling

hpi1 git at videolan.org
Sun Feb 15 12:08:06 CET 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Feb 15 12:35:09 2015 +0200| [2d2d09f4fae5c10744398094ff57137d8c52110d] | committer: hpi1

Fix configure with --enable-udf when cross compiling

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=2d2d09f4fae5c10744398094ff57137d8c52110d
---

 configure.ac |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 3609d88..94166d2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -241,9 +241,10 @@ dnl bootclasspath
 AC_SUBST(BDJ_BOOTCLASSPATH)
 
 dnl udf support (using git submodule)
-AS_IF([test "x$enable_udf" = "xyes"],
-  [ AC_CHECK_FILE([${srcdir}/contrib/libudfread/src/udfread.h],, [AC_MSG_ERROR("libudfread source tree not found")])
-
+AS_IF([test "x$enable_udf" = "xyes"], [
+    if test ! -f "${srcdir}/contrib/libudfread/src/udfread.h"; then
+        AC_MSG_ERROR("libudfread source tree not found")
+    fi
     AC_CHECK_HEADERS([unistd.h fcntl.h])
     AS_IF([test "${SYS}" != "mingw32"], [
       AC_CHECK_FUNC([pread],, [AC_MSG_ERROR("Function pread not found. Try with --disable-udf.")])



More information about the libbluray-devel mailing list