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