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