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