]> git.sesse.net Git - vlc/blob - configure
* ./plugins/aa: aalib output plugin courtesy of Sigmund Augdal.
[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;
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 } $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 char *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
1913 /* This mess was copied from the GNU getpagesize.h.  */
1914 #ifndef HAVE_GETPAGESIZE
1915 # ifdef HAVE_UNISTD_H
1916 #  include <unistd.h>
1917 # endif
1918
1919 /* Assume that all systems that can run configure have sys/param.h.  */
1920 # ifndef HAVE_SYS_PARAM_H
1921 #  define HAVE_SYS_PARAM_H 1
1922 # endif
1923
1924 # ifdef _SC_PAGESIZE
1925 #  define getpagesize() sysconf(_SC_PAGESIZE)
1926 # else /* no _SC_PAGESIZE */
1927 #  ifdef HAVE_SYS_PARAM_H
1928 #   include <sys/param.h>
1929 #   ifdef EXEC_PAGESIZE
1930 #    define getpagesize() EXEC_PAGESIZE
1931 #   else /* no EXEC_PAGESIZE */
1932 #    ifdef NBPG
1933 #     define getpagesize() NBPG * CLSIZE
1934 #     ifndef CLSIZE
1935 #      define CLSIZE 1
1936 #     endif /* no CLSIZE */
1937 #    else /* no NBPG */
1938 #     ifdef NBPC
1939 #      define getpagesize() NBPC
1940 #     else /* no NBPC */
1941 #      ifdef PAGESIZE
1942 #       define getpagesize() PAGESIZE
1943 #      endif /* PAGESIZE */
1944 #     endif /* no NBPC */
1945 #    endif /* no NBPG */
1946 #   endif /* no EXEC_PAGESIZE */
1947 #  else /* no HAVE_SYS_PARAM_H */
1948 #   define getpagesize() 8192   /* punt totally */
1949 #  endif /* no HAVE_SYS_PARAM_H */
1950 # endif /* no _SC_PAGESIZE */
1951
1952 #endif /* no HAVE_GETPAGESIZE */
1953
1954 #ifdef __cplusplus
1955 extern "C" { void *malloc(unsigned); }
1956 #else
1957 char *malloc();
1958 #endif
1959
1960 int
1961 main()
1962 {
1963         char *data, *data2, *data3;
1964         int i, pagesize;
1965         int fd;
1966
1967         pagesize = getpagesize();
1968
1969         /*
1970          * First, make a file with some known garbage in it.
1971          */
1972         data = malloc(pagesize);
1973         if (!data)
1974                 exit(1);
1975         for (i = 0; i < pagesize; ++i)
1976                 *(data + i) = rand();
1977         umask(0);
1978         fd = creat("conftestmmap", 0600);
1979         if (fd < 0)
1980                 exit(1);
1981         if (write(fd, data, pagesize) != pagesize)
1982                 exit(1);
1983         close(fd);
1984
1985         /*
1986          * Next, try to mmap the file at a fixed address which
1987          * already has something else allocated at it.  If we can,
1988          * also make sure that we see the same garbage.
1989          */
1990         fd = open("conftestmmap", O_RDWR);
1991         if (fd < 0)
1992                 exit(1);
1993         data2 = malloc(2 * pagesize);
1994         if (!data2)
1995                 exit(1);
1996         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
1997         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
1998             MAP_PRIVATE | MAP_FIXED, fd, 0L))
1999                 exit(1);
2000         for (i = 0; i < pagesize; ++i)
2001                 if (*(data + i) != *(data2 + i))
2002                         exit(1);
2003
2004         /*
2005          * Finally, make sure that changes to the mapped area
2006          * do not percolate back to the file as seen by read().
2007          * (This is a bug on some variants of i386 svr4.0.)
2008          */
2009         for (i = 0; i < pagesize; ++i)
2010                 *(data2 + i) = *(data2 + i) + 1;
2011         data3 = malloc(pagesize);
2012         if (!data3)
2013                 exit(1);
2014         if (read(fd, data3, pagesize) != pagesize)
2015                 exit(1);
2016         for (i = 0; i < pagesize; ++i)
2017                 if (*(data + i) != *(data3 + i))
2018                         exit(1);
2019         close(fd);
2020         unlink("conftestmmap");
2021         exit(0);
2022 }
2023
2024 EOF
2025 if { (eval echo configure:2026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2026 then
2027   ac_cv_func_mmap_fixed_mapped=yes
2028 else
2029   echo "configure: failed program was:" >&5
2030   cat conftest.$ac_ext >&5
2031   rm -fr conftest*
2032   ac_cv_func_mmap_fixed_mapped=no
2033 fi
2034 rm -fr conftest*
2035 fi
2036
2037 fi
2038
2039 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2040 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2041   cat >> confdefs.h <<\EOF
2042 #define HAVE_MMAP 1
2043 EOF
2044
2045 fi
2046
2047
2048     echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
2049 echo "configure:2050: checking whether we are using the GNU C Library 2.1 or newer" >&5
2050 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
2051   echo $ac_n "(cached) $ac_c" 1>&6
2052 else
2053   cat > conftest.$ac_ext <<EOF
2054 #line 2055 "configure"
2055 #include "confdefs.h"
2056
2057 #include <features.h>
2058 #ifdef __GNU_LIBRARY__
2059  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2060   Lucky GNU user
2061  #endif
2062 #endif
2063         
2064 EOF
2065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2066   egrep "Lucky GNU user" >/dev/null 2>&1; then
2067   rm -rf conftest*
2068   ac_cv_gnu_library_2_1=yes
2069 else
2070   rm -rf conftest*
2071   ac_cv_gnu_library_2_1=no
2072 fi
2073 rm -f conftest*
2074
2075       
2076     
2077 fi
2078
2079 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
2080     
2081     GLIBC21="$ac_cv_gnu_library_2_1"
2082   
2083
2084                                     
2085    for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
2086 stdlib.h string.h unistd.h sys/param.h
2087 do
2088 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2089 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2090 echo "configure:2091: checking for $ac_hdr" >&5
2091 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2092   echo $ac_n "(cached) $ac_c" 1>&6
2093 else
2094   cat > conftest.$ac_ext <<EOF
2095 #line 2096 "configure"
2096 #include "confdefs.h"
2097 #include <$ac_hdr>
2098 EOF
2099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2100 { (eval echo configure:2101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2102 if test -z "$ac_err"; then
2103   rm -rf conftest*
2104   eval "ac_cv_header_$ac_safe=yes"
2105 else
2106   echo "$ac_err" >&5
2107   echo "configure: failed program was:" >&5
2108   cat conftest.$ac_ext >&5
2109   rm -rf conftest*
2110   eval "ac_cv_header_$ac_safe=no"
2111 fi
2112 rm -f conftest*
2113 fi
2114 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2115   echo "$ac_t""yes" 1>&6
2116     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2117   cat >> confdefs.h <<EOF
2118 #define $ac_tr_hdr 1
2119 EOF
2120  
2121 else
2122   echo "$ac_t""no" 1>&6
2123 fi
2124 done
2125
2126    for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
2127 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
2128 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
2129 do
2130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2131 echo "configure:2132: checking for $ac_func" >&5
2132 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2133   echo $ac_n "(cached) $ac_c" 1>&6
2134 else
2135   cat > conftest.$ac_ext <<EOF
2136 #line 2137 "configure"
2137 #include "confdefs.h"
2138 /* System header to define __stub macros and hopefully few prototypes,
2139     which can conflict with char $ac_func(); below.  */
2140 #include <assert.h>
2141 /* Override any gcc2 internal prototype to avoid an error.  */
2142 /* We use char because int might match the return type of a gcc2
2143     builtin and then its argument prototype would still apply.  */
2144 char $ac_func();
2145
2146 int main() {
2147
2148 /* The GNU C library defines this for functions which it implements
2149     to always fail with ENOSYS.  Some functions are actually named
2150     something starting with __ and the normal name is an alias.  */
2151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2152 choke me
2153 #else
2154 $ac_func();
2155 #endif
2156
2157 ; return 0; }
2158 EOF
2159 if { (eval echo configure:2160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2160   rm -rf conftest*
2161   eval "ac_cv_func_$ac_func=yes"
2162 else
2163   echo "configure: failed program was:" >&5
2164   cat conftest.$ac_ext >&5
2165   rm -rf conftest*
2166   eval "ac_cv_func_$ac_func=no"
2167 fi
2168 rm -f conftest*
2169 fi
2170
2171 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2172   echo "$ac_t""yes" 1>&6
2173     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2174   cat >> confdefs.h <<EOF
2175 #define $ac_tr_func 1
2176 EOF
2177  
2178 else
2179   echo "$ac_t""no" 1>&6
2180 fi
2181 done
2182
2183
2184    
2185     
2186   # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
2187 if test "${with_libiconv_prefix+set}" = set; then
2188   withval="$with_libiconv_prefix"
2189   
2190     for dir in `echo "$withval" | tr : ' '`; do
2191       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
2192       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
2193     done
2194    
2195 fi
2196
2197
2198   echo $ac_n "checking for iconv""... $ac_c" 1>&6
2199 echo "configure:2200: checking for iconv" >&5
2200 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
2201   echo $ac_n "(cached) $ac_c" 1>&6
2202 else
2203   
2204     am_cv_func_iconv="no, consider installing GNU libiconv"
2205     am_cv_lib_iconv=no
2206     cat > conftest.$ac_ext <<EOF
2207 #line 2208 "configure"
2208 #include "confdefs.h"
2209 #include <stdlib.h>
2210 #include <iconv.h>
2211 int main() {
2212 iconv_t cd = iconv_open("","");
2213        iconv(cd,NULL,NULL,NULL,NULL);
2214        iconv_close(cd);
2215 ; return 0; }
2216 EOF
2217 if { (eval echo configure:2218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2218   rm -rf conftest*
2219   am_cv_func_iconv=yes
2220 else
2221   echo "configure: failed program was:" >&5
2222   cat conftest.$ac_ext >&5
2223 fi
2224 rm -f conftest*
2225     if test "$am_cv_func_iconv" != yes; then
2226       am_save_LIBS="$LIBS"
2227       LIBS="$LIBS -liconv"
2228       cat > conftest.$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2231 #include <stdlib.h>
2232 #include <iconv.h>
2233 int main() {
2234 iconv_t cd = iconv_open("","");
2235          iconv(cd,NULL,NULL,NULL,NULL);
2236          iconv_close(cd);
2237 ; return 0; }
2238 EOF
2239 if { (eval echo configure:2240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2240   rm -rf conftest*
2241   am_cv_lib_iconv=yes
2242         am_cv_func_iconv=yes
2243 else
2244   echo "configure: failed program was:" >&5
2245   cat conftest.$ac_ext >&5
2246 fi
2247 rm -f conftest*
2248       LIBS="$am_save_LIBS"
2249     fi
2250   
2251 fi
2252
2253 echo "$ac_t""$am_cv_func_iconv" 1>&6
2254   if test "$am_cv_func_iconv" = yes; then
2255     cat >> confdefs.h <<\EOF
2256 #define HAVE_ICONV 1
2257 EOF
2258
2259     echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
2260 echo "configure:2261: checking for iconv declaration" >&5
2261     if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
2262   echo $ac_n "(cached) $ac_c" 1>&6
2263 else
2264   
2265       cat > conftest.$ac_ext <<EOF
2266 #line 2267 "configure"
2267 #include "confdefs.h"
2268
2269 #include <stdlib.h>
2270 #include <iconv.h>
2271 extern
2272 #ifdef __cplusplus
2273 "C"
2274 #endif
2275 #if defined(__STDC__) || defined(__cplusplus)
2276 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
2277 #else
2278 size_t iconv();
2279 #endif
2280
2281 int main() {
2282
2283 ; return 0; }
2284 EOF
2285 if { (eval echo configure:2286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2286   rm -rf conftest*
2287   am_cv_proto_iconv_arg1=""
2288 else
2289   echo "configure: failed program was:" >&5
2290   cat conftest.$ac_ext >&5
2291   rm -rf conftest*
2292   am_cv_proto_iconv_arg1="const"
2293 fi
2294 rm -f conftest*
2295       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);"
2296 fi
2297
2298     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
2299     echo "$ac_t""${ac_t:-
2300          }$am_cv_proto_iconv" 1>&6
2301     cat >> confdefs.h <<EOF
2302 #define ICONV_CONST $am_cv_proto_iconv_arg1
2303 EOF
2304
2305   fi
2306   LIBICONV=
2307   if test "$am_cv_lib_iconv" = yes; then
2308     LIBICONV="-liconv"
2309   fi
2310   
2311
2312    
2313   echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
2314 echo "configure:2315: checking for nl_langinfo and CODESET" >&5
2315 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
2316   echo $ac_n "(cached) $ac_c" 1>&6
2317 else
2318   cat > conftest.$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2321 #include <langinfo.h>
2322 int main() {
2323 char* cs = nl_langinfo(CODESET);
2324 ; return 0; }
2325 EOF
2326 if { (eval echo configure:2327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2327   rm -rf conftest*
2328   am_cv_langinfo_codeset=yes
2329 else
2330   echo "configure: failed program was:" >&5
2331   cat conftest.$ac_ext >&5
2332   rm -rf conftest*
2333   am_cv_langinfo_codeset=no
2334 fi
2335 rm -f conftest*
2336     
2337 fi
2338
2339 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
2340   if test $am_cv_langinfo_codeset = yes; then
2341     cat >> confdefs.h <<\EOF
2342 #define HAVE_LANGINFO_CODESET 1
2343 EOF
2344
2345   fi
2346
2347    if test $ac_cv_header_locale_h = yes; then
2348     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2349 echo "configure:2350: checking for LC_MESSAGES" >&5
2350 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2351   echo $ac_n "(cached) $ac_c" 1>&6
2352 else
2353   cat > conftest.$ac_ext <<EOF
2354 #line 2355 "configure"
2355 #include "confdefs.h"
2356 #include <locale.h>
2357 int main() {
2358 return LC_MESSAGES
2359 ; return 0; }
2360 EOF
2361 if { (eval echo configure:2362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2362   rm -rf conftest*
2363   am_cv_val_LC_MESSAGES=yes
2364 else
2365   echo "configure: failed program was:" >&5
2366   cat conftest.$ac_ext >&5
2367   rm -rf conftest*
2368   am_cv_val_LC_MESSAGES=no
2369 fi
2370 rm -f conftest*
2371 fi
2372
2373 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2374     if test $am_cv_val_LC_MESSAGES = yes; then
2375       cat >> confdefs.h <<\EOF
2376 #define HAVE_LC_MESSAGES 1
2377 EOF
2378
2379     fi
2380   fi
2381    echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2382 echo "configure:2383: checking whether NLS is requested" >&5
2383         # Check whether --enable-nls or --disable-nls was given.
2384 if test "${enable_nls+set}" = set; then
2385   enableval="$enable_nls"
2386   USE_NLS=$enableval
2387 else
2388   USE_NLS=yes
2389 fi
2390
2391     echo "$ac_t""$USE_NLS" 1>&6
2392     
2393
2394     BUILD_INCLUDED_LIBINTL=no
2395     USE_INCLUDED_LIBINTL=no
2396     INTLLIBS=
2397
2398         if test "$USE_NLS" = "yes"; then
2399       cat >> confdefs.h <<\EOF
2400 #define ENABLE_NLS 1
2401 EOF
2402
2403       echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2404 echo "configure:2405: checking whether included gettext is requested" >&5
2405       # Check whether --with-included-gettext or --without-included-gettext was given.
2406 if test "${with_included_gettext+set}" = set; then
2407   withval="$with_included_gettext"
2408   nls_cv_force_use_gnu_gettext=$withval
2409 else
2410   nls_cv_force_use_gnu_gettext=no
2411 fi
2412
2413       echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2414
2415       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2416       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2417                                 CATOBJEXT=NONE
2418
2419                 
2420         
2421
2422         ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2423 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2424 echo "configure:2425: checking for libintl.h" >&5
2425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2426   echo $ac_n "(cached) $ac_c" 1>&6
2427 else
2428   cat > conftest.$ac_ext <<EOF
2429 #line 2430 "configure"
2430 #include "confdefs.h"
2431 #include <libintl.h>
2432 EOF
2433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2434 { (eval echo configure:2435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2436 if test -z "$ac_err"; then
2437   rm -rf conftest*
2438   eval "ac_cv_header_$ac_safe=yes"
2439 else
2440   echo "$ac_err" >&5
2441   echo "configure: failed program was:" >&5
2442   cat conftest.$ac_ext >&5
2443   rm -rf conftest*
2444   eval "ac_cv_header_$ac_safe=no"
2445 fi
2446 rm -f conftest*
2447 fi
2448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2449   echo "$ac_t""yes" 1>&6
2450   echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
2451 echo "configure:2452: checking for GNU gettext in libc" >&5
2452 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
2453   echo $ac_n "(cached) $ac_c" 1>&6
2454 else
2455   cat > conftest.$ac_ext <<EOF
2456 #line 2457 "configure"
2457 #include "confdefs.h"
2458 #include <libintl.h>
2459 extern int _nl_msg_cat_cntr;
2460 int main() {
2461 bindtextdomain ("", "");
2462 return (int) gettext ("") + _nl_msg_cat_cntr
2463 ; return 0; }
2464 EOF
2465 if { (eval echo configure:2466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2466   rm -rf conftest*
2467   gt_cv_func_gnugettext1_libc=yes
2468 else
2469   echo "configure: failed program was:" >&5
2470   cat conftest.$ac_ext >&5
2471   rm -rf conftest*
2472   gt_cv_func_gnugettext1_libc=no
2473 fi
2474 rm -f conftest*
2475 fi
2476
2477 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
2478
2479            if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
2480              echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
2481 echo "configure:2482: checking for GNU gettext in libintl" >&5
2482 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
2483   echo $ac_n "(cached) $ac_c" 1>&6
2484 else
2485   gt_save_LIBS="$LIBS"
2486                 LIBS="$LIBS -lintl $LIBICONV"
2487                 cat > conftest.$ac_ext <<EOF
2488 #line 2489 "configure"
2489 #include "confdefs.h"
2490 #include <libintl.h>
2491 extern int _nl_msg_cat_cntr;
2492 int main() {
2493 bindtextdomain ("", "");
2494 return (int) gettext ("") + _nl_msg_cat_cntr
2495 ; return 0; }
2496 EOF
2497 if { (eval echo configure:2498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2498   rm -rf conftest*
2499   gt_cv_func_gnugettext1_libintl=yes
2500 else
2501   echo "configure: failed program was:" >&5
2502   cat conftest.$ac_ext >&5
2503   rm -rf conftest*
2504   gt_cv_func_gnugettext1_libintl=no
2505 fi
2506 rm -f conftest*
2507                 LIBS="$gt_save_LIBS"
2508 fi
2509
2510 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
2511            fi
2512
2513                                            if test "$gt_cv_func_gnugettext1_libc" = "yes" \
2514               || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
2515                    && test "$PACKAGE" != gettext; }; then
2516              cat >> confdefs.h <<\EOF
2517 #define HAVE_GETTEXT 1
2518 EOF
2519
2520
2521              if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
2522                                        INTLLIBS="-lintl $LIBICONV"
2523              fi
2524
2525              gt_save_LIBS="$LIBS"
2526              LIBS="$LIBS $INTLLIBS"
2527              for ac_func in dcgettext
2528 do
2529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2530 echo "configure:2531: checking for $ac_func" >&5
2531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2532   echo $ac_n "(cached) $ac_c" 1>&6
2533 else
2534   cat > conftest.$ac_ext <<EOF
2535 #line 2536 "configure"
2536 #include "confdefs.h"
2537 /* System header to define __stub macros and hopefully few prototypes,
2538     which can conflict with char $ac_func(); below.  */
2539 #include <assert.h>
2540 /* Override any gcc2 internal prototype to avoid an error.  */
2541 /* We use char because int might match the return type of a gcc2
2542     builtin and then its argument prototype would still apply.  */
2543 char $ac_func();
2544
2545 int main() {
2546
2547 /* The GNU C library defines this for functions which it implements
2548     to always fail with ENOSYS.  Some functions are actually named
2549     something starting with __ and the normal name is an alias.  */
2550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2551 choke me
2552 #else
2553 $ac_func();
2554 #endif
2555
2556 ; return 0; }
2557 EOF
2558 if { (eval echo configure:2559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2559   rm -rf conftest*
2560   eval "ac_cv_func_$ac_func=yes"
2561 else
2562   echo "configure: failed program was:" >&5
2563   cat conftest.$ac_ext >&5
2564   rm -rf conftest*
2565   eval "ac_cv_func_$ac_func=no"
2566 fi
2567 rm -f conftest*
2568 fi
2569
2570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2571   echo "$ac_t""yes" 1>&6
2572     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2573   cat >> confdefs.h <<EOF
2574 #define $ac_tr_func 1
2575 EOF
2576  
2577 else
2578   echo "$ac_t""no" 1>&6
2579 fi
2580 done
2581
2582              LIBS="$gt_save_LIBS"
2583
2584                      # Extract the first word of "msgfmt", so it can be a program name with args.
2585 set dummy msgfmt; ac_word=$2
2586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2587 echo "configure:2588: checking for $ac_word" >&5
2588 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2589   echo $ac_n "(cached) $ac_c" 1>&6
2590 else
2591   case "$MSGFMT" in
2592   /*)
2593   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2594   ;;
2595   *)
2596   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2597   for ac_dir in $PATH; do
2598     test -z "$ac_dir" && ac_dir=.
2599     if test -f $ac_dir/$ac_word; then
2600       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2601         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2602         break
2603       fi
2604     fi
2605   done
2606   IFS="$ac_save_ifs"
2607   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2608   ;;
2609 esac
2610 fi
2611 MSGFMT="$ac_cv_path_MSGFMT"
2612 if test "$MSGFMT" != ":"; then
2613   echo "$ac_t""$MSGFMT" 1>&6
2614 else
2615   echo "$ac_t""no" 1>&6
2616 fi
2617
2618              # Extract the first word of "gmsgfmt", so it can be a program name with args.
2619 set dummy gmsgfmt; ac_word=$2
2620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2621 echo "configure:2622: checking for $ac_word" >&5
2622 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2623   echo $ac_n "(cached) $ac_c" 1>&6
2624 else
2625   case "$GMSGFMT" in
2626   /*)
2627   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2628   ;;
2629   ?:/*)                  
2630   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2631   ;;
2632   *)
2633   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2634   ac_dummy="$PATH"
2635   for ac_dir in $ac_dummy; do 
2636     test -z "$ac_dir" && ac_dir=.
2637     if test -f $ac_dir/$ac_word; then
2638       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2639       break
2640     fi
2641   done
2642   IFS="$ac_save_ifs"
2643   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2644   ;;
2645 esac
2646 fi
2647 GMSGFMT="$ac_cv_path_GMSGFMT"
2648 if test -n "$GMSGFMT"; then
2649   echo "$ac_t""$GMSGFMT" 1>&6
2650 else
2651   echo "$ac_t""no" 1>&6
2652 fi
2653
2654
2655                      # Extract the first word of "xgettext", so it can be a program name with args.
2656 set dummy xgettext; ac_word=$2
2657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2658 echo "configure:2659: checking for $ac_word" >&5
2659 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2660   echo $ac_n "(cached) $ac_c" 1>&6
2661 else
2662   case "$XGETTEXT" in
2663   /*)
2664   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2665   ;;
2666   *)
2667   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2668   for ac_dir in $PATH; do
2669     test -z "$ac_dir" && ac_dir=.
2670     if test -f $ac_dir/$ac_word; then
2671       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2672         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2673         break
2674       fi
2675     fi
2676   done
2677   IFS="$ac_save_ifs"
2678   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2679   ;;
2680 esac
2681 fi
2682 XGETTEXT="$ac_cv_path_XGETTEXT"
2683 if test "$XGETTEXT" != ":"; then
2684   echo "$ac_t""$XGETTEXT" 1>&6
2685 else
2686   echo "$ac_t""no" 1>&6
2687 fi
2688
2689
2690              CATOBJEXT=.gmo
2691            fi
2692         
2693 else
2694   echo "$ac_t""no" 1>&6
2695 fi
2696
2697
2698         if test "$CATOBJEXT" = "NONE"; then
2699                           nls_cv_use_gnu_gettext=yes
2700         fi
2701       fi
2702
2703       if test "$nls_cv_use_gnu_gettext" = "yes"; then
2704                 INTLOBJS="\$(GETTOBJS)"
2705         # Extract the first word of "msgfmt", so it can be a program name with args.
2706 set dummy msgfmt; ac_word=$2
2707 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2708 echo "configure:2709: checking for $ac_word" >&5
2709 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2710   echo $ac_n "(cached) $ac_c" 1>&6
2711 else
2712   case "$MSGFMT" in
2713   /*)
2714   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2715   ;;
2716   *)
2717   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2718   for ac_dir in $PATH; do
2719     test -z "$ac_dir" && ac_dir=.
2720     if test -f $ac_dir/$ac_word; then
2721       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
2722         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2723         break
2724       fi
2725     fi
2726   done
2727   IFS="$ac_save_ifs"
2728   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2729   ;;
2730 esac
2731 fi
2732 MSGFMT="$ac_cv_path_MSGFMT"
2733 if test "$MSGFMT" != ":"; then
2734   echo "$ac_t""$MSGFMT" 1>&6
2735 else
2736   echo "$ac_t""no" 1>&6
2737 fi
2738
2739         # Extract the first word of "gmsgfmt", so it can be a program name with args.
2740 set dummy gmsgfmt; ac_word=$2
2741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2742 echo "configure:2743: checking for $ac_word" >&5
2743 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2744   echo $ac_n "(cached) $ac_c" 1>&6
2745 else
2746   case "$GMSGFMT" in
2747   /*)
2748   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2749   ;;
2750   ?:/*)                  
2751   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2752   ;;
2753   *)
2754   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2755   ac_dummy="$PATH"
2756   for ac_dir in $ac_dummy; do 
2757     test -z "$ac_dir" && ac_dir=.
2758     if test -f $ac_dir/$ac_word; then
2759       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2760       break
2761     fi
2762   done
2763   IFS="$ac_save_ifs"
2764   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2765   ;;
2766 esac
2767 fi
2768 GMSGFMT="$ac_cv_path_GMSGFMT"
2769 if test -n "$GMSGFMT"; then
2770   echo "$ac_t""$GMSGFMT" 1>&6
2771 else
2772   echo "$ac_t""no" 1>&6
2773 fi
2774
2775         # Extract the first word of "xgettext", so it can be a program name with args.
2776 set dummy xgettext; ac_word=$2
2777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2778 echo "configure:2779: checking for $ac_word" >&5
2779 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2780   echo $ac_n "(cached) $ac_c" 1>&6
2781 else
2782   case "$XGETTEXT" in
2783   /*)
2784   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2785   ;;
2786   *)
2787   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2788   for ac_dir in $PATH; do
2789     test -z "$ac_dir" && ac_dir=.
2790     if test -f $ac_dir/$ac_word; then
2791       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
2792         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2793         break
2794       fi
2795     fi
2796   done
2797   IFS="$ac_save_ifs"
2798   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2799   ;;
2800 esac
2801 fi
2802 XGETTEXT="$ac_cv_path_XGETTEXT"
2803 if test "$XGETTEXT" != ":"; then
2804   echo "$ac_t""$XGETTEXT" 1>&6
2805 else
2806   echo "$ac_t""no" 1>&6
2807 fi
2808
2809         
2810         BUILD_INCLUDED_LIBINTL=yes
2811         USE_INCLUDED_LIBINTL=yes
2812         CATOBJEXT=.gmo
2813         INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
2814         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
2815       fi
2816
2817                   if test "$GMSGFMT" != ":"; then
2818                         if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
2819           : ;
2820         else
2821           echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
2822           GMSGFMT=":"
2823         fi
2824       fi
2825
2826                   if test "$XGETTEXT" != ":"; then
2827                         if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
2828           : ;
2829         else
2830           echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
2831           XGETTEXT=":"
2832         fi
2833       fi
2834
2835             POSUB=po
2836     fi
2837     
2838
2839
2840             if test "$PACKAGE" = gettext; then
2841       BUILD_INCLUDED_LIBINTL=yes
2842     fi
2843
2844                                             for ac_prog in bison
2845 do
2846 # Extract the first word of "$ac_prog", so it can be a program name with args.
2847 set dummy $ac_prog; ac_word=$2
2848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2849 echo "configure:2850: checking for $ac_word" >&5
2850 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
2851   echo $ac_n "(cached) $ac_c" 1>&6
2852 else
2853   if test -n "$INTLBISON"; then
2854   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
2855 else
2856   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2857   ac_dummy="$PATH"
2858   for ac_dir in $ac_dummy; do
2859     test -z "$ac_dir" && ac_dir=.
2860     if test -f $ac_dir/$ac_word; then
2861       ac_cv_prog_INTLBISON="$ac_prog"
2862       break
2863     fi
2864   done
2865   IFS="$ac_save_ifs"
2866 fi
2867 fi
2868 INTLBISON="$ac_cv_prog_INTLBISON"
2869 if test -n "$INTLBISON"; then
2870   echo "$ac_t""$INTLBISON" 1>&6
2871 else
2872   echo "$ac_t""no" 1>&6
2873 fi
2874
2875 test -n "$INTLBISON" && break
2876 done
2877
2878     if test -z "$INTLBISON"; then
2879       ac_verc_fail=yes
2880     else
2881             echo $ac_n "checking version of bison""... $ac_c" 1>&6
2882 echo "configure:2883: checking version of bison" >&5
2883       ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
2884       case $ac_prog_version in
2885         '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2886         1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
2887            ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
2888         *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
2889       esac
2890       echo "$ac_t""$ac_prog_version" 1>&6
2891     fi
2892     if test $ac_verc_fail = yes; then
2893       INTLBISON=:
2894     fi
2895
2896                 for lang in $ALL_LINGUAS; do
2897       GMOFILES="$GMOFILES $lang.gmo"
2898       POFILES="$POFILES $lang.po"
2899     done
2900
2901         
2902     
2903     
2904     
2905     
2906     
2907     
2908     
2909     
2910
2911         nls_cv_header_intl=
2912     nls_cv_header_libgt=
2913
2914         DATADIRNAME=share
2915     
2916
2917         INSTOBJEXT=.mo
2918     
2919
2920         GENCAT=gencat
2921     
2922   
2923
2924    if test "x$CATOBJEXT" != "x"; then
2925      if test "x$ALL_LINGUAS" = "x"; then
2926        LINGUAS=
2927      else
2928        echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
2929 echo "configure:2930: checking for catalogs to be installed" >&5
2930        NEW_LINGUAS=
2931        for presentlang in $ALL_LINGUAS; do
2932          useit=no
2933          for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
2934            # Use the presentlang catalog if desiredlang is
2935            #   a. equal to presentlang, or
2936            #   b. a variant of presentlang (because in this case,
2937            #      presentlang can be used as a fallback for messages
2938            #      which are not translated in the desiredlang catalog).
2939            case "$desiredlang" in
2940              "$presentlang"*) useit=yes;;
2941            esac
2942          done
2943          if test $useit = yes; then
2944            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
2945          fi
2946        done
2947        LINGUAS=$NEW_LINGUAS
2948        echo "$ac_t""$LINGUAS" 1>&6
2949      fi
2950
2951           if test -n "$LINGUAS"; then
2952        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
2953      fi
2954    fi
2955
2956             MKINSTALLDIRS=
2957    if test -n "$ac_aux_dir"; then
2958      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2959    fi
2960    if test -z "$MKINSTALLDIRS"; then
2961      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2962    fi
2963    
2964
2965       INTL_LIBTOOL_SUFFIX_PREFIX=
2966    
2967   
2968
2969 # Find a good install program.  We prefer a C program (faster),
2970 # so one script is as good as another.  But avoid the broken or
2971 # incompatible versions:
2972 # SysV /etc/install, /usr/sbin/install
2973 # SunOS /usr/etc/install
2974 # IRIX /sbin/install
2975 # AIX /bin/install
2976 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2977 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2978 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2979 # ./install, which can be erroneously created by make from ./install.sh.
2980 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2981 echo "configure:2982: checking for a BSD compatible install" >&5
2982 if test -z "$INSTALL"; then
2983 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2984   echo $ac_n "(cached) $ac_c" 1>&6
2985 else
2986     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
2987   for ac_dir in $PATH; do
2988     # Account for people who put trailing slashes in PATH elements.
2989     case "$ac_dir/" in
2990     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2991     *)
2992       # OSF1 and SCO ODT 3.0 have their own names for install.
2993       # Don't use installbsd from OSF since it installs stuff as root
2994       # by default.
2995       for ac_prog in ginstall scoinst install; do
2996         if test -f $ac_dir/$ac_prog; then
2997           if test $ac_prog = install &&
2998             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2999             # AIX install.  It has an incompatible calling convention.
3000             :
3001           else
3002             ac_cv_path_install="$ac_dir/$ac_prog -c"
3003             break 2
3004           fi
3005         fi
3006       done
3007       ;;
3008     esac
3009   done
3010   IFS="$ac_save_IFS"
3011
3012 fi
3013   if test "${ac_cv_path_install+set}" = set; then
3014     INSTALL="$ac_cv_path_install"
3015   else
3016     # As a last resort, use the slow shell script.  We don't cache a
3017     # path for INSTALL within a source directory, because that will
3018     # break other packages using the cache if that directory is
3019     # removed, or if the path is relative.
3020     INSTALL="$ac_install_sh"
3021   fi
3022 fi
3023 echo "$ac_t""$INSTALL" 1>&6
3024
3025 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3026 # It thinks the first close brace ends the variable substitution.
3027 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3028
3029 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3030
3031 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3032
3033
3034 case x"${target_os}" in
3035   x)
3036     SYS=unknown
3037     ;;
3038   xlinux*)
3039     SYS=linux
3040     ;;
3041   xbsdi*)
3042     SYS=bsdi
3043     ;;
3044   xdarwin*)
3045     SYS=darwin
3046     ;;
3047   x*mingw32*)
3048     SYS=mingw32
3049     # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3050 set dummy ${ac_tool_prefix}windres; ac_word=$2
3051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3052 echo "configure:3053: checking for $ac_word" >&5
3053 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3054   echo $ac_n "(cached) $ac_c" 1>&6
3055 else
3056   if test -n "$WINDRES"; then
3057   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3058 else
3059   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3060   ac_dummy="$PATH"
3061   for ac_dir in $ac_dummy; do
3062     test -z "$ac_dir" && ac_dir=.
3063     if test -f $ac_dir/$ac_word; then
3064       ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3065       break
3066     fi
3067   done
3068   IFS="$ac_save_ifs"
3069 fi
3070 fi
3071 WINDRES="$ac_cv_prog_WINDRES"
3072 if test -n "$WINDRES"; then
3073   echo "$ac_t""$WINDRES" 1>&6
3074 else
3075   echo "$ac_t""no" 1>&6
3076 fi
3077
3078
3079 if test -z "$ac_cv_prog_WINDRES"; then
3080 if test -n "$ac_tool_prefix"; then
3081   # Extract the first word of "windres", so it can be a program name with args.
3082 set dummy windres; ac_word=$2
3083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3084 echo "configure:3085: checking for $ac_word" >&5
3085 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3086   echo $ac_n "(cached) $ac_c" 1>&6
3087 else
3088   if test -n "$WINDRES"; then
3089   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3090 else
3091   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3092   ac_dummy="$PATH"
3093   for ac_dir in $ac_dummy; do
3094     test -z "$ac_dir" && ac_dir=.
3095     if test -f $ac_dir/$ac_word; then
3096       ac_cv_prog_WINDRES="windres"
3097       break
3098     fi
3099   done
3100   IFS="$ac_save_ifs"
3101   test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3102 fi
3103 fi
3104 WINDRES="$ac_cv_prog_WINDRES"
3105 if test -n "$WINDRES"; then
3106   echo "$ac_t""$WINDRES" 1>&6
3107 else
3108   echo "$ac_t""no" 1>&6
3109 fi
3110
3111 else
3112   WINDRES=":"
3113 fi
3114 fi
3115
3116     LIB_IPV4="${LIB_IPV4} -lws2_32"
3117     LIB_RC="${LIB_RC} -lws2_32"
3118     ;;
3119   x*nto*)
3120     SYS=nto
3121     LIB_X11="${LIB_X11} -lsocket"
3122     LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
3123     ;;
3124   xbeos)
3125     SYS=beos
3126     LIB_IPV4="${LIB_IPV4} -lbind"
3127     LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
3128     PLDFLAGS="${PLDFLAGS} -nostart"
3129     ;;
3130   x*)
3131     SYS=${target_os}
3132     ;;
3133 esac
3134
3135 for ac_func in gettimeofday select strerror strtod strtol isatty
3136 do
3137 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3138 echo "configure:3139: checking for $ac_func" >&5
3139 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3140   echo $ac_n "(cached) $ac_c" 1>&6
3141 else
3142   cat > conftest.$ac_ext <<EOF
3143 #line 3144 "configure"
3144 #include "confdefs.h"
3145 /* System header to define __stub macros and hopefully few prototypes,
3146     which can conflict with char $ac_func(); below.  */
3147 #include <assert.h>
3148 /* Override any gcc2 internal prototype to avoid an error.  */
3149 /* We use char because int might match the return type of a gcc2
3150     builtin and then its argument prototype would still apply.  */
3151 char $ac_func();
3152
3153 int main() {
3154
3155 /* The GNU C library defines this for functions which it implements
3156     to always fail with ENOSYS.  Some functions are actually named
3157     something starting with __ and the normal name is an alias.  */
3158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3159 choke me
3160 #else
3161 $ac_func();
3162 #endif
3163
3164 ; return 0; }
3165 EOF
3166 if { (eval echo configure:3167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3167   rm -rf conftest*
3168   eval "ac_cv_func_$ac_func=yes"
3169 else
3170   echo "configure: failed program was:" >&5
3171   cat conftest.$ac_ext >&5
3172   rm -rf conftest*
3173   eval "ac_cv_func_$ac_func=no"
3174 fi
3175 rm -f conftest*
3176 fi
3177
3178 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3179   echo "$ac_t""yes" 1>&6
3180     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3181   cat >> confdefs.h <<EOF
3182 #define $ac_tr_func 1
3183 EOF
3184  
3185 else
3186   echo "$ac_t""no" 1>&6
3187 fi
3188 done
3189
3190 echo $ac_n "checking for connect""... $ac_c" 1>&6
3191 echo "configure:3192: checking for connect" >&5
3192 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3193   echo $ac_n "(cached) $ac_c" 1>&6
3194 else
3195   cat > conftest.$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3198 /* System header to define __stub macros and hopefully few prototypes,
3199     which can conflict with char connect(); below.  */
3200 #include <assert.h>
3201 /* Override any gcc2 internal prototype to avoid an error.  */
3202 /* We use char because int might match the return type of a gcc2
3203     builtin and then its argument prototype would still apply.  */
3204 char connect();
3205
3206 int main() {
3207
3208 /* The GNU C library defines this for functions which it implements
3209     to always fail with ENOSYS.  Some functions are actually named
3210     something starting with __ and the normal name is an alias.  */
3211 #if defined (__stub_connect) || defined (__stub___connect)
3212 choke me
3213 #else
3214 connect();
3215 #endif
3216
3217 ; return 0; }
3218 EOF
3219 if { (eval echo configure:3220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3220   rm -rf conftest*
3221   eval "ac_cv_func_connect=yes"
3222 else
3223   echo "configure: failed program was:" >&5
3224   cat conftest.$ac_ext >&5
3225   rm -rf conftest*
3226   eval "ac_cv_func_connect=no"
3227 fi
3228 rm -f conftest*
3229 fi
3230
3231 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3232   echo "$ac_t""yes" 1>&6
3233   :
3234 else
3235   echo "$ac_t""no" 1>&6
3236
3237   echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3238 echo "configure:3239: checking for connect in -lsocket" >&5
3239 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3241   echo $ac_n "(cached) $ac_c" 1>&6
3242 else
3243   ac_save_LIBS="$LIBS"
3244 LIBS="-lsocket  $LIBS"
3245 cat > conftest.$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3248 /* Override any gcc2 internal prototype to avoid an error.  */
3249 /* We use char because int might match the return type of a gcc2
3250     builtin and then its argument prototype would still apply.  */
3251 char connect();
3252
3253 int main() {
3254 connect()
3255 ; return 0; }
3256 EOF
3257 if { (eval echo configure:3258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3258   rm -rf conftest*
3259   eval "ac_cv_lib_$ac_lib_var=yes"
3260 else
3261   echo "configure: failed program was:" >&5
3262   cat conftest.$ac_ext >&5
3263   rm -rf conftest*
3264   eval "ac_cv_lib_$ac_lib_var=no"
3265 fi
3266 rm -f conftest*
3267 LIBS="$ac_save_LIBS"
3268
3269 fi
3270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3271   echo "$ac_t""yes" 1>&6
3272   LIB_IPV4="${LIB_IPV4} -lsocket"
3273     LIB_VLC="${LIB_VLC} -lsocket"
3274
3275 else
3276   echo "$ac_t""no" 1>&6
3277 fi
3278
3279 fi
3280
3281 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3282 echo "configure:3283: checking for gethostbyname" >&5
3283 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3284   echo $ac_n "(cached) $ac_c" 1>&6
3285 else
3286   cat > conftest.$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3289 /* System header to define __stub macros and hopefully few prototypes,
3290     which can conflict with char gethostbyname(); below.  */
3291 #include <assert.h>
3292 /* Override any gcc2 internal prototype to avoid an error.  */
3293 /* We use char because int might match the return type of a gcc2
3294     builtin and then its argument prototype would still apply.  */
3295 char gethostbyname();
3296
3297 int main() {
3298
3299 /* The GNU C library defines this for functions which it implements
3300     to always fail with ENOSYS.  Some functions are actually named
3301     something starting with __ and the normal name is an alias.  */
3302 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3303 choke me
3304 #else
3305 gethostbyname();
3306 #endif
3307
3308 ; return 0; }
3309 EOF
3310 if { (eval echo configure:3311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3311   rm -rf conftest*
3312   eval "ac_cv_func_gethostbyname=yes"
3313 else
3314   echo "configure: failed program was:" >&5
3315   cat conftest.$ac_ext >&5
3316   rm -rf conftest*
3317   eval "ac_cv_func_gethostbyname=no"
3318 fi
3319 rm -f conftest*
3320 fi
3321
3322 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3323   echo "$ac_t""yes" 1>&6
3324   :
3325 else
3326   echo "$ac_t""no" 1>&6
3327
3328   echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3329 echo "configure:3330: checking for gethostbyname in -lnsl" >&5
3330 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3331 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3332   echo $ac_n "(cached) $ac_c" 1>&6
3333 else
3334   ac_save_LIBS="$LIBS"
3335 LIBS="-lnsl  $LIBS"
3336 cat > conftest.$ac_ext <<EOF
3337 #line 3338 "configure"
3338 #include "confdefs.h"
3339 /* Override any gcc2 internal prototype to avoid an error.  */
3340 /* We use char because int might match the return type of a gcc2
3341     builtin and then its argument prototype would still apply.  */
3342 char gethostbyname();
3343
3344 int main() {
3345 gethostbyname()
3346 ; return 0; }
3347 EOF
3348 if { (eval echo configure:3349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3349   rm -rf conftest*
3350   eval "ac_cv_lib_$ac_lib_var=yes"
3351 else
3352   echo "configure: failed program was:" >&5
3353   cat conftest.$ac_ext >&5
3354   rm -rf conftest*
3355   eval "ac_cv_lib_$ac_lib_var=no"
3356 fi
3357 rm -f conftest*
3358 LIBS="$ac_save_LIBS"
3359
3360 fi
3361 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3362   echo "$ac_t""yes" 1>&6
3363   LIB_IPV4="${LIB_IPV4} -lnsl"
3364 else
3365   echo "$ac_t""no" 1>&6
3366 fi
3367
3368
3369 fi
3370
3371 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3372 echo "configure:3373: checking for gethostbyname" >&5
3373 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3374   echo $ac_n "(cached) $ac_c" 1>&6
3375 else
3376   cat > conftest.$ac_ext <<EOF
3377 #line 3378 "configure"
3378 #include "confdefs.h"
3379 /* System header to define __stub macros and hopefully few prototypes,
3380     which can conflict with char gethostbyname(); below.  */
3381 #include <assert.h>
3382 /* Override any gcc2 internal prototype to avoid an error.  */
3383 /* We use char because int might match the return type of a gcc2
3384     builtin and then its argument prototype would still apply.  */
3385 char gethostbyname();
3386
3387 int main() {
3388
3389 /* The GNU C library defines this for functions which it implements
3390     to always fail with ENOSYS.  Some functions are actually named
3391     something starting with __ and the normal name is an alias.  */
3392 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3393 choke me
3394 #else
3395 gethostbyname();
3396 #endif
3397
3398 ; return 0; }
3399 EOF
3400 if { (eval echo configure:3401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3401   rm -rf conftest*
3402   eval "ac_cv_func_gethostbyname=yes"
3403 else
3404   echo "configure: failed program was:" >&5
3405   cat conftest.$ac_ext >&5
3406   rm -rf conftest*
3407   eval "ac_cv_func_gethostbyname=no"
3408 fi
3409 rm -f conftest*
3410 fi
3411
3412 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3413   echo "$ac_t""yes" 1>&6
3414   :
3415 else
3416   echo "$ac_t""no" 1>&6
3417
3418   echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3419 echo "configure:3420: checking for gethostbyname in -lbind" >&5
3420 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3422   echo $ac_n "(cached) $ac_c" 1>&6
3423 else
3424   ac_save_LIBS="$LIBS"
3425 LIBS="-lbind  $LIBS"
3426 cat > conftest.$ac_ext <<EOF
3427 #line 3428 "configure"
3428 #include "confdefs.h"
3429 /* Override any gcc2 internal prototype to avoid an error.  */
3430 /* We use char because int might match the return type of a gcc2
3431     builtin and then its argument prototype would still apply.  */
3432 char gethostbyname();
3433
3434 int main() {
3435 gethostbyname()
3436 ; return 0; }
3437 EOF
3438 if { (eval echo configure:3439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3439   rm -rf conftest*
3440   eval "ac_cv_lib_$ac_lib_var=yes"
3441 else
3442   echo "configure: failed program was:" >&5
3443   cat conftest.$ac_ext >&5
3444   rm -rf conftest*
3445   eval "ac_cv_lib_$ac_lib_var=no"
3446 fi
3447 rm -f conftest*
3448 LIBS="$ac_save_LIBS"
3449
3450 fi
3451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3452   echo "$ac_t""yes" 1>&6
3453   LIB_IPV4="${LIB_IPV4} -lbind"
3454 else
3455   echo "$ac_t""no" 1>&6
3456 fi
3457
3458
3459 fi
3460
3461 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3462 echo "configure:3463: checking for nanosleep" >&5
3463 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3464   echo $ac_n "(cached) $ac_c" 1>&6
3465 else
3466   cat > conftest.$ac_ext <<EOF
3467 #line 3468 "configure"
3468 #include "confdefs.h"
3469 /* System header to define __stub macros and hopefully few prototypes,
3470     which can conflict with char nanosleep(); below.  */
3471 #include <assert.h>
3472 /* Override any gcc2 internal prototype to avoid an error.  */
3473 /* We use char because int might match the return type of a gcc2
3474     builtin and then its argument prototype would still apply.  */
3475 char nanosleep();
3476
3477 int main() {
3478
3479 /* The GNU C library defines this for functions which it implements
3480     to always fail with ENOSYS.  Some functions are actually named
3481     something starting with __ and the normal name is an alias.  */
3482 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3483 choke me
3484 #else
3485 nanosleep();
3486 #endif
3487
3488 ; return 0; }
3489 EOF
3490 if { (eval echo configure:3491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3491   rm -rf conftest*
3492   eval "ac_cv_func_nanosleep=yes"
3493 else
3494   echo "configure: failed program was:" >&5
3495   cat conftest.$ac_ext >&5
3496   rm -rf conftest*
3497   eval "ac_cv_func_nanosleep=no"
3498 fi
3499 rm -f conftest*
3500 fi
3501
3502 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3503   echo "$ac_t""yes" 1>&6
3504   :
3505 else
3506   echo "$ac_t""no" 1>&6
3507
3508   echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3509 echo "configure:3510: checking for nanosleep in -lrt" >&5
3510 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3511 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3512   echo $ac_n "(cached) $ac_c" 1>&6
3513 else
3514   ac_save_LIBS="$LIBS"
3515 LIBS="-lrt  $LIBS"
3516 cat > conftest.$ac_ext <<EOF
3517 #line 3518 "configure"
3518 #include "confdefs.h"
3519 /* Override any gcc2 internal prototype to avoid an error.  */
3520 /* We use char because int might match the return type of a gcc2
3521     builtin and then its argument prototype would still apply.  */
3522 char nanosleep();
3523
3524 int main() {
3525 nanosleep()
3526 ; return 0; }
3527 EOF
3528 if { (eval echo configure:3529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3529   rm -rf conftest*
3530   eval "ac_cv_lib_$ac_lib_var=yes"
3531 else
3532   echo "configure: failed program was:" >&5
3533   cat conftest.$ac_ext >&5
3534   rm -rf conftest*
3535   eval "ac_cv_lib_$ac_lib_var=no"
3536 fi
3537 rm -f conftest*
3538 LIBS="$ac_save_LIBS"
3539
3540 fi
3541 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3542   echo "$ac_t""yes" 1>&6
3543   LIB_VLC="${LIB_VLC} -lrt"
3544 else
3545   echo "$ac_t""no" 1>&6
3546
3547     echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3548 echo "configure:3549: checking for nanosleep in -lposix4" >&5
3549 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3550 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3551   echo $ac_n "(cached) $ac_c" 1>&6
3552 else
3553   ac_save_LIBS="$LIBS"
3554 LIBS="-lposix4  $LIBS"
3555 cat > conftest.$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3558 /* Override any gcc2 internal prototype to avoid an error.  */
3559 /* We use char because int might match the return type of a gcc2
3560     builtin and then its argument prototype would still apply.  */
3561 char nanosleep();
3562
3563 int main() {
3564 nanosleep()
3565 ; return 0; }
3566 EOF
3567 if { (eval echo configure:3568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3568   rm -rf conftest*
3569   eval "ac_cv_lib_$ac_lib_var=yes"
3570 else
3571   echo "configure: failed program was:" >&5
3572   cat conftest.$ac_ext >&5
3573   rm -rf conftest*
3574   eval "ac_cv_lib_$ac_lib_var=no"
3575 fi
3576 rm -f conftest*
3577 LIBS="$ac_save_LIBS"
3578
3579 fi
3580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3581   echo "$ac_t""yes" 1>&6
3582   LIB_VLC="${LIB_VLC} -lposix4"
3583 else
3584   echo "$ac_t""no" 1>&6
3585 fi
3586
3587   
3588 fi
3589
3590
3591 fi
3592
3593 for ac_func in usleep
3594 do
3595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3596 echo "configure:3597: checking for $ac_func" >&5
3597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3598   echo $ac_n "(cached) $ac_c" 1>&6
3599 else
3600   cat > conftest.$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3603 /* System header to define __stub macros and hopefully few prototypes,
3604     which can conflict with char $ac_func(); below.  */
3605 #include <assert.h>
3606 /* Override any gcc2 internal prototype to avoid an error.  */
3607 /* We use char because int might match the return type of a gcc2
3608     builtin and then its argument prototype would still apply.  */
3609 char $ac_func();
3610
3611 int main() {
3612
3613 /* The GNU C library defines this for functions which it implements
3614     to always fail with ENOSYS.  Some functions are actually named
3615     something starting with __ and the normal name is an alias.  */
3616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3617 choke me
3618 #else
3619 $ac_func();
3620 #endif
3621
3622 ; return 0; }
3623 EOF
3624 if { (eval echo configure:3625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3625   rm -rf conftest*
3626   eval "ac_cv_func_$ac_func=yes"
3627 else
3628   echo "configure: failed program was:" >&5
3629   cat conftest.$ac_ext >&5
3630   rm -rf conftest*
3631   eval "ac_cv_func_$ac_func=no"
3632 fi
3633 rm -f conftest*
3634 fi
3635
3636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3637   echo "$ac_t""yes" 1>&6
3638     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3639   cat >> confdefs.h <<EOF
3640 #define $ac_tr_func 1
3641 EOF
3642  
3643 else
3644   echo "$ac_t""no" 1>&6
3645 fi
3646 done
3647
3648 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3649 echo "configure:3650: checking for inet_aton" >&5
3650 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3651   echo $ac_n "(cached) $ac_c" 1>&6
3652 else
3653   cat > conftest.$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3656 /* System header to define __stub macros and hopefully few prototypes,
3657     which can conflict with char inet_aton(); below.  */
3658 #include <assert.h>
3659 /* Override any gcc2 internal prototype to avoid an error.  */
3660 /* We use char because int might match the return type of a gcc2
3661     builtin and then its argument prototype would still apply.  */
3662 char inet_aton();
3663
3664 int main() {
3665
3666 /* The GNU C library defines this for functions which it implements
3667     to always fail with ENOSYS.  Some functions are actually named
3668     something starting with __ and the normal name is an alias.  */
3669 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3670 choke me
3671 #else
3672 inet_aton();
3673 #endif
3674
3675 ; return 0; }
3676 EOF
3677 if { (eval echo configure:3678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3678   rm -rf conftest*
3679   eval "ac_cv_func_inet_aton=yes"
3680 else
3681   echo "configure: failed program was:" >&5
3682   cat conftest.$ac_ext >&5
3683   rm -rf conftest*
3684   eval "ac_cv_func_inet_aton=no"
3685 fi
3686 rm -f conftest*
3687 fi
3688
3689 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3690   echo "$ac_t""yes" 1>&6
3691   :
3692 else
3693   echo "$ac_t""no" 1>&6
3694
3695   echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3696 echo "configure:3697: checking for inet_aton in -lresolv" >&5
3697 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3698 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3699   echo $ac_n "(cached) $ac_c" 1>&6
3700 else
3701   ac_save_LIBS="$LIBS"
3702 LIBS="-lresolv  $LIBS"
3703 cat > conftest.$ac_ext <<EOF
3704 #line 3705 "configure"
3705 #include "confdefs.h"
3706 /* Override any gcc2 internal prototype to avoid an error.  */
3707 /* We use char because int might match the return type of a gcc2
3708     builtin and then its argument prototype would still apply.  */
3709 char inet_aton();
3710
3711 int main() {
3712 inet_aton()
3713 ; return 0; }
3714 EOF
3715 if { (eval echo configure:3716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3716   rm -rf conftest*
3717   eval "ac_cv_lib_$ac_lib_var=yes"
3718 else
3719   echo "configure: failed program was:" >&5
3720   cat conftest.$ac_ext >&5
3721   rm -rf conftest*
3722   eval "ac_cv_lib_$ac_lib_var=no"
3723 fi
3724 rm -f conftest*
3725 LIBS="$ac_save_LIBS"
3726
3727 fi
3728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3729   echo "$ac_t""yes" 1>&6
3730   LIB_VLC="${LIB_VLC} -lresolv"
3731 else
3732   echo "$ac_t""no" 1>&6
3733 fi
3734
3735
3736 fi
3737
3738 for ac_func in vasprintf
3739 do
3740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3741 echo "configure:3742: checking for $ac_func" >&5
3742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3743   echo $ac_n "(cached) $ac_c" 1>&6
3744 else
3745   cat > conftest.$ac_ext <<EOF
3746 #line 3747 "configure"
3747 #include "confdefs.h"
3748 /* System header to define __stub macros and hopefully few prototypes,
3749     which can conflict with char $ac_func(); below.  */
3750 #include <assert.h>
3751 /* Override any gcc2 internal prototype to avoid an error.  */
3752 /* We use char because int might match the return type of a gcc2
3753     builtin and then its argument prototype would still apply.  */
3754 char $ac_func();
3755
3756 int main() {
3757
3758 /* The GNU C library defines this for functions which it implements
3759     to always fail with ENOSYS.  Some functions are actually named
3760     something starting with __ and the normal name is an alias.  */
3761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3762 choke me
3763 #else
3764 $ac_func();
3765 #endif
3766
3767 ; return 0; }
3768 EOF
3769 if { (eval echo configure:3770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3770   rm -rf conftest*
3771   eval "ac_cv_func_$ac_func=yes"
3772 else
3773   echo "configure: failed program was:" >&5
3774   cat conftest.$ac_ext >&5
3775   rm -rf conftest*
3776   eval "ac_cv_func_$ac_func=no"
3777 fi
3778 rm -f conftest*
3779 fi
3780
3781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3782   echo "$ac_t""yes" 1>&6
3783     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3784   cat >> confdefs.h <<EOF
3785 #define $ac_tr_func 1
3786 EOF
3787  
3788 else
3789   echo "$ac_t""no" 1>&6
3790 fi
3791 done
3792
3793 for ac_func in swab
3794 do
3795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3796 echo "configure:3797: checking for $ac_func" >&5
3797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3798   echo $ac_n "(cached) $ac_c" 1>&6
3799 else
3800   cat > conftest.$ac_ext <<EOF
3801 #line 3802 "configure"
3802 #include "confdefs.h"
3803 /* System header to define __stub macros and hopefully few prototypes,
3804     which can conflict with char $ac_func(); below.  */
3805 #include <assert.h>
3806 /* Override any gcc2 internal prototype to avoid an error.  */
3807 /* We use char because int might match the return type of a gcc2
3808     builtin and then its argument prototype would still apply.  */
3809 char $ac_func();
3810
3811 int main() {
3812
3813 /* The GNU C library defines this for functions which it implements
3814     to always fail with ENOSYS.  Some functions are actually named
3815     something starting with __ and the normal name is an alias.  */
3816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3817 choke me
3818 #else
3819 $ac_func();
3820 #endif
3821
3822 ; return 0; }
3823 EOF
3824 if { (eval echo configure:3825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3825   rm -rf conftest*
3826   eval "ac_cv_func_$ac_func=yes"
3827 else
3828   echo "configure: failed program was:" >&5
3829   cat conftest.$ac_ext >&5
3830   rm -rf conftest*
3831   eval "ac_cv_func_$ac_func=no"
3832 fi
3833 rm -f conftest*
3834 fi
3835
3836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3837   echo "$ac_t""yes" 1>&6
3838     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3839   cat >> confdefs.h <<EOF
3840 #define $ac_tr_func 1
3841 EOF
3842  
3843 else
3844   echo "$ac_t""no" 1>&6
3845 fi
3846 done
3847
3848 for ac_func in memalign valloc
3849 do
3850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3851 echo "configure:3852: checking for $ac_func" >&5
3852 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3853   echo $ac_n "(cached) $ac_c" 1>&6
3854 else
3855   cat > conftest.$ac_ext <<EOF
3856 #line 3857 "configure"
3857 #include "confdefs.h"
3858 /* System header to define __stub macros and hopefully few prototypes,
3859     which can conflict with char $ac_func(); below.  */
3860 #include <assert.h>
3861 /* Override any gcc2 internal prototype to avoid an error.  */
3862 /* We use char because int might match the return type of a gcc2
3863     builtin and then its argument prototype would still apply.  */
3864 char $ac_func();
3865
3866 int main() {
3867
3868 /* The GNU C library defines this for functions which it implements
3869     to always fail with ENOSYS.  Some functions are actually named
3870     something starting with __ and the normal name is an alias.  */
3871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3872 choke me
3873 #else
3874 $ac_func();
3875 #endif
3876
3877 ; return 0; }
3878 EOF
3879 if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3880   rm -rf conftest*
3881   eval "ac_cv_func_$ac_func=yes"
3882 else
3883   echo "configure: failed program was:" >&5
3884   cat conftest.$ac_ext >&5
3885   rm -rf conftest*
3886   eval "ac_cv_func_$ac_func=no"
3887 fi
3888 rm -f conftest*
3889 fi
3890
3891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3892   echo "$ac_t""yes" 1>&6
3893     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3894   cat >> confdefs.h <<EOF
3895 #define $ac_tr_func 1
3896 EOF
3897  
3898 else
3899   echo "$ac_t""no" 1>&6
3900 fi
3901 done
3902
3903
3904 for ac_func in sigrelse
3905 do
3906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3907 echo "configure:3908: checking for $ac_func" >&5
3908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3909   echo $ac_n "(cached) $ac_c" 1>&6
3910 else
3911   cat > conftest.$ac_ext <<EOF
3912 #line 3913 "configure"
3913 #include "confdefs.h"
3914 /* System header to define __stub macros and hopefully few prototypes,
3915     which can conflict with char $ac_func(); below.  */
3916 #include <assert.h>
3917 /* Override any gcc2 internal prototype to avoid an error.  */
3918 /* We use char because int might match the return type of a gcc2
3919     builtin and then its argument prototype would still apply.  */
3920 char $ac_func();
3921
3922 int main() {
3923
3924 /* The GNU C library defines this for functions which it implements
3925     to always fail with ENOSYS.  Some functions are actually named
3926     something starting with __ and the normal name is an alias.  */
3927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3928 choke me
3929 #else
3930 $ac_func();
3931 #endif
3932
3933 ; return 0; }
3934 EOF
3935 if { (eval echo configure:3936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3936   rm -rf conftest*
3937   eval "ac_cv_func_$ac_func=yes"
3938 else
3939   echo "configure: failed program was:" >&5
3940   cat conftest.$ac_ext >&5
3941   rm -rf conftest*
3942   eval "ac_cv_func_$ac_func=no"
3943 fi
3944 rm -f conftest*
3945 fi
3946
3947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3948   echo "$ac_t""yes" 1>&6
3949     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3950   cat >> confdefs.h <<EOF
3951 #define $ac_tr_func 1
3952 EOF
3953  
3954 else
3955   echo "$ac_t""no" 1>&6
3956 fi
3957 done
3958
3959 for ac_func in getpwuid_r getpwuid
3960 do
3961 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3962 echo "configure:3963: checking for $ac_func" >&5
3963 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3964   echo $ac_n "(cached) $ac_c" 1>&6
3965 else
3966   cat > conftest.$ac_ext <<EOF
3967 #line 3968 "configure"
3968 #include "confdefs.h"
3969 /* System header to define __stub macros and hopefully few prototypes,
3970     which can conflict with char $ac_func(); below.  */
3971 #include <assert.h>
3972 /* Override any gcc2 internal prototype to avoid an error.  */
3973 /* We use char because int might match the return type of a gcc2
3974     builtin and then its argument prototype would still apply.  */
3975 char $ac_func();
3976
3977 int main() {
3978
3979 /* The GNU C library defines this for functions which it implements
3980     to always fail with ENOSYS.  Some functions are actually named
3981     something starting with __ and the normal name is an alias.  */
3982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3983 choke me
3984 #else
3985 $ac_func();
3986 #endif
3987
3988 ; return 0; }
3989 EOF
3990 if { (eval echo configure:3991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3991   rm -rf conftest*
3992   eval "ac_cv_func_$ac_func=yes"
3993 else
3994   echo "configure: failed program was:" >&5
3995   cat conftest.$ac_ext >&5
3996   rm -rf conftest*
3997   eval "ac_cv_func_$ac_func=no"
3998 fi
3999 rm -f conftest*
4000 fi
4001
4002 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4003   echo "$ac_t""yes" 1>&6
4004     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4005   cat >> confdefs.h <<EOF
4006 #define $ac_tr_func 1
4007 EOF
4008  
4009 else
4010   echo "$ac_t""no" 1>&6
4011 fi
4012 done
4013
4014
4015 NEED_GETOPT=0
4016 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4017 echo "configure:4018: checking for getopt_long" >&5
4018 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4019   echo $ac_n "(cached) $ac_c" 1>&6
4020 else
4021   cat > conftest.$ac_ext <<EOF
4022 #line 4023 "configure"
4023 #include "confdefs.h"
4024 /* System header to define __stub macros and hopefully few prototypes,
4025     which can conflict with char getopt_long(); below.  */
4026 #include <assert.h>
4027 /* Override any gcc2 internal prototype to avoid an error.  */
4028 /* We use char because int might match the return type of a gcc2
4029     builtin and then its argument prototype would still apply.  */
4030 char getopt_long();
4031
4032 int main() {
4033
4034 /* The GNU C library defines this for functions which it implements
4035     to always fail with ENOSYS.  Some functions are actually named
4036     something starting with __ and the normal name is an alias.  */
4037 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4038 choke me
4039 #else
4040 getopt_long();
4041 #endif
4042
4043 ; return 0; }
4044 EOF
4045 if { (eval echo configure:4046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4046   rm -rf conftest*
4047   eval "ac_cv_func_getopt_long=yes"
4048 else
4049   echo "configure: failed program was:" >&5
4050   cat conftest.$ac_ext >&5
4051   rm -rf conftest*
4052   eval "ac_cv_func_getopt_long=no"
4053 fi
4054 rm -f conftest*
4055 fi
4056
4057 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4058   echo "$ac_t""yes" 1>&6
4059   cat >> confdefs.h <<\EOF
4060 #define HAVE_GETOPT_LONG 1
4061 EOF
4062
4063 else
4064   echo "$ac_t""no" 1>&6
4065  # FreeBSD has a gnugetopt library for this:
4066   echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4067 echo "configure:4068: checking for getopt_long in -lgnugetopt" >&5
4068 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4069 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4070   echo $ac_n "(cached) $ac_c" 1>&6
4071 else
4072   ac_save_LIBS="$LIBS"
4073 LIBS="-lgnugetopt  $LIBS"
4074 cat > conftest.$ac_ext <<EOF
4075 #line 4076 "configure"
4076 #include "confdefs.h"
4077 /* Override any gcc2 internal prototype to avoid an error.  */
4078 /* We use char because int might match the return type of a gcc2
4079     builtin and then its argument prototype would still apply.  */
4080 char getopt_long();
4081
4082 int main() {
4083 getopt_long()
4084 ; return 0; }
4085 EOF
4086 if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4087   rm -rf conftest*
4088   eval "ac_cv_lib_$ac_lib_var=yes"
4089 else
4090   echo "configure: failed program was:" >&5
4091   cat conftest.$ac_ext >&5
4092   rm -rf conftest*
4093   eval "ac_cv_lib_$ac_lib_var=no"
4094 fi
4095 rm -f conftest*
4096 LIBS="$ac_save_LIBS"
4097
4098 fi
4099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4100   echo "$ac_t""yes" 1>&6
4101   cat >> confdefs.h <<\EOF
4102 #define HAVE_GETOPT_LONG 1
4103 EOF
4104  LIB_VLC="${LIB_VLC} -lgnugetopt"
4105 else
4106   echo "$ac_t""no" 1>&6
4107 NEED_GETOPT=1
4108 fi
4109
4110 fi
4111
4112
4113 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4114 echo "configure:4115: checking return type of signal handlers" >&5
4115 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4116   echo $ac_n "(cached) $ac_c" 1>&6
4117 else
4118   cat > conftest.$ac_ext <<EOF
4119 #line 4120 "configure"
4120 #include "confdefs.h"
4121 #include <sys/types.h>
4122 #include <signal.h>
4123 #ifdef signal
4124 #undef signal
4125 #endif
4126 #ifdef __cplusplus
4127 extern "C" void (*signal (int, void (*)(int)))(int);
4128 #else
4129 void (*signal ()) ();
4130 #endif
4131
4132 int main() {
4133 int i;
4134 ; return 0; }
4135 EOF
4136 if { (eval echo configure:4137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4137   rm -rf conftest*
4138   ac_cv_type_signal=void
4139 else
4140   echo "configure: failed program was:" >&5
4141   cat conftest.$ac_ext >&5
4142   rm -rf conftest*
4143   ac_cv_type_signal=int
4144 fi
4145 rm -f conftest*
4146 fi
4147
4148 echo "$ac_t""$ac_cv_type_signal" 1>&6
4149 cat >> confdefs.h <<EOF
4150 #define RETSIGTYPE $ac_cv_type_signal
4151 EOF
4152
4153
4154 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4155 echo "configure:4156: checking for dlopen in -ldl" >&5
4156 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4158   echo $ac_n "(cached) $ac_c" 1>&6
4159 else
4160   ac_save_LIBS="$LIBS"
4161 LIBS="-ldl  $LIBS"
4162 cat > conftest.$ac_ext <<EOF
4163 #line 4164 "configure"
4164 #include "confdefs.h"
4165 /* Override any gcc2 internal prototype to avoid an error.  */
4166 /* We use char because int might match the return type of a gcc2
4167     builtin and then its argument prototype would still apply.  */
4168 char dlopen();
4169
4170 int main() {
4171 dlopen()
4172 ; return 0; }
4173 EOF
4174 if { (eval echo configure:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4175   rm -rf conftest*
4176   eval "ac_cv_lib_$ac_lib_var=yes"
4177 else
4178   echo "configure: failed program was:" >&5
4179   cat conftest.$ac_ext >&5
4180   rm -rf conftest*
4181   eval "ac_cv_lib_$ac_lib_var=no"
4182 fi
4183 rm -f conftest*
4184 LIBS="$ac_save_LIBS"
4185
4186 fi
4187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4188   echo "$ac_t""yes" 1>&6
4189   LIB_VLC="${LIB_VLC} -ldl"
4190 else
4191   echo "$ac_t""no" 1>&6
4192 fi
4193
4194 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4195 echo "configure:4196: checking for cos in -lm" >&5
4196 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4197 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4198   echo $ac_n "(cached) $ac_c" 1>&6
4199 else
4200   ac_save_LIBS="$LIBS"
4201 LIBS="-lm  $LIBS"
4202 cat > conftest.$ac_ext <<EOF
4203 #line 4204 "configure"
4204 #include "confdefs.h"
4205 /* Override any gcc2 internal prototype to avoid an error.  */
4206 /* We use char because int might match the return type of a gcc2
4207     builtin and then its argument prototype would still apply.  */
4208 char cos();
4209
4210 int main() {
4211 cos()
4212 ; return 0; }
4213 EOF
4214 if { (eval echo configure:4215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4215   rm -rf conftest*
4216   eval "ac_cv_lib_$ac_lib_var=yes"
4217 else
4218   echo "configure: failed program was:" >&5
4219   cat conftest.$ac_ext >&5
4220   rm -rf conftest*
4221   eval "ac_cv_lib_$ac_lib_var=no"
4222 fi
4223 rm -f conftest*
4224 LIBS="$ac_save_LIBS"
4225
4226 fi
4227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4228   echo "$ac_t""yes" 1>&6
4229   LIB_IMDCT="${LIB_IMDCT} -lm"
4230   LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
4231 else
4232   echo "$ac_t""no" 1>&6
4233 fi
4234
4235 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4236 echo "configure:4237: checking for pow in -lm" >&5
4237 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4239   echo $ac_n "(cached) $ac_c" 1>&6
4240 else
4241   ac_save_LIBS="$LIBS"
4242 LIBS="-lm  $LIBS"
4243 cat > conftest.$ac_ext <<EOF
4244 #line 4245 "configure"
4245 #include "confdefs.h"
4246 /* Override any gcc2 internal prototype to avoid an error.  */
4247 /* We use char because int might match the return type of a gcc2
4248     builtin and then its argument prototype would still apply.  */
4249 char pow();
4250
4251 int main() {
4252 pow()
4253 ; return 0; }
4254 EOF
4255 if { (eval echo configure:4256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4256   rm -rf conftest*
4257   eval "ac_cv_lib_$ac_lib_var=yes"
4258 else
4259   echo "configure: failed program was:" >&5
4260   cat conftest.$ac_ext >&5
4261   rm -rf conftest*
4262   eval "ac_cv_lib_$ac_lib_var=no"
4263 fi
4264 rm -f conftest*
4265 LIBS="$ac_save_LIBS"
4266
4267 fi
4268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4269   echo "$ac_t""yes" 1>&6
4270   LIB_IMDCT="${LIB_IMDCT} -lm"
4271   LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
4272   LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
4273
4274 else
4275   echo "$ac_t""no" 1>&6
4276 fi
4277
4278
4279 THREAD_LIB=error
4280 if test "x${THREAD_LIB}" = xerror; then
4281   echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4282 echo "configure:4283: checking for pthread_attr_init in -lpthread" >&5
4283 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4284 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4285   echo $ac_n "(cached) $ac_c" 1>&6
4286 else
4287   ac_save_LIBS="$LIBS"
4288 LIBS="-lpthread  $LIBS"
4289 cat > conftest.$ac_ext <<EOF
4290 #line 4291 "configure"
4291 #include "confdefs.h"
4292 /* Override any gcc2 internal prototype to avoid an error.  */
4293 /* We use char because int might match the return type of a gcc2
4294     builtin and then its argument prototype would still apply.  */
4295 char pthread_attr_init();
4296
4297 int main() {
4298 pthread_attr_init()
4299 ; return 0; }
4300 EOF
4301 if { (eval echo configure:4302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4302   rm -rf conftest*
4303   eval "ac_cv_lib_$ac_lib_var=yes"
4304 else
4305   echo "configure: failed program was:" >&5
4306   cat conftest.$ac_ext >&5
4307   rm -rf conftest*
4308   eval "ac_cv_lib_$ac_lib_var=no"
4309 fi
4310 rm -f conftest*
4311 LIBS="$ac_save_LIBS"
4312
4313 fi
4314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4315   echo "$ac_t""yes" 1>&6
4316   THREAD_LIB="-lpthread"
4317 else
4318   echo "$ac_t""no" 1>&6
4319 fi
4320
4321 fi
4322 if test "x${THREAD_LIB}" = xerror; then
4323   echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4324 echo "configure:4325: checking for pthread_attr_init in -lpthreads" >&5
4325 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4326 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4327   echo $ac_n "(cached) $ac_c" 1>&6
4328 else
4329   ac_save_LIBS="$LIBS"
4330 LIBS="-lpthreads  $LIBS"
4331 cat > conftest.$ac_ext <<EOF
4332 #line 4333 "configure"
4333 #include "confdefs.h"
4334 /* Override any gcc2 internal prototype to avoid an error.  */
4335 /* We use char because int might match the return type of a gcc2
4336     builtin and then its argument prototype would still apply.  */
4337 char pthread_attr_init();
4338
4339 int main() {
4340 pthread_attr_init()
4341 ; return 0; }
4342 EOF
4343 if { (eval echo configure:4344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4344   rm -rf conftest*
4345   eval "ac_cv_lib_$ac_lib_var=yes"
4346 else
4347   echo "configure: failed program was:" >&5
4348   cat conftest.$ac_ext >&5
4349   rm -rf conftest*
4350   eval "ac_cv_lib_$ac_lib_var=no"
4351 fi
4352 rm -f conftest*
4353 LIBS="$ac_save_LIBS"
4354
4355 fi
4356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4357   echo "$ac_t""yes" 1>&6
4358   THREAD_LIB="-lpthreads"
4359 else
4360   echo "$ac_t""no" 1>&6
4361 fi
4362
4363 fi
4364 if test "x${THREAD_LIB}" = xerror; then
4365   echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4366 echo "configure:4367: checking for pthread_attr_init in -lc_r" >&5
4367 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4368 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4369   echo $ac_n "(cached) $ac_c" 1>&6
4370 else
4371   ac_save_LIBS="$LIBS"
4372 LIBS="-lc_r  $LIBS"
4373 cat > conftest.$ac_ext <<EOF
4374 #line 4375 "configure"
4375 #include "confdefs.h"
4376 /* Override any gcc2 internal prototype to avoid an error.  */
4377 /* We use char because int might match the return type of a gcc2
4378     builtin and then its argument prototype would still apply.  */
4379 char pthread_attr_init();
4380
4381 int main() {
4382 pthread_attr_init()
4383 ; return 0; }
4384 EOF
4385 if { (eval echo configure:4386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4386   rm -rf conftest*
4387   eval "ac_cv_lib_$ac_lib_var=yes"
4388 else
4389   echo "configure: failed program was:" >&5
4390   cat conftest.$ac_ext >&5
4391   rm -rf conftest*
4392   eval "ac_cv_lib_$ac_lib_var=no"
4393 fi
4394 rm -f conftest*
4395 LIBS="$ac_save_LIBS"
4396
4397 fi
4398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4399   echo "$ac_t""yes" 1>&6
4400   THREAD_LIB="-lc_r"
4401 else
4402   echo "$ac_t""no" 1>&6
4403 fi
4404
4405 fi
4406 if test "x${THREAD_LIB}" = xerror; then
4407   echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4408 echo "configure:4409: checking for pthread_attr_init" >&5
4409 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4410   echo $ac_n "(cached) $ac_c" 1>&6
4411 else
4412   cat > conftest.$ac_ext <<EOF
4413 #line 4414 "configure"
4414 #include "confdefs.h"
4415 /* System header to define __stub macros and hopefully few prototypes,
4416     which can conflict with char pthread_attr_init(); below.  */
4417 #include <assert.h>
4418 /* Override any gcc2 internal prototype to avoid an error.  */
4419 /* We use char because int might match the return type of a gcc2
4420     builtin and then its argument prototype would still apply.  */
4421 char pthread_attr_init();
4422
4423 int main() {
4424
4425 /* The GNU C library defines this for functions which it implements
4426     to always fail with ENOSYS.  Some functions are actually named
4427     something starting with __ and the normal name is an alias.  */
4428 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4429 choke me
4430 #else
4431 pthread_attr_init();
4432 #endif
4433
4434 ; return 0; }
4435 EOF
4436 if { (eval echo configure:4437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4437   rm -rf conftest*
4438   eval "ac_cv_func_pthread_attr_init=yes"
4439 else
4440   echo "configure: failed program was:" >&5
4441   cat conftest.$ac_ext >&5
4442   rm -rf conftest*
4443   eval "ac_cv_func_pthread_attr_init=no"
4444 fi
4445 rm -f conftest*
4446 fi
4447
4448 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4449   echo "$ac_t""yes" 1>&6
4450   :
4451 else
4452   echo "$ac_t""no" 1>&6
4453 fi
4454
4455   THREAD_LIB=""
4456 fi
4457
4458 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4459 echo "configure:4460: checking for cthread_fork in -lthreads" >&5
4460 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4461 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4462   echo $ac_n "(cached) $ac_c" 1>&6
4463 else
4464   ac_save_LIBS="$LIBS"
4465 LIBS="-lthreads  $LIBS"
4466 cat > conftest.$ac_ext <<EOF
4467 #line 4468 "configure"
4468 #include "confdefs.h"
4469 /* Override any gcc2 internal prototype to avoid an error.  */
4470 /* We use char because int might match the return type of a gcc2
4471     builtin and then its argument prototype would still apply.  */
4472 char cthread_fork();
4473
4474 int main() {
4475 cthread_fork()
4476 ; return 0; }
4477 EOF
4478 if { (eval echo configure:4479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4479   rm -rf conftest*
4480   eval "ac_cv_lib_$ac_lib_var=yes"
4481 else
4482   echo "configure: failed program was:" >&5
4483   cat conftest.$ac_ext >&5
4484   rm -rf conftest*
4485   eval "ac_cv_lib_$ac_lib_var=no"
4486 fi
4487 rm -f conftest*
4488 LIBS="$ac_save_LIBS"
4489
4490 fi
4491 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4492   echo "$ac_t""yes" 1>&6
4493   THREAD_LIB="-lthreads"
4494 else
4495   echo "$ac_t""no" 1>&6
4496 fi
4497
4498
4499 cat > conftest.$ac_ext <<EOF
4500 #line 4501 "configure"
4501 #include "confdefs.h"
4502 #include <pthread.h>
4503 EOF
4504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4505   egrep "pthread_cond_t" >/dev/null 2>&1; then
4506   rm -rf conftest*
4507   
4508   cat >> confdefs.h <<\EOF
4509 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4510 EOF
4511
4512 fi
4513 rm -f conftest*
4514
4515 cat > conftest.$ac_ext <<EOF
4516 #line 4517 "configure"
4517 #include "confdefs.h"
4518 #include <strings.h>
4519 EOF
4520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4521   egrep "strncasecmp" >/dev/null 2>&1; then
4522   rm -rf conftest*
4523   
4524   cat >> confdefs.h <<\EOF
4525 #define STRNCASECMP_IN_STRINGS_H 1
4526 EOF
4527
4528 fi
4529 rm -f conftest*
4530
4531
4532 for ac_hdr in getopt.h strings.h
4533 do
4534 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4535 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4536 echo "configure:4537: checking for $ac_hdr" >&5
4537 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4538   echo $ac_n "(cached) $ac_c" 1>&6
4539 else
4540   cat > conftest.$ac_ext <<EOF
4541 #line 4542 "configure"
4542 #include "confdefs.h"
4543 #include <$ac_hdr>
4544 EOF
4545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4546 { (eval echo configure:4547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4548 if test -z "$ac_err"; then
4549   rm -rf conftest*
4550   eval "ac_cv_header_$ac_safe=yes"
4551 else
4552   echo "$ac_err" >&5
4553   echo "configure: failed program was:" >&5
4554   cat conftest.$ac_ext >&5
4555   rm -rf conftest*
4556   eval "ac_cv_header_$ac_safe=no"
4557 fi
4558 rm -f conftest*
4559 fi
4560 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4561   echo "$ac_t""yes" 1>&6
4562     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4563   cat >> confdefs.h <<EOF
4564 #define $ac_tr_hdr 1
4565 EOF
4566  
4567 else
4568   echo "$ac_t""no" 1>&6
4569 fi
4570 done
4571
4572 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4573 do
4574 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4575 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4576 echo "configure:4577: checking for $ac_hdr" >&5
4577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4578   echo $ac_n "(cached) $ac_c" 1>&6
4579 else
4580   cat > conftest.$ac_ext <<EOF
4581 #line 4582 "configure"
4582 #include "confdefs.h"
4583 #include <$ac_hdr>
4584 EOF
4585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4586 { (eval echo configure:4587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4588 if test -z "$ac_err"; then
4589   rm -rf conftest*
4590   eval "ac_cv_header_$ac_safe=yes"
4591 else
4592   echo "$ac_err" >&5
4593   echo "configure: failed program was:" >&5
4594   cat conftest.$ac_ext >&5
4595   rm -rf conftest*
4596   eval "ac_cv_header_$ac_safe=no"
4597 fi
4598 rm -f conftest*
4599 fi
4600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4601   echo "$ac_t""yes" 1>&6
4602     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4603   cat >> confdefs.h <<EOF
4604 #define $ac_tr_hdr 1
4605 EOF
4606  
4607 else
4608   echo "$ac_t""no" 1>&6
4609 fi
4610 done
4611
4612 for ac_hdr in dlfcn.h image.h
4613 do
4614 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4615 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4616 echo "configure:4617: checking for $ac_hdr" >&5
4617 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4618   echo $ac_n "(cached) $ac_c" 1>&6
4619 else
4620   cat > conftest.$ac_ext <<EOF
4621 #line 4622 "configure"
4622 #include "confdefs.h"
4623 #include <$ac_hdr>
4624 EOF
4625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4626 { (eval echo configure:4627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4628 if test -z "$ac_err"; then
4629   rm -rf conftest*
4630   eval "ac_cv_header_$ac_safe=yes"
4631 else
4632   echo "$ac_err" >&5
4633   echo "configure: failed program was:" >&5
4634   cat conftest.$ac_ext >&5
4635   rm -rf conftest*
4636   eval "ac_cv_header_$ac_safe=no"
4637 fi
4638 rm -f conftest*
4639 fi
4640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4641   echo "$ac_t""yes" 1>&6
4642     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4643   cat >> confdefs.h <<EOF
4644 #define $ac_tr_hdr 1
4645 EOF
4646  
4647 else
4648   echo "$ac_t""no" 1>&6
4649 fi
4650 done
4651
4652 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4653 do
4654 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4656 echo "configure:4657: checking for $ac_hdr" >&5
4657 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4658   echo $ac_n "(cached) $ac_c" 1>&6
4659 else
4660   cat > conftest.$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4663 #include <$ac_hdr>
4664 EOF
4665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4666 { (eval echo configure:4667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4668 if test -z "$ac_err"; then
4669   rm -rf conftest*
4670   eval "ac_cv_header_$ac_safe=yes"
4671 else
4672   echo "$ac_err" >&5
4673   echo "configure: failed program was:" >&5
4674   cat conftest.$ac_ext >&5
4675   rm -rf conftest*
4676   eval "ac_cv_header_$ac_safe=no"
4677 fi
4678 rm -f conftest*
4679 fi
4680 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4681   echo "$ac_t""yes" 1>&6
4682     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4683   cat >> confdefs.h <<EOF
4684 #define $ac_tr_hdr 1
4685 EOF
4686  
4687 else
4688   echo "$ac_t""no" 1>&6
4689 fi
4690 done
4691
4692 for ac_hdr in machine/param.h sys/shm.h
4693 do
4694 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4696 echo "configure:4697: checking for $ac_hdr" >&5
4697 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4698   echo $ac_n "(cached) $ac_c" 1>&6
4699 else
4700   cat > conftest.$ac_ext <<EOF
4701 #line 4702 "configure"
4702 #include "confdefs.h"
4703 #include <$ac_hdr>
4704 EOF
4705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4706 { (eval echo configure:4707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4708 if test -z "$ac_err"; then
4709   rm -rf conftest*
4710   eval "ac_cv_header_$ac_safe=yes"
4711 else
4712   echo "$ac_err" >&5
4713   echo "configure: failed program was:" >&5
4714   cat conftest.$ac_ext >&5
4715   rm -rf conftest*
4716   eval "ac_cv_header_$ac_safe=no"
4717 fi
4718 rm -f conftest*
4719 fi
4720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4721   echo "$ac_t""yes" 1>&6
4722     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4723   cat >> confdefs.h <<EOF
4724 #define $ac_tr_hdr 1
4725 EOF
4726  
4727 else
4728   echo "$ac_t""no" 1>&6
4729 fi
4730 done
4731
4732
4733 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4734 echo "configure:4735: checking whether time.h and sys/time.h may both be included" >&5
4735 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4736   echo $ac_n "(cached) $ac_c" 1>&6
4737 else
4738   cat > conftest.$ac_ext <<EOF
4739 #line 4740 "configure"
4740 #include "confdefs.h"
4741 #include <sys/types.h>
4742 #include <sys/time.h>
4743 #include <time.h>
4744 int main() {
4745 struct tm *tp;
4746 ; return 0; }
4747 EOF
4748 if { (eval echo configure:4749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4749   rm -rf conftest*
4750   ac_cv_header_time=yes
4751 else
4752   echo "configure: failed program was:" >&5
4753   cat conftest.$ac_ext >&5
4754   rm -rf conftest*
4755   ac_cv_header_time=no
4756 fi
4757 rm -f conftest*
4758 fi
4759
4760 echo "$ac_t""$ac_cv_header_time" 1>&6
4761 if test $ac_cv_header_time = yes; then
4762   cat >> confdefs.h <<\EOF
4763 #define TIME_WITH_SYS_TIME 1
4764 EOF
4765
4766 fi
4767
4768
4769 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4770 do
4771 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4772 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4773 echo "configure:4774: checking for $ac_hdr" >&5
4774 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4775   echo $ac_n "(cached) $ac_c" 1>&6
4776 else
4777   cat > conftest.$ac_ext <<EOF
4778 #line 4779 "configure"
4779 #include "confdefs.h"
4780 #include <$ac_hdr>
4781 EOF
4782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4783 { (eval echo configure:4784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4785 if test -z "$ac_err"; then
4786   rm -rf conftest*
4787   eval "ac_cv_header_$ac_safe=yes"
4788 else
4789   echo "$ac_err" >&5
4790   echo "configure: failed program was:" >&5
4791   cat conftest.$ac_ext >&5
4792   rm -rf conftest*
4793   eval "ac_cv_header_$ac_safe=no"
4794 fi
4795 rm -f conftest*
4796 fi
4797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4798   echo "$ac_t""yes" 1>&6
4799     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4800   cat >> confdefs.h <<EOF
4801 #define $ac_tr_hdr 1
4802 EOF
4803  
4804 else
4805   echo "$ac_t""no" 1>&6
4806 fi
4807 done
4808
4809
4810 if test x$SYS != xmingw32
4811 then
4812   if test x$x_includes = xNONE; then
4813     x_includes=/usr/X11R6/include
4814   fi
4815   if test x$x_libraries = xNONE; then
4816     x_libraries=/usr/X11R6/lib
4817   fi
4818   saved_CPPFLAGS=$CPPFLAGS
4819   CPPFLAGS="$CPPFLAGS -I$x_includes"
4820   for ac_hdr in X11/extensions/dpms.h
4821 do
4822 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4823 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4824 echo "configure:4825: checking for $ac_hdr" >&5
4825 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4826   echo $ac_n "(cached) $ac_c" 1>&6
4827 else
4828   cat > conftest.$ac_ext <<EOF
4829 #line 4830 "configure"
4830 #include "confdefs.h"
4831 #include <$ac_hdr>
4832 EOF
4833 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4834 { (eval echo configure:4835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4835 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4836 if test -z "$ac_err"; then
4837   rm -rf conftest*
4838   eval "ac_cv_header_$ac_safe=yes"
4839 else
4840   echo "$ac_err" >&5
4841   echo "configure: failed program was:" >&5
4842   cat conftest.$ac_ext >&5
4843   rm -rf conftest*
4844   eval "ac_cv_header_$ac_safe=no"
4845 fi
4846 rm -f conftest*
4847 fi
4848 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4849   echo "$ac_t""yes" 1>&6
4850     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4851   cat >> confdefs.h <<EOF
4852 #define $ac_tr_hdr 1
4853 EOF
4854  
4855     cat > conftest.$ac_ext <<EOF
4856 #line 4857 "configure"
4857 #include "confdefs.h"
4858 #include <X11/extensions/dpms.h>
4859 EOF
4860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4861   egrep "DPMSInfo" >/dev/null 2>&1; then
4862   rm -rf conftest*
4863   
4864       cat >> confdefs.h <<\EOF
4865 #define DPMSINFO_IN_DPMS_H 1
4866 EOF
4867
4868     
4869 fi
4870 rm -f conftest*
4871
4872   
4873 else
4874   echo "$ac_t""no" 1>&6
4875 fi
4876 done
4877
4878   CPPFLAGS=$saved_CPPFLAGS
4879 fi
4880
4881 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4882 echo "configure:4883: checking for ntohl in sys/param.h" >&5
4883 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4884   echo $ac_n "(cached) $ac_c" 1>&6
4885 else
4886   CFLAGS="${save_CFLAGS} -Wall -Werror"
4887      cat > conftest.$ac_ext <<EOF
4888 #line 4889 "configure"
4889 #include "confdefs.h"
4890 #include <sys/param.h>
4891 int main() {
4892 void foo() { int meuh; ntohl(meuh); }
4893 ; return 0; }
4894 EOF
4895 if { (eval echo configure:4896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4896   rm -rf conftest*
4897   ac_cv_c_ntohl_sys_param_h=yes
4898 else
4899   echo "configure: failed program was:" >&5
4900   cat conftest.$ac_ext >&5
4901   rm -rf conftest*
4902   ac_cv_c_ntohl_sys_param_h=no
4903 fi
4904 rm -f conftest*
4905 fi
4906
4907 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4908 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4909     cat >> confdefs.h <<\EOF
4910 #define NTOHL_IN_SYS_PARAM_H 1
4911 EOF
4912
4913 fi
4914
4915 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4916 echo "configure:4917: checking if \$CC accepts -finline-limit" >&5
4917 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4918   echo $ac_n "(cached) $ac_c" 1>&6
4919 else
4920   CFLAGS="${save_CFLAGS} -finline-limit-30000"
4921      cat > conftest.$ac_ext <<EOF
4922 #line 4923 "configure"
4923 #include "confdefs.h"
4924
4925 int main() {
4926
4927 ; return 0; }
4928 EOF
4929 if { (eval echo configure:4930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4930   rm -rf conftest*
4931   ac_cv_c_inline_limit=yes
4932 else
4933   echo "configure: failed program was:" >&5
4934   cat conftest.$ac_ext >&5
4935   rm -rf conftest*
4936   ac_cv_c_inline_limit=no
4937 fi
4938 rm -f conftest*
4939 fi
4940
4941 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4942 if test x"$ac_cv_c_inline_limit" != x"no"; then
4943     save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4944 fi
4945
4946 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4947 echo "configure:4948: checking if \$CC accepts -Wall -Winline" >&5
4948 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4949   echo $ac_n "(cached) $ac_c" 1>&6
4950 else
4951   CFLAGS="${save_CFLAGS} -Wall -Winline"
4952      cat > conftest.$ac_ext <<EOF
4953 #line 4954 "configure"
4954 #include "confdefs.h"
4955
4956 int main() {
4957
4958 ; return 0; }
4959 EOF
4960 if { (eval echo configure:4961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4961   rm -rf conftest*
4962   ac_cv_c_Wall_Winline=yes
4963 else
4964   echo "configure: failed program was:" >&5
4965   cat conftest.$ac_ext >&5
4966   rm -rf conftest*
4967   ac_cv_c_Wall_Winline=no
4968 fi
4969 rm -f conftest*
4970 fi
4971
4972 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4973 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
4974     save_CFLAGS="${save_CFLAGS} -Wall -Winline"
4975 else
4976     echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4977 echo "configure:4978: checking if \$CC accepts -wall -winline" >&5
4978 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4979   echo $ac_n "(cached) $ac_c" 1>&6
4980 else
4981   CFLAGS="${save_CFLAGS} -wall -winline"
4982          cat > conftest.$ac_ext <<EOF
4983 #line 4984 "configure"
4984 #include "confdefs.h"
4985
4986 int main() {
4987
4988 ; return 0; }
4989 EOF
4990 if { (eval echo configure:4991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4991   rm -rf conftest*
4992   ac_cv_c_wall_winline=yes
4993 else
4994   echo "configure: failed program was:" >&5
4995   cat conftest.$ac_ext >&5
4996   rm -rf conftest*
4997   ac_cv_c_wall_winline=no
4998 fi
4999 rm -f conftest*
5000 fi
5001
5002 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5003     if test x"$ac_cv_c_wall_winline" != x"no"; then
5004         save_CFLAGS="${save_CFLAGS} -wall -winline"
5005     fi
5006 fi
5007
5008 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5009 echo "configure:5010: checking if \$CC accepts -pipe" >&5
5010 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5011   echo $ac_n "(cached) $ac_c" 1>&6
5012 else
5013   CFLAGS="${save_CFLAGS} -pipe"
5014      cat > conftest.$ac_ext <<EOF
5015 #line 5016 "configure"
5016 #include "confdefs.h"
5017
5018 int main() {
5019
5020 ; return 0; }
5021 EOF
5022 if { (eval echo configure:5023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5023   rm -rf conftest*
5024   ac_cv_c_pipe=yes
5025 else
5026   echo "configure: failed program was:" >&5
5027   cat conftest.$ac_ext >&5
5028   rm -rf conftest*
5029   ac_cv_c_pipe=no
5030 fi
5031 rm -f conftest*
5032 fi
5033
5034 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5035 if test x"$ac_cv_c_pipe" != x"no"; then
5036     save_CFLAGS="${save_CFLAGS} -pipe"
5037 fi
5038
5039 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5040 echo "configure:5041: checking if \$CC accepts -O3" >&5
5041 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5042   echo $ac_n "(cached) $ac_c" 1>&6
5043 else
5044   CFLAGS="${save_CFLAGS} -O3"
5045      cat > conftest.$ac_ext <<EOF
5046 #line 5047 "configure"
5047 #include "confdefs.h"
5048
5049 int main() {
5050
5051 ; return 0; }
5052 EOF
5053 if { (eval echo configure:5054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5054   rm -rf conftest*
5055   ac_cv_c_o3=yes
5056 else
5057   echo "configure: failed program was:" >&5
5058   cat conftest.$ac_ext >&5
5059   rm -rf conftest*
5060   ac_cv_c_o3=no
5061 fi
5062 rm -f conftest*
5063 fi
5064
5065 echo "$ac_t""$ac_cv_c_o3" 1>&6
5066 if test x"$ac_cv_c_o3" != x"no"; then
5067     CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5068 else
5069     echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5070 echo "configure:5071: checking if \$CC accepts -O2" >&5
5071 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5072   echo $ac_n "(cached) $ac_c" 1>&6
5073 else
5074   CFLAGS="${save_CFLAGS} -O2"
5075          cat > conftest.$ac_ext <<EOF
5076 #line 5077 "configure"
5077 #include "confdefs.h"
5078
5079 int main() {
5080
5081 ; return 0; }
5082 EOF
5083 if { (eval echo configure:5084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5084   rm -rf conftest*
5085   ac_cv_c_o2=yes
5086 else
5087   echo "configure: failed program was:" >&5
5088   cat conftest.$ac_ext >&5
5089   rm -rf conftest*
5090   ac_cv_c_o2=no
5091 fi
5092 rm -f conftest*
5093 fi
5094
5095 echo "$ac_t""$ac_cv_c_o2" 1>&6
5096     if test x"$ac_cv_c_o2" != x"no"; then
5097         CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5098     else
5099         echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5100 echo "configure:5101: checking if \$CC accepts -O" >&5
5101 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5102   echo $ac_n "(cached) $ac_c" 1>&6
5103 else
5104   CFLAGS="${save_CFLAGS} -O"
5105              cat > conftest.$ac_ext <<EOF
5106 #line 5107 "configure"
5107 #include "confdefs.h"
5108
5109 int main() {
5110
5111 ; return 0; }
5112 EOF
5113 if { (eval echo configure:5114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5114   rm -rf conftest*
5115   ac_cv_c_o=yes
5116 else
5117   echo "configure: failed program was:" >&5
5118   cat conftest.$ac_ext >&5
5119   rm -rf conftest*
5120   ac_cv_c_o=no
5121 fi
5122 rm -f conftest*
5123 fi
5124
5125 echo "$ac_t""$ac_cv_c_o" 1>&6
5126         if test x"$ac_cv_c_o" != x"no"; then
5127             CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5128         fi
5129     fi
5130 fi
5131
5132 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5133 echo "configure:5134: checking if \$CC accepts -ffast-math" >&5
5134 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5135   echo $ac_n "(cached) $ac_c" 1>&6
5136 else
5137   CFLAGS="${save_CFLAGS} -ffast-math"
5138      cat > conftest.$ac_ext <<EOF
5139 #line 5140 "configure"
5140 #include "confdefs.h"
5141
5142 int main() {
5143
5144 ; return 0; }
5145 EOF
5146 if { (eval echo configure:5147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5147   rm -rf conftest*
5148   ac_cv_c_fast_math=yes
5149 else
5150   echo "configure: failed program was:" >&5
5151   cat conftest.$ac_ext >&5
5152   rm -rf conftest*
5153   ac_cv_c_fast_math=no
5154 fi
5155 rm -f conftest*
5156 fi
5157
5158 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5159 if test x"$ac_cv_c_fast_math" != x"no"; then
5160     CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5161 fi
5162
5163 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5164 echo "configure:5165: checking if \$CC accepts -funroll-loops" >&5
5165 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5166   echo $ac_n "(cached) $ac_c" 1>&6
5167 else
5168   CFLAGS="${save_CFLAGS} -funroll-loops"
5169      cat > conftest.$ac_ext <<EOF
5170 #line 5171 "configure"
5171 #include "confdefs.h"
5172
5173 int main() {
5174
5175 ; return 0; }
5176 EOF
5177 if { (eval echo configure:5178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5178   rm -rf conftest*
5179   ac_cv_c_unroll_loops=yes
5180 else
5181   echo "configure: failed program was:" >&5
5182   cat conftest.$ac_ext >&5
5183   rm -rf conftest*
5184   ac_cv_c_unroll_loops=no
5185 fi
5186 rm -f conftest*
5187 fi
5188
5189 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5190 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5191     CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5192 fi
5193
5194 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5195 echo "configure:5196: checking if \$CC accepts -fomit-frame-pointer" >&5
5196 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5197   echo $ac_n "(cached) $ac_c" 1>&6
5198 else
5199   CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5200      cat > conftest.$ac_ext <<EOF
5201 #line 5202 "configure"
5202 #include "confdefs.h"
5203
5204 int main() {
5205
5206 ; return 0; }
5207 EOF
5208 if { (eval echo configure:5209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5209   rm -rf conftest*
5210   ac_cv_c_omit_frame_pointer=yes
5211 else
5212   echo "configure: failed program was:" >&5
5213   cat conftest.$ac_ext >&5
5214   rm -rf conftest*
5215   ac_cv_c_omit_frame_pointer=no
5216 fi
5217 rm -f conftest*
5218 fi
5219
5220 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5221 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5222     CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5223 fi
5224
5225 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5226 echo "configure:5227: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5227 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5228   echo $ac_n "(cached) $ac_c" 1>&6
5229 else
5230   CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5231      cat > conftest.$ac_ext <<EOF
5232 #line 5233 "configure"
5233 #include "confdefs.h"
5234
5235 int main() {
5236
5237 ; return 0; }
5238 EOF
5239 if { (eval echo configure:5240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5240   rm -rf conftest*
5241   ac_cv_ld_darwin=yes
5242 else
5243   echo "configure: failed program was:" >&5
5244   cat conftest.$ac_ext >&5
5245   rm -rf conftest*
5246   ac_cv_ld_darwin=no
5247 fi
5248 rm -f conftest*
5249 fi
5250
5251 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5252 if test x"$ac_cv_ld_darwin" != x"no"; then
5253     PLDFLAGS="${PLDFLAGS} -bundle -undefined error -lcc_dynamic"
5254 fi
5255
5256 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5257 echo "configure:5258: checking if \$CC accepts -shared" >&5
5258 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5259   echo $ac_n "(cached) $ac_c" 1>&6
5260 else
5261   CFLAGS="${save_CFLAGS} -shared"
5262      cat > conftest.$ac_ext <<EOF
5263 #line 5264 "configure"
5264 #include "confdefs.h"
5265
5266 int main() {
5267
5268 ; return 0; }
5269 EOF
5270 if { (eval echo configure:5271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5271   rm -rf conftest*
5272   ac_cv_ld_plugins=yes
5273 else
5274   echo "configure: failed program was:" >&5
5275   cat conftest.$ac_ext >&5
5276   rm -rf conftest*
5277   ac_cv_ld_plugins=no
5278 fi
5279 rm -f conftest*
5280 fi
5281
5282 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5283 if test x"$ac_cv_ld_plugins" != x"no"; then
5284     PLDFLAGS="${PLDFLAGS} -shared"
5285 fi
5286         
5287 if test x"${SOFLAGS}" = x; then
5288     echo $ac_n "checking for soname setting""... $ac_c" 1>&6
5289 echo "configure:5290: checking for soname setting" >&5
5290 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
5291   echo $ac_n "(cached) $ac_c" 1>&6
5292 else
5293   
5294         # Standard
5295         try_SOFLAGS="-Wl,-soname -Wl,"
5296         LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5297         cat > conftest.$ac_ext <<EOF
5298 #line 5299 "configure"
5299 #include "confdefs.h"
5300
5301 int main() {
5302
5303 ; return 0; }
5304 EOF
5305 if { (eval echo configure:5306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5306   rm -rf conftest*
5307   ac_cv_ld_soname="${try_SOFLAGS}"
5308 else
5309   echo "configure: failed program was:" >&5
5310   cat conftest.$ac_ext >&5
5311   rm -rf conftest*
5312   
5313             # SunOS
5314             try_SOFLAGS="-Wl,-h -Wl,"
5315             LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5316             cat > conftest.$ac_ext <<EOF
5317 #line 5318 "configure"
5318 #include "confdefs.h"
5319
5320 int main() {
5321
5322 ; return 0; }
5323 EOF
5324 if { (eval echo configure:5325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5325   rm -rf conftest*
5326   ac_cv_ld_soname="${try_SOFLAGS}"
5327 else
5328   echo "configure: failed program was:" >&5
5329   cat conftest.$ac_ext >&5
5330   rm -rf conftest*
5331   ac_cv_ld_soname=none
5332 fi
5333 rm -f conftest*
5334         
5335 fi
5336 rm -f conftest*
5337 fi
5338
5339 echo "$ac_t""$ac_cv_ld_soname" 1>&6
5340     if test x"$ac_cv_ld_soname" != x"none"; then
5341         SOFLAGS=$ac_cv_ld_soname
5342     else
5343         echo "
5344 ------------
5345 Your system doesn't seem to have support for dynamic linking. You may
5346 have problems using libdvdcss.
5347 ------------
5348 "
5349     fi
5350 fi
5351
5352 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5353 echo "configure:5354: checking __attribute__ ((aligned ())) support" >&5
5354 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5355   echo $ac_n "(cached) $ac_c" 1>&6
5356 else
5357   ac_cv_c_attribute_aligned=0
5358         CFLAGS="${save_CFLAGS} -Werror"
5359     for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5360         cat > conftest.$ac_ext <<EOF
5361 #line 5362 "configure"
5362 #include "confdefs.h"
5363
5364 int main() {
5365 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5366 ; return 0; }
5367 EOF
5368 if { (eval echo configure:5369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5369   rm -rf conftest*
5370   ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5371 else
5372   echo "configure: failed program was:" >&5
5373   cat conftest.$ac_ext >&5
5374 fi
5375 rm -f conftest*
5376     done
5377 fi
5378
5379 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5380 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5381     cat >> confdefs.h <<EOF
5382 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5383 EOF
5384
5385 fi
5386
5387 CFLAGS="${save_CFLAGS}"
5388 LDFLAGS="${save_LDFLAGS}"
5389
5390 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5391 echo "configure:5392: checking for boolean_t in sys/types.h" >&5
5392 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5393   echo $ac_n "(cached) $ac_c" 1>&6
5394 else
5395   cat > conftest.$ac_ext <<EOF
5396 #line 5397 "configure"
5397 #include "confdefs.h"
5398 #include <sys/types.h>
5399 int main() {
5400 boolean_t foo;
5401 ; return 0; }
5402 EOF
5403 if { (eval echo configure:5404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5404   rm -rf conftest*
5405   ac_cv_c_boolean_t_sys_types_h=yes
5406 else
5407   echo "configure: failed program was:" >&5
5408   cat conftest.$ac_ext >&5
5409   rm -rf conftest*
5410   ac_cv_c_boolean_t_sys_types_h=no
5411 fi
5412 rm -f conftest*
5413 fi
5414
5415 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5416 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5417     cat >> confdefs.h <<\EOF
5418 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5419 EOF
5420
5421 fi
5422
5423 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5424 echo "configure:5425: checking for boolean_t in pthread.h" >&5
5425 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5426   echo $ac_n "(cached) $ac_c" 1>&6
5427 else
5428   cat > conftest.$ac_ext <<EOF
5429 #line 5430 "configure"
5430 #include "confdefs.h"
5431 #include <pthread.h>
5432 int main() {
5433 boolean_t foo;
5434 ; return 0; }
5435 EOF
5436 if { (eval echo configure:5437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5437   rm -rf conftest*
5438   ac_cv_c_boolean_t_pthread_h=yes
5439 else
5440   echo "configure: failed program was:" >&5
5441   cat conftest.$ac_ext >&5
5442   rm -rf conftest*
5443   ac_cv_c_boolean_t_pthread_h=no
5444 fi
5445 rm -f conftest*
5446 fi
5447
5448 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5449 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5450     cat >> confdefs.h <<\EOF
5451 #define BOOLEAN_T_IN_PTHREAD_H 1
5452 EOF
5453
5454 fi
5455
5456 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5457 echo "configure:5458: checking for boolean_t in cthreads.h" >&5
5458 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5459   echo $ac_n "(cached) $ac_c" 1>&6
5460 else
5461   cat > conftest.$ac_ext <<EOF
5462 #line 5463 "configure"
5463 #include "confdefs.h"
5464 #include <cthreads.h>
5465 int main() {
5466 boolean_t foo;
5467 ; return 0; }
5468 EOF
5469 if { (eval echo configure:5470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5470   rm -rf conftest*
5471   ac_cv_c_boolean_t_cthreads_h=yes
5472 else
5473   echo "configure: failed program was:" >&5
5474   cat conftest.$ac_ext >&5
5475   rm -rf conftest*
5476   ac_cv_c_boolean_t_cthreads_h=no
5477 fi
5478 rm -f conftest*
5479 fi
5480
5481 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5482 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5483     cat >> confdefs.h <<\EOF
5484 #define BOOLEAN_T_IN_CTHREADS_H 1
5485 EOF
5486
5487 fi
5488
5489 case x"${target_cpu}" in
5490   x)
5491     ARCH=unknown
5492     ;;
5493   *)
5494     ARCH=${target_cpu}
5495     ;;
5496 esac
5497
5498 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"
5499 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"
5500
5501 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5502 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5503 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5504 SSE_MODULES="imdctsse downmixsse"
5505 ALTIVEC_MODULES="idctaltivec motionaltivec"
5506
5507 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5508 echo "configure:5509: checking if \$CC groks MMX inline assembly" >&5
5509 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5510   echo $ac_n "(cached) $ac_c" 1>&6
5511 else
5512   cat > conftest.$ac_ext <<EOF
5513 #line 5514 "configure"
5514 #include "confdefs.h"
5515
5516 int main() {
5517 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5518 ; return 0; }
5519 EOF
5520 if { (eval echo configure:5521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5521   rm -rf conftest*
5522   ac_cv_mmx_inline=yes
5523 else
5524   echo "configure: failed program was:" >&5
5525   cat conftest.$ac_ext >&5
5526   rm -rf conftest*
5527   ac_cv_mmx_inline=no
5528 fi
5529 rm -f conftest*
5530 fi
5531
5532 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5533 if test x"$ac_cv_mmx_inline" != x"no"; then
5534   ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5535 fi
5536
5537 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5538 echo "configure:5539: checking if \$CC groks MMX EXT inline assembly" >&5
5539 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5540   echo $ac_n "(cached) $ac_c" 1>&6
5541 else
5542   cat > conftest.$ac_ext <<EOF
5543 #line 5544 "configure"
5544 #include "confdefs.h"
5545
5546 int main() {
5547 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5548 ; return 0; }
5549 EOF
5550 if { (eval echo configure:5551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5551   rm -rf conftest*
5552   ac_cv_mmxext_inline=yes
5553 else
5554   echo "configure: failed program was:" >&5
5555   cat conftest.$ac_ext >&5
5556   rm -rf conftest*
5557   ac_cv_mmxext_inline=no
5558 fi
5559 rm -f conftest*
5560 fi
5561
5562 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5563 if test x"$ac_cv_mmxext_inline" != x"no"; then
5564   ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5565 fi
5566
5567 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5568 echo "configure:5569: checking if \$CC groks 3D Now! inline assembly" >&5
5569 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5570   echo $ac_n "(cached) $ac_c" 1>&6
5571 else
5572   cat > conftest.$ac_ext <<EOF
5573 #line 5574 "configure"
5574 #include "confdefs.h"
5575
5576 int main() {
5577 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5578 ; return 0; }
5579 EOF
5580 if { (eval echo configure:5581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5581   rm -rf conftest*
5582   ac_cv_3dnow_inline=yes
5583 else
5584   echo "configure: failed program was:" >&5
5585   cat conftest.$ac_ext >&5
5586   rm -rf conftest*
5587   ac_cv_3dnow_inline=no
5588 fi
5589 rm -f conftest*
5590 fi
5591
5592 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5593 if test x"$ac_cv_3dnow_inline" != x"no"; then
5594   cat >> confdefs.h <<\EOF
5595 #define CAN_COMPILE_3DNOW 1
5596 EOF
5597
5598   ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5599 fi
5600
5601 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5602 echo "configure:5603: checking if \$CC groks SSE inline assembly" >&5
5603 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5604   echo $ac_n "(cached) $ac_c" 1>&6
5605 else
5606   cat > conftest.$ac_ext <<EOF
5607 #line 5608 "configure"
5608 #include "confdefs.h"
5609
5610 int main() {
5611 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5612 ; return 0; }
5613 EOF
5614 if { (eval echo configure:5615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5615   rm -rf conftest*
5616   ac_cv_sse_inline=yes
5617 else
5618   echo "configure: failed program was:" >&5
5619   cat conftest.$ac_ext >&5
5620   rm -rf conftest*
5621   ac_cv_sse_inline=no
5622 fi
5623 rm -f conftest*
5624 fi
5625
5626 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5627 if test x"$ac_cv_sse_inline" != x"no"; then
5628   cat >> confdefs.h <<\EOF
5629 #define CAN_COMPILE_SSE 1
5630 EOF
5631
5632   ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5633 fi
5634
5635 # don't try to grok altivec with native mingw32 it doesn't work right now
5636 # we should be able to remove this test with future versions of mingw32
5637 if test x$SYS != xmingw32; then
5638 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5639 echo "configure:5640: checking if \$CC groks Altivec inline assembly" >&5
5640 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5641   echo $ac_n "(cached) $ac_c" 1>&6
5642 else
5643   cat > conftest.$ac_ext <<EOF
5644 #line 5645 "configure"
5645 #include "confdefs.h"
5646
5647 int main() {
5648 asm volatile("vperm 0,1,2,3");
5649 ; return 0; }
5650 EOF
5651 if { (eval echo configure:5652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5652   rm -rf conftest*
5653   ac_cv_altivec_inline=yes
5654 else
5655   echo "configure: failed program was:" >&5
5656   cat conftest.$ac_ext >&5
5657   rm -rf conftest*
5658   save_CFLAGS=$CFLAGS
5659           CFLAGS="$CFLAGS -Wa,-m7400"
5660           cat > conftest.$ac_ext <<EOF
5661 #line 5662 "configure"
5662 #include "confdefs.h"
5663
5664 int main() {
5665 asm volatile("vperm 0,1,2,3");
5666 ; return 0; }
5667 EOF
5668 if { (eval echo configure:5669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5669   rm -rf conftest*
5670   ac_cv_altivec_inline="-Wa,-m7400"
5671 else
5672   echo "configure: failed program was:" >&5
5673   cat conftest.$ac_ext >&5
5674   rm -rf conftest*
5675   ac_cv_altivec_inline=no
5676 fi
5677 rm -f conftest*
5678           CFLAGS=$save_CFLAGS
5679          
5680 fi
5681 rm -f conftest*
5682 fi
5683
5684 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5685 if test x"$ac_cv_altivec_inline" != x"no"; then
5686   cat >> confdefs.h <<\EOF
5687 #define CAN_COMPILE_ALTIVEC 1
5688 EOF
5689
5690   if test x"$ac_cv_altivec_inline" != x"yes"; then
5691     CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline"
5692     CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline"
5693     CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5694   fi
5695   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5696 fi
5697
5698 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5699 echo "configure:5700: checking if \$CC groks Altivec C extensions" >&5
5700 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5701   echo $ac_n "(cached) $ac_c" 1>&6
5702 else
5703   save_CFLAGS=$CFLAGS
5704      CFLAGS="$CFLAGS -faltivec"
5705      # Darwin test
5706      cat > conftest.$ac_ext <<EOF
5707 #line 5708 "configure"
5708 #include "confdefs.h"
5709
5710 int main() {
5711 vec_mtvscr((vector unsigned int)(0));
5712 ; return 0; }
5713 EOF
5714 if { (eval echo configure:5715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5715   rm -rf conftest*
5716   ac_cv_c_altivec=-faltivec
5717 else
5718   echo "configure: failed program was:" >&5
5719   cat conftest.$ac_ext >&5
5720   rm -rf conftest*
5721   
5722         # Linux/PPC test
5723         CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec"
5724         cat > conftest.$ac_ext <<EOF
5725 #line 5726 "configure"
5726 #include "confdefs.h"
5727
5728 int main() {
5729 vec_mtvscr((vector unsigned int)(0));
5730 ; return 0; }
5731 EOF
5732 if { (eval echo configure:5733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5733   rm -rf conftest*
5734   ac_cv_c_altivec="-fvec"
5735 else
5736   echo "configure: failed program was:" >&5
5737   cat conftest.$ac_ext >&5
5738   rm -rf conftest*
5739   ac_cv_c_altivec=no
5740 fi
5741 rm -f conftest*
5742         
5743 fi
5744 rm -f conftest*
5745      CFLAGS=$save_CFLAGS
5746     
5747 fi
5748
5749 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5750 if test x"$ac_cv_c_altivec" != x"no"; then
5751   cat >> confdefs.h <<\EOF
5752 #define CAN_COMPILE_C_ALTIVEC 1
5753 EOF
5754
5755   CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec"
5756   CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec"
5757   CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5758   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5759 fi
5760
5761 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5762 echo "configure:5763: checking if linker needs -framework vecLib" >&5
5763 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5764   echo $ac_n "(cached) $ac_c" 1>&6
5765 else
5766   save_LDFLAGS=$LDFLAGS
5767      LDFLAGS="$LDFLAGS -framework vecLib"
5768      cat > conftest.$ac_ext <<EOF
5769 #line 5770 "configure"
5770 #include "confdefs.h"
5771
5772 int main() {
5773
5774 ; return 0; }
5775 EOF
5776 if { (eval echo configure:5777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5777   rm -rf conftest*
5778   ac_cv_ld_altivec=yes
5779 else
5780   echo "configure: failed program was:" >&5
5781   cat conftest.$ac_ext >&5
5782   rm -rf conftest*
5783   ac_cv_ld_altivec=no
5784 fi
5785 rm -f conftest*
5786      LDFLAGS=$save_LDFLAGS
5787     
5788 fi
5789
5790 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5791 if test x"$ac_cv_ld_altivec" != x"no"; then
5792   LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib"
5793   LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib"
5794   LIB_VLC="${LIB_VLC} -framework vecLib"
5795 fi
5796 fi # end if mingw32
5797
5798 case x$SYS in
5799   xmingw32)
5800     DVD_DEVICE="E:"
5801     VCD_DEVICE="E:"
5802     ;;
5803   *)
5804     DVD_DEVICE="/dev/dvd"
5805     VCD_DEVICE="/dev/cdrom"
5806     ;;
5807 esac
5808
5809 cat >> confdefs.h <<EOF
5810 #define DVD_DEVICE "$DVD_DEVICE"
5811 EOF
5812
5813 cat >> confdefs.h <<EOF
5814 #define VCD_DEVICE "$VCD_DEVICE"
5815 EOF
5816
5817
5818
5819
5820 CAN_BUILD_LIBDVDCSS=0
5821
5822 for ac_hdr in winioctl.h
5823 do
5824 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5825 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5826 echo "configure:5827: checking for $ac_hdr" >&5
5827 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5828   echo $ac_n "(cached) $ac_c" 1>&6
5829 else
5830   cat > conftest.$ac_ext <<EOF
5831 #line 5832 "configure"
5832 #include "confdefs.h"
5833 #include <$ac_hdr>
5834 EOF
5835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5836 { (eval echo configure:5837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5838 if test -z "$ac_err"; then
5839   rm -rf conftest*
5840   eval "ac_cv_header_$ac_safe=yes"
5841 else
5842   echo "$ac_err" >&5
5843   echo "configure: failed program was:" >&5
5844   cat conftest.$ac_ext >&5
5845   rm -rf conftest*
5846   eval "ac_cv_header_$ac_safe=no"
5847 fi
5848 rm -f conftest*
5849 fi
5850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5851   echo "$ac_t""yes" 1>&6
5852     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5853   cat >> confdefs.h <<EOF
5854 #define $ac_tr_hdr 1
5855 EOF
5856  
5857   CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5858
5859 else
5860   echo "$ac_t""no" 1>&6
5861 fi
5862 done
5863
5864
5865 for ac_hdr in sys/ioctl.h
5866 do
5867 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5868 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5869 echo "configure:5870: checking for $ac_hdr" >&5
5870 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5871   echo $ac_n "(cached) $ac_c" 1>&6
5872 else
5873   cat > conftest.$ac_ext <<EOF
5874 #line 5875 "configure"
5875 #include "confdefs.h"
5876 #include <$ac_hdr>
5877 EOF
5878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5879 { (eval echo configure:5880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5881 if test -z "$ac_err"; then
5882   rm -rf conftest*
5883   eval "ac_cv_header_$ac_safe=yes"
5884 else
5885   echo "$ac_err" >&5
5886   echo "configure: failed program was:" >&5
5887   cat conftest.$ac_ext >&5
5888   rm -rf conftest*
5889   eval "ac_cv_header_$ac_safe=no"
5890 fi
5891 rm -f conftest*
5892 fi
5893 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5894   echo "$ac_t""yes" 1>&6
5895     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5896   cat >> confdefs.h <<EOF
5897 #define $ac_tr_hdr 1
5898 EOF
5899  
5900   CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5901   for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
5902 do
5903 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5904 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5905 echo "configure:5906: checking for $ac_hdr" >&5
5906 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5907   echo $ac_n "(cached) $ac_c" 1>&6
5908 else
5909   cat > conftest.$ac_ext <<EOF
5910 #line 5911 "configure"
5911 #include "confdefs.h"
5912 #include <$ac_hdr>
5913 EOF
5914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5915 { (eval echo configure:5916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5917 if test -z "$ac_err"; then
5918   rm -rf conftest*
5919   eval "ac_cv_header_$ac_safe=yes"
5920 else
5921   echo "$ac_err" >&5
5922   echo "configure: failed program was:" >&5
5923   cat conftest.$ac_ext >&5
5924   rm -rf conftest*
5925   eval "ac_cv_header_$ac_safe=no"
5926 fi
5927 rm -f conftest*
5928 fi
5929 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5930   echo "$ac_t""yes" 1>&6
5931     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5932   cat >> confdefs.h <<EOF
5933 #define $ac_tr_hdr 1
5934 EOF
5935  
5936 else
5937   echo "$ac_t""no" 1>&6
5938 fi
5939 done
5940
5941   BSD_DVD_STRUCT=0
5942   LINUX_DVD_STRUCT=0
5943   OPENBSD_DVD_STRUCT=0
5944         cat > conftest.$ac_ext <<EOF
5945 #line 5946 "configure"
5946 #include "confdefs.h"
5947 #include <sys/cdio.h>
5948 EOF
5949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5950   egrep "dvd_struct" >/dev/null 2>&1; then
5951   rm -rf conftest*
5952   
5953     cat >> confdefs.h <<\EOF
5954 #define DVD_STRUCT_IN_SYS_CDIO_H 1
5955 EOF
5956
5957     cat > conftest.$ac_ext <<EOF
5958 #line 5959 "configure"
5959 #include "confdefs.h"
5960 #include <sys/cdio.h>
5961 EOF
5962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5963   egrep "struct dvd_struct" >/dev/null 2>&1; then
5964   rm -rf conftest*
5965   
5966                     BSD_DVD_STRUCT=1
5967 else
5968   rm -rf conftest*
5969   LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
5970 fi
5971 rm -f conftest*
5972
5973   
5974 fi
5975 rm -f conftest*
5976
5977         cat > conftest.$ac_ext <<EOF
5978 #line 5979 "configure"
5979 #include "confdefs.h"
5980 #include <sys/dvdio.h>
5981 EOF
5982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5983   egrep "dvd_struct" >/dev/null 2>&1; then
5984   rm -rf conftest*
5985   
5986     cat >> confdefs.h <<\EOF
5987 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
5988 EOF
5989
5990     cat > conftest.$ac_ext <<EOF
5991 #line 5992 "configure"
5992 #include "confdefs.h"
5993 #include <sys/dvdio.h>
5994 EOF
5995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5996   egrep "struct dvd_struct" >/dev/null 2>&1; then
5997   rm -rf conftest*
5998   
5999                     BSD_DVD_STRUCT=1
6000 else
6001   rm -rf conftest*
6002   LINUX_DVD_STRUCT=1
6003 fi
6004 rm -f conftest*
6005
6006   
6007 fi
6008 rm -f conftest*
6009
6010         cat > conftest.$ac_ext <<EOF
6011 #line 6012 "configure"
6012 #include "confdefs.h"
6013 #include <linux/cdrom.h>
6014 EOF
6015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6016   egrep "dvd_struct" >/dev/null 2>&1; then
6017   rm -rf conftest*
6018   
6019     cat >> confdefs.h <<\EOF
6020 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
6021 EOF
6022
6023     LINUX_DVD_STRUCT=1
6024   
6025 fi
6026 rm -f conftest*
6027
6028         NEED_BSDI_LIBDVD=0
6029   cat > conftest.$ac_ext <<EOF
6030 #line 6031 "configure"
6031 #include "confdefs.h"
6032 #include <dvd.h>
6033 EOF
6034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6035   egrep "dvd_struct" >/dev/null 2>&1; then
6036   rm -rf conftest*
6037   
6038     cat >> confdefs.h <<\EOF
6039 #define DVD_STRUCT_IN_DVD_H 1
6040 EOF
6041
6042     LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
6043     LINUX_DVD_STRUCT=1
6044   
6045 else
6046   rm -rf conftest*
6047   
6048                 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
6049 do
6050 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6051 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6052 echo "configure:6053: checking for $ac_hdr" >&5
6053 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6054   echo $ac_n "(cached) $ac_c" 1>&6
6055 else
6056   cat > conftest.$ac_ext <<EOF
6057 #line 6058 "configure"
6058 #include "confdefs.h"
6059 #include <$ac_hdr>
6060 EOF
6061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6062 { (eval echo configure:6063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6064 if test -z "$ac_err"; then
6065   rm -rf conftest*
6066   eval "ac_cv_header_$ac_safe=yes"
6067 else
6068   echo "$ac_err" >&5
6069   echo "configure: failed program was:" >&5
6070   cat conftest.$ac_ext >&5
6071   rm -rf conftest*
6072   eval "ac_cv_header_$ac_safe=no"
6073 fi
6074 rm -f conftest*
6075 fi
6076 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6077   echo "$ac_t""yes" 1>&6
6078     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6079   cat >> confdefs.h <<EOF
6080 #define $ac_tr_hdr 1
6081 EOF
6082  
6083       NEED_BSDI_LIBDVD=1
6084       cat >> confdefs.h <<\EOF
6085 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
6086 EOF
6087
6088       SRC_DVDCSS_EXTRA="${SRC_DVDCSS_EXTRA} bsdi_dvdioctl.c"
6089       LINUX_DVD_STRUCT=1
6090     
6091 else
6092   echo "$ac_t""no" 1>&6
6093 fi
6094 done
6095
6096   
6097 fi
6098 rm -f conftest*
6099
6100         ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
6101 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
6102 echo "configure:6103: checking for sys/scsi/scsi_types.h" >&5
6103 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6104   echo $ac_n "(cached) $ac_c" 1>&6
6105 else
6106   cat > conftest.$ac_ext <<EOF
6107 #line 6108 "configure"
6108 #include "confdefs.h"
6109 #include <sys/scsi/scsi_types.h>
6110 EOF
6111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6112 { (eval echo configure:6113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6114 if test -z "$ac_err"; then
6115   rm -rf conftest*
6116   eval "ac_cv_header_$ac_safe=yes"
6117 else
6118   echo "$ac_err" >&5
6119   echo "configure: failed program was:" >&5
6120   cat conftest.$ac_ext >&5
6121   rm -rf conftest*
6122   eval "ac_cv_header_$ac_safe=no"
6123 fi
6124 rm -f conftest*
6125 fi
6126 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6127   echo "$ac_t""yes" 1>&6
6128   
6129     ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
6130 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
6131 echo "configure:6132: checking for sys/scsi/impl/uscsi.h" >&5
6132 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6133   echo $ac_n "(cached) $ac_c" 1>&6
6134 else
6135   cat > conftest.$ac_ext <<EOF
6136 #line 6137 "configure"
6137 #include "confdefs.h"
6138 #include <sys/scsi/impl/uscsi.h>
6139 EOF
6140 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6141 { (eval echo configure:6142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6142 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6143 if test -z "$ac_err"; then
6144   rm -rf conftest*
6145   eval "ac_cv_header_$ac_safe=yes"
6146 else
6147   echo "$ac_err" >&5
6148   echo "configure: failed program was:" >&5
6149   cat conftest.$ac_ext >&5
6150   rm -rf conftest*
6151   eval "ac_cv_header_$ac_safe=no"
6152 fi
6153 rm -f conftest*
6154 fi
6155 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6156   echo "$ac_t""yes" 1>&6
6157   
6158       cat >> confdefs.h <<\EOF
6159 #define SOLARIS_USCSI 1
6160 EOF
6161
6162     
6163 else
6164   echo "$ac_t""no" 1>&6
6165 fi
6166
6167   
6168 else
6169   echo "$ac_t""no" 1>&6
6170 fi
6171
6172         ac_safe=`echo "sys/scsi.h" | sed 'y%./+-%__p_%'`
6173 echo $ac_n "checking for sys/scsi.h""... $ac_c" 1>&6
6174 echo "configure:6175: checking for sys/scsi.h" >&5
6175 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6176   echo $ac_n "(cached) $ac_c" 1>&6
6177 else
6178   cat > conftest.$ac_ext <<EOF
6179 #line 6180 "configure"
6180 #include "confdefs.h"
6181 #include <sys/scsi.h>
6182 EOF
6183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6184 { (eval echo configure:6185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6186 if test -z "$ac_err"; then
6187   rm -rf conftest*
6188   eval "ac_cv_header_$ac_safe=yes"
6189 else
6190   echo "$ac_err" >&5
6191   echo "configure: failed program was:" >&5
6192   cat conftest.$ac_ext >&5
6193   rm -rf conftest*
6194   eval "ac_cv_header_$ac_safe=no"
6195 fi
6196 rm -f conftest*
6197 fi
6198 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6199   echo "$ac_t""yes" 1>&6
6200   
6201     cat > conftest.$ac_ext <<EOF
6202 #line 6203 "configure"
6203 #include "confdefs.h"
6204 #include <sys/scsi.h>
6205 EOF
6206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6207   egrep "sctl_io" >/dev/null 2>&1; then
6208   rm -rf conftest*
6209   
6210       cat >> confdefs.h <<\EOF
6211 #define HPUX_SCTL_IO 1
6212 EOF
6213
6214     
6215 fi
6216 rm -f conftest*
6217
6218   
6219 else
6220   echo "$ac_t""no" 1>&6
6221 fi
6222
6223         if test x$LINUX_DVD_STRUCT = x1; then
6224     cat >> confdefs.h <<\EOF
6225 #define HAVE_LINUX_DVD_STRUCT 1
6226 EOF
6227
6228     if test x$OPENBSD_DVD_STRUCT = x1; then
6229       cat >> confdefs.h <<\EOF
6230 #define HAVE_OPENBSD_DVD_STRUCT 1
6231 EOF
6232
6233     fi
6234   else
6235     if test x$BSD_DVD_STRUCT = x1; then
6236       cat >> confdefs.h <<\EOF
6237 #define HAVE_BSD_DVD_STRUCT 1
6238 EOF
6239
6240     fi
6241   fi
6242
6243 else
6244   echo "$ac_t""no" 1>&6
6245 fi
6246 done
6247
6248
6249 # Check whether --with- or --without- was given.
6250 if test "${with_+set}" = set; then
6251   withval="$with_"
6252   :
6253 fi
6254
6255 # Check whether --with- or --without- was given.
6256 if test "${with_+set}" = set; then
6257   withval="$with_"
6258   :
6259 fi
6260
6261
6262 # Check whether --with-tuning or --without-tuning was given.
6263 if test "${with_tuning+set}" = set; then
6264   withval="$with_tuning"
6265   :
6266 fi
6267
6268 if test "x$withval" != "x"; then
6269     TUNING=$withval
6270 else
6271     if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
6272     else
6273         if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
6274     fi
6275 fi
6276
6277 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
6278 then
6279     ARCH="${ARCH} mmx"
6280     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
6281 fi
6282
6283 # Check whether --enable-optimizations or --disable-optimizations was given.
6284 if test "${enable_optimizations+set}" = set; then
6285   enableval="$enable_optimizations"
6286    if test x$enableval = xno; then OPTIMS=0; fi 
6287 else
6288    OPTIMS=1 
6289 fi
6290
6291
6292 # Check whether --enable-altivec or --disable-altivec was given.
6293 if test "${enable_altivec+set}" = set; then
6294   enableval="$enable_altivec"
6295    if test x$enableval = xyes; then ARCH="${ARCH} altivec";
6296     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
6297 else
6298    if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
6299     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
6300 fi
6301
6302
6303 DEBUG=0
6304 # Check whether --enable-debug or --disable-debug was given.
6305 if test "${enable_debug+set}" = set; then
6306   enableval="$enable_debug"
6307    if test x$enableval = xyes; then DEBUG=1; fi 
6308 fi
6309
6310
6311 # Check whether --enable-release or --disable-release was given.
6312 if test "${enable_release+set}" = set; then
6313   enableval="$enable_release"
6314    if test x$enableval = xyes; then RELEASE=1; fi 
6315 else
6316    VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
6317   LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`"; 
6318 fi
6319
6320
6321
6322 # Check whether --with- or --without- was given.
6323 if test "${with_+set}" = set; then
6324   withval="$with_"
6325   :
6326 fi
6327
6328
6329 NEED_LIBDVDCSS=0
6330 STATIC_LIBDVDCSS=0
6331 DUMMY_LIBDVDCSS=0
6332 # Check whether --with-dvdcss or --without-dvdcss was given.
6333 if test "${with_dvdcss+set}" = set; then
6334   withval="$with_dvdcss"
6335    case "x${withval}" in
6336     xlocal-static|xyes)
6337       # local libdvdcss, statically linked
6338       BUILTINS="${BUILTINS} dvd"
6339       if test x${CAN_BUILD_LIBDVDCSS} = x1
6340       then
6341         NEED_LIBDVDCSS=1
6342         STATIC_LIBDVDCSS=1
6343         CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6344         LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6345       fi
6346     ;;
6347     xlocal-shared)
6348       # local libdvdcss, dynamically linked
6349       PLUGINS="${PLUGINS} dvd"
6350       if test x${CAN_BUILD_LIBDVDCSS} = x1
6351       then
6352         NEED_LIBDVDCSS=1
6353         CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6354         LIB_DVD="${LIB_DVD} -L../../lib -ldvdcss"
6355       fi
6356     ;;
6357     xno)
6358       # don't use libdvdcss at all, build a DVD module that can dlopen() it
6359       PLUGINS="${PLUGINS} dvd"
6360       DUMMY_LIBDVDCSS=1
6361       SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6362       CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6363       CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
6364       LIB_DVD="${LIB_DVD} -ldl"
6365     ;;
6366     *)
6367       # existing libdvdcss
6368       PLUGINS="${PLUGINS} dvd"
6369       if test "x$withval" != "xyes"
6370       then
6371         LIB_DVD="${LIB_DVD} -L"$withval"/lib"
6372         CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
6373       fi
6374       LIB_DVD="${LIB_DVD} -ldvdcss"
6375     esac 
6376 else
6377   # user didn't decide, we choose to use local libdvdcss and link statically
6378   # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
6379    if test x${CAN_BUILD_LIBDVDCSS} = x1
6380     then
6381       BUILTINS="${BUILTINS} dvd"
6382       NEED_LIBDVDCSS=1
6383       STATIC_LIBDVDCSS=1
6384       CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6385       LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6386     else
6387       # XXX: no check for libdl is done, don't try this at home !
6388       PLUGINS="${PLUGINS} dvd"
6389       DUMMY_LIBDVDCSS=1
6390       SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6391       CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6392       LIB_DVD="${LIB_DVD} -ldl"
6393     fi 
6394 fi
6395
6396
6397 if test x${DUMMY_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6398 if test x${STATIC_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6399 # Check whether --with-dvdread or --without-dvdread was given.
6400 if test "${with_dvdread+set}" = set; then
6401   withval="$with_dvdread"
6402    case "x${withval}" in
6403     xlocal-static|xyes)
6404       if test x${STATIC_LIBDVDREAD} = x1
6405       then
6406         BUILTINS="${BUILTINS} dvdread" 
6407         CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6408         LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6409       else
6410         { echo "configure: error: Can't link static dvdread with shared dvdcss" 1>&2; exit 1; }
6411       fi
6412     ;;
6413     xno)
6414     ;;
6415     x)
6416       if test x${STATIC_LIBDVDREAD} = x1
6417       then
6418         #BUILTINS="${BUILTINS} dvdread" 
6419         CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6420         LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6421       else
6422         #PLUGINS="${PLUGINS} dvdread"
6423         CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread  ${CFLAGS_DVD}"
6424         LIB_DVDREAD="${LIB_DVDREAD} -Llib -ldvdread ${LIB_DVD}"
6425       fi 
6426     ;;
6427     *)
6428       if test "x$withval" != "xlocal-shared"
6429       then
6430         LIB_DVDREAD="${LIB_DVDREAD} -L"$withval"/lib"
6431         CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I"$withval"/include"
6432       else
6433         LIB_DVDREAD="${LIB_DVDREAD} -L../../lib"
6434         CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread"
6435       fi
6436       if test x${STATIC_LIBDVDCSS} = x1
6437       then
6438         { echo "configure: error: Can't link shared dvdread with static dvdcss" 1>&2; exit 1; }
6439       else
6440         #PLUGINS="${PLUGINS} dvdread"
6441         CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD}"
6442         LIB_DVDREAD="${LIB_DVDREAD} -ldvdread ${LIB_DVD}"
6443       fi
6444     esac
6445     if test x${DUMMY_LIBDVDCSS} = x1
6446     then
6447       LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -ldl"
6448     else
6449       LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -L../../lib -ldvdcss"
6450     fi 
6451 fi
6452
6453
6454 # Check whether --enable-vcd or --disable-vcd was given.
6455 if test "${enable_vcd+set}" = set; then
6456   enableval="$enable_vcd"
6457   :
6458 fi
6459
6460
6461 if test x$enable_vcd != xno
6462 then
6463   cat > conftest.$ac_ext <<EOF
6464 #line 6465 "configure"
6465 #include "confdefs.h"
6466 #include <linux/cdrom.h>
6467 EOF
6468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6469   egrep "cdrom_msf0" >/dev/null 2>&1; then
6470   rm -rf conftest*
6471   
6472     PLUGINS="${PLUGINS} vcd"
6473   
6474 fi
6475 rm -f conftest*
6476
6477
6478   if test "x${SYS}" = "xbsdi"
6479   then
6480     PLUGINS="${PLUGINS} vcd"
6481   fi
6482
6483   if test "x${SYS}" = "xdarwin"
6484   then
6485     PLUGINS="${PLUGINS} vcd"
6486     LIB_VCD="${LIB_VCD} -framework IOKit -framework CoreFoundation" 
6487   fi
6488 fi
6489
6490 cat > conftest.$ac_ext <<EOF
6491 #line 6492 "configure"
6492 #include "confdefs.h"
6493 #include <netinet/in.h>
6494 EOF
6495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6496   egrep "in6_addr" >/dev/null 2>&1; then
6497   rm -rf conftest*
6498   
6499   PLUGINS="${PLUGINS} ipv6"
6500 fi
6501 rm -f conftest*
6502
6503
6504
6505 # Check whether --with- or --without- was given.
6506 if test "${with_+set}" = set; then
6507   withval="$with_"
6508   :
6509 fi
6510
6511
6512 # Check whether --enable-mad or --disable-mad was given.
6513 if test "${enable_mad+set}" = set; then
6514   enableval="$enable_mad"
6515   :
6516 fi
6517
6518 if test x$enable_mad = xyes
6519 then
6520   PLUGINS="${PLUGINS} mad"
6521   LIB_MAD="${LIB_MAD} -lmad"
6522   # Check whether --with-mad or --without-mad was given.
6523 if test "${with_mad+set}" = set; then
6524   withval="$with_mad"
6525    if test "x$with_val" != "xno" -a "x$with_val" != "x"
6526       then
6527         CFLAGS_MAD="${CFLAGS_MAD} -I$with_val/include"
6528         LIB_MAD="${LIB_MAD} -L$with_val/lib"
6529       fi 
6530 fi
6531
6532   save_CFLAGS=$CFLAGS
6533   save_LDFLAGS=$LDFLAGS
6534   CFLAGS="$CFLAGS $CFLAGS_MAD"
6535   LDFLAGS="$LDFLAGS $LIB_MAD"
6536   for ac_hdr in mad.h
6537 do
6538 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6540 echo "configure:6541: checking for $ac_hdr" >&5
6541 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6542   echo $ac_n "(cached) $ac_c" 1>&6
6543 else
6544   cat > conftest.$ac_ext <<EOF
6545 #line 6546 "configure"
6546 #include "confdefs.h"
6547 #include <$ac_hdr>
6548 EOF
6549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6550 { (eval echo configure:6551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6552 if test -z "$ac_err"; then
6553   rm -rf conftest*
6554   eval "ac_cv_header_$ac_safe=yes"
6555 else
6556   echo "$ac_err" >&5
6557   echo "configure: failed program was:" >&5
6558   cat conftest.$ac_ext >&5
6559   rm -rf conftest*
6560   eval "ac_cv_header_$ac_safe=no"
6561 fi
6562 rm -f conftest*
6563 fi
6564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6565   echo "$ac_t""yes" 1>&6
6566     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6567   cat >> confdefs.h <<EOF
6568 #define $ac_tr_hdr 1
6569 EOF
6570  
6571 else
6572   echo "$ac_t""no" 1>&6
6573 echo "Cannot find development headers for libmad..."
6574     exit 1
6575   
6576 fi
6577 done
6578
6579   echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6580 echo "configure:6581: checking for mad_bit_init in -lmad" >&5
6581 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6582 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6583   echo $ac_n "(cached) $ac_c" 1>&6
6584 else
6585   ac_save_LIBS="$LIBS"
6586 LIBS="-lmad  $LIBS"
6587 cat > conftest.$ac_ext <<EOF
6588 #line 6589 "configure"
6589 #include "confdefs.h"
6590 /* Override any gcc2 internal prototype to avoid an error.  */
6591 /* We use char because int might match the return type of a gcc2
6592     builtin and then its argument prototype would still apply.  */
6593 char mad_bit_init();
6594
6595 int main() {
6596 mad_bit_init()
6597 ; return 0; }
6598 EOF
6599 if { (eval echo configure:6600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6600   rm -rf conftest*
6601   eval "ac_cv_lib_$ac_lib_var=yes"
6602 else
6603   echo "configure: failed program was:" >&5
6604   cat conftest.$ac_ext >&5
6605   rm -rf conftest*
6606   eval "ac_cv_lib_$ac_lib_var=no"
6607 fi
6608 rm -f conftest*
6609 LIBS="$ac_save_LIBS"
6610
6611 fi
6612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6613   echo "$ac_t""yes" 1>&6
6614     ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6615     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6616   cat >> confdefs.h <<EOF
6617 #define $ac_tr_lib 1
6618 EOF
6619
6620   LIBS="-lmad $LIBS"
6621
6622 else
6623   echo "$ac_t""no" 1>&6
6624  echo "Cannot find libmad library..."
6625     exit 1
6626   
6627 fi
6628
6629   CFLAGS=$save_CFLAGS
6630   LDFLAGS=$save_LDFLAGS
6631 fi
6632
6633 if test x$SYS = xbeos
6634 then
6635     PLUGINS="${PLUGINS} beos"
6636
6637 else
6638
6639 # Check whether --enable-a52 or --disable-a52 was given.
6640 if test "${enable_a52+set}" = set; then
6641   enableval="$enable_a52"
6642   :
6643 fi
6644
6645 if test "x$enableval" != "xno" -a x$SYS != xmingw32
6646   then
6647     for ac_hdr in a52dec/a52.h
6648 do
6649 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6650 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6651 echo "configure:6652: checking for $ac_hdr" >&5
6652 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6653   echo $ac_n "(cached) $ac_c" 1>&6
6654 else
6655   cat > conftest.$ac_ext <<EOF
6656 #line 6657 "configure"
6657 #include "confdefs.h"
6658 #include <$ac_hdr>
6659 EOF
6660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6661 { (eval echo configure:6662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6662 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6663 if test -z "$ac_err"; then
6664   rm -rf conftest*
6665   eval "ac_cv_header_$ac_safe=yes"
6666 else
6667   echo "$ac_err" >&5
6668   echo "configure: failed program was:" >&5
6669   cat conftest.$ac_ext >&5
6670   rm -rf conftest*
6671   eval "ac_cv_header_$ac_safe=no"
6672 fi
6673 rm -f conftest*
6674 fi
6675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6676   echo "$ac_t""yes" 1>&6
6677     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6678   cat >> confdefs.h <<EOF
6679 #define $ac_tr_hdr 1
6680 EOF
6681  
6682       BUILTINS="${BUILTINS} a52"
6683       LIB_A52="${LIB_A52} -la52"
6684      
6685 else
6686   echo "$ac_t""no" 1>&6
6687 fi
6688 done
6689
6690 fi
6691
6692
6693 # Check whether --with- or --without- was given.
6694 if test "${with_+set}" = set; then
6695   withval="$with_"
6696   :
6697 fi
6698
6699
6700 # Check whether --enable-x11 or --disable-x11 was given.
6701 if test "${enable_x11+set}" = set; then
6702   enableval="$enable_x11"
6703   :
6704 fi
6705
6706 if test x$enable_x11 != xno &&
6707   (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6708   if test x$x_includes = xNONE; then
6709     x_includes=/usr/X11R6/include
6710   fi
6711   if test x$x_libraries = xNONE; then
6712     x_libraries=/usr/X11R6/lib
6713   fi
6714   saved_CPPFLAGS=$CPPFLAGS
6715   CPPFLAGS="$CPPFLAGS -I$x_includes"
6716   for ac_hdr in X11/Xlib.h
6717 do
6718 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6719 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6720 echo "configure:6721: checking for $ac_hdr" >&5
6721 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6722   echo $ac_n "(cached) $ac_c" 1>&6
6723 else
6724   cat > conftest.$ac_ext <<EOF
6725 #line 6726 "configure"
6726 #include "confdefs.h"
6727 #include <$ac_hdr>
6728 EOF
6729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6730 { (eval echo configure:6731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6731 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6732 if test -z "$ac_err"; then
6733   rm -rf conftest*
6734   eval "ac_cv_header_$ac_safe=yes"
6735 else
6736   echo "$ac_err" >&5
6737   echo "configure: failed program was:" >&5
6738   cat conftest.$ac_ext >&5
6739   rm -rf conftest*
6740   eval "ac_cv_header_$ac_safe=no"
6741 fi
6742 rm -f conftest*
6743 fi
6744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6745   echo "$ac_t""yes" 1>&6
6746     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6747   cat >> confdefs.h <<EOF
6748 #define $ac_tr_hdr 1
6749 EOF
6750  
6751     PLUGINS="${PLUGINS} x11"
6752     LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
6753     CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
6754   
6755 else
6756   echo "$ac_t""no" 1>&6
6757 fi
6758 done
6759
6760   CPPFLAGS=$saved_CPPFLAGS
6761 fi
6762
6763 # Check whether --enable-xvideo or --disable-xvideo was given.
6764 if test "${enable_xvideo+set}" = set; then
6765   enableval="$enable_xvideo"
6766   :
6767 fi
6768
6769 if test x$enable_xvideo != xno &&
6770   (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6771   if test x$x_includes = xNONE; then
6772     x_includes=/usr/X11R6/include
6773   fi
6774   if test x$x_libraries = xNONE; then
6775     x_libraries=/usr/X11R6/lib
6776   fi
6777   saved_CPPFLAGS=$CPPFLAGS
6778   CPPFLAGS="$CPPFLAGS -I$x_includes"
6779   for ac_hdr in X11/extensions/Xv.h
6780 do
6781 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6782 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6783 echo "configure:6784: checking for $ac_hdr" >&5
6784 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6785   echo $ac_n "(cached) $ac_c" 1>&6
6786 else
6787   cat > conftest.$ac_ext <<EOF
6788 #line 6789 "configure"
6789 #include "confdefs.h"
6790 #include <$ac_hdr>
6791 EOF
6792 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6793 { (eval echo configure:6794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6794 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6795 if test -z "$ac_err"; then
6796   rm -rf conftest*
6797   eval "ac_cv_header_$ac_safe=yes"
6798 else
6799   echo "$ac_err" >&5
6800   echo "configure: failed program was:" >&5
6801   cat conftest.$ac_ext >&5
6802   rm -rf conftest*
6803   eval "ac_cv_header_$ac_safe=no"
6804 fi
6805 rm -f conftest*
6806 fi
6807 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6808   echo "$ac_t""yes" 1>&6
6809     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6810   cat >> confdefs.h <<EOF
6811 #define $ac_tr_hdr 1
6812 EOF
6813  
6814     saved_CFLAGS=$CFLAGS
6815     CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
6816     echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6817 echo "configure:6818: checking for XvSetPortAttribute in -lXv_pic" >&5
6818 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6820   echo $ac_n "(cached) $ac_c" 1>&6
6821 else
6822   ac_save_LIBS="$LIBS"
6823 LIBS="-lXv_pic  $LIBS"
6824 cat > conftest.$ac_ext <<EOF
6825 #line 6826 "configure"
6826 #include "confdefs.h"
6827 /* Override any gcc2 internal prototype to avoid an error.  */
6828 /* We use char because int might match the return type of a gcc2
6829     builtin and then its argument prototype would still apply.  */
6830 char XvSetPortAttribute();
6831
6832 int main() {
6833 XvSetPortAttribute()
6834 ; return 0; }
6835 EOF
6836 if { (eval echo configure:6837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6837   rm -rf conftest*
6838   eval "ac_cv_lib_$ac_lib_var=yes"
6839 else
6840   echo "configure: failed program was:" >&5
6841   cat conftest.$ac_ext >&5
6842   rm -rf conftest*
6843   eval "ac_cv_lib_$ac_lib_var=no"
6844 fi
6845 rm -f conftest*
6846 LIBS="$ac_save_LIBS"
6847
6848 fi
6849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6850   echo "$ac_t""yes" 1>&6
6851   # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6852       PLUGINS="${PLUGINS} xvideo"
6853       LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv_pic"
6854       CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
6855 else
6856   echo "$ac_t""no" 1>&6
6857 # We don't have Xv_pic, let's make xvideo.a as builtin
6858       BUILTINS="${BUILTINS} xvideo"
6859       LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
6860       CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
6861 fi
6862
6863     CFLAGS=$saved_CFLAGS
6864   
6865   CPPFLAGS=$saved_CPPFLAGS
6866 else
6867   echo "$ac_t""no" 1>&6
6868 fi
6869 done
6870
6871 fi
6872
6873 # Check whether --enable-sdl or --disable-sdl was given.
6874 if test "${enable_sdl+set}" = set; then
6875   enableval="$enable_sdl"
6876   :
6877 fi
6878
6879 if test "x$enable_sdl" != "xno"
6880 then
6881   SDL_PATH=$PATH
6882   # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6883 if test "${with_sdl_config_path+set}" = set; then
6884   withval="$with_sdl_config_path"
6885    if test "x$withval" != "xno"
6886       then
6887         SDL_PATH=$withval:$PATH
6888       fi 
6889 fi
6890
6891   # Extract the first word of "sdl12-config", so it can be a program name with args.
6892 set dummy sdl12-config; ac_word=$2
6893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6894 echo "configure:6895: checking for $ac_word" >&5
6895 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6896   echo $ac_n "(cached) $ac_c" 1>&6
6897 else
6898   case "$SDL12_CONFIG" in
6899   /*)
6900   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
6901   ;;
6902   ?:/*)                  
6903   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
6904   ;;
6905   *)
6906   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6907   ac_dummy="$SDL_PATH"
6908   for ac_dir in $ac_dummy; do 
6909     test -z "$ac_dir" && ac_dir=.
6910     if test -f $ac_dir/$ac_word; then
6911       ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
6912       break
6913     fi
6914   done
6915   IFS="$ac_save_ifs"
6916   test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
6917   ;;
6918 esac
6919 fi
6920 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
6921 if test -n "$SDL12_CONFIG"; then
6922   echo "$ac_t""$SDL12_CONFIG" 1>&6
6923 else
6924   echo "$ac_t""no" 1>&6
6925 fi
6926
6927   SDL_CONFIG=${SDL12_CONFIG}
6928   SDL_HEADER="SDL12/SDL.h"
6929   if test x${SDL_CONFIG} = xno
6930   then
6931     # Extract the first word of "sdl11-config", so it can be a program name with args.
6932 set dummy sdl11-config; ac_word=$2
6933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6934 echo "configure:6935: checking for $ac_word" >&5
6935 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
6936   echo $ac_n "(cached) $ac_c" 1>&6
6937 else
6938   case "$SDL11_CONFIG" in
6939   /*)
6940   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
6941   ;;
6942   ?:/*)                  
6943   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
6944   ;;
6945   *)
6946   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6947   ac_dummy="$SDL_PATH"
6948   for ac_dir in $ac_dummy; do 
6949     test -z "$ac_dir" && ac_dir=.
6950     if test -f $ac_dir/$ac_word; then
6951       ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
6952       break
6953     fi
6954   done
6955   IFS="$ac_save_ifs"
6956   test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
6957   ;;
6958 esac
6959 fi
6960 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
6961 if test -n "$SDL11_CONFIG"; then
6962   echo "$ac_t""$SDL11_CONFIG" 1>&6
6963 else
6964   echo "$ac_t""no" 1>&6
6965 fi
6966
6967     SDL_CONFIG=${SDL11_CONFIG}
6968     SDL_HEADER="SDL11/SDL.h"
6969   fi
6970   if test x${SDL_CONFIG} = xno
6971   then
6972     # Extract the first word of "sdl-config", so it can be a program name with args.
6973 set dummy sdl-config; ac_word=$2
6974 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6975 echo "configure:6976: checking for $ac_word" >&5
6976 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
6977   echo $ac_n "(cached) $ac_c" 1>&6
6978 else
6979   case "$SDL_CONFIG" in
6980   /*)
6981   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6982   ;;
6983   ?:/*)                  
6984   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
6985   ;;
6986   *)
6987   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6988   ac_dummy="$SDL_PATH"
6989   for ac_dir in $ac_dummy; do 
6990     test -z "$ac_dir" && ac_dir=.
6991     if test -f $ac_dir/$ac_word; then
6992       ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
6993       break
6994     fi
6995   done
6996   IFS="$ac_save_ifs"
6997   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
6998   ;;
6999 esac
7000 fi
7001 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7002 if test -n "$SDL_CONFIG"; then
7003   echo "$ac_t""$SDL_CONFIG" 1>&6
7004 else
7005   echo "$ac_t""no" 1>&6
7006 fi
7007
7008     SDL_HEADER="SDL/SDL.h"
7009   fi
7010   if test x${SDL_CONFIG} != xno
7011   then
7012     PLUGINS="${PLUGINS} sdl"
7013     CFLAGS_SDL="${CFLAGS_SDL} `${SDL_CONFIG} --cflags`"
7014     LIB_SDL="${LIB_SDL} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7015     save_CPPFLAGS=$CPPFLAGS
7016     CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
7017     for ac_hdr in ${SDL_HEADER}
7018 do
7019 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7020 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7021 echo "configure:7022: checking for $ac_hdr" >&5
7022 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7023   echo $ac_n "(cached) $ac_c" 1>&6
7024 else
7025   cat > conftest.$ac_ext <<EOF
7026 #line 7027 "configure"
7027 #include "confdefs.h"
7028 #include <$ac_hdr>
7029 EOF
7030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7031 { (eval echo configure:7032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7033 if test -z "$ac_err"; then
7034   rm -rf conftest*
7035   eval "ac_cv_header_$ac_safe=yes"
7036 else
7037   echo "$ac_err" >&5
7038   echo "configure: failed program was:" >&5
7039   cat conftest.$ac_ext >&5
7040   rm -rf conftest*
7041   eval "ac_cv_header_$ac_safe=no"
7042 fi
7043 rm -f conftest*
7044 fi
7045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7046   echo "$ac_t""yes" 1>&6
7047     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7048   cat >> confdefs.h <<EOF
7049 #define $ac_tr_hdr 1
7050 EOF
7051  cat >> confdefs.h <<EOF
7052 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7053 EOF
7054
7055 else
7056   echo "$ac_t""no" 1>&6
7057 { echo "configure: error: The development package for SDL is not installed. 
7058 Please install it and try again. Alternatively you can also configure with 
7059 --disable-sdl." 1>&2; exit 1; }
7060       
7061 fi
7062 done
7063
7064     CPPFLAGS=$save_CPPFLAGS
7065     if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7066     then
7067       { echo "configure: error: The development package for SDL is not installed.
7068 Please install it and try again. Alternatively you can also configure with
7069 --disable-sdl." 1>&2; exit 1; }
7070     fi
7071   elif test "x$enable_sdl" =  "xyes"
7072   then
7073     { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7074 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7075     " 1>&2; exit 1; }
7076   fi
7077 fi
7078
7079 # Check whether --enable-directx or --disable-directx was given.
7080 if test "${enable_directx+set}" = set; then
7081   enableval="$enable_directx"
7082   :
7083 fi
7084
7085 if test "x$enableval" != "xno"
7086 then
7087   if test x$SYS = xmingw32
7088   then
7089     # Check whether --with-directx or --without-directx was given.
7090 if test "${with_directx+set}" = set; then
7091   withval="$with_directx"
7092   :
7093 fi
7094
7095     if test "x$with_directx" = "x"
7096     then
7097       for ac_hdr in ddraw.h
7098 do
7099 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7100 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7101 echo "configure:7102: checking for $ac_hdr" >&5
7102 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7103   echo $ac_n "(cached) $ac_c" 1>&6
7104 else
7105   cat > conftest.$ac_ext <<EOF
7106 #line 7107 "configure"
7107 #include "confdefs.h"
7108 #include <$ac_hdr>
7109 EOF
7110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7111 { (eval echo configure:7112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7113 if test -z "$ac_err"; then
7114   rm -rf conftest*
7115   eval "ac_cv_header_$ac_safe=yes"
7116 else
7117   echo "$ac_err" >&5
7118   echo "configure: failed program was:" >&5
7119   cat conftest.$ac_ext >&5
7120   rm -rf conftest*
7121   eval "ac_cv_header_$ac_safe=no"
7122 fi
7123 rm -f conftest*
7124 fi
7125 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7126   echo "$ac_t""yes" 1>&6
7127     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7128   cat >> confdefs.h <<EOF
7129 #define $ac_tr_hdr 1
7130 EOF
7131   PLUGINS="${PLUGINS} directx"
7132         LIB_DIRECTX="${LIB_DIRECTX} -lgdi32" 
7133 else
7134   echo "$ac_t""no" 1>&6
7135 fi
7136 done
7137
7138     else
7139       echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
7140 echo "configure:7141: checking for directX headers in ${withval}" >&5
7141       if test -f ${withval}/ddraw.h
7142       then
7143         PLUGINS="${PLUGINS} directx"
7144         LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32"
7145         INCLUDE="${INCLUDE} -I${withval}"
7146         echo "$ac_t""yes" 1>&6
7147       else
7148         echo "$ac_t""no" 1>&6
7149         { echo "configure: error: Cannot find ${withval}/ddraw.h!" 1>&2; exit 1; }
7150       fi
7151     fi
7152   fi
7153 fi
7154
7155 # Check whether --enable-fb or --disable-fb was given.
7156 if test "${enable_fb+set}" = set; then
7157   enableval="$enable_fb"
7158   :
7159 fi
7160
7161     if test x$enable_fb != xno
7162     then
7163       for ac_hdr in linux/fb.h
7164 do
7165 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7166 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7167 echo "configure:7168: checking for $ac_hdr" >&5
7168 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7169   echo $ac_n "(cached) $ac_c" 1>&6
7170 else
7171   cat > conftest.$ac_ext <<EOF
7172 #line 7173 "configure"
7173 #include "confdefs.h"
7174 #include <$ac_hdr>
7175 EOF
7176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7177 { (eval echo configure:7178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7179 if test -z "$ac_err"; then
7180   rm -rf conftest*
7181   eval "ac_cv_header_$ac_safe=yes"
7182 else
7183   echo "$ac_err" >&5
7184   echo "configure: failed program was:" >&5
7185   cat conftest.$ac_ext >&5
7186   rm -rf conftest*
7187   eval "ac_cv_header_$ac_safe=no"
7188 fi
7189 rm -f conftest*
7190 fi
7191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7192   echo "$ac_t""yes" 1>&6
7193     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7194   cat >> confdefs.h <<EOF
7195 #define $ac_tr_hdr 1
7196 EOF
7197  
7198         PLUGINS="${PLUGINS} fb"
7199       
7200 else
7201   echo "$ac_t""no" 1>&6
7202 fi
7203 done
7204
7205     fi
7206
7207 # Check whether --enable-mga or --disable-mga was given.
7208 if test "${enable_mga+set}" = set; then
7209   enableval="$enable_mga"
7210    if test x$enable_mga = xyes
7211     then
7212       PLUGINS="${PLUGINS} mga xmga"
7213     fi 
7214 fi
7215
7216
7217 # Check whether --enable-ggi or --disable-ggi was given.
7218 if test "${enable_ggi+set}" = set; then
7219   enableval="$enable_ggi"
7220   :
7221 fi
7222
7223 if test x$enable_ggi = xyes
7224 then
7225   PLUGINS="${PLUGINS} ggi"
7226   LIB_GGI="${LIB_GGI} -lggi"
7227   # Check whether --with-ggi or --without-ggi was given.
7228 if test "${with_ggi+set}" = set; then
7229   withval="$with_ggi"
7230    if test "x$with_val" != "xno" -a "x$with_val" != "x"
7231       then
7232         CFLAGS_GGI="${CFLAGS_GGI} -I$with_val/include"
7233         LIB_GGI="${LIB_GGI} -L$with_val/lib"
7234       fi 
7235 fi
7236
7237 fi
7238
7239 # Check whether --enable-glide or --disable-glide was given.
7240 if test "${enable_glide+set}" = set; then
7241   enableval="$enable_glide"
7242   :
7243 fi
7244
7245 if test x$enable_glide = xyes
7246 then
7247   PLUGINS="${PLUGINS} glide"
7248   LIB_GLIDE="${LIB_GLIDE} -lglide2x -lm"
7249   CFLAGS_GLIDE="${CFLAGS_GLIDE} -I/usr/include/glide"
7250   # Check whether --with-glide or --without-glide was given.
7251 if test "${with_glide+set}" = set; then
7252   withval="$with_glide"
7253    if test "x$with_val" != "xno" -a "x$with_val" != "x"
7254       then
7255         CFLAGS_GLIDE="${CFLAGS_GLIDE} -I$with_val/include"
7256         LIB_GLIDE="${LIB_GLIDE} -L$with_val/lib"
7257       fi 
7258 fi
7259
7260 fi
7261
7262 # Check whether --enable-aa or --disable-aa was given.
7263 if test "${enable_aa+set}" = set; then
7264   enableval="$enable_aa"
7265   :
7266 fi
7267
7268 if test x$enable_aa = xyes
7269 then
7270   ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7271 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7272 echo "configure:7273: checking for aalib.h" >&5
7273 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7274   echo $ac_n "(cached) $ac_c" 1>&6
7275 else
7276   cat > conftest.$ac_ext <<EOF
7277 #line 7278 "configure"
7278 #include "confdefs.h"
7279 #include <aalib.h>
7280 EOF
7281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7282 { (eval echo configure:7283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7284 if test -z "$ac_err"; then
7285   rm -rf conftest*
7286   eval "ac_cv_header_$ac_safe=yes"
7287 else
7288   echo "$ac_err" >&5
7289   echo "configure: failed program was:" >&5
7290   cat conftest.$ac_ext >&5
7291   rm -rf conftest*
7292   eval "ac_cv_header_$ac_safe=no"
7293 fi
7294 rm -f conftest*
7295 fi
7296 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7297   echo "$ac_t""yes" 1>&6
7298   have_aa="true"
7299 else
7300   echo "$ac_t""no" 1>&6
7301 have_aa="false"
7302 fi
7303
7304   if test x$have_aa = xtrue
7305   then
7306     PLUGINS="${PLUGINS} aa"
7307     LIB_AA="${LIB_AA} -laa"
7308   fi
7309 fi
7310
7311
7312 # Check whether --with- or --without- was given.
7313 if test "${with_+set}" = set; then
7314   withval="$with_"
7315   :
7316 fi
7317
7318
7319 # Check whether --enable-dsp or --disable-dsp was given.
7320 if test "${enable_dsp+set}" = set; then
7321   enableval="$enable_dsp"
7322   :
7323 fi
7324
7325
7326 if test x$enable_dsp != xno &&
7327   (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7328 then
7329   for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7330 do
7331 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7333 echo "configure:7334: checking for $ac_hdr" >&5
7334 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7335   echo $ac_n "(cached) $ac_c" 1>&6
7336 else
7337   cat > conftest.$ac_ext <<EOF
7338 #line 7339 "configure"
7339 #include "confdefs.h"
7340 #include <$ac_hdr>
7341 EOF
7342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7343 { (eval echo configure:7344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7345 if test -z "$ac_err"; then
7346   rm -rf conftest*
7347   eval "ac_cv_header_$ac_safe=yes"
7348 else
7349   echo "$ac_err" >&5
7350   echo "configure: failed program was:" >&5
7351   cat conftest.$ac_ext >&5
7352   rm -rf conftest*
7353   eval "ac_cv_header_$ac_safe=no"
7354 fi
7355 rm -f conftest*
7356 fi
7357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7358   echo "$ac_t""yes" 1>&6
7359     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7360   cat >> confdefs.h <<EOF
7361 #define $ac_tr_hdr 1
7362 EOF
7363  
7364     PLUGINS="${PLUGINS} dsp"
7365     echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7366 echo "configure:7367: checking for main in -lossaudio" >&5
7367 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7368 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7369   echo $ac_n "(cached) $ac_c" 1>&6
7370 else
7371   ac_save_LIBS="$LIBS"
7372 LIBS="-lossaudio  $LIBS"
7373 cat > conftest.$ac_ext <<EOF
7374 #line 7375 "configure"
7375 #include "confdefs.h"
7376
7377 int main() {
7378 main()
7379 ; return 0; }
7380 EOF
7381 if { (eval echo configure:7382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7382   rm -rf conftest*
7383   eval "ac_cv_lib_$ac_lib_var=yes"
7384 else
7385   echo "configure: failed program was:" >&5
7386   cat conftest.$ac_ext >&5
7387   rm -rf conftest*
7388   eval "ac_cv_lib_$ac_lib_var=no"
7389 fi
7390 rm -f conftest*
7391 LIBS="$ac_save_LIBS"
7392
7393 fi
7394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7395   echo "$ac_t""yes" 1>&6
7396   LIB_DSP="${LIB_DSP} -lossaudio"
7397 else
7398   echo "$ac_t""no" 1>&6
7399 fi
7400
7401   
7402 else
7403   echo "$ac_t""no" 1>&6
7404 fi
7405 done
7406
7407 fi
7408
7409 # Check whether --enable-esd or --disable-esd was given.
7410 if test "${enable_esd+set}" = set; then
7411   enableval="$enable_esd"
7412   if test x$enable_esd = xyes
7413    then
7414      # Extract the first word of "esd-config", so it can be a program name with args.
7415 set dummy esd-config; ac_word=$2
7416 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7417 echo "configure:7418: checking for $ac_word" >&5
7418 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7419   echo $ac_n "(cached) $ac_c" 1>&6
7420 else
7421   case "$ESD_CONFIG" in
7422   /*)
7423   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7424   ;;
7425   ?:/*)                  
7426   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7427   ;;
7428   *)
7429   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7430   ac_dummy="$PATH"
7431   for ac_dir in $ac_dummy; do 
7432     test -z "$ac_dir" && ac_dir=.
7433     if test -f $ac_dir/$ac_word; then
7434       ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7435       break
7436     fi
7437   done
7438   IFS="$ac_save_ifs"
7439   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7440   ;;
7441 esac
7442 fi
7443 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7444 if test -n "$ESD_CONFIG"; then
7445   echo "$ac_t""$ESD_CONFIG" 1>&6
7446 else
7447   echo "$ac_t""no" 1>&6
7448 fi
7449
7450      if test x${ESD_CONFIG} != xno
7451      then
7452        PLUGINS="${PLUGINS} esd"
7453        CFLAGS_ESD="${CFLAGS_ESD} `${ESD_CONFIG} --cflags`"
7454        LIB_ESD="${LIB_ESD} `${ESD_CONFIG} --libs`"
7455      fi
7456    fi
7457 fi
7458
7459
7460 # Check whether --enable-arts or --disable-arts was given.
7461 if test "${enable_arts+set}" = set; then
7462   enableval="$enable_arts"
7463   if test x$enable_arts = xyes
7464    then
7465      # Extract the first word of "artsc-config", so it can be a program name with args.
7466 set dummy artsc-config; ac_word=$2
7467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7468 echo "configure:7469: checking for $ac_word" >&5
7469 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7470   echo $ac_n "(cached) $ac_c" 1>&6
7471 else
7472   case "$ARTS_CONFIG" in
7473   /*)
7474   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7475   ;;
7476   ?:/*)                  
7477   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7478   ;;
7479   *)
7480   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7481   ac_dummy="$PATH"
7482   for ac_dir in $ac_dummy; do 
7483     test -z "$ac_dir" && ac_dir=.
7484     if test -f $ac_dir/$ac_word; then
7485       ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7486       break
7487     fi
7488   done
7489   IFS="$ac_save_ifs"
7490   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7491   ;;
7492 esac
7493 fi
7494 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7495 if test -n "$ARTS_CONFIG"; then
7496   echo "$ac_t""$ARTS_CONFIG" 1>&6
7497 else
7498   echo "$ac_t""no" 1>&6
7499 fi
7500
7501      if test x${ARTS_CONFIG} != xno
7502      then
7503        PLUGINS="${PLUGINS} arts"
7504        CFLAGS_ARTS="${CFLAGS_ARTS} `${ARTS_CONFIG} --cflags`"
7505        LIB_ARTS="${LIB_ARTS} `${ARTS_CONFIG} --libs `"
7506      fi
7507    fi
7508 fi
7509
7510
7511 # Check whether --enable-alsa or --disable-alsa was given.
7512 if test "${enable_alsa+set}" = set; then
7513   enableval="$enable_alsa"
7514   if test x$enable_alsa = xyes
7515    then
7516      ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7517 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7518 echo "configure:7519: checking for alsa/asoundlib.h" >&5
7519 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7520   echo $ac_n "(cached) $ac_c" 1>&6
7521 else
7522   cat > conftest.$ac_ext <<EOF
7523 #line 7524 "configure"
7524 #include "confdefs.h"
7525 #include <alsa/asoundlib.h>
7526 EOF
7527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7528 { (eval echo configure:7529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7529 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7530 if test -z "$ac_err"; then
7531   rm -rf conftest*
7532   eval "ac_cv_header_$ac_safe=yes"
7533 else
7534   echo "$ac_err" >&5
7535   echo "configure: failed program was:" >&5
7536   cat conftest.$ac_ext >&5
7537   rm -rf conftest*
7538   eval "ac_cv_header_$ac_safe=no"
7539 fi
7540 rm -f conftest*
7541 fi
7542 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7543   echo "$ac_t""yes" 1>&6
7544   echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7545 echo "configure:7546: checking for main in -lasound" >&5
7546 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7547 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7548   echo $ac_n "(cached) $ac_c" 1>&6
7549 else
7550   ac_save_LIBS="$LIBS"
7551 LIBS="-lasound  $LIBS"
7552 cat > conftest.$ac_ext <<EOF
7553 #line 7554 "configure"
7554 #include "confdefs.h"
7555
7556 int main() {
7557 main()
7558 ; return 0; }
7559 EOF
7560 if { (eval echo configure:7561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7561   rm -rf conftest*
7562   eval "ac_cv_lib_$ac_lib_var=yes"
7563 else
7564   echo "configure: failed program was:" >&5
7565   cat conftest.$ac_ext >&5
7566   rm -rf conftest*
7567   eval "ac_cv_lib_$ac_lib_var=no"
7568 fi
7569 rm -f conftest*
7570 LIBS="$ac_save_LIBS"
7571
7572 fi
7573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7574   echo "$ac_t""yes" 1>&6
7575   have_alsa="true"
7576 else
7577   echo "$ac_t""no" 1>&6
7578 have_alsa="false"
7579 fi
7580
7581 else
7582   echo "$ac_t""no" 1>&6
7583 have_alsa="false"
7584 fi
7585
7586      if test x$have_alsa = xtrue
7587      then
7588        PLUGINS="${PLUGINS} alsa"
7589        LIB_ALSA="${LIB_ALSA} -lasound -lm -ldl"
7590      fi
7591    fi
7592 fi
7593
7594
7595 # Check whether --enable-waveout or --disable-waveout was given.
7596 if test "${enable_waveout+set}" = set; then
7597   enableval="$enable_waveout"
7598   :
7599 fi
7600
7601 if test "x$enableval" != "xno" -a x$SYS = xmingw32
7602   then
7603     PLUGINS="${PLUGINS} waveout"
7604     LIB_WAVEOUT="-lwinmm"
7605 fi
7606
7607
7608 # Check whether --with- or --without- was given.
7609 if test "${with_+set}" = set; then
7610   withval="$with_"
7611   :
7612 fi
7613
7614
7615 # Check whether --enable-gtk or --disable-gtk was given.
7616 if test "${enable_gtk+set}" = set; then
7617   enableval="$enable_gtk"
7618   :
7619 fi
7620
7621 if test x$enable_gtk != xno
7622 then
7623   GTK_PATH=$PATH
7624   # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7625 if test "${with_gtk_config_path+set}" = set; then
7626   withval="$with_gtk_config_path"
7627    if test "x$withval" != "xno"
7628       then
7629         GTK_PATH=$withval:$PATH
7630       fi 
7631 fi
7632
7633   # look for gtk-config
7634   # Extract the first word of "gtk12-config", so it can be a program name with args.
7635 set dummy gtk12-config; ac_word=$2
7636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7637 echo "configure:7638: checking for $ac_word" >&5
7638 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7639   echo $ac_n "(cached) $ac_c" 1>&6
7640 else
7641   case "$GTK12_CONFIG" in
7642   /*)
7643   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7644   ;;
7645   ?:/*)                  
7646   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7647   ;;
7648   *)
7649   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7650   ac_dummy="$GTK_PATH"
7651   for ac_dir in $ac_dummy; do 
7652     test -z "$ac_dir" && ac_dir=.
7653     if test -f $ac_dir/$ac_word; then
7654       ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7655       break
7656     fi
7657   done
7658   IFS="$ac_save_ifs"
7659   test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7660   ;;
7661 esac
7662 fi
7663 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7664 if test -n "$GTK12_CONFIG"; then
7665   echo "$ac_t""$GTK12_CONFIG" 1>&6
7666 else
7667   echo "$ac_t""no" 1>&6
7668 fi
7669
7670   GTK_CONFIG=${GTK12_CONFIG}
7671   if test x${GTK_CONFIG} = xno
7672   then
7673     # Extract the first word of "gtk-config", so it can be a program name with args.
7674 set dummy gtk-config; ac_word=$2
7675 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7676 echo "configure:7677: checking for $ac_word" >&5
7677 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7678   echo $ac_n "(cached) $ac_c" 1>&6
7679 else
7680   case "$GTK_CONFIG" in
7681   /*)
7682   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7683   ;;
7684   ?:/*)                  
7685   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7686   ;;
7687   *)
7688   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7689   ac_dummy="$GTK_PATH"
7690   for ac_dir in $ac_dummy; do 
7691     test -z "$ac_dir" && ac_dir=.
7692     if test -f $ac_dir/$ac_word; then
7693       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7694       break
7695     fi
7696   done
7697   IFS="$ac_save_ifs"
7698   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7699   ;;
7700 esac
7701 fi
7702 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7703 if test -n "$GTK_CONFIG"; then
7704   echo "$ac_t""$GTK_CONFIG" 1>&6
7705 else
7706   echo "$ac_t""no" 1>&6
7707 fi
7708
7709   fi
7710   if test x${GTK_CONFIG} != xno
7711   then
7712     if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7713     then
7714       { 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; }
7715     fi
7716     CFLAGS_GTK="${CFLAGS_GTK} `${GTK_CONFIG} --cflags gtk`"
7717     LIB_GTK="${LIB_GTK} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7718     # now look for the gtk.h header
7719     saved_CPPFLAGS=$CPPFLAGS
7720     CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
7721     ac_cv_gtk_headers=yes
7722     for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7723 do
7724 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7725 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7726 echo "configure:7727: checking for $ac_hdr" >&5
7727 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7728   echo $ac_n "(cached) $ac_c" 1>&6
7729 else
7730   cat > conftest.$ac_ext <<EOF
7731 #line 7732 "configure"
7732 #include "confdefs.h"
7733 #include <$ac_hdr>
7734 EOF
7735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7736 { (eval echo configure:7737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7738 if test -z "$ac_err"; then
7739   rm -rf conftest*
7740   eval "ac_cv_header_$ac_safe=yes"
7741 else
7742   echo "$ac_err" >&5
7743   echo "configure: failed program was:" >&5
7744   cat conftest.$ac_ext >&5
7745   rm -rf conftest*
7746   eval "ac_cv_header_$ac_safe=no"
7747 fi
7748 rm -f conftest*
7749 fi
7750 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7751   echo "$ac_t""yes" 1>&6
7752     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7753   cat >> confdefs.h <<EOF
7754 #define $ac_tr_hdr 1
7755 EOF
7756  
7757 else
7758   echo "$ac_t""no" 1>&6
7759 ac_cv_gtk_headers=no
7760       echo "Cannot find gtk development headers."
7761     
7762 fi
7763 done
7764
7765     if test "x$ac_cv_gtk_headers" = xyes
7766     then
7767       PLUGINS="${PLUGINS} gtk"
7768       ALIASES="${ALIASES} gvlc"
7769     fi
7770     CPPFLAGS=$saved_CPPFLAGS
7771   fi
7772 fi
7773
7774 # Check whether --enable-gnome or --disable-gnome was given.
7775 if test "${enable_gnome+set}" = set; then
7776   enableval="$enable_gnome"
7777   if test x$enable_gnome = xyes; then
7778     # look for gnome-config
7779     # Extract the first word of "gnome-config", so it can be a program name with args.
7780 set dummy gnome-config; ac_word=$2
7781 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7782 echo "configure:7783: checking for $ac_word" >&5
7783 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7784   echo $ac_n "(cached) $ac_c" 1>&6
7785 else
7786   case "$GNOME_CONFIG" in
7787   /*)
7788   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7789   ;;
7790   ?:/*)                  
7791   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7792   ;;
7793   *)
7794   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7795   ac_dummy="$PATH"
7796   for ac_dir in $ac_dummy; do 
7797     test -z "$ac_dir" && ac_dir=.
7798     if test -f $ac_dir/$ac_word; then
7799       ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7800       break
7801     fi
7802   done
7803   IFS="$ac_save_ifs"
7804   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7805   ;;
7806 esac
7807 fi
7808 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7809 if test -n "$GNOME_CONFIG"; then
7810   echo "$ac_t""$GNOME_CONFIG" 1>&6
7811 else
7812   echo "$ac_t""no" 1>&6
7813 fi
7814
7815     if test -x ${GNOME_CONFIG}
7816     then
7817        CFLAGS_GNOME="${CFLAGS_GNOME} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7818        LIB_GNOME="${LIB_GNOME} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7819     fi
7820     # now look for the gnome.h header
7821     saved_CPPFLAGS=$CPPFLAGS
7822     CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
7823     for ac_hdr in gnome.h
7824 do
7825 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7827 echo "configure:7828: checking for $ac_hdr" >&5
7828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7829   echo $ac_n "(cached) $ac_c" 1>&6
7830 else
7831   cat > conftest.$ac_ext <<EOF
7832 #line 7833 "configure"
7833 #include "confdefs.h"
7834 #include <$ac_hdr>
7835 EOF
7836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7837 { (eval echo configure:7838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7839 if test -z "$ac_err"; then
7840   rm -rf conftest*
7841   eval "ac_cv_header_$ac_safe=yes"
7842 else
7843   echo "$ac_err" >&5
7844   echo "configure: failed program was:" >&5
7845   cat conftest.$ac_ext >&5
7846   rm -rf conftest*
7847   eval "ac_cv_header_$ac_safe=no"
7848 fi
7849 rm -f conftest*
7850 fi
7851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7852   echo "$ac_t""yes" 1>&6
7853     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7854   cat >> confdefs.h <<EOF
7855 #define $ac_tr_hdr 1
7856 EOF
7857  
7858       PLUGINS="${PLUGINS} gnome"
7859       ALIASES="${ALIASES} gnome-vlc"
7860      
7861 else
7862   echo "$ac_t""no" 1>&6
7863 { echo "configure: error: Can't find gnome headers. Please install the gnome
7864 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
7865      
7866 fi
7867 done
7868
7869   
7870     CPPFLAGS=$saved_CPPFLAGS
7871   fi
7872 fi
7873
7874
7875 # Check whether --enable-qt or --disable-qt was given.
7876 if test "${enable_qt+set}" = set; then
7877   enableval="$enable_qt"
7878   if test x$enable_qt = xyes; then
7879      PLUGINS="${PLUGINS} qt"
7880      ALIASES="${ALIASES} qvlc"
7881      LIB_QT="${LIB_QT} -lqt -L${QTDIR}/lib"
7882      CFLAGS_QT="${CFLAGS_QT} -I/usr/include/qt -I${QTDIR}/include"
7883      if test -x ${QTDIR}/bin/moc
7884      then
7885        MOC=${QTDIR}/bin/moc
7886      else
7887        MOC=moc
7888      fi
7889    fi
7890 fi
7891
7892
7893 # Check whether --enable-kde or --disable-kde was given.
7894 if test "${enable_kde+set}" = set; then
7895   enableval="$enable_kde"
7896   if test x$enable_kde = xyes; then
7897      PLUGINS="${PLUGINS} kde"
7898      ALIASES="${ALIASES} kvlc"
7899      LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
7900      CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
7901      CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
7902      if test -x ${QTDIR}/bin/moc
7903      then
7904        MOC=${QTDIR}/bin/moc
7905      else
7906        MOC=moc
7907      fi
7908    fi
7909 fi
7910
7911
7912 # Check whether --enable-macosx or --disable-macosx was given.
7913 if test "${enable_macosx+set}" = set; then
7914   enableval="$enable_macosx"
7915   if test x$enable_macosx = xyes
7916    then
7917      BUILTINS="${BUILTINS} macosx"
7918      LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7919      CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
7920      LIB_COMMON="${LIB_COMMON} -ObjC"
7921    fi
7922 else
7923   for ac_hdr in Cocoa/Cocoa.h
7924 do
7925 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7926 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7927 echo "configure:7928: checking for $ac_hdr" >&5
7928 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7929   echo $ac_n "(cached) $ac_c" 1>&6
7930 else
7931   cat > conftest.$ac_ext <<EOF
7932 #line 7933 "configure"
7933 #include "confdefs.h"
7934 #include <$ac_hdr>
7935 EOF
7936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7937 { (eval echo configure:7938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7939 if test -z "$ac_err"; then
7940   rm -rf conftest*
7941   eval "ac_cv_header_$ac_safe=yes"
7942 else
7943   echo "$ac_err" >&5
7944   echo "configure: failed program was:" >&5
7945   cat conftest.$ac_ext >&5
7946   rm -rf conftest*
7947   eval "ac_cv_header_$ac_safe=no"
7948 fi
7949 rm -f conftest*
7950 fi
7951 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7952   echo "$ac_t""yes" 1>&6
7953     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7954   cat >> confdefs.h <<EOF
7955 #define $ac_tr_hdr 1
7956 EOF
7957  BUILTINS="${BUILTINS} macosx"
7958      LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7959      CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
7960      LIB_COMMON="${LIB_COMMON} -ObjC"
7961    
7962 else
7963   echo "$ac_t""no" 1>&6
7964 fi
7965 done
7966
7967 fi
7968
7969
7970 # Check whether --enable-qnx or --disable-qnx was given.
7971 if test "${enable_qnx+set}" = set; then
7972   enableval="$enable_qnx"
7973   :
7974 fi
7975
7976     if test x$enable_qnx != xno
7977     then
7978       for ac_hdr in Ph.h
7979 do
7980 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7981 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7982 echo "configure:7983: checking for $ac_hdr" >&5
7983 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7984   echo $ac_n "(cached) $ac_c" 1>&6
7985 else
7986   cat > conftest.$ac_ext <<EOF
7987 #line 7988 "configure"
7988 #include "confdefs.h"
7989 #include <$ac_hdr>
7990 EOF
7991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7992 { (eval echo configure:7993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7993 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7994 if test -z "$ac_err"; then
7995   rm -rf conftest*
7996   eval "ac_cv_header_$ac_safe=yes"
7997 else
7998   echo "$ac_err" >&5
7999   echo "configure: failed program was:" >&5
8000   cat conftest.$ac_ext >&5
8001   rm -rf conftest*
8002   eval "ac_cv_header_$ac_safe=no"
8003 fi
8004 rm -f conftest*
8005 fi
8006 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8007   echo "$ac_t""yes" 1>&6
8008     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8009   cat >> confdefs.h <<EOF
8010 #define $ac_tr_hdr 1
8011 EOF
8012  
8013         PLUGINS="${PLUGINS} qnx"
8014         LIB_QNX="${LIB_QNX} -lasound -lph"
8015       
8016 else
8017   echo "$ac_t""no" 1>&6
8018 fi
8019 done
8020
8021     fi
8022
8023 # Check whether --enable-win32 or --disable-win32 was given.
8024 if test "${enable_win32+set}" = set; then
8025   enableval="$enable_win32"
8026    if test "x$enableval" != "xno"
8027     then
8028       PLUGINS="${PLUGINS} win32"
8029     fi 
8030 fi
8031
8032
8033 # Check whether --enable-ncurses or --disable-ncurses was given.
8034 if test "${enable_ncurses+set}" = set; then
8035   enableval="$enable_ncurses"
8036   if test x$enable_ncurses = xyes; then
8037      PLUGINS="${PLUGINS} ncurses"
8038      LIB_NCURSES="${LIB_NCURSES} -lncurses"
8039    fi
8040 fi
8041
8042
8043 # Check whether --enable-lirc or --disable-lirc was given.
8044 if test "${enable_lirc+set}" = set; then
8045   enableval="$enable_lirc"
8046   :
8047 fi
8048
8049 if test x$enable_lirc = xyes
8050 then
8051   ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8052 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8053 echo "configure:8054: checking for lirc/lirc_client.h" >&5
8054 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8055   echo $ac_n "(cached) $ac_c" 1>&6
8056 else
8057   cat > conftest.$ac_ext <<EOF
8058 #line 8059 "configure"
8059 #include "confdefs.h"
8060 #include <lirc/lirc_client.h>
8061 EOF
8062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8063 { (eval echo configure:8064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8065 if test -z "$ac_err"; then
8066   rm -rf conftest*
8067   eval "ac_cv_header_$ac_safe=yes"
8068 else
8069   echo "$ac_err" >&5
8070   echo "configure: failed program was:" >&5
8071   cat conftest.$ac_ext >&5
8072   rm -rf conftest*
8073   eval "ac_cv_header_$ac_safe=no"
8074 fi
8075 rm -f conftest*
8076 fi
8077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8078   echo "$ac_t""yes" 1>&6
8079   echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8080 echo "configure:8081: checking for lirc_init in -llirc_client" >&5
8081 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8082 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8083   echo $ac_n "(cached) $ac_c" 1>&6
8084 else
8085   ac_save_LIBS="$LIBS"
8086 LIBS="-llirc_client  $LIBS"
8087 cat > conftest.$ac_ext <<EOF
8088 #line 8089 "configure"
8089 #include "confdefs.h"
8090 /* Override any gcc2 internal prototype to avoid an error.  */
8091 /* We use char because int might match the return type of a gcc2
8092     builtin and then its argument prototype would still apply.  */
8093 char lirc_init();
8094
8095 int main() {
8096 lirc_init()
8097 ; return 0; }
8098 EOF
8099 if { (eval echo configure:8100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8100   rm -rf conftest*
8101   eval "ac_cv_lib_$ac_lib_var=yes"
8102 else
8103   echo "configure: failed program was:" >&5
8104   cat conftest.$ac_ext >&5
8105   rm -rf conftest*
8106   eval "ac_cv_lib_$ac_lib_var=no"
8107 fi
8108 rm -f conftest*
8109 LIBS="$ac_save_LIBS"
8110
8111 fi
8112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8113   echo "$ac_t""yes" 1>&6
8114   have_lirc="true"
8115 else
8116   echo "$ac_t""no" 1>&6
8117 have_lirc="false"
8118 fi
8119
8120 else
8121   echo "$ac_t""no" 1>&6
8122 have_lirc="false"
8123 fi
8124
8125   if test x$have_lirc = xtrue
8126   then
8127     PLUGINS="${PLUGINS} lirc"
8128     LIB_LIRC="${LIB_LIRC} -llirc_client"
8129   fi
8130 fi
8131
8132 fi
8133
8134 # Check whether --with- or --without- was given.
8135 if test "${with_+set}" = set; then
8136   withval="$with_"
8137   :
8138 fi
8139
8140
8141 # Check whether --with-words or --without-words was given.
8142 if test "${with_words+set}" = set; then
8143   withval="$with_words"
8144   :
8145 fi
8146
8147   case "x$withval" in
8148     xbig)
8149       ac_cv_c_bigendian=yes
8150       ;;
8151     xlittle)
8152       ac_cv_c_bigendian=no
8153       ;;
8154     *)
8155                   echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8156 echo "configure:8157: checking whether the byte order is big-endian" >&5
8157 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8158   echo $ac_n "(cached) $ac_c" 1>&6
8159 else
8160   ac_cv_c_bigendian=unknown
8161         cat >conftest.c <<EOF
8162         short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8163         short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8164         void _a(void) { char*s = (char*)am; s = (char *)ai; }
8165         short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8166         short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8167         void _e(void) { char*s = (char*)em; s = (char*)ei; }
8168         int main(void) { _a(); _e(); return 0; }
8169 EOF
8170         
8171         if test -f conftest.c
8172         then 
8173           if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
8174               && test -f conftest.o
8175           then
8176             if test "`strings conftest.o | grep BIGenDianSyS`"
8177             then
8178               ac_cv_c_bigendian=yes
8179             fi
8180             if test "`strings conftest.o | grep LiTTleEnDian`"
8181             then
8182               ac_cv_c_bigendian=no
8183             fi
8184           fi
8185         fi
8186       
8187 fi
8188
8189 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8190       if test x$ac_cv_c_bigendian = xunknown
8191       then
8192         { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8193       fi
8194       ;;
8195   esac
8196 if test $ac_cv_c_bigendian = yes
8197 then
8198   cat >> confdefs.h <<\EOF
8199 #define WORDS_BIGENDIAN 1
8200 EOF
8201
8202 fi
8203
8204 DLL_PATH=.
8205 # Check whether --with-dll-path or --without-dll-path was given.
8206 if test "${with_dll_path+set}" = set; then
8207   withval="$with_dll_path"
8208    if test "x$withval" != "xno"
8209     then
8210       DLL_PATH=$withval
8211     fi 
8212 fi
8213
8214
8215 GPROF=0
8216 # Check whether --enable-gprof or --disable-gprof was given.
8217 if test "${enable_gprof+set}" = set; then
8218   enableval="$enable_gprof"
8219    if test x$enableval = xyes; then GPROF=1; fi 
8220 fi
8221
8222
8223 CPROF=0
8224 # Check whether --enable-cprof or --disable-cprof was given.
8225 if test "${enable_cprof+set}" = set; then
8226   enableval="$enable_cprof"
8227    if test x$enableval = xyes;
8228   then
8229     LIB_COMMON="${LIB_COMMON} -lcprof"
8230     CPROF=1
8231   fi
8232
8233 fi
8234
8235
8236 # Check whether --enable-pth or --disable-pth was given.
8237 if test "${enable_pth+set}" = set; then
8238   enableval="$enable_pth"
8239    if test x$enableval = xyes; then
8240     echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8241 echo "configure:8242: checking for pth_init in -lpth" >&5
8242 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8243 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8244   echo $ac_n "(cached) $ac_c" 1>&6
8245 else
8246   ac_save_LIBS="$LIBS"
8247 LIBS="-lpth  $LIBS"
8248 cat > conftest.$ac_ext <<EOF
8249 #line 8250 "configure"
8250 #include "confdefs.h"
8251 /* Override any gcc2 internal prototype to avoid an error.  */
8252 /* We use char because int might match the return type of a gcc2
8253     builtin and then its argument prototype would still apply.  */
8254 char pth_init();
8255
8256 int main() {
8257 pth_init()
8258 ; return 0; }
8259 EOF
8260 if { (eval echo configure:8261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8261   rm -rf conftest*
8262   eval "ac_cv_lib_$ac_lib_var=yes"
8263 else
8264   echo "configure: failed program was:" >&5
8265   cat conftest.$ac_ext >&5
8266   rm -rf conftest*
8267   eval "ac_cv_lib_$ac_lib_var=no"
8268 fi
8269 rm -f conftest*
8270 LIBS="$ac_save_LIBS"
8271
8272 fi
8273 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8274   echo "$ac_t""yes" 1>&6
8275     ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8276     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8277   cat >> confdefs.h <<EOF
8278 #define $ac_tr_lib 1
8279 EOF
8280
8281   LIBS="-lpth $LIBS"
8282
8283 else
8284   echo "$ac_t""no" 1>&6
8285 fi
8286
8287     cat > conftest.$ac_ext <<EOF
8288 #line 8289 "configure"
8289 #include "confdefs.h"
8290 #include <pth.h>
8291 EOF
8292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8293   egrep "pth_init" >/dev/null 2>&1; then
8294   rm -rf conftest*
8295   
8296       cat >> confdefs.h <<\EOF
8297 #define PTH_INIT_IN_PTH_H 1
8298 EOF
8299
8300     THREAD_LIB="-lpth"
8301     fi
8302 fi
8303 rm -f conftest*
8304
8305
8306 fi
8307
8308
8309 # Check whether --enable-st or --disable-st was given.
8310 if test "${enable_st+set}" = set; then
8311   enableval="$enable_st"
8312    if test x$enableval = xyes; then
8313     echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8314 echo "configure:8315: checking for st_init in -lst" >&5
8315 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8316 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8317   echo $ac_n "(cached) $ac_c" 1>&6
8318 else
8319   ac_save_LIBS="$LIBS"
8320 LIBS="-lst  $LIBS"
8321 cat > conftest.$ac_ext <<EOF
8322 #line 8323 "configure"
8323 #include "confdefs.h"
8324 /* Override any gcc2 internal prototype to avoid an error.  */
8325 /* We use char because int might match the return type of a gcc2
8326     builtin and then its argument prototype would still apply.  */
8327 char st_init();
8328
8329 int main() {
8330 st_init()
8331 ; return 0; }
8332 EOF
8333 if { (eval echo configure:8334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8334   rm -rf conftest*
8335   eval "ac_cv_lib_$ac_lib_var=yes"
8336 else
8337   echo "configure: failed program was:" >&5
8338   cat conftest.$ac_ext >&5
8339   rm -rf conftest*
8340   eval "ac_cv_lib_$ac_lib_var=no"
8341 fi
8342 rm -f conftest*
8343 LIBS="$ac_save_LIBS"
8344
8345 fi
8346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8347   echo "$ac_t""yes" 1>&6
8348     ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8349     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8350   cat >> confdefs.h <<EOF
8351 #define $ac_tr_lib 1
8352 EOF
8353
8354   LIBS="-lst $LIBS"
8355
8356 else
8357   echo "$ac_t""no" 1>&6
8358 fi
8359
8360     cat > conftest.$ac_ext <<EOF
8361 #line 8362 "configure"
8362 #include "confdefs.h"
8363 #include <st.h>
8364 EOF
8365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8366   egrep "st_init" >/dev/null 2>&1; then
8367   rm -rf conftest*
8368   
8369       cat >> confdefs.h <<\EOF
8370 #define ST_INIT_IN_ST_H 1
8371 EOF
8372
8373     THREAD_LIB="-lst"
8374     fi
8375 fi
8376 rm -f conftest*
8377
8378
8379 fi
8380
8381
8382 LIB_COMMON="${LIB_COMMON} ${THREAD_LIB}"
8383
8384 # Check whether --enable-plugins or --disable-plugins was given.
8385 if test "${enable_plugins+set}" = set; then
8386   enableval="$enable_plugins"
8387   if test x$enable_plugins = xno
8388    then
8389      BUILTINS="${BUILTINS} ${PLUGINS}"
8390      PLUGINS=
8391    fi
8392 fi
8393
8394
8395 cat >> confdefs.h <<EOF
8396 #define VERSION_MESSAGE "vlc $VLC_VERSION $VLC_CODENAME Copyright 1996-2001 VideoLAN\n"
8397 EOF
8398
8399 cat >> confdefs.h <<EOF
8400 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VLC_VERSION $VLC_CODENAME - (c) 1996-2002 VideoLAN"
8401 EOF
8402
8403
8404 VLC_SYMBOL="`echo ${VLC_VERSION} | tr .- __`"
8405 cat >> confdefs.h <<EOF
8406 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8407 EOF
8408
8409 cat >> confdefs.h <<EOF
8410 #define MODULE_SYMBOL $VLC_SYMBOL
8411 EOF
8412
8413
8414 DATA_PATH="${ac_tool_prefix}/share/videolan"
8415
8416 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
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 trap '' 1 2 15
8519 cat > confcache <<\EOF
8520 # This file is a shell script that caches the results of configure
8521 # tests run on this system so they can be shared between configure
8522 # scripts and configure runs.  It is not useful on other systems.
8523 # If it contains results you don't want to keep, you may remove or edit it.
8524 #
8525 # By default, configure uses ./config.cache as the cache file,
8526 # creating it if it does not exist already.  You can give configure
8527 # the --cache-file=FILE option to use a different cache file; that is
8528 # what configure does when it calls configure scripts in
8529 # subdirectories, so they share the cache.
8530 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8531 # config.status only pays attention to the cache file if you give it the
8532 # --recheck option to rerun configure.
8533 #
8534 EOF
8535 # The following way of writing the cache mishandles newlines in values,
8536 # but we know of no workaround that is simple, portable, and efficient.
8537 # So, don't put newlines in cache variables' values.
8538 # Ultrix sh set writes to stderr and can't be redirected directly,
8539 # and sets the high bit in the cache file unless we assign to the vars.
8540 (set) 2>&1 |
8541   case `(ac_space=' '; set | grep ac_space) 2>&1` in
8542   *ac_space=\ *)
8543     # `set' does not quote correctly, so add quotes (double-quote substitution
8544     # turns \\\\ into \\, and sed turns \\ into \).
8545     sed -n \
8546       -e "s/'/'\\\\''/g" \
8547       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8548     ;;
8549   *)
8550     # `set' quotes correctly as required by POSIX, so do not add quotes.
8551     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8552     ;;
8553   esac >> confcache
8554 if cmp -s $cache_file confcache; then
8555   :
8556 else
8557   if test -w $cache_file; then
8558     echo "updating cache $cache_file"
8559     cat confcache > $cache_file
8560   else
8561     echo "not updating unwritable cache $cache_file"
8562   fi
8563 fi
8564 rm -f confcache
8565
8566 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8567
8568 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8569 # Let make expand exec_prefix.
8570 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8571
8572 # Any assignment to VPATH causes Sun make to only execute
8573 # the first set of double-colon rules, so remove it if not needed.
8574 # If there is a colon in the path, we need to keep it.
8575 if test "x$srcdir" = x.; then
8576   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
8577 fi
8578
8579 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8580
8581 DEFS=-DHAVE_CONFIG_H
8582
8583 # Without the "./", some shells look in PATH for config.status.
8584 : ${CONFIG_STATUS=./config.status}
8585
8586 echo creating $CONFIG_STATUS
8587 rm -f $CONFIG_STATUS
8588 cat > $CONFIG_STATUS <<EOF
8589 #! /bin/sh
8590 # Generated automatically by configure.
8591 # Run this file to recreate the current configuration.
8592 # This directory was configured as follows,
8593 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8594 #
8595 # $0 $ac_configure_args
8596 #
8597 # Compiler output produced by configure, useful for debugging
8598 # configure, is in ./config.log if it exists.
8599
8600 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8601 for ac_option
8602 do
8603   case "\$ac_option" in
8604   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8605     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8606     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8607   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8608     echo "$CONFIG_STATUS generated by autoconf version 2.13"
8609     exit 0 ;;
8610   -help | --help | --hel | --he | --h)
8611     echo "\$ac_cs_usage"; exit 0 ;;
8612   *) echo "\$ac_cs_usage"; exit 1 ;;
8613   esac
8614 done
8615
8616 ac_given_srcdir=$srcdir
8617 ac_given_INSTALL="$INSTALL"
8618
8619 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8620 EOF
8621 cat >> $CONFIG_STATUS <<EOF
8622
8623 # Protect against being on the right side of a sed subst in config.status.
8624 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8625  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8626 $ac_vpsub
8627 $extrasub
8628 s%@SHELL@%$SHELL%g
8629 s%@CFLAGS@%$CFLAGS%g
8630 s%@CPPFLAGS@%$CPPFLAGS%g
8631 s%@CXXFLAGS@%$CXXFLAGS%g
8632 s%@FFLAGS@%$FFLAGS%g
8633 s%@DEFS@%$DEFS%g
8634 s%@LDFLAGS@%$LDFLAGS%g
8635 s%@LIBS@%$LIBS%g
8636 s%@exec_prefix@%$exec_prefix%g
8637 s%@prefix@%$prefix%g
8638 s%@program_transform_name@%$program_transform_name%g
8639 s%@bindir@%$bindir%g
8640 s%@sbindir@%$sbindir%g
8641 s%@libexecdir@%$libexecdir%g
8642 s%@datadir@%$datadir%g
8643 s%@sysconfdir@%$sysconfdir%g
8644 s%@sharedstatedir@%$sharedstatedir%g
8645 s%@localstatedir@%$localstatedir%g
8646 s%@libdir@%$libdir%g
8647 s%@includedir@%$includedir%g
8648 s%@oldincludedir@%$oldincludedir%g
8649 s%@infodir@%$infodir%g
8650 s%@mandir@%$mandir%g
8651 s%@host@%$host%g
8652 s%@host_alias@%$host_alias%g
8653 s%@host_cpu@%$host_cpu%g
8654 s%@host_vendor@%$host_vendor%g
8655 s%@host_os@%$host_os%g
8656 s%@target@%$target%g
8657 s%@target_alias@%$target_alias%g
8658 s%@target_cpu@%$target_cpu%g
8659 s%@target_vendor@%$target_vendor%g
8660 s%@target_os@%$target_os%g
8661 s%@build@%$build%g
8662 s%@build_alias@%$build_alias%g
8663 s%@build_cpu@%$build_cpu%g
8664 s%@build_vendor@%$build_vendor%g
8665 s%@build_os@%$build_os%g
8666 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
8667 s%@SET_MAKE@%$SET_MAKE%g
8668 s%@CC@%$CC%g
8669 s%@CPP@%$CPP%g
8670 s%@RANLIB@%$RANLIB%g
8671 s%@ALLOCA@%$ALLOCA%g
8672 s%@GLIBC21@%$GLIBC21%g
8673 s%@LIBICONV@%$LIBICONV%g
8674 s%@USE_NLS@%$USE_NLS%g
8675 s%@MSGFMT@%$MSGFMT%g
8676 s%@GMSGFMT@%$GMSGFMT%g
8677 s%@XGETTEXT@%$XGETTEXT%g
8678 s%@INTLBISON@%$INTLBISON%g
8679 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8680 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8681 s%@CATALOGS@%$CATALOGS%g
8682 s%@CATOBJEXT@%$CATOBJEXT%g
8683 s%@GMOFILES@%$GMOFILES%g
8684 s%@INTLLIBS@%$INTLLIBS%g
8685 s%@INTLOBJS@%$INTLOBJS%g
8686 s%@POFILES@%$POFILES%g
8687 s%@POSUB@%$POSUB%g
8688 s%@DATADIRNAME@%$DATADIRNAME%g
8689 s%@INSTOBJEXT@%$INSTOBJEXT%g
8690 s%@GENCAT@%$GENCAT%g
8691 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8692 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8693 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8694 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8695 s%@INSTALL_DATA@%$INSTALL_DATA%g
8696 s%@WINDRES@%$WINDRES%g
8697 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8698 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8699 s%@SDL_CONFIG@%$SDL_CONFIG%g
8700 s%@ESD_CONFIG@%$ESD_CONFIG%g
8701 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8702 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8703 s%@GTK_CONFIG@%$GTK_CONFIG%g
8704 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8705 s%@DATA_PATH@%$DATA_PATH%g
8706 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8707 s%@SYS@%$SYS%g
8708 s%@ARCH@%$ARCH%g
8709 s%@PLUGINS@%$PLUGINS%g
8710 s%@BUILTINS@%$BUILTINS%g
8711 s%@ALIASES@%$ALIASES%g
8712 s%@INCLUDE@%$INCLUDE%g
8713 s%@DEBUG@%$DEBUG%g
8714 s%@ASM@%$ASM%g
8715 s%@CPROF@%$CPROF%g
8716 s%@GPROF@%$GPROF%g
8717 s%@OPTIMS@%$OPTIMS%g
8718 s%@TUNING@%$TUNING%g
8719 s%@RELEASE@%$RELEASE%g
8720 s%@MOC@%$MOC%g
8721 s%@DLL_PATH@%$DLL_PATH%g
8722 s%@PACKAGE@%$PACKAGE%g
8723 s%@VERSION@%$VERSION%g
8724 s%@VCD_DEVICE@%$VCD_DEVICE%g
8725 s%@DVD_DEVICE@%$DVD_DEVICE%g
8726 s%@PLDFLAGS@%$PLDFLAGS%g
8727 s%@SOFLAGS@%$SOFLAGS%g
8728 s%@LIB_COMMON@%$LIB_COMMON%g
8729 s%@LIB_VLC@%$LIB_VLC%g
8730 s%@LIB_A52@%$LIB_A52%g
8731 s%@LIB_AA@%$LIB_AA%g
8732 s%@LIB_ALSA@%$LIB_ALSA%g
8733 s%@LIB_ARTS@%$LIB_ARTS%g
8734 s%@LIB_BEOS@%$LIB_BEOS%g
8735 s%@LIB_DARWIN@%$LIB_DARWIN%g
8736 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
8737 s%@LIB_DSP@%$LIB_DSP%g
8738 s%@LIB_DVD@%$LIB_DVD%g
8739 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
8740 s%@LIB_ESD@%$LIB_ESD%g
8741 s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
8742 s%@LIB_GGI@%$LIB_GGI%g
8743 s%@LIB_GLIDE@%$LIB_GLIDE%g
8744 s%@LIB_GNOME@%$LIB_GNOME%g
8745 s%@LIB_GTK@%$LIB_GTK%g
8746 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
8747 s%@LIB_IMDCT@%$LIB_IMDCT%g
8748 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
8749 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
8750 s%@LIB_IPV4@%$LIB_IPV4%g
8751 s%@LIB_IPV6@%$LIB_IPV6%g
8752 s%@LIB_KDE@%$LIB_KDE%g
8753 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
8754 s%@LIB_LIBDVDREAD@%$LIB_LIBDVDREAD%g
8755 s%@LIB_LIRC@%$LIB_LIRC%g
8756 s%@LIB_MACOSX@%$LIB_MACOSX%g
8757 s%@LIB_MAD@%$LIB_MAD%g
8758 s%@LIB_MOTIONALTIVEC@%$LIB_MOTIONALTIVEC%g
8759 s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
8760 s%@LIB_NCURSES@%$LIB_NCURSES%g
8761 s%@LIB_QNX@%$LIB_QNX%g
8762 s%@LIB_QT@%$LIB_QT%g
8763 s%@LIB_RC@%$LIB_RC%g
8764 s%@LIB_SDL@%$LIB_SDL%g
8765 s%@LIB_VCD@%$LIB_VCD%g
8766 s%@LIB_WAVEOUT@%$LIB_WAVEOUT%g
8767 s%@LIB_WIN32@%$LIB_WIN32%g
8768 s%@LIB_X11@%$LIB_X11%g
8769 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
8770 s%@CFLAGS_COMMON@%$CFLAGS_COMMON%g
8771 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
8772 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
8773 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
8774 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
8775 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
8776 s%@CFLAGS_GLIDE@%$CFLAGS_GLIDE%g
8777 s%@CFLAGS_GNOME@%$CFLAGS_GNOME%g
8778 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
8779 s%@CFLAGS_KDE@%$CFLAGS_KDE%g
8780 s%@CFLAGS_IDCTALTIVEC@%$CFLAGS_IDCTALTIVEC%g
8781 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
8782 s%@CFLAGS_MACOSX@%$CFLAGS_MACOSX%g
8783 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
8784 s%@CFLAGS_MOTIONALTIVEC@%$CFLAGS_MOTIONALTIVEC%g
8785 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8786 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8787 s%@CFLAGS_QT@%$CFLAGS_QT%g
8788 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
8789 s%@CFLAGS_WIN32@%$CFLAGS_WIN32%g
8790 s%@CFLAGS_X11@%$CFLAGS_X11%g
8791 s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
8792 s%@SRC_DVD_EXTRA@%$SRC_DVD_EXTRA%g
8793 s%@SRC_DVDCSS_EXTRA@%$SRC_DVDCSS_EXTRA%g
8794 s%@NEED_GETOPT@%$NEED_GETOPT%g
8795 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
8796
8797 CEOF
8798 EOF
8799
8800 cat >> $CONFIG_STATUS <<\EOF
8801
8802 # Split the substitutions into bite-sized pieces for seds with
8803 # small command number limits, like on Digital OSF/1 and HP-UX.
8804 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8805 ac_file=1 # Number of current file.
8806 ac_beg=1 # First line for current file.
8807 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8808 ac_more_lines=:
8809 ac_sed_cmds=""
8810 while $ac_more_lines; do
8811   if test $ac_beg -gt 1; then
8812     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8813   else
8814     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8815   fi
8816   if test ! -s conftest.s$ac_file; then
8817     ac_more_lines=false
8818     rm -f conftest.s$ac_file
8819   else
8820     if test -z "$ac_sed_cmds"; then
8821       ac_sed_cmds="sed -f conftest.s$ac_file"
8822     else
8823       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8824     fi
8825     ac_file=`expr $ac_file + 1`
8826     ac_beg=$ac_end
8827     ac_end=`expr $ac_end + $ac_max_sed_cmds`
8828   fi
8829 done
8830 if test -z "$ac_sed_cmds"; then
8831   ac_sed_cmds=cat
8832 fi
8833 EOF
8834
8835 cat >> $CONFIG_STATUS <<EOF
8836
8837 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8838 EOF
8839 cat >> $CONFIG_STATUS <<\EOF
8840 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8841   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8842   case "$ac_file" in
8843   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8844        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8845   *) ac_file_in="${ac_file}.in" ;;
8846   esac
8847
8848   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8849
8850   # Remove last slash and all that follows it.  Not all systems have dirname.
8851   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8852   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8853     # The file is in a subdirectory.
8854     test ! -d "$ac_dir" && mkdir "$ac_dir"
8855     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8856     # A "../" for each directory in $ac_dir_suffix.
8857     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8858   else
8859     ac_dir_suffix= ac_dots=
8860   fi
8861
8862   case "$ac_given_srcdir" in
8863   .)  srcdir=.
8864       if test -z "$ac_dots"; then top_srcdir=.
8865       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8866   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8867   *) # Relative path.
8868     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8869     top_srcdir="$ac_dots$ac_given_srcdir" ;;
8870   esac
8871
8872   case "$ac_given_INSTALL" in
8873   [/$]*) INSTALL="$ac_given_INSTALL" ;;
8874   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8875   esac
8876
8877   echo creating "$ac_file"
8878   rm -f "$ac_file"
8879   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8880   case "$ac_file" in
8881   *Makefile*) ac_comsub="1i\\
8882 # $configure_input" ;;
8883   *) ac_comsub= ;;
8884   esac
8885
8886   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8887   sed -e "$ac_comsub
8888 s%@configure_input@%$configure_input%g
8889 s%@srcdir@%$srcdir%g
8890 s%@top_srcdir@%$top_srcdir%g
8891 s%@INSTALL@%$INSTALL%g
8892 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8893 fi; done
8894 rm -f conftest.s*
8895
8896 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8897 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8898 #
8899 # ac_d sets the value in "#define NAME VALUE" lines.
8900 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
8901 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
8902 ac_dC='\3'
8903 ac_dD='%g'
8904 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8905 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8906 ac_uB='\([      ]\)%\1#\2define\3'
8907 ac_uC=' '
8908 ac_uD='\4%g'
8909 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8910 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8911 ac_eB='$%\1#\2define\3'
8912 ac_eC=' '
8913 ac_eD='%g'
8914
8915 if test "${CONFIG_HEADERS+set}" != set; then
8916 EOF
8917 cat >> $CONFIG_STATUS <<EOF
8918   CONFIG_HEADERS="include/defs.h"
8919 EOF
8920 cat >> $CONFIG_STATUS <<\EOF
8921 fi
8922 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8923   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8924   case "$ac_file" in
8925   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8926        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8927   *) ac_file_in="${ac_file}.in" ;;
8928   esac
8929
8930   echo creating $ac_file
8931
8932   rm -f conftest.frag conftest.in conftest.out
8933   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8934   cat $ac_file_inputs > conftest.in
8935
8936 EOF
8937
8938 # Transform confdefs.h into a sed script conftest.vals that substitutes
8939 # the proper values into config.h.in to produce config.h.  And first:
8940 # Protect against being on the right side of a sed subst in config.status.
8941 # Protect against being in an unquoted here document in config.status.
8942 rm -f conftest.vals
8943 cat > conftest.hdr <<\EOF
8944 s/[\\&%]/\\&/g
8945 s%[\\$`]%\\&%g
8946 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8947 s%ac_d%ac_u%gp
8948 s%ac_u%ac_e%gp
8949 EOF
8950 sed -n -f conftest.hdr confdefs.h > conftest.vals
8951 rm -f conftest.hdr
8952
8953 # This sed command replaces #undef with comments.  This is necessary, for
8954 # example, in the case of _POSIX_SOURCE, which is predefined and required
8955 # on some systems where configure will not decide to define it.
8956 cat >> conftest.vals <<\EOF
8957 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8958 EOF
8959
8960 # Break up conftest.vals because some shells have a limit on
8961 # the size of here documents, and old seds have small limits too.
8962
8963 rm -f conftest.tail
8964 while :
8965 do
8966   ac_lines=`grep -c . conftest.vals`
8967   # grep -c gives empty output for an empty file on some AIX systems.
8968   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8969   # Write a limited-size here document to conftest.frag.
8970   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8971   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8972   echo 'CEOF
8973   sed -f conftest.frag conftest.in > conftest.out
8974   rm -f conftest.in
8975   mv conftest.out conftest.in
8976 ' >> $CONFIG_STATUS
8977   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8978   rm -f conftest.vals
8979   mv conftest.tail conftest.vals
8980 done
8981 rm -f conftest.vals
8982
8983 cat >> $CONFIG_STATUS <<\EOF
8984   rm -f conftest.frag conftest.h
8985   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
8986   cat conftest.in >> conftest.h
8987   rm -f conftest.in
8988   if cmp -s $ac_file conftest.h 2>/dev/null; then
8989     echo "$ac_file is unchanged"
8990     rm -f conftest.h
8991   else
8992     # Remove last slash and all that follows it.  Not all systems have dirname.
8993       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8994       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8995       # The file is in a subdirectory.
8996       test ! -d "$ac_dir" && mkdir "$ac_dir"
8997     fi
8998     rm -f $ac_file
8999     mv conftest.h $ac_file
9000   fi
9001 fi; done
9002
9003 EOF
9004 cat >> $CONFIG_STATUS <<EOF
9005
9006
9007 EOF
9008 cat >> $CONFIG_STATUS <<\EOF
9009 for ac_file in $CONFIG_FILES; do
9010         # Support "outfile[:infile[:infile...]]"
9011         case "$ac_file" in
9012           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9013         esac
9014         # PO directories have a Makefile.in generated from Makefile.in.in.
9015         case "$ac_file" in */Makefile.in)
9016           # Adjust a relative srcdir.
9017           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9018           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9019           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9020           # In autoconf-2.13 it is called $ac_given_srcdir.
9021           # In autoconf-2.50 it is called $srcdir.
9022           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9023           case "$ac_given_srcdir" in
9024             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9025             /*) top_srcdir="$ac_given_srcdir" ;;
9026             *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
9027           esac
9028           if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9029             rm -f "$ac_dir/POTFILES"
9030             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9031             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9032             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9033             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9034           fi
9035           ;;
9036         esac
9037       done
9038
9039 exit 0
9040 EOF
9041 chmod +x $CONFIG_STATUS
9042 rm -fr confdefs* $ac_clean_files
9043 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9044
9045
9046 echo "
9047 global configuration
9048 --------------------
9049 system                : ${SYS}
9050 architecture          : ${ARCH}
9051 optimizations         : ${OPTIMS}
9052 tuning:               : ${TUNING}
9053 release:              : ${RELEASE}"
9054
9055 if test x${HAVE_VLC} = x1
9056 then
9057   echo "
9058 vlc configuration
9059 -----------------
9060 vlc version           : ${VLC_VERSION}
9061 debug mode            : ${DEBUG}
9062 cprof/gprof support   : ${CPROF}/${GPROF}
9063 need builtin getopt   : ${NEED_GETOPT}
9064 built-in modules      :${BUILTINS}
9065 plug-in modules       :${PLUGINS}
9066 vlc aliases           :${ALIASES}"
9067 fi
9068
9069 echo "
9070 libdvdcss configuration
9071 -----------------------
9072 can be built          : ${CAN_BUILD_LIBDVDCSS}
9073 will be built         : ${NEED_LIBDVDCSS}"
9074 if test x${NEED_LIBDVDCSS} = x1
9075 then
9076   echo "need BSDI libdvd      : ${NEED_BSDI_LIBDVD}"
9077   echo "link statically       : ${STATIC_LIBDVDCSS}"
9078 else
9079   echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
9080 fi
9081
9082 echo "
9083 You may now tune Makefile.opts at your convenience, for instance to choose
9084 which modules get compiled as plugins.
9085 "
9086 if test x${HAVE_VLC} = x1
9087 then
9088   echo "To build vlc and its plugins, type \`make'."
9089 fi
9090 if test x${NEED_LIBDVDCSS} = x1
9091 then
9092   echo "To build libdvdcss only, type \`make libdvdcss'."
9093 fi
9094 echo ""
9095