Source: gmerlin
Version: 1.2.0~dfsg+1-6.1
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs
gmerlin fails to cross build from source, because it uses AC_TRY_RUN
with no last argument nor cache variabel to check for posix semaphores.
In this case, degrading the check to AC_CHECK_FUNC for the cross case
seems reasonable. I'm attaching a patch that implements this.
Please consider applying the patch and close this bug when doing so even
though there are more cross compilation issues underneath.
Helmut
--- gmerlin-1.2.0~dfsg+1.orig/m4/check_funcs.m4
+++ gmerlin-1.2.0~dfsg+1/m4/check_funcs.m4
@@ -1749,6 +1749,7 @@
OLD_LIBS=$LIBS
LIBS="$LIBS -lpthread"
+AC_CHECK_FUNC([sem_init],[
AC_MSG_CHECKING([for POSIX unnamed semaphores]);
AC_TRY_RUN([
@@ -1771,9 +1772,17 @@
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_POSIX_SEMAPHORES)
],
+ [
# program could not be run
AC_MSG_RESULT(no)
+ ],
+ [
+ have_posix_semaphores="true"
+ AC_MSG_RESULT([cross compiling, assuming yes])
+ AC_DEFINE(HAVE_POSIX_SEMAPHORES)
+ ]
)
+])
LIBS=$OLD_LIBS
_______________________________________________
pkg-multimedia-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers