OSDN Git Service

bump x264 from r1867 to r1900
[handbrake-jp/handbrake-jp-git.git] / contrib / fontconfig / A00-mingw-disableShared.patch
1 --- fontconfig-2.8.0/configure  2009-11-18 15:49:41.000000000 -0800
2 +++ fontconfig-2.8.0/configure  2010-09-09 21:23:24.000000000 -0700
3 @@ -825,6 +825,8 @@
4  ms_librarian
5  OS_WIN32_FALSE
6  OS_WIN32_TRUE
7 +OS_WIN32_ENABLE_SHARED_TRUE
8 +OS_WIN32_ENABLE_SHARED_FALSE
9  LTCXXCOMPILE
10  LTCOMPILE
11  DOLT_BASH
12 @@ -11782,6 +11784,14 @@
13    OS_WIN32_FALSE=
14  fi
15  
16 + if test "$os_win32-$enable_shared" = "yes-yes"; then
17 +  OS_WIN32_ENABLE_SHARED_TRUE=
18 +  OS_WIN32_ENABLE_SHARED_FALSE='#'
19 +else
20 +  OS_WIN32_ENABLE_SHARED_TRUE='#'
21 +  OS_WIN32_ENABLE_SHARED_FALSE=
22 +fi
23 +
24  
25  if test "$os_win32" = "yes"; then
26    # Extract the first word of "lib.exe", so it can be a program name with args.
27 @@ -15155,6 +15165,13 @@
28  Usually this means the macro was only invoked conditionally." >&2;}
29     { (exit 1); exit 1; }; }
30  fi
31 +if test -z "${OS_WIN32_ENABLE_SHARED_TRUE}" && test -z "${OS_WIN32_ENABLE_SHARED_FALSE}"; then
32 +  { { echo "$as_me:$LINENO: error: conditional \"OS_WIN32_ENABLE_SHARED\" was never defined.
33 +Usually this means the macro was only invoked conditionally." >&5
34 +echo "$as_me: error: conditional \"OS_WIN32_ENABLE_SHARED\" was never defined.
35 +Usually this means the macro was only invoked conditionally." >&2;}
36 +   { (exit 1); exit 1; }; }
37 +fi
38  if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
39    { { $as_echo "$as_me:$LINENO: error: conditional \"MS_LIB_AVAILABLE\" was never defined.
40  Usually this means the macro was only invoked conditionally." >&5
41 --- fontconfig-2.8.0/configure.in       2009-11-18 15:49:23.000000000 -0800
42 +++ fontconfig-2.8.0/configure.in       2010-09-09 21:11:37.000000000 -0700
43 @@ -76,6 +76,7 @@
44      os_win32=no
45  esac
46  AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes")
47 +AM_CONDITIONAL(OS_WIN32_ENABLE_SHARED, test "$os_win32-$enable_shared" = "yes-yes")
48  
49  if test "$os_win32" = "yes"; then
50    AC_CHECK_PROG(ms_librarian, lib.exe, yes, no)
51 --- fontconfig-2.8.0/src/Makefile.am    2010-09-09 21:12:43.000000000 -0700
52 +++ fontconfig-2.8.0/src/Makefile.am    2010-09-09 21:13:07.000000000 -0700
53 @@ -30,7 +30,9 @@
54  # gcc import library install/uninstall
55  
56  install-libtool-import-lib: 
57 +if OS_WIN32_ENABLE_SHARED
58         $(INSTALL) .libs/libfontconfig.dll.a $(DESTDIR)$(libdir)
59 +endif
60         $(INSTALL) fontconfig.def $(DESTDIR)$(libdir)/fontconfig.def
61  
62  uninstall-libtool-import-lib:
63 --- fontconfig-2.8.0/src/Makefile.in    2009-11-18 15:49:39.000000000 -0800
64 +++ fontconfig-2.8.0/src/Makefile.in    2010-09-09 21:14:38.000000000 -0700
65 @@ -688,7 +688,7 @@
66  # gcc import library install/uninstall
67  
68  @OS_WIN32_TRUE@install-libtool-import-lib: 
69 -@OS_WIN32_TRUE@        $(INSTALL) .libs/libfontconfig.dll.a $(DESTDIR)$(libdir)
70 +@OS_WIN32_ENABLE_SHARED_TRUE@@OS_WIN32_TRUE@   $(INSTALL) .libs/libfontconfig.dll.a $(DESTDIR)$(libdir)
71  @OS_WIN32_TRUE@        $(INSTALL) fontconfig.def $(DESTDIR)$(libdir)/fontconfig.def
72  
73  @OS_WIN32_TRUE@uninstall-libtool-import-lib: