OSDN Git Service

add a patch that allows force disabling of dlfcn
[handbrake-jp/handbrake-jp-git.git] / contrib / libdvdread / P00-mingw-dlfcn.patch
1 Index: configure.ac
2 ===================================================================
3 --- libdvdread/configure.ac     (revision 1168)
4 +++ libdvdread/configure.ac     (working copy)
5 @@ -158,6 +158,16 @@
6      ;;
7  esac
8  
9 +AC_ARG_ENABLE([local-dlfcn],
10 +  [AS_HELP_STRING([--enable-local-dlfcn],
11 +  [use local dlfcn for mingw (default is auto)])],
12 +  [use_local_dlfcn=$enableval],
13 +  [use_local_dlfcn=no])
14 +
15 +if [[ $use_local_dlfcn = "yes" ]]; then
16 +       AC_DEFINE([USING_LOCAL_DLFCN], [1], ["Define to 1 to use local dlfcn"])
17 +fi
18 +
19  dnl ---------------------------------------------
20  dnl cflags
21  dnl ---------------------------------------------
22 Index: src/dvd_input.c
23 ===================================================================
24 --- libdvdread/src/dvd_input.c  (revision 1168)
25 +++ libdvdread/src/dvd_input.c  (working copy)
26 @@ -50,7 +50,7 @@
27  #else
28  
29  /* dlopening libdvdcss */
30 -#ifdef HAVE_DLFCN_H
31 +#if defined(HAVE_DLFCN_H) && !defined(USING_LOCAL_DLFCN)
32  #include <dlfcn.h>
33  #else
34  /* Only needed on MINGW at the moment */