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