]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/mpcdec.patch
Contribs: Fix libmpcdec configure.ac
[vlc] / extras / contrib / src / Patches / mpcdec.patch
1 --- mpcdec/configure.ac 2007-04-17 21:05:32.000000000 +0200
2 +++ mpcdec/configure.ac 2007-09-06 23:52:09.000000000 +0200
3 @@ -8,6 +8,9 @@
4  
5  CFLAGS="$CFLAGS -O3 -fomit-frame-pointer -fPIC"
6  
7 +AC_PROG_CC
8 +AC_PROG_CXX
9 +
10  AC_C_BIGENDIAN(,CFLAGS="$CFLAGS -DMPC_LITTLE_ENDIAN",)
11  
12  AC_HEADER_STDC
13 @@ -58,10 +58,15 @@
14         ac_cv_c_int64_t=int64_t
15  fi
16  
17 +if test "x$cross_compiling" = "xyes" ; then
18 +AC_CHECK_FUNCS([memcmp], [],
19 +        AC_MSG_ERROR([memcmp is missing.]))
20 +else
21  AC_FUNC_MEMCMP
22  if test "x$ac_cv_func_memcmp_working" = "xno" ; then
23         AC_MSG_ERROR([working memcmp is not available.])
24  fi
25 +fi
26  
27  AC_CHECK_FUNCS([memmove memset], [],
28          AC_MSG_ERROR([memset or memmove is missing.]))