summaryrefslogtreecommitdiff
path: root/package/kodi/patches/patch-configure_in
blob: dfd4a32aefc84b8a999acc759d253724de880db3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
--- xbmc-14.0-Helix.orig/configure.in	2014-12-22 17:11:35.000000000 -0600
+++ xbmc-14.0-Helix/configure.in	2014-12-28 02:47:04.799045092 -0600
@@ -55,13 +55,6 @@ AC_DEFUN([XB_ADD_CODEC],
 # check for library basenames
 AC_DEFUN([XB_FIND_SONAME],
 [
-  if echo "$host" | grep -q freebsd ; then
-    AC_MSG_CHECKING([for lib$2 soname])
-    $1_SONAME=[`ldconfig -r | sed -n "s;.* \(/.*lib$2\.so.*\)$;\1;p" | head -n 1`]
-    if test x$$1_SONAME != x ; then
-      $1_SONAME=[`basename $$1_SONAME`]
-    fi
-  elif [[ "$host_vendor" != "apple" ]]; then
     AC_MSG_CHECKING([for lib$2 soname])
     $1_FILENAME=$($CC -nostdlib -o /dev/null $LDFLAGS $4 -l$2 -Wl,-M 2>/dev/null | grep "^LOAD.*$2" | awk '{V=2; print $V}')
     if [[ -z $$1_FILENAME ]]; then
@@ -71,24 +64,6 @@ AC_DEFUN([XB_FIND_SONAME],
     if [[ ! -z $$1_FILENAME ]]; then
       $1_SONAME=$($OBJDUMP -p $$1_FILENAME | grep "SONAME.*$2" | awk '{V=2; print $V}')
     fi
-  else
-    AC_MSG_CHECKING([for lib$2 dylib])
-    gcc_lib_path=[`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`]
-    env_lib_path=[`echo $LDFLAGS | sed 's/-L[ ]*//g'`]
-    if test "$cross_compiling" = yes; then
-      host_lib_path=""
-    else
-      host_lib_path="/usr/lib /usr/local/lib"
-    fi
-    for path in $gcc_lib_path $env_lib_path $host_lib_path; do
-      lib=[`ls -- $path/lib$2.dylib 2>/dev/null`]
-      if test x$lib != x; then
-        # we want the path/name that is embedded in the dylib 
-        $1_FILENAME=[`otool -L $lib | grep -v lib$2.dylib | grep lib$2 | awk '{V=1; print $V}'`]
-        $1_SONAME=[`basename $$1_FILENAME`]
-      fi
-    done
-  fi
   if [[ -z "$$1_SONAME" ]]; then
     AC_MSG_RESULT([no])
     if test -z "$3" || test "x${$3}" = "xyes"; then
@@ -1015,7 +990,7 @@ if test "$use_gles" = "yes"; then
       AC_DEFINE([HAVE_LIBEGL],[1],["Define to 1 if you have the `EGL' library (-lEGL)."])
       AC_DEFINE([HAVE_LIBGLESV2],[1],["Define to 1 if you have the `GLESv2' library (-lGLESv2)."])
       AC_MSG_RESULT(== WARNING: OpenGLES support is assumed.)
-      LIBS="$LIBS -lEGL -lGLESv2 -lbcm_host -lvcos -lvchiq_arm -lmmal -lmmal_core -lmmal_util"
+      LIBS="$LIBS -lEGL -lGLESv2 -lbcm_host -lvcos -lvchiq_arm -lmmal -lmmal_core -lmmal_util -lkhrn_static -lpthread -lm"
     else
       AC_CHECK_LIB([EGL],   [main],, AC_MSG_ERROR($missing_library))
       AC_CHECK_LIB([GLESv2],[main],, AC_MSG_ERROR($missing_library))