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