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