summaryrefslogtreecommitdiff
path: root/multimedia/xine-lib/patches/patch-ag
blob: b47335dde9fb656418450d8d0d8e5711101265e1 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
$NetBSD: patch-ag,v 1.23 2011/10/12 17:30:22 hans Exp $

--- configure.ac.orig	2010-07-25 14:37:30.000000000 +0000
+++ configure.ac
@@ -581,6 +581,9 @@ AC_CHECK_LIB(socket, socket, NET_LIBS="-
 AC_CHECK_LIB(nsl, gethostbyname, NET_LIBS="-lnsl $NET_LIBS",)
 AC_SUBST(NET_LIBS)
 
+WINE_LIBS=""
+AC_CHECK_LIB(i386, i386_set_ldt, WINE_LIBS="-li386 $WINE_LIBS",)
+AC_SUBST(WINE_LIBS)
 
 dnl ---------------------------------------------
 dnl socklen_t
@@ -710,6 +713,10 @@ if test "x$have_v4l2" = xyes && test "x$
   fi
 fi
 
+dnl ----------------------------------------------
+dnl Check for NetBSD DTV headers
+dnl ----------------------------------------------
+AC_CHECK_HEADERS([dev/dtv/dtvio.h])
 
 dnl ----------------------------------------------
 dnl Check for Xv and XvMC support
@@ -968,7 +975,6 @@ if test "x$enable_xinerama" != "xno"; th
    ])
    if test "x$ac_have_xinerama" = "xyes"; then
       AC_DEFINE(HAVE_XINERAMA,1,[Define this if you have libXinerama installed])
-      X_LIBS="${X_LIBS} ${XINERAMA_LIBS}"
    fi
 else
   ac_have_xinerama=no
@@ -1480,8 +1486,21 @@ AC_ARG_ENABLE([oss],
 	AS_HELP_STRING([--disable-oss], [Do not build OSS audio output support]))
 
 if test "x$enable_oss" != "xno"; then
+
+   case "$host" in
+     *-*-netbsd*|*-*-openbsd*)
+       OSS_LIBS="-lossaudio"
+       ;;
+     *)
+       OSS_LIBS=""
+       ;;
+   esac
+
    AC_CHECK_HEADERS([sys/soundcard.h machine/soundcard.h soundcard.h], [break])
    AC_CHECK_DECL([SNDCTL_DSP_SETFRAGMENT], [have_ossaudio=yes], [], [
+     #ifdef __NetBSD__
+     #include <sys/ioctl.h>
+     #endif
      #ifdef HAVE_SYS_SOUNDCARD_H
      # include <sys/soundcard.h>
      #endif
@@ -1499,6 +1518,7 @@ if test "x$enable_oss" != "xno"; then
 fi
 
 AM_CONDITIONAL(HAVE_OSS, test "x$have_ossaudio" = "xyes")
+AC_SUBST(OSS_LIBS)
 
 
 dnl ---------------------------------------------
@@ -1630,9 +1650,10 @@ AC_ARG_ENABLE([gnomevfs],
   [with_gnome_vfs=$enableval], [with_gnome_vfs=yes])
 
 if test "x$with_gnome_vfs" = "xyes"; then
-  PKG_CHECK_MODULES(GNOME_VFS, gnome-vfs-2.0,
-                no_gnome_vfs=no,
-		no_gnome_vfs=yes)
+dnl  PKG_CHECK_MODULES(GNOME_VFS, gnome-vfs-2.0,
+dnl                no_gnome_vfs=no,
+dnl		no_gnome_vfs=yes)
+no_gnome_vfs=yes
   AC_SUBST(GNOME_VFS_CFLAGS)
   AC_SUBST(GNOME_VFS_LIBS)
   if test "x$no_gnome_vfs" != "xyes"; then
@@ -1973,7 +1994,7 @@ int has_timeout=sizeof(test.timeout);]])
      	    AC_DEFINE([HAVE_WIN32_CDROM], [1], 
                       [Define 1 if you have MinGW CD-ROM support])
 	 ;;
-         freebsd4.*|kfreebsd*-gnu)
+         freebsd4.*|kfreebsd*-gnu|dragonfly*)
      	    AC_DEFINE([HAVE_FREEBSD_CDROM], [1], 
                       [Define 1 if you have FreeBSD CD-ROM support])
 	 ;;
@@ -2234,6 +2255,7 @@ if test "x$some_snprintf" != "xyes" -o \
 fi
 AC_FUNC_FSEEKO
 AC_CHECK_HEADERS(assert.h byteswap.h malloc.h execinfo.h ucontext.h sys/mman.h sys/mixer.h libgen.h netdb.h dirent.h sys/times.h sys/ioctl.h sys/param.h alloca.h)
+AC_LIBOBJ(dummy)
 AC_REPLACE_FUNCS(asprintf basename gettimeofday setenv strcasestr strndup strpbrk strsep strtok_r timegm unsetenv memmem)
 
 AC_LIBSOURCE(hstrerror.c)