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