]> git.sesse.net Git - vlc/blob - configure
* ./src/misc/modules.c: added the --plugin-path option to give vlc an
[vlc] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib"
16 ac_help="$ac_help
17   --disable-nls           do not use Native Language Support"
18 ac_help="$ac_help
19   --with-included-gettext use the GNU gettext library included here"
20 ac_help="$ac_help
21 "
22 ac_help="$ac_help
23 Optimization options:"
24 ac_help="$ac_help
25   --with-tuning=ARCH      enable special tuning for an architecture
26                           (default i686 on IA-32 and 750 on PPC)"
27 ac_help="$ac_help
28   --disable-optimizations disable compiler optimizations (default enabled)"
29 ac_help="$ac_help
30   --disable-altivec       disable AltiVec optimizations (default enabled on PPC)"
31 ac_help="$ac_help
32   --enable-debug          debug mode (default disabled)"
33 ac_help="$ac_help
34   --enable-release        activate extra optimizations (default disabled)"
35 ac_help="$ac_help
36 Input plugins:"
37 ac_help="$ac_help
38   --enable-dvd            DVD input module (default enabled)"
39 ac_help="$ac_help
40     --with-dvdcss=PATH    libdvdcss headers and libraries"
41 ac_help="$ac_help
42     --with-dvdcss-tree=PATH libdvdcss tree for static linking"
43 ac_help="$ac_help
44   --enable-dvdread        dvdread input module (default disabled)"
45 ac_help="$ac_help
46     --with-dvdread=PATH   libdvdread headers and libraries"
47 ac_help="$ac_help
48   --enable-dvbpsi        dvbpsi ts demux module (default disabled)"
49 ac_help="$ac_help
50     --with-dvbpsi=PATH    libdvbpsi headers and libraries"
51 ac_help="$ac_help
52     --with-dvbpsi-tree=PATH libdvbpsi tree for static linking"
53 ac_help="$ac_help
54   --enable-vcd            VCD support for Linux, FreeBSD and MacOS X (default enabled)"
55 ac_help="$ac_help
56   --enable-satellite      satellite card support (default disabled)"
57 ac_help="$ac_help
58   --enable-avi            AVI demux module (default enabled)"
59 ac_help="$ac_help
60 Codec plugins:"
61 ac_help="$ac_help
62   --enable-mad            libmad module (default disabled)"
63 ac_help="$ac_help
64     --with-mad=PATH       path to libmad"
65 ac_help="$ac_help
66     --with-mad-tree=PATH  mad tree for static linking"
67 ac_help="$ac_help
68   --enable-ffmpeg         ffmpeg codec (default disabled)"
69 ac_help="$ac_help
70     --with-ffmpeg=PATH    path to ffmpeg installation"
71 ac_help="$ac_help
72     --with-ffmpeg-tree=PATH ffmpeg tree for static linking"
73 ac_help="$ac_help
74   --enable-a52            AC3 support with liba52 (default enabled)"
75 ac_help="$ac_help
76     --with-a52-tree=PATH  a52dec tree for static linking "
77 ac_help="$ac_help
78   --enable-vorbis         Ogg/Vorbis decoder support (default enabled)"
79 ac_help="$ac_help
80 Video plugins:"
81 ac_help="$ac_help
82   --enable-x11            X11 support (default enabled)"
83 ac_help="$ac_help
84   --enable-xvideo         XVideo support (default enabled)"
85 ac_help="$ac_help
86   --enable-sdl            SDL support (default enabled)"
87 ac_help="$ac_help
88     --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)"
89 ac_help="$ac_help
90   --enable-directx        Win32 DirectX support (default enabled on Win32)"
91 ac_help="$ac_help
92     --with-directx=PATH   Win32 DirectX headers"
93 ac_help="$ac_help
94   --enable-fb             Linux framebuffer support (default enabled on Linux)"
95 ac_help="$ac_help
96   --enable-mga            Linux kernel Matrox support (default disabled)"
97 ac_help="$ac_help
98   --enable-ggi            GGI support (default disabled)"
99 ac_help="$ac_help
100     --with-ggi=PATH       path to libggi"
101 ac_help="$ac_help
102   --enable-glide          Glide (3dfx) support (default disabled)"
103 ac_help="$ac_help
104     --with-glide=PATH     path to libglide"
105 ac_help="$ac_help
106   --enable-aa             aalib output (default disabled)"
107 ac_help="$ac_help
108 Audio plugins:"
109 ac_help="$ac_help
110   --enable-dsp            Linux /dev/dsp support (enabled on Linux)"
111 ac_help="$ac_help
112   --enable-esd            Esound library support (default disabled)"
113 ac_help="$ac_help
114   --enable-arts           aRts sound server (default disabled)"
115 ac_help="$ac_help
116   --enable-alsa           ALSA sound support for Linux (default disabled)"
117 ac_help="$ac_help
118   --enable-waveout        Win32 waveOut module (default enabled on Win32)"
119 ac_help="$ac_help
120 Interface plugins:"
121 ac_help="$ac_help
122   --enable-gtk            Gtk+ support (default enabled)"
123 ac_help="$ac_help
124     --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)"
125 ac_help="$ac_help
126   --enable-gnome          Gnome interface support (default disabled)"
127 ac_help="$ac_help
128   --enable-qt             Qt interface support (default disabled)"
129 ac_help="$ac_help
130   --enable-kde            KDE interface support (default disabled)"
131 ac_help="$ac_help
132   --enable-macosx         MacOS X support (default enabled on MacOS X)"
133 ac_help="$ac_help
134   --enable-qnx            QNX RTOS support (default enabled on QNX RTOS)"
135 ac_help="$ac_help
136   --enable-intfwin        Win32 interface support (default disabled)"
137 ac_help="$ac_help
138     --with-bcbuilder=PATH Borland C++ Builder installation path"
139 ac_help="$ac_help
140   --enable-ncurses        ncurses interface support (default disabled)"
141 ac_help="$ac_help
142   --enable-xosd           xosd interface support (default disabled)"
143 ac_help="$ac_help
144   --enable-lirc           lirc support (default disabled)"
145 ac_help="$ac_help
146 Misc options:"
147 ac_help="$ac_help
148   --with-words=endianness set endianness (big or little)"
149 ac_help="$ac_help
150   --enable-gprof          gprof profiling (default disabled)"
151 ac_help="$ac_help
152   --enable-cprof          cprof profiling (default disabled)"
153 ac_help="$ac_help
154   --enable-pth            GNU Pth support (default disabled)"
155 ac_help="$ac_help
156   --enable-st             State Threads (default disabled)"
157 ac_help="$ac_help
158   --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 atoll
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
6341     echo $ac_n "checking for inet_pton in -lresolv""... $ac_c" 1>&6
6342 echo "configure:6343: checking for inet_pton in -lresolv" >&5
6343 ac_lib_var=`echo resolv'_'inet_pton | sed 'y%./+-%__p_%'`
6344 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6345   echo $ac_n "(cached) $ac_c" 1>&6
6346 else
6347   ac_save_LIBS="$LIBS"
6348 LIBS="-lresolv  $LIBS"
6349 cat > conftest.$ac_ext <<EOF
6350 #line 6351 "configure"
6351 #include "confdefs.h"
6352 /* Override any gcc2 internal prototype to avoid an error.  */
6353 /* We use char because int might match the return type of a gcc2
6354     builtin and then its argument prototype would still apply.  */
6355 char inet_pton();
6356
6357 int main() {
6358 inet_pton()
6359 ; return 0; }
6360 EOF
6361 if { (eval echo configure:6362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6362   rm -rf conftest*
6363   eval "ac_cv_lib_$ac_lib_var=yes"
6364 else
6365   echo "configure: failed program was:" >&5
6366   cat conftest.$ac_ext >&5
6367   rm -rf conftest*
6368   eval "ac_cv_lib_$ac_lib_var=no"
6369 fi
6370 rm -f conftest*
6371 LIBS="$ac_save_LIBS"
6372
6373 fi
6374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6375   echo "$ac_t""yes" 1>&6
6376   PLUGINS="${PLUGINS} ipv6"
6377        ipv6_LDFLAGS="${ipv6_LDFLAGS} -lresolv"
6378 else
6379   echo "$ac_t""no" 1>&6
6380 fi
6381
6382   
6383 fi
6384
6385 fi
6386 if test "x$SYS" = "xmingw32"
6387 then
6388   echo $ac_n "checking for getaddrinfo in ws2tcpip.h""... $ac_c" 1>&6
6389 echo "configure:6390: checking for getaddrinfo in ws2tcpip.h" >&5
6390   cat > conftest.$ac_ext <<EOF
6391 #line 6392 "configure"
6392 #include "confdefs.h"
6393 #include <ws2tcpip.h>
6394 EOF
6395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6396   egrep "addrinfo" >/dev/null 2>&1; then
6397   rm -rf conftest*
6398   echo "$ac_t""yes" 1>&6
6399     PLUGINS="${PLUGINS} ipv6"
6400 else
6401   rm -rf conftest*
6402   echo "$ac_t""no" 1>&6
6403 fi
6404 rm -f conftest*
6405
6406 fi
6407
6408 # Check whether --enable-avi or --disable-avi was given.
6409 if test "${enable_avi+set}" = set; then
6410   enableval="$enable_avi"
6411   :
6412 fi
6413
6414 if test x$enable_avi != xno
6415 then
6416   PLUGINS="${PLUGINS} avi"
6417 fi
6418
6419
6420 # Check whether --with- or --without- was given.
6421 if test "${with_+set}" = set; then
6422   withval="$with_"
6423   :
6424 fi
6425
6426
6427 # Check whether --enable-mad or --disable-mad was given.
6428 if test "${enable_mad+set}" = set; then
6429   enableval="$enable_mad"
6430   :
6431 fi
6432
6433 if test x$enable_mad = xyes
6434 then
6435   # Check whether --with-mad or --without-mad was given.
6436 if test "${with_mad+set}" = set; then
6437   withval="$with_mad"
6438   :
6439 fi
6440
6441   if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
6442   then
6443     mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
6444     mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
6445   fi
6446
6447   # Check whether --with-mad-tree or --without-mad-tree was given.
6448 if test "${with_mad_tree+set}" = set; then
6449   withval="$with_mad_tree"
6450   :
6451 fi
6452
6453   if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
6454   then
6455     real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
6456     if test "x$real_mad_tree" = x
6457     then
6458             echo "$ac_t""no" 1>&6
6459       { echo "configure: error: ${with_mad_tree} directory doesn't exist" 1>&2; exit 1; }
6460     fi
6461         echo $ac_n "checking for mad.h in ${real_mad_tree}/libmad""... $ac_c" 1>&6
6462 echo "configure:6463: checking for mad.h in ${real_mad_tree}/libmad" >&5
6463     if test -f ${real_mad_tree}/libmad/mad.h
6464     then
6465       echo "$ac_t""yes" 1>&6
6466       mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
6467       mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
6468       save_LDFLAGS=$LDFLAGS
6469       LDFLAGS=$mad_LDFLAGS
6470       echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6471 echo "configure:6472: checking for mad_bit_init in -lmad" >&5
6472 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6473 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6474   echo $ac_n "(cached) $ac_c" 1>&6
6475 else
6476   ac_save_LIBS="$LIBS"
6477 LIBS="-lmad  $LIBS"
6478 cat > conftest.$ac_ext <<EOF
6479 #line 6480 "configure"
6480 #include "confdefs.h"
6481 /* Override any gcc2 internal prototype to avoid an error.  */
6482 /* We use char because int might match the return type of a gcc2
6483     builtin and then its argument prototype would still apply.  */
6484 char mad_bit_init();
6485
6486 int main() {
6487 mad_bit_init()
6488 ; return 0; }
6489 EOF
6490 if { (eval echo configure:6491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6491   rm -rf conftest*
6492   eval "ac_cv_lib_$ac_lib_var=yes"
6493 else
6494   echo "configure: failed program was:" >&5
6495   cat conftest.$ac_ext >&5
6496   rm -rf conftest*
6497   eval "ac_cv_lib_$ac_lib_var=no"
6498 fi
6499 rm -f conftest*
6500 LIBS="$ac_save_LIBS"
6501
6502 fi
6503 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6504   echo "$ac_t""yes" 1>&6
6505   
6506         BUILTINS="${BUILTINS} mad"
6507         mad_LDFLAGS="${mad_LDFLAGS} -lmad"
6508         
6509 else
6510   echo "$ac_t""no" 1>&6
6511  { echo "configure: error: the specified tree hasn't been compiled " 1>&2; exit 1; }
6512       
6513 fi
6514
6515       LDFLAGS=$save_LDFLAGS
6516     else
6517       echo "$ac_t""no" 1>&6
6518       { echo "configure: error: the specified tree doesn't have mad.h" 1>&2; exit 1; }
6519     fi
6520   else
6521     CFLAGS="$vlc_CFLAGS $mad_CFLAGS"
6522     LDFLAGS="$vlc_LDFLAGS $mad_LDFLAGS"
6523     for ac_hdr in mad.h
6524 do
6525 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6526 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6527 echo "configure:6528: checking for $ac_hdr" >&5
6528 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6529   echo $ac_n "(cached) $ac_c" 1>&6
6530 else
6531   cat > conftest.$ac_ext <<EOF
6532 #line 6533 "configure"
6533 #include "confdefs.h"
6534 #include <$ac_hdr>
6535 EOF
6536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6537 { (eval echo configure:6538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6539 if test -z "$ac_err"; then
6540   rm -rf conftest*
6541   eval "ac_cv_header_$ac_safe=yes"
6542 else
6543   echo "$ac_err" >&5
6544   echo "configure: failed program was:" >&5
6545   cat conftest.$ac_ext >&5
6546   rm -rf conftest*
6547   eval "ac_cv_header_$ac_safe=no"
6548 fi
6549 rm -f conftest*
6550 fi
6551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6552   echo "$ac_t""yes" 1>&6
6553     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6554   cat >> confdefs.h <<EOF
6555 #define $ac_tr_hdr 1
6556 EOF
6557  
6558 else
6559   echo "$ac_t""no" 1>&6
6560 { echo "configure: error: Cannot find development headers for libmad..." 1>&2; exit 1; } 
6561 fi
6562 done
6563
6564     echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6565 echo "configure:6566: checking for mad_bit_init in -lmad" >&5
6566 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6568   echo $ac_n "(cached) $ac_c" 1>&6
6569 else
6570   ac_save_LIBS="$LIBS"
6571 LIBS="-lmad  $LIBS"
6572 cat > conftest.$ac_ext <<EOF
6573 #line 6574 "configure"
6574 #include "confdefs.h"
6575 /* Override any gcc2 internal prototype to avoid an error.  */
6576 /* We use char because int might match the return type of a gcc2
6577     builtin and then its argument prototype would still apply.  */
6578 char mad_bit_init();
6579
6580 int main() {
6581 mad_bit_init()
6582 ; return 0; }
6583 EOF
6584 if { (eval echo configure:6585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6585   rm -rf conftest*
6586   eval "ac_cv_lib_$ac_lib_var=yes"
6587 else
6588   echo "configure: failed program was:" >&5
6589   cat conftest.$ac_ext >&5
6590   rm -rf conftest*
6591   eval "ac_cv_lib_$ac_lib_var=no"
6592 fi
6593 rm -f conftest*
6594 LIBS="$ac_save_LIBS"
6595
6596 fi
6597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6598   echo "$ac_t""yes" 1>&6
6599   
6600       PLUGINS="${PLUGINS} mad"
6601       mad_LDFLAGS="${mad_LDFLAGS} -lmad" 
6602 else
6603   echo "$ac_t""no" 1>&6
6604  { echo "configure: error: Cannot find libmad library..." 1>&2; exit 1; } 
6605 fi
6606
6607   fi
6608 fi
6609
6610 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
6611 if test "${enable_ffmpeg+set}" = set; then
6612   enableval="$enable_ffmpeg"
6613   :
6614 fi
6615
6616 if test "x$enable_ffmpeg" = "xyes"
6617 then
6618   # Check whether --with-ffmpeg or --without-ffmpeg was given.
6619 if test "${with_ffmpeg+set}" = set; then
6620   withval="$with_ffmpeg"
6621   :
6622 fi
6623
6624   if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"
6625   then
6626     ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I$with_ffmpeg/include/libffmpeg"
6627     ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L$with_ffmpeg/lib"
6628   fi
6629
6630   # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
6631 if test "${with_ffmpeg_tree+set}" = set; then
6632   withval="$with_ffmpeg_tree"
6633   :
6634 fi
6635
6636   if test "x$with_ffmpeg_tree" != "x"
6637   then
6638     echo $ac_n "checking for libavcodec.a in ${with_ffmpeg_tree}""... $ac_c" 1>&6
6639 echo "configure:6640: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
6640     real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
6641     if test "x$real_ffmpeg_tree" = x
6642     then
6643             echo "$ac_t""no" 1>&6
6644       { echo "configure: error: cannot cd to ${with_ffmpeg_tree}" 1>&2; exit 1; }
6645     fi
6646     if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
6647     then
6648             echo "$ac_t""${real_ffmpeg_tree}/libavcodec/libavcodec.a" 1>&6
6649       BUILTINS="${BUILTINS} ffmpeg"
6650       ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a -lm"
6651       ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
6652     else
6653             echo "$ac_t""no" 1>&6
6654       { echo "configure: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" 1>&2; exit 1; }
6655     fi
6656   else
6657     save_CFLAGS=$CFLAGS
6658     save_LDFLAGS=$LDFLAGS
6659     CFLAGS="$CFLAGS $ffmpeg_CFLAGS"
6660     LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS -lm"
6661     echo $ac_n "checking for avcodec_init in -lavcodec""... $ac_c" 1>&6
6662 echo "configure:6663: checking for avcodec_init in -lavcodec" >&5
6663 ac_lib_var=`echo avcodec'_'avcodec_init | sed 'y%./+-%__p_%'`
6664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6665   echo $ac_n "(cached) $ac_c" 1>&6
6666 else
6667   ac_save_LIBS="$LIBS"
6668 LIBS="-lavcodec  $LIBS"
6669 cat > conftest.$ac_ext <<EOF
6670 #line 6671 "configure"
6671 #include "confdefs.h"
6672 /* Override any gcc2 internal prototype to avoid an error.  */
6673 /* We use char because int might match the return type of a gcc2
6674     builtin and then its argument prototype would still apply.  */
6675 char avcodec_init();
6676
6677 int main() {
6678 avcodec_init()
6679 ; return 0; }
6680 EOF
6681 if { (eval echo configure:6682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6682   rm -rf conftest*
6683   eval "ac_cv_lib_$ac_lib_var=yes"
6684 else
6685   echo "configure: failed program was:" >&5
6686   cat conftest.$ac_ext >&5
6687   rm -rf conftest*
6688   eval "ac_cv_lib_$ac_lib_var=no"
6689 fi
6690 rm -f conftest*
6691 LIBS="$ac_save_LIBS"
6692
6693 fi
6694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6695   echo "$ac_t""yes" 1>&6
6696   
6697       BUILTINS="${BUILTINS} ffmpeg"
6698       ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec -lm" 
6699 else
6700   echo "$ac_t""no" 1>&6
6701  { echo "configure: error: Cannot find libavcodec library..." 1>&2; exit 1; } 
6702 fi
6703
6704     CFLAGS=$save_CFLAGS
6705     LDFLAGS=$save_LDFLAGS
6706   fi
6707 fi
6708
6709
6710 if test x$SYS = xbeos
6711 then
6712     PLUGINS="${PLUGINS} beos"
6713 fi
6714
6715 # Check whether --enable-a52 or --disable-a52 was given.
6716 if test "${enable_a52+set}" = set; then
6717   enableval="$enable_a52"
6718   :
6719 fi
6720
6721 if test "x$enable_a52" != "xno"
6722 then
6723   # Check whether --with-a52-tree or --without-a52-tree was given.
6724 if test "${with_a52_tree+set}" = set; then
6725   withval="$with_a52_tree"
6726   :
6727 fi
6728
6729   if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
6730   then
6731     real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
6732     if test "x$real_a52_tree" = x
6733     then
6734             echo "$ac_t""no" 1>&6
6735       { echo "configure: error: ${with_a52_tree} directory doesn't exist" 1>&2; exit 1; }
6736     fi
6737         echo $ac_n "checking for a52.h in ${real_a52_tree}/include""... $ac_c" 1>&6
6738 echo "configure:6739: checking for a52.h in ${real_a52_tree}/include" >&5
6739     if test -f ${real_a52_tree}/include/a52.h
6740     then
6741       echo "$ac_t""yes" 1>&6
6742       a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
6743       a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
6744       save_LDFLAGS=$LDFLAGS
6745       LDFLAGS="$a52_LDFLAGS $LDFLAGS"
6746       echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6747 echo "configure:6748: checking for a52_free in -la52" >&5
6748 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6749 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6750   echo $ac_n "(cached) $ac_c" 1>&6
6751 else
6752   ac_save_LIBS="$LIBS"
6753 LIBS="-la52 -lm $LIBS"
6754 cat > conftest.$ac_ext <<EOF
6755 #line 6756 "configure"
6756 #include "confdefs.h"
6757 /* Override any gcc2 internal prototype to avoid an error.  */
6758 /* We use char because int might match the return type of a gcc2
6759     builtin and then its argument prototype would still apply.  */
6760 char a52_free();
6761
6762 int main() {
6763 a52_free()
6764 ; return 0; }
6765 EOF
6766 if { (eval echo configure:6767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6767   rm -rf conftest*
6768   eval "ac_cv_lib_$ac_lib_var=yes"
6769 else
6770   echo "configure: failed program was:" >&5
6771   cat conftest.$ac_ext >&5
6772   rm -rf conftest*
6773   eval "ac_cv_lib_$ac_lib_var=no"
6774 fi
6775 rm -f conftest*
6776 LIBS="$ac_save_LIBS"
6777
6778 fi
6779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6780   echo "$ac_t""yes" 1>&6
6781   
6782         BUILTINS="${BUILTINS} a52"
6783         a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6784         a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
6785         
6786 else
6787   echo "$ac_t""no" 1>&6
6788
6789         if test -f ${real_a52_tree}/liba52/.libs/liba52.a
6790         then
6791           { echo "configure: error: make sure you have at least a52dec-0.7.3" 1>&2; exit 1; }
6792         else
6793           { echo "configure: error: the specified tree hasn't been compiled" 1>&2; exit 1; }
6794         fi
6795       
6796 fi
6797
6798       LDFLAGS=$save_LDFLAGS
6799     else
6800       echo "$ac_t""no" 1>&6
6801       { echo "configure: error: the specified tree doesn't have a52.h" 1>&2; exit 1; }
6802     fi
6803   else     for ac_hdr in a52dec/a52.h
6804 do
6805 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6806 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6807 echo "configure:6808: checking for $ac_hdr" >&5
6808 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6809   echo $ac_n "(cached) $ac_c" 1>&6
6810 else
6811   cat > conftest.$ac_ext <<EOF
6812 #line 6813 "configure"
6813 #include "confdefs.h"
6814 #include <$ac_hdr>
6815 EOF
6816 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6817 { (eval echo configure:6818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6818 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6819 if test -z "$ac_err"; then
6820   rm -rf conftest*
6821   eval "ac_cv_header_$ac_safe=yes"
6822 else
6823   echo "$ac_err" >&5
6824   echo "configure: failed program was:" >&5
6825   cat conftest.$ac_ext >&5
6826   rm -rf conftest*
6827   eval "ac_cv_header_$ac_safe=no"
6828 fi
6829 rm -f conftest*
6830 fi
6831 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6832   echo "$ac_t""yes" 1>&6
6833     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6834   cat >> confdefs.h <<EOF
6835 #define $ac_tr_hdr 1
6836 EOF
6837  
6838       echo $ac_n "checking for a52_free in -la52""... $ac_c" 1>&6
6839 echo "configure:6840: checking for a52_free in -la52" >&5
6840 ac_lib_var=`echo a52'_'a52_free | sed 'y%./+-%__p_%'`
6841 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6842   echo $ac_n "(cached) $ac_c" 1>&6
6843 else
6844   ac_save_LIBS="$LIBS"
6845 LIBS="-la52 -lm $LIBS"
6846 cat > conftest.$ac_ext <<EOF
6847 #line 6848 "configure"
6848 #include "confdefs.h"
6849 /* Override any gcc2 internal prototype to avoid an error.  */
6850 /* We use char because int might match the return type of a gcc2
6851     builtin and then its argument prototype would still apply.  */
6852 char a52_free();
6853
6854 int main() {
6855 a52_free()
6856 ; return 0; }
6857 EOF
6858 if { (eval echo configure:6859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6859   rm -rf conftest*
6860   eval "ac_cv_lib_$ac_lib_var=yes"
6861 else
6862   echo "configure: failed program was:" >&5
6863   cat conftest.$ac_ext >&5
6864   rm -rf conftest*
6865   eval "ac_cv_lib_$ac_lib_var=no"
6866 fi
6867 rm -f conftest*
6868 LIBS="$ac_save_LIBS"
6869
6870 fi
6871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6872   echo "$ac_t""yes" 1>&6
6873   
6874         BUILTINS="${BUILTINS} a52"
6875         a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
6876         a52_CFLAGS="${a52_CFLAGS}"
6877       
6878 else
6879   echo "$ac_t""no" 1>&6
6880 fi
6881
6882     
6883 else
6884   echo "$ac_t""no" 1>&6
6885 fi
6886 done
6887
6888   fi
6889 fi
6890
6891 # Check whether --enable-vorbis or --disable-vorbis was given.
6892 if test "${enable_vorbis+set}" = set; then
6893   enableval="$enable_vorbis"
6894   :
6895 fi
6896
6897 if test "x$enable_vorbis" != "xno"
6898 then
6899   for ac_hdr in ogg/ogg.h
6900 do
6901 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6902 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6903 echo "configure:6904: checking for $ac_hdr" >&5
6904 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6905   echo $ac_n "(cached) $ac_c" 1>&6
6906 else
6907   cat > conftest.$ac_ext <<EOF
6908 #line 6909 "configure"
6909 #include "confdefs.h"
6910 #include <$ac_hdr>
6911 EOF
6912 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6913 { (eval echo configure:6914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6914 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6915 if test -z "$ac_err"; then
6916   rm -rf conftest*
6917   eval "ac_cv_header_$ac_safe=yes"
6918 else
6919   echo "$ac_err" >&5
6920   echo "configure: failed program was:" >&5
6921   cat conftest.$ac_ext >&5
6922   rm -rf conftest*
6923   eval "ac_cv_header_$ac_safe=no"
6924 fi
6925 rm -f conftest*
6926 fi
6927 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6928   echo "$ac_t""yes" 1>&6
6929     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6930   cat >> confdefs.h <<EOF
6931 #define $ac_tr_hdr 1
6932 EOF
6933  
6934         #PLUGINS="${PLUGINS} vorbis"
6935     vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
6936    
6937 else
6938   echo "$ac_t""no" 1>&6
6939 fi
6940 done
6941
6942 fi
6943
6944
6945 # Check whether --with- or --without- was given.
6946 if test "${with_+set}" = set; then
6947   withval="$with_"
6948   :
6949 fi
6950
6951
6952 # Check whether --enable-x11 or --disable-x11 was given.
6953 if test "${enable_x11+set}" = set; then
6954   enableval="$enable_x11"
6955   :
6956 fi
6957
6958 if test x$enable_x11 != xno &&
6959   (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6960   if test x$x_includes = xNONE; then
6961     x_includes=/usr/X11R6/include
6962   fi
6963   if test x$x_libraries = xNONE; then
6964     x_libraries=/usr/X11R6/lib
6965   fi
6966   CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6967   for ac_hdr in X11/Xlib.h
6968 do
6969 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6970 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6971 echo "configure:6972: checking for $ac_hdr" >&5
6972 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6973   echo $ac_n "(cached) $ac_c" 1>&6
6974 else
6975   cat > conftest.$ac_ext <<EOF
6976 #line 6977 "configure"
6977 #include "confdefs.h"
6978 #include <$ac_hdr>
6979 EOF
6980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6981 { (eval echo configure:6982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6983 if test -z "$ac_err"; then
6984   rm -rf conftest*
6985   eval "ac_cv_header_$ac_safe=yes"
6986 else
6987   echo "$ac_err" >&5
6988   echo "configure: failed program was:" >&5
6989   cat conftest.$ac_ext >&5
6990   rm -rf conftest*
6991   eval "ac_cv_header_$ac_safe=no"
6992 fi
6993 rm -f conftest*
6994 fi
6995 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6996   echo "$ac_t""yes" 1>&6
6997     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6998   cat >> confdefs.h <<EOF
6999 #define $ac_tr_hdr 1
7000 EOF
7001  
7002     PLUGINS="${PLUGINS} x11"
7003     x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
7004     x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
7005   
7006 else
7007   echo "$ac_t""no" 1>&6
7008 fi
7009 done
7010
7011   CPPFLAGS="$save_CPPFLAGS"
7012 fi
7013
7014 # Check whether --enable-xvideo or --disable-xvideo was given.
7015 if test "${enable_xvideo+set}" = set; then
7016   enableval="$enable_xvideo"
7017   :
7018 fi
7019
7020 if test x$enable_xvideo != xno &&
7021   (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
7022   if test x$x_includes = xNONE; then
7023     x_includes=/usr/X11R6/include
7024   fi
7025   if test x$x_libraries = xNONE; then
7026     x_libraries=/usr/X11R6/lib
7027   fi
7028   CPPFLAGS="$save_CPPFLAGS -I$x_includes"
7029   for ac_hdr in X11/extensions/Xv.h
7030 do
7031 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7032 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7033 echo "configure:7034: checking for $ac_hdr" >&5
7034 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7035   echo $ac_n "(cached) $ac_c" 1>&6
7036 else
7037   cat > conftest.$ac_ext <<EOF
7038 #line 7039 "configure"
7039 #include "confdefs.h"
7040 #include <$ac_hdr>
7041 EOF
7042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7043 { (eval echo configure:7044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7045 if test -z "$ac_err"; then
7046   rm -rf conftest*
7047   eval "ac_cv_header_$ac_safe=yes"
7048 else
7049   echo "$ac_err" >&5
7050   echo "configure: failed program was:" >&5
7051   cat conftest.$ac_ext >&5
7052   rm -rf conftest*
7053   eval "ac_cv_header_$ac_safe=no"
7054 fi
7055 rm -f conftest*
7056 fi
7057 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7058   echo "$ac_t""yes" 1>&6
7059     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7060   cat >> confdefs.h <<EOF
7061 #define $ac_tr_hdr 1
7062 EOF
7063  
7064     CFLAGS="$save_CFLAGS -L$x_libraries -lX11 -lXext"
7065     echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
7066 echo "configure:7067: checking for XvSetPortAttribute in -lXv_pic" >&5
7067 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
7068 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7069   echo $ac_n "(cached) $ac_c" 1>&6
7070 else
7071   ac_save_LIBS="$LIBS"
7072 LIBS="-lXv_pic  $LIBS"
7073 cat > conftest.$ac_ext <<EOF
7074 #line 7075 "configure"
7075 #include "confdefs.h"
7076 /* Override any gcc2 internal prototype to avoid an error.  */
7077 /* We use char because int might match the return type of a gcc2
7078     builtin and then its argument prototype would still apply.  */
7079 char XvSetPortAttribute();
7080
7081 int main() {
7082 XvSetPortAttribute()
7083 ; return 0; }
7084 EOF
7085 if { (eval echo configure:7086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7086   rm -rf conftest*
7087   eval "ac_cv_lib_$ac_lib_var=yes"
7088 else
7089   echo "configure: failed program was:" >&5
7090   cat conftest.$ac_ext >&5
7091   rm -rf conftest*
7092   eval "ac_cv_lib_$ac_lib_var=no"
7093 fi
7094 rm -f conftest*
7095 LIBS="$ac_save_LIBS"
7096
7097 fi
7098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7099   echo "$ac_t""yes" 1>&6
7100   # We have Xv_pic, that's good, we can build an xvideo.so plugin !
7101       PLUGINS="${PLUGINS} xvideo"
7102       xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
7103       xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
7104 else
7105   echo "$ac_t""no" 1>&6
7106 # We don't have Xv_pic, let's make xvideo.a as builtin
7107       BUILTINS="${BUILTINS} xvideo"
7108       xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
7109       xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
7110 fi
7111
7112   
7113   CPPFLAGS="$save_CPPFLAGS"
7114 else
7115   echo "$ac_t""no" 1>&6
7116 fi
7117 done
7118
7119 fi
7120
7121 # Check whether --enable-sdl or --disable-sdl was given.
7122 if test "${enable_sdl+set}" = set; then
7123   enableval="$enable_sdl"
7124   :
7125 fi
7126
7127 if test "x$enable_sdl" != "xno"
7128 then
7129   SDL_PATH=$PATH
7130   # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7131 if test "${with_sdl_config_path+set}" = set; then
7132   withval="$with_sdl_config_path"
7133    if test "x$with_sdl_config_path" != "xno"
7134       then
7135         SDL_PATH="$with_sdl_config_path:$PATH"
7136       fi 
7137 fi
7138
7139   # Extract the first word of "sdl12-config", so it can be a program name with args.
7140 set dummy sdl12-config; ac_word=$2
7141 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7142 echo "configure:7143: checking for $ac_word" >&5
7143 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7144   echo $ac_n "(cached) $ac_c" 1>&6
7145 else
7146   case "$SDL12_CONFIG" in
7147   /*)
7148   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7149   ;;
7150   ?:/*)                  
7151   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7152   ;;
7153   *)
7154   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7155   ac_dummy="$SDL_PATH"
7156   for ac_dir in $ac_dummy; do 
7157     test -z "$ac_dir" && ac_dir=.
7158     if test -f $ac_dir/$ac_word; then
7159       ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7160       break
7161     fi
7162   done
7163   IFS="$ac_save_ifs"
7164   test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7165   ;;
7166 esac
7167 fi
7168 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7169 if test -n "$SDL12_CONFIG"; then
7170   echo "$ac_t""$SDL12_CONFIG" 1>&6
7171 else
7172   echo "$ac_t""no" 1>&6
7173 fi
7174
7175   SDL_CONFIG=${SDL12_CONFIG}
7176   SDL_HEADER="SDL12/SDL.h"
7177   if test x${SDL_CONFIG} = xno
7178   then
7179     # Extract the first word of "sdl11-config", so it can be a program name with args.
7180 set dummy sdl11-config; ac_word=$2
7181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7182 echo "configure:7183: checking for $ac_word" >&5
7183 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7184   echo $ac_n "(cached) $ac_c" 1>&6
7185 else
7186   case "$SDL11_CONFIG" in
7187   /*)
7188   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7189   ;;
7190   ?:/*)                  
7191   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7192   ;;
7193   *)
7194   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7195   ac_dummy="$SDL_PATH"
7196   for ac_dir in $ac_dummy; do 
7197     test -z "$ac_dir" && ac_dir=.
7198     if test -f $ac_dir/$ac_word; then
7199       ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7200       break
7201     fi
7202   done
7203   IFS="$ac_save_ifs"
7204   test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7205   ;;
7206 esac
7207 fi
7208 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7209 if test -n "$SDL11_CONFIG"; then
7210   echo "$ac_t""$SDL11_CONFIG" 1>&6
7211 else
7212   echo "$ac_t""no" 1>&6
7213 fi
7214
7215     SDL_CONFIG=${SDL11_CONFIG}
7216     SDL_HEADER="SDL11/SDL.h"
7217   fi
7218   if test x${SDL_CONFIG} = xno
7219   then
7220     # Extract the first word of "sdl-config", so it can be a program name with args.
7221 set dummy sdl-config; ac_word=$2
7222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7223 echo "configure:7224: checking for $ac_word" >&5
7224 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7225   echo $ac_n "(cached) $ac_c" 1>&6
7226 else
7227   case "$SDL_CONFIG" in
7228   /*)
7229   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7230   ;;
7231   ?:/*)                  
7232   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7233   ;;
7234   *)
7235   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7236   ac_dummy="$SDL_PATH"
7237   for ac_dir in $ac_dummy; do 
7238     test -z "$ac_dir" && ac_dir=.
7239     if test -f $ac_dir/$ac_word; then
7240       ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7241       break
7242     fi
7243   done
7244   IFS="$ac_save_ifs"
7245   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7246   ;;
7247 esac
7248 fi
7249 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7250 if test -n "$SDL_CONFIG"; then
7251   echo "$ac_t""$SDL_CONFIG" 1>&6
7252 else
7253   echo "$ac_t""no" 1>&6
7254 fi
7255
7256     SDL_HEADER="SDL/SDL.h"
7257   fi
7258   if test x${SDL_CONFIG} != xno
7259   then
7260     PLUGINS="${PLUGINS} sdl"
7261     sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
7262     sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7263     CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
7264     for ac_hdr in ${SDL_HEADER}
7265 do
7266 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7267 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7268 echo "configure:7269: checking for $ac_hdr" >&5
7269 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7270   echo $ac_n "(cached) $ac_c" 1>&6
7271 else
7272   cat > conftest.$ac_ext <<EOF
7273 #line 7274 "configure"
7274 #include "confdefs.h"
7275 #include <$ac_hdr>
7276 EOF
7277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7278 { (eval echo configure:7279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7280 if test -z "$ac_err"; then
7281   rm -rf conftest*
7282   eval "ac_cv_header_$ac_safe=yes"
7283 else
7284   echo "$ac_err" >&5
7285   echo "configure: failed program was:" >&5
7286   cat conftest.$ac_ext >&5
7287   rm -rf conftest*
7288   eval "ac_cv_header_$ac_safe=no"
7289 fi
7290 rm -f conftest*
7291 fi
7292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7293   echo "$ac_t""yes" 1>&6
7294     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7295   cat >> confdefs.h <<EOF
7296 #define $ac_tr_hdr 1
7297 EOF
7298  cat >> confdefs.h <<EOF
7299 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7300 EOF
7301
7302 else
7303   echo "$ac_t""no" 1>&6
7304 { echo "configure: error: The development package for SDL is not installed. 
7305 Please install it and try again. Alternatively you can also configure with 
7306 --disable-sdl." 1>&2; exit 1; }
7307       
7308 fi
7309 done
7310
7311     CPPFLAGS="$save_CPPFLAGS"
7312     if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7313     then
7314       { echo "configure: error: The development package for SDL is not installed.
7315 Please install it and try again. Alternatively you can also configure with
7316 --disable-sdl." 1>&2; exit 1; }
7317     fi
7318   elif test "x$enable_sdl" =  "xyes"
7319   then
7320     { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7321 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7322     " 1>&2; exit 1; }
7323   fi
7324 fi
7325
7326 # Check whether --enable-directx or --disable-directx was given.
7327 if test "${enable_directx+set}" = set; then
7328   enableval="$enable_directx"
7329   :
7330 fi
7331
7332 if test "x$enable_directx" != "xno"
7333 then
7334   if test x$SYS = xmingw32
7335   then
7336     # Check whether --with-directx or --without-directx was given.
7337 if test "${with_directx+set}" = set; then
7338   withval="$with_directx"
7339   :
7340 fi
7341
7342     if test "x$with_directx" = "x"
7343     then
7344       for ac_hdr in ddraw.h
7345 do
7346 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7347 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7348 echo "configure:7349: checking for $ac_hdr" >&5
7349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7350   echo $ac_n "(cached) $ac_c" 1>&6
7351 else
7352   cat > conftest.$ac_ext <<EOF
7353 #line 7354 "configure"
7354 #include "confdefs.h"
7355 #include <$ac_hdr>
7356 EOF
7357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7358 { (eval echo configure:7359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7360 if test -z "$ac_err"; then
7361   rm -rf conftest*
7362   eval "ac_cv_header_$ac_safe=yes"
7363 else
7364   echo "$ac_err" >&5
7365   echo "configure: failed program was:" >&5
7366   cat conftest.$ac_ext >&5
7367   rm -rf conftest*
7368   eval "ac_cv_header_$ac_safe=no"
7369 fi
7370 rm -f conftest*
7371 fi
7372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7373   echo "$ac_t""yes" 1>&6
7374     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7375   cat >> confdefs.h <<EOF
7376 #define $ac_tr_hdr 1
7377 EOF
7378   PLUGINS="${PLUGINS} directx"
7379         directx_LDFLAGS="${directx_LDFLAGS} -lgdi32" 
7380 else
7381   echo "$ac_t""no" 1>&6
7382 fi
7383 done
7384
7385     else
7386       echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
7387 echo "configure:7388: checking for directX headers in ${with_directx}" >&5
7388       if test -f ${with_directx}/ddraw.h
7389       then
7390         PLUGINS="${PLUGINS} directx"
7391         directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
7392         directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
7393         echo "$ac_t""yes" 1>&6
7394       else
7395         echo "$ac_t""no" 1>&6
7396         { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
7397       fi
7398     fi
7399   fi
7400 fi
7401
7402 # Check whether --enable-fb or --disable-fb was given.
7403 if test "${enable_fb+set}" = set; then
7404   enableval="$enable_fb"
7405   :
7406 fi
7407
7408     if test x$enable_fb != xno
7409     then
7410       for ac_hdr in linux/fb.h
7411 do
7412 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7413 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7414 echo "configure:7415: checking for $ac_hdr" >&5
7415 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7416   echo $ac_n "(cached) $ac_c" 1>&6
7417 else
7418   cat > conftest.$ac_ext <<EOF
7419 #line 7420 "configure"
7420 #include "confdefs.h"
7421 #include <$ac_hdr>
7422 EOF
7423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7424 { (eval echo configure:7425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7425 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7426 if test -z "$ac_err"; then
7427   rm -rf conftest*
7428   eval "ac_cv_header_$ac_safe=yes"
7429 else
7430   echo "$ac_err" >&5
7431   echo "configure: failed program was:" >&5
7432   cat conftest.$ac_ext >&5
7433   rm -rf conftest*
7434   eval "ac_cv_header_$ac_safe=no"
7435 fi
7436 rm -f conftest*
7437 fi
7438 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7439   echo "$ac_t""yes" 1>&6
7440     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7441   cat >> confdefs.h <<EOF
7442 #define $ac_tr_hdr 1
7443 EOF
7444  
7445         PLUGINS="${PLUGINS} fb"
7446       
7447 else
7448   echo "$ac_t""no" 1>&6
7449 fi
7450 done
7451
7452     fi
7453
7454 # Check whether --enable-mga or --disable-mga was given.
7455 if test "${enable_mga+set}" = set; then
7456   enableval="$enable_mga"
7457    if test x$enable_mga = xyes
7458     then
7459       PLUGINS="${PLUGINS} mga xmga"
7460     fi 
7461 fi
7462
7463
7464 # Check whether --enable-ggi or --disable-ggi was given.
7465 if test "${enable_ggi+set}" = set; then
7466   enableval="$enable_ggi"
7467   :
7468 fi
7469
7470 if test x$enable_ggi = xyes
7471 then
7472   PLUGINS="${PLUGINS} ggi"
7473   ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
7474   # Check whether --with-ggi or --without-ggi was given.
7475 if test "${with_ggi+set}" = set; then
7476   withval="$with_ggi"
7477    if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
7478       then
7479         CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
7480         ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
7481       fi 
7482 fi
7483
7484 fi
7485
7486 # Check whether --enable-glide or --disable-glide was given.
7487 if test "${enable_glide+set}" = set; then
7488   enableval="$enable_glide"
7489   :
7490 fi
7491
7492 if test x$enable_glide = xyes
7493 then
7494   PLUGINS="${PLUGINS} glide"
7495   glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
7496   glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
7497   # Check whether --with-glide or --without-glide was given.
7498 if test "${with_glide+set}" = set; then
7499   withval="$with_glide"
7500    if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
7501       then
7502         glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
7503         glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
7504       fi 
7505 fi
7506
7507 fi
7508
7509 # Check whether --enable-aa or --disable-aa was given.
7510 if test "${enable_aa+set}" = set; then
7511   enableval="$enable_aa"
7512   :
7513 fi
7514
7515 if test x$enable_aa = xyes
7516 then
7517   ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7518 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7519 echo "configure:7520: checking for aalib.h" >&5
7520 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7521   echo $ac_n "(cached) $ac_c" 1>&6
7522 else
7523   cat > conftest.$ac_ext <<EOF
7524 #line 7525 "configure"
7525 #include "confdefs.h"
7526 #include <aalib.h>
7527 EOF
7528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7529 { (eval echo configure:7530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7531 if test -z "$ac_err"; then
7532   rm -rf conftest*
7533   eval "ac_cv_header_$ac_safe=yes"
7534 else
7535   echo "$ac_err" >&5
7536   echo "configure: failed program was:" >&5
7537   cat conftest.$ac_ext >&5
7538   rm -rf conftest*
7539   eval "ac_cv_header_$ac_safe=no"
7540 fi
7541 rm -f conftest*
7542 fi
7543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7544   echo "$ac_t""yes" 1>&6
7545   have_aa="true"
7546 else
7547   echo "$ac_t""no" 1>&6
7548 have_aa="false"
7549 fi
7550
7551   if test x$have_aa = xtrue
7552   then
7553     PLUGINS="${PLUGINS} aa"
7554     aa_LDFLAGS="${aa_LDFLAGS} -laa"
7555   fi
7556 fi
7557
7558
7559 # Check whether --with- or --without- was given.
7560 if test "${with_+set}" = set; then
7561   withval="$with_"
7562   :
7563 fi
7564
7565
7566 # Check whether --enable-dsp or --disable-dsp was given.
7567 if test "${enable_dsp+set}" = set; then
7568   enableval="$enable_dsp"
7569   :
7570 fi
7571
7572
7573 if test x$enable_dsp != xno &&
7574   (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7575 then
7576   for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7577 do
7578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7580 echo "configure:7581: checking for $ac_hdr" >&5
7581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7582   echo $ac_n "(cached) $ac_c" 1>&6
7583 else
7584   cat > conftest.$ac_ext <<EOF
7585 #line 7586 "configure"
7586 #include "confdefs.h"
7587 #include <$ac_hdr>
7588 EOF
7589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7590 { (eval echo configure:7591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7592 if test -z "$ac_err"; then
7593   rm -rf conftest*
7594   eval "ac_cv_header_$ac_safe=yes"
7595 else
7596   echo "$ac_err" >&5
7597   echo "configure: failed program was:" >&5
7598   cat conftest.$ac_ext >&5
7599   rm -rf conftest*
7600   eval "ac_cv_header_$ac_safe=no"
7601 fi
7602 rm -f conftest*
7603 fi
7604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7605   echo "$ac_t""yes" 1>&6
7606     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7607   cat >> confdefs.h <<EOF
7608 #define $ac_tr_hdr 1
7609 EOF
7610  
7611     PLUGINS="${PLUGINS} dsp"
7612     echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7613 echo "configure:7614: checking for main in -lossaudio" >&5
7614 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7616   echo $ac_n "(cached) $ac_c" 1>&6
7617 else
7618   ac_save_LIBS="$LIBS"
7619 LIBS="-lossaudio  $LIBS"
7620 cat > conftest.$ac_ext <<EOF
7621 #line 7622 "configure"
7622 #include "confdefs.h"
7623
7624 int main() {
7625 main()
7626 ; return 0; }
7627 EOF
7628 if { (eval echo configure:7629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7629   rm -rf conftest*
7630   eval "ac_cv_lib_$ac_lib_var=yes"
7631 else
7632   echo "configure: failed program was:" >&5
7633   cat conftest.$ac_ext >&5
7634   rm -rf conftest*
7635   eval "ac_cv_lib_$ac_lib_var=no"
7636 fi
7637 rm -f conftest*
7638 LIBS="$ac_save_LIBS"
7639
7640 fi
7641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7642   echo "$ac_t""yes" 1>&6
7643   dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
7644 else
7645   echo "$ac_t""no" 1>&6
7646 fi
7647
7648   
7649 else
7650   echo "$ac_t""no" 1>&6
7651 fi
7652 done
7653
7654 fi
7655
7656 # Check whether --enable-esd or --disable-esd was given.
7657 if test "${enable_esd+set}" = set; then
7658   enableval="$enable_esd"
7659   if test x$enable_esd = xyes
7660    then
7661      # Extract the first word of "esd-config", so it can be a program name with args.
7662 set dummy esd-config; ac_word=$2
7663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7664 echo "configure:7665: checking for $ac_word" >&5
7665 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7666   echo $ac_n "(cached) $ac_c" 1>&6
7667 else
7668   case "$ESD_CONFIG" in
7669   /*)
7670   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7671   ;;
7672   ?:/*)                  
7673   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7674   ;;
7675   *)
7676   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7677   ac_dummy="$PATH"
7678   for ac_dir in $ac_dummy; do 
7679     test -z "$ac_dir" && ac_dir=.
7680     if test -f $ac_dir/$ac_word; then
7681       ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7682       break
7683     fi
7684   done
7685   IFS="$ac_save_ifs"
7686   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7687   ;;
7688 esac
7689 fi
7690 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7691 if test -n "$ESD_CONFIG"; then
7692   echo "$ac_t""$ESD_CONFIG" 1>&6
7693 else
7694   echo "$ac_t""no" 1>&6
7695 fi
7696
7697      if test x${ESD_CONFIG} != xno
7698      then
7699        PLUGINS="${PLUGINS} esd"
7700        esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
7701        esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
7702      fi
7703    fi
7704 fi
7705
7706
7707 # Check whether --enable-arts or --disable-arts was given.
7708 if test "${enable_arts+set}" = set; then
7709   enableval="$enable_arts"
7710   if test x$enable_arts = xyes
7711    then
7712      # Extract the first word of "artsc-config", so it can be a program name with args.
7713 set dummy artsc-config; ac_word=$2
7714 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7715 echo "configure:7716: checking for $ac_word" >&5
7716 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7717   echo $ac_n "(cached) $ac_c" 1>&6
7718 else
7719   case "$ARTS_CONFIG" in
7720   /*)
7721   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7722   ;;
7723   ?:/*)                  
7724   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7725   ;;
7726   *)
7727   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7728   ac_dummy="$PATH"
7729   for ac_dir in $ac_dummy; do 
7730     test -z "$ac_dir" && ac_dir=.
7731     if test -f $ac_dir/$ac_word; then
7732       ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7733       break
7734     fi
7735   done
7736   IFS="$ac_save_ifs"
7737   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7738   ;;
7739 esac
7740 fi
7741 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7742 if test -n "$ARTS_CONFIG"; then
7743   echo "$ac_t""$ARTS_CONFIG" 1>&6
7744 else
7745   echo "$ac_t""no" 1>&6
7746 fi
7747
7748      if test x${ARTS_CONFIG} != xno
7749      then
7750        PLUGINS="${PLUGINS} arts"
7751        arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
7752        arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
7753      fi
7754    fi
7755 fi
7756
7757
7758 # Check whether --enable-alsa or --disable-alsa was given.
7759 if test "${enable_alsa+set}" = set; then
7760   enableval="$enable_alsa"
7761   if test x$enable_alsa = xyes
7762    then
7763      ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7764 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7765 echo "configure:7766: checking for alsa/asoundlib.h" >&5
7766 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7767   echo $ac_n "(cached) $ac_c" 1>&6
7768 else
7769   cat > conftest.$ac_ext <<EOF
7770 #line 7771 "configure"
7771 #include "confdefs.h"
7772 #include <alsa/asoundlib.h>
7773 EOF
7774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7775 { (eval echo configure:7776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7777 if test -z "$ac_err"; then
7778   rm -rf conftest*
7779   eval "ac_cv_header_$ac_safe=yes"
7780 else
7781   echo "$ac_err" >&5
7782   echo "configure: failed program was:" >&5
7783   cat conftest.$ac_ext >&5
7784   rm -rf conftest*
7785   eval "ac_cv_header_$ac_safe=no"
7786 fi
7787 rm -f conftest*
7788 fi
7789 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7790   echo "$ac_t""yes" 1>&6
7791   echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7792 echo "configure:7793: checking for main in -lasound" >&5
7793 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7795   echo $ac_n "(cached) $ac_c" 1>&6
7796 else
7797   ac_save_LIBS="$LIBS"
7798 LIBS="-lasound  $LIBS"
7799 cat > conftest.$ac_ext <<EOF
7800 #line 7801 "configure"
7801 #include "confdefs.h"
7802
7803 int main() {
7804 main()
7805 ; return 0; }
7806 EOF
7807 if { (eval echo configure:7808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7808   rm -rf conftest*
7809   eval "ac_cv_lib_$ac_lib_var=yes"
7810 else
7811   echo "configure: failed program was:" >&5
7812   cat conftest.$ac_ext >&5
7813   rm -rf conftest*
7814   eval "ac_cv_lib_$ac_lib_var=no"
7815 fi
7816 rm -f conftest*
7817 LIBS="$ac_save_LIBS"
7818
7819 fi
7820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7821   echo "$ac_t""yes" 1>&6
7822   have_alsa="true"
7823 else
7824   echo "$ac_t""no" 1>&6
7825 have_alsa="false"
7826 fi
7827
7828 else
7829   echo "$ac_t""no" 1>&6
7830 have_alsa="false"
7831 fi
7832
7833      if test x$have_alsa = xtrue
7834      then
7835        PLUGINS="${PLUGINS} alsa"
7836        alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
7837      fi
7838    fi
7839 fi
7840
7841
7842 # Check whether --enable-waveout or --disable-waveout was given.
7843 if test "${enable_waveout+set}" = set; then
7844   enableval="$enable_waveout"
7845   :
7846 fi
7847
7848 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
7849   then
7850     PLUGINS="${PLUGINS} waveout"
7851     waveout_LDFLAGS="-lwinmm"
7852 fi
7853
7854
7855 # Check whether --with- or --without- was given.
7856 if test "${with_+set}" = set; then
7857   withval="$with_"
7858   :
7859 fi
7860
7861
7862 # Check whether --enable-gtk or --disable-gtk was given.
7863 if test "${enable_gtk+set}" = set; then
7864   enableval="$enable_gtk"
7865   :
7866 fi
7867
7868 if test x$enable_gtk != xno
7869 then
7870   GTK_PATH=$PATH
7871   # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7872 if test "${with_gtk_config_path+set}" = set; then
7873   withval="$with_gtk_config_path"
7874    if test "x$with_gtk_config_path" != "xno"
7875       then
7876         GTK_PATH="$with_gtk_config_path:$PATH"
7877       fi 
7878 fi
7879
7880   # look for gtk-config
7881   # Extract the first word of "gtk12-config", so it can be a program name with args.
7882 set dummy gtk12-config; ac_word=$2
7883 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7884 echo "configure:7885: checking for $ac_word" >&5
7885 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7886   echo $ac_n "(cached) $ac_c" 1>&6
7887 else
7888   case "$GTK12_CONFIG" in
7889   /*)
7890   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7891   ;;
7892   ?:/*)                  
7893   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7894   ;;
7895   *)
7896   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7897   ac_dummy="$GTK_PATH"
7898   for ac_dir in $ac_dummy; do 
7899     test -z "$ac_dir" && ac_dir=.
7900     if test -f $ac_dir/$ac_word; then
7901       ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7902       break
7903     fi
7904   done
7905   IFS="$ac_save_ifs"
7906   test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7907   ;;
7908 esac
7909 fi
7910 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7911 if test -n "$GTK12_CONFIG"; then
7912   echo "$ac_t""$GTK12_CONFIG" 1>&6
7913 else
7914   echo "$ac_t""no" 1>&6
7915 fi
7916
7917   GTK_CONFIG=${GTK12_CONFIG}
7918   if test x${GTK_CONFIG} = xno
7919   then
7920     # Extract the first word of "gtk-config", so it can be a program name with args.
7921 set dummy gtk-config; ac_word=$2
7922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7923 echo "configure:7924: checking for $ac_word" >&5
7924 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7925   echo $ac_n "(cached) $ac_c" 1>&6
7926 else
7927   case "$GTK_CONFIG" in
7928   /*)
7929   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7930   ;;
7931   ?:/*)                  
7932   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7933   ;;
7934   *)
7935   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7936   ac_dummy="$GTK_PATH"
7937   for ac_dir in $ac_dummy; do 
7938     test -z "$ac_dir" && ac_dir=.
7939     if test -f $ac_dir/$ac_word; then
7940       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7941       break
7942     fi
7943   done
7944   IFS="$ac_save_ifs"
7945   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7946   ;;
7947 esac
7948 fi
7949 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7950 if test -n "$GTK_CONFIG"; then
7951   echo "$ac_t""$GTK_CONFIG" 1>&6
7952 else
7953   echo "$ac_t""no" 1>&6
7954 fi
7955
7956   fi
7957   if test x${GTK_CONFIG} != xno
7958   then
7959     if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7960     then
7961       { 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; }
7962     fi
7963     gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
7964     gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7965     # now look for the gtk.h header
7966     CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
7967     ac_cv_gtk_headers=yes
7968     for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7969 do
7970 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7971 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7972 echo "configure:7973: checking for $ac_hdr" >&5
7973 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7974   echo $ac_n "(cached) $ac_c" 1>&6
7975 else
7976   cat > conftest.$ac_ext <<EOF
7977 #line 7978 "configure"
7978 #include "confdefs.h"
7979 #include <$ac_hdr>
7980 EOF
7981 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7982 { (eval echo configure:7983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7983 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7984 if test -z "$ac_err"; then
7985   rm -rf conftest*
7986   eval "ac_cv_header_$ac_safe=yes"
7987 else
7988   echo "$ac_err" >&5
7989   echo "configure: failed program was:" >&5
7990   cat conftest.$ac_ext >&5
7991   rm -rf conftest*
7992   eval "ac_cv_header_$ac_safe=no"
7993 fi
7994 rm -f conftest*
7995 fi
7996 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7997   echo "$ac_t""yes" 1>&6
7998     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7999   cat >> confdefs.h <<EOF
8000 #define $ac_tr_hdr 1
8001 EOF
8002  
8003 else
8004   echo "$ac_t""no" 1>&6
8005 ac_cv_gtk_headers=no
8006       echo "Cannot find gtk development headers."
8007     
8008 fi
8009 done
8010
8011     if test "x$ac_cv_gtk_headers" = xyes
8012     then
8013       PLUGINS="${PLUGINS} gtk"
8014       ALIASES="${ALIASES} gvlc"
8015     fi
8016     CPPFLAGS="$save_CPPFLAGS"
8017   fi
8018 fi
8019
8020 # Check whether --enable-gnome or --disable-gnome was given.
8021 if test "${enable_gnome+set}" = set; then
8022   enableval="$enable_gnome"
8023   if test x$enable_gnome = xyes; then
8024     # look for gnome-config
8025     # Extract the first word of "gnome-config", so it can be a program name with args.
8026 set dummy gnome-config; ac_word=$2
8027 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8028 echo "configure:8029: checking for $ac_word" >&5
8029 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
8030   echo $ac_n "(cached) $ac_c" 1>&6
8031 else
8032   case "$GNOME_CONFIG" in
8033   /*)
8034   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8035   ;;
8036   ?:/*)                  
8037   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
8038   ;;
8039   *)
8040   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
8041   ac_dummy="$PATH"
8042   for ac_dir in $ac_dummy; do 
8043     test -z "$ac_dir" && ac_dir=.
8044     if test -f $ac_dir/$ac_word; then
8045       ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
8046       break
8047     fi
8048   done
8049   IFS="$ac_save_ifs"
8050   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8051   ;;
8052 esac
8053 fi
8054 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
8055 if test -n "$GNOME_CONFIG"; then
8056   echo "$ac_t""$GNOME_CONFIG" 1>&6
8057 else
8058   echo "$ac_t""no" 1>&6
8059 fi
8060
8061     if test -x ${GNOME_CONFIG}
8062     then
8063        gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
8064        gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
8065     fi
8066     # now look for the gnome.h header
8067     CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
8068     for ac_hdr in gnome.h
8069 do
8070 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8071 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8072 echo "configure:8073: checking for $ac_hdr" >&5
8073 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8074   echo $ac_n "(cached) $ac_c" 1>&6
8075 else
8076   cat > conftest.$ac_ext <<EOF
8077 #line 8078 "configure"
8078 #include "confdefs.h"
8079 #include <$ac_hdr>
8080 EOF
8081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8082 { (eval echo configure:8083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8084 if test -z "$ac_err"; then
8085   rm -rf conftest*
8086   eval "ac_cv_header_$ac_safe=yes"
8087 else
8088   echo "$ac_err" >&5
8089   echo "configure: failed program was:" >&5
8090   cat conftest.$ac_ext >&5
8091   rm -rf conftest*
8092   eval "ac_cv_header_$ac_safe=no"
8093 fi
8094 rm -f conftest*
8095 fi
8096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8097   echo "$ac_t""yes" 1>&6
8098     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8099   cat >> confdefs.h <<EOF
8100 #define $ac_tr_hdr 1
8101 EOF
8102  
8103       PLUGINS="${PLUGINS} gnome"
8104       ALIASES="${ALIASES} gnome-vlc"
8105      
8106 else
8107   echo "$ac_t""no" 1>&6
8108 { echo "configure: error: Can't find gnome headers. Please install the gnome
8109 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
8110      
8111 fi
8112 done
8113
8114     CPPFLAGS="$save_CPPFLAGS"
8115   fi
8116 fi
8117
8118
8119 # Check whether --enable-qt or --disable-qt was given.
8120 if test "${enable_qt+set}" = set; then
8121   enableval="$enable_qt"
8122   if test x$enable_qt = xyes; then
8123      PLUGINS="${PLUGINS} qt"
8124      ALIASES="${ALIASES} qvlc"
8125      qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
8126      qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
8127      if test -x ${QTDIR}/bin/moc
8128      then
8129        MOC=${QTDIR}/bin/moc
8130      else
8131        MOC=moc
8132      fi
8133    fi
8134 fi
8135
8136
8137 # Check whether --enable-kde or --disable-kde was given.
8138 if test "${enable_kde+set}" = set; then
8139   enableval="$enable_kde"
8140   if test x$enable_kde = xyes; then
8141      PLUGINS="${PLUGINS} kde"
8142      ALIASES="${ALIASES} kvlc"
8143      kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
8144      kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
8145      kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
8146      if test -x ${QTDIR}/bin/moc
8147      then
8148        MOC=${QTDIR}/bin/moc
8149      else
8150        MOC=moc
8151      fi
8152    fi
8153 fi
8154
8155
8156 # Check whether --enable-macosx or --disable-macosx was given.
8157 if test "${enable_macosx+set}" = set; then
8158   enableval="$enable_macosx"
8159   if test x$enable_macosx = xyes
8160    then
8161      BUILTINS="${BUILTINS} macosx"
8162      macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8163    fi
8164 else
8165   for ac_hdr in Cocoa/Cocoa.h
8166 do
8167 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8168 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8169 echo "configure:8170: checking for $ac_hdr" >&5
8170 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8171   echo $ac_n "(cached) $ac_c" 1>&6
8172 else
8173   cat > conftest.$ac_ext <<EOF
8174 #line 8175 "configure"
8175 #include "confdefs.h"
8176 #include <$ac_hdr>
8177 EOF
8178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8179 { (eval echo configure:8180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8181 if test -z "$ac_err"; then
8182   rm -rf conftest*
8183   eval "ac_cv_header_$ac_safe=yes"
8184 else
8185   echo "$ac_err" >&5
8186   echo "configure: failed program was:" >&5
8187   cat conftest.$ac_ext >&5
8188   rm -rf conftest*
8189   eval "ac_cv_header_$ac_safe=no"
8190 fi
8191 rm -f conftest*
8192 fi
8193 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8194   echo "$ac_t""yes" 1>&6
8195     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8196   cat >> confdefs.h <<EOF
8197 #define $ac_tr_hdr 1
8198 EOF
8199  BUILTINS="${BUILTINS} macosx"
8200      macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
8201    
8202 else
8203   echo "$ac_t""no" 1>&6
8204 fi
8205 done
8206
8207 fi
8208
8209
8210 # Check whether --enable-qnx or --disable-qnx was given.
8211 if test "${enable_qnx+set}" = set; then
8212   enableval="$enable_qnx"
8213   :
8214 fi
8215
8216     if test x$enable_qnx != xno
8217     then
8218       for ac_hdr in Ph.h
8219 do
8220 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8221 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8222 echo "configure:8223: checking for $ac_hdr" >&5
8223 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8224   echo $ac_n "(cached) $ac_c" 1>&6
8225 else
8226   cat > conftest.$ac_ext <<EOF
8227 #line 8228 "configure"
8228 #include "confdefs.h"
8229 #include <$ac_hdr>
8230 EOF
8231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8232 { (eval echo configure:8233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8234 if test -z "$ac_err"; then
8235   rm -rf conftest*
8236   eval "ac_cv_header_$ac_safe=yes"
8237 else
8238   echo "$ac_err" >&5
8239   echo "configure: failed program was:" >&5
8240   cat conftest.$ac_ext >&5
8241   rm -rf conftest*
8242   eval "ac_cv_header_$ac_safe=no"
8243 fi
8244 rm -f conftest*
8245 fi
8246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8247   echo "$ac_t""yes" 1>&6
8248     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8249   cat >> confdefs.h <<EOF
8250 #define $ac_tr_hdr 1
8251 EOF
8252  
8253         PLUGINS="${PLUGINS} qnx"
8254         qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
8255       
8256 else
8257   echo "$ac_t""no" 1>&6
8258 fi
8259 done
8260
8261     fi
8262
8263 # Check whether --enable-intfwin or --disable-intfwin was given.
8264 if test "${enable_intfwin+set}" = set; then
8265   enableval="$enable_intfwin"
8266    if test "x$enable_intfwin" != "xno"
8267   then
8268     # Check whether --with-bcbuilder or --without-bcbuilder was given.
8269 if test "${with_bcbuilder+set}" = set; then
8270   withval="$with_bcbuilder"
8271   :
8272 fi
8273
8274     if test "x$with_bcbuilder" != "x"
8275     then
8276       BCBUILDER="$with_bcbuilder"
8277     fi
8278     PLUGINS="${PLUGINS} intfwin"
8279   fi 
8280 fi
8281
8282
8283 # Check whether --enable-ncurses or --disable-ncurses was given.
8284 if test "${enable_ncurses+set}" = set; then
8285   enableval="$enable_ncurses"
8286   if test x$enable_ncurses = xyes; then
8287      PLUGINS="${PLUGINS} ncurses"
8288      ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
8289    fi
8290 fi
8291
8292
8293 # Check whether --enable-xosd or --disable-xosd was given.
8294 if test "${enable_xosd+set}" = set; then
8295   enableval="$enable_xosd"
8296   :
8297 fi
8298
8299 if test x$enable_xosd = xyes
8300 then
8301   ac_safe=`echo "xosd.h" | sed 'y%./+-%__p_%'`
8302 echo $ac_n "checking for xosd.h""... $ac_c" 1>&6
8303 echo "configure:8304: checking for xosd.h" >&5
8304 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8305   echo $ac_n "(cached) $ac_c" 1>&6
8306 else
8307   cat > conftest.$ac_ext <<EOF
8308 #line 8309 "configure"
8309 #include "confdefs.h"
8310 #include <xosd.h>
8311 EOF
8312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8313 { (eval echo configure:8314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8315 if test -z "$ac_err"; then
8316   rm -rf conftest*
8317   eval "ac_cv_header_$ac_safe=yes"
8318 else
8319   echo "$ac_err" >&5
8320   echo "configure: failed program was:" >&5
8321   cat conftest.$ac_ext >&5
8322   rm -rf conftest*
8323   eval "ac_cv_header_$ac_safe=no"
8324 fi
8325 rm -f conftest*
8326 fi
8327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8328   echo "$ac_t""yes" 1>&6
8329   have_xosd="true"
8330 else
8331   echo "$ac_t""no" 1>&6
8332 have_xosd="false"
8333 fi
8334
8335   if test x$have_xosd = xtrue
8336   then
8337     PLUGINS="${PLUGINS} xosd"
8338     xosd_LDFLAGS="${xosd_LDFLAGS} -lxosd"
8339   fi
8340 fi
8341
8342 # Check whether --enable-lirc or --disable-lirc was given.
8343 if test "${enable_lirc+set}" = set; then
8344   enableval="$enable_lirc"
8345   :
8346 fi
8347
8348 if test x$enable_lirc = xyes
8349 then
8350   ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8351 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8352 echo "configure:8353: checking for lirc/lirc_client.h" >&5
8353 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8354   echo $ac_n "(cached) $ac_c" 1>&6
8355 else
8356   cat > conftest.$ac_ext <<EOF
8357 #line 8358 "configure"
8358 #include "confdefs.h"
8359 #include <lirc/lirc_client.h>
8360 EOF
8361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8362 { (eval echo configure:8363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8363 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8364 if test -z "$ac_err"; then
8365   rm -rf conftest*
8366   eval "ac_cv_header_$ac_safe=yes"
8367 else
8368   echo "$ac_err" >&5
8369   echo "configure: failed program was:" >&5
8370   cat conftest.$ac_ext >&5
8371   rm -rf conftest*
8372   eval "ac_cv_header_$ac_safe=no"
8373 fi
8374 rm -f conftest*
8375 fi
8376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8377   echo "$ac_t""yes" 1>&6
8378   echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8379 echo "configure:8380: checking for lirc_init in -llirc_client" >&5
8380 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8382   echo $ac_n "(cached) $ac_c" 1>&6
8383 else
8384   ac_save_LIBS="$LIBS"
8385 LIBS="-llirc_client  $LIBS"
8386 cat > conftest.$ac_ext <<EOF
8387 #line 8388 "configure"
8388 #include "confdefs.h"
8389 /* Override any gcc2 internal prototype to avoid an error.  */
8390 /* We use char because int might match the return type of a gcc2
8391     builtin and then its argument prototype would still apply.  */
8392 char lirc_init();
8393
8394 int main() {
8395 lirc_init()
8396 ; return 0; }
8397 EOF
8398 if { (eval echo configure:8399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8399   rm -rf conftest*
8400   eval "ac_cv_lib_$ac_lib_var=yes"
8401 else
8402   echo "configure: failed program was:" >&5
8403   cat conftest.$ac_ext >&5
8404   rm -rf conftest*
8405   eval "ac_cv_lib_$ac_lib_var=no"
8406 fi
8407 rm -f conftest*
8408 LIBS="$ac_save_LIBS"
8409
8410 fi
8411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8412   echo "$ac_t""yes" 1>&6
8413   have_lirc="true"
8414 else
8415   echo "$ac_t""no" 1>&6
8416 have_lirc="false"
8417 fi
8418
8419 else
8420   echo "$ac_t""no" 1>&6
8421 have_lirc="false"
8422 fi
8423
8424   if test x$have_lirc = xtrue
8425   then
8426     PLUGINS="${PLUGINS} lirc"
8427     lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
8428   fi
8429 fi
8430
8431 # Check whether --with- or --without- was given.
8432 if test "${with_+set}" = set; then
8433   withval="$with_"
8434   :
8435 fi
8436
8437
8438 # Check whether --with-words or --without-words was given.
8439 if test "${with_words+set}" = set; then
8440   withval="$with_words"
8441   :
8442 fi
8443
8444   case "x$with_words" in
8445     xbig)
8446       ac_cv_c_bigendian=yes
8447       ;;
8448     xlittle)
8449       ac_cv_c_bigendian=no
8450       ;;
8451     *)
8452                   echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8453 echo "configure:8454: checking whether the byte order is big-endian" >&5
8454 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8455   echo $ac_n "(cached) $ac_c" 1>&6
8456 else
8457   ac_cv_c_bigendian=unknown
8458         cat >conftest.c <<EOF
8459         short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8460         short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8461         void _a(void) { char*s = (char*)am; s = (char *)ai; }
8462         short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8463         short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8464         void _e(void) { char*s = (char*)em; s = (char*)ei; }
8465         int main(void) { _a(); _e(); return 0; }
8466 EOF
8467         
8468         if test -f conftest.c
8469         then 
8470           if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
8471               && test -f conftest.o
8472           then
8473             if test "`strings conftest.o | grep BIGenDianSyS`"
8474             then
8475               ac_cv_c_bigendian=yes
8476             fi
8477             if test "`strings conftest.o | grep LiTTleEnDian`"
8478             then
8479               ac_cv_c_bigendian=no
8480             fi
8481           fi
8482         fi
8483       
8484 fi
8485
8486 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8487       if test x$ac_cv_c_bigendian = xunknown
8488       then
8489         { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8490       fi
8491       ;;
8492   esac
8493 if test $ac_cv_c_bigendian = yes
8494 then
8495   cat >> confdefs.h <<\EOF
8496 #define WORDS_BIGENDIAN 1
8497 EOF
8498
8499 fi
8500
8501 PROFILING=0
8502
8503 GPROF=0
8504 # Check whether --enable-gprof or --disable-gprof was given.
8505 if test "${enable_gprof+set}" = set; then
8506   enableval="$enable_gprof"
8507    if test "x$enable_gprof" = "xyes"
8508   then
8509     GPROF=1
8510     PROFILING="gprof"
8511   fi
8512
8513 fi
8514
8515
8516 CPROF=0
8517 # Check whether --enable-cprof or --disable-cprof was given.
8518 if test "${enable_cprof+set}" = set; then
8519   enableval="$enable_cprof"
8520    if test "x$enable_cprof" = "xyes"
8521   then
8522     LDFLAGS="${LDFLAGS} -lcprof"
8523     CPROF=1
8524     PROFILING="cprof"
8525   fi
8526
8527 fi
8528
8529
8530 # Check whether --enable-pth or --disable-pth was given.
8531 if test "${enable_pth+set}" = set; then
8532   enableval="$enable_pth"
8533    if test "x$enable_pth" = "xyes"; then
8534     echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8535 echo "configure:8536: checking for pth_init in -lpth" >&5
8536 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8538   echo $ac_n "(cached) $ac_c" 1>&6
8539 else
8540   ac_save_LIBS="$LIBS"
8541 LIBS="-lpth  $LIBS"
8542 cat > conftest.$ac_ext <<EOF
8543 #line 8544 "configure"
8544 #include "confdefs.h"
8545 /* Override any gcc2 internal prototype to avoid an error.  */
8546 /* We use char because int might match the return type of a gcc2
8547     builtin and then its argument prototype would still apply.  */
8548 char pth_init();
8549
8550 int main() {
8551 pth_init()
8552 ; return 0; }
8553 EOF
8554 if { (eval echo configure:8555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8555   rm -rf conftest*
8556   eval "ac_cv_lib_$ac_lib_var=yes"
8557 else
8558   echo "configure: failed program was:" >&5
8559   cat conftest.$ac_ext >&5
8560   rm -rf conftest*
8561   eval "ac_cv_lib_$ac_lib_var=no"
8562 fi
8563 rm -f conftest*
8564 LIBS="$ac_save_LIBS"
8565
8566 fi
8567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8568   echo "$ac_t""yes" 1>&6
8569     ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8570     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8571   cat >> confdefs.h <<EOF
8572 #define $ac_tr_lib 1
8573 EOF
8574
8575   LIBS="-lpth $LIBS"
8576
8577 else
8578   echo "$ac_t""no" 1>&6
8579 fi
8580
8581     cat > conftest.$ac_ext <<EOF
8582 #line 8583 "configure"
8583 #include "confdefs.h"
8584 #include <pth.h>
8585 EOF
8586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8587   egrep "pth_init" >/dev/null 2>&1; then
8588   rm -rf conftest*
8589   
8590       cat >> confdefs.h <<\EOF
8591 #define PTH_INIT_IN_PTH_H 1
8592 EOF
8593
8594     THREAD_LIB="-lpth"
8595     fi
8596 fi
8597 rm -f conftest*
8598
8599
8600 fi
8601
8602
8603 # Check whether --enable-st or --disable-st was given.
8604 if test "${enable_st+set}" = set; then
8605   enableval="$enable_st"
8606    if test "x$enable_st" = "xyes"; then
8607     echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8608 echo "configure:8609: checking for st_init in -lst" >&5
8609 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8610 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8611   echo $ac_n "(cached) $ac_c" 1>&6
8612 else
8613   ac_save_LIBS="$LIBS"
8614 LIBS="-lst  $LIBS"
8615 cat > conftest.$ac_ext <<EOF
8616 #line 8617 "configure"
8617 #include "confdefs.h"
8618 /* Override any gcc2 internal prototype to avoid an error.  */
8619 /* We use char because int might match the return type of a gcc2
8620     builtin and then its argument prototype would still apply.  */
8621 char st_init();
8622
8623 int main() {
8624 st_init()
8625 ; return 0; }
8626 EOF
8627 if { (eval echo configure:8628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8628   rm -rf conftest*
8629   eval "ac_cv_lib_$ac_lib_var=yes"
8630 else
8631   echo "configure: failed program was:" >&5
8632   cat conftest.$ac_ext >&5
8633   rm -rf conftest*
8634   eval "ac_cv_lib_$ac_lib_var=no"
8635 fi
8636 rm -f conftest*
8637 LIBS="$ac_save_LIBS"
8638
8639 fi
8640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8641   echo "$ac_t""yes" 1>&6
8642     ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8643     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8644   cat >> confdefs.h <<EOF
8645 #define $ac_tr_lib 1
8646 EOF
8647
8648   LIBS="-lst $LIBS"
8649
8650 else
8651   echo "$ac_t""no" 1>&6
8652 fi
8653
8654     cat > conftest.$ac_ext <<EOF
8655 #line 8656 "configure"
8656 #include "confdefs.h"
8657 #include <st.h>
8658 EOF
8659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8660   egrep "st_init" >/dev/null 2>&1; then
8661   rm -rf conftest*
8662   
8663       cat >> confdefs.h <<\EOF
8664 #define ST_INIT_IN_ST_H 1
8665 EOF
8666
8667     THREAD_LIB="-lst"
8668     fi
8669 fi
8670 rm -f conftest*
8671
8672
8673 fi
8674
8675
8676 vlc_LDFLAGS="${vlc_LDFLAGS} ${THREAD_LIB}"
8677 plugins_LDFLAGS="${plugins_LDFLAGS} ${THREAD_LIB}"
8678
8679 # Check whether --enable-plugins or --disable-plugins was given.
8680 if test "${enable_plugins+set}" = set; then
8681   enableval="$enable_plugins"
8682   if test x$enable_plugins = xno
8683    then
8684      BUILTINS="${BUILTINS} ${PLUGINS}"
8685      PLUGINS=
8686    fi
8687 fi
8688
8689
8690 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
8691 then
8692   echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8693   echo "as built-in"
8694   BUILTINS="${BUILTINS} ${PLUGINS}"
8695   PLUGINS=
8696 fi
8697
8698 cat >> confdefs.h <<EOF
8699 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
8700 EOF
8701
8702 cat >> confdefs.h <<EOF
8703 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
8704 EOF
8705
8706 cat >> confdefs.h <<EOF
8707 #define CONFIGURE_LINE "$CONFIGURE_LINE"
8708 EOF
8709
8710
8711 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
8712 cat >> confdefs.h <<EOF
8713 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8714 EOF
8715
8716 cat >> confdefs.h <<EOF
8717 #define MODULE_SYMBOL $VLC_SYMBOL
8718 EOF
8719
8720
8721 DATA_PATH="${ac_tool_prefix}/share/videolan"
8722
8723 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8724
8725
8726 CPPFLAGS="${save_CPPFLAGS}"
8727 CFLAGS="${save_CFLAGS}"
8728 LDFLAGS="${save_LDFLAGS}"
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
8825
8826
8827 trap '' 1 2 15
8828 cat > confcache <<\EOF
8829 # This file is a shell script that caches the results of configure
8830 # tests run on this system so they can be shared between configure
8831 # scripts and configure runs.  It is not useful on other systems.
8832 # If it contains results you don't want to keep, you may remove or edit it.
8833 #
8834 # By default, configure uses ./config.cache as the cache file,
8835 # creating it if it does not exist already.  You can give configure
8836 # the --cache-file=FILE option to use a different cache file; that is
8837 # what configure does when it calls configure scripts in
8838 # subdirectories, so they share the cache.
8839 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8840 # config.status only pays attention to the cache file if you give it the
8841 # --recheck option to rerun configure.
8842 #
8843 EOF
8844 # The following way of writing the cache mishandles newlines in values,
8845 # but we know of no workaround that is simple, portable, and efficient.
8846 # So, don't put newlines in cache variables' values.
8847 # Ultrix sh set writes to stderr and can't be redirected directly,
8848 # and sets the high bit in the cache file unless we assign to the vars.
8849 (set) 2>&1 |
8850   case `(ac_space=' '; set | grep ac_space) 2>&1` in
8851   *ac_space=\ *)
8852     # `set' does not quote correctly, so add quotes (double-quote substitution
8853     # turns \\\\ into \\, and sed turns \\ into \).
8854     sed -n \
8855       -e "s/'/'\\\\''/g" \
8856       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8857     ;;
8858   *)
8859     # `set' quotes correctly as required by POSIX, so do not add quotes.
8860     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8861     ;;
8862   esac >> confcache
8863 if cmp -s $cache_file confcache; then
8864   :
8865 else
8866   if test -w $cache_file; then
8867     echo "updating cache $cache_file"
8868     cat confcache > $cache_file
8869   else
8870     echo "not updating unwritable cache $cache_file"
8871   fi
8872 fi
8873 rm -f confcache
8874
8875 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8876
8877 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8878 # Let make expand exec_prefix.
8879 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8880
8881 # Any assignment to VPATH causes Sun make to only execute
8882 # the first set of double-colon rules, so remove it if not needed.
8883 # If there is a colon in the path, we need to keep it.
8884 if test "x$srcdir" = x.; then
8885   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
8886 fi
8887
8888 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8889
8890 DEFS=-DHAVE_CONFIG_H
8891
8892 # Without the "./", some shells look in PATH for config.status.
8893 : ${CONFIG_STATUS=./config.status}
8894
8895 echo creating $CONFIG_STATUS
8896 rm -f $CONFIG_STATUS
8897 cat > $CONFIG_STATUS <<EOF
8898 #! /bin/sh
8899 # Generated automatically by configure.
8900 # Run this file to recreate the current configuration.
8901 # This directory was configured as follows,
8902 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8903 #
8904 # $0 $ac_configure_args
8905 #
8906 # Compiler output produced by configure, useful for debugging
8907 # configure, is in ./config.log if it exists.
8908
8909 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8910 for ac_option
8911 do
8912   case "\$ac_option" in
8913   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8914     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8915     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8916   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8917     echo "$CONFIG_STATUS generated by autoconf version 2.13"
8918     exit 0 ;;
8919   -help | --help | --hel | --he | --h)
8920     echo "\$ac_cs_usage"; exit 0 ;;
8921   *) echo "\$ac_cs_usage"; exit 1 ;;
8922   esac
8923 done
8924
8925 ac_given_srcdir=$srcdir
8926 ac_given_INSTALL="$INSTALL"
8927
8928 trap 'rm -fr `echo "Makefile.config Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8929 EOF
8930 cat >> $CONFIG_STATUS <<EOF
8931
8932 # Protect against being on the right side of a sed subst in config.status.
8933 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8934  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8935 $ac_vpsub
8936 $extrasub
8937 s%@SHELL@%$SHELL%g
8938 s%@CFLAGS@%$CFLAGS%g
8939 s%@CPPFLAGS@%$CPPFLAGS%g
8940 s%@CXXFLAGS@%$CXXFLAGS%g
8941 s%@FFLAGS@%$FFLAGS%g
8942 s%@DEFS@%$DEFS%g
8943 s%@LDFLAGS@%$LDFLAGS%g
8944 s%@LIBS@%$LIBS%g
8945 s%@exec_prefix@%$exec_prefix%g
8946 s%@prefix@%$prefix%g
8947 s%@program_transform_name@%$program_transform_name%g
8948 s%@bindir@%$bindir%g
8949 s%@sbindir@%$sbindir%g
8950 s%@libexecdir@%$libexecdir%g
8951 s%@datadir@%$datadir%g
8952 s%@sysconfdir@%$sysconfdir%g
8953 s%@sharedstatedir@%$sharedstatedir%g
8954 s%@localstatedir@%$localstatedir%g
8955 s%@libdir@%$libdir%g
8956 s%@includedir@%$includedir%g
8957 s%@oldincludedir@%$oldincludedir%g
8958 s%@infodir@%$infodir%g
8959 s%@mandir@%$mandir%g
8960 s%@host@%$host%g
8961 s%@host_alias@%$host_alias%g
8962 s%@host_cpu@%$host_cpu%g
8963 s%@host_vendor@%$host_vendor%g
8964 s%@host_os@%$host_os%g
8965 s%@target@%$target%g
8966 s%@target_alias@%$target_alias%g
8967 s%@target_cpu@%$target_cpu%g
8968 s%@target_vendor@%$target_vendor%g
8969 s%@target_os@%$target_os%g
8970 s%@build@%$build%g
8971 s%@build_alias@%$build_alias%g
8972 s%@build_cpu@%$build_cpu%g
8973 s%@build_vendor@%$build_vendor%g
8974 s%@build_os@%$build_os%g
8975 s%@SET_MAKE@%$SET_MAKE%g
8976 s%@CC@%$CC%g
8977 s%@CPP@%$CPP%g
8978 s%@RANLIB@%$RANLIB%g
8979 s%@STRIP@%$STRIP%g
8980 s%@GMAKE@%$GMAKE%g
8981 s%@ALLOCA@%$ALLOCA%g
8982 s%@GLIBC21@%$GLIBC21%g
8983 s%@LIBICONV@%$LIBICONV%g
8984 s%@USE_NLS@%$USE_NLS%g
8985 s%@MSGFMT@%$MSGFMT%g
8986 s%@GMSGFMT@%$GMSGFMT%g
8987 s%@XGETTEXT@%$XGETTEXT%g
8988 s%@INTLBISON@%$INTLBISON%g
8989 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8990 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8991 s%@CATALOGS@%$CATALOGS%g
8992 s%@CATOBJEXT@%$CATOBJEXT%g
8993 s%@GMOFILES@%$GMOFILES%g
8994 s%@INTLLIBS@%$INTLLIBS%g
8995 s%@INTLOBJS@%$INTLOBJS%g
8996 s%@POFILES@%$POFILES%g
8997 s%@POSUB@%$POSUB%g
8998 s%@DATADIRNAME@%$DATADIRNAME%g
8999 s%@INSTOBJEXT@%$INSTOBJEXT%g
9000 s%@GENCAT@%$GENCAT%g
9001 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9002 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
9003 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9004 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9005 s%@INSTALL_DATA@%$INSTALL_DATA%g
9006 s%@WINDRES@%$WINDRES%g
9007 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
9008 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
9009 s%@SDL_CONFIG@%$SDL_CONFIG%g
9010 s%@ESD_CONFIG@%$ESD_CONFIG%g
9011 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
9012 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
9013 s%@GTK_CONFIG@%$GTK_CONFIG%g
9014 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
9015 s%@DATA_PATH@%$DATA_PATH%g
9016 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
9017 s%@SYS@%$SYS%g
9018 s%@ARCH@%$ARCH%g
9019 s%@PLUGINS@%$PLUGINS%g
9020 s%@BUILTINS@%$BUILTINS%g
9021 s%@ALIASES@%$ALIASES%g
9022 s%@DEBUG@%$DEBUG%g
9023 s%@ASM@%$ASM%g
9024 s%@CPROF@%$CPROF%g
9025 s%@GPROF@%$GPROF%g
9026 s%@OPTIMS@%$OPTIMS%g
9027 s%@TUNING@%$TUNING%g
9028 s%@RELEASE@%$RELEASE%g
9029 s%@MOC@%$MOC%g
9030 s%@BCBUILDER@%$BCBUILDER%g
9031 s%@PACKAGE@%$PACKAGE%g
9032 s%@VERSION@%$VERSION%g
9033 s%@NEED_GETOPT@%$NEED_GETOPT%g
9034 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
9035 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
9036 s%@vlc_CFLAGS@%$vlc_CFLAGS%g
9037 s%@plugins_CFLAGS@%$plugins_CFLAGS%g
9038 s%@builtins_CFLAGS@%$builtins_CFLAGS%g
9039 s%@a52_CFLAGS@%$a52_CFLAGS%g
9040 s%@arts_CFLAGS@%$arts_CFLAGS%g
9041 s%@chroma_i420_yuy2_mmx_CFLAGS@%$chroma_i420_yuy2_mmx_CFLAGS%g
9042 s%@dvd_CFLAGS@%$dvd_CFLAGS%g
9043 s%@dvdread_CFLAGS@%$dvdread_CFLAGS%g
9044 s%@mpeg_ts_dvbpsi_CFLAGS@%$mpeg_ts_dvbpsi_CFLAGS%g
9045 s%@directx_CFLAGS@%$directx_CFLAGS%g
9046 s%@esd_CFLAGS@%$esd_CFLAGS%g
9047 s%@ffmpeg_CFLAGS@%$ffmpeg_CFLAGS%g
9048 s%@glide_CFLAGS@%$glide_CFLAGS%g
9049 s%@gnome_CFLAGS@%$gnome_CFLAGS%g
9050 s%@gtk_CFLAGS@%$gtk_CFLAGS%g
9051 s%@kde_CFLAGS@%$kde_CFLAGS%g
9052 s%@idctaltivec_CFLAGS@%$idctaltivec_CFLAGS%g
9053 s%@macosx_CFLAGS@%$macosx_CFLAGS%g
9054 s%@mad_CFLAGS@%$mad_CFLAGS%g
9055 s%@memcpyaltivec_CFLAGS@%$memcpyaltivec_CFLAGS%g
9056 s%@motionaltivec_CFLAGS@%$motionaltivec_CFLAGS%g
9057 s%@qt_CFLAGS@%$qt_CFLAGS%g
9058 s%@sdl_CFLAGS@%$sdl_CFLAGS%g
9059 s%@x11_CFLAGS@%$x11_CFLAGS%g
9060 s%@xvideo_CFLAGS@%$xvideo_CFLAGS%g
9061 s%@vlc_LDFLAGS@%$vlc_LDFLAGS%g
9062 s%@plugins_LDFLAGS@%$plugins_LDFLAGS%g
9063 s%@builtins_LDFLAGS@%$builtins_LDFLAGS%g
9064 s%@a52_LDFLAGS@%$a52_LDFLAGS%g
9065 s%@aa_LDFLAGS@%$aa_LDFLAGS%g
9066 s%@alsa_LDFLAGS@%$alsa_LDFLAGS%g
9067 s%@arts_LDFLAGS@%$arts_LDFLAGS%g
9068 s%@beos_LDFLAGS@%$beos_LDFLAGS%g
9069 s%@chroma_i420_rgb_LDFLAGS@%$chroma_i420_rgb_LDFLAGS%g
9070 s%@directx_LDFLAGS@%$directx_LDFLAGS%g
9071 s%@dsp_LDFLAGS@%$dsp_LDFLAGS%g
9072 s%@dvd_LDFLAGS@%$dvd_LDFLAGS%g
9073 s%@dvdread_LDFLAGS@%$dvdread_LDFLAGS%g
9074 s%@mpeg_ts_dvbpsi_LDFLAGS@%$mpeg_ts_dvbpsi_LDFLAGS%g
9075 s%@esd_LDFLAGS@%$esd_LDFLAGS%g
9076 s%@filter_distort_LDFLAGS@%$filter_distort_LDFLAGS%g
9077 s%@ffmpeg_LDFLAGS@%$ffmpeg_LDFLAGS%g
9078 s%@ggi_LDFLAGS@%$ggi_LDFLAGS%g
9079 s%@glide_LDFLAGS@%$glide_LDFLAGS%g
9080 s%@gnome_LDFLAGS@%$gnome_LDFLAGS%g
9081 s%@gtk_LDFLAGS@%$gtk_LDFLAGS%g
9082 s%@http_LDFLAGS@%$http_LDFLAGS%g
9083 s%@idctaltivec_LDFLAGS@%$idctaltivec_LDFLAGS%g
9084 s%@imdct_LDFLAGS@%$imdct_LDFLAGS%g
9085 s%@imdct3dn_LDFLAGS@%$imdct3dn_LDFLAGS%g
9086 s%@imdctsse_LDFLAGS@%$imdctsse_LDFLAGS%g
9087 s%@ipv4_LDFLAGS@%$ipv4_LDFLAGS%g
9088 s%@ipv6_LDFLAGS@%$ipv6_LDFLAGS%g
9089 s%@kde_LDFLAGS@%$kde_LDFLAGS%g
9090 s%@lirc_LDFLAGS@%$lirc_LDFLAGS%g
9091 s%@macosx_LDFLAGS@%$macosx_LDFLAGS%g
9092 s%@mad_LDFLAGS@%$mad_LDFLAGS%g
9093 s%@memcpyaltivec_LDFLAGS@%$memcpyaltivec_LDFLAGS%g
9094 s%@motionaltivec_LDFLAGS@%$motionaltivec_LDFLAGS%g
9095 s%@ncurses_LDFLAGS@%$ncurses_LDFLAGS%g
9096 s%@qnx_LDFLAGS@%$qnx_LDFLAGS%g
9097 s%@qt_LDFLAGS@%$qt_LDFLAGS%g
9098 s%@rc_LDFLAGS@%$rc_LDFLAGS%g
9099 s%@sdl_LDFLAGS@%$sdl_LDFLAGS%g
9100 s%@vcd_LDFLAGS@%$vcd_LDFLAGS%g
9101 s%@vorbis_LDFLAGS@%$vorbis_LDFLAGS%g
9102 s%@waveout_LDFLAGS@%$waveout_LDFLAGS%g
9103 s%@x11_LDFLAGS@%$x11_LDFLAGS%g
9104 s%@xvideo_LDFLAGS@%$xvideo_LDFLAGS%g
9105 s%@xosd_LDFLAGS@%$xosd_LDFLAGS%g
9106
9107 CEOF
9108 EOF
9109
9110 cat >> $CONFIG_STATUS <<\EOF
9111
9112 # Split the substitutions into bite-sized pieces for seds with
9113 # small command number limits, like on Digital OSF/1 and HP-UX.
9114 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9115 ac_file=1 # Number of current file.
9116 ac_beg=1 # First line for current file.
9117 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9118 ac_more_lines=:
9119 ac_sed_cmds=""
9120 while $ac_more_lines; do
9121   if test $ac_beg -gt 1; then
9122     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9123   else
9124     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9125   fi
9126   if test ! -s conftest.s$ac_file; then
9127     ac_more_lines=false
9128     rm -f conftest.s$ac_file
9129   else
9130     if test -z "$ac_sed_cmds"; then
9131       ac_sed_cmds="sed -f conftest.s$ac_file"
9132     else
9133       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9134     fi
9135     ac_file=`expr $ac_file + 1`
9136     ac_beg=$ac_end
9137     ac_end=`expr $ac_end + $ac_max_sed_cmds`
9138   fi
9139 done
9140 if test -z "$ac_sed_cmds"; then
9141   ac_sed_cmds=cat
9142 fi
9143 EOF
9144
9145 cat >> $CONFIG_STATUS <<EOF
9146
9147 CONFIG_FILES=\${CONFIG_FILES-"Makefile.config Makefile.opts po/Makefile.in"}
9148 EOF
9149 cat >> $CONFIG_STATUS <<\EOF
9150 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9151   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9152   case "$ac_file" in
9153   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9154        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9155   *) ac_file_in="${ac_file}.in" ;;
9156   esac
9157
9158   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9159
9160   # Remove last slash and all that follows it.  Not all systems have dirname.
9161   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9162   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9163     # The file is in a subdirectory.
9164     test ! -d "$ac_dir" && mkdir "$ac_dir"
9165     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9166     # A "../" for each directory in $ac_dir_suffix.
9167     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9168   else
9169     ac_dir_suffix= ac_dots=
9170   fi
9171
9172   case "$ac_given_srcdir" in
9173   .)  srcdir=.
9174       if test -z "$ac_dots"; then top_srcdir=.
9175       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9176   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9177   *) # Relative path.
9178     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9179     top_srcdir="$ac_dots$ac_given_srcdir" ;;
9180   esac
9181
9182   case "$ac_given_INSTALL" in
9183   [/$]*) INSTALL="$ac_given_INSTALL" ;;
9184   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9185   esac
9186
9187   echo creating "$ac_file"
9188   rm -f "$ac_file"
9189   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9190   case "$ac_file" in
9191   *Makefile*) ac_comsub="1i\\
9192 # $configure_input" ;;
9193   *) ac_comsub= ;;
9194   esac
9195
9196   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9197   sed -e "$ac_comsub
9198 s%@configure_input@%$configure_input%g
9199 s%@srcdir@%$srcdir%g
9200 s%@top_srcdir@%$top_srcdir%g
9201 s%@INSTALL@%$INSTALL%g
9202 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9203 fi; done
9204 rm -f conftest.s*
9205
9206 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9207 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9208 #
9209 # ac_d sets the value in "#define NAME VALUE" lines.
9210 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
9211 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
9212 ac_dC='\3'
9213 ac_dD='%g'
9214 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9215 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9216 ac_uB='\([      ]\)%\1#\2define\3'
9217 ac_uC=' '
9218 ac_uD='\4%g'
9219 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9220 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9221 ac_eB='$%\1#\2define\3'
9222 ac_eC=' '
9223 ac_eD='%g'
9224
9225 if test "${CONFIG_HEADERS+set}" != set; then
9226 EOF
9227 cat >> $CONFIG_STATUS <<EOF
9228   CONFIG_HEADERS="include/defs.h"
9229 EOF
9230 cat >> $CONFIG_STATUS <<\EOF
9231 fi
9232 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9233   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9234   case "$ac_file" in
9235   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9236        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9237   *) ac_file_in="${ac_file}.in" ;;
9238   esac
9239
9240   echo creating $ac_file
9241
9242   rm -f conftest.frag conftest.in conftest.out
9243   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9244   cat $ac_file_inputs > conftest.in
9245
9246 EOF
9247
9248 # Transform confdefs.h into a sed script conftest.vals that substitutes
9249 # the proper values into config.h.in to produce config.h.  And first:
9250 # Protect against being on the right side of a sed subst in config.status.
9251 # Protect against being in an unquoted here document in config.status.
9252 rm -f conftest.vals
9253 cat > conftest.hdr <<\EOF
9254 s/[\\&%]/\\&/g
9255 s%[\\$`]%\\&%g
9256 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9257 s%ac_d%ac_u%gp
9258 s%ac_u%ac_e%gp
9259 EOF
9260 sed -n -f conftest.hdr confdefs.h > conftest.vals
9261 rm -f conftest.hdr
9262
9263 # This sed command replaces #undef with comments.  This is necessary, for
9264 # example, in the case of _POSIX_SOURCE, which is predefined and required
9265 # on some systems where configure will not decide to define it.
9266 cat >> conftest.vals <<\EOF
9267 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9268 EOF
9269
9270 # Break up conftest.vals because some shells have a limit on
9271 # the size of here documents, and old seds have small limits too.
9272
9273 rm -f conftest.tail
9274 while :
9275 do
9276   ac_lines=`grep -c . conftest.vals`
9277   # grep -c gives empty output for an empty file on some AIX systems.
9278   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9279   # Write a limited-size here document to conftest.frag.
9280   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9281   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9282   echo 'CEOF
9283   sed -f conftest.frag conftest.in > conftest.out
9284   rm -f conftest.in
9285   mv conftest.out conftest.in
9286 ' >> $CONFIG_STATUS
9287   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9288   rm -f conftest.vals
9289   mv conftest.tail conftest.vals
9290 done
9291 rm -f conftest.vals
9292
9293 cat >> $CONFIG_STATUS <<\EOF
9294   rm -f conftest.frag conftest.h
9295   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
9296   cat conftest.in >> conftest.h
9297   rm -f conftest.in
9298   if cmp -s $ac_file conftest.h 2>/dev/null; then
9299     echo "$ac_file is unchanged"
9300     rm -f conftest.h
9301   else
9302     # Remove last slash and all that follows it.  Not all systems have dirname.
9303       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9304       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9305       # The file is in a subdirectory.
9306       test ! -d "$ac_dir" && mkdir "$ac_dir"
9307     fi
9308     rm -f $ac_file
9309     mv conftest.h $ac_file
9310   fi
9311 fi; done
9312
9313 EOF
9314 cat >> $CONFIG_STATUS <<EOF
9315
9316
9317 EOF
9318 cat >> $CONFIG_STATUS <<\EOF
9319 for ac_file in $CONFIG_FILES; do
9320         # Support "outfile[:infile[:infile...]]"
9321         case "$ac_file" in
9322           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9323         esac
9324         # PO directories have a Makefile.in generated from Makefile.in.in.
9325         case "$ac_file" in */Makefile.in)
9326           # Adjust a relative srcdir.
9327           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9328           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9329           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9330           # In autoconf-2.13 it is called $ac_given_srcdir.
9331           # In autoconf-2.50 it is called $srcdir.
9332           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9333           case "$ac_given_srcdir" in
9334             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9335             /*) top_srcdir="$ac_given_srcdir" ;;
9336             *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
9337           esac
9338           if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9339             rm -f "$ac_dir/POTFILES"
9340             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9341             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9342             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9343             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9344           fi
9345           ;;
9346         esac
9347       done
9348
9349 exit 0
9350 EOF
9351 chmod +x $CONFIG_STATUS
9352 rm -fr confdefs* $ac_clean_files
9353 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9354
9355
9356 echo "
9357 vlc configuration
9358 --------------------
9359 vlc version           : ${VERSION}
9360 system                : ${SYS}
9361 architecture          : ${ARCH}
9362 optimizations         : ${OPTIMS}
9363 tuning                : ${TUNING}
9364 debug mode            : ${DEBUG}
9365 release               : ${RELEASE}
9366 profiling             : ${PROFILING}
9367 need builtin getopt   : ${NEED_GETOPT}
9368 built-in modules      :${BUILTINS}
9369 plug-in modules       :${PLUGINS}
9370 vlc aliases           :${ALIASES}
9371
9372 You may now tune Makefile.opts at your convenience, for instance to choose
9373 which modules get compiled as plugins.
9374
9375 To build vlc and its plugins, type \`$VLC_MAKE'.
9376 "
9377