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