]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/libxine/libxine-1.1.0/configure.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / libxine / libxine-1.1.0 / configure.patch
1
2 #
3 # Patch managed by http://www.holgerschurig.de/patcher.html
4 #
5
6 --- xine-lib-1.1.0/configure.ac~configure-1.0
7 +++ xine-lib-1.1.0/configure.ac
8 @@ -715,6 +715,7 @@
9  LIBS="$saved_libs"
10  fi
11  AM_CONDITIONAL(HAVE_XVMC, test x$ac_have_xvmc = "xyes")
12 +AM_CONDITIONAL(HAVE_XV,   test x$ac_have_xvfoo = "xyes")
13  AC_SUBST(XVMC_LIB)
14  
15  
16 @@ -743,7 +744,7 @@
17  AM_PATH_AALIB(1.4,, AC_MSG_RESULT([*** All of AALIB dependent parts will be disabled ***]))
18  fi
19  
20 -AM_CONDITIONAL(HAVE_AA, test x$no_aalib != "xyes")
21 +AM_CONDITIONAL(HAVE_AA,  [test x"$enable_aalib" = "xyes" && test x$no_aalib != "xyes"])
22  
23  dnl ---------------------------------------------
24  dnl Checks for Color AsCii Art library
25 @@ -855,10 +856,7 @@
26  dnl check for SDL
27  dnl ---------------------------------------------
28  
29 -AM_PATH_SDL(1.1.5, 
30 -       AC_DEFINE(HAVE_SDL,1,[Define this if you have SDL library installed]),
31 -       [])
32 -AM_CONDITIONAL(HAVE_SDL, [test x"$no_sdl" != x"yes"])
33 +AM_CONDITIONAL(HAVE_SDL, 0)
34  
35  
36  dnl ---------------------------------------------
37 @@ -1013,48 +1011,22 @@
38  dnl Ogg/Theora libs.
39  dnl ---------------------------------------------
40  
41 -AM_PATH_OGG(
42 -           [ AM_PATH_THEORA(AC_DEFINE(HAVE_THEORA,1,[Define this if you have theora]),
43 -                           AC_MSG_RESULT([*** All OGG/THEORA dependent parts will be disabled ***]))
44 -          ],
45 -           AC_MSG_RESULT([*** All of OGG/Theora dependent parts will be disabled ***]))
46 -AM_CONDITIONAL(HAVE_THEORA, [test x"$no_ogg" != "xyes" -a x"$no_theora" != "xyes"])
47 +AM_CONDITIONAL(HAVE_THEORA, 0)
48  
49  
50  dnl ---------------------------------------------
51  dnl Ogg/Speex libs.
52  dnl ---------------------------------------------
53  
54 -PKG_CHECK_MODULES(SPEEX, speex, no_speex="no", no_speex="yes")
55 -
56 -if test "x$no_speex" = "xyes" ; then
57 -  AM_PATH_OGG([ AM_PATH_SPEEX(no_speex="no")])
58 -fi
59 -
60 -if test "x$no_speex" = "xyes" ; then
61 -  AC_MSG_RESULT([*** All OGG/SPEEX dependent parts will be disabled ***])
62 -else
63 -  AC_DEFINE(HAVE_SPEEX,1,[Define this if you have speex])
64 -
65 -  dnl Test whether Speex headers are eg. <speex.h> or <speex/speex.h>
66 -  dnl Speex headers were moved in mid-2004; 1.0.x has backwards compatible headers, 1.1.x does not
67 -  AC_CHECK_HEADER([speex/speex.h],
68 -                  AC_DEFINE(HAVE_SPEEX_SUBDIR, [1], [Define to 1 if speex headers are eg. <speex/speex.h>])
69 -  )
70 -
71 -  AC_SUBST(SPEEX_CFLAGS)
72 -  AC_SUBST(SPEEX_LIBS)
73 -fi
74 -AM_CONDITIONAL(HAVE_SPEEX, [test x"$no_ogg" != "xyes" -a x"$no_speex" != "xyes"])
75 +AM_CONDITIONAL(HAVE_SPEEX, 0)
76  
77  
78  dnl ---------------------------------------------
79  dnl check for libFLAC
80  dnl ---------------------------------------------
81  
82 -AM_PATH_LIBFLAC([],
83 -       AC_MSG_RESULT([*** All FLAC dependent parts will be disabled ***]))
84 -AM_CONDITIONAL(HAVE_FLAC, [test x"$no_libFLAC" != "xyes"])
85 +AM_CONDITIONAL(HAVE_FLAC, 0)
86 +
87  
88  dnl ---------------------------------------------
89  dnl External version of a52dec
90 @@ -1120,13 +1092,8 @@
91  dnl MNG libs.
92  dnl ---------------------------------------------
93  
94 -AC_CHECK_LIB(mng, mng_initialize,
95 -       [ AC_CHECK_HEADER(libmng.h,
96 -               [ have_libmng=yes
97 -                 MNG_LIBS="-lmng" ], 
98 -               AC_MSG_RESULT([*** All libmng dependent parts will be disabled ***]))],
99 -       AC_MSG_RESULT([*** All libmng dependent parts will be disabled ***]))
100 -AM_CONDITIONAL(HAVE_LIBMNG, test x"$have_libmng" = "xyes")
101 +MNG_LIBS=""
102 +AM_CONDITIONAL(HAVE_LIBMNG, 0)
103  AC_SUBST(MNG_LIBS)
104  
105  dnl ---------------------------------------------
106 @@ -1153,7 +1120,7 @@
107  dnl freetype2 lib.
108  dnl ---------------------------------------------
109  
110 -AM_PATH_FREETYPE2()
111 +AM_CONDITIONAL(HAVE_FT2, 0)
112  
113  
114  dnl ---------------------------------------------
115 @@ -1196,37 +1163,21 @@
116  dnl ESD support
117  dnl ---------------------------------------------
118  
119 -AM_PATH_ESD(0.2.8,
120 -        AC_DEFINE(HAVE_ESD,1,[Define this if you have ESD (libesd) installed]),
121 -        AC_MSG_RESULT(*** All of ESD dependent parts will be disabled ***))
122 -AM_CONDITIONAL(HAVE_ESD, test x"$no_esd" != "xyes")
123 +AM_CONDITIONAL(HAVE_ESD, 0)
124  
125  
126  dnl ---------------------------------------------
127  dnl ARTS support
128  dnl ---------------------------------------------
129  
130 -AM_PATH_ARTS(0.9.5,
131 -        AC_DEFINE(HAVE_ARTS,1,[Define this if you have ARTS (libartsc) installed]),
132 -        AC_MSG_RESULT(*** All of ARTS dependent parts will be disabled ***))
133 -AM_CONDITIONAL(HAVE_ARTS, test x"$no_arts" != "xyes")
134 +AM_CONDITIONAL(HAVE_ARTS, 0)
135  
136  
137  dnl ---------------------------------------------
138  dnl gnome-vfs support
139  dnl ---------------------------------------------
140  
141 -PKG_CHECK_MODULES(GNOME_VFS, gnome-vfs-2.0,
142 -                no_gnome_vfs=no,
143 -               no_gnome_vfs=yes)
144 -AC_SUBST(GNOME_VFS_CFLAGS)
145 -AC_SUBST(GNOME_VFS_LIBS)
146 -if test x"$no_gnome_vfs" != "xyes"; then
147 -AC_DEFINE(HAVE_GNOME_VFS,1,[Define this if you have gnome-vfs installed])
148 -else
149 -AC_MSG_RESULT(*** All of the gnome-vfs dependent parts will be disabled ***)
150 -fi
151 -AM_CONDITIONAL(HAVE_GNOME_VFS, test x"$no_gnome_vfs" != "xyes")
152 +AM_CONDITIONAL(HAVE_GNOME_VFS, 0)
153  
154  
155  dnl ---------------------------------------------
156 @@ -1403,75 +1354,7 @@
157      ],ISOC99_PRAGMA=no)
158      AC_MSG_RESULT($ISOC99_PRAGMA)
159  
160 -    dnl
161 -    dnl bitfield order
162 -    dnl
163 -    AC_MSG_CHECKING([bitfield ordering in structs])
164 -
165 -    dnl basic compile test for all platforms
166 -    AC_COMPILE_IFELSE([
167 -int main() {
168 -  struct { char bit_0:1, bit_12:2, bit_345:3, bit_67:2; }
169 -#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
170 -  __attribute__((packed))
171 -#endif
172 -  bf = { 1,1,1,1 };
173 -  switch (0) case 0: case sizeof(bf) == 1:;
174 -  return 0;
175 -}
176 -], [], AC_MSG_ERROR([compiler doesn't support bitfield structs]))
177 -
178 -
179 -    dnl run test
180 -    AC_RUN_IFELSE([
181 -int main() {
182 -  struct { char bit_0:1, bit_12:2, bit_345:3, bit_67:2; }
183 -#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
184 -  __attribute__((packed))
185 -#endif
186 -  bf = { 1,1,1,1 };
187 -  if (sizeof (bf) != 1) return 1;
188 -  return *((unsigned char*) &bf) != 0x4b; }
189 -], bf_lsbf=1, [
190 -  AC_RUN_IFELSE([
191 -int main() {
192 -  struct { char bit_0:1, bit_12:2, bit_345:3, bit_67:2; }
193 -#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
194 -  __attribute__((packed))
195 -#endif
196 - bf = { 1,1,1,1 };
197 - if (sizeof (bf) != 1) return 1;
198 - return *((unsigned char*) &bf) != 0xa5; }
199 -], bf_lsbf=0, AC_MSG_ERROR([unsupported bitfield ordering]))
200 -  ],
201 -  [case "$host" in
202 -     *-*-mingw32* | *-*-cygwin*)
203 -       bf_lsbf=1
204 -     ;;
205 -     *)
206 -       AC_MSG_RESULT([unknown])
207 -       AC_MSG_ERROR([value of bitfield test isn't known for $host
208 -*********************************************************************
209 -Value of bitfield test can't be found out for cross-compiling and we
210 -don't know its value for host "$host".
211 -
212 -Because it's needed for VCD plugin, disable VCD by configure option
213 ---disable-vcd or use external VCD library.
214 -*********************************************************************])
215 -  esac]
216 -)
217 -
218 -    if test "x$cross_compiling" = "xyes"; then
219 -      TEXT=" (guessed)"
220 -    else
221 -      TEXT=""
222 -    fi
223 -    if test "x$bf_lsbf" = "x1"; then
224 -     AC_MSG_RESULT(LSBF${TEXT})
225 -     AC_DEFINE(BITFIELD_LSBF, [], [compiler does lsbf in struct bitfields])
226 -    else
227 -     AC_MSG_RESULT(MSBF${TEXT})
228 -    fi
229 +    AC_DEFINE(BITFIELD_LSBF, [], [compiler does lsbf in struct bitfields])
230  
231      AC_HAVE_HEADERS( errno.h fcntl.h \
232                      stdbool.h  stdlib.h stdint.h stdio.h string.h \