openbsd-ports/multimedia/xine-lib/patches/patch-configure_ac
ajacoutot 63ffe4f28f - Remove patching to configure to disable execinfo.h check and disable
it from CONFIGURE_ENV instead
- Enable the use of the linker -z,defs option after the -pthread change
- Resync patches

from Brad (maintainer)
2012-08-28 05:54:05 +00:00

38 lines
2.0 KiB
Plaintext

$OpenBSD: patch-configure_ac,v 1.15 2012/08/28 05:54:05 ajacoutot Exp $
--- configure.ac.orig Sat Jun 9 12:40:10 2012
+++ configure.ac Sat Jun 30 22:43:15 2012
@@ -558,9 +558,9 @@ t q
b
:q
q"
-x_lib_location="`ls -1 "${x_libraries:-/usr/local/lib}/libX11.so"* "${x_libraries:-/usr/lib}/libX11.so"* 2>/dev/null | sed -e \"${soname_script}\"`"
+x_lib_location="`ls -1 "${x_libraries:-/usr/local/lib}/libX11.so"* "${x_libraries:-/usr/lib}/libX11.so"* 2>/dev/null | sed 1q`"
AC_DEFINE_UNQUOTED([LIBX11_SO], "${x_lib_location:-libX11.so}", [The soname of libX11, needed for dlopen()])
-x_lib_location="`ls -1 "${x_libraries:-/usr/local/lib}/libXv.so"* "${x_libraries:-/usr/lib}/libXv.so"* 2>/dev/null | sed -e \"${soname_script}\"`"
+x_lib_location="`ls -1 "${x_libraries:-/usr/local/lib}/libXv.so"* "${x_libraries:-/usr/lib}/libXv.so"* 2>/dev/null | sed 1q`"
AC_DEFINE_UNQUOTED([LIBXV_SO], "${x_lib_location:-libXv.so}", [The soname of libXv, needed for dlopen()])
@@ -1369,7 +1369,7 @@ if test "x$enable_musepack" = "xno"; then
AC_MSG_RESULT([musepack support disabled])
elif test "x$with_external_libmpcdec" = "xyes"; then
AC_CHECK_LIB([mpcdec], [mpc_demux_decode], [have_mpcdec=yes],
- [AC_CHECK_LIB([mpcdec], [mpc_decoder_decode], [have_mpcdec=yes])])
+ [AC_CHECK_LIB([mpcdec], [mpc_decoder_decode], [have_mpcdec=yes])], [-lm])
AC_CHECK_HEADERS([mpc/mpcdec.h], [],
[AC_CHECK_HEADERS([mpcdec/mpcdec.h], [], [have_mpcdec=no])])
if test "x$have_mpcdec" != "xyes"; then
@@ -1395,9 +1395,10 @@ if test "x$with_mng" = "xyes"; then
AC_CHECK_LIB(mng, mng_initialize,
[ AC_CHECK_HEADER(libmng.h,
[ have_libmng=yes
- MNG_LIBS="-lmng" ],
+ MNG_LIBS="-lmng -llcms -ljpeg -lz -lm" ],
AC_MSG_RESULT([*** All libmng dependent parts will be disabled ***]))],
- AC_MSG_RESULT([*** All libmng dependent parts will be disabled ***]))
+ AC_MSG_RESULT([*** All libmng dependent parts will be disabled ***]),
+ [-llcms -ljpeg -lz -lm])
AC_SUBST(MNG_LIBS)
else
have_libmng=no