]> git.sesse.net Git - vlc/blob - configure
cbefcbf73cc3e0d816953d323f60fd07216443ee
[vlc] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib"
16 ac_help="$ac_help
17   --disable-nls           do not use Native Language Support"
18 ac_help="$ac_help
19   --with-included-gettext use the GNU gettext library included here"
20 ac_help="$ac_help
21 "
22 ac_help="$ac_help
23 Optimization options:"
24 ac_help="$ac_help
25   --with-tuning=ARCH      enable special tuning for an architecture
26                           (default i686 on IA-32 and 750 on PPC)"
27 ac_help="$ac_help
28   --disable-optimizations disable compiler optimizations (default enabled)"
29 ac_help="$ac_help
30   --disable-altivec       disable AltiVec optimizations (default enabled on PPC)"
31 ac_help="$ac_help
32   --enable-debug          debug mode (default disabled)"
33 ac_help="$ac_help
34   --enable-release        activate extra optimizations (default disabled)"
35 ac_help="$ac_help
36 Input plugins:"
37 ac_help="$ac_help
38   --enable-dvd            DVD input module (default enabled)"
39 ac_help="$ac_help
40     --with-dvdcss=PATH    libdvdcss headers and libraries"
41 ac_help="$ac_help
42     --with-dvdcss-tree=PATH libdvdcss tree for static linking"
43 ac_help="$ac_help
44   --enable-dvdread        dvdread input module (default disabled)"
45 ac_help="$ac_help
46     --with-dvdread=PATH   libdvdread headers and libraries"
47 ac_help="$ac_help
48   --enable-dvdplay        dvdplay input module (default disabled)"
49 ac_help="$ac_help
50     --with-dvdplay=PATH   libdvdplay headers and libraries"
51 ac_help="$ac_help
52   --enable-dvbpsi        dvbpsi ts demux module (default disabled)"
53 ac_help="$ac_help
54     --with-dvbpsi=PATH    libdvbpsi headers and libraries"
55 ac_help="$ac_help
56     --with-dvbpsi-tree=PATH libdvbpsi tree for static linking"
57 ac_help="$ac_help
58   --enable-vcd            VCD support for Linux, FreeBSD and MacOS X (default enabled)"
59 ac_help="$ac_help
60   --enable-satellite      satellite card support (default disabled)"
61 ac_help="$ac_help
62   --enable-avi            AVI demux module (default enabled)"
63 ac_help="$ac_help
64 Codec plugins:"
65 ac_help="$ac_help
66   --enable-mad            libmad module (default disabled)"
67 ac_help="$ac_help
68     --with-mad=PATH       path to libmad"
69 ac_help="$ac_help
70     --with-mad-tree=PATH  mad tree for static linking"
71 ac_help="$ac_help
72   --enable-ffmpeg         ffmpeg codec (default disabled)"
73 ac_help="$ac_help
74     --with-ffmpeg=PATH    path to ffmpeg installation"
75 ac_help="$ac_help
76     --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
77 ac_help="$ac_help
78   --enable-mp4            MP4 demux module (default disabled)"
79 ac_help="$ac_help
80   --enable-a52            AC3 support with liba52 (default enabled)"
81 ac_help="$ac_help
82     --with-a52-tree=PATH  a52dec tree for static linking "
83 ac_help="$ac_help
84   --enable-cinepak        Cinepak decoder (default enabled)"
85 ac_help="$ac_help
86   --enable-vorbis         Ogg/Vorbis decoder support (default enabled)"
87 ac_help="$ac_help
88   --enable-dv             DV decoder support (default disabled)"
89 ac_help="$ac_help
90 Video plugins:"
91 ac_help="$ac_help
92   --enable-x11            X11 support (default enabled)"
93 ac_help="$ac_help
94   --enable-xvideo         XVideo support (default enabled)"
95 ac_help="$ac_help
96   --enable-sdl            SDL support (default enabled)"
97 ac_help="$ac_help
98     --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
99 ac_help="$ac_help
100   --enable-directx        Win32 DirectX support (default enabled on Win32)"
101 ac_help="$ac_help
102     --with-directx=PATH   Win32 DirectX headers"
103 ac_help="$ac_help
104   --enable-fb             Linux framebuffer support (default enabled on Linux)"
105 ac_help="$ac_help
106   --enable-mga            Linux kernel Matrox support (default disabled)"
107 ac_help="$ac_help
108   --enable-ggi            GGI support (default disabled)"
109 ac_help="$ac_help
110     --with-ggi=PATH       path to libggi"
111 ac_help="$ac_help
112   --enable-glide          Glide (3dfx) support (default disabled)"
113 ac_help="$ac_help
114     --with-glide=PATH     path to libglide"
115 ac_help="$ac_help
116   --enable-aa             aalib output (default disabled)"
117 ac_help="$ac_help
118 Audio plugins:"
119 ac_help="$ac_help
120   --enable-dsp            Linux /dev/dsp support (enabled on Linux)"
121 ac_help="$ac_help
122   --enable-esd            Esound library support (default disabled)"
123 ac_help="$ac_help
124   --enable-arts           aRts sound server (default disabled)"
125 ac_help="$ac_help
126   --enable-alsa           ALSA sound support for Linux (default disabled)"
127 ac_help="$ac_help
128   --enable-waveout        Win32 waveOut module (default enabled on Win32)"
129 ac_help="$ac_help
130 Interface plugins:"
131 ac_help="$ac_help
132   --enable-gtk            Gtk+ support (default enabled)"
133 ac_help="$ac_help
134     --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
135 ac_help="$ac_help
136   --enable-familiar       Familiar Gtk+ support (default disabled)"
137 ac_help="$ac_help
138     --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
139 ac_help="$ac_help
140   --enable-gnome          Gnome interface support (default disabled)"
141 ac_help="$ac_help
142   --enable-qt             Qt interface support (default disabled)"
143 ac_help="$ac_help
144   --enable-kde            KDE interface support (default disabled)"
145 ac_help="$ac_help
146   --enable-macosx         MacOS X support (default enabled on MacOS X)"
147 ac_help="$ac_help
148   --enable-qnx            QNX RTOS support (default enabled on QNX RTOS)"
149 ac_help="$ac_help
150   --enable-intfwin        Win32 interface support (default disabled)"
151 ac_help="$ac_help
152     --with-bcbuilder=PATH Borland C++ Builder installation path"
153 ac_help="$ac_help
154   --enable-ncurses        ncurses interface support (default disabled)"
155 ac_help="$ac_help
156   --enable-xosd           xosd interface support (default disabled)"
157 ac_help="$ac_help
158   --enable-lirc           lirc support (default disabled)"
159 ac_help="$ac_help
160 Misc options:"
161 ac_help="$ac_help
162   --with-words=endianness set endianness (big or little)"
163 ac_help="$ac_help
164   --enable-gprof          gprof profiling (default disabled)"
165 ac_help="$ac_help
166   --enable-cprof          cprof profiling (default disabled)"
167 ac_help="$ac_help
168   --enable-pth            GNU Pth support (default disabled)"
169 ac_help="$ac_help
170   --enable-st             State Threads (default disabled)"
171 ac_help="$ac_help
172   --enable-mozilla        build a vlc-based Mozilla plugin (default disabled)"
173 ac_help="$ac_help
174   --disable-plugins       make all plug-ins built-in (default plug-ins enabled)"
175
176 # Initialize some variables set by options.
177 # The variables have the same names as the options, with
178 # dashes changed to underlines.
179 build=NONE
180 cache_file=./config.cache
181 exec_prefix=NONE
182 host=NONE
183 no_create=
184 nonopt=NONE
185 no_recursion=
186 prefix=NONE
187 program_prefix=NONE
188 program_suffix=NONE
189 program_transform_name=s,x,x,
190 silent=
191 site=
192 srcdir=
193 target=NONE
194 verbose=
195 x_includes=NONE
196 x_libraries=NONE
197 bindir='${exec_prefix}/bin'
198 sbindir='${exec_prefix}/sbin'
199 libexecdir='${exec_prefix}/libexec'
200 datadir='${prefix}/share'
201 sysconfdir='${prefix}/etc'
202 sharedstatedir='${prefix}/com'
203 localstatedir='${prefix}/var'
204 libdir='${exec_prefix}/lib'
205 includedir='${prefix}/include'
206 oldincludedir='/usr/include'
207 infodir='${prefix}/info'
208 mandir='${prefix}/man'
209
210 # Initialize some other variables.
211 subdirs=
212 MFLAGS= MAKEFLAGS=
213 SHELL=${CONFIG_SHELL-/bin/sh}
214 # Maximum number of lines to put in a shell here document.
215 ac_max_here_lines=12
216
217 ac_prev=
218 for ac_option
219 do
220
221   # If the previous option needs an argument, assign it.
222   if test -n "$ac_prev"; then
223     eval "$ac_prev=\$ac_option"
224     ac_prev=
225     continue
226   fi
227
228   case "$ac_option" in
229   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
230   *) ac_optarg= ;;
231   esac
232
233   # Accept the important Cygnus configure options, so we can diagnose typos.
234
235   case "$ac_option" in
236
237   -bindir | --bindir | --bindi | --bind | --bin | --bi)
238     ac_prev=bindir ;;
239   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
240     bindir="$ac_optarg" ;;
241
242   -build | --build | --buil | --bui | --bu)
243     ac_prev=build ;;
244   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
245     build="$ac_optarg" ;;
246
247   -cache-file | --cache-file | --cache-fil | --cache-fi \
248   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
249     ac_prev=cache_file ;;
250   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
251   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
252     cache_file="$ac_optarg" ;;
253
254   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
255     ac_prev=datadir ;;
256   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
257   | --da=*)
258     datadir="$ac_optarg" ;;
259
260   -disable-* | --disable-*)
261     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
262     # Reject names that are not valid shell variable names.
263     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
264       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
265     fi
266     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
267     eval "enable_${ac_feature}=no" ;;
268
269   -enable-* | --enable-*)
270     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
271     # Reject names that are not valid shell variable names.
272     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
273       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
274     fi
275     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
276     case "$ac_option" in
277       *=*) ;;
278       *) ac_optarg=yes ;;
279     esac
280     eval "enable_${ac_feature}='$ac_optarg'" ;;
281
282   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
283   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
284   | --exec | --exe | --ex)
285     ac_prev=exec_prefix ;;
286   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
287   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
288   | --exec=* | --exe=* | --ex=*)
289     exec_prefix="$ac_optarg" ;;
290
291   -gas | --gas | --ga | --g)
292     # Obsolete; use --with-gas.
293     with_gas=yes ;;
294
295   -help | --help | --hel | --he)
296     # Omit some internal or obsolete options to make the list less imposing.
297     # This message is too long to be a string in the A/UX 3.1 sh.
298     cat << EOF
299 Usage: configure [options] [host]
300 Options: [defaults in brackets after descriptions]
301 Configuration:
302   --cache-file=FILE       cache test results in FILE
303   --help                  print this message
304   --no-create             do not create output files
305   --quiet, --silent       do not print \`checking...' messages
306   --version               print the version of autoconf that created configure
307 Directory and file names:
308   --prefix=PREFIX         install architecture-independent files in PREFIX
309                           [$ac_default_prefix]
310   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
311                           [same as prefix]
312   --bindir=DIR            user executables in DIR [EPREFIX/bin]
313   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
314   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
315   --datadir=DIR           read-only architecture-independent data in DIR
316                           [PREFIX/share]
317   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
318   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
319                           [PREFIX/com]
320   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
321   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
322   --includedir=DIR        C header files in DIR [PREFIX/include]
323   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
324   --infodir=DIR           info documentation in DIR [PREFIX/info]
325   --mandir=DIR            man documentation in DIR [PREFIX/man]
326   --srcdir=DIR            find the sources in DIR [configure dir or ..]
327   --program-prefix=PREFIX prepend PREFIX to installed program names
328   --program-suffix=SUFFIX append SUFFIX to installed program names
329   --program-transform-name=PROGRAM
330                           run sed PROGRAM on installed program names
331 EOF
332     cat << EOF
333 Host type:
334   --build=BUILD           configure for building on BUILD [BUILD=HOST]
335   --host=HOST             configure for HOST [guessed]
336   --target=TARGET         configure for TARGET [TARGET=HOST]
337 Features and packages:
338   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
339   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
340   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
341   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
342   --x-includes=DIR        X include files are in DIR
343   --x-libraries=DIR       X library files are in DIR
344 EOF
345     if test -n "$ac_help"; then
346       echo "--enable and --with options recognized:$ac_help"
347     fi
348     exit 0 ;;
349
350   -host | --host | --hos | --ho)
351     ac_prev=host ;;
352   -host=* | --host=* | --hos=* | --ho=*)
353     host="$ac_optarg" ;;
354
355   -includedir | --includedir | --includedi | --included | --include \
356   | --includ | --inclu | --incl | --inc)
357     ac_prev=includedir ;;
358   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
359   | --includ=* | --inclu=* | --incl=* | --inc=*)
360     includedir="$ac_optarg" ;;
361
362   -infodir | --infodir | --infodi | --infod | --info | --inf)
363     ac_prev=infodir ;;
364   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
365     infodir="$ac_optarg" ;;
366
367   -libdir | --libdir | --libdi | --libd)
368     ac_prev=libdir ;;
369   -libdir=* | --libdir=* | --libdi=* | --libd=*)
370     libdir="$ac_optarg" ;;
371
372   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
373   | --libexe | --libex | --libe)
374     ac_prev=libexecdir ;;
375   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
376   | --libexe=* | --libex=* | --libe=*)
377     libexecdir="$ac_optarg" ;;
378
379   -localstatedir | --localstatedir | --localstatedi | --localstated \
380   | --localstate | --localstat | --localsta | --localst \
381   | --locals | --local | --loca | --loc | --lo)
382     ac_prev=localstatedir ;;
383   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
384   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
385   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
386     localstatedir="$ac_optarg" ;;
387
388   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
389     ac_prev=mandir ;;
390   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
391     mandir="$ac_optarg" ;;
392
393   -nfp | --nfp | --nf)
394     # Obsolete; use --without-fp.
395     with_fp=no ;;
396
397   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
398   | --no-cr | --no-c)
399     no_create=yes ;;
400
401   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
402   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
403     no_recursion=yes ;;
404
405   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
406   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
407   | --oldin | --oldi | --old | --ol | --o)
408     ac_prev=oldincludedir ;;
409   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
410   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
411   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
412     oldincludedir="$ac_optarg" ;;
413
414   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
415     ac_prev=prefix ;;
416   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
417     prefix="$ac_optarg" ;;
418
419   -program-prefix | --program-prefix | --program-prefi | --program-pref \
420   | --program-pre | --program-pr | --program-p)
421     ac_prev=program_prefix ;;
422   -program-prefix=* | --program-prefix=* | --program-prefi=* \
423   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
424     program_prefix="$ac_optarg" ;;
425
426   -program-suffix | --program-suffix | --program-suffi | --program-suff \
427   | --program-suf | --program-su | --program-s)
428     ac_prev=program_suffix ;;
429   -program-suffix=* | --program-suffix=* | --program-suffi=* \
430   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
431     program_suffix="$ac_optarg" ;;
432
433   -program-transform-name | --program-transform-name \
434   | --program-transform-nam | --program-transform-na \
435   | --program-transform-n | --program-transform- \
436   | --program-transform | --program-transfor \
437   | --program-transfo | --program-transf \
438   | --program-trans | --program-tran \
439   | --progr-tra | --program-tr | --program-t)
440     ac_prev=program_transform_name ;;
441   -program-transform-name=* | --program-transform-name=* \
442   | --program-transform-nam=* | --program-transform-na=* \
443   | --program-transform-n=* | --program-transform-=* \
444   | --program-transform=* | --program-transfor=* \
445   | --program-transfo=* | --program-transf=* \
446   | --program-trans=* | --program-tran=* \
447   | --progr-tra=* | --program-tr=* | --program-t=*)
448     program_transform_name="$ac_optarg" ;;
449
450   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
451   | -silent | --silent | --silen | --sile | --sil)
452     silent=yes ;;
453
454   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
455     ac_prev=sbindir ;;
456   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
457   | --sbi=* | --sb=*)
458     sbindir="$ac_optarg" ;;
459
460   -sharedstatedir | --sharedstatedir | --sharedstatedi \
461   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
462   | --sharedst | --shareds | --shared | --share | --shar \
463   | --sha | --sh)
464     ac_prev=sharedstatedir ;;
465   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
466   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
467   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
468   | --sha=* | --sh=*)
469     sharedstatedir="$ac_optarg" ;;
470
471   -site | --site | --sit)
472     ac_prev=site ;;
473   -site=* | --site=* | --sit=*)
474     site="$ac_optarg" ;;
475
476   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
477     ac_prev=srcdir ;;
478   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
479     srcdir="$ac_optarg" ;;
480
481   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
482   | --syscon | --sysco | --sysc | --sys | --sy)
483     ac_prev=sysconfdir ;;
484   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
485   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
486     sysconfdir="$ac_optarg" ;;
487
488   -target | --target | --targe | --targ | --tar | --ta | --t)
489     ac_prev=target ;;
490   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
491     target="$ac_optarg" ;;
492
493   -v | -verbose | --verbose | --verbos | --verbo | --verb)
494     verbose=yes ;;
495
496   -version | --version | --versio | --versi | --vers)
497     echo "configure generated by autoconf version 2.13"
498     exit 0 ;;
499
500   -with-* | --with-*)
501     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
502     # Reject names that are not valid shell variable names.
503     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
504       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
505     fi
506     ac_package=`echo $ac_package| sed 's/-/_/g'`
507     case "$ac_option" in
508       *=*) ;;
509       *) ac_optarg=yes ;;
510     esac
511     eval "with_${ac_package}='$ac_optarg'" ;;
512
513   -without-* | --without-*)
514     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
515     # Reject names that are not valid shell variable names.
516     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
517       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
518     fi
519     ac_package=`echo $ac_package| sed 's/-/_/g'`
520     eval "with_${ac_package}=no" ;;
521
522   --x)
523     # Obsolete; use --with-x.
524     with_x=yes ;;
525
526   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
527   | --x-incl | --x-inc | --x-in | --x-i)
528     ac_prev=x_includes ;;
529   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
530   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
531     x_includes="$ac_optarg" ;;
532
533   -x-libraries | --x-libraries | --x-librarie | --x-librari \
534   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
535     ac_prev=x_libraries ;;
536   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
537   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
538     x_libraries="$ac_optarg" ;;
539
540   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
541     ;;
542
543   *)
544     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
545       echo "configure: warning: $ac_option: invalid host type" 1>&2
546     fi
547     if test "x$nonopt" != xNONE; then
548       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
549     fi
550     nonopt="$ac_option"
551     ;;
552
553   esac
554 done
555
556 if test -n "$ac_prev"; then
557   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
558 fi
559
560 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
561
562 # File descriptor usage:
563 # 0 standard input
564 # 1 file creation
565 # 2 errors and warnings
566 # 3 some systems may open it to /dev/tty
567 # 4 used on the Kubota Titan
568 # 6 checking for... messages and results
569 # 5 compiler messages saved in config.log
570 if test "$silent" = yes; then
571   exec 6>/dev/null
572 else
573   exec 6>&1
574 fi
575 exec 5>./config.log
576
577 echo "\
578 This file contains any messages produced by compilers while
579 running configure, to aid debugging if configure makes a mistake.
580 " 1>&5
581
582 # Strip out --no-create and --no-recursion so they do not pile up.
583 # Also quote any args containing shell metacharacters.
584 ac_configure_args=
585 for ac_arg
586 do
587   case "$ac_arg" in
588   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
589   | --no-cr | --no-c) ;;
590   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
591   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
592   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
593   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
594   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
595   esac
596 done
597
598 # NLS nuisances.
599 # Only set these to C if already set.  These must not be set unconditionally
600 # because not all systems understand e.g. LANG=C (notably SCO).
601 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
602 # Non-C LC_CTYPE values break the ctype check.
603 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
604 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
605 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
606 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
607
608 # confdefs.h avoids OS command line length limits that DEFS can exceed.
609 rm -rf conftest* confdefs.h
610 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
611 echo > confdefs.h
612
613 # A filename unique to this package, relative to the directory that
614 # configure is in, which we can look for to find out if srcdir is correct.
615 ac_unique_file=include/main.h
616
617 # Find the source files, if location was not specified.
618 if test -z "$srcdir"; then
619   ac_srcdir_defaulted=yes
620   # Try the directory containing this script, then its parent.
621   ac_prog=$0
622   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
623   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
624   srcdir=$ac_confdir
625   if test ! -r $srcdir/$ac_unique_file; then
626     srcdir=..
627   fi
628 else
629   ac_srcdir_defaulted=no
630 fi
631 if test ! -r $srcdir/$ac_unique_file; then
632   if test "$ac_srcdir_defaulted" = yes; then
633     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
634   else
635     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
636   fi
637 fi
638 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
639
640 # Prefer explicitly selected file to automatically selected ones.
641 if test -z "$CONFIG_SITE"; then
642   if test "x$prefix" != xNONE; then
643     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
644   else
645     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
646   fi
647 fi
648 for ac_site_file in $CONFIG_SITE; do
649   if test -r "$ac_site_file"; then
650     echo "loading site script $ac_site_file"
651     . "$ac_site_file"
652   fi
653 done
654
655 if test -r "$cache_file"; then
656   echo "loading cache $cache_file"
657   . $cache_file
658 else
659   echo "creating cache $cache_file"
660   > $cache_file
661 fi
662
663 ac_ext=c
664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
665 ac_cpp='$CPP $CPPFLAGS'
666 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
667 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
668 cross_compiling=$ac_cv_prog_cc_cross
669
670 ac_exeext=
671 ac_objext=o
672 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
673   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
674   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
675     ac_n= ac_c='
676 ' ac_t='        '
677   else
678     ac_n=-n ac_c= ac_t=
679   fi
680 else
681   ac_n= ac_c='\c' ac_t=
682 fi
683
684
685
686 ac_aux_dir=
687 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
688   if test -f $ac_dir/install-sh; then
689     ac_aux_dir=$ac_dir
690     ac_install_sh="$ac_aux_dir/install-sh -c"
691     break
692   elif test -f $ac_dir/install.sh; then
693     ac_aux_dir=$ac_dir
694     ac_install_sh="$ac_aux_dir/install.sh -c"
695     break
696   fi
697 done
698 if test -z "$ac_aux_dir"; then
699   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
700 fi
701 ac_config_guess=$ac_aux_dir/config.guess
702 ac_config_sub=$ac_aux_dir/config.sub
703 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
704
705
706 # Do some error checking and defaulting for the host and target type.
707 # The inputs are:
708 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
709 #
710 # The rules are:
711 # 1. You are not allowed to specify --host, --target, and nonopt at the
712 #    same time.
713 # 2. Host defaults to nonopt.
714 # 3. If nonopt is not specified, then host defaults to the current host,
715 #    as determined by config.guess.
716 # 4. Target and build default to nonopt.
717 # 5. If nonopt is not specified, then target and build default to host.
718
719 # The aliases save the names the user supplied, while $host etc.
720 # will get canonicalized.
721 case $host---$target---$nonopt in
722 NONE---*---* | *---NONE---* | *---*---NONE) ;;
723 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
724 esac
725
726
727 # Make sure we can run config.sub.
728 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
729 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
730 fi
731
732 echo $ac_n "checking host system type""... $ac_c" 1>&6
733 echo "configure:734: checking host system type" >&5
734
735 host_alias=$host
736 case "$host_alias" in
737 NONE)
738   case $nonopt in
739   NONE)
740     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
741     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
742     fi ;;
743   *) host_alias=$nonopt ;;
744   esac ;;
745 esac
746
747 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
748 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
749 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
750 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
751 echo "$ac_t""$host" 1>&6
752
753 echo $ac_n "checking target system type""... $ac_c" 1>&6
754 echo "configure:755: checking target system type" >&5
755
756 target_alias=$target
757 case "$target_alias" in
758 NONE)
759   case $nonopt in
760   NONE) target_alias=$host_alias ;;
761   *) target_alias=$nonopt ;;
762   esac ;;
763 esac
764
765 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
766 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
767 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
768 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
769 echo "$ac_t""$target" 1>&6
770
771 echo $ac_n "checking build system type""... $ac_c" 1>&6
772 echo "configure:773: checking build system type" >&5
773
774 build_alias=$build
775 case "$build_alias" in
776 NONE)
777   case $nonopt in
778   NONE) build_alias=$host_alias ;;
779   *) build_alias=$nonopt ;;
780   esac ;;
781 esac
782
783 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
784 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
785 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
786 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
787 echo "$ac_t""$build" 1>&6
788
789 test "$host_alias" != "$target_alias" &&
790   test "$program_prefix$program_suffix$program_transform_name" = \
791     NONENONEs,x,x, &&
792   program_prefix=${target_alias}-
793
794
795 CONFIGURE_LINE="$0 $*"
796
797 PACKAGE="vlc"
798 VERSION="0.5.0-cvs"
799 CODENAME="Natalya"
800
801 save_CPPFLAGS="${CPPFLAGS}"
802 save_CFLAGS="${CFLAGS}"
803 save_LDFLAGS="${LDFLAGS}"
804
805 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
806 echo "configure:807: checking whether ${MAKE-make} sets \${MAKE}" >&5
807 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
808 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
809   echo $ac_n "(cached) $ac_c" 1>&6
810 else
811   cat > conftestmake <<\EOF
812 all:
813         @echo 'ac_maketemp="${MAKE}"'
814 EOF
815 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
816 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
817 if test -n "$ac_maketemp"; then
818   eval ac_cv_prog_make_${ac_make}_set=yes
819 else
820   eval ac_cv_prog_make_${ac_make}_set=no
821 fi
822 rm -f conftestmake
823 fi
824 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
825   echo "$ac_t""yes" 1>&6
826   SET_MAKE=
827 else
828   echo "$ac_t""no" 1>&6
829   SET_MAKE="MAKE=${MAKE-make}"
830 fi
831
832 # Extract the first word of "gcc", so it can be a program name with args.
833 set dummy gcc; ac_word=$2
834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
835 echo "configure:836: checking for $ac_word" >&5
836 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
837   echo $ac_n "(cached) $ac_c" 1>&6
838 else
839   if test -n "$CC"; then
840   ac_cv_prog_CC="$CC" # Let the user override the test.
841 else
842   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
843   ac_dummy="$PATH"
844   for ac_dir in $ac_dummy; do
845     test -z "$ac_dir" && ac_dir=.
846     if test -f $ac_dir/$ac_word; then
847       ac_cv_prog_CC="gcc"
848       break
849     fi
850   done
851   IFS="$ac_save_ifs"
852 fi
853 fi
854 CC="$ac_cv_prog_CC"
855 if test -n "$CC"; then
856   echo "$ac_t""$CC" 1>&6
857 else
858   echo "$ac_t""no" 1>&6
859 fi
860
861 if test -z "$CC"; then
862   # Extract the first word of "cc", so it can be a program name with args.
863 set dummy cc; ac_word=$2
864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
865 echo "configure:866: checking for $ac_word" >&5
866 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
867   echo $ac_n "(cached) $ac_c" 1>&6
868 else
869   if test -n "$CC"; then
870   ac_cv_prog_CC="$CC" # Let the user override the test.
871 else
872   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
873   ac_prog_rejected=no
874   ac_dummy="$PATH"
875   for ac_dir in $ac_dummy; do
876     test -z "$ac_dir" && ac_dir=.
877     if test -f $ac_dir/$ac_word; then
878       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
879         ac_prog_rejected=yes
880         continue
881       fi
882       ac_cv_prog_CC="cc"
883       break
884     fi
885   done
886   IFS="$ac_save_ifs"
887 if test $ac_prog_rejected = yes; then
888   # We found a bogon in the path, so make sure we never use it.
889   set dummy $ac_cv_prog_CC
890   shift
891   if test $# -gt 0; then
892     # We chose a different compiler from the bogus one.
893     # However, it has the same basename, so the bogon will be chosen
894     # first if we set CC to just the basename; use the full file name.
895     shift
896     set dummy "$ac_dir/$ac_word" "$@"
897     shift
898     ac_cv_prog_CC="$@"
899   fi
900 fi
901 fi
902 fi
903 CC="$ac_cv_prog_CC"
904 if test -n "$CC"; then
905   echo "$ac_t""$CC" 1>&6
906 else
907   echo "$ac_t""no" 1>&6
908 fi
909
910   if test -z "$CC"; then
911     case "`uname -s`" in
912     *win32* | *WIN32*)
913       # Extract the first word of "cl", so it can be a program name with args.
914 set dummy cl; ac_word=$2
915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
916 echo "configure:917: checking for $ac_word" >&5
917 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
918   echo $ac_n "(cached) $ac_c" 1>&6
919 else
920   if test -n "$CC"; then
921   ac_cv_prog_CC="$CC" # Let the user override the test.
922 else
923   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
924   ac_dummy="$PATH"
925   for ac_dir in $ac_dummy; do
926     test -z "$ac_dir" && ac_dir=.
927     if test -f $ac_dir/$ac_word; then
928       ac_cv_prog_CC="cl"
929       break
930     fi
931   done
932   IFS="$ac_save_ifs"
933 fi
934 fi
935 CC="$ac_cv_prog_CC"
936 if test -n "$CC"; then
937   echo "$ac_t""$CC" 1>&6
938 else
939   echo "$ac_t""no" 1>&6
940 fi
941  ;;
942     esac
943   fi
944   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
945 fi
946
947 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
948 echo "configure:949: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
949
950 ac_ext=c
951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
952 ac_cpp='$CPP $CPPFLAGS'
953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
955 cross_compiling=$ac_cv_prog_cc_cross
956
957 cat > conftest.$ac_ext << EOF
958
959 #line 960 "configure"
960 #include "confdefs.h"
961
962 main(){return(0);}
963 EOF
964 if { (eval echo configure:965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
965   ac_cv_prog_cc_works=yes
966   # If we can't run a trivial program, we are probably using a cross compiler.
967   if (./conftest; exit) 2>/dev/null; then
968     ac_cv_prog_cc_cross=no
969   else
970     ac_cv_prog_cc_cross=yes
971   fi
972 else
973   echo "configure: failed program was:" >&5
974   cat conftest.$ac_ext >&5
975   ac_cv_prog_cc_works=no
976 fi
977 rm -fr conftest*
978 ac_ext=c
979 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
980 ac_cpp='$CPP $CPPFLAGS'
981 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
982 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
983 cross_compiling=$ac_cv_prog_cc_cross
984
985 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
986 if test $ac_cv_prog_cc_works = no; then
987   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
988 fi
989 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
990 echo "configure:991: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
991 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
992 cross_compiling=$ac_cv_prog_cc_cross
993
994 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
995 echo "configure:996: checking whether we are using GNU C" >&5
996 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
997   echo $ac_n "(cached) $ac_c" 1>&6
998 else
999   cat > conftest.c <<EOF
1000 #ifdef __GNUC__
1001   yes;
1002 #endif
1003 EOF
1004 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1005   ac_cv_prog_gcc=yes
1006 else
1007   ac_cv_prog_gcc=no
1008 fi
1009 fi
1010
1011 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1012
1013 if test $ac_cv_prog_gcc = yes; then
1014   GCC=yes
1015 else
1016   GCC=
1017 fi
1018
1019 ac_test_CFLAGS="${CFLAGS+set}"
1020 ac_save_CFLAGS="$CFLAGS"
1021 CFLAGS=
1022 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1023 echo "configure:1024: checking whether ${CC-cc} accepts -g" >&5
1024 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1025   echo $ac_n "(cached) $ac_c" 1>&6
1026 else
1027   echo 'void f(){}' > conftest.c
1028 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1029   ac_cv_prog_cc_g=yes
1030 else
1031   ac_cv_prog_cc_g=no
1032 fi
1033 rm -f conftest*
1034
1035 fi
1036
1037 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1038 if test "$ac_test_CFLAGS" = set; then
1039   CFLAGS="$ac_save_CFLAGS"
1040 elif test $ac_cv_prog_cc_g = yes; then
1041   if test "$GCC" = yes; then
1042     CFLAGS="-g -O2"
1043   else
1044     CFLAGS="-g"
1045   fi
1046 else
1047   if test "$GCC" = yes; then
1048     CFLAGS="-O2"
1049   else
1050     CFLAGS=
1051   fi
1052 fi
1053
1054 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1055 echo "configure:1056: checking how to run the C preprocessor" >&5
1056 # On Suns, sometimes $CPP names a directory.
1057 if test -n "$CPP" && test -d "$CPP"; then
1058   CPP=
1059 fi
1060 if test -z "$CPP"; then
1061 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1062   echo $ac_n "(cached) $ac_c" 1>&6
1063 else
1064     # This must be in double quotes, not single quotes, because CPP may get
1065   # substituted into the Makefile and "${CC-cc}" will confuse make.
1066   CPP="${CC-cc} -E"
1067   # On the NeXT, cc -E runs the code through the compiler's parser,
1068   # not just through cpp.
1069   cat > conftest.$ac_ext <<EOF
1070 #line 1071 "configure"
1071 #include "confdefs.h"
1072 #include <assert.h>
1073 Syntax Error
1074 EOF
1075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1076 { (eval echo configure:1077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1078 if test -z "$ac_err"; then
1079   :
1080 else
1081   echo "$ac_err" >&5
1082   echo "configure: failed program was:" >&5
1083   cat conftest.$ac_ext >&5
1084   rm -rf conftest*
1085   CPP="${CC-cc} -E -traditional-cpp"
1086   cat > conftest.$ac_ext <<EOF
1087 #line 1088 "configure"
1088 #include "confdefs.h"
1089 #include <assert.h>
1090 Syntax Error
1091 EOF
1092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1093 { (eval echo configure:1094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1095 if test -z "$ac_err"; then
1096   :
1097 else
1098   echo "$ac_err" >&5
1099   echo "configure: failed program was:" >&5
1100   cat conftest.$ac_ext >&5
1101   rm -rf conftest*
1102   CPP="${CC-cc} -nologo -E"
1103   cat > conftest.$ac_ext <<EOF
1104 #line 1105 "configure"
1105 #include "confdefs.h"
1106 #include <assert.h>
1107 Syntax Error
1108 EOF
1109 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1110 { (eval echo configure:1111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1111 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1112 if test -z "$ac_err"; then
1113   :
1114 else
1115   echo "$ac_err" >&5
1116   echo "configure: failed program was:" >&5
1117   cat conftest.$ac_ext >&5
1118   rm -rf conftest*
1119   CPP=/lib/cpp
1120 fi
1121 rm -f conftest*
1122 fi
1123 rm -f conftest*
1124 fi
1125 rm -f conftest*
1126   ac_cv_prog_CPP="$CPP"
1127 fi
1128   CPP="$ac_cv_prog_CPP"
1129 else
1130   ac_cv_prog_CPP="$CPP"
1131 fi
1132 echo "$ac_t""$CPP" 1>&6
1133
1134
1135 if test $host != $build; then
1136   ac_tool_prefix=${host_alias}-
1137 else
1138   ac_tool_prefix=
1139 fi
1140
1141 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1142 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1144 echo "configure:1145: checking for $ac_word" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1146   echo $ac_n "(cached) $ac_c" 1>&6
1147 else
1148   if test -n "$RANLIB"; then
1149   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1150 else
1151   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1152   ac_dummy="$PATH"
1153   for ac_dir in $ac_dummy; do
1154     test -z "$ac_dir" && ac_dir=.
1155     if test -f $ac_dir/$ac_word; then
1156       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1157       break
1158     fi
1159   done
1160   IFS="$ac_save_ifs"
1161 fi
1162 fi
1163 RANLIB="$ac_cv_prog_RANLIB"
1164 if test -n "$RANLIB"; then
1165   echo "$ac_t""$RANLIB" 1>&6
1166 else
1167   echo "$ac_t""no" 1>&6
1168 fi
1169
1170
1171 if test -z "$ac_cv_prog_RANLIB"; then
1172 if test -n "$ac_tool_prefix"; then
1173   # Extract the first word of "ranlib", so it can be a program name with args.
1174 set dummy ranlib; ac_word=$2
1175 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1176 echo "configure:1177: checking for $ac_word" >&5
1177 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1178   echo $ac_n "(cached) $ac_c" 1>&6
1179 else
1180   if test -n "$RANLIB"; then
1181   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1182 else
1183   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1184   ac_dummy="$PATH"
1185   for ac_dir in $ac_dummy; do
1186     test -z "$ac_dir" && ac_dir=.
1187     if test -f $ac_dir/$ac_word; then
1188       ac_cv_prog_RANLIB="ranlib"
1189       break
1190     fi
1191   done
1192   IFS="$ac_save_ifs"
1193   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1194 fi
1195 fi
1196 RANLIB="$ac_cv_prog_RANLIB"
1197 if test -n "$RANLIB"; then
1198   echo "$ac_t""$RANLIB" 1>&6
1199 else
1200   echo "$ac_t""no" 1>&6
1201 fi
1202
1203 else
1204   RANLIB=":"
1205 fi
1206 fi
1207
1208 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1209 set dummy ${ac_tool_prefix}strip; ac_word=$2
1210 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1211 echo "configure:1212: checking for $ac_word" >&5
1212 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1213   echo $ac_n "(cached) $ac_c" 1>&6
1214 else
1215   if test -n "$STRIP"; then
1216   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1217 else
1218   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1219   ac_dummy="$PATH"
1220   for ac_dir in $ac_dummy; do
1221     test -z "$ac_dir" && ac_dir=.
1222     if test -f $ac_dir/$ac_word; then
1223       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1224       break
1225     fi
1226   done
1227   IFS="$ac_save_ifs"
1228 fi
1229 fi
1230 STRIP="$ac_cv_prog_STRIP"
1231 if test -n "$STRIP"; then
1232   echo "$ac_t""$STRIP" 1>&6
1233 else
1234   echo "$ac_t""no" 1>&6
1235 fi
1236
1237
1238 if test -z "$ac_cv_prog_STRIP"; then
1239 if test -n "$ac_tool_prefix"; then
1240   # Extract the first word of "strip", so it can be a program name with args.
1241 set dummy strip; ac_word=$2
1242 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1243 echo "configure:1244: checking for $ac_word" >&5
1244 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1245   echo $ac_n "(cached) $ac_c" 1>&6
1246 else
1247   if test -n "$STRIP"; then
1248   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1249 else
1250   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1251   ac_dummy="$PATH"
1252   for ac_dir in $ac_dummy; do
1253     test -z "$ac_dir" && ac_dir=.
1254     if test -f $ac_dir/$ac_word; then
1255       ac_cv_prog_STRIP="strip"
1256       break
1257     fi
1258   done
1259   IFS="$ac_save_ifs"
1260   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1261 fi
1262 fi
1263 STRIP="$ac_cv_prog_STRIP"
1264 if test -n "$STRIP"; then
1265   echo "$ac_t""$STRIP" 1>&6
1266 else
1267   echo "$ac_t""no" 1>&6
1268 fi
1269
1270 else
1271   STRIP=":"
1272 fi
1273 fi
1274
1275
1276 # Extract the first word of "gmake", so it can be a program name with args.
1277 set dummy gmake; ac_word=$2
1278 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1279 echo "configure:1280: checking for $ac_word" >&5
1280 if eval "test \"`echo '$''{'ac_cv_path_GMAKE'+set}'`\" = set"; then
1281   echo $ac_n "(cached) $ac_c" 1>&6
1282 else
1283   case "$GMAKE" in
1284   /*)
1285   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
1286   ;;
1287   ?:/*)                  
1288   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a dos path.
1289   ;;
1290   *)
1291   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1292   ac_dummy="$PATH"
1293   for ac_dir in $ac_dummy; do 
1294     test -z "$ac_dir" && ac_dir=.
1295     if test -f $ac_dir/$ac_word; then
1296       ac_cv_path_GMAKE="$ac_dir/$ac_word"
1297       break
1298     fi
1299   done
1300   IFS="$ac_save_ifs"
1301   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
1302   ;;
1303 esac
1304 fi
1305 GMAKE="$ac_cv_path_GMAKE"
1306 if test -n "$GMAKE"; then
1307   echo "$ac_t""$GMAKE" 1>&6
1308 else
1309   echo "$ac_t""no" 1>&6
1310 fi
1311
1312 if test "x${GMAKE}" = "xno"; then
1313   echo $ac_n "checking whether GNU make is installed""... $ac_c" 1>&6
1314 echo "configure:1315: checking whether GNU make is installed" >&5
1315 if eval "test \"`echo '$''{'ac_cv_gmake'+set}'`\" = set"; then
1316   echo $ac_n "(cached) $ac_c" 1>&6
1317 else
1318   if make --version | grep -q -i gnu; then
1319          ac_cv_gmake="yes"
1320        else
1321          echo "This software needs you to install GNU make to compile properly."
1322          echo "You can get it from http://www.gnu.org/."
1323          exit
1324        fi
1325 fi
1326
1327 echo "$ac_t""$ac_cv_gmake" 1>&6
1328   VLC_MAKE="make"
1329 else
1330   VLC_MAKE="gmake"
1331 fi
1332
1333 ALL_LINGUAS="de en_GB fr ja no ru nl pl se"
1334
1335 cat >> confdefs.h <<EOF
1336 #define VLC_PACKAGE "${PACKAGE}"
1337 EOF
1338
1339 cat >> confdefs.h <<EOF
1340 #define VLC_VERSION "${VERSION}"
1341 EOF
1342
1343 # Extract the first word of "ranlib", so it can be a program name with args.
1344 set dummy ranlib; ac_word=$2
1345 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1346 echo "configure:1347: checking for $ac_word" >&5
1347 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1348   echo $ac_n "(cached) $ac_c" 1>&6
1349 else
1350   if test -n "$RANLIB"; then
1351   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1352 else
1353   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1354   ac_dummy="$PATH"
1355   for ac_dir in $ac_dummy; do
1356     test -z "$ac_dir" && ac_dir=.
1357     if test -f $ac_dir/$ac_word; then
1358       ac_cv_prog_RANLIB="ranlib"
1359       break
1360     fi
1361   done
1362   IFS="$ac_save_ifs"
1363   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1364 fi
1365 fi
1366 RANLIB="$ac_cv_prog_RANLIB"
1367 if test -n "$RANLIB"; then
1368   echo "$ac_t""$RANLIB" 1>&6
1369 else
1370   echo "$ac_t""no" 1>&6
1371 fi
1372
1373
1374         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1375 echo "configure:1376: checking for strerror in -lcposix" >&5
1376 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1377 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1378   echo $ac_n "(cached) $ac_c" 1>&6
1379 else
1380   ac_save_LIBS="$LIBS"
1381 LIBS="-lcposix  $LIBS"
1382 cat > conftest.$ac_ext <<EOF
1383 #line 1384 "configure"
1384 #include "confdefs.h"
1385 /* Override any gcc2 internal prototype to avoid an error.  */
1386 /* We use char because int might match the return type of a gcc2
1387     builtin and then its argument prototype would still apply.  */
1388 char strerror();
1389
1390 int main() {
1391 strerror()
1392 ; return 0; }
1393 EOF
1394 if { (eval echo configure:1395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1395   rm -rf conftest*
1396   eval "ac_cv_lib_$ac_lib_var=yes"
1397 else
1398   echo "configure: failed program was:" >&5
1399   cat conftest.$ac_ext >&5
1400   rm -rf conftest*
1401   eval "ac_cv_lib_$ac_lib_var=no"
1402 fi
1403 rm -f conftest*
1404 LIBS="$ac_save_LIBS"
1405
1406 fi
1407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1408   echo "$ac_t""yes" 1>&6
1409   LIBS="$LIBS -lcposix"
1410 else
1411   echo "$ac_t""no" 1>&6
1412 fi
1413
1414   
1415
1416 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1417 echo "configure:1418: checking for ANSI C header files" >&5
1418 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1419   echo $ac_n "(cached) $ac_c" 1>&6
1420 else
1421   cat > conftest.$ac_ext <<EOF
1422 #line 1423 "configure"
1423 #include "confdefs.h"
1424 #include <stdlib.h>
1425 #include <stdarg.h>
1426 #include <string.h>
1427 #include <float.h>
1428 EOF
1429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1430 { (eval echo configure:1431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1432 if test -z "$ac_err"; then
1433   rm -rf conftest*
1434   ac_cv_header_stdc=yes
1435 else
1436   echo "$ac_err" >&5
1437   echo "configure: failed program was:" >&5
1438   cat conftest.$ac_ext >&5
1439   rm -rf conftest*
1440   ac_cv_header_stdc=no
1441 fi
1442 rm -f conftest*
1443
1444 if test $ac_cv_header_stdc = yes; then
1445   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1446 cat > conftest.$ac_ext <<EOF
1447 #line 1448 "configure"
1448 #include "confdefs.h"
1449 #include <string.h>
1450 EOF
1451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1452   egrep "memchr" >/dev/null 2>&1; then
1453   :
1454 else
1455   rm -rf conftest*
1456   ac_cv_header_stdc=no
1457 fi
1458 rm -f conftest*
1459
1460 fi
1461
1462 if test $ac_cv_header_stdc = yes; then
1463   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1464 cat > conftest.$ac_ext <<EOF
1465 #line 1466 "configure"
1466 #include "confdefs.h"
1467 #include <stdlib.h>
1468 EOF
1469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1470   egrep "free" >/dev/null 2>&1; then
1471   :
1472 else
1473   rm -rf conftest*
1474   ac_cv_header_stdc=no
1475 fi
1476 rm -f conftest*
1477
1478 fi
1479
1480 if test $ac_cv_header_stdc = yes; then
1481   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1482 if test "$cross_compiling" = yes; then
1483   :
1484 else
1485   cat > conftest.$ac_ext <<EOF
1486 #line 1487 "configure"
1487 #include "confdefs.h"
1488 #include <ctype.h>
1489 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1490 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1491 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1492 int main () { int i; for (i = 0; i < 256; i++)
1493 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1494 exit (0); }
1495
1496 EOF
1497 if { (eval echo configure:1498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1498 then
1499   :
1500 else
1501   echo "configure: failed program was:" >&5
1502   cat conftest.$ac_ext >&5
1503   rm -fr conftest*
1504   ac_cv_header_stdc=no
1505 fi
1506 rm -fr conftest*
1507 fi
1508
1509 fi
1510 fi
1511
1512 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1513 if test $ac_cv_header_stdc = yes; then
1514   cat >> confdefs.h <<\EOF
1515 #define STDC_HEADERS 1
1516 EOF
1517
1518 fi
1519
1520 echo $ac_n "checking for working const""... $ac_c" 1>&6
1521 echo "configure:1522: checking for working const" >&5
1522 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1523   echo $ac_n "(cached) $ac_c" 1>&6
1524 else
1525   cat > conftest.$ac_ext <<EOF
1526 #line 1527 "configure"
1527 #include "confdefs.h"
1528
1529 int main() {
1530
1531 /* Ultrix mips cc rejects this.  */
1532 typedef int charset[2]; const charset x = {0,0};
1533 /* SunOS 4.1.1 cc rejects this.  */
1534 char const *const *ccp;
1535 char **p;
1536 /* NEC SVR4.0.2 mips cc rejects this.  */
1537 struct point {int x, y;};
1538 static struct point const zero = {0,0};
1539 /* AIX XL C 1.02.0.0 rejects this.
1540    It does not let you subtract one const X* pointer from another in an arm
1541    of an if-expression whose if-part is not a constant expression */
1542 const char *g = "string";
1543 ccp = &g + (g ? g-g : 0);
1544 /* HPUX 7.0 cc rejects these. */
1545 ++ccp;
1546 p = (char**) ccp;
1547 ccp = (char const *const *) p;
1548 { /* SCO 3.2v4 cc rejects this.  */
1549   char *t;
1550   char const *s = 0 ? (char *) 0 : (char const *) 0;
1551
1552   *t++ = 0;
1553 }
1554 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1555   int x[] = {25, 17};
1556   const int *foo = &x[0];
1557   ++foo;
1558 }
1559 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1560   typedef const int *iptr;
1561   iptr p = 0;
1562   ++p;
1563 }
1564 { /* AIX XL C 1.02.0.0 rejects this saying
1565      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1566   struct s { int j; const int *ap[3]; };
1567   struct s *b; b->j = 5;
1568 }
1569 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1570   const int foo = 10;
1571 }
1572
1573 ; return 0; }
1574 EOF
1575 if { (eval echo configure:1576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1576   rm -rf conftest*
1577   ac_cv_c_const=yes
1578 else
1579   echo "configure: failed program was:" >&5
1580   cat conftest.$ac_ext >&5
1581   rm -rf conftest*
1582   ac_cv_c_const=no
1583 fi
1584 rm -f conftest*
1585 fi
1586
1587 echo "$ac_t""$ac_cv_c_const" 1>&6
1588 if test $ac_cv_c_const = no; then
1589   cat >> confdefs.h <<\EOF
1590 #define const 
1591 EOF
1592
1593 fi
1594
1595 echo $ac_n "checking for inline""... $ac_c" 1>&6
1596 echo "configure:1597: checking for inline" >&5
1597 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1598   echo $ac_n "(cached) $ac_c" 1>&6
1599 else
1600   ac_cv_c_inline=no
1601 for ac_kw in inline __inline__ __inline; do
1602   cat > conftest.$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1605
1606 int main() {
1607 } int $ac_kw foo() {
1608 ; return 0; }
1609 EOF
1610 if { (eval echo configure:1611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1611   rm -rf conftest*
1612   ac_cv_c_inline=$ac_kw; break
1613 else
1614   echo "configure: failed program was:" >&5
1615   cat conftest.$ac_ext >&5
1616 fi
1617 rm -f conftest*
1618 done
1619
1620 fi
1621
1622 echo "$ac_t""$ac_cv_c_inline" 1>&6
1623 case "$ac_cv_c_inline" in
1624   inline | yes) ;;
1625   no) cat >> confdefs.h <<\EOF
1626 #define inline 
1627 EOF
1628  ;;
1629   *)  cat >> confdefs.h <<EOF
1630 #define inline $ac_cv_c_inline
1631 EOF
1632  ;;
1633 esac
1634
1635 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1636 echo "configure:1637: checking for off_t" >&5
1637 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1638   echo $ac_n "(cached) $ac_c" 1>&6
1639 else
1640   cat > conftest.$ac_ext <<EOF
1641 #line 1642 "configure"
1642 #include "confdefs.h"
1643 #include <sys/types.h>
1644 #if STDC_HEADERS
1645 #include <stdlib.h>
1646 #include <stddef.h>
1647 #endif
1648 EOF
1649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1650   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1651   rm -rf conftest*
1652   ac_cv_type_off_t=yes
1653 else
1654   rm -rf conftest*
1655   ac_cv_type_off_t=no
1656 fi
1657 rm -f conftest*
1658
1659 fi
1660 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1661 if test $ac_cv_type_off_t = no; then
1662   cat >> confdefs.h <<\EOF
1663 #define off_t long
1664 EOF
1665
1666 fi
1667
1668 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1669 echo "configure:1670: checking for size_t" >&5
1670 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1671   echo $ac_n "(cached) $ac_c" 1>&6
1672 else
1673   cat > conftest.$ac_ext <<EOF
1674 #line 1675 "configure"
1675 #include "confdefs.h"
1676 #include <sys/types.h>
1677 #if STDC_HEADERS
1678 #include <stdlib.h>
1679 #include <stddef.h>
1680 #endif
1681 EOF
1682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1683   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1684   rm -rf conftest*
1685   ac_cv_type_size_t=yes
1686 else
1687   rm -rf conftest*
1688   ac_cv_type_size_t=no
1689 fi
1690 rm -f conftest*
1691
1692 fi
1693 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1694 if test $ac_cv_type_size_t = no; then
1695   cat >> confdefs.h <<\EOF
1696 #define size_t unsigned
1697 EOF
1698
1699 fi
1700
1701 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1702 # for constant arguments.  Useless!
1703 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1704 echo "configure:1705: checking for working alloca.h" >&5
1705 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1706   echo $ac_n "(cached) $ac_c" 1>&6
1707 else
1708   cat > conftest.$ac_ext <<EOF
1709 #line 1710 "configure"
1710 #include "confdefs.h"
1711 #include <alloca.h>
1712 int main() {
1713 void *p = alloca(2 * sizeof(int));
1714 ; return 0; }
1715 EOF
1716 if { (eval echo configure:1717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1717   rm -rf conftest*
1718   ac_cv_header_alloca_h=yes
1719 else
1720   echo "configure: failed program was:" >&5
1721   cat conftest.$ac_ext >&5
1722   rm -rf conftest*
1723   ac_cv_header_alloca_h=no
1724 fi
1725 rm -f conftest*
1726 fi
1727
1728 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1729 if test $ac_cv_header_alloca_h = yes; then
1730   cat >> confdefs.h <<\EOF
1731 #define HAVE_ALLOCA_H 1
1732 EOF
1733
1734 fi
1735
1736 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1737 echo "configure:1738: checking for alloca" >&5
1738 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1739   echo $ac_n "(cached) $ac_c" 1>&6
1740 else
1741   cat > conftest.$ac_ext <<EOF
1742 #line 1743 "configure"
1743 #include "confdefs.h"
1744
1745 #ifdef __GNUC__
1746 # define alloca __builtin_alloca
1747 #else
1748 # ifdef _MSC_VER
1749 #  include <malloc.h>
1750 #  define alloca _alloca
1751 # else
1752 #  if HAVE_ALLOCA_H
1753 #   include <alloca.h>
1754 #  else
1755 #   ifdef _AIX
1756  #pragma alloca
1757 #   else
1758 #    ifndef alloca /* predefined by HP cc +Olibcalls */
1759 char *alloca ();
1760 #    endif
1761 #   endif
1762 #  endif
1763 # endif
1764 #endif
1765
1766 int main() {
1767 char *p = (char *) alloca(1);
1768 ; return 0; }
1769 EOF
1770 if { (eval echo configure:1771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1771   rm -rf conftest*
1772   ac_cv_func_alloca_works=yes
1773 else
1774   echo "configure: failed program was:" >&5
1775   cat conftest.$ac_ext >&5
1776   rm -rf conftest*
1777   ac_cv_func_alloca_works=no
1778 fi
1779 rm -f conftest*
1780 fi
1781
1782 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1783 if test $ac_cv_func_alloca_works = yes; then
1784   cat >> confdefs.h <<\EOF
1785 #define HAVE_ALLOCA 1
1786 EOF
1787
1788 fi
1789
1790 if test $ac_cv_func_alloca_works = no; then
1791   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1792   # that cause trouble.  Some versions do not even contain alloca or
1793   # contain a buggy version.  If you still want to use their alloca,
1794   # use ar to extract alloca.o from them instead of compiling alloca.c.
1795   ALLOCA=alloca.${ac_objext}
1796   cat >> confdefs.h <<\EOF
1797 #define C_ALLOCA 1
1798 EOF
1799
1800
1801 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1802 echo "configure:1803: checking whether alloca needs Cray hooks" >&5
1803 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1804   echo $ac_n "(cached) $ac_c" 1>&6
1805 else
1806   cat > conftest.$ac_ext <<EOF
1807 #line 1808 "configure"
1808 #include "confdefs.h"
1809 #if defined(CRAY) && ! defined(CRAY2)
1810 webecray
1811 #else
1812 wenotbecray
1813 #endif
1814
1815 EOF
1816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1817   egrep "webecray" >/dev/null 2>&1; then
1818   rm -rf conftest*
1819   ac_cv_os_cray=yes
1820 else
1821   rm -rf conftest*
1822   ac_cv_os_cray=no
1823 fi
1824 rm -f conftest*
1825
1826 fi
1827
1828 echo "$ac_t""$ac_cv_os_cray" 1>&6
1829 if test $ac_cv_os_cray = yes; then
1830 for ac_func in _getb67 GETB67 getb67; do
1831   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1832 echo "configure:1833: checking for $ac_func" >&5
1833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1834   echo $ac_n "(cached) $ac_c" 1>&6
1835 else
1836   cat > conftest.$ac_ext <<EOF
1837 #line 1838 "configure"
1838 #include "confdefs.h"
1839 /* System header to define __stub macros and hopefully few prototypes,
1840     which can conflict with char $ac_func(); below.  */
1841 #include <assert.h>
1842 /* Override any gcc2 internal prototype to avoid an error.  */
1843 /* We use char because int might match the return type of a gcc2
1844     builtin and then its argument prototype would still apply.  */
1845 char $ac_func();
1846
1847 int main() {
1848
1849 /* The GNU C library defines this for functions which it implements
1850     to always fail with ENOSYS.  Some functions are actually named
1851     something starting with __ and the normal name is an alias.  */
1852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1853 choke me
1854 #else
1855 $ac_func();
1856 #endif
1857
1858 ; return 0; }
1859 EOF
1860 if { (eval echo configure:1861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1861   rm -rf conftest*
1862   eval "ac_cv_func_$ac_func=yes"
1863 else
1864   echo "configure: failed program was:" >&5
1865   cat conftest.$ac_ext >&5
1866   rm -rf conftest*
1867   eval "ac_cv_func_$ac_func=no"
1868 fi
1869 rm -f conftest*
1870 fi
1871
1872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1873   echo "$ac_t""yes" 1>&6
1874   cat >> confdefs.h <<EOF
1875 #define CRAY_STACKSEG_END $ac_func
1876 EOF
1877
1878   break
1879 else
1880   echo "$ac_t""no" 1>&6
1881 fi
1882
1883 done
1884 fi
1885
1886 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1887 echo "configure:1888: checking stack direction for C alloca" >&5
1888 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1889   echo $ac_n "(cached) $ac_c" 1>&6
1890 else
1891   if test "$cross_compiling" = yes; then
1892   ac_cv_c_stack_direction=0
1893 else
1894   cat > conftest.$ac_ext <<EOF
1895 #line 1896 "configure"
1896 #include "confdefs.h"
1897 find_stack_direction ()
1898 {
1899   static char *addr = 0;
1900   auto char dummy;
1901   if (addr == 0)
1902     {
1903       addr = &dummy;
1904       return find_stack_direction ();
1905     }
1906   else
1907     return (&dummy > addr) ? 1 : -1;
1908 }
1909 main ()
1910 {
1911   exit (find_stack_direction() < 0);
1912 }
1913 EOF
1914 if { (eval echo configure:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1915 then
1916   ac_cv_c_stack_direction=1
1917 else
1918   echo "configure: failed program was:" >&5
1919   cat conftest.$ac_ext >&5
1920   rm -fr conftest*
1921   ac_cv_c_stack_direction=-1
1922 fi
1923 rm -fr conftest*
1924 fi
1925
1926 fi
1927
1928 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1929 cat >> confdefs.h <<EOF
1930 #define STACK_DIRECTION $ac_cv_c_stack_direction
1931 EOF
1932
1933 fi
1934
1935 for ac_hdr in unistd.h
1936 do
1937 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1938 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1939 echo "configure:1940: checking for $ac_hdr" >&5
1940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1941   echo $ac_n "(cached) $ac_c" 1>&6
1942 else
1943   cat > conftest.$ac_ext <<EOF
1944 #line 1945 "configure"
1945 #include "confdefs.h"
1946 #include <$ac_hdr>
1947 EOF
1948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1949 { (eval echo configure:1950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1951 if test -z "$ac_err"; then
1952   rm -rf conftest*
1953   eval "ac_cv_header_$ac_safe=yes"
1954 else
1955   echo "$ac_err" >&5
1956   echo "configure: failed program was:" >&5
1957   cat conftest.$ac_ext >&5
1958   rm -rf conftest*
1959   eval "ac_cv_header_$ac_safe=no"
1960 fi
1961 rm -f conftest*
1962 fi
1963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1964   echo "$ac_t""yes" 1>&6
1965     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1966   cat >> confdefs.h <<EOF
1967 #define $ac_tr_hdr 1
1968 EOF
1969  
1970 else
1971   echo "$ac_t""no" 1>&6
1972 fi
1973 done
1974
1975 for ac_func in getpagesize
1976 do
1977 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1978 echo "configure:1979: checking for $ac_func" >&5
1979 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1980   echo $ac_n "(cached) $ac_c" 1>&6
1981 else
1982   cat > conftest.$ac_ext <<EOF
1983 #line 1984 "configure"
1984 #include "confdefs.h"
1985 /* System header to define __stub macros and hopefully few prototypes,
1986     which can conflict with char $ac_func(); below.  */
1987 #include <assert.h>
1988 /* Override any gcc2 internal prototype to avoid an error.  */
1989 /* We use char because int might match the return type of a gcc2
1990     builtin and then its argument prototype would still apply.  */
1991 char $ac_func();
1992
1993 int main() {
1994
1995 /* The GNU C library defines this for functions which it implements
1996     to always fail with ENOSYS.  Some functions are actually named
1997     something starting with __ and the normal name is an alias.  */
1998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1999 choke me
2000 #else
2001 $ac_func();
2002 #endif
2003
2004 ; return 0; }
2005 EOF
2006 if { (eval echo configure:2007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2007   rm -rf conftest*
2008   eval "ac_cv_func_$ac_func=yes"
2009 else
2010   echo "configure: failed program was:" >&5
2011   cat conftest.$ac_ext >&5
2012   rm -rf conftest*
2013   eval "ac_cv_func_$ac_func=no"
2014 fi
2015 rm -f conftest*
2016 fi
2017
2018 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2019   echo "$ac_t""yes" 1>&6
2020     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2021   cat >> confdefs.h <<EOF
2022 #define $ac_tr_func 1
2023 EOF
2024  
2025 else
2026   echo "$ac_t""no" 1>&6
2027 fi
2028 done
2029
2030 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2031 echo "configure:2032: checking for working mmap" >&5
2032 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2033   echo $ac_n "(cached) $ac_c" 1>&6
2034 else
2035   if test "$cross_compiling" = yes; then
2036   ac_cv_func_mmap_fixed_mapped=no
2037 else
2038   cat > conftest.$ac_ext <<EOF
2039 #line 2040 "configure"
2040 #include "confdefs.h"
2041
2042 /* Thanks to Mike Haertel and Jim Avera for this test.
2043    Here is a matrix of mmap possibilities:
2044         mmap private not fixed
2045         mmap private fixed at somewhere currently unmapped
2046         mmap private fixed at somewhere already mapped
2047         mmap shared not fixed
2048         mmap shared fixed at somewhere currently unmapped
2049         mmap shared fixed at somewhere already mapped
2050    For private mappings, we should verify that changes cannot be read()
2051    back from the file, nor mmap's back from the file at a different
2052    address.  (There have been systems where private was not correctly
2053    implemented like the infamous i386 svr4.0, and systems where the
2054    VM page cache was not coherent with the filesystem buffer cache
2055    like early versions of FreeBSD and possibly contemporary NetBSD.)
2056    For shared mappings, we should conversely verify that changes get
2057    propogated back to all the places they're supposed to be.
2058
2059    Grep wants private fixed already mapped.
2060    The main things grep needs to know about mmap are:
2061    * does it exist and is it safe to write into the mmap'd area
2062    * how to use it (BSD variants)  */
2063 #include <sys/types.h>
2064 #include <fcntl.h>
2065 #include <sys/mman.h>
2066 #include <stdlib.h>
2067 #include <sys/stat.h>
2068
2069 #ifdef HAVE_UNISTD_H
2070 # include <unistd.h>
2071 #endif
2072
2073 /* This mess was copied from the GNU getpagesize.h.  */
2074 #ifndef HAVE_GETPAGESIZE
2075
2076 /* Assume that all systems that can run configure have sys/param.h.  */
2077 # ifndef HAVE_SYS_PARAM_H
2078 #  define HAVE_SYS_PARAM_H 1
2079 # endif
2080
2081 # ifdef _SC_PAGESIZE
2082 #  define getpagesize() sysconf(_SC_PAGESIZE)
2083 # else /* no _SC_PAGESIZE */
2084 #  ifdef HAVE_SYS_PARAM_H
2085 #   include <sys/param.h>
2086 #   ifdef EXEC_PAGESIZE
2087 #    define getpagesize() EXEC_PAGESIZE
2088 #   else /* no EXEC_PAGESIZE */
2089 #    ifdef NBPG
2090 #     define getpagesize() NBPG * CLSIZE
2091 #     ifndef CLSIZE
2092 #      define CLSIZE 1
2093 #     endif /* no CLSIZE */
2094 #    else /* no NBPG */
2095 #     ifdef NBPC
2096 #      define getpagesize() NBPC
2097 #     else /* no NBPC */
2098 #      ifdef PAGESIZE
2099 #       define getpagesize() PAGESIZE
2100 #      endif /* PAGESIZE */
2101 #     endif /* no NBPC */
2102 #    endif /* no NBPG */
2103 #   endif /* no EXEC_PAGESIZE */
2104 #  else /* no HAVE_SYS_PARAM_H */
2105 #   define getpagesize() 8192   /* punt totally */
2106 #  endif /* no HAVE_SYS_PARAM_H */
2107 # endif /* no _SC_PAGESIZE */
2108
2109 #endif /* no HAVE_GETPAGESIZE */
2110
2111 #ifdef __cplusplus
2112 extern "C" { void *malloc(unsigned); }
2113 #else
2114 char *malloc();
2115 #endif
2116
2117 int
2118 main()
2119 {
2120         char *data, *data2, *data3;
2121         int i, pagesize;
2122         int fd;
2123
2124         pagesize = getpagesize();
2125
2126         /*
2127          * First, make a file with some known garbage in it.
2128          */
2129         data = (char*)malloc(pagesize);
2130         if (!data)
2131                 exit(1);
2132         for (i = 0; i < pagesize; ++i)
2133                 *(data + i) = rand();
2134         umask(0);
2135         fd = creat("conftestmmap", 0600);
2136         if (fd < 0)
2137                 exit(1);
2138         if (write(fd, data, pagesize) != pagesize)
2139                 exit(1);
2140         close(fd);
2141
2142         /*
2143          * Next, try to mmap the file at a fixed address which
2144          * already has something else allocated at it.  If we can,
2145          * also make sure that we see the same garbage.
2146          */
2147         fd = open("conftestmmap", O_RDWR);
2148         if (fd < 0)
2149                 exit(1);
2150         data2 = (char*)malloc(2 * pagesize);
2151         if (!data2)
2152                 exit(1);
2153         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2154         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2155             MAP_PRIVATE | MAP_FIXED, fd, 0L))
2156                 exit(1);
2157         for (i = 0; i < pagesize; ++i)
2158                 if (*(data + i) != *(data2 + i))
2159                         exit(1);
2160
2161         /*
2162          * Finally, make sure that changes to the mapped area
2163          * do not percolate back to the file as seen by read().
2164          * (This is a bug on some variants of i386 svr4.0.)
2165          */
2166         for (i = 0; i < pagesize; ++i)
2167                 *(data2 + i) = *(data2 + i) + 1;
2168         data3 = (char*)malloc(pagesize);
2169         if (!data3)
2170                 exit(1);
2171         if (read(fd, data3, pagesize) != pagesize)
2172                 exit(1);
2173         for (i = 0; i < pagesize; ++i)
2174                 if (*(data + i) != *(data3 + i))
2175                         exit(1);
2176         close(fd);
2177         unlink("conftestmmap");
2178         exit(0);
2179 }
2180
2181 EOF
2182 if { (eval echo configure:2183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2183 then
2184   ac_cv_func_mmap_fixed_mapped=yes
2185 else
2186   echo "configure: failed program was:" >&5
2187   cat conftest.$ac_ext >&5
2188   rm -fr conftest*
2189   ac_cv_func_mmap_fixed_mapped=no
2190 fi
2191 rm -fr conftest*
2192 fi
2193
2194 fi
2195
2196 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2197 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2198   cat >> confdefs.h <<\EOF
2199 #define HAVE_MMAP 1
2200 EOF
2201
2202 fi
2203
2204
2205     echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2206 echo "configure:2207: checking whether we are using the GNU C Library 2.1 or newer" >&5
2207 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2208   echo $ac_n "(cached) $ac_c" 1>&6
2209 else
2210   cat > conftest.$ac_ext <<EOF
2211 #line 2212 "configure"
2212 #include "confdefs.h"
2213
2214 #include <features.h>
2215 #ifdef __GNU_LIBRARY__
2216  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2217   Lucky GNU user
2218  #endif
2219 #endif
2220         
2221 EOF
2222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2223   egrep "Lucky GNU user" >/dev/null 2>&1; then
2224   rm -rf conftest*
2225   ac_cv_gnu_library_2_1=yes
2226 else
2227   rm -rf conftest*
2228   ac_cv_gnu_library_2_1=no
2229 fi
2230 rm -f conftest*
2231
2232       
2233     
2234 fi
2235
2236 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2237     
2238     GLIBC21="$ac_cv_gnu_library_2_1"
2239   
2240
2241                                     
2242    for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2243 stdlib.h string.h unistd.h sys/param.h
2244 do
2245 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2246 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2247 echo "configure:2248: checking for $ac_hdr" >&5
2248 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2249   echo $ac_n "(cached) $ac_c" 1>&6
2250 else
2251   cat > conftest.$ac_ext <<EOF
2252 #line 2253 "configure"
2253 #include "confdefs.h"
2254 #include <$ac_hdr>
2255 EOF
2256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2257 { (eval echo configure:2258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2259 if test -z "$ac_err"; then
2260   rm -rf conftest*
2261   eval "ac_cv_header_$ac_safe=yes"
2262 else
2263   echo "$ac_err" >&5
2264   echo "configure: failed program was:" >&5
2265   cat conftest.$ac_ext >&5
2266   rm -rf conftest*
2267   eval "ac_cv_header_$ac_safe=no"
2268 fi
2269 rm -f conftest*
2270 fi
2271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2272   echo "$ac_t""yes" 1>&6
2273     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2274   cat >> confdefs.h <<EOF
2275 #define $ac_tr_hdr 1
2276 EOF
2277  
2278 else
2279   echo "$ac_t""no" 1>&6
2280 fi
2281 done
2282
2283    for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2284 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2285 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2286 do
2287 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2288 echo "configure:2289: checking for $ac_func" >&5
2289 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2290   echo $ac_n "(cached) $ac_c" 1>&6
2291 else
2292   cat > conftest.$ac_ext <<EOF
2293 #line 2294 "configure"
2294 #include "confdefs.h"
2295 /* System header to define __stub macros and hopefully few prototypes,
2296     which can conflict with char $ac_func(); below.  */
2297 #include <assert.h>
2298 /* Override any gcc2 internal prototype to avoid an error.  */
2299 /* We use char because int might match the return type of a gcc2
2300     builtin and then its argument prototype would still apply.  */
2301 char $ac_func();
2302
2303 int main() {
2304
2305 /* The GNU C library defines this for functions which it implements
2306     to always fail with ENOSYS.  Some functions are actually named
2307     something starting with __ and the normal name is an alias.  */
2308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2309 choke me
2310 #else
2311 $ac_func();
2312 #endif
2313
2314 ; return 0; }
2315 EOF
2316 if { (eval echo configure:2317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2317   rm -rf conftest*
2318   eval "ac_cv_func_$ac_func=yes"
2319 else
2320   echo "configure: failed program was:" >&5
2321   cat conftest.$ac_ext >&5
2322   rm -rf conftest*
2323   eval "ac_cv_func_$ac_func=no"
2324 fi
2325 rm -f conftest*
2326 fi
2327
2328 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2329   echo "$ac_t""yes" 1>&6
2330     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2331   cat >> confdefs.h <<EOF
2332 #define $ac_tr_func 1
2333 EOF
2334  
2335 else
2336   echo "$ac_t""no" 1>&6
2337 fi
2338 done
2339
2340
2341    
2342     
2343   # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2344 if test "${with_libiconv_prefix+set}" = set; then
2345   withval="$with_libiconv_prefix"
2346   
2347     for dir in `echo "$withval" | tr : ' '`; do
2348       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2349       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2350     done
2351    
2352 fi
2353
2354
2355   echo $ac_n "checking for iconv""... $ac_c" 1>&6
2356 echo "configure:2357: checking for iconv" >&5
2357 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2358   echo $ac_n "(cached) $ac_c" 1>&6
2359 else
2360   
2361     am_cv_func_iconv="no, consider installing GNU libiconv"
2362     am_cv_lib_iconv=no
2363     cat > conftest.$ac_ext <<EOF
2364 #line 2365 "configure"
2365 #include "confdefs.h"
2366 #include <stdlib.h>
2367 #include <iconv.h>
2368 int main() {
2369 iconv_t cd = iconv_open("","");
2370        iconv(cd,NULL,NULL,NULL,NULL);
2371        iconv_close(cd);
2372 ; return 0; }
2373 EOF
2374 if { (eval echo configure:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2375   rm -rf conftest*
2376   am_cv_func_iconv=yes
2377 else
2378   echo "configure: failed program was:" >&5
2379   cat conftest.$ac_ext >&5
2380 fi
2381 rm -f conftest*
2382     if test "$am_cv_func_iconv" != yes; then
2383       am_save_LIBS="$LIBS"
2384       LIBS="$LIBS -liconv"
2385       cat > conftest.$ac_ext <<EOF
2386 #line 2387 "configure"
2387 #include "confdefs.h"
2388 #include <stdlib.h>
2389 #include <iconv.h>
2390 int main() {
2391 iconv_t cd = iconv_open("","");
2392          iconv(cd,NULL,NULL,NULL,NULL);
2393          iconv_close(cd);
2394 ; return 0; }
2395 EOF
2396 if { (eval echo configure:2397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2397   rm -rf conftest*
2398   am_cv_lib_iconv=yes
2399         am_cv_func_iconv=yes
2400 else
2401   echo "configure: failed program was:" >&5
2402   cat conftest.$ac_ext >&5
2403 fi
2404 rm -f conftest*
2405       LIBS="$am_save_LIBS"
2406     fi
2407   
2408 fi
2409
2410 echo "$ac_t""$am_cv_func_iconv" 1>&6
2411   if test "$am_cv_func_iconv" = yes; then
2412     cat >> confdefs.h <<\EOF
2413 #define HAVE_ICONV 1
2414 EOF
2415
2416     echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2417 echo "configure:2418: checking for iconv declaration" >&5
2418     if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2419   echo $ac_n "(cached) $ac_c" 1>&6
2420 else
2421   
2422       cat > conftest.$ac_ext <<EOF
2423 #line 2424 "configure"
2424 #include "confdefs.h"
2425
2426 #include <stdlib.h>
2427 #include <iconv.h>
2428 extern
2429 #ifdef __cplusplus
2430 "C"
2431 #endif
2432 #if defined(__STDC__) || defined(__cplusplus)
2433 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2434 #else
2435 size_t iconv();
2436 #endif
2437
2438 int main() {
2439
2440 ; return 0; }
2441 EOF
2442 if { (eval echo configure:2443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2443   rm -rf conftest*
2444   am_cv_proto_iconv_arg1=""
2445 else
2446   echo "configure: failed program was:" >&5
2447   cat conftest.$ac_ext >&5
2448   rm -rf conftest*
2449   am_cv_proto_iconv_arg1="const"
2450 fi
2451 rm -f conftest*
2452       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
2453 fi
2454
2455     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2456     echo "$ac_t""${ac_t:-
2457          }$am_cv_proto_iconv" 1>&6
2458     cat >> confdefs.h <<EOF
2459 #define ICONV_CONST $am_cv_proto_iconv_arg1
2460 EOF
2461
2462   fi
2463   LIBICONV=
2464   if test "$am_cv_lib_iconv" = yes; then
2465     LIBICONV="-liconv"
2466   fi
2467   
2468
2469    
2470   echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2471 echo "configure:2472: checking for nl_langinfo and CODESET" >&5
2472 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2473   echo $ac_n "(cached) $ac_c" 1>&6
2474 else
2475   cat > conftest.$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2478 #include <langinfo.h>
2479 int main() {
2480 char* cs = nl_langinfo(CODESET);
2481 ; return 0; }
2482 EOF
2483 if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2484   rm -rf conftest*
2485   am_cv_langinfo_codeset=yes
2486 else
2487   echo "configure: failed program was:" >&5
2488   cat conftest.$ac_ext >&5
2489   rm -rf conftest*
2490   am_cv_langinfo_codeset=no
2491 fi
2492 rm -f conftest*
2493     
2494 fi
2495
2496 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2497   if test $am_cv_langinfo_codeset = yes; then
2498     cat >> confdefs.h <<\EOF
2499 #define HAVE_LANGINFO_CODESET 1
2500 EOF
2501
2502   fi
2503
2504    if test $ac_cv_header_locale_h = yes; then
2505     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2506 echo "configure:2507: checking for LC_MESSAGES" >&5
2507 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2508   echo $ac_n "(cached) $ac_c" 1>&6
2509 else
2510   cat > conftest.$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2513 #include <locale.h>
2514 int main() {
2515 return LC_MESSAGES
2516 ; return 0; }
2517 EOF
2518 if { (eval echo configure:2519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2519   rm -rf conftest*
2520   am_cv_val_LC_MESSAGES=yes
2521 else
2522   echo "configure: failed program was:" >&5
2523   cat conftest.$ac_ext >&5
2524   rm -rf conftest*
2525   am_cv_val_LC_MESSAGES=no
2526 fi
2527 rm -f conftest*
2528 fi
2529
2530 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2531     if test $am_cv_val_LC_MESSAGES = yes; then
2532       cat >> confdefs.h <<\EOF
2533 #define HAVE_LC_MESSAGES 1
2534 EOF
2535
2536     fi
2537   fi
2538    echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2539 echo "configure:2540: checking whether NLS is requested" >&5
2540         # Check whether --enable-nls or --disable-nls was given.
2541 if test "${enable_nls+set}" = set; then
2542   enableval="$enable_nls"
2543   USE_NLS=$enableval
2544 else
2545   USE_NLS=yes
2546 fi
2547
2548     echo "$ac_t""$USE_NLS" 1>&6
2549     
2550
2551     BUILD_INCLUDED_LIBINTL=no
2552     USE_INCLUDED_LIBINTL=no
2553     INTLLIBS=
2554
2555         if test "$USE_NLS" = "yes"; then
2556       cat >> confdefs.h <<\EOF
2557 #define ENABLE_NLS 1
2558 EOF
2559
2560       echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2561 echo "configure:2562: checking whether included gettext is requested" >&5
2562       # Check whether --with-included-gettext or --without-included-gettext was given.
2563 if test "${with_included_gettext+set}" = set; then
2564   withval="$with_included_gettext"
2565   nls_cv_force_use_gnu_gettext=$withval
2566 else
2567   nls_cv_force_use_gnu_gettext=no
2568 fi
2569
2570       echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2571
2572       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2573       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2574                                 CATOBJEXT=NONE
2575
2576                 
2577         
2578
2579         ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2580 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2581 echo "configure:2582: checking for libintl.h" >&5
2582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2583   echo $ac_n "(cached) $ac_c" 1>&6
2584 else
2585   cat > conftest.$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2588 #include <libintl.h>
2589 EOF
2590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2591 { (eval echo configure:2592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2593 if test -z "$ac_err"; then
2594   rm -rf conftest*
2595   eval "ac_cv_header_$ac_safe=yes"
2596 else
2597   echo "$ac_err" >&5
2598   echo "configure: failed program was:" >&5
2599   cat conftest.$ac_ext >&5
2600   rm -rf conftest*
2601   eval "ac_cv_header_$ac_safe=no"
2602 fi
2603 rm -f conftest*
2604 fi
2605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2606   echo "$ac_t""yes" 1>&6
2607   echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2608 echo "configure:2609: checking for GNU gettext in libc" >&5
2609 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2610   echo $ac_n "(cached) $ac_c" 1>&6
2611 else
2612   cat > conftest.$ac_ext <<EOF
2613 #line 2614 "configure"
2614 #include "confdefs.h"
2615 #include <libintl.h>
2616 extern int _nl_msg_cat_cntr;
2617 int main() {
2618 bindtextdomain ("", "");
2619 return (int) gettext ("") + _nl_msg_cat_cntr
2620 ; return 0; }
2621 EOF
2622 if { (eval echo configure:2623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2623   rm -rf conftest*
2624   gt_cv_func_gnugettext1_libc=yes
2625 else
2626   echo "configure: failed program was:" >&5
2627   cat conftest.$ac_ext >&5
2628   rm -rf conftest*
2629   gt_cv_func_gnugettext1_libc=no
2630 fi
2631 rm -f conftest*
2632 fi
2633
2634 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2635
2636            if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2637              echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2638 echo "configure:2639: checking for GNU gettext in libintl" >&5
2639 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2640   echo $ac_n "(cached) $ac_c" 1>&6
2641 else
2642   gt_save_LIBS="$LIBS"
2643                 LIBS="$LIBS -lintl $LIBICONV"
2644                 cat > conftest.$ac_ext <<EOF
2645 #line 2646 "configure"
2646 #include "confdefs.h"
2647 #include <libintl.h>
2648 extern int _nl_msg_cat_cntr;
2649 int main() {
2650 bindtextdomain ("", "");
2651 return (int) gettext ("") + _nl_msg_cat_cntr
2652 ; return 0; }
2653 EOF
2654 if { (eval echo configure:2655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2655   rm -rf conftest*
2656   gt_cv_func_gnugettext1_libintl=yes
2657 else
2658   echo "configure: failed program was:" >&5
2659   cat conftest.$ac_ext >&5
2660   rm -rf conftest*
2661   gt_cv_func_gnugettext1_libintl=no
2662 fi
2663 rm -f conftest*
2664                 LIBS="$gt_save_LIBS"
2665 fi
2666
2667 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2668            fi
2669
2670                                            if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2671               || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2672                    && test "$PACKAGE" != gettext; }; then
2673              cat >> confdefs.h <<\EOF
2674 #define HAVE_GETTEXT 1
2675 EOF
2676
2677
2678              if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2679                                        INTLLIBS="-lintl $LIBICONV"
2680              fi
2681
2682              gt_save_LIBS="$LIBS"
2683              LIBS="$LIBS $INTLLIBS"
2684              for ac_func in dcgettext
2685 do
2686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2687 echo "configure:2688: checking for $ac_func" >&5
2688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2689   echo $ac_n "(cached) $ac_c" 1>&6
2690 else
2691   cat > conftest.$ac_ext <<EOF
2692 #line 2693 "configure"
2693 #include "confdefs.h"
2694 /* System header to define __stub macros and hopefully few prototypes,
2695     which can conflict with char $ac_func(); below.  */
2696 #include <assert.h>
2697 /* Override any gcc2 internal prototype to avoid an error.  */
2698 /* We use char because int might match the return type of a gcc2
2699     builtin and then its argument prototype would still apply.  */
2700 char $ac_func();
2701
2702 int main() {
2703
2704 /* The GNU C library defines this for functions which it implements
2705     to always fail with ENOSYS.  Some functions are actually named
2706     something starting with __ and the normal name is an alias.  */
2707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2708 choke me
2709 #else
2710 $ac_func();
2711 #endif
2712
2713 ; return 0; }
2714 EOF
2715 if { (eval echo configure:2716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2716   rm -rf conftest*
2717   eval "ac_cv_func_$ac_func=yes"
2718 else
2719   echo "configure: failed program was:" >&5
2720   cat conftest.$ac_ext >&5
2721   rm -rf conftest*
2722   eval "ac_cv_func_$ac_func=no"
2723 fi
2724 rm -f conftest*
2725 fi
2726
2727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2728   echo "$ac_t""yes" 1>&6
2729     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2730   cat >> confdefs.h <<EOF
2731 #define $ac_tr_func 1
2732 EOF
2733  
2734 else
2735   echo "$ac_t""no" 1>&6
2736 fi
2737 done
2738
2739              LIBS="$gt_save_LIBS"
2740
2741                      # Extract the first word of "msgfmt", so it can be a program name with args.
2742 set dummy msgfmt; ac_word=$2
2743 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2744 echo "configure:2745: checking for $ac_word" >&5
2745 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2746   echo $ac_n "(cached) $ac_c" 1>&6
2747 else
2748   case "$MSGFMT" in
2749   /*)
2750   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2751   ;;
2752   *)
2753   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2754   for ac_dir in $PATH; do
2755     test -z "$ac_dir" && ac_dir=.
2756     if test -f $ac_dir/$ac_word; then
2757       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2758         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2759         break
2760       fi
2761     fi
2762   done
2763   IFS="$ac_save_ifs"
2764   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2765   ;;
2766 esac
2767 fi
2768 MSGFMT="$ac_cv_path_MSGFMT"
2769 if test "$MSGFMT" != ":"; then
2770   echo "$ac_t""$MSGFMT" 1>&6
2771 else
2772   echo "$ac_t""no" 1>&6
2773 fi
2774
2775              # Extract the first word of "gmsgfmt", so it can be a program name with args.
2776 set dummy gmsgfmt; ac_word=$2
2777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2778 echo "configure:2779: checking for $ac_word" >&5
2779 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2780   echo $ac_n "(cached) $ac_c" 1>&6
2781 else
2782   case "$GMSGFMT" in
2783   /*)
2784   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2785   ;;
2786   ?:/*)                  
2787   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2788   ;;
2789   *)
2790   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2791   ac_dummy="$PATH"
2792   for ac_dir in $ac_dummy; do 
2793     test -z "$ac_dir" && ac_dir=.
2794     if test -f $ac_dir/$ac_word; then
2795       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2796       break
2797     fi
2798   done
2799   IFS="$ac_save_ifs"
2800   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2801   ;;
2802 esac
2803 fi
2804 GMSGFMT="$ac_cv_path_GMSGFMT"
2805 if test -n "$GMSGFMT"; then
2806   echo "$ac_t""$GMSGFMT" 1>&6
2807 else
2808   echo "$ac_t""no" 1>&6
2809 fi
2810
2811
2812                      # Extract the first word of "xgettext", so it can be a program name with args.
2813 set dummy xgettext; ac_word=$2
2814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2815 echo "configure:2816: checking for $ac_word" >&5
2816 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2817   echo $ac_n "(cached) $ac_c" 1>&6
2818 else
2819   case "$XGETTEXT" in
2820   /*)
2821   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2822   ;;
2823   *)
2824   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2825   for ac_dir in $PATH; do
2826     test -z "$ac_dir" && ac_dir=.
2827     if test -f $ac_dir/$ac_word; then
2828       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2829         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2830         break
2831       fi
2832     fi
2833   done
2834   IFS="$ac_save_ifs"
2835   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2836   ;;
2837 esac
2838 fi
2839 XGETTEXT="$ac_cv_path_XGETTEXT"
2840 if test "$XGETTEXT" != ":"; then
2841   echo "$ac_t""$XGETTEXT" 1>&6
2842 else
2843   echo "$ac_t""no" 1>&6
2844 fi
2845
2846
2847              CATOBJEXT=.gmo
2848            fi
2849         
2850 else
2851   echo "$ac_t""no" 1>&6
2852 fi
2853
2854
2855         if test "$CATOBJEXT" = "NONE"; then
2856                           nls_cv_use_gnu_gettext=yes
2857         fi
2858       fi
2859
2860       if test "$nls_cv_use_gnu_gettext" = "yes"; then
2861                 INTLOBJS="\$(GETTOBJS)"
2862         # Extract the first word of "msgfmt", so it can be a program name with args.
2863 set dummy msgfmt; ac_word=$2
2864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2865 echo "configure:2866: checking for $ac_word" >&5
2866 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2867   echo $ac_n "(cached) $ac_c" 1>&6
2868 else
2869   case "$MSGFMT" in
2870   /*)
2871   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2872   ;;
2873   *)
2874   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2875   for ac_dir in $PATH; do
2876     test -z "$ac_dir" && ac_dir=.
2877     if test -f $ac_dir/$ac_word; then
2878       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2879         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2880         break
2881       fi
2882     fi
2883   done
2884   IFS="$ac_save_ifs"
2885   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2886   ;;
2887 esac
2888 fi
2889 MSGFMT="$ac_cv_path_MSGFMT"
2890 if test "$MSGFMT" != ":"; then
2891   echo "$ac_t""$MSGFMT" 1>&6
2892 else
2893   echo "$ac_t""no" 1>&6
2894 fi
2895
2896         # Extract the first word of "gmsgfmt", so it can be a program name with args.
2897 set dummy gmsgfmt; ac_word=$2
2898 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2899 echo "configure:2900: checking for $ac_word" >&5
2900 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2901   echo $ac_n "(cached) $ac_c" 1>&6
2902 else
2903   case "$GMSGFMT" in
2904   /*)
2905   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2906   ;;
2907   ?:/*)                  
2908   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2909   ;;
2910   *)
2911   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2912   ac_dummy="$PATH"
2913   for ac_dir in $ac_dummy; do 
2914     test -z "$ac_dir" && ac_dir=.
2915     if test -f $ac_dir/$ac_word; then
2916       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2917       break
2918     fi
2919   done
2920   IFS="$ac_save_ifs"
2921   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2922   ;;
2923 esac
2924 fi
2925 GMSGFMT="$ac_cv_path_GMSGFMT"
2926 if test -n "$GMSGFMT"; then
2927   echo "$ac_t""$GMSGFMT" 1>&6
2928 else
2929   echo "$ac_t""no" 1>&6
2930 fi
2931
2932         # Extract the first word of "xgettext", so it can be a program name with args.
2933 set dummy xgettext; ac_word=$2
2934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2935 echo "configure:2936: checking for $ac_word" >&5
2936 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2937   echo $ac_n "(cached) $ac_c" 1>&6
2938 else
2939   case "$XGETTEXT" in
2940   /*)
2941   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2942   ;;
2943   *)
2944   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2945   for ac_dir in $PATH; do
2946     test -z "$ac_dir" && ac_dir=.
2947     if test -f $ac_dir/$ac_word; then
2948       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2949         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2950         break
2951       fi
2952     fi
2953   done
2954   IFS="$ac_save_ifs"
2955   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2956   ;;
2957 esac
2958 fi
2959 XGETTEXT="$ac_cv_path_XGETTEXT"
2960 if test "$XGETTEXT" != ":"; then
2961   echo "$ac_t""$XGETTEXT" 1>&6
2962 else
2963   echo "$ac_t""no" 1>&6
2964 fi
2965
2966         
2967         BUILD_INCLUDED_LIBINTL=yes
2968         USE_INCLUDED_LIBINTL=yes
2969         CATOBJEXT=.gmo
2970         INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2971         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2972       fi
2973
2974                   if test "$GMSGFMT" != ":"; then
2975                         if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2976           : ;
2977         else
2978           echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2979           GMSGFMT=":"
2980         fi
2981       fi
2982
2983                   if test "$XGETTEXT" != ":"; then
2984                         if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2985           : ;
2986         else
2987           echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2988           XGETTEXT=":"
2989         fi
2990       fi
2991
2992             POSUB=po
2993     fi
2994     
2995
2996
2997             if test "$PACKAGE" = gettext; then
2998       BUILD_INCLUDED_LIBINTL=yes
2999     fi
3000
3001                                             for ac_prog in bison
3002 do
3003 # Extract the first word of "$ac_prog", so it can be a program name with args.
3004 set dummy $ac_prog; ac_word=$2
3005 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3006 echo "configure:3007: checking for $ac_word" >&5
3007 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3008   echo $ac_n "(cached) $ac_c" 1>&6
3009 else
3010   if test -n "$INTLBISON"; then
3011   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3012 else
3013   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3014   ac_dummy="$PATH"
3015   for ac_dir in $ac_dummy; do
3016     test -z "$ac_dir" && ac_dir=.
3017     if test -f $ac_dir/$ac_word; then
3018       ac_cv_prog_INTLBISON="$ac_prog"
3019       break
3020     fi
3021   done
3022   IFS="$ac_save_ifs"
3023 fi
3024 fi
3025 INTLBISON="$ac_cv_prog_INTLBISON"
3026 if test -n "$INTLBISON"; then
3027   echo "$ac_t""$INTLBISON" 1>&6
3028 else
3029   echo "$ac_t""no" 1>&6
3030 fi
3031
3032 test -n "$INTLBISON" && break
3033 done
3034
3035     if test -z "$INTLBISON"; then
3036       ac_verc_fail=yes
3037     else
3038             echo $ac_n "checking version of bison""... $ac_c" 1>&6
3039 echo "configure:3040: checking version of bison" >&5
3040       ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3041       case $ac_prog_version in
3042         '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3043         1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3044            ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3045         *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3046       esac
3047       echo "$ac_t""$ac_prog_version" 1>&6
3048     fi
3049     if test $ac_verc_fail = yes; then
3050       INTLBISON=:
3051     fi
3052
3053                 for lang in $ALL_LINGUAS; do
3054       GMOFILES="$GMOFILES $lang.gmo"
3055       POFILES="$POFILES $lang.po"
3056     done
3057
3058         
3059     
3060     
3061     
3062     
3063     
3064     
3065     
3066     
3067
3068         nls_cv_header_intl=
3069     nls_cv_header_libgt=
3070
3071         DATADIRNAME=share
3072     
3073
3074         INSTOBJEXT=.mo
3075     
3076
3077         GENCAT=gencat
3078     
3079   
3080
3081    if test "x$CATOBJEXT" != "x"; then
3082      if test "x$ALL_LINGUAS" = "x"; then
3083        LINGUAS=
3084      else
3085        echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3086 echo "configure:3087: checking for catalogs to be installed" >&5
3087        NEW_LINGUAS=
3088        for presentlang in $ALL_LINGUAS; do
3089          useit=no
3090          for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3091            # Use the presentlang catalog if desiredlang is
3092            #   a. equal to presentlang, or
3093            #   b. a variant of presentlang (because in this case,
3094            #      presentlang can be used as a fallback for messages
3095            #      which are not translated in the desiredlang catalog).
3096            case "$desiredlang" in
3097              "$presentlang"*) useit=yes;;
3098            esac
3099          done
3100          if test $useit = yes; then
3101            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3102          fi
3103        done
3104        LINGUAS=$NEW_LINGUAS
3105        echo "$ac_t""$LINGUAS" 1>&6
3106      fi
3107
3108           if test -n "$LINGUAS"; then
3109        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3110      fi
3111    fi
3112
3113             MKINSTALLDIRS=
3114    if test -n "$ac_aux_dir"; then
3115      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3116    fi
3117    if test -z "$MKINSTALLDIRS"; then
3118      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3119    fi
3120    
3121
3122       INTL_LIBTOOL_SUFFIX_PREFIX=
3123    
3124   
3125
3126 # Find a good install program.  We prefer a C program (faster),
3127 # so one script is as good as another.  But avoid the broken or
3128 # incompatible versions:
3129 # SysV /etc/install, /usr/sbin/install
3130 # SunOS /usr/etc/install
3131 # IRIX /sbin/install
3132 # AIX /bin/install
3133 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3134 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3135 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3136 # ./install, which can be erroneously created by make from ./install.sh.
3137 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3138 echo "configure:3139: checking for a BSD compatible install" >&5
3139 if test -z "$INSTALL"; then
3140 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
3141   echo $ac_n "(cached) $ac_c" 1>&6
3142 else
3143     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
3144   for ac_dir in $PATH; do
3145     # Account for people who put trailing slashes in PATH elements.
3146     case "$ac_dir/" in
3147     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3148     *)
3149       # OSF1 and SCO ODT 3.0 have their own names for install.
3150       # Don't use installbsd from OSF since it installs stuff as root
3151       # by default.
3152       for ac_prog in ginstall scoinst install; do
3153         if test -f $ac_dir/$ac_prog; then
3154           if test $ac_prog = install &&
3155             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3156             # AIX install.  It has an incompatible calling convention.
3157             :
3158           else
3159             ac_cv_path_install="$ac_dir/$ac_prog -c"
3160             break 2
3161           fi
3162         fi
3163       done
3164       ;;
3165     esac
3166   done
3167   IFS="$ac_save_IFS"
3168
3169 fi
3170   if test "${ac_cv_path_install+set}" = set; then
3171     INSTALL="$ac_cv_path_install"
3172   else
3173     # As a last resort, use the slow shell script.  We don't cache a
3174     # path for INSTALL within a source directory, because that will
3175     # break other packages using the cache if that directory is
3176     # removed, or if the path is relative.
3177     INSTALL="$ac_install_sh"
3178   fi
3179 fi
3180 echo "$ac_t""$INSTALL" 1>&6
3181
3182 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3183 # It thinks the first close brace ends the variable substitution.
3184 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3185
3186 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3187
3188 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3189
3190
3191 vlc_LDFLAGS="${LDFLAGS}"
3192
3193 case "x${target_os}" in
3194   x)
3195     SYS=unknown
3196     ;;
3197   xlinux*)
3198     SYS=linux
3199     ;;
3200   xbsdi*)
3201     SYS=bsdi
3202     save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3203     dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
3204     vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
3205     ;;
3206   x*bsd*)
3207     SYS="${target_os}"
3208     save_CFLAGS="${save_CFLAGS} -pthread"; CFLAGS="${save_CFLAGS}"
3209     ;;
3210   xdarwin*)
3211     SYS=darwin
3212     save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"; CFLAGS="${save_CFLAGS}"
3213     vlc_LDFLAGS="${vlc_LDFLAGS} -all_load"
3214     ;;
3215   x*mingw32*)
3216     SYS=mingw32
3217     # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3218 set dummy ${ac_tool_prefix}windres; ac_word=$2
3219 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3220 echo "configure:3221: checking for $ac_word" >&5
3221 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3222   echo $ac_n "(cached) $ac_c" 1>&6
3223 else
3224   if test -n "$WINDRES"; then
3225   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3226 else
3227   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3228   ac_dummy="$PATH"
3229   for ac_dir in $ac_dummy; do
3230     test -z "$ac_dir" && ac_dir=.
3231     if test -f $ac_dir/$ac_word; then
3232       ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3233       break
3234     fi
3235   done
3236   IFS="$ac_save_ifs"
3237 fi
3238 fi
3239 WINDRES="$ac_cv_prog_WINDRES"
3240 if test -n "$WINDRES"; then
3241   echo "$ac_t""$WINDRES" 1>&6
3242 else
3243   echo "$ac_t""no" 1>&6
3244 fi
3245
3246
3247 if test -z "$ac_cv_prog_WINDRES"; then
3248 if test -n "$ac_tool_prefix"; then
3249   # Extract the first word of "windres", so it can be a program name with args.
3250 set dummy windres; ac_word=$2
3251 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3252 echo "configure:3253: checking for $ac_word" >&5
3253 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3254   echo $ac_n "(cached) $ac_c" 1>&6
3255 else
3256   if test -n "$WINDRES"; then
3257   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3258 else
3259   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3260   ac_dummy="$PATH"
3261   for ac_dir in $ac_dummy; do
3262     test -z "$ac_dir" && ac_dir=.
3263     if test -f $ac_dir/$ac_word; then
3264       ac_cv_prog_WINDRES="windres"
3265       break
3266     fi
3267   done
3268   IFS="$ac_save_ifs"
3269   test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3270 fi
3271 fi
3272 WINDRES="$ac_cv_prog_WINDRES"
3273 if test -n "$WINDRES"; then
3274   echo "$ac_t""$WINDRES" 1>&6
3275 else
3276   echo "$ac_t""no" 1>&6
3277 fi
3278
3279 else
3280   WINDRES=":"
3281 fi
3282 fi
3283
3284     save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"; CFLAGS="${save_CFLAGS}"
3285     vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
3286     vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
3287     ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
3288     ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
3289     http_LDFLAGS="${http_LDFLAGS} -lws2_32"
3290     rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
3291     ;;
3292   x*nto*)
3293     SYS=nto
3294     x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
3295     xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
3296     ;;
3297   xsolaris*)
3298     SYS=solaris
3299     ;;
3300   xbeos)
3301     SYS=beos
3302     save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"; CFLAGS="${save_CFLAGS}"
3303     vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
3304     plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
3305     beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
3306     ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3307     ;;
3308   x*)
3309     SYS="${target_os}"
3310     ;;
3311 esac
3312
3313 if test "x${SYS}" = "xmingw32"
3314 then
3315   plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
3316 else
3317   plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
3318   plugins_LDFLAGS="${plugins_LDFLAGS} -fPIC"
3319 fi
3320
3321 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"; CFLAGS="${save_CFLAGS}"
3322
3323 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll strndup
3324 do
3325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3326 echo "configure:3327: checking for $ac_func" >&5
3327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3328   echo $ac_n "(cached) $ac_c" 1>&6
3329 else
3330   cat > conftest.$ac_ext <<EOF
3331 #line 3332 "configure"
3332 #include "confdefs.h"
3333 /* System header to define __stub macros and hopefully few prototypes,
3334     which can conflict with char $ac_func(); below.  */
3335 #include <assert.h>
3336 /* Override any gcc2 internal prototype to avoid an error.  */
3337 /* We use char because int might match the return type of a gcc2
3338     builtin and then its argument prototype would still apply.  */
3339 char $ac_func();
3340
3341 int main() {
3342
3343 /* The GNU C library defines this for functions which it implements
3344     to always fail with ENOSYS.  Some functions are actually named
3345     something starting with __ and the normal name is an alias.  */
3346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3347 choke me
3348 #else
3349 $ac_func();
3350 #endif
3351
3352 ; return 0; }
3353 EOF
3354 if { (eval echo configure:3355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3355   rm -rf conftest*
3356   eval "ac_cv_func_$ac_func=yes"
3357 else
3358   echo "configure: failed program was:" >&5
3359   cat conftest.$ac_ext >&5
3360   rm -rf conftest*
3361   eval "ac_cv_func_$ac_func=no"
3362 fi
3363 rm -f conftest*
3364 fi
3365
3366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3367   echo "$ac_t""yes" 1>&6
3368     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3369   cat >> confdefs.h <<EOF
3370 #define $ac_tr_func 1
3371 EOF
3372  
3373 else
3374   echo "$ac_t""no" 1>&6
3375 fi
3376 done
3377
3378
3379 echo $ac_n "checking for connect""... $ac_c" 1>&6
3380 echo "configure:3381: checking for connect" >&5
3381 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3382   echo $ac_n "(cached) $ac_c" 1>&6
3383 else
3384   cat > conftest.$ac_ext <<EOF
3385 #line 3386 "configure"
3386 #include "confdefs.h"
3387 /* System header to define __stub macros and hopefully few prototypes,
3388     which can conflict with char connect(); below.  */
3389 #include <assert.h>
3390 /* Override any gcc2 internal prototype to avoid an error.  */
3391 /* We use char because int might match the return type of a gcc2
3392     builtin and then its argument prototype would still apply.  */
3393 char connect();
3394
3395 int main() {
3396
3397 /* The GNU C library defines this for functions which it implements
3398     to always fail with ENOSYS.  Some functions are actually named
3399     something starting with __ and the normal name is an alias.  */
3400 #if defined (__stub_connect) || defined (__stub___connect)
3401 choke me
3402 #else
3403 connect();
3404 #endif
3405
3406 ; return 0; }
3407 EOF
3408 if { (eval echo configure:3409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3409   rm -rf conftest*
3410   eval "ac_cv_func_connect=yes"
3411 else
3412   echo "configure: failed program was:" >&5
3413   cat conftest.$ac_ext >&5
3414   rm -rf conftest*
3415   eval "ac_cv_func_connect=no"
3416 fi
3417 rm -f conftest*
3418 fi
3419
3420 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3421   echo "$ac_t""yes" 1>&6
3422   :
3423 else
3424   echo "$ac_t""no" 1>&6
3425
3426   echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3427 echo "configure:3428: checking for connect in -lsocket" >&5
3428 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3430   echo $ac_n "(cached) $ac_c" 1>&6
3431 else
3432   ac_save_LIBS="$LIBS"
3433 LIBS="-lsocket  $LIBS"
3434 cat > conftest.$ac_ext <<EOF
3435 #line 3436 "configure"
3436 #include "confdefs.h"
3437 /* Override any gcc2 internal prototype to avoid an error.  */
3438 /* We use char because int might match the return type of a gcc2
3439     builtin and then its argument prototype would still apply.  */
3440 char connect();
3441
3442 int main() {
3443 connect()
3444 ; return 0; }
3445 EOF
3446 if { (eval echo configure:3447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3447   rm -rf conftest*
3448   eval "ac_cv_lib_$ac_lib_var=yes"
3449 else
3450   echo "configure: failed program was:" >&5
3451   cat conftest.$ac_ext >&5
3452   rm -rf conftest*
3453   eval "ac_cv_lib_$ac_lib_var=no"
3454 fi
3455 rm -f conftest*
3456 LIBS="$ac_save_LIBS"
3457
3458 fi
3459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3460   echo "$ac_t""yes" 1>&6
3461   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
3462     vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
3463
3464 else
3465   echo "$ac_t""no" 1>&6
3466 fi
3467
3468 fi
3469
3470 echo $ac_n "checking for send""... $ac_c" 1>&6
3471 echo "configure:3472: checking for send" >&5
3472 if eval "test \"`echo '$''{'ac_cv_func_send'+set}'`\" = set"; then
3473   echo $ac_n "(cached) $ac_c" 1>&6
3474 else
3475   cat > conftest.$ac_ext <<EOF
3476 #line 3477 "configure"
3477 #include "confdefs.h"
3478 /* System header to define __stub macros and hopefully few prototypes,
3479     which can conflict with char send(); below.  */
3480 #include <assert.h>
3481 /* Override any gcc2 internal prototype to avoid an error.  */
3482 /* We use char because int might match the return type of a gcc2
3483     builtin and then its argument prototype would still apply.  */
3484 char send();
3485
3486 int main() {
3487
3488 /* The GNU C library defines this for functions which it implements
3489     to always fail with ENOSYS.  Some functions are actually named
3490     something starting with __ and the normal name is an alias.  */
3491 #if defined (__stub_send) || defined (__stub___send)
3492 choke me
3493 #else
3494 send();
3495 #endif
3496
3497 ; return 0; }
3498 EOF
3499 if { (eval echo configure:3500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3500   rm -rf conftest*
3501   eval "ac_cv_func_send=yes"
3502 else
3503   echo "configure: failed program was:" >&5
3504   cat conftest.$ac_ext >&5
3505   rm -rf conftest*
3506   eval "ac_cv_func_send=no"
3507 fi
3508 rm -f conftest*
3509 fi
3510
3511 if eval "test \"`echo '$ac_cv_func_'send`\" = yes"; then
3512   echo "$ac_t""yes" 1>&6
3513   :
3514 else
3515   echo "$ac_t""no" 1>&6
3516
3517   echo $ac_n "checking for send in -lsocket""... $ac_c" 1>&6
3518 echo "configure:3519: checking for send in -lsocket" >&5
3519 ac_lib_var=`echo socket'_'send | sed 'y%./+-%__p_%'`
3520 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3521   echo $ac_n "(cached) $ac_c" 1>&6
3522 else
3523   ac_save_LIBS="$LIBS"
3524 LIBS="-lsocket  $LIBS"
3525 cat > conftest.$ac_ext <<EOF
3526 #line 3527 "configure"
3527 #include "confdefs.h"
3528 /* Override any gcc2 internal prototype to avoid an error.  */
3529 /* We use char because int might match the return type of a gcc2
3530     builtin and then its argument prototype would still apply.  */
3531 char send();
3532
3533 int main() {
3534 send()
3535 ; return 0; }
3536 EOF
3537 if { (eval echo configure:3538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3538   rm -rf conftest*
3539   eval "ac_cv_lib_$ac_lib_var=yes"
3540 else
3541   echo "configure: failed program was:" >&5
3542   cat conftest.$ac_ext >&5
3543   rm -rf conftest*
3544   eval "ac_cv_lib_$ac_lib_var=no"
3545 fi
3546 rm -f conftest*
3547 LIBS="$ac_save_LIBS"
3548
3549 fi
3550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3551   echo "$ac_t""yes" 1>&6
3552   http_LDFLAGS="${http_LDFLAGS} -lsocket"
3553
3554 else
3555   echo "$ac_t""no" 1>&6
3556 fi
3557
3558 fi
3559
3560 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3561 echo "configure:3562: checking for gethostbyname" >&5
3562 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3563   echo $ac_n "(cached) $ac_c" 1>&6
3564 else
3565   cat > conftest.$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3568 /* System header to define __stub macros and hopefully few prototypes,
3569     which can conflict with char gethostbyname(); below.  */
3570 #include <assert.h>
3571 /* Override any gcc2 internal prototype to avoid an error.  */
3572 /* We use char because int might match the return type of a gcc2
3573     builtin and then its argument prototype would still apply.  */
3574 char gethostbyname();
3575
3576 int main() {
3577
3578 /* The GNU C library defines this for functions which it implements
3579     to always fail with ENOSYS.  Some functions are actually named
3580     something starting with __ and the normal name is an alias.  */
3581 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3582 choke me
3583 #else
3584 gethostbyname();
3585 #endif
3586
3587 ; return 0; }
3588 EOF
3589 if { (eval echo configure:3590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3590   rm -rf conftest*
3591   eval "ac_cv_func_gethostbyname=yes"
3592 else
3593   echo "configure: failed program was:" >&5
3594   cat conftest.$ac_ext >&5
3595   rm -rf conftest*
3596   eval "ac_cv_func_gethostbyname=no"
3597 fi
3598 rm -f conftest*
3599 fi
3600
3601 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3602   echo "$ac_t""yes" 1>&6
3603   :
3604 else
3605   echo "$ac_t""no" 1>&6
3606
3607   echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3608 echo "configure:3609: checking for gethostbyname in -lnsl" >&5
3609 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3610 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3611   echo $ac_n "(cached) $ac_c" 1>&6
3612 else
3613   ac_save_LIBS="$LIBS"
3614 LIBS="-lnsl  $LIBS"
3615 cat > conftest.$ac_ext <<EOF
3616 #line 3617 "configure"
3617 #include "confdefs.h"
3618 /* Override any gcc2 internal prototype to avoid an error.  */
3619 /* We use char because int might match the return type of a gcc2
3620     builtin and then its argument prototype would still apply.  */
3621 char gethostbyname();
3622
3623 int main() {
3624 gethostbyname()
3625 ; return 0; }
3626 EOF
3627 if { (eval echo configure:3628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3628   rm -rf conftest*
3629   eval "ac_cv_lib_$ac_lib_var=yes"
3630 else
3631   echo "configure: failed program was:" >&5
3632   cat conftest.$ac_ext >&5
3633   rm -rf conftest*
3634   eval "ac_cv_lib_$ac_lib_var=no"
3635 fi
3636 rm -f conftest*
3637 LIBS="$ac_save_LIBS"
3638
3639 fi
3640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3641   echo "$ac_t""yes" 1>&6
3642   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
3643 else
3644   echo "$ac_t""no" 1>&6
3645 fi
3646
3647
3648 fi
3649
3650 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3651 echo "configure:3652: checking for gethostbyname" >&5
3652 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3653   echo $ac_n "(cached) $ac_c" 1>&6
3654 else
3655   cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3658 /* System header to define __stub macros and hopefully few prototypes,
3659     which can conflict with char gethostbyname(); below.  */
3660 #include <assert.h>
3661 /* Override any gcc2 internal prototype to avoid an error.  */
3662 /* We use char because int might match the return type of a gcc2
3663     builtin and then its argument prototype would still apply.  */
3664 char gethostbyname();
3665
3666 int main() {
3667
3668 /* The GNU C library defines this for functions which it implements
3669     to always fail with ENOSYS.  Some functions are actually named
3670     something starting with __ and the normal name is an alias.  */
3671 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3672 choke me
3673 #else
3674 gethostbyname();
3675 #endif
3676
3677 ; return 0; }
3678 EOF
3679 if { (eval echo configure:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3680   rm -rf conftest*
3681   eval "ac_cv_func_gethostbyname=yes"
3682 else
3683   echo "configure: failed program was:" >&5
3684   cat conftest.$ac_ext >&5
3685   rm -rf conftest*
3686   eval "ac_cv_func_gethostbyname=no"
3687 fi
3688 rm -f conftest*
3689 fi
3690
3691 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3692   echo "$ac_t""yes" 1>&6
3693   :
3694 else
3695   echo "$ac_t""no" 1>&6
3696
3697   echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3698 echo "configure:3699: checking for gethostbyname in -lbind" >&5
3699 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3700 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3701   echo $ac_n "(cached) $ac_c" 1>&6
3702 else
3703   ac_save_LIBS="$LIBS"
3704 LIBS="-lbind  $LIBS"
3705 cat > conftest.$ac_ext <<EOF
3706 #line 3707 "configure"
3707 #include "confdefs.h"
3708 /* Override any gcc2 internal prototype to avoid an error.  */
3709 /* We use char because int might match the return type of a gcc2
3710     builtin and then its argument prototype would still apply.  */
3711 char gethostbyname();
3712
3713 int main() {
3714 gethostbyname()
3715 ; return 0; }
3716 EOF
3717 if { (eval echo configure:3718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3718   rm -rf conftest*
3719   eval "ac_cv_lib_$ac_lib_var=yes"
3720 else
3721   echo "configure: failed program was:" >&5
3722   cat conftest.$ac_ext >&5
3723   rm -rf conftest*
3724   eval "ac_cv_lib_$ac_lib_var=no"
3725 fi
3726 rm -f conftest*
3727 LIBS="$ac_save_LIBS"
3728
3729 fi
3730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3731   echo "$ac_t""yes" 1>&6
3732   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
3733 else
3734   echo "$ac_t""no" 1>&6
3735 fi
3736
3737
3738 fi
3739
3740 have_nanosleep=0
3741 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3742 echo "configure:3743: checking for nanosleep" >&5
3743 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3744   echo $ac_n "(cached) $ac_c" 1>&6
3745 else
3746   cat > conftest.$ac_ext <<EOF
3747 #line 3748 "configure"
3748 #include "confdefs.h"
3749 /* System header to define __stub macros and hopefully few prototypes,
3750     which can conflict with char nanosleep(); below.  */
3751 #include <assert.h>
3752 /* Override any gcc2 internal prototype to avoid an error.  */
3753 /* We use char because int might match the return type of a gcc2
3754     builtin and then its argument prototype would still apply.  */
3755 char nanosleep();
3756
3757 int main() {
3758
3759 /* The GNU C library defines this for functions which it implements
3760     to always fail with ENOSYS.  Some functions are actually named
3761     something starting with __ and the normal name is an alias.  */
3762 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3763 choke me
3764 #else
3765 nanosleep();
3766 #endif
3767
3768 ; return 0; }
3769 EOF
3770 if { (eval echo configure:3771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3771   rm -rf conftest*
3772   eval "ac_cv_func_nanosleep=yes"
3773 else
3774   echo "configure: failed program was:" >&5
3775   cat conftest.$ac_ext >&5
3776   rm -rf conftest*
3777   eval "ac_cv_func_nanosleep=no"
3778 fi
3779 rm -f conftest*
3780 fi
3781
3782 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3783   echo "$ac_t""yes" 1>&6
3784   have_nanosleep=1
3785 else
3786   echo "$ac_t""no" 1>&6
3787
3788   echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3789 echo "configure:3790: checking for nanosleep in -lrt" >&5
3790 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3792   echo $ac_n "(cached) $ac_c" 1>&6
3793 else
3794   ac_save_LIBS="$LIBS"
3795 LIBS="-lrt  $LIBS"
3796 cat > conftest.$ac_ext <<EOF
3797 #line 3798 "configure"
3798 #include "confdefs.h"
3799 /* Override any gcc2 internal prototype to avoid an error.  */
3800 /* We use char because int might match the return type of a gcc2
3801     builtin and then its argument prototype would still apply.  */
3802 char nanosleep();
3803
3804 int main() {
3805 nanosleep()
3806 ; return 0; }
3807 EOF
3808 if { (eval echo configure:3809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3809   rm -rf conftest*
3810   eval "ac_cv_lib_$ac_lib_var=yes"
3811 else
3812   echo "configure: failed program was:" >&5
3813   cat conftest.$ac_ext >&5
3814   rm -rf conftest*
3815   eval "ac_cv_lib_$ac_lib_var=no"
3816 fi
3817 rm -f conftest*
3818 LIBS="$ac_save_LIBS"
3819
3820 fi
3821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3822   echo "$ac_t""yes" 1>&6
3823   vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"; have_nanosleep=1
3824 else
3825   echo "$ac_t""no" 1>&6
3826 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3827 echo "configure:3828: checking for nanosleep in -lposix4" >&5
3828 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3829 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3830   echo $ac_n "(cached) $ac_c" 1>&6
3831 else
3832   ac_save_LIBS="$LIBS"
3833 LIBS="-lposix4  $LIBS"
3834 cat > conftest.$ac_ext <<EOF
3835 #line 3836 "configure"
3836 #include "confdefs.h"
3837 /* Override any gcc2 internal prototype to avoid an error.  */
3838 /* We use char because int might match the return type of a gcc2
3839     builtin and then its argument prototype would still apply.  */
3840 char nanosleep();
3841
3842 int main() {
3843 nanosleep()
3844 ; return 0; }
3845 EOF
3846 if { (eval echo configure:3847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3847   rm -rf conftest*
3848   eval "ac_cv_lib_$ac_lib_var=yes"
3849 else
3850   echo "configure: failed program was:" >&5
3851   cat conftest.$ac_ext >&5
3852   rm -rf conftest*
3853   eval "ac_cv_lib_$ac_lib_var=no"
3854 fi
3855 rm -f conftest*
3856 LIBS="$ac_save_LIBS"
3857
3858 fi
3859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3860   echo "$ac_t""yes" 1>&6
3861   vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"; have_nanosleep=1
3862 else
3863   echo "$ac_t""no" 1>&6
3864 fi
3865
3866   
3867 fi
3868
3869
3870 fi
3871
3872 if test x$have_nanosleep = x1; then
3873   cat >> confdefs.h <<\EOF
3874 #define HAVE_NANOSLEEP 1
3875 EOF
3876
3877 fi
3878 # HP/UX port
3879 echo $ac_n "checking for sem_init in -lrt""... $ac_c" 1>&6
3880 echo "configure:3881: checking for sem_init in -lrt" >&5
3881 ac_lib_var=`echo rt'_'sem_init | sed 'y%./+-%__p_%'`
3882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3883   echo $ac_n "(cached) $ac_c" 1>&6
3884 else
3885   ac_save_LIBS="$LIBS"
3886 LIBS="-lrt  $LIBS"
3887 cat > conftest.$ac_ext <<EOF
3888 #line 3889 "configure"
3889 #include "confdefs.h"
3890 /* Override any gcc2 internal prototype to avoid an error.  */
3891 /* We use char because int might match the return type of a gcc2
3892     builtin and then its argument prototype would still apply.  */
3893 char sem_init();
3894
3895 int main() {
3896 sem_init()
3897 ; return 0; }
3898 EOF
3899 if { (eval echo configure:3900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3900   rm -rf conftest*
3901   eval "ac_cv_lib_$ac_lib_var=yes"
3902 else
3903   echo "configure: failed program was:" >&5
3904   cat conftest.$ac_ext >&5
3905   rm -rf conftest*
3906   eval "ac_cv_lib_$ac_lib_var=no"
3907 fi
3908 rm -f conftest*
3909 LIBS="$ac_save_LIBS"
3910
3911 fi
3912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3913   echo "$ac_t""yes" 1>&6
3914   vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
3915 else
3916   echo "$ac_t""no" 1>&6
3917 fi
3918
3919
3920 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3921 echo "configure:3922: checking for inet_aton" >&5
3922 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3923   echo $ac_n "(cached) $ac_c" 1>&6
3924 else
3925   cat > conftest.$ac_ext <<EOF
3926 #line 3927 "configure"
3927 #include "confdefs.h"
3928 /* System header to define __stub macros and hopefully few prototypes,
3929     which can conflict with char inet_aton(); below.  */
3930 #include <assert.h>
3931 /* Override any gcc2 internal prototype to avoid an error.  */
3932 /* We use char because int might match the return type of a gcc2
3933     builtin and then its argument prototype would still apply.  */
3934 char inet_aton();
3935
3936 int main() {
3937
3938 /* The GNU C library defines this for functions which it implements
3939     to always fail with ENOSYS.  Some functions are actually named
3940     something starting with __ and the normal name is an alias.  */
3941 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3942 choke me
3943 #else
3944 inet_aton();
3945 #endif
3946
3947 ; return 0; }
3948 EOF
3949 if { (eval echo configure:3950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3950   rm -rf conftest*
3951   eval "ac_cv_func_inet_aton=yes"
3952 else
3953   echo "configure: failed program was:" >&5
3954   cat conftest.$ac_ext >&5
3955   rm -rf conftest*
3956   eval "ac_cv_func_inet_aton=no"
3957 fi
3958 rm -f conftest*
3959 fi
3960
3961 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3962   echo "$ac_t""yes" 1>&6
3963   :
3964 else
3965   echo "$ac_t""no" 1>&6
3966
3967   echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3968 echo "configure:3969: checking for inet_aton in -lresolv" >&5
3969 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3971   echo $ac_n "(cached) $ac_c" 1>&6
3972 else
3973   ac_save_LIBS="$LIBS"
3974 LIBS="-lresolv  $LIBS"
3975 cat > conftest.$ac_ext <<EOF
3976 #line 3977 "configure"
3977 #include "confdefs.h"
3978 /* Override any gcc2 internal prototype to avoid an error.  */
3979 /* We use char because int might match the return type of a gcc2
3980     builtin and then its argument prototype would still apply.  */
3981 char inet_aton();
3982
3983 int main() {
3984 inet_aton()
3985 ; return 0; }
3986 EOF
3987 if { (eval echo configure:3988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3988   rm -rf conftest*
3989   eval "ac_cv_lib_$ac_lib_var=yes"
3990 else
3991   echo "configure: failed program was:" >&5
3992   cat conftest.$ac_ext >&5
3993   rm -rf conftest*
3994   eval "ac_cv_lib_$ac_lib_var=no"
3995 fi
3996 rm -f conftest*
3997 LIBS="$ac_save_LIBS"
3998
3999 fi
4000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4001   echo "$ac_t""yes" 1>&6
4002   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
4003 else
4004   echo "$ac_t""no" 1>&6
4005 fi
4006
4007
4008 fi
4009
4010 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
4011 echo "configure:4012: checking for textdomain" >&5
4012 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
4013   echo $ac_n "(cached) $ac_c" 1>&6
4014 else
4015   cat > conftest.$ac_ext <<EOF
4016 #line 4017 "configure"
4017 #include "confdefs.h"
4018 /* System header to define __stub macros and hopefully few prototypes,
4019     which can conflict with char textdomain(); below.  */
4020 #include <assert.h>
4021 /* Override any gcc2 internal prototype to avoid an error.  */
4022 /* We use char because int might match the return type of a gcc2
4023     builtin and then its argument prototype would still apply.  */
4024 char textdomain();
4025
4026 int main() {
4027
4028 /* The GNU C library defines this for functions which it implements
4029     to always fail with ENOSYS.  Some functions are actually named
4030     something starting with __ and the normal name is an alias.  */
4031 #if defined (__stub_textdomain) || defined (__stub___textdomain)
4032 choke me
4033 #else
4034 textdomain();
4035 #endif
4036
4037 ; return 0; }
4038 EOF
4039 if { (eval echo configure:4040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4040   rm -rf conftest*
4041   eval "ac_cv_func_textdomain=yes"
4042 else
4043   echo "configure: failed program was:" >&5
4044   cat conftest.$ac_ext >&5
4045   rm -rf conftest*
4046   eval "ac_cv_func_textdomain=no"
4047 fi
4048 rm -f conftest*
4049 fi
4050
4051 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
4052   echo "$ac_t""yes" 1>&6
4053   :
4054 else
4055   echo "$ac_t""no" 1>&6
4056
4057   echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
4058 echo "configure:4059: checking for textdomain in -lintl" >&5
4059 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
4060 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4061   echo $ac_n "(cached) $ac_c" 1>&6
4062 else
4063   ac_save_LIBS="$LIBS"
4064 LIBS="-lintl  $LIBS"
4065 cat > conftest.$ac_ext <<EOF
4066 #line 4067 "configure"
4067 #include "confdefs.h"
4068 /* Override any gcc2 internal prototype to avoid an error.  */
4069 /* We use char because int might match the return type of a gcc2
4070     builtin and then its argument prototype would still apply.  */
4071 char textdomain();
4072
4073 int main() {
4074 textdomain()
4075 ; return 0; }
4076 EOF
4077 if { (eval echo configure:4078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4078   rm -rf conftest*
4079   eval "ac_cv_lib_$ac_lib_var=yes"
4080 else
4081   echo "configure: failed program was:" >&5
4082   cat conftest.$ac_ext >&5
4083   rm -rf conftest*
4084   eval "ac_cv_lib_$ac_lib_var=no"
4085 fi
4086 rm -f conftest*
4087 LIBS="$ac_save_LIBS"
4088
4089 fi
4090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4091   echo "$ac_t""yes" 1>&6
4092   vlc_LDFLAGS="${vlc_LDFLAGS} -lintl"
4093     plugins_LDFLAGS="${plugins_LDFLAGS} -lintl"
4094   
4095 else
4096   echo "$ac_t""no" 1>&6
4097 fi
4098
4099
4100 fi
4101
4102
4103 NEED_GETOPT=0
4104 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4105 echo "configure:4106: checking for getopt_long" >&5
4106 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4107   echo $ac_n "(cached) $ac_c" 1>&6
4108 else
4109   cat > conftest.$ac_ext <<EOF
4110 #line 4111 "configure"
4111 #include "confdefs.h"
4112 /* System header to define __stub macros and hopefully few prototypes,
4113     which can conflict with char getopt_long(); below.  */
4114 #include <assert.h>
4115 /* Override any gcc2 internal prototype to avoid an error.  */
4116 /* We use char because int might match the return type of a gcc2
4117     builtin and then its argument prototype would still apply.  */
4118 char getopt_long();
4119
4120 int main() {
4121
4122 /* The GNU C library defines this for functions which it implements
4123     to always fail with ENOSYS.  Some functions are actually named
4124     something starting with __ and the normal name is an alias.  */
4125 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4126 choke me
4127 #else
4128 getopt_long();
4129 #endif
4130
4131 ; return 0; }
4132 EOF
4133 if { (eval echo configure:4134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4134   rm -rf conftest*
4135   eval "ac_cv_func_getopt_long=yes"
4136 else
4137   echo "configure: failed program was:" >&5
4138   cat conftest.$ac_ext >&5
4139   rm -rf conftest*
4140   eval "ac_cv_func_getopt_long=no"
4141 fi
4142 rm -f conftest*
4143 fi
4144
4145 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4146   echo "$ac_t""yes" 1>&6
4147   cat >> confdefs.h <<\EOF
4148 #define HAVE_GETOPT_LONG 1
4149 EOF
4150
4151 else
4152   echo "$ac_t""no" 1>&6
4153  # FreeBSD has a gnugetopt library for this:
4154   echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4155 echo "configure:4156: checking for getopt_long in -lgnugetopt" >&5
4156 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4158   echo $ac_n "(cached) $ac_c" 1>&6
4159 else
4160   ac_save_LIBS="$LIBS"
4161 LIBS="-lgnugetopt  $LIBS"
4162 cat > conftest.$ac_ext <<EOF
4163 #line 4164 "configure"
4164 #include "confdefs.h"
4165 /* Override any gcc2 internal prototype to avoid an error.  */
4166 /* We use char because int might match the return type of a gcc2
4167     builtin and then its argument prototype would still apply.  */
4168 char getopt_long();
4169
4170 int main() {
4171 getopt_long()
4172 ; return 0; }
4173 EOF
4174 if { (eval echo configure:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4175   rm -rf conftest*
4176   eval "ac_cv_lib_$ac_lib_var=yes"
4177 else
4178   echo "configure: failed program was:" >&5
4179   cat conftest.$ac_ext >&5
4180   rm -rf conftest*
4181   eval "ac_cv_lib_$ac_lib_var=no"
4182 fi
4183 rm -f conftest*
4184 LIBS="$ac_save_LIBS"
4185
4186 fi
4187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4188   echo "$ac_t""yes" 1>&6
4189   cat >> confdefs.h <<\EOF
4190 #define HAVE_GETOPT_LONG 1
4191 EOF
4192  vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
4193 else
4194   echo "$ac_t""no" 1>&6
4195 NEED_GETOPT=1
4196 fi
4197
4198 fi
4199
4200
4201 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4202 echo "configure:4203: checking return type of signal handlers" >&5
4203 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4204   echo $ac_n "(cached) $ac_c" 1>&6
4205 else
4206   cat > conftest.$ac_ext <<EOF
4207 #line 4208 "configure"
4208 #include "confdefs.h"
4209 #include <sys/types.h>
4210 #include <signal.h>
4211 #ifdef signal
4212 #undef signal
4213 #endif
4214 #ifdef __cplusplus
4215 extern "C" void (*signal (int, void (*)(int)))(int);
4216 #else
4217 void (*signal ()) ();
4218 #endif
4219
4220 int main() {
4221 int i;
4222 ; return 0; }
4223 EOF
4224 if { (eval echo configure:4225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4225   rm -rf conftest*
4226   ac_cv_type_signal=void
4227 else
4228   echo "configure: failed program was:" >&5
4229   cat conftest.$ac_ext >&5
4230   rm -rf conftest*
4231   ac_cv_type_signal=int
4232 fi
4233 rm -f conftest*
4234 fi
4235
4236 echo "$ac_t""$ac_cv_type_signal" 1>&6
4237 cat >> confdefs.h <<EOF
4238 #define RETSIGTYPE $ac_cv_type_signal
4239 EOF
4240
4241
4242 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4243 echo "configure:4244: checking for dlopen in -ldl" >&5
4244 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4245 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4246   echo $ac_n "(cached) $ac_c" 1>&6
4247 else
4248   ac_save_LIBS="$LIBS"
4249 LIBS="-ldl  $LIBS"
4250 cat > conftest.$ac_ext <<EOF
4251 #line 4252 "configure"
4252 #include "confdefs.h"
4253 /* Override any gcc2 internal prototype to avoid an error.  */
4254 /* We use char because int might match the return type of a gcc2
4255     builtin and then its argument prototype would still apply.  */
4256 char dlopen();
4257
4258 int main() {
4259 dlopen()
4260 ; return 0; }
4261 EOF
4262 if { (eval echo configure:4263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4263   rm -rf conftest*
4264   eval "ac_cv_lib_$ac_lib_var=yes"
4265 else
4266   echo "configure: failed program was:" >&5
4267   cat conftest.$ac_ext >&5
4268   rm -rf conftest*
4269   eval "ac_cv_lib_$ac_lib_var=no"
4270 fi
4271 rm -f conftest*
4272 LIBS="$ac_save_LIBS"
4273
4274 fi
4275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4276   echo "$ac_t""yes" 1>&6
4277   vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
4278 else
4279   echo "$ac_t""no" 1>&6
4280 fi
4281
4282 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4283 echo "configure:4284: checking for cos in -lm" >&5
4284 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4285 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4286   echo $ac_n "(cached) $ac_c" 1>&6
4287 else
4288   ac_save_LIBS="$LIBS"
4289 LIBS="-lm  $LIBS"
4290 cat > conftest.$ac_ext <<EOF
4291 #line 4292 "configure"
4292 #include "confdefs.h"
4293 /* Override any gcc2 internal prototype to avoid an error.  */
4294 /* We use char because int might match the return type of a gcc2
4295     builtin and then its argument prototype would still apply.  */
4296 char cos();
4297
4298 int main() {
4299 cos()
4300 ; return 0; }
4301 EOF
4302 if { (eval echo configure:4303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4303   rm -rf conftest*
4304   eval "ac_cv_lib_$ac_lib_var=yes"
4305 else
4306   echo "configure: failed program was:" >&5
4307   cat conftest.$ac_ext >&5
4308   rm -rf conftest*
4309   eval "ac_cv_lib_$ac_lib_var=no"
4310 fi
4311 rm -f conftest*
4312 LIBS="$ac_save_LIBS"
4313
4314 fi
4315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4316   echo "$ac_t""yes" 1>&6
4317   imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4318   filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
4319 else
4320   echo "$ac_t""no" 1>&6
4321 fi
4322
4323 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4324 echo "configure:4325: checking for pow in -lm" >&5
4325 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4326 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4327   echo $ac_n "(cached) $ac_c" 1>&6
4328 else
4329   ac_save_LIBS="$LIBS"
4330 LIBS="-lm  $LIBS"
4331 cat > conftest.$ac_ext <<EOF
4332 #line 4333 "configure"
4333 #include "confdefs.h"
4334 /* Override any gcc2 internal prototype to avoid an error.  */
4335 /* We use char because int might match the return type of a gcc2
4336     builtin and then its argument prototype would still apply.  */
4337 char pow();
4338
4339 int main() {
4340 pow()
4341 ; return 0; }
4342 EOF
4343 if { (eval echo configure:4344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4344   rm -rf conftest*
4345   eval "ac_cv_lib_$ac_lib_var=yes"
4346 else
4347   echo "configure: failed program was:" >&5
4348   cat conftest.$ac_ext >&5
4349   rm -rf conftest*
4350   eval "ac_cv_lib_$ac_lib_var=no"
4351 fi
4352 rm -f conftest*
4353 LIBS="$ac_save_LIBS"
4354
4355 fi
4356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4357   echo "$ac_t""yes" 1>&6
4358   ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
4359   imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
4360   imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
4361   imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
4362   chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
4363
4364 else
4365   echo "$ac_t""no" 1>&6
4366 fi
4367
4368
4369 THREAD_LIB=error
4370 if test "x${THREAD_LIB}" = "xerror"; then
4371   echo $ac_n "checking for main in -lpthread""... $ac_c" 1>&6
4372 echo "configure:4373: checking for main in -lpthread" >&5
4373 ac_lib_var=`echo pthread'_'main | sed 'y%./+-%__p_%'`
4374 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4375   echo $ac_n "(cached) $ac_c" 1>&6
4376 else
4377   ac_save_LIBS="$LIBS"
4378 LIBS="-lpthread  $LIBS"
4379 cat > conftest.$ac_ext <<EOF
4380 #line 4381 "configure"
4381 #include "confdefs.h"
4382
4383 int main() {
4384 main()
4385 ; return 0; }
4386 EOF
4387 if { (eval echo configure:4388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4388   rm -rf conftest*
4389   eval "ac_cv_lib_$ac_lib_var=yes"
4390 else
4391   echo "configure: failed program was:" >&5
4392   cat conftest.$ac_ext >&5
4393   rm -rf conftest*
4394   eval "ac_cv_lib_$ac_lib_var=no"
4395 fi
4396 rm -f conftest*
4397 LIBS="$ac_save_LIBS"
4398
4399 fi
4400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4401   echo "$ac_t""yes" 1>&6
4402   THREAD_LIB="-lpthread"
4403 else
4404   echo "$ac_t""no" 1>&6
4405 fi
4406
4407 fi
4408 if test "x${THREAD_LIB}" = "xerror"; then
4409   echo $ac_n "checking for main in -lpthreads""... $ac_c" 1>&6
4410 echo "configure:4411: checking for main in -lpthreads" >&5
4411 ac_lib_var=`echo pthreads'_'main | sed 'y%./+-%__p_%'`
4412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4413   echo $ac_n "(cached) $ac_c" 1>&6
4414 else
4415   ac_save_LIBS="$LIBS"
4416 LIBS="-lpthreads  $LIBS"
4417 cat > conftest.$ac_ext <<EOF
4418 #line 4419 "configure"
4419 #include "confdefs.h"
4420
4421 int main() {
4422 main()
4423 ; return 0; }
4424 EOF
4425 if { (eval echo configure:4426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4426   rm -rf conftest*
4427   eval "ac_cv_lib_$ac_lib_var=yes"
4428 else
4429   echo "configure: failed program was:" >&5
4430   cat conftest.$ac_ext >&5
4431   rm -rf conftest*
4432   eval "ac_cv_lib_$ac_lib_var=no"
4433 fi
4434 rm -f conftest*
4435 LIBS="$ac_save_LIBS"
4436
4437 fi
4438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4439   echo "$ac_t""yes" 1>&6
4440   THREAD_LIB="-lpthreads"
4441 else
4442   echo "$ac_t""no" 1>&6
4443 fi
4444
4445 fi
4446 if test "x${THREAD_LIB}" = "xerror"; then
4447   echo $ac_n "checking for main in -lc_r""... $ac_c" 1>&6
4448 echo "configure:4449: checking for main in -lc_r" >&5
4449 ac_lib_var=`echo c_r'_'main | sed 'y%./+-%__p_%'`
4450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4451   echo $ac_n "(cached) $ac_c" 1>&6
4452 else
4453   ac_save_LIBS="$LIBS"
4454 LIBS="-lc_r  $LIBS"
4455 cat > conftest.$ac_ext <<EOF
4456 #line 4457 "configure"
4457 #include "confdefs.h"
4458
4459 int main() {
4460 main()
4461 ; return 0; }
4462 EOF
4463 if { (eval echo configure:4464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4464   rm -rf conftest*
4465   eval "ac_cv_lib_$ac_lib_var=yes"
4466 else
4467   echo "configure: failed program was:" >&5
4468   cat conftest.$ac_ext >&5
4469   rm -rf conftest*
4470   eval "ac_cv_lib_$ac_lib_var=no"
4471 fi
4472 rm -f conftest*
4473 LIBS="$ac_save_LIBS"
4474
4475 fi
4476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4477   echo "$ac_t""yes" 1>&6
4478   THREAD_LIB="-lc_r"
4479 else
4480   echo "$ac_t""no" 1>&6
4481 fi
4482
4483 fi
4484 if test "x${THREAD_LIB}" = "xerror"; then
4485   echo $ac_n "checking for pthread_mutex_lock""... $ac_c" 1>&6
4486 echo "configure:4487: checking for pthread_mutex_lock" >&5
4487 if eval "test \"`echo '$''{'ac_cv_func_pthread_mutex_lock'+set}'`\" = set"; then
4488   echo $ac_n "(cached) $ac_c" 1>&6
4489 else
4490   cat > conftest.$ac_ext <<EOF
4491 #line 4492 "configure"
4492 #include "confdefs.h"
4493 /* System header to define __stub macros and hopefully few prototypes,
4494     which can conflict with char pthread_mutex_lock(); below.  */
4495 #include <assert.h>
4496 /* Override any gcc2 internal prototype to avoid an error.  */
4497 /* We use char because int might match the return type of a gcc2
4498     builtin and then its argument prototype would still apply.  */
4499 char pthread_mutex_lock();
4500
4501 int main() {
4502
4503 /* The GNU C library defines this for functions which it implements
4504     to always fail with ENOSYS.  Some functions are actually named
4505     something starting with __ and the normal name is an alias.  */
4506 #if defined (__stub_pthread_mutex_lock) || defined (__stub___pthread_mutex_lock)
4507 choke me
4508 #else
4509 pthread_mutex_lock();
4510 #endif
4511
4512 ; return 0; }
4513 EOF
4514 if { (eval echo configure:4515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4515   rm -rf conftest*
4516   eval "ac_cv_func_pthread_mutex_lock=yes"
4517 else
4518   echo "configure: failed program was:" >&5
4519   cat conftest.$ac_ext >&5
4520   rm -rf conftest*
4521   eval "ac_cv_func_pthread_mutex_lock=no"
4522 fi
4523 rm -f conftest*
4524 fi
4525
4526 if eval "test \"`echo '$ac_cv_func_'pthread_mutex_lock`\" = yes"; then
4527   echo "$ac_t""yes" 1>&6
4528   :
4529 else
4530   echo "$ac_t""no" 1>&6
4531 fi
4532
4533   THREAD_LIB=""
4534 fi
4535
4536 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4537 echo "configure:4538: checking for cthread_fork in -lthreads" >&5
4538 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4539 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4540   echo $ac_n "(cached) $ac_c" 1>&6
4541 else
4542   ac_save_LIBS="$LIBS"
4543 LIBS="-lthreads  $LIBS"
4544 cat > conftest.$ac_ext <<EOF
4545 #line 4546 "configure"
4546 #include "confdefs.h"
4547 /* Override any gcc2 internal prototype to avoid an error.  */
4548 /* We use char because int might match the return type of a gcc2
4549     builtin and then its argument prototype would still apply.  */
4550 char cthread_fork();
4551
4552 int main() {
4553 cthread_fork()
4554 ; return 0; }
4555 EOF
4556 if { (eval echo configure:4557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4557   rm -rf conftest*
4558   eval "ac_cv_lib_$ac_lib_var=yes"
4559 else
4560   echo "configure: failed program was:" >&5
4561   cat conftest.$ac_ext >&5
4562   rm -rf conftest*
4563   eval "ac_cv_lib_$ac_lib_var=no"
4564 fi
4565 rm -f conftest*
4566 LIBS="$ac_save_LIBS"
4567
4568 fi
4569 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4570   echo "$ac_t""yes" 1>&6
4571   THREAD_LIB="-lthreads"
4572 else
4573   echo "$ac_t""no" 1>&6
4574 fi
4575
4576
4577 cat > conftest.$ac_ext <<EOF
4578 #line 4579 "configure"
4579 #include "confdefs.h"
4580 #include <pthread.h>
4581 EOF
4582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4583   egrep "pthread_cond_t" >/dev/null 2>&1; then
4584   rm -rf conftest*
4585   
4586   cat >> confdefs.h <<\EOF
4587 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4588 EOF
4589
4590 fi
4591 rm -f conftest*
4592
4593 cat > conftest.$ac_ext <<EOF
4594 #line 4595 "configure"
4595 #include "confdefs.h"
4596 #include <pthread.h>
4597 EOF
4598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4599   egrep "pthread_once" >/dev/null 2>&1; then
4600   rm -rf conftest*
4601   
4602   cat >> confdefs.h <<\EOF
4603 #define PTHREAD_ONCE_IN_PTHREAD_H 1
4604 EOF
4605
4606 fi
4607 rm -f conftest*
4608
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4612 #include <strings.h>
4613 EOF
4614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4615   egrep "strncasecmp" >/dev/null 2>&1; then
4616   rm -rf conftest*
4617   
4618   cat >> confdefs.h <<\EOF
4619 #define STRNCASECMP_IN_STRINGS_H 1
4620 EOF
4621
4622 fi
4623 rm -f conftest*
4624
4625
4626 for ac_hdr in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
4627 do
4628 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4629 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4630 echo "configure:4631: checking for $ac_hdr" >&5
4631 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4632   echo $ac_n "(cached) $ac_c" 1>&6
4633 else
4634   cat > conftest.$ac_ext <<EOF
4635 #line 4636 "configure"
4636 #include "confdefs.h"
4637 #include <$ac_hdr>
4638 EOF
4639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4640 { (eval echo configure:4641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4642 if test -z "$ac_err"; then
4643   rm -rf conftest*
4644   eval "ac_cv_header_$ac_safe=yes"
4645 else
4646   echo "$ac_err" >&5
4647   echo "configure: failed program was:" >&5
4648   cat conftest.$ac_ext >&5
4649   rm -rf conftest*
4650   eval "ac_cv_header_$ac_safe=no"
4651 fi
4652 rm -f conftest*
4653 fi
4654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4655   echo "$ac_t""yes" 1>&6
4656     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4657   cat >> confdefs.h <<EOF
4658 #define $ac_tr_hdr 1
4659 EOF
4660  
4661 else
4662   echo "$ac_t""no" 1>&6
4663 fi
4664 done
4665
4666 for ac_hdr in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
4667 do
4668 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4669 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4670 echo "configure:4671: checking for $ac_hdr" >&5
4671 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4672   echo $ac_n "(cached) $ac_c" 1>&6
4673 else
4674   cat > conftest.$ac_ext <<EOF
4675 #line 4676 "configure"
4676 #include "confdefs.h"
4677 #include <$ac_hdr>
4678 EOF
4679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4680 { (eval echo configure:4681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4682 if test -z "$ac_err"; then
4683   rm -rf conftest*
4684   eval "ac_cv_header_$ac_safe=yes"
4685 else
4686   echo "$ac_err" >&5
4687   echo "configure: failed program was:" >&5
4688   cat conftest.$ac_ext >&5
4689   rm -rf conftest*
4690   eval "ac_cv_header_$ac_safe=no"
4691 fi
4692 rm -f conftest*
4693 fi
4694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4695   echo "$ac_t""yes" 1>&6
4696     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4697   cat >> confdefs.h <<EOF
4698 #define $ac_tr_hdr 1
4699 EOF
4700  
4701 else
4702   echo "$ac_t""no" 1>&6
4703 fi
4704 done
4705
4706 for ac_hdr in dlfcn.h image.h
4707 do
4708 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4709 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4710 echo "configure:4711: checking for $ac_hdr" >&5
4711 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4712   echo $ac_n "(cached) $ac_c" 1>&6
4713 else
4714   cat > conftest.$ac_ext <<EOF
4715 #line 4716 "configure"
4716 #include "confdefs.h"
4717 #include <$ac_hdr>
4718 EOF
4719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4720 { (eval echo configure:4721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4721 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4722 if test -z "$ac_err"; then
4723   rm -rf conftest*
4724   eval "ac_cv_header_$ac_safe=yes"
4725 else
4726   echo "$ac_err" >&5
4727   echo "configure: failed program was:" >&5
4728   cat conftest.$ac_ext >&5
4729   rm -rf conftest*
4730   eval "ac_cv_header_$ac_safe=no"
4731 fi
4732 rm -f conftest*
4733 fi
4734 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4735   echo "$ac_t""yes" 1>&6
4736     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4737   cat >> confdefs.h <<EOF
4738 #define $ac_tr_hdr 1
4739 EOF
4740  
4741 else
4742   echo "$ac_t""no" 1>&6
4743 fi
4744 done
4745
4746 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4747 do
4748 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4750 echo "configure:4751: checking for $ac_hdr" >&5
4751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4752   echo $ac_n "(cached) $ac_c" 1>&6
4753 else
4754   cat > conftest.$ac_ext <<EOF
4755 #line 4756 "configure"
4756 #include "confdefs.h"
4757 #include <$ac_hdr>
4758 EOF
4759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4760 { (eval echo configure:4761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4762 if test -z "$ac_err"; then
4763   rm -rf conftest*
4764   eval "ac_cv_header_$ac_safe=yes"
4765 else
4766   echo "$ac_err" >&5
4767   echo "configure: failed program was:" >&5
4768   cat conftest.$ac_ext >&5
4769   rm -rf conftest*
4770   eval "ac_cv_header_$ac_safe=no"
4771 fi
4772 rm -f conftest*
4773 fi
4774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4775   echo "$ac_t""yes" 1>&6
4776     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4777   cat >> confdefs.h <<EOF
4778 #define $ac_tr_hdr 1
4779 EOF
4780  
4781 else
4782   echo "$ac_t""no" 1>&6
4783 fi
4784 done
4785
4786 for ac_hdr in machine/param.h sys/shm.h
4787 do
4788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4790 echo "configure:4791: checking for $ac_hdr" >&5
4791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4792   echo $ac_n "(cached) $ac_c" 1>&6
4793 else
4794   cat > conftest.$ac_ext <<EOF
4795 #line 4796 "configure"
4796 #include "confdefs.h"
4797 #include <$ac_hdr>
4798 EOF
4799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4800 { (eval echo configure:4801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4802 if test -z "$ac_err"; then
4803   rm -rf conftest*
4804   eval "ac_cv_header_$ac_safe=yes"
4805 else
4806   echo "$ac_err" >&5
4807   echo "configure: failed program was:" >&5
4808   cat conftest.$ac_ext >&5
4809   rm -rf conftest*
4810   eval "ac_cv_header_$ac_safe=no"
4811 fi
4812 rm -f conftest*
4813 fi
4814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4815   echo "$ac_t""yes" 1>&6
4816     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4817   cat >> confdefs.h <<EOF
4818 #define $ac_tr_hdr 1
4819 EOF
4820  
4821 else
4822   echo "$ac_t""no" 1>&6
4823 fi
4824 done
4825
4826 for ac_hdr in linux/version.h
4827 do
4828 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4829 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4830 echo "configure:4831: checking for $ac_hdr" >&5
4831 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4832   echo $ac_n "(cached) $ac_c" 1>&6
4833 else
4834   cat > conftest.$ac_ext <<EOF
4835 #line 4836 "configure"
4836 #include "confdefs.h"
4837 #include <$ac_hdr>
4838 EOF
4839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4840 { (eval echo configure:4841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4842 if test -z "$ac_err"; then
4843   rm -rf conftest*
4844   eval "ac_cv_header_$ac_safe=yes"
4845 else
4846   echo "$ac_err" >&5
4847   echo "configure: failed program was:" >&5
4848   cat conftest.$ac_ext >&5
4849   rm -rf conftest*
4850   eval "ac_cv_header_$ac_safe=no"
4851 fi
4852 rm -f conftest*
4853 fi
4854 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4855   echo "$ac_t""yes" 1>&6
4856     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4857   cat >> confdefs.h <<EOF
4858 #define $ac_tr_hdr 1
4859 EOF
4860  
4861 else
4862   echo "$ac_t""no" 1>&6
4863 fi
4864 done
4865
4866
4867 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4868 echo "configure:4869: checking whether time.h and sys/time.h may both be included" >&5
4869 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4870   echo $ac_n "(cached) $ac_c" 1>&6
4871 else
4872   cat > conftest.$ac_ext <<EOF
4873 #line 4874 "configure"
4874 #include "confdefs.h"
4875 #include <sys/types.h>
4876 #include <sys/time.h>
4877 #include <time.h>
4878 int main() {
4879 struct tm *tp;
4880 ; return 0; }
4881 EOF
4882 if { (eval echo configure:4883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4883   rm -rf conftest*
4884   ac_cv_header_time=yes
4885 else
4886   echo "configure: failed program was:" >&5
4887   cat conftest.$ac_ext >&5
4888   rm -rf conftest*
4889   ac_cv_header_time=no
4890 fi
4891 rm -f conftest*
4892 fi
4893
4894 echo "$ac_t""$ac_cv_header_time" 1>&6
4895 if test $ac_cv_header_time = yes; then
4896   cat >> confdefs.h <<\EOF
4897 #define TIME_WITH_SYS_TIME 1
4898 EOF
4899
4900 fi
4901
4902
4903 cat > conftest.$ac_ext <<EOF
4904 #line 4905 "configure"
4905 #include "confdefs.h"
4906 #include <time.h>
4907 EOF
4908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4909   egrep "nanosleep" >/dev/null 2>&1; then
4910   rm -rf conftest*
4911   
4912   cat >> confdefs.h <<\EOF
4913 #define HAVE_DECL_NANOSLEEP 1
4914 EOF
4915
4916
4917 fi
4918 rm -f conftest*
4919
4920
4921 cat > conftest.$ac_ext <<EOF
4922 #line 4923 "configure"
4923 #include "confdefs.h"
4924 #include <sys/time.h>
4925 EOF
4926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4927   egrep "timespec" >/dev/null 2>&1; then
4928   rm -rf conftest*
4929   
4930   cat >> confdefs.h <<\EOF
4931 #define HAVE_STRUCT_TIMESPEC 1
4932 EOF
4933
4934
4935 fi
4936 rm -f conftest*
4937
4938
4939 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4940 do
4941 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4942 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4943 echo "configure:4944: checking for $ac_hdr" >&5
4944 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4945   echo $ac_n "(cached) $ac_c" 1>&6
4946 else
4947   cat > conftest.$ac_ext <<EOF
4948 #line 4949 "configure"
4949 #include "confdefs.h"
4950 #include <$ac_hdr>
4951 EOF
4952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4953 { (eval echo configure:4954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4955 if test -z "$ac_err"; then
4956   rm -rf conftest*
4957   eval "ac_cv_header_$ac_safe=yes"
4958 else
4959   echo "$ac_err" >&5
4960   echo "configure: failed program was:" >&5
4961   cat conftest.$ac_ext >&5
4962   rm -rf conftest*
4963   eval "ac_cv_header_$ac_safe=no"
4964 fi
4965 rm -f conftest*
4966 fi
4967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4968   echo "$ac_t""yes" 1>&6
4969     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4970   cat >> confdefs.h <<EOF
4971 #define $ac_tr_hdr 1
4972 EOF
4973  
4974 else
4975   echo "$ac_t""no" 1>&6
4976 fi
4977 done
4978
4979
4980 if test "x${x_includes}" = "xNONE"; then
4981   x_includes="/usr/X11R6/include"
4982 fi
4983 if test "x${x_libraries}" = "xNONE"; then
4984   x_libraries="/usr/X11R6/lib"
4985 fi
4986
4987 if test "x${SYS}" != "xmingw32"
4988 then
4989   CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
4990   for ac_hdr in X11/extensions/dpms.h
4991 do
4992 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4993 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4994 echo "configure:4995: checking for $ac_hdr" >&5
4995 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4996   echo $ac_n "(cached) $ac_c" 1>&6
4997 else
4998   cat > conftest.$ac_ext <<EOF
4999 #line 5000 "configure"
5000 #include "confdefs.h"
5001 #include <$ac_hdr>
5002 EOF
5003 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5004 { (eval echo configure:5005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5005 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5006 if test -z "$ac_err"; then
5007   rm -rf conftest*
5008   eval "ac_cv_header_$ac_safe=yes"
5009 else
5010   echo "$ac_err" >&5
5011   echo "configure: failed program was:" >&5
5012   cat conftest.$ac_ext >&5
5013   rm -rf conftest*
5014   eval "ac_cv_header_$ac_safe=no"
5015 fi
5016 rm -f conftest*
5017 fi
5018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5019   echo "$ac_t""yes" 1>&6
5020     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5021   cat >> confdefs.h <<EOF
5022 #define $ac_tr_hdr 1
5023 EOF
5024  
5025     cat > conftest.$ac_ext <<EOF
5026 #line 5027 "configure"
5027 #include "confdefs.h"
5028 #include <X11/extensions/dpms.h>
5029 EOF
5030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5031   egrep "DPMSInfo" >/dev/null 2>&1; then
5032   rm -rf conftest*
5033   
5034       cat >> confdefs.h <<\EOF
5035 #define DPMSINFO_IN_DPMS_H 1
5036 EOF
5037
5038     
5039 fi
5040 rm -f conftest*
5041
5042   
5043 else
5044   echo "$ac_t""no" 1>&6
5045 fi
5046 done
5047
5048   CPPFLAGS="${save_CPPFLAGS}"
5049 fi
5050
5051 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
5052 echo "configure:5053: checking for ntohl in sys/param.h" >&5
5053 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
5054   echo $ac_n "(cached) $ac_c" 1>&6
5055 else
5056   CFLAGS="${save_CFLAGS} -Wall -Werror"
5057      cat > conftest.$ac_ext <<EOF
5058 #line 5059 "configure"
5059 #include "confdefs.h"
5060 #include <sys/param.h>
5061 int main() {
5062 void foo() { int meuh; ntohl(meuh); }
5063 ; return 0; }
5064 EOF
5065 if { (eval echo configure:5066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5066   rm -rf conftest*
5067   ac_cv_c_ntohl_sys_param_h=yes
5068 else
5069   echo "configure: failed program was:" >&5
5070   cat conftest.$ac_ext >&5
5071   rm -rf conftest*
5072   ac_cv_c_ntohl_sys_param_h=no
5073 fi
5074 rm -f conftest*
5075 fi
5076
5077 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5078 if test "x${ac_cv_c_ntohl_sys_param_h}" != "xno"; then
5079     cat >> confdefs.h <<\EOF
5080 #define NTOHL_IN_SYS_PARAM_H 1
5081 EOF
5082
5083 fi
5084
5085 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5086 echo "configure:5087: checking if \$CC accepts -finline-limit" >&5
5087 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5088   echo $ac_n "(cached) $ac_c" 1>&6
5089 else
5090   CFLAGS="${save_CFLAGS} -finline-limit-30000"
5091      cat > conftest.$ac_ext <<EOF
5092 #line 5093 "configure"
5093 #include "confdefs.h"
5094
5095 int main() {
5096
5097 ; return 0; }
5098 EOF
5099 if { (eval echo configure:5100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5100   rm -rf conftest*
5101   ac_cv_c_inline_limit=yes
5102 else
5103   echo "configure: failed program was:" >&5
5104   cat conftest.$ac_ext >&5
5105   rm -rf conftest*
5106   ac_cv_c_inline_limit=no
5107 fi
5108 rm -f conftest*
5109 fi
5110
5111 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5112 if test "x${ac_cv_c_inline_limit}" != "xno"; then
5113     save_CFLAGS="${save_CFLAGS} -finline-limit-30000"; CFLAGS="${save_CFLAGS}"
5114 fi
5115
5116 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5117 echo "configure:5118: checking if \$CC accepts -Wall -Winline" >&5
5118 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5119   echo $ac_n "(cached) $ac_c" 1>&6
5120 else
5121   CFLAGS="-Wall -Winline ${save_CFLAGS}"
5122      cat > conftest.$ac_ext <<EOF
5123 #line 5124 "configure"
5124 #include "confdefs.h"
5125
5126 int main() {
5127
5128 ; return 0; }
5129 EOF
5130 if { (eval echo configure:5131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5131   rm -rf conftest*
5132   ac_cv_c_Wall_Winline=yes
5133 else
5134   echo "configure: failed program was:" >&5
5135   cat conftest.$ac_ext >&5
5136   rm -rf conftest*
5137   ac_cv_c_Wall_Winline=no
5138 fi
5139 rm -f conftest*
5140 fi
5141
5142 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5143 if test "x${ac_cv_c_Wall_Winline}" != "xno"; then
5144     save_CFLAGS="-Wall -Winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5145 else
5146     echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5147 echo "configure:5148: checking if \$CC accepts -wall -winline" >&5
5148 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5149   echo $ac_n "(cached) $ac_c" 1>&6
5150 else
5151   CFLAGS="-wall -winline ${save_CFLAGS}"
5152          cat > conftest.$ac_ext <<EOF
5153 #line 5154 "configure"
5154 #include "confdefs.h"
5155
5156 int main() {
5157
5158 ; return 0; }
5159 EOF
5160 if { (eval echo configure:5161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5161   rm -rf conftest*
5162   ac_cv_c_wall_winline=yes
5163 else
5164   echo "configure: failed program was:" >&5
5165   cat conftest.$ac_ext >&5
5166   rm -rf conftest*
5167   ac_cv_c_wall_winline=no
5168 fi
5169 rm -f conftest*
5170 fi
5171
5172 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5173     if test "x${ac_cv_c_wall_winline}" != "xno"; then
5174         save_CFLAGS="-wall -winline ${save_CFLAGS}"; CFLAGS="${save_CFLAGS}"
5175     fi
5176 fi
5177
5178 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5179 echo "configure:5180: checking if \$CC accepts -pipe" >&5
5180 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5181   echo $ac_n "(cached) $ac_c" 1>&6
5182 else
5183   CFLAGS="${save_CFLAGS} -pipe"
5184      cat > conftest.$ac_ext <<EOF
5185 #line 5186 "configure"
5186 #include "confdefs.h"
5187
5188 int main() {
5189
5190 ; return 0; }
5191 EOF
5192 if { (eval echo configure:5193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5193   rm -rf conftest*
5194   ac_cv_c_pipe=yes
5195 else
5196   echo "configure: failed program was:" >&5
5197   cat conftest.$ac_ext >&5
5198   rm -rf conftest*
5199   ac_cv_c_pipe=no
5200 fi
5201 rm -f conftest*
5202 fi
5203
5204 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5205 if test "x${ac_cv_c_pipe}" != "xno"; then
5206     save_CFLAGS="${save_CFLAGS} -pipe"; CFLAGS="${save_CFLAGS}"
5207 fi
5208
5209 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5210 echo "configure:5211: checking if \$CC accepts -O3" >&5
5211 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5212   echo $ac_n "(cached) $ac_c" 1>&6
5213 else
5214   CFLAGS="${save_CFLAGS} -O3"
5215      cat > conftest.$ac_ext <<EOF
5216 #line 5217 "configure"
5217 #include "confdefs.h"
5218
5219 int main() {
5220
5221 ; return 0; }
5222 EOF
5223 if { (eval echo configure:5224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5224   rm -rf conftest*
5225   ac_cv_c_o3=yes
5226 else
5227   echo "configure: failed program was:" >&5
5228   cat conftest.$ac_ext >&5
5229   rm -rf conftest*
5230   ac_cv_c_o3=no
5231 fi
5232 rm -f conftest*
5233 fi
5234
5235 echo "$ac_t""$ac_cv_c_o3" 1>&6
5236 if test "x${ac_cv_c_o3}" != "xno"; then
5237     CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5238 else
5239     echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5240 echo "configure:5241: checking if \$CC accepts -O2" >&5
5241 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5242   echo $ac_n "(cached) $ac_c" 1>&6
5243 else
5244   CFLAGS="${save_CFLAGS} -O2"
5245          cat > conftest.$ac_ext <<EOF
5246 #line 5247 "configure"
5247 #include "confdefs.h"
5248
5249 int main() {
5250
5251 ; return 0; }
5252 EOF
5253 if { (eval echo configure:5254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5254   rm -rf conftest*
5255   ac_cv_c_o2=yes
5256 else
5257   echo "configure: failed program was:" >&5
5258   cat conftest.$ac_ext >&5
5259   rm -rf conftest*
5260   ac_cv_c_o2=no
5261 fi
5262 rm -f conftest*
5263 fi
5264
5265 echo "$ac_t""$ac_cv_c_o2" 1>&6
5266     if test "x${ac_cv_c_o2}" != "xno"; then
5267         CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5268     else
5269         echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5270 echo "configure:5271: checking if \$CC accepts -O" >&5
5271 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5272   echo $ac_n "(cached) $ac_c" 1>&6
5273 else
5274   CFLAGS="${save_CFLAGS} -O"
5275              cat > conftest.$ac_ext <<EOF
5276 #line 5277 "configure"
5277 #include "confdefs.h"
5278
5279 int main() {
5280
5281 ; return 0; }
5282 EOF
5283 if { (eval echo configure:5284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5284   rm -rf conftest*
5285   ac_cv_c_o=yes
5286 else
5287   echo "configure: failed program was:" >&5
5288   cat conftest.$ac_ext >&5
5289   rm -rf conftest*
5290   ac_cv_c_o=no
5291 fi
5292 rm -f conftest*
5293 fi
5294
5295 echo "$ac_t""$ac_cv_c_o" 1>&6
5296         if test "x${ac_cv_c_o}" != "xno"; then
5297             CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5298         fi
5299     fi
5300 fi
5301
5302 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5303 echo "configure:5304: checking if \$CC accepts -ffast-math" >&5
5304 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5305   echo $ac_n "(cached) $ac_c" 1>&6
5306 else
5307   CFLAGS="${save_CFLAGS} -ffast-math"
5308      cat > conftest.$ac_ext <<EOF
5309 #line 5310 "configure"
5310 #include "confdefs.h"
5311
5312 int main() {
5313
5314 ; return 0; }
5315 EOF
5316 if { (eval echo configure:5317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5317   rm -rf conftest*
5318   ac_cv_c_fast_math=yes
5319 else
5320   echo "configure: failed program was:" >&5
5321   cat conftest.$ac_ext >&5
5322   rm -rf conftest*
5323   ac_cv_c_fast_math=no
5324 fi
5325 rm -f conftest*
5326 fi
5327
5328 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5329 if test "x${ac_cv_c_fast_math}" != "xno"; then
5330     CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5331 fi
5332
5333 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5334 echo "configure:5335: checking if \$CC accepts -funroll-loops" >&5
5335 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5336   echo $ac_n "(cached) $ac_c" 1>&6
5337 else
5338   CFLAGS="${save_CFLAGS} -funroll-loops"
5339      cat > conftest.$ac_ext <<EOF
5340 #line 5341 "configure"
5341 #include "confdefs.h"
5342
5343 int main() {
5344
5345 ; return 0; }
5346 EOF
5347 if { (eval echo configure:5348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5348   rm -rf conftest*
5349   ac_cv_c_unroll_loops=yes
5350 else
5351   echo "configure: failed program was:" >&5
5352   cat conftest.$ac_ext >&5
5353   rm -rf conftest*
5354   ac_cv_c_unroll_loops=no
5355 fi
5356 rm -f conftest*
5357 fi
5358
5359 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5360 if test "x${ac_cv_c_unroll_loops}" != "xno"; then
5361     CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5362 fi
5363
5364 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5365 echo "configure:5366: checking if \$CC accepts -fomit-frame-pointer" >&5
5366 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5367   echo $ac_n "(cached) $ac_c" 1>&6
5368 else
5369   CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5370      cat > conftest.$ac_ext <<EOF
5371 #line 5372 "configure"
5372 #include "confdefs.h"
5373
5374 int main() {
5375
5376 ; return 0; }
5377 EOF
5378 if { (eval echo configure:5379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5379   rm -rf conftest*
5380   ac_cv_c_omit_frame_pointer=yes
5381 else
5382   echo "configure: failed program was:" >&5
5383   cat conftest.$ac_ext >&5
5384   rm -rf conftest*
5385   ac_cv_c_omit_frame_pointer=no
5386 fi
5387 rm -f conftest*
5388 fi
5389
5390 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5391 if test "x${ac_cv_c_omit_frame_pointer}" != "xno"; then
5392     CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5393     # this plugin does not compile without -fomit-frame-pointer, damn gcc!
5394     i420_yuy2_mmx_CFLAGS="${i420_yuy2_mmx_CFLAGS} -fomit-frame-pointer"
5395 fi
5396
5397 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5398 echo "configure:5399: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5399 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5400   echo $ac_n "(cached) $ac_c" 1>&6
5401 else
5402   CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5403      cat > conftest.$ac_ext <<EOF
5404 #line 5405 "configure"
5405 #include "confdefs.h"
5406
5407 int main() {
5408
5409 ; return 0; }
5410 EOF
5411 if { (eval echo configure:5412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5412   rm -rf conftest*
5413   ac_cv_ld_darwin=yes
5414 else
5415   echo "configure: failed program was:" >&5
5416   cat conftest.$ac_ext >&5
5417   rm -rf conftest*
5418   ac_cv_ld_darwin=no
5419 fi
5420 rm -f conftest*
5421 fi
5422
5423 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5424 if test "x${ac_cv_ld_darwin}" != "xno"; then
5425     plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
5426 fi
5427
5428 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5429 echo "configure:5430: checking if \$CC accepts -shared" >&5
5430 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5431   echo $ac_n "(cached) $ac_c" 1>&6
5432 else
5433   CFLAGS="${save_CFLAGS} -shared"
5434      cat > conftest.$ac_ext <<EOF
5435 #line 5436 "configure"
5436 #include "confdefs.h"
5437
5438 int main() {
5439
5440 ; return 0; }
5441 EOF
5442 if { (eval echo configure:5443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5443   rm -rf conftest*
5444   ac_cv_ld_plugins=yes
5445 else
5446   echo "configure: failed program was:" >&5
5447   cat conftest.$ac_ext >&5
5448   rm -rf conftest*
5449   ac_cv_ld_plugins=no
5450 fi
5451 rm -f conftest*
5452 fi
5453
5454 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5455 if test "x${ac_cv_ld_plugins}" != "xno"; then
5456     plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
5457 fi
5458         
5459 echo $ac_n "checking for variadic cpp macros""... $ac_c" 1>&6
5460 echo "configure:5461: checking for variadic cpp macros" >&5
5461 if eval "test \"`echo '$''{'ac_cv_cpp_variadic_macros'+set}'`\" = set"; then
5462   echo $ac_n "(cached) $ac_c" 1>&6
5463 else
5464   CFLAGS="${save_CFLAGS}"
5465      cat > conftest.$ac_ext <<EOF
5466 #line 5467 "configure"
5467 #include "confdefs.h"
5468 #include <stdio.h>
5469           #define a(b,c...) printf(b,##c)
5470 int main() {
5471 a("foo");a("%s","bar");a("%s%s","baz","quux");
5472 ; return 0; }
5473 EOF
5474 if { (eval echo configure:5475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5475   rm -rf conftest*
5476   ac_cv_cpp_variadic_macros=yes
5477 else
5478   echo "configure: failed program was:" >&5
5479   cat conftest.$ac_ext >&5
5480   rm -rf conftest*
5481   ac_cv_cpp_variadic_macros=no
5482 fi
5483 rm -f conftest*
5484 fi
5485
5486 echo "$ac_t""$ac_cv_cpp_variadic_macros" 1>&6
5487 if test "x${ac_cv_cpp_variadic_macros}" != "xno"; then
5488     cat >> confdefs.h <<\EOF
5489 #define HAVE_VARIADIC_MACROS 1
5490 EOF
5491
5492 fi
5493
5494 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5495 echo "configure:5496: checking __attribute__ ((aligned ())) support" >&5
5496 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5497   echo $ac_n "(cached) $ac_c" 1>&6
5498 else
5499   ac_cv_c_attribute_aligned=0
5500         CFLAGS="${save_CFLAGS} -Werror"
5501     for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5502         cat > conftest.$ac_ext <<EOF
5503 #line 5504 "configure"
5504 #include "confdefs.h"
5505
5506 int main() {
5507 static char c __attribute__ ((aligned(${ac_cv_c_attr_align_try}))) = 0; return c;
5508 ; return 0; }
5509 EOF
5510 if { (eval echo configure:5511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5511   rm -rf conftest*
5512   ac_cv_c_attribute_aligned="${ac_cv_c_attr_align_try}"
5513 else
5514   echo "configure: failed program was:" >&5
5515   cat conftest.$ac_ext >&5
5516 fi
5517 rm -f conftest*
5518     done
5519         CFLAGS="${save_CFLAGS}"
5520 fi
5521
5522 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5523 if test "x${ac_cv_c_attribute_aligned}" != "x0"; then
5524     cat >> confdefs.h <<EOF
5525 #define ATTRIBUTE_ALIGNED_MAX ${ac_cv_c_attribute_aligned}
5526 EOF
5527
5528 fi
5529
5530 case "x${target_cpu}" in
5531   x)
5532     ARCH=unknown
5533     ;;
5534   *)
5535     ARCH="${target_cpu}"
5536     ;;
5537 esac
5538
5539 BUILTINS="${BUILTINS}"
5540 PLUGINS="${PLUGINS} misc/dummy/dummy misc/null/null"
5541 PLUGINS="${PLUGINS} control/rc/rc misc/logger/logger access/file access/udp access/http misc/network/ipv4 misc/memcpy/memcpy"
5542 PLUGINS="${PLUGINS} demux/mpeg/es demux/mpeg/audio demux/mpeg/ps demux/mpeg/ts"
5543 PLUGINS="${PLUGINS} codec/mpeg_video/idct/idct codec/mpeg_video/idct/idctclassic codec/mpeg_video/motion/motion codec/a52old/imdct/imdct codec/a52old/downmix/downmix codec/mpeg_audio/mpeg_audio codec/a52old/a52old codec/mpeg_video/mpeg_video codec/lpcm/lpcm codec/spdif/spdif codec/spudec/spudec"
5544 PLUGINS="${PLUGINS} video_filter/deinterlace/deinterlace video_filter/invert video_filter/wall video_filter/transform video_filter/distort video_filter/clone video_filter/crop"
5545 PLUGINS="${PLUGINS} visualization/scope/scope"
5546 PLUGINS="${PLUGINS} video_chroma/i420_rgb video_chroma/i420_yuy2 video_chroma/i422_yuy2 video_chroma/i420_ymga"
5547
5548 MMX_MODULES="misc/memcpy/memcpymmx codec/mpeg_video/idct/idctmmx codec/mpeg_video/motion/motionmmx video_chroma/i420_rgb_mmx video_chroma/i420_yuy2_mmx video_chroma/i422_yuy2_mmx video_chroma/i420_ymga_mmx"
5549 MMXEXT_MODULES="misc/memcpy/memcpymmxext codec/mpeg_video/idct/idctmmxext codec/mpeg_video/motion/motionmmxext"
5550 THREEDNOW_MODULES="misc/memcpy/memcpy3dn codec/a52old/imdct/imdct3dn codec/a52old/downmix/downmix3dn"
5551 SSE_MODULES="codec/a52old/imdct/imdctsse codec/a52old/downmix/downmixsse"
5552 ALTIVEC_MODULES="codec/mpeg_video/idct/idctaltivec codec/mpeg_video/motion/motionaltivec misc/memcpy/memcpyaltivec"
5553
5554 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5555 echo "configure:5556: checking if \$CC groks MMX inline assembly" >&5
5556 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5557   echo $ac_n "(cached) $ac_c" 1>&6
5558 else
5559   CFLAGS="${save_CFLAGS}"
5560      cat > conftest.$ac_ext <<EOF
5561 #line 5562 "configure"
5562 #include "confdefs.h"
5563
5564 int main() {
5565 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5566 ; return 0; }
5567 EOF
5568 if { (eval echo configure:5569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5569   rm -rf conftest*
5570   ac_cv_mmx_inline=yes
5571 else
5572   echo "configure: failed program was:" >&5
5573   cat conftest.$ac_ext >&5
5574   rm -rf conftest*
5575   ac_cv_mmx_inline=no
5576 fi
5577 rm -f conftest*
5578 fi
5579
5580 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5581 if test "x${ac_cv_mmx_inline}" != "xno"; then
5582   ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5583 fi
5584
5585 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5586 echo "configure:5587: checking if \$CC groks MMX EXT inline assembly" >&5
5587 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5588   echo $ac_n "(cached) $ac_c" 1>&6
5589 else
5590   CFLAGS="${save_CFLAGS}"
5591      cat > conftest.$ac_ext <<EOF
5592 #line 5593 "configure"
5593 #include "confdefs.h"
5594
5595 int main() {
5596 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5597 ; return 0; }
5598 EOF
5599 if { (eval echo configure:5600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5600   rm -rf conftest*
5601   ac_cv_mmxext_inline=yes
5602 else
5603   echo "configure: failed program was:" >&5
5604   cat conftest.$ac_ext >&5
5605   rm -rf conftest*
5606   ac_cv_mmxext_inline=no
5607 fi
5608 rm -f conftest*
5609 fi
5610
5611 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5612 if test "x${ac_cv_mmxext_inline}" != "xno"; then
5613   ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5614 fi
5615
5616 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5617 echo "configure:5618: checking if \$CC groks 3D Now! inline assembly" >&5
5618 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5619   echo $ac_n "(cached) $ac_c" 1>&6
5620 else
5621   CFLAGS="${save_CFLAGS}"
5622      cat > conftest.$ac_ext <<EOF
5623 #line 5624 "configure"
5624 #include "confdefs.h"
5625
5626 int main() {
5627 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5628 ; return 0; }
5629 EOF
5630 if { (eval echo configure:5631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5631   rm -rf conftest*
5632   ac_cv_3dnow_inline=yes
5633 else
5634   echo "configure: failed program was:" >&5
5635   cat conftest.$ac_ext >&5
5636   rm -rf conftest*
5637   ac_cv_3dnow_inline=no
5638 fi
5639 rm -f conftest*
5640 fi
5641
5642 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5643 if test "x${ac_cv_3dnow_inline}" != "xno"; then
5644   cat >> confdefs.h <<\EOF
5645 #define CAN_COMPILE_3DNOW 1
5646 EOF
5647
5648   ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5649 fi
5650
5651 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5652 echo "configure:5653: checking if \$CC groks SSE inline assembly" >&5
5653 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5654   echo $ac_n "(cached) $ac_c" 1>&6
5655 else
5656   CFLAGS="${save_CFLAGS}"
5657      cat > conftest.$ac_ext <<EOF
5658 #line 5659 "configure"
5659 #include "confdefs.h"
5660
5661 int main() {
5662 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5663 ; return 0; }
5664 EOF
5665 if { (eval echo configure:5666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5666   rm -rf conftest*
5667   ac_cv_sse_inline=yes
5668 else
5669   echo "configure: failed program was:" >&5
5670   cat conftest.$ac_ext >&5
5671   rm -rf conftest*
5672   ac_cv_sse_inline=no
5673 fi
5674 rm -f conftest*
5675 fi
5676
5677 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5678 if test "x${ac_cv_sse_inline}" != "xno" -a "x${SYS}" != "xmingw32"; then
5679   cat >> confdefs.h <<\EOF
5680 #define CAN_COMPILE_SSE 1
5681 EOF
5682
5683   ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5684 fi
5685
5686 # don't try to grok AltiVec with native mingw32 it doesn't work right now
5687 # we should be able to remove this test with future versions of mingw32
5688 if test "x${SYS}" != "xmingw32"; then
5689 echo $ac_n "checking if \$CC groks AltiVec inline assembly""... $ac_c" 1>&6
5690 echo "configure:5691: checking if \$CC groks AltiVec inline assembly" >&5
5691 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5692   echo $ac_n "(cached) $ac_c" 1>&6
5693 else
5694   CFLAGS="${save_CFLAGS}"
5695      cat > conftest.$ac_ext <<EOF
5696 #line 5697 "configure"
5697 #include "confdefs.h"
5698
5699 int main() {
5700 asm volatile("vperm 0,1,2,3");
5701 ; return 0; }
5702 EOF
5703 if { (eval echo configure:5704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5704   rm -rf conftest*
5705   ac_cv_altivec_inline=yes
5706 else
5707   echo "configure: failed program was:" >&5
5708   cat conftest.$ac_ext >&5
5709   rm -rf conftest*
5710   CFLAGS="${save_CFLAGS} -Wa,-m7400"
5711           cat > conftest.$ac_ext <<EOF
5712 #line 5713 "configure"
5713 #include "confdefs.h"
5714
5715 int main() {
5716 asm volatile("vperm 0,1,2,3");
5717 ; return 0; }
5718 EOF
5719 if { (eval echo configure:5720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5720   rm -rf conftest*
5721   ac_cv_altivec_inline="-Wa,-m7400"
5722 else
5723   echo "configure: failed program was:" >&5
5724   cat conftest.$ac_ext >&5
5725   rm -rf conftest*
5726   ac_cv_altivec_inline=no
5727 fi
5728 rm -f conftest*
5729          
5730 fi
5731 rm -f conftest*
5732 fi
5733
5734 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5735 if test "x${ac_cv_altivec_inline}" != "xno"; then
5736   cat >> confdefs.h <<\EOF
5737 #define CAN_COMPILE_ALTIVEC 1
5738 EOF
5739
5740   if test "x${ac_cv_altivec_inline}" != "xyes"; then
5741     idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5742     motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5743     memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_altivec_inline}"
5744     vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_altivec_inline}"
5745   fi
5746   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5747 fi
5748
5749 echo $ac_n "checking if \$CC groks AltiVec C extensions""... $ac_c" 1>&6
5750 echo "configure:5751: checking if \$CC groks AltiVec C extensions" >&5
5751 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5752   echo $ac_n "(cached) $ac_c" 1>&6
5753 else
5754   CFLAGS="${save_CFLAGS} -faltivec"
5755      # Darwin test
5756      cat > conftest.$ac_ext <<EOF
5757 #line 5758 "configure"
5758 #include "confdefs.h"
5759
5760 int main() {
5761 vec_mtvscr((vector unsigned int)(0));
5762 ; return 0; }
5763 EOF
5764 if { (eval echo configure:5765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5765   rm -rf conftest*
5766   ac_cv_c_altivec=-faltivec
5767 else
5768   echo "configure: failed program was:" >&5
5769   cat conftest.$ac_ext >&5
5770   rm -rf conftest*
5771   
5772         # Linux/PPC test
5773         CFLAGS="${save_CFLAGS} ${idctaltivec_CFLAGS} -fvec"
5774         cat > conftest.$ac_ext <<EOF
5775 #line 5776 "configure"
5776 #include "confdefs.h"
5777
5778 int main() {
5779 vec_mtvscr((vector unsigned int)(0));
5780 ; return 0; }
5781 EOF
5782 if { (eval echo configure:5783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5783   rm -rf conftest*
5784   ac_cv_c_altivec="-fvec"
5785 else
5786   echo "configure: failed program was:" >&5
5787   cat conftest.$ac_ext >&5
5788   rm -rf conftest*
5789   ac_cv_c_altivec=no
5790 fi
5791 rm -f conftest*
5792         
5793 fi
5794 rm -f conftest*
5795      CFLAGS="${save_CFLAGS}"
5796 fi
5797
5798 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5799 if test "x${ac_cv_c_altivec}" != "xno"; then
5800   cat >> confdefs.h <<\EOF
5801 #define CAN_COMPILE_C_ALTIVEC 1
5802 EOF
5803
5804   idctaltivec_CFLAGS="${idctaltivec_CFLAGS} ${ac_cv_c_altivec}"
5805   motionaltivec_CFLAGS="${motionaltivec_CFLAGS} ${ac_cv_c_altivec}"
5806   memcpyaltivec_CFLAGS="${memcpyaltivec_CFLAGS} ${ac_cv_c_altivec}"
5807   vlc_CFLAGS="${vlc_CFLAGS} ${ac_cv_c_altivec}"
5808   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5809 fi
5810
5811 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5812 echo "configure:5813: checking if linker needs -framework vecLib" >&5
5813 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5814   echo $ac_n "(cached) $ac_c" 1>&6
5815 else
5816   LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5817      cat > conftest.$ac_ext <<EOF
5818 #line 5819 "configure"
5819 #include "confdefs.h"
5820
5821 int main() {
5822
5823 ; return 0; }
5824 EOF
5825 if { (eval echo configure:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5826   rm -rf conftest*
5827   ac_cv_ld_altivec=yes
5828 else
5829   echo "configure: failed program was:" >&5
5830   cat conftest.$ac_ext >&5
5831   rm -rf conftest*
5832   ac_cv_ld_altivec=no
5833 fi
5834 rm -f conftest*
5835      LDFLAGS="${save_LDFLAGS}"
5836     
5837 fi
5838
5839 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5840 if test "x${ac_cv_ld_altivec}" != "xno"; then
5841   idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
5842   motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
5843   memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
5844   vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
5845 fi
5846 fi # end if mingw32
5847
5848
5849 # Check whether --with- or --without- was given.
5850 if test "${with_+set}" = set; then
5851   withval="$with_"
5852   :
5853 fi
5854
5855 # Check whether --with- or --without- was given.
5856 if test "${with_+set}" = set; then
5857   withval="$with_"
5858   :
5859 fi
5860
5861
5862 # Check whether --with-tuning or --without-tuning was given.
5863 if test "${with_tuning+set}" = set; then
5864   withval="$with_tuning"
5865   :
5866 fi
5867
5868 if test "x${with_tuning}" != "x"; then
5869     TUNING="${with_tuning}"
5870 else
5871     if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xi486" -o "x${target_cpu}" = "xi386"; then TUNING="pentiumpro"
5872     else
5873         if test "x${target_cpu}" = "xpowerpc"; then TUNING="750"; fi
5874     fi
5875 fi
5876
5877 if test "x${target_cpu}" = "xi686" -o "x${target_cpu}" = "xi586" -o "x${target_cpu}" = "xx86" -o "x${target_cpu}" = "xi386"
5878 then
5879     ARCH="${ARCH} mmx"
5880     PLUGINS="${PLUGINS} ${ACCEL_MODULES}"
5881 fi
5882
5883 # Check whether --enable-optimizations or --disable-optimizations was given.
5884 if test "${enable_optimizations+set}" = set; then
5885   enableval="$enable_optimizations"
5886    if test "x${enable_optimizations}" = "xno"; then OPTIMS=0; fi 
5887 else
5888    OPTIMS=1 
5889 fi
5890
5891
5892 # Check whether --enable-altivec or --disable-altivec was given.
5893 if test "${enable_altivec+set}" = set; then
5894   enableval="$enable_altivec"
5895    if test "x${enable_altivec}" = "xyes"; then ARCH="${ARCH} altivec";
5896     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
5897 else
5898    if test "x${target_cpu}" = "xpowerpc"; then ARCH="${ARCH} altivec";
5899     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
5900 fi
5901
5902
5903 DEBUG=0
5904 # Check whether --enable-debug or --disable-debug was given.
5905 if test "${enable_debug+set}" = set; then
5906   enableval="$enable_debug"
5907    if test "x${enable_debug}" = "xyes"; then DEBUG=1; fi 
5908 fi
5909
5910
5911 RELEASE=0
5912 # Check whether --enable-release or --disable-release was given.
5913 if test "${enable_release+set}" = set; then
5914   enableval="$enable_release"
5915    if test "x${enable_release}" = "xyes"; then RELEASE=1; fi 
5916 else
5917    VERSION="${VERSION}_`date +%Y-%m-%d`" 
5918 fi
5919
5920
5921
5922 # Check whether --with- or --without- was given.
5923 if test "${with_+set}" = set; then
5924   withval="$with_"
5925   :
5926 fi
5927
5928
5929 # Check whether --enable-dvd or --disable-dvd was given.
5930 if test "${enable_dvd+set}" = set; then
5931   enableval="$enable_dvd"
5932   :
5933 fi
5934
5935 if test "x${enable_dvd}" != "xno"
5936 then
5937   # Check whether --with-dvdcss or --without-dvdcss was given.
5938 if test "${with_dvdcss+set}" = set; then
5939   withval="$with_dvdcss"
5940   :
5941 fi
5942
5943   # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5944 if test "${with_dvdcss_tree+set}" = set; then
5945   withval="$with_dvdcss_tree"
5946   :
5947 fi
5948
5949   case "x${with_dvdcss}" in
5950   x|xyes)
5951     if test "x${with_dvdcss_tree}" = x
5952     then
5953       for ac_hdr in dvdcss/dvdcss.h
5954 do
5955 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5956 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5957 echo "configure:5958: checking for $ac_hdr" >&5
5958 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5959   echo $ac_n "(cached) $ac_c" 1>&6
5960 else
5961   cat > conftest.$ac_ext <<EOF
5962 #line 5963 "configure"
5963 #include "confdefs.h"
5964 #include <$ac_hdr>
5965 EOF
5966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5967 { (eval echo configure:5968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5969 if test -z "$ac_err"; then
5970   rm -rf conftest*
5971   eval "ac_cv_header_$ac_safe=yes"
5972 else
5973   echo "$ac_err" >&5
5974   echo "configure: failed program was:" >&5
5975   cat conftest.$ac_ext >&5
5976   rm -rf conftest*
5977   eval "ac_cv_header_$ac_safe=no"
5978 fi
5979 rm -f conftest*
5980 fi
5981 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5982   echo "$ac_t""yes" 1>&6
5983     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5984   cat >> confdefs.h <<EOF
5985 #define $ac_tr_hdr 1
5986 EOF
5987   PLUGINS="${PLUGINS} access/dvd/dvd"
5988           dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss" 
5989 else
5990   echo "$ac_t""no" 1>&6
5991 echo "configure: warning: libdvdcss is no longer provided with vlc; please get libdvdcss from http://www.videolan.org/libdvdcss/ and build it. Then either use --with-dvdcss=<path/where/libdvdcss/was/installed> for dynamic linking (recommended under Unix) or --with-dvdcss-tree=<path/where/libdvdcss/was/built> for static linking (recommended under BeOS, Windows, MacOS X). Alternatively you can use --disable-dvd to disable the DVD plugin." 1>&2
5992           { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; } 
5993 fi
5994 done
5995
5996     else
5997       echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5998 echo "configure:5999: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5999       real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
6000       if test "x${real_dvdcss_tree}" = "x"
6001       then
6002                 echo "$ac_t""no" 1>&6
6003         { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
6004       fi
6005       if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6006       then
6007                 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
6008         BUILTINS="${BUILTINS} access/dvd/dvd"
6009         dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
6010         dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
6011       else
6012                 echo "$ac_t""no" 1>&6
6013         { echo "configure: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" 1>&2; exit 1; }
6014       fi
6015     fi
6016   ;;
6017   xno)
6018         PLUGINS="${PLUGINS} access/dvd/dvd"
6019     dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
6020     dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
6021   ;;
6022   *)
6023     echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
6024 echo "configure:6025: checking for dvdcss headers in ${with_dvdcss}" >&5
6025     if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
6026     then
6027             echo "$ac_t""yes" 1>&6
6028       PLUGINS="${PLUGINS} access/dvd/dvd"
6029       dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
6030       dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
6031     else
6032             echo "$ac_t""no" 1>&6
6033       { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
6034     fi
6035   ;;
6036   esac
6037 fi
6038
6039 # Check whether --enable-dvdread or --disable-dvdread was given.
6040 if test "${enable_dvdread+set}" = set; then
6041   enableval="$enable_dvdread"
6042   :
6043 fi
6044
6045 if test "x${enable_dvdread}" != "xno"
6046 then
6047   # Check whether --with-dvdread or --without-dvdread was given.
6048 if test "${with_dvdread+set}" = set; then
6049   withval="$with_dvdread"
6050   :
6051 fi
6052
6053   if test "x${with_dvdread}" = "x"
6054   then
6055     test_LDFLAGS=""
6056     test_CFLAGS=""
6057   else
6058     test_LDFLAGS="-L${with_dvdread}/lib"
6059     test_CFLAGS="-I${with_dvdread}/include"
6060   fi
6061   CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6062   for ac_hdr in dvdread/dvd_reader.h
6063 do
6064 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6065 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6066 echo "configure:6067: checking for $ac_hdr" >&5
6067 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6068   echo $ac_n "(cached) $ac_c" 1>&6
6069 else
6070   cat > conftest.$ac_ext <<EOF
6071 #line 6072 "configure"
6072 #include "confdefs.h"
6073 #include <$ac_hdr>
6074 EOF
6075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6076 { (eval echo configure:6077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6078 if test -z "$ac_err"; then
6079   rm -rf conftest*
6080   eval "ac_cv_header_$ac_safe=yes"
6081 else
6082   echo "$ac_err" >&5
6083   echo "configure: failed program was:" >&5
6084   cat conftest.$ac_ext >&5
6085   rm -rf conftest*
6086   eval "ac_cv_header_$ac_safe=no"
6087 fi
6088 rm -f conftest*
6089 fi
6090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6091   echo "$ac_t""yes" 1>&6
6092     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6093   cat >> confdefs.h <<EOF
6094 #define $ac_tr_hdr 1
6095 EOF
6096  
6097      cat > conftest.$ac_ext <<EOF
6098 #line 6099 "configure"
6099 #include "confdefs.h"
6100 #include <dvdread/dvd_reader.h>
6101 int main() {
6102 void foo() { int i=DVD_VIDEO_LB_LEN; }
6103 ; return 0; }
6104 EOF
6105 if { (eval echo configure:6106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6106   rm -rf conftest*
6107   
6108           PLUGINS="${PLUGINS} access/dvdread/dvdread"
6109           dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
6110           dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
6111         
6112 else
6113   echo "configure: failed program was:" >&5
6114   cat conftest.$ac_ext >&5
6115   rm -rf conftest*
6116   
6117           if test "x${enable_dvdread}" != "x"
6118           then
6119             { echo "configure: error: Cannot find DVD_VIDEO_LB_LEN in dvdread/dvd_reader.h, please install libdvdread version 0.9.2 or later" 1>&2; exit 1; }
6120           fi
6121         
6122 fi
6123 rm -f conftest*
6124   
6125 else
6126   echo "$ac_t""no" 1>&6
6127 if test "x${enable_dvdread}" != "x"
6128     then
6129       if test "x${with_dvdread}" != "x"
6130       then
6131         { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
6132       else
6133         { echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
6134       fi
6135     fi
6136   
6137 fi
6138 done
6139
6140   CPPFLAGS="$save_CPPFLAGS"
6141 fi
6142
6143 # Check whether --enable-dvdplay or --disable-dvdplay was given.
6144 if test "${enable_dvdplay+set}" = set; then
6145   enableval="$enable_dvdplay"
6146   :
6147 fi
6148
6149 if test "x$enable_dvdplay" != "xno"
6150 then
6151   # Check whether --with-dvdplay or --without-dvdplay was given.
6152 if test "${with_dvdplay+set}" = set; then
6153   withval="$with_dvdplay"
6154   :
6155 fi
6156
6157   if test "x$with_dvdplay" = x
6158   then
6159     test_LDFLAGS=""
6160     test_CFLAGS=""
6161   else
6162     test_LDFLAGS="-L${with_dvdplay}/lib"
6163     test_CFLAGS="-I${with_dvdplay}/include"
6164   fi
6165   CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
6166   for ac_hdr in dvdplay/dvdplay.h
6167 do
6168 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6169 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6170 echo "configure:6171: checking for $ac_hdr" >&5
6171 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6172   echo $ac_n "(cached) $ac_c" 1>&6
6173 else
6174   cat > conftest.$ac_ext <<EOF
6175 #line 6176 "configure"
6176 #include "confdefs.h"
6177 #include <$ac_hdr>
6178 EOF
6179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6180 { (eval echo configure:6181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6182 if test -z "$ac_err"; then
6183   rm -rf conftest*
6184   eval "ac_cv_header_$ac_safe=yes"
6185 else
6186   echo "$ac_err" >&5
6187   echo "configure: failed program was:" >&5
6188   cat conftest.$ac_ext >&5
6189   rm -rf conftest*
6190   eval "ac_cv_header_$ac_safe=no"
6191 fi
6192 rm -f conftest*
6193 fi
6194 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6195   echo "$ac_t""yes" 1>&6
6196     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6197   cat >> confdefs.h <<EOF
6198 #define $ac_tr_hdr 1
6199 EOF
6200  
6201       PLUGINS="${PLUGINS} access/dvdplay/dvdplay"
6202       dvdplay_LDFLAGS="${dvdplay_LDFLAGS} ${test_LDFLAGS} -ldvdplay -ldvdread"
6203       dvdplay_CFLAGS="${dvdplay_CFLAGS} ${test_CFLAGS}"
6204     
6205 else
6206   echo "$ac_t""no" 1>&6
6207 if test "x$enable_dvdplay" != x
6208     then
6209       if test "x$with_dvdplay" != x
6210       then
6211         { echo "configure: error: Cannot find dvdplay/dvdplay.h in ${with_dvdplay}/include" 1>&2; exit 1; }
6212       else
6213         { echo "configure: error: Cannot find dvdplay/dvdplay.h" 1>&2; exit 1; }
6214       fi
6215     fi
6216   
6217 fi
6218 done
6219
6220   CPPFLAGS="${save_CPPFLAGS}"
6221 fi
6222
6223
6224 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
6225 if test "${enable_dvbpsi+set}" = set; then
6226   enableval="$enable_dvbpsi"
6227   :
6228 fi
6229
6230 if test "x${enable_dvbpsi}" != "xno"
6231 then
6232   # Check whether --with-dvbpsi or --without-dvbpsi was given.
6233 if test "${with_dvbpsi+set}" = set; then
6234   withval="$with_dvbpsi"
6235   :
6236 fi
6237
6238   # Check whether --with-dvbpsi or --without-dvbpsi was given.
6239 if test "${with_dvbpsi+set}" = set; then
6240   withval="$with_dvbpsi"
6241   :
6242 fi
6243
6244   case "x${with_dvbpsi}" in
6245   x|xyes)
6246     if test "x${with_dvbpsi_tree}" = "x"
6247     then
6248       for ac_hdr in dvbpsi/dr.h
6249 do
6250 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6251 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6252 echo "configure:6253: checking for $ac_hdr" >&5
6253 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6254   echo $ac_n "(cached) $ac_c" 1>&6
6255 else
6256   cat > conftest.$ac_ext <<EOF
6257 #line 6258 "configure"
6258 #include "confdefs.h"
6259 #include <$ac_hdr>
6260 EOF
6261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6262 { (eval echo configure:6263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6263 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6264 if test -z "$ac_err"; then
6265   rm -rf conftest*
6266   eval "ac_cv_header_$ac_safe=yes"
6267 else
6268   echo "$ac_err" >&5
6269   echo "configure: failed program was:" >&5
6270   cat conftest.$ac_ext >&5
6271   rm -rf conftest*
6272   eval "ac_cv_header_$ac_safe=no"
6273 fi
6274 rm -f conftest*
6275 fi
6276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6277   echo "$ac_t""yes" 1>&6
6278     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6279   cat >> confdefs.h <<EOF
6280 #define $ac_tr_hdr 1
6281 EOF
6282   PLUGINS="${PLUGINS} demux/mpeg/ts_dvbpsi"
6283           ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} -ldvbpsi" 
6284 else
6285   echo "$ac_t""no" 1>&6
6286 fi
6287 done
6288
6289     else
6290       echo $ac_n "checking for libdvbpsi.a in ${with_dvbpsi_tree}""... $ac_c" 1>&6
6291 echo "configure:6292: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
6292       real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
6293       if test "x${real_dvbpsi_tree}" = "x"
6294       then
6295                 echo "$ac_t""no" 1>&6
6296         { echo "configure: error: cannot cd to ${with_dvbpsi_tree}" 1>&2; exit 1; }
6297       fi
6298       if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6299       then
6300                 echo "$ac_t""${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" 1>&6
6301         BUILTINS="${BUILTINS} demux/mpeg/ts_dvbpsi"
6302         ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
6303         ts_dvbpsi_CFLAGS="${ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
6304       else
6305                 echo "$ac_t""no" 1>&6
6306         { echo "configure: error: cannot find ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a, make sure you compiled libdvbpsi in ${with_dvbpsi_tree}" 1>&2; exit 1; }
6307       fi
6308     fi
6309   ;;
6310   xno)
6311       ;;
6312   *)
6313     echo $ac_n "checking for dvbpsi headers in ${with_dvbpsi}""... $ac_c" 1>&6
6314 echo "configure:6315: checking for dvbpsi headers in ${with_dvbpsi}" >&5
6315     if test "x${with_dvbpsi}" = "x"
6316     then
6317       test_LDFLAGS=""
6318       test_CFLAGS=""
6319     else
6320       test_LDFLAGS="-L${with_dvbpsi}/lib"
6321       test_CFLAGS="-I${with_dvbpsi}/include"
6322     fi
6323     CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
6324     ac_safe=`echo "dvbpsi/dr.h" | sed 'y%./+-%__p_%'`
6325 echo $ac_n "checking for dvbpsi/dr.h""... $ac_c" 1>&6
6326 echo "configure:6327: checking for dvbpsi/dr.h" >&5
6327 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6328   echo $ac_n "(cached) $ac_c" 1>&6
6329 else
6330   cat > conftest.$ac_ext <<EOF
6331 #line 6332 "configure"
6332 #include "confdefs.h"
6333 #include <dvbpsi/dr.h>
6334 EOF
6335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6336 { (eval echo configure:6337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6338 if test -z "$ac_err"; then
6339   rm -rf conftest*
6340   eval "ac_cv_header_$ac_safe=yes"
6341 else
6342   echo "$ac_err" >&5
6343   echo "configure: failed program was:" >&5
6344   cat conftest.$ac_ext >&5
6345   rm -rf conftest*
6346   eval "ac_cv_header_$ac_safe=no"
6347 fi
6348 rm -f conftest*
6349 fi
6350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6351   echo "$ac_t""yes" 1>&6
6352   
6353       PLUGINS="${PLUGINS} demux/mpeg/ts_dvbpsi"
6354       ts_dvbpsi_LDFLAGS="${ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
6355       ts_dvbpsi_CFLAGS="${ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
6356       
6357 else
6358   echo "$ac_t""no" 1>&6
6359
6360       if test "x${enable_dvbpsi}" != "x"
6361       then
6362         { echo "configure: error: Could not find libdvbpsi on your system: you may get it from www.videolan.org, you'll need at least version 0.1.1" 1>&2; exit 1; }
6363       fi
6364     
6365 fi
6366
6367     CPPFLAGS="${save_CPPFLAGS}"
6368   ;;
6369   esac
6370 fi
6371
6372 # Check whether --enable-vcd or --disable-vcd was given.
6373 if test "${enable_vcd+set}" = set; then
6374   enableval="$enable_vcd"
6375   :
6376 fi
6377
6378
6379 if test "x${enable_vcd}" != "xno"
6380 then
6381   cat > conftest.$ac_ext <<EOF
6382 #line 6383 "configure"
6383 #include "confdefs.h"
6384 #include <linux/cdrom.h>
6385 EOF
6386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6387   egrep "cdrom_msf0" >/dev/null 2>&1; then
6388   rm -rf conftest*
6389   
6390     PLUGINS="${PLUGINS} access/vcd/vcd"
6391   
6392 fi
6393 rm -f conftest*
6394
6395   
6396   cat > conftest.$ac_ext <<EOF
6397 #line 6398 "configure"
6398 #include "confdefs.h"
6399 #include <sys/cdio.h>
6400 EOF
6401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6402   egrep "ioc_toc_header " >/dev/null 2>&1; then
6403   rm -rf conftest*
6404   
6405     PLUGINS="${PLUGINS} access/vcd/vcd"
6406     cat >> confdefs.h <<\EOF
6407 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
6408 EOF
6409
6410   
6411 fi
6412 rm -f conftest*
6413
6414   
6415   if test "x${SYS}" = "xbsdi"
6416   then
6417     PLUGINS="${PLUGINS} access/vcd/vcd"
6418   fi
6419
6420   if test "x${SYS}" = "xdarwin"
6421   then
6422     # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
6423     vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation" 
6424   fi
6425 fi
6426
6427 # Check whether --enable-satellite or --disable-satellite was given.
6428 if test "${enable_satellite+set}" = set; then
6429   enableval="$enable_satellite"
6430    if test "x${enable_satellite}" = "xyes"
6431     then
6432       PLUGINS="${PLUGINS} access/satellite/satellite"
6433     fi
6434 fi
6435
6436
6437 if test "x${SYS}" != "xnto" && test "x${SYS}" != "xmingw32"
6438 then
6439   have_ipv6=0
6440   echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6441 echo "configure:6442: checking for inet_pton" >&5
6442 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6443   echo $ac_n "(cached) $ac_c" 1>&6
6444 else
6445   cat > conftest.$ac_ext <<EOF
6446 #line 6447 "configure"
6447 #include "confdefs.h"
6448 /* System header to define __stub macros and hopefully few prototypes,
6449     which can conflict with char inet_pton(); below.  */
6450 #include <assert.h>
6451 /* Override any gcc2 internal prototype to avoid an error.  */
6452 /* We use char because int might match the return type of a gcc2
6453     builtin and then its argument prototype would still apply.  */
6454 char inet_pton();
6455
6456 int main() {
6457
6458 /* The GNU C library defines this for functions which it implements
6459     to always fail with ENOSYS.  Some functions are actually named
6460     something starting with __ and the normal name is an alias.  */
6461 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6462 choke me
6463 #else
6464 inet_pton();
6465 #endif
6466
6467 ; return 0; }
6468 EOF
6469 if { (eval echo configure:6470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6470   rm -rf conftest*
6471   eval "ac_cv_func_inet_pton=yes"
6472 else
6473   echo "configure: failed program was:" >&5
6474   cat conftest.$ac_ext >&5
6475   rm -rf conftest*
6476   eval "ac_cv_func_inet_pton=no"
6477 fi
6478 rm -f conftest*
6479 fi
6480
6481 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6482   echo "$ac_t""yes" 1>&6
6483   have_ipv6=1
6484 else
6485   echo "$ac_t""no" 1>&6
6486
6487     echo $ac_n "checking for inet_pton in -lresolv""... $ac_c" 1>&6
6488 echo "configure:6489: checking for inet_pton in -lresolv" >&5
6489 ac_lib_var=`echo resolv'_'inet_pton | sed 'y%./+-%__p_%'`
6490 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6491   echo $ac_n "(cached) $ac_c" 1>&6
6492 else
6493   ac_save_LIBS="$LIBS"
6494 LIBS="-lresolv  $LIBS"
6495 cat > conftest.$ac_ext <<EOF
6496 #line 6497 "configure"
6497 #include "confdefs.h"
6498 /* Override any gcc2 internal prototype to avoid an error.  */
6499 /* We use char because int might match the return type of a gcc2
6500     builtin and then its argument prototype would still apply.  */
6501 char inet_pton();
6502
6503 int main() {
6504 inet_pton()
6505 ; return 0; }
6506 EOF
6507 if { (eval echo configure:6508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6508   rm -rf conftest*
6509   eval "ac_cv_lib_$ac_lib_var=yes"
6510 else
6511   echo "configure: failed program was:" >&5
6512   cat conftest.$ac_ext >&5
6513   rm -rf conftest*
6514   eval "ac_cv_lib_$ac_lib_var=no"
6515 fi
6516 rm -f conftest*
6517 LIBS="$ac_save_LIBS"
6518
6519 fi
6520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6521   echo "$ac_t""yes" 1>&6
6522   have_ipv6=1
6523        ipv6_LDFLAGS="${ipv6_LDFLAGS} -lresolv"
6524 else
6525   echo "$ac_t""no" 1>&6
6526 fi
6527
6528   
6529 fi
6530
6531   echo $ac_n "checking for sockaddr_in6 in netinet/in.h""... $ac_c" 1>&6
6532 echo "configure:6533: checking for sockaddr_in6 in netinet/in.h" >&5
6533   cat > conftest.$ac_ext <<EOF
6534 #line 6535 "configure"
6535 #include "confdefs.h"
6536 #include <netinet/in.h>
6537 EOF
6538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6539   egrep "sockaddr_in6" >/dev/null 2>&1; then
6540   rm -rf conftest*
6541   echo "$ac_t""yes" 1>&6
6542 else
6543   rm -rf conftest*
6544   echo "$ac_t""no" 1>&6; have_ipv6=0
6545 fi
6546 rm -f conftest*
6547
6548   if test x$have_ipv6 = x1; then
6549     PLUGINS="${PLUGINS} misc/network/ipv6"
6550   fi
6551 fi
6552 if test "x${SYS}" = "xmingw32"
6553 then
6554   echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6555 echo "configure:6556: checking for getaddrinfo in ws2tcpip.h" >&5
6556   cat > conftest.$ac_ext <<EOF
6557 #line 6558 "configure"
6558 #include "confdefs.h"
6559 #include <ws2tcpip.h>
6560 EOF
6561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6562   egrep "addrinfo" >/dev/null 2>&1; then
6563   rm -rf conftest*
6564   echo "$ac_t""yes" 1>&6
6565     PLUGINS="${PLUGINS} misc/network/ipv6"
6566 else
6567   rm -rf conftest*
6568   echo "$ac_t""no" 1>&6
6569 fi
6570 rm -f conftest*
6571
6572 fi
6573
6574 # Check whether --enable-avi or --disable-avi was given.
6575 if test "${enable_avi+set}" = set; then
6576   enableval="$enable_avi"
6577   :
6578 fi
6579
6580 if test "x${enable_avi}" != "xno"
6581 then
6582   PLUGINS="${PLUGINS} demux/avi/avi"
6583 fi
6584
6585
6586 # Check whether --with- or --without- was given.
6587 if test "${with_+set}" = set; then
6588   withval="$with_"
6589   :
6590 fi
6591
6592
6593 # Check whether --enable-mad or --disable-mad was given.
6594 if test "${enable_mad+set}" = set; then
6595   enableval="$enable_mad"
6596   :
6597 fi
6598
6599 if test "x${enable_mad}" = "xyes"
6600 then
6601   # Check whether --with-mad or --without-mad was given.
6602 if test "${with_mad+set}" = set; then
6603   withval="$with_mad"
6604   :
6605 fi
6606
6607   if test "x${with_mad}" != "xno" -a "x${with_mad}" != "x"
6608   then
6609     mad_CFLAGS="${mad_CFLAGS} -I${with_mad}/include"
6610     mad_LDFLAGS="${mad_LDFLAGS} -L${with_mad}/lib"
6611   fi
6612
6613   # Check whether --with-mad-tree or --without-mad-tree was given.
6614 if test "${with_mad_tree+set}" = set; then
6615   withval="$with_mad_tree"
6616   :
6617 fi
6618
6619   if test "x${with_mad_tree}" != "xno" -a "x${with_mad_tree}" != "x"
6620   then
6621     real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6622     if test "x${real_mad_tree}" = "x"
6623     then
6624             echo "$ac_t""no" 1>&6
6625       { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6626     fi
6627         echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6628 echo "configure:6629: checking for mad.h in ${real_mad_tree}/libmad" >&5
6629     if test -f ${real_mad_tree}/libmad/mad.h
6630     then
6631       echo "$ac_t""yes" 1>&6
6632       mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6633       mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6634       LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6635       echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6636 echo "configure:6637: checking for mad_bit_init in -lmad" >&5
6637 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6639   echo $ac_n "(cached) $ac_c" 1>&6
6640 else
6641   ac_save_LIBS="$LIBS"
6642 LIBS="-lmad  $LIBS"
6643 cat > conftest.$ac_ext <<EOF
6644 #line 6645 "configure"
6645 #include "confdefs.h"
6646 /* Override any gcc2 internal prototype to avoid an error.  */
6647 /* We use char because int might match the return type of a gcc2
6648     builtin and then its argument prototype would still apply.  */
6649 char mad_bit_init();
6650
6651 int main() {
6652 mad_bit_init()
6653 ; return 0; }
6654 EOF
6655 if { (eval echo configure:6656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6656   rm -rf conftest*
6657   eval "ac_cv_lib_$ac_lib_var=yes"
6658 else
6659   echo "configure: failed program was:" >&5
6660   cat conftest.$ac_ext >&5
6661   rm -rf conftest*
6662   eval "ac_cv_lib_$ac_lib_var=no"
6663 fi
6664 rm -f conftest*
6665 LIBS="$ac_save_LIBS"
6666
6667 fi
6668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6669   echo "$ac_t""yes" 1>&6
6670   
6671         BUILTINS="${BUILTINS} codec/mad/mad"
6672         mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6673         
6674 else
6675   echo "$ac_t""no" 1>&6
6676  { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6677       
6678 fi
6679
6680       LDFLAGS="${save_LDFLAGS}"
6681     else
6682       echo "$ac_t""no" 1>&6
6683       { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6684     fi
6685   else
6686     CFLAGS="${save_CFLAGS} ${mad_CFLAGS}"
6687     LDFLAGS="${save_LDFLAGS} ${mad_LDFLAGS}"
6688     for ac_hdr in mad.h
6689 do
6690 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6691 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6692 echo "configure:6693: checking for $ac_hdr" >&5
6693 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6694   echo $ac_n "(cached) $ac_c" 1>&6
6695 else
6696   cat > conftest.$ac_ext <<EOF
6697 #line 6698 "configure"
6698 #include "confdefs.h"
6699 #include <$ac_hdr>
6700 EOF
6701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6702 { (eval echo configure:6703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6704 if test -z "$ac_err"; then
6705   rm -rf conftest*
6706   eval "ac_cv_header_$ac_safe=yes"
6707 else
6708   echo "$ac_err" >&5
6709   echo "configure: failed program was:" >&5
6710   cat conftest.$ac_ext >&5
6711   rm -rf conftest*
6712   eval "ac_cv_header_$ac_safe=no"
6713 fi
6714 rm -f conftest*
6715 fi
6716 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6717   echo "$ac_t""yes" 1>&6
6718     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6719   cat >> confdefs.h <<EOF
6720 #define $ac_tr_hdr 1
6721 EOF
6722  
6723 else
6724   echo "$ac_t""no" 1>&6
6725 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; } 
6726 fi
6727 done
6728
6729     echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6730 echo "configure:6731: checking for mad_bit_init in -lmad" >&5
6731 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6732 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6733   echo $ac_n "(cached) $ac_c" 1>&6
6734 else
6735   ac_save_LIBS="$LIBS"
6736 LIBS="-lmad  $LIBS"
6737 cat > conftest.$ac_ext <<EOF
6738 #line 6739 "configure"
6739 #include "confdefs.h"
6740 /* Override any gcc2 internal prototype to avoid an error.  */
6741 /* We use char because int might match the return type of a gcc2
6742     builtin and then its argument prototype would still apply.  */
6743 char mad_bit_init();
6744
6745 int main() {
6746 mad_bit_init()
6747 ; return 0; }
6748 EOF
6749 if { (eval echo configure:6750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6750   rm -rf conftest*
6751   eval "ac_cv_lib_$ac_lib_var=yes"
6752 else
6753   echo "configure: failed program was:" >&5
6754   cat conftest.$ac_ext >&5
6755   rm -rf conftest*
6756   eval "ac_cv_lib_$ac_lib_var=no"
6757 fi
6758 rm -f conftest*
6759 LIBS="$ac_save_LIBS"
6760
6761 fi
6762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6763   echo "$ac_t""yes" 1>&6
6764   
6765       PLUGINS="${PLUGINS} codec/mad/mad"
6766       mad_LDFLAGS="${mad_LDFLAGS} -lmad" 
6767 else
6768   echo "$ac_t""no" 1>&6
6769  { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; } 
6770 fi
6771
6772     CFLAGS="${save_CFLAGS}"
6773     LDFLAGS="${save_LDFLAGS}"
6774   fi
6775 fi
6776
6777 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6778 if test "${enable_ffmpeg+set}" = set; then
6779   enableval="$enable_ffmpeg"
6780   :
6781 fi
6782
6783 if test "x${enable_ffmpeg}" = "xyes"
6784 then
6785   # Check whether --with-ffmpeg or --without-ffmpeg was given.
6786 if test "${with_ffmpeg+set}" = set; then
6787   withval="$with_ffmpeg"
6788   :
6789 fi
6790
6791   if test "x${with_ffmpeg}" != "xno" -a "x${with_ffmpeg}" != "x"
6792   then
6793     ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${with_ffmpeg}/include/libffmpeg"
6794     ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L${with_ffmpeg}/lib"
6795   fi
6796
6797     PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_c"
6798   if test "x${ac_cv_mmx_inline}" != "xno"; then
6799     PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_mmx"
6800   fi
6801
6802   if test "x${ac_cv_mmxext_inline}" != "xno"; then
6803     PLUGINS="${PLUGINS} codec/ffmpeg/postprocessing/postprocessing_mmxext"
6804   fi
6805
6806
6807   # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6808 if test "${with_ffmpeg_tree+set}" = set; then
6809   withval="$with_ffmpeg_tree"
6810   :
6811 fi
6812
6813   if test "x${with_ffmpeg_tree}" != "x"
6814   then
6815     echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6816 echo "configure:6817: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6817     real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6818     if test "x${real_ffmpeg_tree}" = x
6819     then
6820             echo "$ac_t""no" 1>&6
6821       { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6822     fi
6823     if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6824     then
6825             echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
6826       BUILTINS="${BUILTINS} codec/ffmpeg/ffmpeg"
6827       ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm"
6828       ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
6829     else
6830             echo "$ac_t""no" 1>&6
6831       { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6832     fi
6833   else
6834     CFLAGS="${save_CFLAGS} ${ffmpeg_CFLAGS}"
6835     LDFLAGS="${save_LDFLAGS} ${ffmpeg_LDFLAGS} -lm"
6836     echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
6837 echo "configure:6838: checking for avcodec_init in -lavcodec" >&5
6838 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
6839 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6840   echo $ac_n "(cached) $ac_c" 1>&6
6841 else
6842   ac_save_LIBS="$LIBS"
6843 LIBS="-lavcodec  $LIBS"
6844 cat > conftest.$ac_ext <<EOF
6845 #line 6846 "configure"
6846 #include "confdefs.h"
6847 /* Override any gcc2 internal prototype to avoid an error.  */
6848 /* We use char because int might match the return type of a gcc2
6849     builtin and then its argument prototype would still apply.  */
6850 char avcodec_init();
6851
6852 int main() {
6853 avcodec_init()
6854 ; return 0; }
6855 EOF
6856 if { (eval echo configure:6857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6857   rm -rf conftest*
6858   eval "ac_cv_lib_$ac_lib_var=yes"
6859 else
6860   echo "configure: failed program was:" >&5
6861   cat conftest.$ac_ext >&5
6862   rm -rf conftest*
6863   eval "ac_cv_lib_$ac_lib_var=no"
6864 fi
6865 rm -f conftest*
6866 LIBS="$ac_save_LIBS"
6867
6868 fi
6869 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6870   echo "$ac_t""yes" 1>&6
6871   
6872       BUILTINS="${BUILTINS} codec/ffmpeg/ffmpeg"
6873       ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm" 
6874 else
6875   echo "$ac_t""no" 1>&6
6876  { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; } 
6877 fi
6878
6879     LDFLAGS="${save_LDFLAGS}"
6880     CFLAGS="${save_CFLAGS}"
6881   fi
6882 fi
6883
6884 # Check whether --enable-mp4 or --disable-mp4 was given.
6885 if test "${enable_mp4+set}" = set; then
6886   enableval="$enable_mp4"
6887   :
6888 fi
6889
6890 if test "x${enable_mp4}" = "xyes"
6891 then
6892     ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
6893 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
6894 echo "configure:6895: checking for zlib.h" >&5
6895 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6896   echo $ac_n "(cached) $ac_c" 1>&6
6897 else
6898   cat > conftest.$ac_ext <<EOF
6899 #line 6900 "configure"
6900 #include "confdefs.h"
6901 #include <zlib.h>
6902 EOF
6903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6904 { (eval echo configure:6905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6906 if test -z "$ac_err"; then
6907   rm -rf conftest*
6908   eval "ac_cv_header_$ac_safe=yes"
6909 else
6910   echo "$ac_err" >&5
6911   echo "configure: failed program was:" >&5
6912   cat conftest.$ac_ext >&5
6913   rm -rf conftest*
6914   eval "ac_cv_header_$ac_safe=no"
6915 fi
6916 rm -f conftest*
6917 fi
6918 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6919   echo "$ac_t""yes" 1>&6
6920   echo $ac_n "checking for inflateEnd in -lz""... $ac_c" 1>&6
6921 echo "configure:6922: checking for inflateEnd in -lz" >&5
6922 ac_lib_var=`echo z'_'inflateEnd | sed 'y%./+-%__p_%'`
6923 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6924   echo $ac_n "(cached) $ac_c" 1>&6
6925 else
6926   ac_save_LIBS="$LIBS"
6927 LIBS="-lz  $LIBS"
6928 cat > conftest.$ac_ext <<EOF
6929 #line 6930 "configure"
6930 #include "confdefs.h"
6931 /* Override any gcc2 internal prototype to avoid an error.  */
6932 /* We use char because int might match the return type of a gcc2
6933     builtin and then its argument prototype would still apply.  */
6934 char inflateEnd();
6935
6936 int main() {
6937 inflateEnd()
6938 ; return 0; }
6939 EOF
6940 if { (eval echo configure:6941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6941   rm -rf conftest*
6942   eval "ac_cv_lib_$ac_lib_var=yes"
6943 else
6944   echo "configure: failed program was:" >&5
6945   cat conftest.$ac_ext >&5
6946   rm -rf conftest*
6947   eval "ac_cv_lib_$ac_lib_var=no"
6948 fi
6949 rm -f conftest*
6950 LIBS="$ac_save_LIBS"
6951
6952 fi
6953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6954   echo "$ac_t""yes" 1>&6
6955    PLUGINS="${PLUGINS} demux/mp4/mp4"
6956               mp4_LDFLAGS="${mp4_LDFLAGS} -lz" 
6957 else
6958   echo "$ac_t""no" 1>&6
6959  { echo "configure: error: cannot find zlib library..." 1>&2; exit 1; } 
6960 fi
6961
6962 else
6963   echo "$ac_t""no" 1>&6
6964   { echo "configure: error: cannot find zlib header..." 1>&2; exit 1; } 
6965 fi
6966
6967 fi
6968
6969 if test "x${SYS}" = "xbeos"
6970 then
6971     PLUGINS="${PLUGINS} gui/beos/beos"
6972 fi
6973
6974 # Check whether --enable-a52 or --disable-a52 was given.
6975 if test "${enable_a52+set}" = set; then
6976   enableval="$enable_a52"
6977   :
6978 fi
6979
6980 if test "x${enable_a52}" != "xno"
6981 then
6982   # Check whether --with-a52-tree or --without-a52-tree was given.
6983 if test "${with_a52_tree+set}" = set; then
6984   withval="$with_a52_tree"
6985   :
6986 fi
6987
6988   if test "x${with_a52_tree}" != "xno" -a "x${with_a52_tree}" != "x"
6989   then
6990     real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
6991     if test "x${real_a52_tree}" = "x"
6992     then
6993             echo "$ac_t""no" 1>&6
6994       { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
6995     fi
6996         echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
6997 echo "configure:6998: checking for a52.h in ${real_a52_tree}/include" >&5
6998     if test -f ${real_a52_tree}/include/a52.h
6999     then
7000       echo "$ac_t""yes" 1>&6
7001       a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
7002       a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
7003       LDFLAGS="${save_LDFLAGS} ${a52_LDFLAGS}"
7004       echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
7005 echo "configure:7006: checking for a52_free in -la52" >&5
7006 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
7007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7008   echo $ac_n "(cached) $ac_c" 1>&6
7009 else
7010   ac_save_LIBS="$LIBS"
7011 LIBS="-la52 -lm $LIBS"
7012 cat > conftest.$ac_ext <<EOF
7013 #line 7014 "configure"
7014 #include "confdefs.h"
7015 /* Override any gcc2 internal prototype to avoid an error.  */
7016 /* We use char because int might match the return type of a gcc2
7017     builtin and then its argument prototype would still apply.  */
7018 char a52_free();
7019
7020 int main() {
7021 a52_free()
7022 ; return 0; }
7023 EOF
7024 if { (eval echo configure:7025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7025   rm -rf conftest*
7026   eval "ac_cv_lib_$ac_lib_var=yes"
7027 else
7028   echo "configure: failed program was:" >&5
7029   cat conftest.$ac_ext >&5
7030   rm -rf conftest*
7031   eval "ac_cv_lib_$ac_lib_var=no"
7032 fi
7033 rm -f conftest*
7034 LIBS="$ac_save_LIBS"
7035
7036 fi
7037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7038   echo "$ac_t""yes" 1>&6
7039   
7040         BUILTINS="${BUILTINS} codec/a52/a52"
7041         a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
7042         a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
7043         
7044 else
7045   echo "$ac_t""no" 1>&6
7046
7047         if test -f ${real_a52_tree}/liba52/.libs/liba52.a
7048         then
7049           { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
7050         else
7051           { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
7052         fi
7053       
7054 fi
7055
7056       LDFLAGS="${save_LDFLAGS}"
7057     else
7058       echo "$ac_t""no" 1>&6
7059       { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
7060     fi
7061   else     for ac_hdr in a52dec/a52.h
7062 do
7063 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7064 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7065 echo "configure:7066: checking for $ac_hdr" >&5
7066 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7067   echo $ac_n "(cached) $ac_c" 1>&6
7068 else
7069   cat > conftest.$ac_ext <<EOF
7070 #line 7071 "configure"
7071 #include "confdefs.h"
7072 #include <$ac_hdr>
7073 EOF
7074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7075 { (eval echo configure:7076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7077 if test -z "$ac_err"; then
7078   rm -rf conftest*
7079   eval "ac_cv_header_$ac_safe=yes"
7080 else
7081   echo "$ac_err" >&5
7082   echo "configure: failed program was:" >&5
7083   cat conftest.$ac_ext >&5
7084   rm -rf conftest*
7085   eval "ac_cv_header_$ac_safe=no"
7086 fi
7087 rm -f conftest*
7088 fi
7089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7090   echo "$ac_t""yes" 1>&6
7091     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7092   cat >> confdefs.h <<EOF
7093 #define $ac_tr_hdr 1
7094 EOF
7095  
7096       echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
7097 echo "configure:7098: checking for a52_free in -la52" >&5
7098 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
7099 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7100   echo $ac_n "(cached) $ac_c" 1>&6
7101 else
7102   ac_save_LIBS="$LIBS"
7103 LIBS="-la52 -lm $LIBS"
7104 cat > conftest.$ac_ext <<EOF
7105 #line 7106 "configure"
7106 #include "confdefs.h"
7107 /* Override any gcc2 internal prototype to avoid an error.  */
7108 /* We use char because int might match the return type of a gcc2
7109     builtin and then its argument prototype would still apply.  */
7110 char a52_free();
7111
7112 int main() {
7113 a52_free()
7114 ; return 0; }
7115 EOF
7116 if { (eval echo configure:7117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7117   rm -rf conftest*
7118   eval "ac_cv_lib_$ac_lib_var=yes"
7119 else
7120   echo "configure: failed program was:" >&5
7121   cat conftest.$ac_ext >&5
7122   rm -rf conftest*
7123   eval "ac_cv_lib_$ac_lib_var=no"
7124 fi
7125 rm -f conftest*
7126 LIBS="$ac_save_LIBS"
7127
7128 fi
7129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7130   echo "$ac_t""yes" 1>&6
7131   
7132         BUILTINS="${BUILTINS} codec/a52/a52"
7133         a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
7134         a52_CFLAGS="${a52_CFLAGS}"
7135       
7136 else
7137   echo "$ac_t""no" 1>&6
7138 fi
7139
7140     
7141 else
7142   echo "$ac_t""no" 1>&6
7143 fi
7144 done
7145
7146   fi
7147 fi
7148
7149 # Check whether --enable-cinepak or --disable-cinepak was given.
7150 if test "${enable_cinepak+set}" = set; then
7151   enableval="$enable_cinepak"
7152   :
7153 fi
7154
7155 if test "x${enable_cinepak}" != "xno"
7156 then
7157   PLUGINS="${PLUGINS} codec/cinepak/cinepak"
7158 fi
7159
7160 # Check whether --enable-vorbis or --disable-vorbis was given.
7161 if test "${enable_vorbis+set}" = set; then
7162   enableval="$enable_vorbis"
7163   :
7164 fi
7165
7166 if test "x${enable_vorbis}" != "xno"
7167 then
7168   for ac_hdr in ogg/ogg.h
7169 do
7170 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7171 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7172 echo "configure:7173: checking for $ac_hdr" >&5
7173 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7174   echo $ac_n "(cached) $ac_c" 1>&6
7175 else
7176   cat > conftest.$ac_ext <<EOF
7177 #line 7178 "configure"
7178 #include "confdefs.h"
7179 #include <$ac_hdr>
7180 EOF
7181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7182 { (eval echo configure:7183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7183 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7184 if test -z "$ac_err"; then
7185   rm -rf conftest*
7186   eval "ac_cv_header_$ac_safe=yes"
7187 else
7188   echo "$ac_err" >&5
7189   echo "configure: failed program was:" >&5
7190   cat conftest.$ac_ext >&5
7191   rm -rf conftest*
7192   eval "ac_cv_header_$ac_safe=no"
7193 fi
7194 rm -f conftest*
7195 fi
7196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7197   echo "$ac_t""yes" 1>&6
7198     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7199   cat >> confdefs.h <<EOF
7200 #define $ac_tr_hdr 1
7201 EOF
7202  
7203         #PLUGINS="${PLUGINS} demux/ogg/ogg codec/vorbis/vorbis"
7204     vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
7205    
7206 else
7207   echo "$ac_t""no" 1>&6
7208 fi
7209 done
7210
7211 fi
7212
7213 # Check whether --enable-dv or --disable-dv was given.
7214 if test "${enable_dv+set}" = set; then
7215   enableval="$enable_dv"
7216   :
7217 fi
7218
7219 if test "x${enable_dv}" = "xyes"
7220 then
7221   for ac_hdr in libdv/dv.h
7222 do
7223 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7225 echo "configure:7226: checking for $ac_hdr" >&5
7226 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7227   echo $ac_n "(cached) $ac_c" 1>&6
7228 else
7229   cat > conftest.$ac_ext <<EOF
7230 #line 7231 "configure"
7231 #include "confdefs.h"
7232 #include <$ac_hdr>
7233 EOF
7234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7235 { (eval echo configure:7236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7237 if test -z "$ac_err"; then
7238   rm -rf conftest*
7239   eval "ac_cv_header_$ac_safe=yes"
7240 else
7241   echo "$ac_err" >&5
7242   echo "configure: failed program was:" >&5
7243   cat conftest.$ac_ext >&5
7244   rm -rf conftest*
7245   eval "ac_cv_header_$ac_safe=no"
7246 fi
7247 rm -f conftest*
7248 fi
7249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7250   echo "$ac_t""yes" 1>&6
7251     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7252   cat >> confdefs.h <<EOF
7253 #define $ac_tr_hdr 1
7254 EOF
7255  
7256     BUILTINS="${BUILTINS} codec/dv/dv"
7257     dv_LDFLAGS="${dv_LDFLAGS} -ldv"
7258    
7259 else
7260   echo "$ac_t""no" 1>&6
7261 fi
7262 done
7263
7264 fi  
7265
7266
7267 # Check whether --with- or --without- was given.
7268 if test "${with_+set}" = set; then
7269   withval="$with_"
7270   :
7271 fi
7272
7273
7274 # Check whether --enable-x11 or --disable-x11 was given.
7275 if test "${enable_x11+set}" = set; then
7276   enableval="$enable_x11"
7277   :
7278 fi
7279
7280 if test "x${enable_x11}" != "xno" &&
7281   (test "x${SYS}" != "xmingw32" || test "x${enable_x11}" = "xyes"); then
7282   CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7283   for ac_hdr in X11/Xlib.h
7284 do
7285 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7286 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7287 echo "configure:7288: checking for $ac_hdr" >&5
7288 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7289   echo $ac_n "(cached) $ac_c" 1>&6
7290 else
7291   cat > conftest.$ac_ext <<EOF
7292 #line 7293 "configure"
7293 #include "confdefs.h"
7294 #include <$ac_hdr>
7295 EOF
7296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7297 { (eval echo configure:7298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7298 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7299 if test -z "$ac_err"; then
7300   rm -rf conftest*
7301   eval "ac_cv_header_$ac_safe=yes"
7302 else
7303   echo "$ac_err" >&5
7304   echo "configure: failed program was:" >&5
7305   cat conftest.$ac_ext >&5
7306   rm -rf conftest*
7307   eval "ac_cv_header_$ac_safe=no"
7308 fi
7309 rm -f conftest*
7310 fi
7311 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7312   echo "$ac_t""yes" 1>&6
7313     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7314   cat >> confdefs.h <<EOF
7315 #define $ac_tr_hdr 1
7316 EOF
7317  
7318     PLUGINS="${PLUGINS} video_output/x11/x11"
7319     x11_LDFLAGS="${x11_LDFLAGS} -L${x_libraries} -lX11 -lXext"
7320     x11_CFLAGS="${x11_CFLAGS} -I${x_includes}"
7321   
7322 else
7323   echo "$ac_t""no" 1>&6
7324 fi
7325 done
7326
7327   CPPFLAGS="${save_CPPFLAGS}"
7328 fi
7329
7330 # Check whether --enable-xvideo or --disable-xvideo was given.
7331 if test "${enable_xvideo+set}" = set; then
7332   enableval="$enable_xvideo"
7333   :
7334 fi
7335
7336 if test "x${enable_xvideo}" != "xno" &&
7337   (test "x${SYS}" != "xmingw32" || test "x${enable_xvideo}" = "xyes"); then
7338   CPPFLAGS="${save_CPPFLAGS} -I${x_includes}"
7339   for ac_hdr in X11/extensions/Xv.h
7340 do
7341 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7342 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7343 echo "configure:7344: checking for $ac_hdr" >&5
7344 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7345   echo $ac_n "(cached) $ac_c" 1>&6
7346 else
7347   cat > conftest.$ac_ext <<EOF
7348 #line 7349 "configure"
7349 #include "confdefs.h"
7350 #include <$ac_hdr>
7351 EOF
7352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7353 { (eval echo configure:7354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7355 if test -z "$ac_err"; then
7356   rm -rf conftest*
7357   eval "ac_cv_header_$ac_safe=yes"
7358 else
7359   echo "$ac_err" >&5
7360   echo "configure: failed program was:" >&5
7361   cat conftest.$ac_ext >&5
7362   rm -rf conftest*
7363   eval "ac_cv_header_$ac_safe=no"
7364 fi
7365 rm -f conftest*
7366 fi
7367 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7368   echo "$ac_t""yes" 1>&6
7369     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7370   cat >> confdefs.h <<EOF
7371 #define $ac_tr_hdr 1
7372 EOF
7373  
7374     CFLAGS="${save_CFLAGS} -L${x_libraries} -lX11 -lXext"
7375     echo $ac_n "checking for XvPutImage in -lXv_pic""... $ac_c" 1>&6
7376 echo "configure:7377: checking for XvPutImage in -lXv_pic" >&5
7377 ac_lib_var=`echo Xv_pic'_'XvPutImage | sed 'y%./+-%__p_%'`
7378 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7379   echo $ac_n "(cached) $ac_c" 1>&6
7380 else
7381   ac_save_LIBS="$LIBS"
7382 LIBS="-lXv_pic  $LIBS"
7383 cat > conftest.$ac_ext <<EOF
7384 #line 7385 "configure"
7385 #include "confdefs.h"
7386 /* Override any gcc2 internal prototype to avoid an error.  */
7387 /* We use char because int might match the return type of a gcc2
7388     builtin and then its argument prototype would still apply.  */
7389 char XvPutImage();
7390
7391 int main() {
7392 XvPutImage()
7393 ; return 0; }
7394 EOF
7395 if { (eval echo configure:7396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7396   rm -rf conftest*
7397   eval "ac_cv_lib_$ac_lib_var=yes"
7398 else
7399   echo "configure: failed program was:" >&5
7400   cat conftest.$ac_ext >&5
7401   rm -rf conftest*
7402   eval "ac_cv_lib_$ac_lib_var=no"
7403 fi
7404 rm -f conftest*
7405 LIBS="$ac_save_LIBS"
7406
7407 fi
7408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7409   echo "$ac_t""yes" 1>&6
7410   # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7411       PLUGINS="${PLUGINS} video_output/x11/xvideo"
7412       xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv_pic"
7413       xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7414 else
7415   echo "$ac_t""no" 1>&6
7416 echo $ac_n "checking for XvPutImage in -lXv""... $ac_c" 1>&6
7417 echo "configure:7418: checking for XvPutImage in -lXv" >&5
7418 ac_lib_var=`echo Xv'_'XvPutImage | sed 'y%./+-%__p_%'`
7419 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7420   echo $ac_n "(cached) $ac_c" 1>&6
7421 else
7422   ac_save_LIBS="$LIBS"
7423 LIBS="-lXv  $LIBS"
7424 cat > conftest.$ac_ext <<EOF
7425 #line 7426 "configure"
7426 #include "confdefs.h"
7427 /* Override any gcc2 internal prototype to avoid an error.  */
7428 /* We use char because int might match the return type of a gcc2
7429     builtin and then its argument prototype would still apply.  */
7430 char XvPutImage();
7431
7432 int main() {
7433 XvPutImage()
7434 ; return 0; }
7435 EOF
7436 if { (eval echo configure:7437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7437   rm -rf conftest*
7438   eval "ac_cv_lib_$ac_lib_var=yes"
7439 else
7440   echo "configure: failed program was:" >&5
7441   cat conftest.$ac_ext >&5
7442   rm -rf conftest*
7443   eval "ac_cv_lib_$ac_lib_var=no"
7444 fi
7445 rm -f conftest*
7446 LIBS="$ac_save_LIBS"
7447
7448 fi
7449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7450   echo "$ac_t""yes" 1>&6
7451   # We don't have Xv_pic, but we have Xv, let's make xvideo.a as builtin
7452         PLUGINS="${PLUGINS} video_output/x11/xvideo"
7453         xvideo_LDFLAGS="${xvideo_LDFLAGS} -L${x_libraries} -lX11 -lXext -lXv"
7454         xvideo_CFLAGS="${xvideo_CFLAGS} -I${x_includes}"
7455 else
7456   echo "$ac_t""no" 1>&6
7457 # Otherwise... well, do nothing.
7458         :
7459       
7460 fi
7461
7462     
7463 fi
7464
7465     CFLAGS="${save_CFLAGS}"
7466   
7467   CPPFLAGS="${save_CPPFLAGS}"
7468 else
7469   echo "$ac_t""no" 1>&6
7470 fi
7471 done
7472
7473 fi
7474
7475 # Check whether --enable-sdl or --disable-sdl was given.
7476 if test "${enable_sdl+set}" = set; then
7477   enableval="$enable_sdl"
7478   :
7479 fi
7480
7481 if test "x${enable_sdl}" != "xno"
7482 then
7483   SDL_PATH="${PATH}"
7484   # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7485 if test "${with_sdl_config_path+set}" = set; then
7486   withval="$with_sdl_config_path"
7487    if test "x${with_sdl_config_path}" != "xno"
7488       then
7489         SDL_PATH="${with_sdl_config_path}:${PATH}"
7490       fi 
7491 fi
7492
7493   # Extract the first word of "sdl12-config", so it can be a program name with args.
7494 set dummy sdl12-config; ac_word=$2
7495 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7496 echo "configure:7497: checking for $ac_word" >&5
7497 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7498   echo $ac_n "(cached) $ac_c" 1>&6
7499 else
7500   case "$SDL12_CONFIG" in
7501   /*)
7502   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7503   ;;
7504   ?:/*)                  
7505   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7506   ;;
7507   *)
7508   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7509   ac_dummy="${SDL_PATH}"
7510   for ac_dir in $ac_dummy; do 
7511     test -z "$ac_dir" && ac_dir=.
7512     if test -f $ac_dir/$ac_word; then
7513       ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7514       break
7515     fi
7516   done
7517   IFS="$ac_save_ifs"
7518   test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7519   ;;
7520 esac
7521 fi
7522 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7523 if test -n "$SDL12_CONFIG"; then
7524   echo "$ac_t""$SDL12_CONFIG" 1>&6
7525 else
7526   echo "$ac_t""no" 1>&6
7527 fi
7528
7529   SDL_CONFIG="${SDL12_CONFIG}"
7530   SDL_HEADER="SDL12/SDL.h"
7531   if test "x${SDL_CONFIG}" = "xno"
7532   then
7533     # Extract the first word of "sdl11-config", so it can be a program name with args.
7534 set dummy sdl11-config; ac_word=$2
7535 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7536 echo "configure:7537: checking for $ac_word" >&5
7537 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7538   echo $ac_n "(cached) $ac_c" 1>&6
7539 else
7540   case "$SDL11_CONFIG" in
7541   /*)
7542   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7543   ;;
7544   ?:/*)                  
7545   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7546   ;;
7547   *)
7548   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7549   ac_dummy="${SDL_PATH}"
7550   for ac_dir in $ac_dummy; do 
7551     test -z "$ac_dir" && ac_dir=.
7552     if test -f $ac_dir/$ac_word; then
7553       ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7554       break
7555     fi
7556   done
7557   IFS="$ac_save_ifs"
7558   test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7559   ;;
7560 esac
7561 fi
7562 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7563 if test -n "$SDL11_CONFIG"; then
7564   echo "$ac_t""$SDL11_CONFIG" 1>&6
7565 else
7566   echo "$ac_t""no" 1>&6
7567 fi
7568
7569     SDL_CONFIG=${SDL11_CONFIG}
7570     SDL_HEADER="SDL11/SDL.h"
7571   fi
7572   if test "x${SDL_CONFIG}" = "xno"
7573   then
7574     # Extract the first word of "sdl-config", so it can be a program name with args.
7575 set dummy sdl-config; ac_word=$2
7576 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7577 echo "configure:7578: checking for $ac_word" >&5
7578 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7579   echo $ac_n "(cached) $ac_c" 1>&6
7580 else
7581   case "$SDL_CONFIG" in
7582   /*)
7583   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7584   ;;
7585   ?:/*)                  
7586   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7587   ;;
7588   *)
7589   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7590   ac_dummy="${SDL_PATH}"
7591   for ac_dir in $ac_dummy; do 
7592     test -z "$ac_dir" && ac_dir=.
7593     if test -f $ac_dir/$ac_word; then
7594       ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7595       break
7596     fi
7597   done
7598   IFS="$ac_save_ifs"
7599   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7600   ;;
7601 esac
7602 fi
7603 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7604 if test -n "$SDL_CONFIG"; then
7605   echo "$ac_t""$SDL_CONFIG" 1>&6
7606 else
7607   echo "$ac_t""no" 1>&6
7608 fi
7609
7610     SDL_HEADER="SDL/SDL.h"
7611   fi
7612   if test "x${SDL_CONFIG}" != "xno"
7613   then
7614     PLUGINS="${PLUGINS} video_output/sdl/sdl"
7615     sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7616     sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7617     CPPFLAGS="${save_CPPFLAGS} ${sdl_CFLAGS}"
7618     for ac_hdr in ${SDL_HEADER}
7619 do
7620 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7621 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7622 echo "configure:7623: checking for $ac_hdr" >&5
7623 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7624   echo $ac_n "(cached) $ac_c" 1>&6
7625 else
7626   cat > conftest.$ac_ext <<EOF
7627 #line 7628 "configure"
7628 #include "confdefs.h"
7629 #include <$ac_hdr>
7630 EOF
7631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7632 { (eval echo configure:7633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7634 if test -z "$ac_err"; then
7635   rm -rf conftest*
7636   eval "ac_cv_header_$ac_safe=yes"
7637 else
7638   echo "$ac_err" >&5
7639   echo "configure: failed program was:" >&5
7640   cat conftest.$ac_ext >&5
7641   rm -rf conftest*
7642   eval "ac_cv_header_$ac_safe=no"
7643 fi
7644 rm -f conftest*
7645 fi
7646 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7647   echo "$ac_t""yes" 1>&6
7648     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7649   cat >> confdefs.h <<EOF
7650 #define $ac_tr_hdr 1
7651 EOF
7652  cat >> confdefs.h <<EOF
7653 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7654 EOF
7655
7656 else
7657   echo "$ac_t""no" 1>&6
7658 { echo "configure: error: The development package for SDL is not installed. 
7659 Please install it and try again. Alternatively you can also configure with 
7660 --disable-sdl." 1>&2; exit 1; }
7661       
7662 fi
7663 done
7664
7665     CPPFLAGS="${save_CPPFLAGS}"
7666     if expr 1.1.5 \> `${SDL_CONFIG} --version` >/dev/null
7667     then
7668       { echo "configure: error: The development package for SDL is not installed.
7669 Please install it and try again. Alternatively you can also configure with
7670 --disable-sdl." 1>&2; exit 1; }
7671     fi
7672   elif test "x${enable_sdl}" =  "xyes"
7673   then
7674     { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7675 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7676     " 1>&2; exit 1; }
7677   fi
7678 fi
7679
7680 # Check whether --enable-directx or --disable-directx was given.
7681 if test "${enable_directx+set}" = set; then
7682   enableval="$enable_directx"
7683   :
7684 fi
7685
7686 if test "x${enable_directx}" != "xno"
7687 then
7688   if test "x${SYS}" = "xmingw32"
7689   then
7690     # Check whether --with-directx or --without-directx was given.
7691 if test "${with_directx+set}" = set; then
7692   withval="$with_directx"
7693   :
7694 fi
7695
7696     if test "x${with_directx}" = "x"
7697     then
7698       for ac_hdr in ddraw.h
7699 do
7700 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7701 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7702 echo "configure:7703: checking for $ac_hdr" >&5
7703 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7704   echo $ac_n "(cached) $ac_c" 1>&6
7705 else
7706   cat > conftest.$ac_ext <<EOF
7707 #line 7708 "configure"
7708 #include "confdefs.h"
7709 #include <$ac_hdr>
7710 EOF
7711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7712 { (eval echo configure:7713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7714 if test -z "$ac_err"; then
7715   rm -rf conftest*
7716   eval "ac_cv_header_$ac_safe=yes"
7717 else
7718   echo "$ac_err" >&5
7719   echo "configure: failed program was:" >&5
7720   cat conftest.$ac_ext >&5
7721   rm -rf conftest*
7722   eval "ac_cv_header_$ac_safe=no"
7723 fi
7724 rm -f conftest*
7725 fi
7726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7727   echo "$ac_t""yes" 1>&6
7728     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7729   cat >> confdefs.h <<EOF
7730 #define $ac_tr_hdr 1
7731 EOF
7732   PLUGINS="${PLUGINS} video_output/directx/directx"
7733         directx_LDFLAGS="${directx_LDFLAGS} -lgdi32" 
7734 else
7735   echo "$ac_t""no" 1>&6
7736 fi
7737 done
7738
7739     else
7740       echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7741 echo "configure:7742: checking for directX headers in ${with_directx}" >&5
7742       if test -f ${with_directx}/ddraw.h
7743       then
7744         PLUGINS="${PLUGINS} video_output/directx/directx"
7745         directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7746         directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7747         echo "$ac_t""yes" 1>&6
7748       else
7749         echo "$ac_t""no" 1>&6
7750         { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7751       fi
7752     fi
7753   fi
7754 fi
7755
7756 # Check whether --enable-fb or --disable-fb was given.
7757 if test "${enable_fb+set}" = set; then
7758   enableval="$enable_fb"
7759   :
7760 fi
7761
7762     if test "x${enable_fb}" != "xno"
7763     then
7764       for ac_hdr in linux/fb.h
7765 do
7766 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7767 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7768 echo "configure:7769: checking for $ac_hdr" >&5
7769 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7770   echo $ac_n "(cached) $ac_c" 1>&6
7771 else
7772   cat > conftest.$ac_ext <<EOF
7773 #line 7774 "configure"
7774 #include "confdefs.h"
7775 #include <$ac_hdr>
7776 EOF
7777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7778 { (eval echo configure:7779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7779 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7780 if test -z "$ac_err"; then
7781   rm -rf conftest*
7782   eval "ac_cv_header_$ac_safe=yes"
7783 else
7784   echo "$ac_err" >&5
7785   echo "configure: failed program was:" >&5
7786   cat conftest.$ac_ext >&5
7787   rm -rf conftest*
7788   eval "ac_cv_header_$ac_safe=no"
7789 fi
7790 rm -f conftest*
7791 fi
7792 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7793   echo "$ac_t""yes" 1>&6
7794     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7795   cat >> confdefs.h <<EOF
7796 #define $ac_tr_hdr 1
7797 EOF
7798  
7799         PLUGINS="${PLUGINS} video_output/fb/fb"
7800       
7801 else
7802   echo "$ac_t""no" 1>&6
7803 fi
7804 done
7805
7806     fi
7807
7808 # Check whether --enable-mga or --disable-mga was given.
7809 if test "${enable_mga+set}" = set; then
7810   enableval="$enable_mga"
7811    if test "x${enable_mga}" = "xyes"
7812     then
7813       PLUGINS="${PLUGINS} video_output/mga/mga video_output/mga/xmga"
7814     fi 
7815 fi
7816
7817
7818 # Check whether --enable-ggi or --disable-ggi was given.
7819 if test "${enable_ggi+set}" = set; then
7820   enableval="$enable_ggi"
7821   :
7822 fi
7823
7824 if test "x${enable_ggi}" = "xyes"
7825 then
7826   PLUGINS="${PLUGINS} video_output/ggi/ggi"
7827   ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
7828   # Check whether --with-ggi or --without-ggi was given.
7829 if test "${with_ggi+set}" = set; then
7830   withval="$with_ggi"
7831    if test "x${with_ggi}" != "xno" -a "x${with_ggi}" != "x"
7832       then
7833         CFLAGS_GGI="${CFLAGS_GGI} -I${with_ggi}/include"
7834         ggi_LDFLAGS="${ggi_LDFLAGS} -L${with_ggi}/lib"
7835       fi 
7836 fi
7837
7838 fi
7839
7840 # Check whether --enable-glide or --disable-glide was given.
7841 if test "${enable_glide+set}" = set; then
7842   enableval="$enable_glide"
7843   :
7844 fi
7845
7846 if test "x${enable_glide}" = "xyes"
7847 then
7848   PLUGINS="${PLUGINS} video_output/glide/glide"
7849   glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
7850   glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
7851   # Check whether --with-glide or --without-glide was given.
7852 if test "${with_glide+set}" = set; then
7853   withval="$with_glide"
7854    if test "x${with_glide}" != "xno" -a "x${with_glide}" != "x"
7855       then
7856         glide_CFLAGS="${glide_CFLAGS} -I${with_glide}/include"
7857         glide_LDFLAGS="${glide_LDFLAGS} -L${with_glide}/lib"
7858       fi 
7859 fi
7860
7861 fi
7862
7863 # Check whether --enable-aa or --disable-aa was given.
7864 if test "${enable_aa+set}" = set; then
7865   enableval="$enable_aa"
7866   :
7867 fi
7868
7869 if test "x${enable_aa}" = "xyes"
7870 then
7871   ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7872 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7873 echo "configure:7874: checking for aalib.h" >&5
7874 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7875   echo $ac_n "(cached) $ac_c" 1>&6
7876 else
7877   cat > conftest.$ac_ext <<EOF
7878 #line 7879 "configure"
7879 #include "confdefs.h"
7880 #include <aalib.h>
7881 EOF
7882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7883 { (eval echo configure:7884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7885 if test -z "$ac_err"; then
7886   rm -rf conftest*
7887   eval "ac_cv_header_$ac_safe=yes"
7888 else
7889   echo "$ac_err" >&5
7890   echo "configure: failed program was:" >&5
7891   cat conftest.$ac_ext >&5
7892   rm -rf conftest*
7893   eval "ac_cv_header_$ac_safe=no"
7894 fi
7895 rm -f conftest*
7896 fi
7897 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7898   echo "$ac_t""yes" 1>&6
7899   have_aa="true"
7900 else
7901   echo "$ac_t""no" 1>&6
7902 have_aa="false"
7903 fi
7904
7905   if test "x${have_aa}" = "xtrue"
7906   then
7907     PLUGINS="${PLUGINS} video_output/aa/aa"
7908     aa_LDFLAGS="${aa_LDFLAGS} -laa"
7909   fi
7910 fi
7911
7912
7913 # Check whether --with- or --without- was given.
7914 if test "${with_+set}" = set; then
7915   withval="$with_"
7916   :
7917 fi
7918
7919
7920 # Check whether --enable-dsp or --disable-dsp was given.
7921 if test "${enable_dsp+set}" = set; then
7922   enableval="$enable_dsp"
7923   :
7924 fi
7925
7926
7927 if test "x${enable_dsp}" != "xno" &&
7928   (test "x${SYS}" != "xmingw32" || test "x${enable_dsp}" = "xyes")
7929 then
7930   for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7931 do
7932 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7934 echo "configure:7935: checking for $ac_hdr" >&5
7935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7936   echo $ac_n "(cached) $ac_c" 1>&6
7937 else
7938   cat > conftest.$ac_ext <<EOF
7939 #line 7940 "configure"
7940 #include "confdefs.h"
7941 #include <$ac_hdr>
7942 EOF
7943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7944 { (eval echo configure:7945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7946 if test -z "$ac_err"; then
7947   rm -rf conftest*
7948   eval "ac_cv_header_$ac_safe=yes"
7949 else
7950   echo "$ac_err" >&5
7951   echo "configure: failed program was:" >&5
7952   cat conftest.$ac_ext >&5
7953   rm -rf conftest*
7954   eval "ac_cv_header_$ac_safe=no"
7955 fi
7956 rm -f conftest*
7957 fi
7958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7959   echo "$ac_t""yes" 1>&6
7960     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7961   cat >> confdefs.h <<EOF
7962 #define $ac_tr_hdr 1
7963 EOF
7964  
7965     PLUGINS="${PLUGINS} audio_output/dsp/dsp"
7966     echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7967 echo "configure:7968: checking for main in -lossaudio" >&5
7968 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7969 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7970   echo $ac_n "(cached) $ac_c" 1>&6
7971 else
7972   ac_save_LIBS="$LIBS"
7973 LIBS="-lossaudio  $LIBS"
7974 cat > conftest.$ac_ext <<EOF
7975 #line 7976 "configure"
7976 #include "confdefs.h"
7977
7978 int main() {
7979 main()
7980 ; return 0; }
7981 EOF
7982 if { (eval echo configure:7983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7983   rm -rf conftest*
7984   eval "ac_cv_lib_$ac_lib_var=yes"
7985 else
7986   echo "configure: failed program was:" >&5
7987   cat conftest.$ac_ext >&5
7988   rm -rf conftest*
7989   eval "ac_cv_lib_$ac_lib_var=no"
7990 fi
7991 rm -f conftest*
7992 LIBS="$ac_save_LIBS"
7993
7994 fi
7995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7996   echo "$ac_t""yes" 1>&6
7997   dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7998 else
7999   echo "$ac_t""no" 1>&6
8000 fi
8001
8002   
8003 else
8004   echo "$ac_t""no" 1>&6
8005 fi
8006 done
8007
8008 fi
8009
8010 # Check whether --enable-esd or --disable-esd was given.
8011 if test "${enable_esd+set}" = set; then
8012   enableval="$enable_esd"
8013   if test "x${enable_esd}" = "xyes"
8014    then
8015      # Extract the first word of "esd-config", so it can be a program name with args.
8016 set dummy esd-config; ac_word=$2
8017 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8018 echo "configure:8019: checking for $ac_word" >&5
8019 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
8020   echo $ac_n "(cached) $ac_c" 1>&6
8021 else
8022   case "$ESD_CONFIG" in
8023   /*)
8024   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
8025   ;;
8026   ?:/*)                  
8027   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
8028   ;;
8029   *)
8030   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8031   ac_dummy="$PATH"
8032   for ac_dir in $ac_dummy; do 
8033     test -z "$ac_dir" && ac_dir=.
8034     if test -f $ac_dir/$ac_word; then
8035       ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
8036       break
8037     fi
8038   done
8039   IFS="$ac_save_ifs"
8040   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
8041   ;;
8042 esac
8043 fi
8044 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
8045 if test -n "$ESD_CONFIG"; then
8046   echo "$ac_t""$ESD_CONFIG" 1>&6
8047 else
8048   echo "$ac_t""no" 1>&6
8049 fi
8050
8051      if test "x${ESD_CONFIG}" != "xno"
8052      then
8053        PLUGINS="${PLUGINS} audio_output/esd/esd"
8054        esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
8055        esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
8056      fi
8057    fi
8058 fi
8059
8060
8061 # Check whether --enable-arts or --disable-arts was given.
8062 if test "${enable_arts+set}" = set; then
8063   enableval="$enable_arts"
8064   if test "x${enable_arts}" = "xyes"
8065    then
8066      # Extract the first word of "artsc-config", so it can be a program name with args.
8067 set dummy artsc-config; ac_word=$2
8068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8069 echo "configure:8070: checking for $ac_word" >&5
8070 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
8071   echo $ac_n "(cached) $ac_c" 1>&6
8072 else
8073   case "$ARTS_CONFIG" in
8074   /*)
8075   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
8076   ;;
8077   ?:/*)                  
8078   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
8079   ;;
8080   *)
8081   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8082   ac_dummy="$PATH"
8083   for ac_dir in $ac_dummy; do 
8084     test -z "$ac_dir" && ac_dir=.
8085     if test -f $ac_dir/$ac_word; then
8086       ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
8087       break
8088     fi
8089   done
8090   IFS="$ac_save_ifs"
8091   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
8092   ;;
8093 esac
8094 fi
8095 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
8096 if test -n "$ARTS_CONFIG"; then
8097   echo "$ac_t""$ARTS_CONFIG" 1>&6
8098 else
8099   echo "$ac_t""no" 1>&6
8100 fi
8101
8102      if test "x${ARTS_CONFIG}" != "xno"
8103      then
8104        PLUGINS="${PLUGINS} audio_output/arts/arts"
8105        arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
8106        arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
8107      fi
8108    fi
8109 fi
8110
8111
8112 # Check whether --enable-alsa or --disable-alsa was given.
8113 if test "${enable_alsa+set}" = set; then
8114   enableval="$enable_alsa"
8115   if test "x${enable_alsa}" = "xyes"
8116    then
8117      ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
8118 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
8119 echo "configure:8120: checking for alsa/asoundlib.h" >&5
8120 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8121   echo $ac_n "(cached) $ac_c" 1>&6
8122 else
8123   cat > conftest.$ac_ext <<EOF
8124 #line 8125 "configure"
8125 #include "confdefs.h"
8126 #include <alsa/asoundlib.h>
8127 EOF
8128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8129 { (eval echo configure:8130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8131 if test -z "$ac_err"; then
8132   rm -rf conftest*
8133   eval "ac_cv_header_$ac_safe=yes"
8134 else
8135   echo "$ac_err" >&5
8136   echo "configure: failed program was:" >&5
8137   cat conftest.$ac_ext >&5
8138   rm -rf conftest*
8139   eval "ac_cv_header_$ac_safe=no"
8140 fi
8141 rm -f conftest*
8142 fi
8143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8144   echo "$ac_t""yes" 1>&6
8145   echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
8146 echo "configure:8147: checking for main in -lasound" >&5
8147 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
8148 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8149   echo $ac_n "(cached) $ac_c" 1>&6
8150 else
8151   ac_save_LIBS="$LIBS"
8152 LIBS="-lasound  $LIBS"
8153 cat > conftest.$ac_ext <<EOF
8154 #line 8155 "configure"
8155 #include "confdefs.h"
8156
8157 int main() {
8158 main()
8159 ; return 0; }
8160 EOF
8161 if { (eval echo configure:8162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8162   rm -rf conftest*
8163   eval "ac_cv_lib_$ac_lib_var=yes"
8164 else
8165   echo "configure: failed program was:" >&5
8166   cat conftest.$ac_ext >&5
8167   rm -rf conftest*
8168   eval "ac_cv_lib_$ac_lib_var=no"
8169 fi
8170 rm -f conftest*
8171 LIBS="$ac_save_LIBS"
8172
8173 fi
8174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8175   echo "$ac_t""yes" 1>&6
8176   have_alsa="true"
8177 else
8178   echo "$ac_t""no" 1>&6
8179 have_alsa="false"
8180 fi
8181
8182 else
8183   echo "$ac_t""no" 1>&6
8184 have_alsa="false"
8185 fi
8186
8187      if test "x${have_alsa}" = "xtrue"
8188      then
8189        PLUGINS="${PLUGINS} audio_output/alsa/alsa"
8190        alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
8191      fi
8192    fi
8193 fi
8194
8195
8196 # Check whether --enable-waveout or --disable-waveout was given.
8197 if test "${enable_waveout+set}" = set; then
8198   enableval="$enable_waveout"
8199   :
8200 fi
8201
8202 if test "x${enable_waveout}" != "xno" -a "x${SYS}" = "xmingw32"
8203   then
8204     PLUGINS="${PLUGINS} audio_output/waveout/waveout"
8205     waveout_LDFLAGS="-lwinmm"
8206 fi
8207
8208
8209 # Check whether --with- or --without- was given.
8210 if test "${with_+set}" = set; then
8211   withval="$with_"
8212   :
8213 fi
8214
8215
8216 # Check whether --enable-gtk or --disable-gtk was given.
8217 if test "${enable_gtk+set}" = set; then
8218   enableval="$enable_gtk"
8219   :
8220 fi
8221
8222 if test "x${enable_gtk}" != "xno"
8223 then
8224   GTK_PATH="${PATH}"
8225   # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8226 if test "${with_gtk_config_path+set}" = set; then
8227   withval="$with_gtk_config_path"
8228    if test "x${with_gtk_config_path}" != "xno"
8229       then
8230         GTK_PATH="${with_gtk_config_path}:${PATH}"
8231       fi 
8232 fi
8233
8234   # look for gtk-config
8235   # Extract the first word of "gtk12-config", so it can be a program name with args.
8236 set dummy gtk12-config; ac_word=$2
8237 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8238 echo "configure:8239: checking for $ac_word" >&5
8239 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8240   echo $ac_n "(cached) $ac_c" 1>&6
8241 else
8242   case "$GTK12_CONFIG" in
8243   /*)
8244   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8245   ;;
8246   ?:/*)                  
8247   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8248   ;;
8249   *)
8250   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8251   ac_dummy="${GTK_PATH}"
8252   for ac_dir in $ac_dummy; do 
8253     test -z "$ac_dir" && ac_dir=.
8254     if test -f $ac_dir/$ac_word; then
8255       ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8256       break
8257     fi
8258   done
8259   IFS="$ac_save_ifs"
8260   test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8261   ;;
8262 esac
8263 fi
8264 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8265 if test -n "$GTK12_CONFIG"; then
8266   echo "$ac_t""$GTK12_CONFIG" 1>&6
8267 else
8268   echo "$ac_t""no" 1>&6
8269 fi
8270
8271   GTK_CONFIG=${GTK12_CONFIG}
8272   if test "x${GTK_CONFIG}" = "xno"
8273   then
8274     # Extract the first word of "gtk-config", so it can be a program name with args.
8275 set dummy gtk-config; ac_word=$2
8276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8277 echo "configure:8278: checking for $ac_word" >&5
8278 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8279   echo $ac_n "(cached) $ac_c" 1>&6
8280 else
8281   case "$GTK_CONFIG" in
8282   /*)
8283   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8284   ;;
8285   ?:/*)                  
8286   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8287   ;;
8288   *)
8289   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8290   ac_dummy="${GTK_PATH}"
8291   for ac_dir in $ac_dummy; do 
8292     test -z "$ac_dir" && ac_dir=.
8293     if test -f $ac_dir/$ac_word; then
8294       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8295       break
8296     fi
8297   done
8298   IFS="$ac_save_ifs"
8299   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8300   ;;
8301 esac
8302 fi
8303 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8304 if test -n "$GTK_CONFIG"; then
8305   echo "$ac_t""$GTK_CONFIG" 1>&6
8306 else
8307   echo "$ac_t""no" 1>&6
8308 fi
8309
8310   fi
8311   if test "x${GTK_CONFIG}" != "xno"
8312   then
8313     if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8314     then
8315       { echo "configure: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-gtk." 1>&2; exit 1; }
8316     fi
8317     gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
8318     gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
8319     # now look for the gtk.h header
8320     CPPFLAGS="${save_CPPFLAGS} ${gtk_CFLAGS}"
8321     ac_cv_gtk_headers=yes
8322     for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8323 do
8324 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8325 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8326 echo "configure:8327: checking for $ac_hdr" >&5
8327 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8328   echo $ac_n "(cached) $ac_c" 1>&6
8329 else
8330   cat > conftest.$ac_ext <<EOF
8331 #line 8332 "configure"
8332 #include "confdefs.h"
8333 #include <$ac_hdr>
8334 EOF
8335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8336 { (eval echo configure:8337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8338 if test -z "$ac_err"; then
8339   rm -rf conftest*
8340   eval "ac_cv_header_$ac_safe=yes"
8341 else
8342   echo "$ac_err" >&5
8343   echo "configure: failed program was:" >&5
8344   cat conftest.$ac_ext >&5
8345   rm -rf conftest*
8346   eval "ac_cv_header_$ac_safe=no"
8347 fi
8348 rm -f conftest*
8349 fi
8350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8351   echo "$ac_t""yes" 1>&6
8352     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8353   cat >> confdefs.h <<EOF
8354 #define $ac_tr_hdr 1
8355 EOF
8356  
8357 else
8358   echo "$ac_t""no" 1>&6
8359 ac_cv_gtk_headers=no
8360       echo "Cannot find gtk development headers."
8361     
8362 fi
8363 done
8364
8365     if test "x${ac_cv_gtk_headers}" = "xyes"
8366     then
8367       PLUGINS="${PLUGINS} gui/gtk/gtk"
8368       ALIASES="${ALIASES} gvlc"
8369     fi
8370     CPPFLAGS="${save_CPPFLAGS}"
8371   fi
8372 fi
8373
8374 # Check whether --enable-familiar or --disable-familiar was given.
8375 if test "${enable_familiar+set}" = set; then
8376   enableval="$enable_familiar"
8377   :
8378 fi
8379
8380 if test "x${enable_familiar}" = "xyes"
8381 then
8382   GTK_PATH="${PATH}"
8383   # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
8384 if test "${with_gtk_config_path+set}" = set; then
8385   withval="$with_gtk_config_path"
8386    if test "x${with_gtk_config_path}" != "xno"
8387       then
8388         GTK_PATH="${with_gtk_config_path}:${PATH}"
8389       fi 
8390 fi
8391
8392   # look for gtk-config
8393   # Extract the first word of "gtk12-config", so it can be a program name with args.
8394 set dummy gtk12-config; ac_word=$2
8395 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8396 echo "configure:8397: checking for $ac_word" >&5
8397 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
8398   echo $ac_n "(cached) $ac_c" 1>&6
8399 else
8400   case "$GTK12_CONFIG" in
8401   /*)
8402   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8403   ;;
8404   ?:/*)                  
8405   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
8406   ;;
8407   *)
8408   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8409   ac_dummy="${GTK_PATH}"
8410   for ac_dir in $ac_dummy; do 
8411     test -z "$ac_dir" && ac_dir=.
8412     if test -f $ac_dir/$ac_word; then
8413       ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
8414       break
8415     fi
8416   done
8417   IFS="$ac_save_ifs"
8418   test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8419   ;;
8420 esac
8421 fi
8422 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
8423 if test -n "$GTK12_CONFIG"; then
8424   echo "$ac_t""$GTK12_CONFIG" 1>&6
8425 else
8426   echo "$ac_t""no" 1>&6
8427 fi
8428
8429   GTK_CONFIG=${GTK12_CONFIG}
8430   if test "x${GTK_CONFIG}" = "xno"
8431   then
8432     # Extract the first word of "gtk-config", so it can be a program name with args.
8433 set dummy gtk-config; ac_word=$2
8434 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8435 echo "configure:8436: checking for $ac_word" >&5
8436 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8437   echo $ac_n "(cached) $ac_c" 1>&6
8438 else
8439   case "$GTK_CONFIG" in
8440   /*)
8441   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8442   ;;
8443   ?:/*)                  
8444   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8445   ;;
8446   *)
8447   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8448   ac_dummy="${GTK_PATH}"
8449   for ac_dir in $ac_dummy; do 
8450     test -z "$ac_dir" && ac_dir=.
8451     if test -f $ac_dir/$ac_word; then
8452       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8453       break
8454     fi
8455   done
8456   IFS="$ac_save_ifs"
8457   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8458   ;;
8459 esac
8460 fi
8461 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8462 if test -n "$GTK_CONFIG"; then
8463   echo "$ac_t""$GTK_CONFIG" 1>&6
8464 else
8465   echo "$ac_t""no" 1>&6
8466 fi
8467
8468   fi
8469   if test "x${GTK_CONFIG}" != "xno"
8470   then
8471     if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
8472     then
8473       { echo "configure: error: Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-familiar." 1>&2; exit 1; }
8474     fi
8475     familiar_CFLAGS="${familiar_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
8476     familiar_LDFLAGS="${familiar_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
8477     # now look for the gtk.h header
8478     CPPFLAGS="${save_CPPFLAGS} ${familiar_CFLAGS}"
8479     ac_cv_gtk_headers=yes
8480     for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
8481 do
8482 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8483 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8484 echo "configure:8485: checking for $ac_hdr" >&5
8485 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8486   echo $ac_n "(cached) $ac_c" 1>&6
8487 else
8488   cat > conftest.$ac_ext <<EOF
8489 #line 8490 "configure"
8490 #include "confdefs.h"
8491 #include <$ac_hdr>
8492 EOF
8493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8494 { (eval echo configure:8495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8495 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8496 if test -z "$ac_err"; then
8497   rm -rf conftest*
8498   eval "ac_cv_header_$ac_safe=yes"
8499 else
8500   echo "$ac_err" >&5
8501   echo "configure: failed program was:" >&5
8502   cat conftest.$ac_ext >&5
8503   rm -rf conftest*
8504   eval "ac_cv_header_$ac_safe=no"
8505 fi
8506 rm -f conftest*
8507 fi
8508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8509   echo "$ac_t""yes" 1>&6
8510     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8511   cat >> confdefs.h <<EOF
8512 #define $ac_tr_hdr 1
8513 EOF
8514  
8515 else
8516   echo "$ac_t""no" 1>&6
8517 ac_cv_gtk_headers=no
8518       echo "Cannot find gtk development headers."
8519     
8520 fi
8521 done
8522
8523     if test "x${ac_cv_gtk_headers}" = "xyes"
8524     then
8525       PLUGINS="${PLUGINS} gui/familiar/familiar"
8526     fi
8527     CPPFLAGS="${save_CPPFLAGS}"
8528   fi
8529 fi
8530
8531 # Check whether --enable-gnome or --disable-gnome was given.
8532 if test "${enable_gnome+set}" = set; then
8533   enableval="$enable_gnome"
8534   if test "x${enable_gnome}" = "xyes"; then
8535     # look for gnome-config
8536     # Extract the first word of "gnome-config", so it can be a program name with args.
8537 set dummy gnome-config; ac_word=$2
8538 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8539 echo "configure:8540: checking for $ac_word" >&5
8540 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
8541   echo $ac_n "(cached) $ac_c" 1>&6
8542 else
8543   case "$GNOME_CONFIG" in
8544   /*)
8545   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8546   ;;
8547   ?:/*)                  
8548   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
8549   ;;
8550   *)
8551   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8552   ac_dummy="$PATH"
8553   for ac_dir in $ac_dummy; do 
8554     test -z "$ac_dir" && ac_dir=.
8555     if test -f $ac_dir/$ac_word; then
8556       ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
8557       break
8558     fi
8559   done
8560   IFS="$ac_save_ifs"
8561   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8562   ;;
8563 esac
8564 fi
8565 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
8566 if test -n "$GNOME_CONFIG"; then
8567   echo "$ac_t""$GNOME_CONFIG" 1>&6
8568 else
8569   echo "$ac_t""no" 1>&6
8570 fi
8571
8572     if test -x ${GNOME_CONFIG}
8573     then
8574        gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8575        gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8576     fi
8577     # now look for the gnome.h header
8578     CPPFLAGS="${save_CPPFLAGS} ${gnome_CFLAGS}"
8579     for ac_hdr in gnome.h
8580 do
8581 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8582 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8583 echo "configure:8584: checking for $ac_hdr" >&5
8584 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8585   echo $ac_n "(cached) $ac_c" 1>&6
8586 else
8587   cat > conftest.$ac_ext <<EOF
8588 #line 8589 "configure"
8589 #include "confdefs.h"
8590 #include <$ac_hdr>
8591 EOF
8592 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8593 { (eval echo configure:8594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8594 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8595 if test -z "$ac_err"; then
8596   rm -rf conftest*
8597   eval "ac_cv_header_$ac_safe=yes"
8598 else
8599   echo "$ac_err" >&5
8600   echo "configure: failed program was:" >&5
8601   cat conftest.$ac_ext >&5
8602   rm -rf conftest*
8603   eval "ac_cv_header_$ac_safe=no"
8604 fi
8605 rm -f conftest*
8606 fi
8607 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8608   echo "$ac_t""yes" 1>&6
8609     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8610   cat >> confdefs.h <<EOF
8611 #define $ac_tr_hdr 1
8612 EOF
8613  
8614       PLUGINS="${PLUGINS} gui/gtk/gnome"
8615       ALIASES="${ALIASES} gnome-vlc"
8616      
8617 else
8618   echo "$ac_t""no" 1>&6
8619 { echo "configure: error: Can't find gnome headers. Please install the gnome
8620 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
8621      
8622 fi
8623 done
8624
8625     CPPFLAGS="${save_CPPFLAGS}"
8626   fi
8627 fi
8628
8629
8630 # Check whether --enable-qt or --disable-qt was given.
8631 if test "${enable_qt+set}" = set; then
8632   enableval="$enable_qt"
8633   if test "x${enable_qt}" = "xyes"; then
8634      PLUGINS="${PLUGINS} gui/qt/qt"
8635      ALIASES="${ALIASES} qvlc"
8636      qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
8637      qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
8638      if test -x ${QTDIR}/bin/moc
8639      then
8640        MOC=${QTDIR}/bin/moc
8641      else
8642        MOC=moc
8643      fi
8644    fi
8645 fi
8646
8647
8648 # Check whether --enable-kde or --disable-kde was given.
8649 if test "${enable_kde+set}" = set; then
8650   enableval="$enable_kde"
8651   if test "x${enable_kde}" = "xyes"; then
8652      PLUGINS="${PLUGINS} gui/kde/kde"
8653      ALIASES="${ALIASES} kvlc"
8654      kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8655      kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8656      kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
8657      if test -x ${QTDIR}/bin/moc
8658      then
8659        MOC=${QTDIR}/bin/moc
8660      else
8661        MOC=moc
8662      fi
8663    fi
8664 fi
8665
8666
8667 # Check whether --enable-macosx or --disable-macosx was given.
8668 if test "${enable_macosx+set}" = set; then
8669   enableval="$enable_macosx"
8670   if test "x${enable_macosx}" = "xyes"
8671    then
8672      BUILTINS="${BUILTINS} gui/macosx/macosx"
8673      macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
8674    fi
8675 else
8676   for ac_hdr in Cocoa/Cocoa.h
8677 do
8678 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8679 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8680 echo "configure:8681: checking for $ac_hdr" >&5
8681 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8682   echo $ac_n "(cached) $ac_c" 1>&6
8683 else
8684   cat > conftest.$ac_ext <<EOF
8685 #line 8686 "configure"
8686 #include "confdefs.h"
8687 #include <$ac_hdr>
8688 EOF
8689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8690 { (eval echo configure:8691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8692 if test -z "$ac_err"; then
8693   rm -rf conftest*
8694   eval "ac_cv_header_$ac_safe=yes"
8695 else
8696   echo "$ac_err" >&5
8697   echo "configure: failed program was:" >&5
8698   cat conftest.$ac_ext >&5
8699   rm -rf conftest*
8700   eval "ac_cv_header_$ac_safe=no"
8701 fi
8702 rm -f conftest*
8703 fi
8704 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8705   echo "$ac_t""yes" 1>&6
8706     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8707   cat >> confdefs.h <<EOF
8708 #define $ac_tr_hdr 1
8709 EOF
8710  BUILTINS="${BUILTINS} gui/macosx/macosx"
8711      macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework Carbon -framework AGL -framework QuickTime -lobjc -ObjC"
8712    
8713 else
8714   echo "$ac_t""no" 1>&6
8715 fi
8716 done
8717
8718 fi
8719
8720
8721 # Check whether --enable-qnx or --disable-qnx was given.
8722 if test "${enable_qnx+set}" = set; then
8723   enableval="$enable_qnx"
8724   :
8725 fi
8726
8727     if test "x${enable_qnx}" != "xno"
8728     then
8729       for ac_hdr in Ph.h
8730 do
8731 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8732 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8733 echo "configure:8734: checking for $ac_hdr" >&5
8734 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8735   echo $ac_n "(cached) $ac_c" 1>&6
8736 else
8737   cat > conftest.$ac_ext <<EOF
8738 #line 8739 "configure"
8739 #include "confdefs.h"
8740 #include <$ac_hdr>
8741 EOF
8742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8743 { (eval echo configure:8744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8745 if test -z "$ac_err"; then
8746   rm -rf conftest*
8747   eval "ac_cv_header_$ac_safe=yes"
8748 else
8749   echo "$ac_err" >&5
8750   echo "configure: failed program was:" >&5
8751   cat conftest.$ac_ext >&5
8752   rm -rf conftest*
8753   eval "ac_cv_header_$ac_safe=no"
8754 fi
8755 rm -f conftest*
8756 fi
8757 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8758   echo "$ac_t""yes" 1>&6
8759     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8760   cat >> confdefs.h <<EOF
8761 #define $ac_tr_hdr 1
8762 EOF
8763  
8764         PLUGINS="${PLUGINS} gui/qnx/qnx"
8765         qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
8766       
8767 else
8768   echo "$ac_t""no" 1>&6
8769 fi
8770 done
8771
8772     fi
8773
8774 # Check whether --enable-intfwin or --disable-intfwin was given.
8775 if test "${enable_intfwin+set}" = set; then
8776   enableval="$enable_intfwin"
8777    if test "x${enable_intfwin}" != "xno"
8778   then
8779     # Check whether --with-bcbuilder or --without-bcbuilder was given.
8780 if test "${with_bcbuilder+set}" = set; then
8781   withval="$with_bcbuilder"
8782   :
8783 fi
8784
8785     if test "x${with_bcbuilder}" != "x"
8786     then
8787       BCBUILDER="${with_bcbuilder}"
8788     fi
8789     PLUGINS="${PLUGINS} gui/win32/win32"
8790   fi 
8791 fi
8792
8793
8794 # Check whether --enable-ncurses or --disable-ncurses was given.
8795 if test "${enable_ncurses+set}" = set; then
8796   enableval="$enable_ncurses"
8797   if test "x${enable_ncurses}" = "xyes"; then
8798      PLUGINS="${PLUGINS} gui/ncurses/ncurses"
8799      ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
8800    fi
8801 fi
8802
8803
8804 # Check whether --enable-xosd or --disable-xosd was given.
8805 if test "${enable_xosd+set}" = set; then
8806   enableval="$enable_xosd"
8807   :
8808 fi
8809
8810 if test "x${enable_xosd}" = "xyes"
8811 then
8812   ac_safe=`echo "xosd.h" | sed 'y%./+-%__p_%'`
8813 echo $ac_n "checking for xosd.h""... $ac_c" 1>&6
8814 echo "configure:8815: checking for xosd.h" >&5
8815 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8816   echo $ac_n "(cached) $ac_c" 1>&6
8817 else
8818   cat > conftest.$ac_ext <<EOF
8819 #line 8820 "configure"
8820 #include "confdefs.h"
8821 #include <xosd.h>
8822 EOF
8823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8824 { (eval echo configure:8825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8826 if test -z "$ac_err"; then
8827   rm -rf conftest*
8828   eval "ac_cv_header_$ac_safe=yes"
8829 else
8830   echo "$ac_err" >&5
8831   echo "configure: failed program was:" >&5
8832   cat conftest.$ac_ext >&5
8833   rm -rf conftest*
8834   eval "ac_cv_header_$ac_safe=no"
8835 fi
8836 rm -f conftest*
8837 fi
8838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8839   echo "$ac_t""yes" 1>&6
8840   have_xosd="true"
8841 else
8842   echo "$ac_t""no" 1>&6
8843 have_xosd="false"
8844 fi
8845
8846   if test "x${have_xosd}" = "xtrue"
8847   then
8848     PLUGINS="${PLUGINS} visualization/xosd/xosd"
8849     xosd_LDFLAGS="${xosd_LDFLAGS} -lxosd"
8850   fi
8851 fi
8852
8853 # Check whether --enable-lirc or --disable-lirc was given.
8854 if test "${enable_lirc+set}" = set; then
8855   enableval="$enable_lirc"
8856   :
8857 fi
8858
8859 if test "x${enable_lirc}" = "xyes"
8860 then
8861   ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8862 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8863 echo "configure:8864: checking for lirc/lirc_client.h" >&5
8864 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8865   echo $ac_n "(cached) $ac_c" 1>&6
8866 else
8867   cat > conftest.$ac_ext <<EOF
8868 #line 8869 "configure"
8869 #include "confdefs.h"
8870 #include <lirc/lirc_client.h>
8871 EOF
8872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8873 { (eval echo configure:8874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8875 if test -z "$ac_err"; then
8876   rm -rf conftest*
8877   eval "ac_cv_header_$ac_safe=yes"
8878 else
8879   echo "$ac_err" >&5
8880   echo "configure: failed program was:" >&5
8881   cat conftest.$ac_ext >&5
8882   rm -rf conftest*
8883   eval "ac_cv_header_$ac_safe=no"
8884 fi
8885 rm -f conftest*
8886 fi
8887 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8888   echo "$ac_t""yes" 1>&6
8889   echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8890 echo "configure:8891: checking for lirc_init in -llirc_client" >&5
8891 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8892 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8893   echo $ac_n "(cached) $ac_c" 1>&6
8894 else
8895   ac_save_LIBS="$LIBS"
8896 LIBS="-llirc_client  $LIBS"
8897 cat > conftest.$ac_ext <<EOF
8898 #line 8899 "configure"
8899 #include "confdefs.h"
8900 /* Override any gcc2 internal prototype to avoid an error.  */
8901 /* We use char because int might match the return type of a gcc2
8902     builtin and then its argument prototype would still apply.  */
8903 char lirc_init();
8904
8905 int main() {
8906 lirc_init()
8907 ; return 0; }
8908 EOF
8909 if { (eval echo configure:8910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8910   rm -rf conftest*
8911   eval "ac_cv_lib_$ac_lib_var=yes"
8912 else
8913   echo "configure: failed program was:" >&5
8914   cat conftest.$ac_ext >&5
8915   rm -rf conftest*
8916   eval "ac_cv_lib_$ac_lib_var=no"
8917 fi
8918 rm -f conftest*
8919 LIBS="$ac_save_LIBS"
8920
8921 fi
8922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8923   echo "$ac_t""yes" 1>&6
8924   have_lirc="true"
8925 else
8926   echo "$ac_t""no" 1>&6
8927 have_lirc="false"
8928 fi
8929
8930 else
8931   echo "$ac_t""no" 1>&6
8932 have_lirc="false"
8933 fi
8934
8935   if test "x${have_lirc}" = "xtrue"
8936   then
8937     PLUGINS="${PLUGINS} control/lirc/lirc"
8938     lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
8939   fi
8940 fi
8941
8942 # Check whether --with- or --without- was given.
8943 if test "${with_+set}" = set; then
8944   withval="$with_"
8945   :
8946 fi
8947
8948
8949 # Check whether --with-words or --without-words was given.
8950 if test "${with_words+set}" = set; then
8951   withval="$with_words"
8952   :
8953 fi
8954
8955   case "x${with_words}" in
8956     xbig)
8957       ac_cv_c_bigendian=yes
8958       ;;
8959     xlittle)
8960       ac_cv_c_bigendian=no
8961       ;;
8962     *)
8963                   echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8964 echo "configure:8965: checking whether the byte order is big-endian" >&5
8965 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8966   echo $ac_n "(cached) $ac_c" 1>&6
8967 else
8968   ac_cv_c_bigendian="unknown"
8969         cat >conftest.c <<EOF
8970         short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8971         short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8972         void _a(void) { char*s = (char*)am; s = (char *)ai; }
8973         short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8974         short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8975         void _e(void) { char*s = (char*)em; s = (char*)ei; }
8976         int main(void) { _a(); _e(); return 0; }
8977 EOF
8978         
8979         if test -f conftest.c
8980         then 
8981           if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
8982               && test -f conftest.o
8983           then
8984             if test "`strings conftest.o | grep BIGenDianSyS`"
8985             then
8986               ac_cv_c_bigendian="yes"
8987             fi
8988             if test "`strings conftest.o | grep LiTTleEnDian`"
8989             then
8990               ac_cv_c_bigendian="no"
8991             fi
8992           fi
8993         fi
8994       
8995 fi
8996
8997 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8998       if test "x${ac_cv_c_bigendian}" = "xunknown"
8999       then
9000         { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
9001       fi
9002       ;;
9003   esac
9004 if test "${ac_cv_c_bigendian}" = "yes"
9005 then
9006   cat >> confdefs.h <<\EOF
9007 #define WORDS_BIGENDIAN 1
9008 EOF
9009
9010 fi
9011
9012 PROFILING=0
9013
9014 GPROF=0
9015 # Check whether --enable-gprof or --disable-gprof was given.
9016 if test "${enable_gprof+set}" = set; then
9017   enableval="$enable_gprof"
9018    if test "x${enable_gprof}" = "xyes"
9019   then
9020     GPROF=1
9021     PROFILING="gprof"
9022   fi
9023
9024 fi
9025
9026
9027 CPROF=0
9028 # Check whether --enable-cprof or --disable-cprof was given.
9029 if test "${enable_cprof+set}" = set; then
9030   enableval="$enable_cprof"
9031    if test "x${enable_cprof}" = "xyes"
9032   then
9033     save_LDFLAGS="${save_LDFLAGS} -lcprof"; LDFLAGS="${save_LDFLAGS}"
9034     CPROF=1
9035     PROFILING="cprof"
9036   fi
9037
9038 fi
9039
9040
9041 # Check whether --enable-pth or --disable-pth was given.
9042 if test "${enable_pth+set}" = set; then
9043   enableval="$enable_pth"
9044    if test "x${enable_pth}" = "xyes"; then
9045     echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
9046 echo "configure:9047: checking for pth_init in -lpth" >&5
9047 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
9048 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9049   echo $ac_n "(cached) $ac_c" 1>&6
9050 else
9051   ac_save_LIBS="$LIBS"
9052 LIBS="-lpth  $LIBS"
9053 cat > conftest.$ac_ext <<EOF
9054 #line 9055 "configure"
9055 #include "confdefs.h"
9056 /* Override any gcc2 internal prototype to avoid an error.  */
9057 /* We use char because int might match the return type of a gcc2
9058     builtin and then its argument prototype would still apply.  */
9059 char pth_init();
9060
9061 int main() {
9062 pth_init()
9063 ; return 0; }
9064 EOF
9065 if { (eval echo configure:9066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9066   rm -rf conftest*
9067   eval "ac_cv_lib_$ac_lib_var=yes"
9068 else
9069   echo "configure: failed program was:" >&5
9070   cat conftest.$ac_ext >&5
9071   rm -rf conftest*
9072   eval "ac_cv_lib_$ac_lib_var=no"
9073 fi
9074 rm -f conftest*
9075 LIBS="$ac_save_LIBS"
9076
9077 fi
9078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9079   echo "$ac_t""yes" 1>&6
9080     ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9081     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9082   cat >> confdefs.h <<EOF
9083 #define $ac_tr_lib 1
9084 EOF
9085
9086   LIBS="-lpth $LIBS"
9087
9088 else
9089   echo "$ac_t""no" 1>&6
9090 fi
9091
9092     cat > conftest.$ac_ext <<EOF
9093 #line 9094 "configure"
9094 #include "confdefs.h"
9095 #include <pth.h>
9096 EOF
9097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9098   egrep "pth_init" >/dev/null 2>&1; then
9099   rm -rf conftest*
9100   
9101       cat >> confdefs.h <<\EOF
9102 #define PTH_INIT_IN_PTH_H 1
9103 EOF
9104
9105     THREAD_LIB="-lpth"
9106     fi
9107 fi
9108 rm -f conftest*
9109
9110
9111 fi
9112
9113
9114 # Check whether --enable-st or --disable-st was given.
9115 if test "${enable_st+set}" = set; then
9116   enableval="$enable_st"
9117    if test "x${enable_st}" = "xyes"; then
9118     echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
9119 echo "configure:9120: checking for st_init in -lst" >&5
9120 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
9121 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9122   echo $ac_n "(cached) $ac_c" 1>&6
9123 else
9124   ac_save_LIBS="$LIBS"
9125 LIBS="-lst  $LIBS"
9126 cat > conftest.$ac_ext <<EOF
9127 #line 9128 "configure"
9128 #include "confdefs.h"
9129 /* Override any gcc2 internal prototype to avoid an error.  */
9130 /* We use char because int might match the return type of a gcc2
9131     builtin and then its argument prototype would still apply.  */
9132 char st_init();
9133
9134 int main() {
9135 st_init()
9136 ; return 0; }
9137 EOF
9138 if { (eval echo configure:9139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9139   rm -rf conftest*
9140   eval "ac_cv_lib_$ac_lib_var=yes"
9141 else
9142   echo "configure: failed program was:" >&5
9143   cat conftest.$ac_ext >&5
9144   rm -rf conftest*
9145   eval "ac_cv_lib_$ac_lib_var=no"
9146 fi
9147 rm -f conftest*
9148 LIBS="$ac_save_LIBS"
9149
9150 fi
9151 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9152   echo "$ac_t""yes" 1>&6
9153     ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9154     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9155   cat >> confdefs.h <<EOF
9156 #define $ac_tr_lib 1
9157 EOF
9158
9159   LIBS="-lst $LIBS"
9160
9161 else
9162   echo "$ac_t""no" 1>&6
9163 fi
9164
9165     cat > conftest.$ac_ext <<EOF
9166 #line 9167 "configure"
9167 #include "confdefs.h"
9168 #include <st.h>
9169 EOF
9170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9171   egrep "st_init" >/dev/null 2>&1; then
9172   rm -rf conftest*
9173   
9174       cat >> confdefs.h <<\EOF
9175 #define ST_INIT_IN_ST_H 1
9176 EOF
9177
9178     THREAD_LIB="-lst"
9179     fi
9180 fi
9181 rm -f conftest*
9182
9183
9184 fi
9185
9186
9187 vlc_LDFLAGS="${vlc_LDFLAGS} ${THREAD_LIB}"
9188 plugins_LDFLAGS="${plugins_LDFLAGS} ${THREAD_LIB}"
9189
9190 MOZILLA=0
9191 # Check whether --enable-mozilla or --disable-mozilla was given.
9192 if test "${enable_mozilla+set}" = set; then
9193   enableval="$enable_mozilla"
9194   :
9195 fi
9196
9197 if test "x${enable_mozilla}" = "xyes"
9198 then
9199   # Extract the first word of "mozilla-config", so it can be a program name with args.
9200 set dummy mozilla-config; ac_word=$2
9201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9202 echo "configure:9203: checking for $ac_word" >&5
9203 if eval "test \"`echo '$''{'ac_cv_path_MOZILLA_CONFIG'+set}'`\" = set"; then
9204   echo $ac_n "(cached) $ac_c" 1>&6
9205 else
9206   case "$MOZILLA_CONFIG" in
9207   /*)
9208   ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a path.
9209   ;;
9210   ?:/*)                  
9211   ac_cv_path_MOZILLA_CONFIG="$MOZILLA_CONFIG" # Let the user override the test with a dos path.
9212   ;;
9213   *)
9214   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
9215   ac_dummy="$PATH"
9216   for ac_dir in $ac_dummy; do 
9217     test -z "$ac_dir" && ac_dir=.
9218     if test -f $ac_dir/$ac_word; then
9219       ac_cv_path_MOZILLA_CONFIG="$ac_dir/$ac_word"
9220       break
9221     fi
9222   done
9223   IFS="$ac_save_ifs"
9224   test -z "$ac_cv_path_MOZILLA_CONFIG" && ac_cv_path_MOZILLA_CONFIG="no"
9225   ;;
9226 esac
9227 fi
9228 MOZILLA_CONFIG="$ac_cv_path_MOZILLA_CONFIG"
9229 if test -n "$MOZILLA_CONFIG"; then
9230   echo "$ac_t""$MOZILLA_CONFIG" 1>&6
9231 else
9232   echo "$ac_t""no" 1>&6
9233 fi
9234
9235   if test "x${MOZILLA_CONFIG}" != "xno"
9236   then
9237     if test "x${SYS}" != "xmingw32"; then
9238       LDFLAGS="${save_LDFLAGS} -L${x_libraries}"
9239       echo $ac_n "checking for XtStrings in -lXt""... $ac_c" 1>&6
9240 echo "configure:9241: checking for XtStrings in -lXt" >&5
9241 ac_lib_var=`echo Xt'_'XtStrings | sed 'y%./+-%__p_%'`
9242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9243   echo $ac_n "(cached) $ac_c" 1>&6
9244 else
9245   ac_save_LIBS="$LIBS"
9246 LIBS="-lXt  $LIBS"
9247 cat > conftest.$ac_ext <<EOF
9248 #line 9249 "configure"
9249 #include "confdefs.h"
9250 /* Override any gcc2 internal prototype to avoid an error.  */
9251 /* We use char because int might match the return type of a gcc2
9252     builtin and then its argument prototype would still apply.  */
9253 char XtStrings();
9254
9255 int main() {
9256 XtStrings()
9257 ; return 0; }
9258 EOF
9259 if { (eval echo configure:9260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9260   rm -rf conftest*
9261   eval "ac_cv_lib_$ac_lib_var=yes"
9262 else
9263   echo "configure: failed program was:" >&5
9264   cat conftest.$ac_ext >&5
9265   rm -rf conftest*
9266   eval "ac_cv_lib_$ac_lib_var=no"
9267 fi
9268 rm -f conftest*
9269 LIBS="$ac_save_LIBS"
9270
9271 fi
9272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9273   echo "$ac_t""yes" 1>&6
9274   
9275         mozilla_LDFLAGS="${mozilla_LDFLAGS} -L${x_libraries} -lXt"
9276       
9277 else
9278   echo "$ac_t""no" 1>&6
9279 fi
9280
9281       LDFLAGS="${save_LDFLAGS}"
9282     fi
9283     MOZILLA=1
9284     mozilla_CFLAGS="${mozilla_CFLAGS} `${MOZILLA_CONFIG} --cflags plugin java --defines | xargs`"
9285         mozilla_LDFLAGS="${mozilla_LDFLAGS} `${MOZILLA_CONFIG} --libs | sed 's#-I\(.*\)/mozilla/\([^ ]*\)#-I\1/\2 -I\1/mozilla/\2#g'`"
9286   fi
9287 fi
9288
9289 # Check whether --enable-plugins or --disable-plugins was given.
9290 if test "${enable_plugins+set}" = set; then
9291   enableval="$enable_plugins"
9292   if test "x${enable_plugins}" = "xno"
9293    then
9294      BUILTINS="${BUILTINS} ${PLUGINS}"
9295      PLUGINS=
9296    fi
9297 fi
9298
9299
9300 if test "x${ac_cv_header_dlfcn_h}" = "xno" -a "x${ac_cv_header_image_h}" = "xno" -a "x${SYS}" != "xmingw32"
9301 then
9302   echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
9303   echo "as built-in"
9304   BUILTINS="${BUILTINS} ${PLUGINS}"
9305   PLUGINS=
9306 fi
9307
9308 cat >> confdefs.h <<EOF
9309 #define VERSION_MESSAGE "vlc ${VERSION} ${CODENAME} Copyright 1996-2002 VideoLAN"
9310 EOF
9311
9312 cat >> confdefs.h <<EOF
9313 #define COPYRIGHT_MESSAGE "VideoLAN Client - version ${VERSION} ${CODENAME} - (c) 1996-2002 VideoLAN"
9314 EOF
9315
9316 cat >> confdefs.h <<EOF
9317 #define CONFIGURE_LINE "${CONFIGURE_LINE}"
9318 EOF
9319
9320
9321 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
9322 cat >> confdefs.h <<EOF
9323 #define MODULE_SUFFIX "__${VLC_SYMBOL}"
9324 EOF
9325
9326 cat >> confdefs.h <<EOF
9327 #define MODULE_SYMBOL ${VLC_SYMBOL}
9328 EOF
9329
9330
9331 DATA_PATH="${ac_tool_prefix}/share/videolan"
9332
9333 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
9334
9335
9336 CPPFLAGS="${save_CPPFLAGS}"
9337 CFLAGS="${save_CFLAGS}"
9338 LDFLAGS="${save_LDFLAGS}"
9339
9340 libvlc_LDFLAGS="${vlc_LDFLAGS} ${builtins_LDFLAGS}"
9341 for i in ${BUILTINS} ; do libvlc_LDFLAGS="${libvlc_LDFLAGS} ${libdir}/vlc/${i}.a `eval echo '$'{${i}_LDFLAGS}`" ; done
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450 trap '' 1 2 15
9451 cat > confcache <<\EOF
9452 # This file is a shell script that caches the results of configure
9453 # tests run on this system so they can be shared between configure
9454 # scripts and configure runs.  It is not useful on other systems.
9455 # If it contains results you don't want to keep, you may remove or edit it.
9456 #
9457 # By default, configure uses ./config.cache as the cache file,
9458 # creating it if it does not exist already.  You can give configure
9459 # the --cache-file=FILE option to use a different cache file; that is
9460 # what configure does when it calls configure scripts in
9461 # subdirectories, so they share the cache.
9462 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9463 # config.status only pays attention to the cache file if you give it the
9464 # --recheck option to rerun configure.
9465 #
9466 EOF
9467 # The following way of writing the cache mishandles newlines in values,
9468 # but we know of no workaround that is simple, portable, and efficient.
9469 # So, don't put newlines in cache variables' values.
9470 # Ultrix sh set writes to stderr and can't be redirected directly,
9471 # and sets the high bit in the cache file unless we assign to the vars.
9472 (set) 2>&1 |
9473   case `(ac_space=' '; set | grep ac_space) 2>&1` in
9474   *ac_space=\ *)
9475     # `set' does not quote correctly, so add quotes (double-quote substitution
9476     # turns \\\\ into \\, and sed turns \\ into \).
9477     sed -n \
9478       -e "s/'/'\\\\''/g" \
9479       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9480     ;;
9481   *)
9482     # `set' quotes correctly as required by POSIX, so do not add quotes.
9483     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9484     ;;
9485   esac >> confcache
9486 if cmp -s $cache_file confcache; then
9487   :
9488 else
9489   if test -w $cache_file; then
9490     echo "updating cache $cache_file"
9491     cat confcache > $cache_file
9492   else
9493     echo "not updating unwritable cache $cache_file"
9494   fi
9495 fi
9496 rm -f confcache
9497
9498 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9499
9500 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9501 # Let make expand exec_prefix.
9502 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9503
9504 # Any assignment to VPATH causes Sun make to only execute
9505 # the first set of double-colon rules, so remove it if not needed.
9506 # If there is a colon in the path, we need to keep it.
9507 if test "x$srcdir" = x.; then
9508   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
9509 fi
9510
9511 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9512
9513 DEFS=-DHAVE_CONFIG_H
9514
9515 # Without the "./", some shells look in PATH for config.status.
9516 : ${CONFIG_STATUS=./config.status}
9517
9518 echo creating $CONFIG_STATUS
9519 rm -f $CONFIG_STATUS
9520 cat > $CONFIG_STATUS <<EOF
9521 #! /bin/sh
9522 # Generated automatically by configure.
9523 # Run this file to recreate the current configuration.
9524 # This directory was configured as follows,
9525 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9526 #
9527 # $0 $ac_configure_args
9528 #
9529 # Compiler output produced by configure, useful for debugging
9530 # configure, is in ./config.log if it exists.
9531
9532 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9533 for ac_option
9534 do
9535   case "\$ac_option" in
9536   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9537     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9538     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9539   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9540     echo "$CONFIG_STATUS generated by autoconf version 2.13"
9541     exit 0 ;;
9542   -help | --help | --hel | --he | --h)
9543     echo "\$ac_cs_usage"; exit 0 ;;
9544   *) echo "\$ac_cs_usage"; exit 1 ;;
9545   esac
9546 done
9547
9548 ac_given_srcdir=$srcdir
9549 ac_given_INSTALL="$INSTALL"
9550
9551 trap 'rm -fr `echo "Makefile.config Makefile.opts po/Makefile.in vlc-config include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9552 EOF
9553 cat >> $CONFIG_STATUS <<EOF
9554
9555 # Protect against being on the right side of a sed subst in config.status.
9556 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9557  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9558 $ac_vpsub
9559 $extrasub
9560 s%@SHELL@%$SHELL%g
9561 s%@CFLAGS@%$CFLAGS%g
9562 s%@CPPFLAGS@%$CPPFLAGS%g
9563 s%@CXXFLAGS@%$CXXFLAGS%g
9564 s%@FFLAGS@%$FFLAGS%g
9565 s%@DEFS@%$DEFS%g
9566 s%@LDFLAGS@%$LDFLAGS%g
9567 s%@LIBS@%$LIBS%g
9568 s%@exec_prefix@%$exec_prefix%g
9569 s%@prefix@%$prefix%g
9570 s%@program_transform_name@%$program_transform_name%g
9571 s%@bindir@%$bindir%g
9572 s%@sbindir@%$sbindir%g
9573 s%@libexecdir@%$libexecdir%g
9574 s%@datadir@%$datadir%g
9575 s%@sysconfdir@%$sysconfdir%g
9576 s%@sharedstatedir@%$sharedstatedir%g
9577 s%@localstatedir@%$localstatedir%g
9578 s%@libdir@%$libdir%g
9579 s%@includedir@%$includedir%g
9580 s%@oldincludedir@%$oldincludedir%g
9581 s%@infodir@%$infodir%g
9582 s%@mandir@%$mandir%g
9583 s%@host@%$host%g
9584 s%@host_alias@%$host_alias%g
9585 s%@host_cpu@%$host_cpu%g
9586 s%@host_vendor@%$host_vendor%g
9587 s%@host_os@%$host_os%g
9588 s%@target@%$target%g
9589 s%@target_alias@%$target_alias%g
9590 s%@target_cpu@%$target_cpu%g
9591 s%@target_vendor@%$target_vendor%g
9592 s%@target_os@%$target_os%g
9593 s%@build@%$build%g
9594 s%@build_alias@%$build_alias%g
9595 s%@build_cpu@%$build_cpu%g
9596 s%@build_vendor@%$build_vendor%g
9597 s%@build_os@%$build_os%g
9598 s%@SET_MAKE@%$SET_MAKE%g
9599 s%@CC@%$CC%g
9600 s%@CPP@%$CPP%g
9601 s%@RANLIB@%$RANLIB%g
9602 s%@STRIP@%$STRIP%g
9603 s%@GMAKE@%$GMAKE%g
9604 s%@ALLOCA@%$ALLOCA%g
9605 s%@GLIBC21@%$GLIBC21%g
9606 s%@LIBICONV@%$LIBICONV%g
9607 s%@USE_NLS@%$USE_NLS%g
9608 s%@MSGFMT@%$MSGFMT%g
9609 s%@GMSGFMT@%$GMSGFMT%g
9610 s%@XGETTEXT@%$XGETTEXT%g
9611 s%@INTLBISON@%$INTLBISON%g
9612 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
9613 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9614 s%@CATALOGS@%$CATALOGS%g
9615 s%@CATOBJEXT@%$CATOBJEXT%g
9616 s%@GMOFILES@%$GMOFILES%g
9617 s%@INTLLIBS@%$INTLLIBS%g
9618 s%@INTLOBJS@%$INTLOBJS%g
9619 s%@POFILES@%$POFILES%g
9620 s%@POSUB@%$POSUB%g
9621 s%@DATADIRNAME@%$DATADIRNAME%g
9622 s%@INSTOBJEXT@%$INSTOBJEXT%g
9623 s%@GENCAT@%$GENCAT%g
9624 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9625 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
9626 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9627 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9628 s%@INSTALL_DATA@%$INSTALL_DATA%g
9629 s%@WINDRES@%$WINDRES%g
9630 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
9631 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
9632 s%@SDL_CONFIG@%$SDL_CONFIG%g
9633 s%@ESD_CONFIG@%$ESD_CONFIG%g
9634 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
9635 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
9636 s%@GTK_CONFIG@%$GTK_CONFIG%g
9637 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9638 s%@MOZILLA_CONFIG@%$MOZILLA_CONFIG%g
9639 s%@DATA_PATH@%$DATA_PATH%g
9640 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
9641 s%@libvlc_LDFLAGS@%$libvlc_LDFLAGS%g
9642 s%@SYS@%$SYS%g
9643 s%@ARCH@%$ARCH%g
9644 s%@PLUGINS@%$PLUGINS%g
9645 s%@BUILTINS@%$BUILTINS%g
9646 s%@ALIASES@%$ALIASES%g
9647 s%@DEBUG@%$DEBUG%g
9648 s%@ASM@%$ASM%g
9649 s%@CPROF@%$CPROF%g
9650 s%@GPROF@%$GPROF%g
9651 s%@OPTIMS@%$OPTIMS%g
9652 s%@TUNING@%$TUNING%g
9653 s%@RELEASE@%$RELEASE%g
9654 s%@MOC@%$MOC%g
9655 s%@BCBUILDER@%$BCBUILDER%g
9656 s%@PACKAGE@%$PACKAGE%g
9657 s%@VERSION@%$VERSION%g
9658 s%@NEED_GETOPT@%$NEED_GETOPT%g
9659 s%@MOZILLA@%$MOZILLA%g
9660 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
9661 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
9662 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
9663 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
9664 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
9665 s%@mozilla_CFLAGS@%$mozilla_CFLAGS%g
9666 s%@a52_CFLAGS@%$a52_CFLAGS%g
9667 s%@arts_CFLAGS@%$arts_CFLAGS%g
9668 s%@i420_yuy2_mmx_CFLAGS@%$i420_yuy2_mmx_CFLAGS%g
9669 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
9670 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
9671 s%@dvdplay_CFLAGS@%$dvdplay_CFLAGS%g
9672 s%@ts_dvbpsi_CFLAGS@%$ts_dvbpsi_CFLAGS%g
9673 s%@directx_CFLAGS@%$directx_CFLAGS%g
9674 s%@esd_CFLAGS@%$esd_CFLAGS%g
9675 s%@familiar_CFLAGS@%$familiar_CFLAGS%g
9676 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
9677 s%@glide_CFLAGS@%$glide_CFLAGS%g
9678 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
9679 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
9680 s%@kde_CFLAGS@%$kde_CFLAGS%g
9681 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
9682 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
9683 s%@mad_CFLAGS@%$mad_CFLAGS%g
9684 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
9685 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
9686 s%@qt_CFLAGS@%$qt_CFLAGS%g
9687 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
9688 s%@x11_CFLAGS@%$x11_CFLAGS%g
9689 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
9690 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
9691 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
9692 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
9693 s%@mozilla_LDFLAGS@%$mozilla_LDFLAGS%g
9694 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
9695 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
9696 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
9697 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
9698 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
9699 s%@i420_rgb_LDFLAGS@%$i420_rgb_LDFLAGS%g
9700 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
9701 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
9702 s%@dv_LDFLAGS@%$dv_LDFLAGS%g
9703 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
9704 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
9705 s%@dvdplay_LDFLAGS@%$dvdplay_LDFLAGS%g
9706 s%@ts_dvbpsi_LDFLAGS@%$ts_dvbpsi_LDFLAGS%g
9707 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
9708 s%@familiar_LDFLAGS@%$familiar_LDFLAGS%g
9709 s%@distort_LDFLAGS@%$distort_LDFLAGS%g
9710 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
9711 s%@mp4_LDFLAGS@%$mp4_LDFLAGS%g
9712 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
9713 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
9714 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
9715 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
9716 s%@http_LDFLAGS@%$http_LDFLAGS%g
9717 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
9718 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
9719 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
9720 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
9721 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
9722 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
9723 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
9724 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
9725 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
9726 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
9727 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
9728 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
9729 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
9730 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
9731 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
9732 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
9733 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
9734 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
9735 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
9736 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
9737 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
9738 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
9739 s%@xosd_LDFLAGS@%$xosd_LDFLAGS%g
9740
9741 CEOF
9742 EOF
9743
9744 cat >> $CONFIG_STATUS <<\EOF
9745
9746 # Split the substitutions into bite-sized pieces for seds with
9747 # small command number limits, like on Digital OSF/1 and HP-UX.
9748 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9749 ac_file=1 # Number of current file.
9750 ac_beg=1 # First line for current file.
9751 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9752 ac_more_lines=:
9753 ac_sed_cmds=""
9754 while $ac_more_lines; do
9755   if test $ac_beg -gt 1; then
9756     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9757   else
9758     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9759   fi
9760   if test ! -s conftest.s$ac_file; then
9761     ac_more_lines=false
9762     rm -f conftest.s$ac_file
9763   else
9764     if test -z "$ac_sed_cmds"; then
9765       ac_sed_cmds="sed -f conftest.s$ac_file"
9766     else
9767       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9768     fi
9769     ac_file=`expr $ac_file + 1`
9770     ac_beg=$ac_end
9771     ac_end=`expr $ac_end + $ac_max_sed_cmds`
9772   fi
9773 done
9774 if test -z "$ac_sed_cmds"; then
9775   ac_sed_cmds=cat
9776 fi
9777 EOF
9778
9779 cat >> $CONFIG_STATUS <<EOF
9780
9781 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in vlc-config"}
9782 EOF
9783 cat >> $CONFIG_STATUS <<\EOF
9784 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9785   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9786   case "$ac_file" in
9787   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9788        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9789   *) ac_file_in="${ac_file}.in" ;;
9790   esac
9791
9792   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9793
9794   # Remove last slash and all that follows it.  Not all systems have dirname.
9795   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9796   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9797     # The file is in a subdirectory.
9798     test ! -d "$ac_dir" && mkdir "$ac_dir"
9799     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9800     # A "../" for each directory in $ac_dir_suffix.
9801     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9802   else
9803     ac_dir_suffix= ac_dots=
9804   fi
9805
9806   case "$ac_given_srcdir" in
9807   .)  srcdir=.
9808       if test -z "$ac_dots"; then top_srcdir=.
9809       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9810   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9811   *) # Relative path.
9812     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9813     top_srcdir="$ac_dots$ac_given_srcdir" ;;
9814   esac
9815
9816   case "$ac_given_INSTALL" in
9817   [/$]*) INSTALL="$ac_given_INSTALL" ;;
9818   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9819   esac
9820
9821   echo creating "$ac_file"
9822   rm -f "$ac_file"
9823   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9824   case "$ac_file" in
9825   *Makefile*) ac_comsub="1i\\
9826 # $configure_input" ;;
9827   *) ac_comsub= ;;
9828   esac
9829
9830   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9831   sed -e "$ac_comsub
9832 s%@configure_input@%$configure_input%g
9833 s%@srcdir@%$srcdir%g
9834 s%@top_srcdir@%$top_srcdir%g
9835 s%@INSTALL@%$INSTALL%g
9836 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9837 fi; done
9838 rm -f conftest.s*
9839
9840 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9841 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9842 #
9843 # ac_d sets the value in "#define NAME VALUE" lines.
9844 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
9845 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
9846 ac_dC='\3'
9847 ac_dD='%g'
9848 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9849 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9850 ac_uB='\([      ]\)%\1#\2define\3'
9851 ac_uC=' '
9852 ac_uD='\4%g'
9853 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9854 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9855 ac_eB='$%\1#\2define\3'
9856 ac_eC=' '
9857 ac_eD='%g'
9858
9859 if test "${CONFIG_HEADERS+set}" != set; then
9860 EOF
9861 cat >> $CONFIG_STATUS <<EOF
9862   CONFIG_HEADERS="include/defs.h"
9863 EOF
9864 cat >> $CONFIG_STATUS <<\EOF
9865 fi
9866 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9867   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9868   case "$ac_file" in
9869   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9870        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9871   *) ac_file_in="${ac_file}.in" ;;
9872   esac
9873
9874   echo creating $ac_file
9875
9876   rm -f conftest.frag conftest.in conftest.out
9877   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9878   cat $ac_file_inputs > conftest.in
9879
9880 EOF
9881
9882 # Transform confdefs.h into a sed script conftest.vals that substitutes
9883 # the proper values into config.h.in to produce config.h.  And first:
9884 # Protect against being on the right side of a sed subst in config.status.
9885 # Protect against being in an unquoted here document in config.status.
9886 rm -f conftest.vals
9887 cat > conftest.hdr <<\EOF
9888 s/[\\&%]/\\&/g
9889 s%[\\$`]%\\&%g
9890 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9891 s%ac_d%ac_u%gp
9892 s%ac_u%ac_e%gp
9893 EOF
9894 sed -n -f conftest.hdr confdefs.h > conftest.vals
9895 rm -f conftest.hdr
9896
9897 # This sed command replaces #undef with comments.  This is necessary, for
9898 # example, in the case of _POSIX_SOURCE, which is predefined and required
9899 # on some systems where configure will not decide to define it.
9900 cat >> conftest.vals <<\EOF
9901 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9902 EOF
9903
9904 # Break up conftest.vals because some shells have a limit on
9905 # the size of here documents, and old seds have small limits too.
9906
9907 rm -f conftest.tail
9908 while :
9909 do
9910   ac_lines=`grep -c . conftest.vals`
9911   # grep -c gives empty output for an empty file on some AIX systems.
9912   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9913   # Write a limited-size here document to conftest.frag.
9914   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9915   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9916   echo 'CEOF
9917   sed -f conftest.frag conftest.in > conftest.out
9918   rm -f conftest.in
9919   mv conftest.out conftest.in
9920 ' >> $CONFIG_STATUS
9921   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9922   rm -f conftest.vals
9923   mv conftest.tail conftest.vals
9924 done
9925 rm -f conftest.vals
9926
9927 cat >> $CONFIG_STATUS <<\EOF
9928   rm -f conftest.frag conftest.h
9929   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
9930   cat conftest.in >> conftest.h
9931   rm -f conftest.in
9932   if cmp -s $ac_file conftest.h 2>/dev/null; then
9933     echo "$ac_file is unchanged"
9934     rm -f conftest.h
9935   else
9936     # Remove last slash and all that follows it.  Not all systems have dirname.
9937       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9938       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9939       # The file is in a subdirectory.
9940       test ! -d "$ac_dir" && mkdir "$ac_dir"
9941     fi
9942     rm -f $ac_file
9943     mv conftest.h $ac_file
9944   fi
9945 fi; done
9946
9947 EOF
9948 cat >> $CONFIG_STATUS <<EOF
9949
9950
9951 EOF
9952 cat >> $CONFIG_STATUS <<\EOF
9953 for ac_file in $CONFIG_FILES; do
9954         # Support "outfile[:infile[:infile...]]"
9955         case "$ac_file" in
9956           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9957         esac
9958         # PO directories have a Makefile.in generated from Makefile.in.in.
9959         case "$ac_file" in */Makefile.in)
9960           # Adjust a relative srcdir.
9961           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9962           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9963           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9964           # In autoconf-2.13 it is called $ac_given_srcdir.
9965           # In autoconf-2.50 it is called $srcdir.
9966           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9967           case "$ac_given_srcdir" in
9968             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9969             /*) top_srcdir="$ac_given_srcdir" ;;
9970             *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
9971           esac
9972           if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9973             rm -f "$ac_dir/POTFILES"
9974             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9975             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9976             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9977             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9978           fi
9979           ;;
9980         esac
9981       done
9982
9983 exit 0
9984 EOF
9985 chmod +x $CONFIG_STATUS
9986 rm -fr confdefs* $ac_clean_files
9987 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9988
9989 chmod a+x vlc-config
9990
9991 echo "
9992 vlc configuration
9993 --------------------
9994 vlc version           : ${VERSION}
9995 system                : ${SYS}
9996 architecture          : ${ARCH}
9997 optimizations         : ${OPTIMS}
9998 tuning                : ${TUNING}
9999 debug mode            : ${DEBUG}
10000 release               : ${RELEASE}
10001 profiling             : ${PROFILING}
10002 need builtin getopt   : ${NEED_GETOPT}
10003 built-in modules      :${BUILTINS}
10004 plug-in modules       :${PLUGINS}
10005 mozilla plugin        : ${MOZILLA}
10006 vlc aliases           :${ALIASES}
10007
10008 You may now tune Makefile.opts at your convenience, for instance to choose
10009 which modules get compiled as plugins.
10010
10011 To build vlc and its plugins, type \`${VLC_MAKE}'.
10012 "
10013