Commit cf10ebe4 authored by Damien Fouilleul's avatar Damien Fouilleul

contribs: fixed mpcdec cross-compilation

parent ced63b09
...@@ -2009,7 +2009,7 @@ libmpcdec-$(MUSE_VERSION).tar.bz2: ...@@ -2009,7 +2009,7 @@ libmpcdec-$(MUSE_VERSION).tar.bz2:
mpcdec: libmpcdec-$(MUSE_VERSION).tar.bz2 mpcdec: libmpcdec-$(MUSE_VERSION).tar.bz2
$(EXTRACT_BZ2) $(EXTRACT_BZ2)
patch -p0 < Patches/mpcdec.patch patch -p0 < Patches/mpcdec.patch
(cd $@; autoconf -vif) (cd $@; autoreconf)
.mpcdec: mpcdec .mpcdec: mpcdec
ifdef HAVE_WIN32 ifdef HAVE_WIN32
......
Index: mpcdec/configure.ac --- mpcdec/configure.ac 2007-04-17 21:05:32.000000000 +0200
=================================================================== +++ mpcdec/configure.ac 2007-09-06 23:52:09.000000000 +0200
--- mpcdec/configure.ac (revision 276) @@ -58,10 +58,15 @@
+++ mpcdec/configure.ac (revision 289) ac_cv_c_int64_t=int64_t
@@ -59,11 +59,6 @@
fi fi
-AC_FUNC_MEMCMP +if test "x$cross_compiling" = "xyes" ; then
-if test "x$ac_cv_func_memcmp_working" = "xno" ; then +AC_CHECK_FUNCS([memcmp], [],
- AC_MSG_ERROR([working memcmp is not available.]) + AC_MSG_ERROR([memcmp is missing.]))
-fi +else
- AC_FUNC_MEMCMP
-AC_CHECK_FUNCS([memmove memset], [], if test "x$ac_cv_func_memcmp_working" = "xno" ; then
- AC_MSG_ERROR([memset or memmove is missing.])) AC_MSG_ERROR([working memcmp is not available.])
+AC_CHECK_FUNCS([memmove memset memcmp], [], fi
+ AC_MSG_ERROR([memmove memset or memcmp is missing.])) +fi
dnl Make substitutions AC_CHECK_FUNCS([memmove memset], [],
AC_MSG_ERROR([memset or memmove is missing.]))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment