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