]> git.sesse.net Git - vlc/blob - configure
Implemented correct scaling and used new window size variables.
[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_IPV4} -lresolv"
3733 else
3734   echo "$ac_t""no" 1>&6
3735 fi
3736
3737
3738 fi
3739
3740 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3741 echo "configure:3742: checking for textdomain" >&5
3742 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3743   echo $ac_n "(cached) $ac_c" 1>&6
3744 else
3745   cat > conftest.$ac_ext <<EOF
3746 #line 3747 "configure"
3747 #include "confdefs.h"
3748 /* System header to define __stub macros and hopefully few prototypes,
3749     which can conflict with char textdomain(); below.  */
3750 #include <assert.h>
3751 /* Override any gcc2 internal prototype to avoid an error.  */
3752 /* We use char because int might match the return type of a gcc2
3753     builtin and then its argument prototype would still apply.  */
3754 char textdomain();
3755
3756 int main() {
3757
3758 /* The GNU C library defines this for functions which it implements
3759     to always fail with ENOSYS.  Some functions are actually named
3760     something starting with __ and the normal name is an alias.  */
3761 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3762 choke me
3763 #else
3764 textdomain();
3765 #endif
3766
3767 ; return 0; }
3768 EOF
3769 if { (eval echo configure:3770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3770   rm -rf conftest*
3771   eval "ac_cv_func_textdomain=yes"
3772 else
3773   echo "configure: failed program was:" >&5
3774   cat conftest.$ac_ext >&5
3775   rm -rf conftest*
3776   eval "ac_cv_func_textdomain=no"
3777 fi
3778 rm -f conftest*
3779 fi
3780
3781 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3782   echo "$ac_t""yes" 1>&6
3783   :
3784 else
3785   echo "$ac_t""no" 1>&6
3786
3787   echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3788 echo "configure:3789: checking for textdomain in -lintl" >&5
3789 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3791   echo $ac_n "(cached) $ac_c" 1>&6
3792 else
3793   ac_save_LIBS="$LIBS"
3794 LIBS="-lintl  $LIBS"
3795 cat > conftest.$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3798 /* Override any gcc2 internal prototype to avoid an error.  */
3799 /* We use char because int might match the return type of a gcc2
3800     builtin and then its argument prototype would still apply.  */
3801 char textdomain();
3802
3803 int main() {
3804 textdomain()
3805 ; return 0; }
3806 EOF
3807 if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3808   rm -rf conftest*
3809   eval "ac_cv_lib_$ac_lib_var=yes"
3810 else
3811   echo "configure: failed program was:" >&5
3812   cat conftest.$ac_ext >&5
3813   rm -rf conftest*
3814   eval "ac_cv_lib_$ac_lib_var=no"
3815 fi
3816 rm -f conftest*
3817 LIBS="$ac_save_LIBS"
3818
3819 fi
3820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3821   echo "$ac_t""yes" 1>&6
3822   LIB_VLC="${LIB_VLC} -lintl"
3823 else
3824   echo "$ac_t""no" 1>&6
3825 fi
3826
3827
3828 fi
3829
3830 for ac_func in vasprintf
3831 do
3832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3833 echo "configure:3834: checking for $ac_func" >&5
3834 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3835   echo $ac_n "(cached) $ac_c" 1>&6
3836 else
3837   cat > conftest.$ac_ext <<EOF
3838 #line 3839 "configure"
3839 #include "confdefs.h"
3840 /* System header to define __stub macros and hopefully few prototypes,
3841     which can conflict with char $ac_func(); below.  */
3842 #include <assert.h>
3843 /* Override any gcc2 internal prototype to avoid an error.  */
3844 /* We use char because int might match the return type of a gcc2
3845     builtin and then its argument prototype would still apply.  */
3846 char $ac_func();
3847
3848 int main() {
3849
3850 /* The GNU C library defines this for functions which it implements
3851     to always fail with ENOSYS.  Some functions are actually named
3852     something starting with __ and the normal name is an alias.  */
3853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3854 choke me
3855 #else
3856 $ac_func();
3857 #endif
3858
3859 ; return 0; }
3860 EOF
3861 if { (eval echo configure:3862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3862   rm -rf conftest*
3863   eval "ac_cv_func_$ac_func=yes"
3864 else
3865   echo "configure: failed program was:" >&5
3866   cat conftest.$ac_ext >&5
3867   rm -rf conftest*
3868   eval "ac_cv_func_$ac_func=no"
3869 fi
3870 rm -f conftest*
3871 fi
3872
3873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3874   echo "$ac_t""yes" 1>&6
3875     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3876   cat >> confdefs.h <<EOF
3877 #define $ac_tr_func 1
3878 EOF
3879  
3880 else
3881   echo "$ac_t""no" 1>&6
3882 fi
3883 done
3884
3885 for ac_func in swab
3886 do
3887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3888 echo "configure:3889: checking for $ac_func" >&5
3889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3890   echo $ac_n "(cached) $ac_c" 1>&6
3891 else
3892   cat > conftest.$ac_ext <<EOF
3893 #line 3894 "configure"
3894 #include "confdefs.h"
3895 /* System header to define __stub macros and hopefully few prototypes,
3896     which can conflict with char $ac_func(); below.  */
3897 #include <assert.h>
3898 /* Override any gcc2 internal prototype to avoid an error.  */
3899 /* We use char because int might match the return type of a gcc2
3900     builtin and then its argument prototype would still apply.  */
3901 char $ac_func();
3902
3903 int main() {
3904
3905 /* The GNU C library defines this for functions which it implements
3906     to always fail with ENOSYS.  Some functions are actually named
3907     something starting with __ and the normal name is an alias.  */
3908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3909 choke me
3910 #else
3911 $ac_func();
3912 #endif
3913
3914 ; return 0; }
3915 EOF
3916 if { (eval echo configure:3917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3917   rm -rf conftest*
3918   eval "ac_cv_func_$ac_func=yes"
3919 else
3920   echo "configure: failed program was:" >&5
3921   cat conftest.$ac_ext >&5
3922   rm -rf conftest*
3923   eval "ac_cv_func_$ac_func=no"
3924 fi
3925 rm -f conftest*
3926 fi
3927
3928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3929   echo "$ac_t""yes" 1>&6
3930     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3931   cat >> confdefs.h <<EOF
3932 #define $ac_tr_func 1
3933 EOF
3934  
3935 else
3936   echo "$ac_t""no" 1>&6
3937 fi
3938 done
3939
3940 for ac_func in memalign valloc
3941 do
3942 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3943 echo "configure:3944: checking for $ac_func" >&5
3944 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3945   echo $ac_n "(cached) $ac_c" 1>&6
3946 else
3947   cat > conftest.$ac_ext <<EOF
3948 #line 3949 "configure"
3949 #include "confdefs.h"
3950 /* System header to define __stub macros and hopefully few prototypes,
3951     which can conflict with char $ac_func(); below.  */
3952 #include <assert.h>
3953 /* Override any gcc2 internal prototype to avoid an error.  */
3954 /* We use char because int might match the return type of a gcc2
3955     builtin and then its argument prototype would still apply.  */
3956 char $ac_func();
3957
3958 int main() {
3959
3960 /* The GNU C library defines this for functions which it implements
3961     to always fail with ENOSYS.  Some functions are actually named
3962     something starting with __ and the normal name is an alias.  */
3963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3964 choke me
3965 #else
3966 $ac_func();
3967 #endif
3968
3969 ; return 0; }
3970 EOF
3971 if { (eval echo configure:3972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3972   rm -rf conftest*
3973   eval "ac_cv_func_$ac_func=yes"
3974 else
3975   echo "configure: failed program was:" >&5
3976   cat conftest.$ac_ext >&5
3977   rm -rf conftest*
3978   eval "ac_cv_func_$ac_func=no"
3979 fi
3980 rm -f conftest*
3981 fi
3982
3983 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3984   echo "$ac_t""yes" 1>&6
3985     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3986   cat >> confdefs.h <<EOF
3987 #define $ac_tr_func 1
3988 EOF
3989  
3990 else
3991   echo "$ac_t""no" 1>&6
3992 fi
3993 done
3994
3995
3996 for ac_func in sigrelse
3997 do
3998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3999 echo "configure:4000: checking for $ac_func" >&5
4000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4001   echo $ac_n "(cached) $ac_c" 1>&6
4002 else
4003   cat > conftest.$ac_ext <<EOF
4004 #line 4005 "configure"
4005 #include "confdefs.h"
4006 /* System header to define __stub macros and hopefully few prototypes,
4007     which can conflict with char $ac_func(); below.  */
4008 #include <assert.h>
4009 /* Override any gcc2 internal prototype to avoid an error.  */
4010 /* We use char because int might match the return type of a gcc2
4011     builtin and then its argument prototype would still apply.  */
4012 char $ac_func();
4013
4014 int main() {
4015
4016 /* The GNU C library defines this for functions which it implements
4017     to always fail with ENOSYS.  Some functions are actually named
4018     something starting with __ and the normal name is an alias.  */
4019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4020 choke me
4021 #else
4022 $ac_func();
4023 #endif
4024
4025 ; return 0; }
4026 EOF
4027 if { (eval echo configure:4028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4028   rm -rf conftest*
4029   eval "ac_cv_func_$ac_func=yes"
4030 else
4031   echo "configure: failed program was:" >&5
4032   cat conftest.$ac_ext >&5
4033   rm -rf conftest*
4034   eval "ac_cv_func_$ac_func=no"
4035 fi
4036 rm -f conftest*
4037 fi
4038
4039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4040   echo "$ac_t""yes" 1>&6
4041     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4042   cat >> confdefs.h <<EOF
4043 #define $ac_tr_func 1
4044 EOF
4045  
4046 else
4047   echo "$ac_t""no" 1>&6
4048 fi
4049 done
4050
4051 for ac_func in getpwuid
4052 do
4053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4054 echo "configure:4055: checking for $ac_func" >&5
4055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4056   echo $ac_n "(cached) $ac_c" 1>&6
4057 else
4058   cat > conftest.$ac_ext <<EOF
4059 #line 4060 "configure"
4060 #include "confdefs.h"
4061 /* System header to define __stub macros and hopefully few prototypes,
4062     which can conflict with char $ac_func(); below.  */
4063 #include <assert.h>
4064 /* Override any gcc2 internal prototype to avoid an error.  */
4065 /* We use char because int might match the return type of a gcc2
4066     builtin and then its argument prototype would still apply.  */
4067 char $ac_func();
4068
4069 int main() {
4070
4071 /* The GNU C library defines this for functions which it implements
4072     to always fail with ENOSYS.  Some functions are actually named
4073     something starting with __ and the normal name is an alias.  */
4074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4075 choke me
4076 #else
4077 $ac_func();
4078 #endif
4079
4080 ; return 0; }
4081 EOF
4082 if { (eval echo configure:4083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4083   rm -rf conftest*
4084   eval "ac_cv_func_$ac_func=yes"
4085 else
4086   echo "configure: failed program was:" >&5
4087   cat conftest.$ac_ext >&5
4088   rm -rf conftest*
4089   eval "ac_cv_func_$ac_func=no"
4090 fi
4091 rm -f conftest*
4092 fi
4093
4094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4095   echo "$ac_t""yes" 1>&6
4096     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4097   cat >> confdefs.h <<EOF
4098 #define $ac_tr_func 1
4099 EOF
4100  
4101 else
4102   echo "$ac_t""no" 1>&6
4103 fi
4104 done
4105
4106
4107 NEED_GETOPT=0
4108 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
4109 echo "configure:4110: checking for getopt_long" >&5
4110 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
4111   echo $ac_n "(cached) $ac_c" 1>&6
4112 else
4113   cat > conftest.$ac_ext <<EOF
4114 #line 4115 "configure"
4115 #include "confdefs.h"
4116 /* System header to define __stub macros and hopefully few prototypes,
4117     which can conflict with char getopt_long(); below.  */
4118 #include <assert.h>
4119 /* Override any gcc2 internal prototype to avoid an error.  */
4120 /* We use char because int might match the return type of a gcc2
4121     builtin and then its argument prototype would still apply.  */
4122 char getopt_long();
4123
4124 int main() {
4125
4126 /* The GNU C library defines this for functions which it implements
4127     to always fail with ENOSYS.  Some functions are actually named
4128     something starting with __ and the normal name is an alias.  */
4129 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
4130 choke me
4131 #else
4132 getopt_long();
4133 #endif
4134
4135 ; return 0; }
4136 EOF
4137 if { (eval echo configure:4138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4138   rm -rf conftest*
4139   eval "ac_cv_func_getopt_long=yes"
4140 else
4141   echo "configure: failed program was:" >&5
4142   cat conftest.$ac_ext >&5
4143   rm -rf conftest*
4144   eval "ac_cv_func_getopt_long=no"
4145 fi
4146 rm -f conftest*
4147 fi
4148
4149 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
4150   echo "$ac_t""yes" 1>&6
4151   cat >> confdefs.h <<\EOF
4152 #define HAVE_GETOPT_LONG 1
4153 EOF
4154
4155 else
4156   echo "$ac_t""no" 1>&6
4157  # FreeBSD has a gnugetopt library for this:
4158   echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
4159 echo "configure:4160: checking for getopt_long in -lgnugetopt" >&5
4160 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
4161 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4162   echo $ac_n "(cached) $ac_c" 1>&6
4163 else
4164   ac_save_LIBS="$LIBS"
4165 LIBS="-lgnugetopt  $LIBS"
4166 cat > conftest.$ac_ext <<EOF
4167 #line 4168 "configure"
4168 #include "confdefs.h"
4169 /* Override any gcc2 internal prototype to avoid an error.  */
4170 /* We use char because int might match the return type of a gcc2
4171     builtin and then its argument prototype would still apply.  */
4172 char getopt_long();
4173
4174 int main() {
4175 getopt_long()
4176 ; return 0; }
4177 EOF
4178 if { (eval echo configure:4179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4179   rm -rf conftest*
4180   eval "ac_cv_lib_$ac_lib_var=yes"
4181 else
4182   echo "configure: failed program was:" >&5
4183   cat conftest.$ac_ext >&5
4184   rm -rf conftest*
4185   eval "ac_cv_lib_$ac_lib_var=no"
4186 fi
4187 rm -f conftest*
4188 LIBS="$ac_save_LIBS"
4189
4190 fi
4191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4192   echo "$ac_t""yes" 1>&6
4193   cat >> confdefs.h <<\EOF
4194 #define HAVE_GETOPT_LONG 1
4195 EOF
4196  LIB_VLC="${LIB_VLC} -lgnugetopt"
4197 else
4198   echo "$ac_t""no" 1>&6
4199 NEED_GETOPT=1
4200 fi
4201
4202 fi
4203
4204
4205 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4206 echo "configure:4207: checking return type of signal handlers" >&5
4207 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4208   echo $ac_n "(cached) $ac_c" 1>&6
4209 else
4210   cat > conftest.$ac_ext <<EOF
4211 #line 4212 "configure"
4212 #include "confdefs.h"
4213 #include <sys/types.h>
4214 #include <signal.h>
4215 #ifdef signal
4216 #undef signal
4217 #endif
4218 #ifdef __cplusplus
4219 extern "C" void (*signal (int, void (*)(int)))(int);
4220 #else
4221 void (*signal ()) ();
4222 #endif
4223
4224 int main() {
4225 int i;
4226 ; return 0; }
4227 EOF
4228 if { (eval echo configure:4229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4229   rm -rf conftest*
4230   ac_cv_type_signal=void
4231 else
4232   echo "configure: failed program was:" >&5
4233   cat conftest.$ac_ext >&5
4234   rm -rf conftest*
4235   ac_cv_type_signal=int
4236 fi
4237 rm -f conftest*
4238 fi
4239
4240 echo "$ac_t""$ac_cv_type_signal" 1>&6
4241 cat >> confdefs.h <<EOF
4242 #define RETSIGTYPE $ac_cv_type_signal
4243 EOF
4244
4245
4246 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4247 echo "configure:4248: checking for dlopen in -ldl" >&5
4248 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4250   echo $ac_n "(cached) $ac_c" 1>&6
4251 else
4252   ac_save_LIBS="$LIBS"
4253 LIBS="-ldl  $LIBS"
4254 cat > conftest.$ac_ext <<EOF
4255 #line 4256 "configure"
4256 #include "confdefs.h"
4257 /* Override any gcc2 internal prototype to avoid an error.  */
4258 /* We use char because int might match the return type of a gcc2
4259     builtin and then its argument prototype would still apply.  */
4260 char dlopen();
4261
4262 int main() {
4263 dlopen()
4264 ; return 0; }
4265 EOF
4266 if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4267   rm -rf conftest*
4268   eval "ac_cv_lib_$ac_lib_var=yes"
4269 else
4270   echo "configure: failed program was:" >&5
4271   cat conftest.$ac_ext >&5
4272   rm -rf conftest*
4273   eval "ac_cv_lib_$ac_lib_var=no"
4274 fi
4275 rm -f conftest*
4276 LIBS="$ac_save_LIBS"
4277
4278 fi
4279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4280   echo "$ac_t""yes" 1>&6
4281   LIB_VLC="${LIB_VLC} -ldl"
4282 else
4283   echo "$ac_t""no" 1>&6
4284 fi
4285
4286 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4287 echo "configure:4288: checking for cos in -lm" >&5
4288 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4289 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4290   echo $ac_n "(cached) $ac_c" 1>&6
4291 else
4292   ac_save_LIBS="$LIBS"
4293 LIBS="-lm  $LIBS"
4294 cat > conftest.$ac_ext <<EOF
4295 #line 4296 "configure"
4296 #include "confdefs.h"
4297 /* Override any gcc2 internal prototype to avoid an error.  */
4298 /* We use char because int might match the return type of a gcc2
4299     builtin and then its argument prototype would still apply.  */
4300 char cos();
4301
4302 int main() {
4303 cos()
4304 ; return 0; }
4305 EOF
4306 if { (eval echo configure:4307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4307   rm -rf conftest*
4308   eval "ac_cv_lib_$ac_lib_var=yes"
4309 else
4310   echo "configure: failed program was:" >&5
4311   cat conftest.$ac_ext >&5
4312   rm -rf conftest*
4313   eval "ac_cv_lib_$ac_lib_var=no"
4314 fi
4315 rm -f conftest*
4316 LIBS="$ac_save_LIBS"
4317
4318 fi
4319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4320   echo "$ac_t""yes" 1>&6
4321   LIB_IMDCT="${LIB_IMDCT} -lm"
4322   LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
4323 else
4324   echo "$ac_t""no" 1>&6
4325 fi
4326
4327 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4328 echo "configure:4329: checking for pow in -lm" >&5
4329 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4331   echo $ac_n "(cached) $ac_c" 1>&6
4332 else
4333   ac_save_LIBS="$LIBS"
4334 LIBS="-lm  $LIBS"
4335 cat > conftest.$ac_ext <<EOF
4336 #line 4337 "configure"
4337 #include "confdefs.h"
4338 /* Override any gcc2 internal prototype to avoid an error.  */
4339 /* We use char because int might match the return type of a gcc2
4340     builtin and then its argument prototype would still apply.  */
4341 char pow();
4342
4343 int main() {
4344 pow()
4345 ; return 0; }
4346 EOF
4347 if { (eval echo configure:4348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4348   rm -rf conftest*
4349   eval "ac_cv_lib_$ac_lib_var=yes"
4350 else
4351   echo "configure: failed program was:" >&5
4352   cat conftest.$ac_ext >&5
4353   rm -rf conftest*
4354   eval "ac_cv_lib_$ac_lib_var=no"
4355 fi
4356 rm -f conftest*
4357 LIBS="$ac_save_LIBS"
4358
4359 fi
4360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4361   echo "$ac_t""yes" 1>&6
4362   LIB_IMDCT="${LIB_IMDCT} -lm"
4363   LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
4364   LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
4365
4366 else
4367   echo "$ac_t""no" 1>&6
4368 fi
4369
4370
4371 THREAD_LIB=error
4372 if test "x${THREAD_LIB}" = xerror; then
4373   echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4374 echo "configure:4375: checking for pthread_attr_init in -lpthread" >&5
4375 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4376 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4377   echo $ac_n "(cached) $ac_c" 1>&6
4378 else
4379   ac_save_LIBS="$LIBS"
4380 LIBS="-lpthread  $LIBS"
4381 cat > conftest.$ac_ext <<EOF
4382 #line 4383 "configure"
4383 #include "confdefs.h"
4384 /* Override any gcc2 internal prototype to avoid an error.  */
4385 /* We use char because int might match the return type of a gcc2
4386     builtin and then its argument prototype would still apply.  */
4387 char pthread_attr_init();
4388
4389 int main() {
4390 pthread_attr_init()
4391 ; return 0; }
4392 EOF
4393 if { (eval echo configure:4394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4394   rm -rf conftest*
4395   eval "ac_cv_lib_$ac_lib_var=yes"
4396 else
4397   echo "configure: failed program was:" >&5
4398   cat conftest.$ac_ext >&5
4399   rm -rf conftest*
4400   eval "ac_cv_lib_$ac_lib_var=no"
4401 fi
4402 rm -f conftest*
4403 LIBS="$ac_save_LIBS"
4404
4405 fi
4406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4407   echo "$ac_t""yes" 1>&6
4408   THREAD_LIB="-lpthread"
4409 else
4410   echo "$ac_t""no" 1>&6
4411 fi
4412
4413 fi
4414 if test "x${THREAD_LIB}" = xerror; then
4415   echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4416 echo "configure:4417: checking for pthread_attr_init in -lpthreads" >&5
4417 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4419   echo $ac_n "(cached) $ac_c" 1>&6
4420 else
4421   ac_save_LIBS="$LIBS"
4422 LIBS="-lpthreads  $LIBS"
4423 cat > conftest.$ac_ext <<EOF
4424 #line 4425 "configure"
4425 #include "confdefs.h"
4426 /* Override any gcc2 internal prototype to avoid an error.  */
4427 /* We use char because int might match the return type of a gcc2
4428     builtin and then its argument prototype would still apply.  */
4429 char pthread_attr_init();
4430
4431 int main() {
4432 pthread_attr_init()
4433 ; return 0; }
4434 EOF
4435 if { (eval echo configure:4436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4436   rm -rf conftest*
4437   eval "ac_cv_lib_$ac_lib_var=yes"
4438 else
4439   echo "configure: failed program was:" >&5
4440   cat conftest.$ac_ext >&5
4441   rm -rf conftest*
4442   eval "ac_cv_lib_$ac_lib_var=no"
4443 fi
4444 rm -f conftest*
4445 LIBS="$ac_save_LIBS"
4446
4447 fi
4448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4449   echo "$ac_t""yes" 1>&6
4450   THREAD_LIB="-lpthreads"
4451 else
4452   echo "$ac_t""no" 1>&6
4453 fi
4454
4455 fi
4456 if test "x${THREAD_LIB}" = xerror; then
4457   echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4458 echo "configure:4459: checking for pthread_attr_init in -lc_r" >&5
4459 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4460 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4461   echo $ac_n "(cached) $ac_c" 1>&6
4462 else
4463   ac_save_LIBS="$LIBS"
4464 LIBS="-lc_r  $LIBS"
4465 cat > conftest.$ac_ext <<EOF
4466 #line 4467 "configure"
4467 #include "confdefs.h"
4468 /* Override any gcc2 internal prototype to avoid an error.  */
4469 /* We use char because int might match the return type of a gcc2
4470     builtin and then its argument prototype would still apply.  */
4471 char pthread_attr_init();
4472
4473 int main() {
4474 pthread_attr_init()
4475 ; return 0; }
4476 EOF
4477 if { (eval echo configure:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4478   rm -rf conftest*
4479   eval "ac_cv_lib_$ac_lib_var=yes"
4480 else
4481   echo "configure: failed program was:" >&5
4482   cat conftest.$ac_ext >&5
4483   rm -rf conftest*
4484   eval "ac_cv_lib_$ac_lib_var=no"
4485 fi
4486 rm -f conftest*
4487 LIBS="$ac_save_LIBS"
4488
4489 fi
4490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4491   echo "$ac_t""yes" 1>&6
4492   THREAD_LIB="-lc_r"
4493 else
4494   echo "$ac_t""no" 1>&6
4495 fi
4496
4497 fi
4498 if test "x${THREAD_LIB}" = xerror; then
4499   echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4500 echo "configure:4501: checking for pthread_attr_init" >&5
4501 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4502   echo $ac_n "(cached) $ac_c" 1>&6
4503 else
4504   cat > conftest.$ac_ext <<EOF
4505 #line 4506 "configure"
4506 #include "confdefs.h"
4507 /* System header to define __stub macros and hopefully few prototypes,
4508     which can conflict with char pthread_attr_init(); below.  */
4509 #include <assert.h>
4510 /* Override any gcc2 internal prototype to avoid an error.  */
4511 /* We use char because int might match the return type of a gcc2
4512     builtin and then its argument prototype would still apply.  */
4513 char pthread_attr_init();
4514
4515 int main() {
4516
4517 /* The GNU C library defines this for functions which it implements
4518     to always fail with ENOSYS.  Some functions are actually named
4519     something starting with __ and the normal name is an alias.  */
4520 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4521 choke me
4522 #else
4523 pthread_attr_init();
4524 #endif
4525
4526 ; return 0; }
4527 EOF
4528 if { (eval echo configure:4529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4529   rm -rf conftest*
4530   eval "ac_cv_func_pthread_attr_init=yes"
4531 else
4532   echo "configure: failed program was:" >&5
4533   cat conftest.$ac_ext >&5
4534   rm -rf conftest*
4535   eval "ac_cv_func_pthread_attr_init=no"
4536 fi
4537 rm -f conftest*
4538 fi
4539
4540 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4541   echo "$ac_t""yes" 1>&6
4542   :
4543 else
4544   echo "$ac_t""no" 1>&6
4545 fi
4546
4547   THREAD_LIB=""
4548 fi
4549
4550 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4551 echo "configure:4552: checking for cthread_fork in -lthreads" >&5
4552 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4553 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4554   echo $ac_n "(cached) $ac_c" 1>&6
4555 else
4556   ac_save_LIBS="$LIBS"
4557 LIBS="-lthreads  $LIBS"
4558 cat > conftest.$ac_ext <<EOF
4559 #line 4560 "configure"
4560 #include "confdefs.h"
4561 /* Override any gcc2 internal prototype to avoid an error.  */
4562 /* We use char because int might match the return type of a gcc2
4563     builtin and then its argument prototype would still apply.  */
4564 char cthread_fork();
4565
4566 int main() {
4567 cthread_fork()
4568 ; return 0; }
4569 EOF
4570 if { (eval echo configure:4571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4571   rm -rf conftest*
4572   eval "ac_cv_lib_$ac_lib_var=yes"
4573 else
4574   echo "configure: failed program was:" >&5
4575   cat conftest.$ac_ext >&5
4576   rm -rf conftest*
4577   eval "ac_cv_lib_$ac_lib_var=no"
4578 fi
4579 rm -f conftest*
4580 LIBS="$ac_save_LIBS"
4581
4582 fi
4583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4584   echo "$ac_t""yes" 1>&6
4585   THREAD_LIB="-lthreads"
4586 else
4587   echo "$ac_t""no" 1>&6
4588 fi
4589
4590
4591 cat > conftest.$ac_ext <<EOF
4592 #line 4593 "configure"
4593 #include "confdefs.h"
4594 #include <pthread.h>
4595 EOF
4596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4597   egrep "pthread_cond_t" >/dev/null 2>&1; then
4598   rm -rf conftest*
4599   
4600   cat >> confdefs.h <<\EOF
4601 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4602 EOF
4603
4604 fi
4605 rm -f conftest*
4606
4607 cat > conftest.$ac_ext <<EOF
4608 #line 4609 "configure"
4609 #include "confdefs.h"
4610 #include <strings.h>
4611 EOF
4612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4613   egrep "strncasecmp" >/dev/null 2>&1; then
4614   rm -rf conftest*
4615   
4616   cat >> confdefs.h <<\EOF
4617 #define STRNCASECMP_IN_STRINGS_H 1
4618 EOF
4619
4620 fi
4621 rm -f conftest*
4622
4623
4624 for ac_hdr in getopt.h strings.h
4625 do
4626 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4627 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4628 echo "configure:4629: checking for $ac_hdr" >&5
4629 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4630   echo $ac_n "(cached) $ac_c" 1>&6
4631 else
4632   cat > conftest.$ac_ext <<EOF
4633 #line 4634 "configure"
4634 #include "confdefs.h"
4635 #include <$ac_hdr>
4636 EOF
4637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4638 { (eval echo configure:4639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4640 if test -z "$ac_err"; then
4641   rm -rf conftest*
4642   eval "ac_cv_header_$ac_safe=yes"
4643 else
4644   echo "$ac_err" >&5
4645   echo "configure: failed program was:" >&5
4646   cat conftest.$ac_ext >&5
4647   rm -rf conftest*
4648   eval "ac_cv_header_$ac_safe=no"
4649 fi
4650 rm -f conftest*
4651 fi
4652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4653   echo "$ac_t""yes" 1>&6
4654     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4655   cat >> confdefs.h <<EOF
4656 #define $ac_tr_hdr 1
4657 EOF
4658  
4659 else
4660   echo "$ac_t""no" 1>&6
4661 fi
4662 done
4663
4664 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4665 do
4666 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4668 echo "configure:4669: checking for $ac_hdr" >&5
4669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4670   echo $ac_n "(cached) $ac_c" 1>&6
4671 else
4672   cat > conftest.$ac_ext <<EOF
4673 #line 4674 "configure"
4674 #include "confdefs.h"
4675 #include <$ac_hdr>
4676 EOF
4677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4678 { (eval echo configure:4679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4680 if test -z "$ac_err"; then
4681   rm -rf conftest*
4682   eval "ac_cv_header_$ac_safe=yes"
4683 else
4684   echo "$ac_err" >&5
4685   echo "configure: failed program was:" >&5
4686   cat conftest.$ac_ext >&5
4687   rm -rf conftest*
4688   eval "ac_cv_header_$ac_safe=no"
4689 fi
4690 rm -f conftest*
4691 fi
4692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4693   echo "$ac_t""yes" 1>&6
4694     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4695   cat >> confdefs.h <<EOF
4696 #define $ac_tr_hdr 1
4697 EOF
4698  
4699 else
4700   echo "$ac_t""no" 1>&6
4701 fi
4702 done
4703
4704 for ac_hdr in dlfcn.h image.h
4705 do
4706 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4707 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4708 echo "configure:4709: checking for $ac_hdr" >&5
4709 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4710   echo $ac_n "(cached) $ac_c" 1>&6
4711 else
4712   cat > conftest.$ac_ext <<EOF
4713 #line 4714 "configure"
4714 #include "confdefs.h"
4715 #include <$ac_hdr>
4716 EOF
4717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4718 { (eval echo configure:4719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4719 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4720 if test -z "$ac_err"; then
4721   rm -rf conftest*
4722   eval "ac_cv_header_$ac_safe=yes"
4723 else
4724   echo "$ac_err" >&5
4725   echo "configure: failed program was:" >&5
4726   cat conftest.$ac_ext >&5
4727   rm -rf conftest*
4728   eval "ac_cv_header_$ac_safe=no"
4729 fi
4730 rm -f conftest*
4731 fi
4732 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4733   echo "$ac_t""yes" 1>&6
4734     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4735   cat >> confdefs.h <<EOF
4736 #define $ac_tr_hdr 1
4737 EOF
4738  
4739 else
4740   echo "$ac_t""no" 1>&6
4741 fi
4742 done
4743
4744 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4745 do
4746 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4747 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4748 echo "configure:4749: checking for $ac_hdr" >&5
4749 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4750   echo $ac_n "(cached) $ac_c" 1>&6
4751 else
4752   cat > conftest.$ac_ext <<EOF
4753 #line 4754 "configure"
4754 #include "confdefs.h"
4755 #include <$ac_hdr>
4756 EOF
4757 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4758 { (eval echo configure:4759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4759 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4760 if test -z "$ac_err"; then
4761   rm -rf conftest*
4762   eval "ac_cv_header_$ac_safe=yes"
4763 else
4764   echo "$ac_err" >&5
4765   echo "configure: failed program was:" >&5
4766   cat conftest.$ac_ext >&5
4767   rm -rf conftest*
4768   eval "ac_cv_header_$ac_safe=no"
4769 fi
4770 rm -f conftest*
4771 fi
4772 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4773   echo "$ac_t""yes" 1>&6
4774     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4775   cat >> confdefs.h <<EOF
4776 #define $ac_tr_hdr 1
4777 EOF
4778  
4779 else
4780   echo "$ac_t""no" 1>&6
4781 fi
4782 done
4783
4784 for ac_hdr in machine/param.h sys/shm.h
4785 do
4786 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4787 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4788 echo "configure:4789: checking for $ac_hdr" >&5
4789 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4790   echo $ac_n "(cached) $ac_c" 1>&6
4791 else
4792   cat > conftest.$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4795 #include <$ac_hdr>
4796 EOF
4797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4798 { (eval echo configure:4799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4799 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4800 if test -z "$ac_err"; then
4801   rm -rf conftest*
4802   eval "ac_cv_header_$ac_safe=yes"
4803 else
4804   echo "$ac_err" >&5
4805   echo "configure: failed program was:" >&5
4806   cat conftest.$ac_ext >&5
4807   rm -rf conftest*
4808   eval "ac_cv_header_$ac_safe=no"
4809 fi
4810 rm -f conftest*
4811 fi
4812 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4813   echo "$ac_t""yes" 1>&6
4814     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4815   cat >> confdefs.h <<EOF
4816 #define $ac_tr_hdr 1
4817 EOF
4818  
4819 else
4820   echo "$ac_t""no" 1>&6
4821 fi
4822 done
4823
4824
4825 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4826 echo "configure:4827: checking whether time.h and sys/time.h may both be included" >&5
4827 if eval "test \"`echo '$''{'ac_cv_header_time'+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 <sys/types.h>
4834 #include <sys/time.h>
4835 #include <time.h>
4836 int main() {
4837 struct tm *tp;
4838 ; return 0; }
4839 EOF
4840 if { (eval echo configure:4841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4841   rm -rf conftest*
4842   ac_cv_header_time=yes
4843 else
4844   echo "configure: failed program was:" >&5
4845   cat conftest.$ac_ext >&5
4846   rm -rf conftest*
4847   ac_cv_header_time=no
4848 fi
4849 rm -f conftest*
4850 fi
4851
4852 echo "$ac_t""$ac_cv_header_time" 1>&6
4853 if test $ac_cv_header_time = yes; then
4854   cat >> confdefs.h <<\EOF
4855 #define TIME_WITH_SYS_TIME 1
4856 EOF
4857
4858 fi
4859
4860
4861 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4862 do
4863 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4864 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4865 echo "configure:4866: checking for $ac_hdr" >&5
4866 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4867   echo $ac_n "(cached) $ac_c" 1>&6
4868 else
4869   cat > conftest.$ac_ext <<EOF
4870 #line 4871 "configure"
4871 #include "confdefs.h"
4872 #include <$ac_hdr>
4873 EOF
4874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4875 { (eval echo configure:4876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4877 if test -z "$ac_err"; then
4878   rm -rf conftest*
4879   eval "ac_cv_header_$ac_safe=yes"
4880 else
4881   echo "$ac_err" >&5
4882   echo "configure: failed program was:" >&5
4883   cat conftest.$ac_ext >&5
4884   rm -rf conftest*
4885   eval "ac_cv_header_$ac_safe=no"
4886 fi
4887 rm -f conftest*
4888 fi
4889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4890   echo "$ac_t""yes" 1>&6
4891     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4892   cat >> confdefs.h <<EOF
4893 #define $ac_tr_hdr 1
4894 EOF
4895  
4896 else
4897   echo "$ac_t""no" 1>&6
4898 fi
4899 done
4900
4901
4902 if test x$SYS != xmingw32
4903 then
4904   if test x$x_includes = xNONE; then
4905     x_includes=/usr/X11R6/include
4906   fi
4907   if test x$x_libraries = xNONE; then
4908     x_libraries=/usr/X11R6/lib
4909   fi
4910   saved_CPPFLAGS=$CPPFLAGS
4911   CPPFLAGS="$CPPFLAGS -I$x_includes"
4912   for ac_hdr in X11/extensions/dpms.h
4913 do
4914 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4915 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4916 echo "configure:4917: checking for $ac_hdr" >&5
4917 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4918   echo $ac_n "(cached) $ac_c" 1>&6
4919 else
4920   cat > conftest.$ac_ext <<EOF
4921 #line 4922 "configure"
4922 #include "confdefs.h"
4923 #include <$ac_hdr>
4924 EOF
4925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4926 { (eval echo configure:4927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4928 if test -z "$ac_err"; then
4929   rm -rf conftest*
4930   eval "ac_cv_header_$ac_safe=yes"
4931 else
4932   echo "$ac_err" >&5
4933   echo "configure: failed program was:" >&5
4934   cat conftest.$ac_ext >&5
4935   rm -rf conftest*
4936   eval "ac_cv_header_$ac_safe=no"
4937 fi
4938 rm -f conftest*
4939 fi
4940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4941   echo "$ac_t""yes" 1>&6
4942     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4943   cat >> confdefs.h <<EOF
4944 #define $ac_tr_hdr 1
4945 EOF
4946  
4947     cat > conftest.$ac_ext <<EOF
4948 #line 4949 "configure"
4949 #include "confdefs.h"
4950 #include <X11/extensions/dpms.h>
4951 EOF
4952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4953   egrep "DPMSInfo" >/dev/null 2>&1; then
4954   rm -rf conftest*
4955   
4956       cat >> confdefs.h <<\EOF
4957 #define DPMSINFO_IN_DPMS_H 1
4958 EOF
4959
4960     
4961 fi
4962 rm -f conftest*
4963
4964   
4965 else
4966   echo "$ac_t""no" 1>&6
4967 fi
4968 done
4969
4970   CPPFLAGS=$saved_CPPFLAGS
4971 fi
4972
4973 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4974 echo "configure:4975: checking for ntohl in sys/param.h" >&5
4975 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4976   echo $ac_n "(cached) $ac_c" 1>&6
4977 else
4978   CFLAGS="${save_CFLAGS} -Wall -Werror"
4979      cat > conftest.$ac_ext <<EOF
4980 #line 4981 "configure"
4981 #include "confdefs.h"
4982 #include <sys/param.h>
4983 int main() {
4984 void foo() { int meuh; ntohl(meuh); }
4985 ; return 0; }
4986 EOF
4987 if { (eval echo configure:4988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4988   rm -rf conftest*
4989   ac_cv_c_ntohl_sys_param_h=yes
4990 else
4991   echo "configure: failed program was:" >&5
4992   cat conftest.$ac_ext >&5
4993   rm -rf conftest*
4994   ac_cv_c_ntohl_sys_param_h=no
4995 fi
4996 rm -f conftest*
4997 fi
4998
4999 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
5000 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
5001     cat >> confdefs.h <<\EOF
5002 #define NTOHL_IN_SYS_PARAM_H 1
5003 EOF
5004
5005 fi
5006
5007 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
5008 echo "configure:5009: checking if \$CC accepts -finline-limit" >&5
5009 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
5010   echo $ac_n "(cached) $ac_c" 1>&6
5011 else
5012   CFLAGS="${save_CFLAGS} -finline-limit-30000"
5013      cat > conftest.$ac_ext <<EOF
5014 #line 5015 "configure"
5015 #include "confdefs.h"
5016
5017 int main() {
5018
5019 ; return 0; }
5020 EOF
5021 if { (eval echo configure:5022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5022   rm -rf conftest*
5023   ac_cv_c_inline_limit=yes
5024 else
5025   echo "configure: failed program was:" >&5
5026   cat conftest.$ac_ext >&5
5027   rm -rf conftest*
5028   ac_cv_c_inline_limit=no
5029 fi
5030 rm -f conftest*
5031 fi
5032
5033 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
5034 if test x"$ac_cv_c_inline_limit" != x"no"; then
5035     save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
5036 fi
5037
5038 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
5039 echo "configure:5040: checking if \$CC accepts -Wall -Winline" >&5
5040 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
5041   echo $ac_n "(cached) $ac_c" 1>&6
5042 else
5043   CFLAGS="${save_CFLAGS} -Wall -Winline"
5044      cat > conftest.$ac_ext <<EOF
5045 #line 5046 "configure"
5046 #include "confdefs.h"
5047
5048 int main() {
5049
5050 ; return 0; }
5051 EOF
5052 if { (eval echo configure:5053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5053   rm -rf conftest*
5054   ac_cv_c_Wall_Winline=yes
5055 else
5056   echo "configure: failed program was:" >&5
5057   cat conftest.$ac_ext >&5
5058   rm -rf conftest*
5059   ac_cv_c_Wall_Winline=no
5060 fi
5061 rm -f conftest*
5062 fi
5063
5064 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
5065 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
5066     save_CFLAGS="${save_CFLAGS} -Wall -Winline"
5067 else
5068     echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
5069 echo "configure:5070: checking if \$CC accepts -wall -winline" >&5
5070 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
5071   echo $ac_n "(cached) $ac_c" 1>&6
5072 else
5073   CFLAGS="${save_CFLAGS} -wall -winline"
5074          cat > conftest.$ac_ext <<EOF
5075 #line 5076 "configure"
5076 #include "confdefs.h"
5077
5078 int main() {
5079
5080 ; return 0; }
5081 EOF
5082 if { (eval echo configure:5083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5083   rm -rf conftest*
5084   ac_cv_c_wall_winline=yes
5085 else
5086   echo "configure: failed program was:" >&5
5087   cat conftest.$ac_ext >&5
5088   rm -rf conftest*
5089   ac_cv_c_wall_winline=no
5090 fi
5091 rm -f conftest*
5092 fi
5093
5094 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
5095     if test x"$ac_cv_c_wall_winline" != x"no"; then
5096         save_CFLAGS="${save_CFLAGS} -wall -winline"
5097     fi
5098 fi
5099
5100 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
5101 echo "configure:5102: checking if \$CC accepts -pipe" >&5
5102 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
5103   echo $ac_n "(cached) $ac_c" 1>&6
5104 else
5105   CFLAGS="${save_CFLAGS} -pipe"
5106      cat > conftest.$ac_ext <<EOF
5107 #line 5108 "configure"
5108 #include "confdefs.h"
5109
5110 int main() {
5111
5112 ; return 0; }
5113 EOF
5114 if { (eval echo configure:5115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5115   rm -rf conftest*
5116   ac_cv_c_pipe=yes
5117 else
5118   echo "configure: failed program was:" >&5
5119   cat conftest.$ac_ext >&5
5120   rm -rf conftest*
5121   ac_cv_c_pipe=no
5122 fi
5123 rm -f conftest*
5124 fi
5125
5126 echo "$ac_t""$ac_cv_c_pipe" 1>&6
5127 if test x"$ac_cv_c_pipe" != x"no"; then
5128     save_CFLAGS="${save_CFLAGS} -pipe"
5129 fi
5130
5131 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
5132 echo "configure:5133: checking if \$CC accepts -O3" >&5
5133 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
5134   echo $ac_n "(cached) $ac_c" 1>&6
5135 else
5136   CFLAGS="${save_CFLAGS} -O3"
5137      cat > conftest.$ac_ext <<EOF
5138 #line 5139 "configure"
5139 #include "confdefs.h"
5140
5141 int main() {
5142
5143 ; return 0; }
5144 EOF
5145 if { (eval echo configure:5146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5146   rm -rf conftest*
5147   ac_cv_c_o3=yes
5148 else
5149   echo "configure: failed program was:" >&5
5150   cat conftest.$ac_ext >&5
5151   rm -rf conftest*
5152   ac_cv_c_o3=no
5153 fi
5154 rm -f conftest*
5155 fi
5156
5157 echo "$ac_t""$ac_cv_c_o3" 1>&6
5158 if test x"$ac_cv_c_o3" != x"no"; then
5159     CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
5160 else
5161     echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
5162 echo "configure:5163: checking if \$CC accepts -O2" >&5
5163 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
5164   echo $ac_n "(cached) $ac_c" 1>&6
5165 else
5166   CFLAGS="${save_CFLAGS} -O2"
5167          cat > conftest.$ac_ext <<EOF
5168 #line 5169 "configure"
5169 #include "confdefs.h"
5170
5171 int main() {
5172
5173 ; return 0; }
5174 EOF
5175 if { (eval echo configure:5176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5176   rm -rf conftest*
5177   ac_cv_c_o2=yes
5178 else
5179   echo "configure: failed program was:" >&5
5180   cat conftest.$ac_ext >&5
5181   rm -rf conftest*
5182   ac_cv_c_o2=no
5183 fi
5184 rm -f conftest*
5185 fi
5186
5187 echo "$ac_t""$ac_cv_c_o2" 1>&6
5188     if test x"$ac_cv_c_o2" != x"no"; then
5189         CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
5190     else
5191         echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
5192 echo "configure:5193: checking if \$CC accepts -O" >&5
5193 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
5194   echo $ac_n "(cached) $ac_c" 1>&6
5195 else
5196   CFLAGS="${save_CFLAGS} -O"
5197              cat > conftest.$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5200
5201 int main() {
5202
5203 ; return 0; }
5204 EOF
5205 if { (eval echo configure:5206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5206   rm -rf conftest*
5207   ac_cv_c_o=yes
5208 else
5209   echo "configure: failed program was:" >&5
5210   cat conftest.$ac_ext >&5
5211   rm -rf conftest*
5212   ac_cv_c_o=no
5213 fi
5214 rm -f conftest*
5215 fi
5216
5217 echo "$ac_t""$ac_cv_c_o" 1>&6
5218         if test x"$ac_cv_c_o" != x"no"; then
5219             CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
5220         fi
5221     fi
5222 fi
5223
5224 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
5225 echo "configure:5226: checking if \$CC accepts -ffast-math" >&5
5226 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
5227   echo $ac_n "(cached) $ac_c" 1>&6
5228 else
5229   CFLAGS="${save_CFLAGS} -ffast-math"
5230      cat > conftest.$ac_ext <<EOF
5231 #line 5232 "configure"
5232 #include "confdefs.h"
5233
5234 int main() {
5235
5236 ; return 0; }
5237 EOF
5238 if { (eval echo configure:5239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5239   rm -rf conftest*
5240   ac_cv_c_fast_math=yes
5241 else
5242   echo "configure: failed program was:" >&5
5243   cat conftest.$ac_ext >&5
5244   rm -rf conftest*
5245   ac_cv_c_fast_math=no
5246 fi
5247 rm -f conftest*
5248 fi
5249
5250 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5251 if test x"$ac_cv_c_fast_math" != x"no"; then
5252     CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5253 fi
5254
5255 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5256 echo "configure:5257: checking if \$CC accepts -funroll-loops" >&5
5257 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5258   echo $ac_n "(cached) $ac_c" 1>&6
5259 else
5260   CFLAGS="${save_CFLAGS} -funroll-loops"
5261      cat > conftest.$ac_ext <<EOF
5262 #line 5263 "configure"
5263 #include "confdefs.h"
5264
5265 int main() {
5266
5267 ; return 0; }
5268 EOF
5269 if { (eval echo configure:5270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5270   rm -rf conftest*
5271   ac_cv_c_unroll_loops=yes
5272 else
5273   echo "configure: failed program was:" >&5
5274   cat conftest.$ac_ext >&5
5275   rm -rf conftest*
5276   ac_cv_c_unroll_loops=no
5277 fi
5278 rm -f conftest*
5279 fi
5280
5281 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5282 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5283     CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5284 fi
5285
5286 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5287 echo "configure:5288: checking if \$CC accepts -fomit-frame-pointer" >&5
5288 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5289   echo $ac_n "(cached) $ac_c" 1>&6
5290 else
5291   CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5292      cat > conftest.$ac_ext <<EOF
5293 #line 5294 "configure"
5294 #include "confdefs.h"
5295
5296 int main() {
5297
5298 ; return 0; }
5299 EOF
5300 if { (eval echo configure:5301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5301   rm -rf conftest*
5302   ac_cv_c_omit_frame_pointer=yes
5303 else
5304   echo "configure: failed program was:" >&5
5305   cat conftest.$ac_ext >&5
5306   rm -rf conftest*
5307   ac_cv_c_omit_frame_pointer=no
5308 fi
5309 rm -f conftest*
5310 fi
5311
5312 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5313 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5314     CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5315 fi
5316
5317 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5318 echo "configure:5319: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5319 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5320   echo $ac_n "(cached) $ac_c" 1>&6
5321 else
5322   CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5323      cat > conftest.$ac_ext <<EOF
5324 #line 5325 "configure"
5325 #include "confdefs.h"
5326
5327 int main() {
5328
5329 ; return 0; }
5330 EOF
5331 if { (eval echo configure:5332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5332   rm -rf conftest*
5333   ac_cv_ld_darwin=yes
5334 else
5335   echo "configure: failed program was:" >&5
5336   cat conftest.$ac_ext >&5
5337   rm -rf conftest*
5338   ac_cv_ld_darwin=no
5339 fi
5340 rm -f conftest*
5341 fi
5342
5343 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5344 if test x"$ac_cv_ld_darwin" != x"no"; then
5345     PLDFLAGS="${PLDFLAGS} -bundle -undefined error -lcc_dynamic"
5346 fi
5347
5348 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5349 echo "configure:5350: checking if \$CC accepts -shared" >&5
5350 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5351   echo $ac_n "(cached) $ac_c" 1>&6
5352 else
5353   CFLAGS="${save_CFLAGS} -shared"
5354      cat > conftest.$ac_ext <<EOF
5355 #line 5356 "configure"
5356 #include "confdefs.h"
5357
5358 int main() {
5359
5360 ; return 0; }
5361 EOF
5362 if { (eval echo configure:5363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5363   rm -rf conftest*
5364   ac_cv_ld_plugins=yes
5365 else
5366   echo "configure: failed program was:" >&5
5367   cat conftest.$ac_ext >&5
5368   rm -rf conftest*
5369   ac_cv_ld_plugins=no
5370 fi
5371 rm -f conftest*
5372 fi
5373
5374 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5375 if test x"$ac_cv_ld_plugins" != x"no"; then
5376     PLDFLAGS="${PLDFLAGS} -shared"
5377 fi
5378         
5379 if test x"${SOFLAGS}" = x; then
5380     echo $ac_n "checking for soname setting""... $ac_c" 1>&6
5381 echo "configure:5382: checking for soname setting" >&5
5382 if eval "test \"`echo '$''{'ac_cv_ld_soname'+set}'`\" = set"; then
5383   echo $ac_n "(cached) $ac_c" 1>&6
5384 else
5385   
5386         # Standard
5387         try_SOFLAGS="-Wl,-soname -Wl,"
5388         LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5389         cat > conftest.$ac_ext <<EOF
5390 #line 5391 "configure"
5391 #include "confdefs.h"
5392
5393 int main() {
5394
5395 ; return 0; }
5396 EOF
5397 if { (eval echo configure:5398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5398   rm -rf conftest*
5399   ac_cv_ld_soname="${try_SOFLAGS}"
5400 else
5401   echo "configure: failed program was:" >&5
5402   cat conftest.$ac_ext >&5
5403   rm -rf conftest*
5404   
5405             # SunOS
5406             try_SOFLAGS="-Wl,-h -Wl,"
5407             LDFLAGS="${save_LDFLAGS} ${try_SOFLAGS}foo.so.0"
5408             cat > conftest.$ac_ext <<EOF
5409 #line 5410 "configure"
5410 #include "confdefs.h"
5411
5412 int main() {
5413
5414 ; return 0; }
5415 EOF
5416 if { (eval echo configure:5417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5417   rm -rf conftest*
5418   ac_cv_ld_soname="${try_SOFLAGS}"
5419 else
5420   echo "configure: failed program was:" >&5
5421   cat conftest.$ac_ext >&5
5422   rm -rf conftest*
5423   ac_cv_ld_soname=none
5424 fi
5425 rm -f conftest*
5426         
5427 fi
5428 rm -f conftest*
5429 fi
5430
5431 echo "$ac_t""$ac_cv_ld_soname" 1>&6
5432     if test x"$ac_cv_ld_soname" != x"none"; then
5433         SOFLAGS=$ac_cv_ld_soname
5434     else
5435         echo "
5436 ------------
5437 Your system doesn't seem to have support for dynamic linking. You may
5438 have problems using libdvdcss.
5439 ------------
5440 "
5441     fi
5442 fi
5443
5444 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5445 echo "configure:5446: checking __attribute__ ((aligned ())) support" >&5
5446 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5447   echo $ac_n "(cached) $ac_c" 1>&6
5448 else
5449   ac_cv_c_attribute_aligned=0
5450         CFLAGS="${save_CFLAGS} -Werror"
5451     for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5452         cat > conftest.$ac_ext <<EOF
5453 #line 5454 "configure"
5454 #include "confdefs.h"
5455
5456 int main() {
5457 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5458 ; return 0; }
5459 EOF
5460 if { (eval echo configure:5461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5461   rm -rf conftest*
5462   ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5463 else
5464   echo "configure: failed program was:" >&5
5465   cat conftest.$ac_ext >&5
5466 fi
5467 rm -f conftest*
5468     done
5469 fi
5470
5471 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5472 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5473     cat >> confdefs.h <<EOF
5474 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5475 EOF
5476
5477 fi
5478
5479 CFLAGS="${save_CFLAGS}"
5480 LDFLAGS="${save_LDFLAGS}"
5481
5482 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5483 echo "configure:5484: checking for boolean_t in sys/types.h" >&5
5484 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5485   echo $ac_n "(cached) $ac_c" 1>&6
5486 else
5487   cat > conftest.$ac_ext <<EOF
5488 #line 5489 "configure"
5489 #include "confdefs.h"
5490 #include <sys/types.h>
5491 int main() {
5492 boolean_t foo;
5493 ; return 0; }
5494 EOF
5495 if { (eval echo configure:5496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5496   rm -rf conftest*
5497   ac_cv_c_boolean_t_sys_types_h=yes
5498 else
5499   echo "configure: failed program was:" >&5
5500   cat conftest.$ac_ext >&5
5501   rm -rf conftest*
5502   ac_cv_c_boolean_t_sys_types_h=no
5503 fi
5504 rm -f conftest*
5505 fi
5506
5507 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5508 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5509     cat >> confdefs.h <<\EOF
5510 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5511 EOF
5512
5513 fi
5514
5515 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5516 echo "configure:5517: checking for boolean_t in pthread.h" >&5
5517 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5518   echo $ac_n "(cached) $ac_c" 1>&6
5519 else
5520   cat > conftest.$ac_ext <<EOF
5521 #line 5522 "configure"
5522 #include "confdefs.h"
5523 #include <pthread.h>
5524 int main() {
5525 boolean_t foo;
5526 ; return 0; }
5527 EOF
5528 if { (eval echo configure:5529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5529   rm -rf conftest*
5530   ac_cv_c_boolean_t_pthread_h=yes
5531 else
5532   echo "configure: failed program was:" >&5
5533   cat conftest.$ac_ext >&5
5534   rm -rf conftest*
5535   ac_cv_c_boolean_t_pthread_h=no
5536 fi
5537 rm -f conftest*
5538 fi
5539
5540 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5541 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5542     cat >> confdefs.h <<\EOF
5543 #define BOOLEAN_T_IN_PTHREAD_H 1
5544 EOF
5545
5546 fi
5547
5548 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5549 echo "configure:5550: checking for boolean_t in cthreads.h" >&5
5550 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5551   echo $ac_n "(cached) $ac_c" 1>&6
5552 else
5553   cat > conftest.$ac_ext <<EOF
5554 #line 5555 "configure"
5555 #include "confdefs.h"
5556 #include <cthreads.h>
5557 int main() {
5558 boolean_t foo;
5559 ; return 0; }
5560 EOF
5561 if { (eval echo configure:5562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5562   rm -rf conftest*
5563   ac_cv_c_boolean_t_cthreads_h=yes
5564 else
5565   echo "configure: failed program was:" >&5
5566   cat conftest.$ac_ext >&5
5567   rm -rf conftest*
5568   ac_cv_c_boolean_t_cthreads_h=no
5569 fi
5570 rm -f conftest*
5571 fi
5572
5573 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5574 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5575     cat >> confdefs.h <<\EOF
5576 #define BOOLEAN_T_IN_CTHREADS_H 1
5577 EOF
5578
5579 fi
5580
5581 case x"${target_cpu}" in
5582   x)
5583     ARCH=unknown
5584     ;;
5585   *)
5586     ARCH=${target_cpu}
5587     ;;
5588 esac
5589
5590 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"
5591 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"
5592
5593 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5594 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5595 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5596 SSE_MODULES="imdctsse downmixsse"
5597 ALTIVEC_MODULES="idctaltivec motionaltivec"
5598
5599 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5600 echo "configure:5601: checking if \$CC groks MMX inline assembly" >&5
5601 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5602   echo $ac_n "(cached) $ac_c" 1>&6
5603 else
5604   cat > conftest.$ac_ext <<EOF
5605 #line 5606 "configure"
5606 #include "confdefs.h"
5607
5608 int main() {
5609 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5610 ; return 0; }
5611 EOF
5612 if { (eval echo configure:5613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5613   rm -rf conftest*
5614   ac_cv_mmx_inline=yes
5615 else
5616   echo "configure: failed program was:" >&5
5617   cat conftest.$ac_ext >&5
5618   rm -rf conftest*
5619   ac_cv_mmx_inline=no
5620 fi
5621 rm -f conftest*
5622 fi
5623
5624 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5625 if test x"$ac_cv_mmx_inline" != x"no"; then
5626   ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5627 fi
5628
5629 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5630 echo "configure:5631: checking if \$CC groks MMX EXT inline assembly" >&5
5631 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5632   echo $ac_n "(cached) $ac_c" 1>&6
5633 else
5634   cat > conftest.$ac_ext <<EOF
5635 #line 5636 "configure"
5636 #include "confdefs.h"
5637
5638 int main() {
5639 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5640 ; return 0; }
5641 EOF
5642 if { (eval echo configure:5643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5643   rm -rf conftest*
5644   ac_cv_mmxext_inline=yes
5645 else
5646   echo "configure: failed program was:" >&5
5647   cat conftest.$ac_ext >&5
5648   rm -rf conftest*
5649   ac_cv_mmxext_inline=no
5650 fi
5651 rm -f conftest*
5652 fi
5653
5654 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5655 if test x"$ac_cv_mmxext_inline" != x"no"; then
5656   ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5657 fi
5658
5659 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5660 echo "configure:5661: checking if \$CC groks 3D Now! inline assembly" >&5
5661 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5662   echo $ac_n "(cached) $ac_c" 1>&6
5663 else
5664   cat > conftest.$ac_ext <<EOF
5665 #line 5666 "configure"
5666 #include "confdefs.h"
5667
5668 int main() {
5669 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5670 ; return 0; }
5671 EOF
5672 if { (eval echo configure:5673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5673   rm -rf conftest*
5674   ac_cv_3dnow_inline=yes
5675 else
5676   echo "configure: failed program was:" >&5
5677   cat conftest.$ac_ext >&5
5678   rm -rf conftest*
5679   ac_cv_3dnow_inline=no
5680 fi
5681 rm -f conftest*
5682 fi
5683
5684 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5685 if test x"$ac_cv_3dnow_inline" != x"no"; then
5686   cat >> confdefs.h <<\EOF
5687 #define CAN_COMPILE_3DNOW 1
5688 EOF
5689
5690   ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5691 fi
5692
5693 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5694 echo "configure:5695: checking if \$CC groks SSE inline assembly" >&5
5695 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5696   echo $ac_n "(cached) $ac_c" 1>&6
5697 else
5698   cat > conftest.$ac_ext <<EOF
5699 #line 5700 "configure"
5700 #include "confdefs.h"
5701
5702 int main() {
5703 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5704 ; return 0; }
5705 EOF
5706 if { (eval echo configure:5707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5707   rm -rf conftest*
5708   ac_cv_sse_inline=yes
5709 else
5710   echo "configure: failed program was:" >&5
5711   cat conftest.$ac_ext >&5
5712   rm -rf conftest*
5713   ac_cv_sse_inline=no
5714 fi
5715 rm -f conftest*
5716 fi
5717
5718 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5719 if test x"$ac_cv_sse_inline" != x"no"; then
5720   cat >> confdefs.h <<\EOF
5721 #define CAN_COMPILE_SSE 1
5722 EOF
5723
5724   ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5725 fi
5726
5727 # don't try to grok altivec with native mingw32 it doesn't work right now
5728 # we should be able to remove this test with future versions of mingw32
5729 if test x$SYS != xmingw32; then
5730 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5731 echo "configure:5732: checking if \$CC groks Altivec inline assembly" >&5
5732 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5733   echo $ac_n "(cached) $ac_c" 1>&6
5734 else
5735   cat > conftest.$ac_ext <<EOF
5736 #line 5737 "configure"
5737 #include "confdefs.h"
5738
5739 int main() {
5740 asm volatile("vperm 0,1,2,3");
5741 ; return 0; }
5742 EOF
5743 if { (eval echo configure:5744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5744   rm -rf conftest*
5745   ac_cv_altivec_inline=yes
5746 else
5747   echo "configure: failed program was:" >&5
5748   cat conftest.$ac_ext >&5
5749   rm -rf conftest*
5750   save_CFLAGS=$CFLAGS
5751           CFLAGS="$CFLAGS -Wa,-m7400"
5752           cat > conftest.$ac_ext <<EOF
5753 #line 5754 "configure"
5754 #include "confdefs.h"
5755
5756 int main() {
5757 asm volatile("vperm 0,1,2,3");
5758 ; return 0; }
5759 EOF
5760 if { (eval echo configure:5761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5761   rm -rf conftest*
5762   ac_cv_altivec_inline="-Wa,-m7400"
5763 else
5764   echo "configure: failed program was:" >&5
5765   cat conftest.$ac_ext >&5
5766   rm -rf conftest*
5767   ac_cv_altivec_inline=no
5768 fi
5769 rm -f conftest*
5770           CFLAGS=$save_CFLAGS
5771          
5772 fi
5773 rm -f conftest*
5774 fi
5775
5776 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5777 if test x"$ac_cv_altivec_inline" != x"no"; then
5778   cat >> confdefs.h <<\EOF
5779 #define CAN_COMPILE_ALTIVEC 1
5780 EOF
5781
5782   if test x"$ac_cv_altivec_inline" != x"yes"; then
5783     CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline"
5784     CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline"
5785     CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5786   fi
5787   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5788 fi
5789
5790 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5791 echo "configure:5792: checking if \$CC groks Altivec C extensions" >&5
5792 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5793   echo $ac_n "(cached) $ac_c" 1>&6
5794 else
5795   save_CFLAGS=$CFLAGS
5796      CFLAGS="$CFLAGS -faltivec"
5797      # Darwin test
5798      cat > conftest.$ac_ext <<EOF
5799 #line 5800 "configure"
5800 #include "confdefs.h"
5801
5802 int main() {
5803 vec_mtvscr((vector unsigned int)(0));
5804 ; return 0; }
5805 EOF
5806 if { (eval echo configure:5807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5807   rm -rf conftest*
5808   ac_cv_c_altivec=-faltivec
5809 else
5810   echo "configure: failed program was:" >&5
5811   cat conftest.$ac_ext >&5
5812   rm -rf conftest*
5813   
5814         # Linux/PPC test
5815         CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec"
5816         cat > conftest.$ac_ext <<EOF
5817 #line 5818 "configure"
5818 #include "confdefs.h"
5819
5820 int main() {
5821 vec_mtvscr((vector unsigned int)(0));
5822 ; return 0; }
5823 EOF
5824 if { (eval echo configure:5825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5825   rm -rf conftest*
5826   ac_cv_c_altivec="-fvec"
5827 else
5828   echo "configure: failed program was:" >&5
5829   cat conftest.$ac_ext >&5
5830   rm -rf conftest*
5831   ac_cv_c_altivec=no
5832 fi
5833 rm -f conftest*
5834         
5835 fi
5836 rm -f conftest*
5837      CFLAGS=$save_CFLAGS
5838     
5839 fi
5840
5841 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5842 if test x"$ac_cv_c_altivec" != x"no"; then
5843   cat >> confdefs.h <<\EOF
5844 #define CAN_COMPILE_C_ALTIVEC 1
5845 EOF
5846
5847   CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec"
5848   CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec"
5849   CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5850   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5851 fi
5852
5853 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5854 echo "configure:5855: checking if linker needs -framework vecLib" >&5
5855 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5856   echo $ac_n "(cached) $ac_c" 1>&6
5857 else
5858   save_LDFLAGS=$LDFLAGS
5859      LDFLAGS="$LDFLAGS -framework vecLib"
5860      cat > conftest.$ac_ext <<EOF
5861 #line 5862 "configure"
5862 #include "confdefs.h"
5863
5864 int main() {
5865
5866 ; return 0; }
5867 EOF
5868 if { (eval echo configure:5869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5869   rm -rf conftest*
5870   ac_cv_ld_altivec=yes
5871 else
5872   echo "configure: failed program was:" >&5
5873   cat conftest.$ac_ext >&5
5874   rm -rf conftest*
5875   ac_cv_ld_altivec=no
5876 fi
5877 rm -f conftest*
5878      LDFLAGS=$save_LDFLAGS
5879     
5880 fi
5881
5882 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5883 if test x"$ac_cv_ld_altivec" != x"no"; then
5884   LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib"
5885   LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib"
5886   LIB_VLC="${LIB_VLC} -framework vecLib"
5887 fi
5888 fi # end if mingw32
5889
5890 case x$SYS in
5891   xmingw32)
5892     DVD_DEVICE="E:"
5893     VCD_DEVICE="E:"
5894     ;;
5895   *)
5896     DVD_DEVICE="/dev/dvd"
5897     VCD_DEVICE="/dev/cdrom"
5898     ;;
5899 esac
5900
5901 cat >> confdefs.h <<EOF
5902 #define DVD_DEVICE "$DVD_DEVICE"
5903 EOF
5904
5905 cat >> confdefs.h <<EOF
5906 #define VCD_DEVICE "$VCD_DEVICE"
5907 EOF
5908
5909
5910
5911
5912 CAN_BUILD_LIBDVDCSS=0
5913
5914 for ac_hdr in winioctl.h
5915 do
5916 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5918 echo "configure:5919: checking for $ac_hdr" >&5
5919 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5920   echo $ac_n "(cached) $ac_c" 1>&6
5921 else
5922   cat > conftest.$ac_ext <<EOF
5923 #line 5924 "configure"
5924 #include "confdefs.h"
5925 #include <$ac_hdr>
5926 EOF
5927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5928 { (eval echo configure:5929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5930 if test -z "$ac_err"; then
5931   rm -rf conftest*
5932   eval "ac_cv_header_$ac_safe=yes"
5933 else
5934   echo "$ac_err" >&5
5935   echo "configure: failed program was:" >&5
5936   cat conftest.$ac_ext >&5
5937   rm -rf conftest*
5938   eval "ac_cv_header_$ac_safe=no"
5939 fi
5940 rm -f conftest*
5941 fi
5942 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5943   echo "$ac_t""yes" 1>&6
5944     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5945   cat >> confdefs.h <<EOF
5946 #define $ac_tr_hdr 1
5947 EOF
5948  
5949   CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5950
5951 else
5952   echo "$ac_t""no" 1>&6
5953 fi
5954 done
5955
5956
5957 for ac_hdr in sys/ioctl.h
5958 do
5959 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5960 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5961 echo "configure:5962: checking for $ac_hdr" >&5
5962 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5963   echo $ac_n "(cached) $ac_c" 1>&6
5964 else
5965   cat > conftest.$ac_ext <<EOF
5966 #line 5967 "configure"
5967 #include "confdefs.h"
5968 #include <$ac_hdr>
5969 EOF
5970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5971 { (eval echo configure:5972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5973 if test -z "$ac_err"; then
5974   rm -rf conftest*
5975   eval "ac_cv_header_$ac_safe=yes"
5976 else
5977   echo "$ac_err" >&5
5978   echo "configure: failed program was:" >&5
5979   cat conftest.$ac_ext >&5
5980   rm -rf conftest*
5981   eval "ac_cv_header_$ac_safe=no"
5982 fi
5983 rm -f conftest*
5984 fi
5985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5986   echo "$ac_t""yes" 1>&6
5987     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5988   cat >> confdefs.h <<EOF
5989 #define $ac_tr_hdr 1
5990 EOF
5991  
5992   CAN_BUILD_LIBDVDCSS="${HAVE_LIBDVDCSS}"
5993   for ac_hdr in sys/cdio.h sys/dvdio.h linux/cdrom.h dvd.h
5994 do
5995 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5996 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5997 echo "configure:5998: checking for $ac_hdr" >&5
5998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5999   echo $ac_n "(cached) $ac_c" 1>&6
6000 else
6001   cat > conftest.$ac_ext <<EOF
6002 #line 6003 "configure"
6003 #include "confdefs.h"
6004 #include <$ac_hdr>
6005 EOF
6006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6007 { (eval echo configure:6008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6008 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6009 if test -z "$ac_err"; then
6010   rm -rf conftest*
6011   eval "ac_cv_header_$ac_safe=yes"
6012 else
6013   echo "$ac_err" >&5
6014   echo "configure: failed program was:" >&5
6015   cat conftest.$ac_ext >&5
6016   rm -rf conftest*
6017   eval "ac_cv_header_$ac_safe=no"
6018 fi
6019 rm -f conftest*
6020 fi
6021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6022   echo "$ac_t""yes" 1>&6
6023     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6024   cat >> confdefs.h <<EOF
6025 #define $ac_tr_hdr 1
6026 EOF
6027  
6028 else
6029   echo "$ac_t""no" 1>&6
6030 fi
6031 done
6032
6033   BSD_DVD_STRUCT=0
6034   LINUX_DVD_STRUCT=0
6035   OPENBSD_DVD_STRUCT=0
6036         cat > conftest.$ac_ext <<EOF
6037 #line 6038 "configure"
6038 #include "confdefs.h"
6039 #include <sys/cdio.h>
6040 EOF
6041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6042   egrep "dvd_struct" >/dev/null 2>&1; then
6043   rm -rf conftest*
6044   
6045     cat >> confdefs.h <<\EOF
6046 #define DVD_STRUCT_IN_SYS_CDIO_H 1
6047 EOF
6048
6049     cat > conftest.$ac_ext <<EOF
6050 #line 6051 "configure"
6051 #include "confdefs.h"
6052 #include <sys/cdio.h>
6053 EOF
6054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6055   egrep "struct dvd_struct" >/dev/null 2>&1; then
6056   rm -rf conftest*
6057   
6058                     BSD_DVD_STRUCT=1
6059 else
6060   rm -rf conftest*
6061   LINUX_DVD_STRUCT=1; OPENBSD_DVD_STRUCT=1
6062 fi
6063 rm -f conftest*
6064
6065   
6066 fi
6067 rm -f conftest*
6068
6069         cat > conftest.$ac_ext <<EOF
6070 #line 6071 "configure"
6071 #include "confdefs.h"
6072 #include <sys/dvdio.h>
6073 EOF
6074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6075   egrep "dvd_struct" >/dev/null 2>&1; then
6076   rm -rf conftest*
6077   
6078     cat >> confdefs.h <<\EOF
6079 #define DVD_STRUCT_IN_SYS_DVDIO_H 1
6080 EOF
6081
6082     cat > conftest.$ac_ext <<EOF
6083 #line 6084 "configure"
6084 #include "confdefs.h"
6085 #include <sys/dvdio.h>
6086 EOF
6087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6088   egrep "struct dvd_struct" >/dev/null 2>&1; then
6089   rm -rf conftest*
6090   
6091                     BSD_DVD_STRUCT=1
6092 else
6093   rm -rf conftest*
6094   LINUX_DVD_STRUCT=1
6095 fi
6096 rm -f conftest*
6097
6098   
6099 fi
6100 rm -f conftest*
6101
6102         cat > conftest.$ac_ext <<EOF
6103 #line 6104 "configure"
6104 #include "confdefs.h"
6105 #include <linux/cdrom.h>
6106 EOF
6107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6108   egrep "dvd_struct" >/dev/null 2>&1; then
6109   rm -rf conftest*
6110   
6111     cat >> confdefs.h <<\EOF
6112 #define DVD_STRUCT_IN_LINUX_CDROM_H 1
6113 EOF
6114
6115     LINUX_DVD_STRUCT=1
6116   
6117 fi
6118 rm -f conftest*
6119
6120         NEED_BSDI_LIBDVD=0
6121   cat > conftest.$ac_ext <<EOF
6122 #line 6123 "configure"
6123 #include "confdefs.h"
6124 #include <dvd.h>
6125 EOF
6126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6127   egrep "dvd_struct" >/dev/null 2>&1; then
6128   rm -rf conftest*
6129   
6130     cat >> confdefs.h <<\EOF
6131 #define DVD_STRUCT_IN_DVD_H 1
6132 EOF
6133
6134     LIB_LIBDVDCSS="${LIB_LIBDVDCSS} -ldvd"
6135     LINUX_DVD_STRUCT=1
6136   
6137 else
6138   rm -rf conftest*
6139   
6140                 for ac_hdr in /sys/dev/scsi/scsi_ioctl.h
6141 do
6142 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6143 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6144 echo "configure:6145: checking for $ac_hdr" >&5
6145 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6146   echo $ac_n "(cached) $ac_c" 1>&6
6147 else
6148   cat > conftest.$ac_ext <<EOF
6149 #line 6150 "configure"
6150 #include "confdefs.h"
6151 #include <$ac_hdr>
6152 EOF
6153 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6154 { (eval echo configure:6155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6155 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6156 if test -z "$ac_err"; then
6157   rm -rf conftest*
6158   eval "ac_cv_header_$ac_safe=yes"
6159 else
6160   echo "$ac_err" >&5
6161   echo "configure: failed program was:" >&5
6162   cat conftest.$ac_ext >&5
6163   rm -rf conftest*
6164   eval "ac_cv_header_$ac_safe=no"
6165 fi
6166 rm -f conftest*
6167 fi
6168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6169   echo "$ac_t""yes" 1>&6
6170     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6171   cat >> confdefs.h <<EOF
6172 #define $ac_tr_hdr 1
6173 EOF
6174  
6175       NEED_BSDI_LIBDVD=1
6176       cat >> confdefs.h <<\EOF
6177 #define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1
6178 EOF
6179
6180       SRC_DVDCSS_EXTRA="${SRC_DVDCSS_EXTRA} bsdi_dvdioctl.c"
6181       LINUX_DVD_STRUCT=1
6182     
6183 else
6184   echo "$ac_t""no" 1>&6
6185 fi
6186 done
6187
6188   
6189 fi
6190 rm -f conftest*
6191
6192         ac_safe=`echo "sys/scsi/scsi_types.h" | sed 'y%./+-%__p_%'`
6193 echo $ac_n "checking for sys/scsi/scsi_types.h""... $ac_c" 1>&6
6194 echo "configure:6195: checking for sys/scsi/scsi_types.h" >&5
6195 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6196   echo $ac_n "(cached) $ac_c" 1>&6
6197 else
6198   cat > conftest.$ac_ext <<EOF
6199 #line 6200 "configure"
6200 #include "confdefs.h"
6201 #include <sys/scsi/scsi_types.h>
6202 EOF
6203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6204 { (eval echo configure:6205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6206 if test -z "$ac_err"; then
6207   rm -rf conftest*
6208   eval "ac_cv_header_$ac_safe=yes"
6209 else
6210   echo "$ac_err" >&5
6211   echo "configure: failed program was:" >&5
6212   cat conftest.$ac_ext >&5
6213   rm -rf conftest*
6214   eval "ac_cv_header_$ac_safe=no"
6215 fi
6216 rm -f conftest*
6217 fi
6218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6219   echo "$ac_t""yes" 1>&6
6220   
6221     ac_safe=`echo "sys/scsi/impl/uscsi.h" | sed 'y%./+-%__p_%'`
6222 echo $ac_n "checking for sys/scsi/impl/uscsi.h""... $ac_c" 1>&6
6223 echo "configure:6224: checking for sys/scsi/impl/uscsi.h" >&5
6224 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6225   echo $ac_n "(cached) $ac_c" 1>&6
6226 else
6227   cat > conftest.$ac_ext <<EOF
6228 #line 6229 "configure"
6229 #include "confdefs.h"
6230 #include <sys/scsi/impl/uscsi.h>
6231 EOF
6232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6233 { (eval echo configure:6234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6235 if test -z "$ac_err"; then
6236   rm -rf conftest*
6237   eval "ac_cv_header_$ac_safe=yes"
6238 else
6239   echo "$ac_err" >&5
6240   echo "configure: failed program was:" >&5
6241   cat conftest.$ac_ext >&5
6242   rm -rf conftest*
6243   eval "ac_cv_header_$ac_safe=no"
6244 fi
6245 rm -f conftest*
6246 fi
6247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6248   echo "$ac_t""yes" 1>&6
6249   
6250       cat >> confdefs.h <<\EOF
6251 #define SOLARIS_USCSI 1
6252 EOF
6253
6254     
6255 else
6256   echo "$ac_t""no" 1>&6
6257 fi
6258
6259   
6260 else
6261   echo "$ac_t""no" 1>&6
6262 fi
6263
6264         ac_safe=`echo "sys/scsi.h" | sed 'y%./+-%__p_%'`
6265 echo $ac_n "checking for sys/scsi.h""... $ac_c" 1>&6
6266 echo "configure:6267: checking for sys/scsi.h" >&5
6267 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6268   echo $ac_n "(cached) $ac_c" 1>&6
6269 else
6270   cat > conftest.$ac_ext <<EOF
6271 #line 6272 "configure"
6272 #include "confdefs.h"
6273 #include <sys/scsi.h>
6274 EOF
6275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6276 { (eval echo configure:6277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6278 if test -z "$ac_err"; then
6279   rm -rf conftest*
6280   eval "ac_cv_header_$ac_safe=yes"
6281 else
6282   echo "$ac_err" >&5
6283   echo "configure: failed program was:" >&5
6284   cat conftest.$ac_ext >&5
6285   rm -rf conftest*
6286   eval "ac_cv_header_$ac_safe=no"
6287 fi
6288 rm -f conftest*
6289 fi
6290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6291   echo "$ac_t""yes" 1>&6
6292   
6293     cat > conftest.$ac_ext <<EOF
6294 #line 6295 "configure"
6295 #include "confdefs.h"
6296 #include <sys/scsi.h>
6297 EOF
6298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6299   egrep "sctl_io" >/dev/null 2>&1; then
6300   rm -rf conftest*
6301   
6302       cat >> confdefs.h <<\EOF
6303 #define HPUX_SCTL_IO 1
6304 EOF
6305
6306     
6307 fi
6308 rm -f conftest*
6309
6310   
6311 else
6312   echo "$ac_t""no" 1>&6
6313 fi
6314
6315         if test x$LINUX_DVD_STRUCT = x1; then
6316     cat >> confdefs.h <<\EOF
6317 #define HAVE_LINUX_DVD_STRUCT 1
6318 EOF
6319
6320     if test x$OPENBSD_DVD_STRUCT = x1; then
6321       cat >> confdefs.h <<\EOF
6322 #define HAVE_OPENBSD_DVD_STRUCT 1
6323 EOF
6324
6325     fi
6326   else
6327     if test x$BSD_DVD_STRUCT = x1; then
6328       cat >> confdefs.h <<\EOF
6329 #define HAVE_BSD_DVD_STRUCT 1
6330 EOF
6331
6332     fi
6333   fi
6334
6335 else
6336   echo "$ac_t""no" 1>&6
6337 fi
6338 done
6339
6340
6341 # Check whether --with- or --without- was given.
6342 if test "${with_+set}" = set; then
6343   withval="$with_"
6344   :
6345 fi
6346
6347 # Check whether --with- or --without- was given.
6348 if test "${with_+set}" = set; then
6349   withval="$with_"
6350   :
6351 fi
6352
6353
6354 # Check whether --with-tuning or --without-tuning was given.
6355 if test "${with_tuning+set}" = set; then
6356   withval="$with_tuning"
6357   :
6358 fi
6359
6360 if test "x$withval" != "x"; then
6361     TUNING=$withval
6362 else
6363     if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
6364     else
6365         if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
6366     fi
6367 fi
6368
6369 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
6370 then
6371     ARCH="${ARCH} mmx"
6372     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
6373 fi
6374
6375 # Check whether --enable-optimizations or --disable-optimizations was given.
6376 if test "${enable_optimizations+set}" = set; then
6377   enableval="$enable_optimizations"
6378    if test x$enableval = xno; then OPTIMS=0; fi 
6379 else
6380    OPTIMS=1 
6381 fi
6382
6383
6384 # Check whether --enable-altivec or --disable-altivec was given.
6385 if test "${enable_altivec+set}" = set; then
6386   enableval="$enable_altivec"
6387    if test x$enableval = xyes; then ARCH="${ARCH} altivec";
6388     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
6389 else
6390    if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
6391     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
6392 fi
6393
6394
6395 DEBUG=0
6396 # Check whether --enable-debug or --disable-debug was given.
6397 if test "${enable_debug+set}" = set; then
6398   enableval="$enable_debug"
6399    if test x$enableval = xyes; then DEBUG=1; fi 
6400 fi
6401
6402
6403 # Check whether --enable-release or --disable-release was given.
6404 if test "${enable_release+set}" = set; then
6405   enableval="$enable_release"
6406    if test x$enableval = xyes; then RELEASE=1; fi 
6407 else
6408    VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
6409   LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`"; 
6410 fi
6411
6412
6413
6414 # Check whether --with- or --without- was given.
6415 if test "${with_+set}" = set; then
6416   withval="$with_"
6417   :
6418 fi
6419
6420
6421 NEED_LIBDVDCSS=0
6422 STATIC_LIBDVDCSS=0
6423 DUMMY_LIBDVDCSS=0
6424 # Check whether --with-dvdcss or --without-dvdcss was given.
6425 if test "${with_dvdcss+set}" = set; then
6426   withval="$with_dvdcss"
6427    case "x${withval}" in
6428     xlocal-static|xyes)
6429       # local libdvdcss, statically linked
6430       BUILTINS="${BUILTINS} dvd"
6431       if test x${CAN_BUILD_LIBDVDCSS} = x1
6432       then
6433         NEED_LIBDVDCSS=1
6434         STATIC_LIBDVDCSS=1
6435         CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6436         LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6437       fi
6438     ;;
6439     xlocal-shared)
6440       # local libdvdcss, dynamically linked
6441       PLUGINS="${PLUGINS} dvd"
6442       if test x${CAN_BUILD_LIBDVDCSS} = x1
6443       then
6444         NEED_LIBDVDCSS=1
6445         CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6446         LIB_DVD="${LIB_DVD} -L../../lib -ldvdcss"
6447       fi
6448     ;;
6449     xno)
6450       # don't use libdvdcss at all, build a DVD module that can dlopen() it
6451       PLUGINS="${PLUGINS} dvd"
6452       DUMMY_LIBDVDCSS=1
6453       SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6454       CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6455       CFLAGS_DVD="${CFLAGS_DVD} -DLIBDVDCSS_VERSION=\"${LIBDVDCSS_VERSION}\""
6456       LIB_DVD="${LIB_DVD} -ldl"
6457     ;;
6458     *)
6459       # existing libdvdcss
6460       PLUGINS="${PLUGINS} dvd"
6461       if test "x$withval" != "xyes"
6462       then
6463         LIB_DVD="${LIB_DVD} -L"$withval"/lib"
6464         CFLAGS_DVD="${CFLAGS_DVD} -I"$withval"/include"
6465       fi
6466       LIB_DVD="${LIB_DVD} -ldvdcss"
6467     esac 
6468 else
6469   # user didn't decide, we choose to use local libdvdcss and link statically
6470   # if libdvdcss is in the archive, or to use the dummy replacement otherwise.
6471    if test x${CAN_BUILD_LIBDVDCSS} = x1
6472     then
6473       BUILTINS="${BUILTINS} dvd"
6474       NEED_LIBDVDCSS=1
6475       STATIC_LIBDVDCSS=1
6476       CFLAGS_DVD="${CFLAGS_DVD} -I../../extras/libdvdcss"
6477       LIB_DVD="${LIB_DVD} lib/libdvdcss.a ${LIB_LIBDVDCSS}"
6478     else
6479       # XXX: no check for libdl is done, don't try this at home !
6480       PLUGINS="${PLUGINS} dvd"
6481       DUMMY_LIBDVDCSS=1
6482       SRC_DVD_EXTRA="${SRC_DVD_EXTRA} dummy_dvdcss.c"
6483       CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
6484       LIB_DVD="${LIB_DVD} -ldl"
6485     fi 
6486 fi
6487
6488
6489 if test x${DUMMY_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6490 if test x${STATIC_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
6491 # Check whether --with-dvdread or --without-dvdread was given.
6492 if test "${with_dvdread+set}" = set; then
6493   withval="$with_dvdread"
6494    case "x${withval}" in
6495     xlocal-static|xyes)
6496       if test x${STATIC_LIBDVDREAD} = x1
6497       then
6498         BUILTINS="${BUILTINS} dvdread" 
6499         CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6500         LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6501       else
6502         { echo "configure: error: Can't link static dvdread with shared dvdcss" 1>&2; exit 1; }
6503       fi
6504     ;;
6505     xno)
6506     ;;
6507     x)
6508       if test x${STATIC_LIBDVDREAD} = x1
6509       then
6510         #BUILTINS="${BUILTINS} dvdread" 
6511         CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD} -I../../extras/libdvdread"
6512         LIB_DVDREAD="${LIB_DVDREAD} lib/libdvdread.a ${LIB_DVD}"
6513       else
6514         #PLUGINS="${PLUGINS} dvdread"
6515         CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread  ${CFLAGS_DVD}"
6516         LIB_DVDREAD="${LIB_DVDREAD} -Llib -ldvdread ${LIB_DVD}"
6517       fi 
6518     ;;
6519     *)
6520       if test "x$withval" != "xlocal-shared"
6521       then
6522         LIB_DVDREAD="${LIB_DVDREAD} -L"$withval"/lib"
6523         CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I"$withval"/include"
6524       else
6525         LIB_DVDREAD="${LIB_DVDREAD} -L../../lib"
6526         CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I../../extras/libdvdread"
6527       fi
6528       if test x${STATIC_LIBDVDCSS} = x1
6529       then
6530         { echo "configure: error: Can't link shared dvdread with static dvdcss" 1>&2; exit 1; }
6531       else
6532         #PLUGINS="${PLUGINS} dvdread"
6533         CFLAGS_DVDREAD="${CFLAGS_DVDREAD} ${CFLAGS_DVD}"
6534         LIB_DVDREAD="${LIB_DVDREAD} -ldvdread ${LIB_DVD}"
6535       fi
6536     esac
6537     if test x${DUMMY_LIBDVDCSS} = x1
6538     then
6539       LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -ldl"
6540     else
6541       LIB_LIBDVDREAD="${LIB_LIBDVDREAD} -L../../lib -ldvdcss"
6542     fi 
6543 fi
6544
6545
6546 # Check whether --enable-vcd or --disable-vcd was given.
6547 if test "${enable_vcd+set}" = set; then
6548   enableval="$enable_vcd"
6549   :
6550 fi
6551
6552
6553 if test x$enable_vcd != xno
6554 then
6555   cat > conftest.$ac_ext <<EOF
6556 #line 6557 "configure"
6557 #include "confdefs.h"
6558 #include <linux/cdrom.h>
6559 EOF
6560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6561   egrep "cdrom_msf0" >/dev/null 2>&1; then
6562   rm -rf conftest*
6563   
6564     PLUGINS="${PLUGINS} vcd"
6565   
6566 fi
6567 rm -f conftest*
6568
6569
6570   if test "x${SYS}" = "xbsdi"
6571   then
6572     PLUGINS="${PLUGINS} vcd"
6573   fi
6574
6575   if test "x${SYS}" = "xdarwin"
6576   then
6577     PLUGINS="${PLUGINS} vcd"
6578     LIB_VCD="${LIB_VCD} -framework IOKit -framework CoreFoundation" 
6579   fi
6580 fi
6581
6582 # Check whether --enable-satellite or --disable-satellite was given.
6583 if test "${enable_satellite+set}" = set; then
6584   enableval="$enable_satellite"
6585    if test x$enable_satellite = xyes
6586     then
6587       BUILTINS="${BUILTINS} satellite"
6588       cat >> confdefs.h <<\EOF
6589 #define HAVE_SATELLITE 1
6590 EOF
6591
6592     fi
6593 fi
6594
6595
6596 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
6597 echo "configure:6598: checking for inet_pton" >&5
6598 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
6599   echo $ac_n "(cached) $ac_c" 1>&6
6600 else
6601   cat > conftest.$ac_ext <<EOF
6602 #line 6603 "configure"
6603 #include "confdefs.h"
6604 /* System header to define __stub macros and hopefully few prototypes,
6605     which can conflict with char inet_pton(); below.  */
6606 #include <assert.h>
6607 /* Override any gcc2 internal prototype to avoid an error.  */
6608 /* We use char because int might match the return type of a gcc2
6609     builtin and then its argument prototype would still apply.  */
6610 char inet_pton();
6611
6612 int main() {
6613
6614 /* The GNU C library defines this for functions which it implements
6615     to always fail with ENOSYS.  Some functions are actually named
6616     something starting with __ and the normal name is an alias.  */
6617 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
6618 choke me
6619 #else
6620 inet_pton();
6621 #endif
6622
6623 ; return 0; }
6624 EOF
6625 if { (eval echo configure:6626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6626   rm -rf conftest*
6627   eval "ac_cv_func_inet_pton=yes"
6628 else
6629   echo "configure: failed program was:" >&5
6630   cat conftest.$ac_ext >&5
6631   rm -rf conftest*
6632   eval "ac_cv_func_inet_pton=no"
6633 fi
6634 rm -f conftest*
6635 fi
6636
6637 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
6638   echo "$ac_t""yes" 1>&6
6639   PLUGINS="${PLUGINS} ipv6"
6640 else
6641   echo "$ac_t""no" 1>&6
6642 fi
6643
6644
6645
6646 # Check whether --with- or --without- was given.
6647 if test "${with_+set}" = set; then
6648   withval="$with_"
6649   :
6650 fi
6651
6652
6653 # Check whether --enable-mad or --disable-mad was given.
6654 if test "${enable_mad+set}" = set; then
6655   enableval="$enable_mad"
6656   :
6657 fi
6658
6659 if test x$enable_mad = xyes
6660 then
6661   PLUGINS="${PLUGINS} mad"
6662   LIB_MAD="${LIB_MAD} -lmad"
6663   # Check whether --with-mad or --without-mad was given.
6664 if test "${with_mad+set}" = set; then
6665   withval="$with_mad"
6666    if test "x$with_val" != "xno" -a "x$with_val" != "x"
6667       then
6668         CFLAGS_MAD="${CFLAGS_MAD} -I$with_val/include"
6669         LIB_MAD="${LIB_MAD} -L$with_val/lib"
6670       fi 
6671 fi
6672
6673   save_CFLAGS=$CFLAGS
6674   save_LDFLAGS=$LDFLAGS
6675   CFLAGS="$CFLAGS $CFLAGS_MAD"
6676   LDFLAGS="$LDFLAGS $LIB_MAD"
6677   for ac_hdr in mad.h
6678 do
6679 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6681 echo "configure:6682: checking for $ac_hdr" >&5
6682 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6683   echo $ac_n "(cached) $ac_c" 1>&6
6684 else
6685   cat > conftest.$ac_ext <<EOF
6686 #line 6687 "configure"
6687 #include "confdefs.h"
6688 #include <$ac_hdr>
6689 EOF
6690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6691 { (eval echo configure:6692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6693 if test -z "$ac_err"; then
6694   rm -rf conftest*
6695   eval "ac_cv_header_$ac_safe=yes"
6696 else
6697   echo "$ac_err" >&5
6698   echo "configure: failed program was:" >&5
6699   cat conftest.$ac_ext >&5
6700   rm -rf conftest*
6701   eval "ac_cv_header_$ac_safe=no"
6702 fi
6703 rm -f conftest*
6704 fi
6705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6706   echo "$ac_t""yes" 1>&6
6707     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6708   cat >> confdefs.h <<EOF
6709 #define $ac_tr_hdr 1
6710 EOF
6711  
6712 else
6713   echo "$ac_t""no" 1>&6
6714 echo "Cannot find development headers for libmad..."
6715     exit 1
6716   
6717 fi
6718 done
6719
6720   echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6721 echo "configure:6722: checking for mad_bit_init in -lmad" >&5
6722 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6723 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6724   echo $ac_n "(cached) $ac_c" 1>&6
6725 else
6726   ac_save_LIBS="$LIBS"
6727 LIBS="-lmad  $LIBS"
6728 cat > conftest.$ac_ext <<EOF
6729 #line 6730 "configure"
6730 #include "confdefs.h"
6731 /* Override any gcc2 internal prototype to avoid an error.  */
6732 /* We use char because int might match the return type of a gcc2
6733     builtin and then its argument prototype would still apply.  */
6734 char mad_bit_init();
6735
6736 int main() {
6737 mad_bit_init()
6738 ; return 0; }
6739 EOF
6740 if { (eval echo configure:6741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6741   rm -rf conftest*
6742   eval "ac_cv_lib_$ac_lib_var=yes"
6743 else
6744   echo "configure: failed program was:" >&5
6745   cat conftest.$ac_ext >&5
6746   rm -rf conftest*
6747   eval "ac_cv_lib_$ac_lib_var=no"
6748 fi
6749 rm -f conftest*
6750 LIBS="$ac_save_LIBS"
6751
6752 fi
6753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6754   echo "$ac_t""yes" 1>&6
6755     ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6756     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6757   cat >> confdefs.h <<EOF
6758 #define $ac_tr_lib 1
6759 EOF
6760
6761   LIBS="-lmad $LIBS"
6762
6763 else
6764   echo "$ac_t""no" 1>&6
6765  echo "Cannot find libmad library..."
6766     exit 1
6767   
6768 fi
6769
6770   CFLAGS=$save_CFLAGS
6771   LDFLAGS=$save_LDFLAGS
6772 fi
6773
6774 if test x$SYS = xbeos
6775 then
6776     PLUGINS="${PLUGINS} beos"
6777
6778 else
6779
6780 # Check whether --enable-a52 or --disable-a52 was given.
6781 if test "${enable_a52+set}" = set; then
6782   enableval="$enable_a52"
6783   :
6784 fi
6785
6786 if test "x$enableval" != "xno" -a x$SYS != xmingw32
6787   then
6788     for ac_hdr in a52dec/a52.h
6789 do
6790 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6791 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6792 echo "configure:6793: checking for $ac_hdr" >&5
6793 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6794   echo $ac_n "(cached) $ac_c" 1>&6
6795 else
6796   cat > conftest.$ac_ext <<EOF
6797 #line 6798 "configure"
6798 #include "confdefs.h"
6799 #include <$ac_hdr>
6800 EOF
6801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6802 { (eval echo configure:6803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6804 if test -z "$ac_err"; then
6805   rm -rf conftest*
6806   eval "ac_cv_header_$ac_safe=yes"
6807 else
6808   echo "$ac_err" >&5
6809   echo "configure: failed program was:" >&5
6810   cat conftest.$ac_ext >&5
6811   rm -rf conftest*
6812   eval "ac_cv_header_$ac_safe=no"
6813 fi
6814 rm -f conftest*
6815 fi
6816 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6817   echo "$ac_t""yes" 1>&6
6818     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6819   cat >> confdefs.h <<EOF
6820 #define $ac_tr_hdr 1
6821 EOF
6822  
6823       BUILTINS="${BUILTINS} a52"
6824       LIB_A52="${LIB_A52} -la52"
6825      
6826 else
6827   echo "$ac_t""no" 1>&6
6828 fi
6829 done
6830
6831 fi
6832
6833
6834 # Check whether --with- or --without- was given.
6835 if test "${with_+set}" = set; then
6836   withval="$with_"
6837   :
6838 fi
6839
6840
6841 # Check whether --enable-x11 or --disable-x11 was given.
6842 if test "${enable_x11+set}" = set; then
6843   enableval="$enable_x11"
6844   :
6845 fi
6846
6847 if test x$enable_x11 != xno &&
6848   (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6849   if test x$x_includes = xNONE; then
6850     x_includes=/usr/X11R6/include
6851   fi
6852   if test x$x_libraries = xNONE; then
6853     x_libraries=/usr/X11R6/lib
6854   fi
6855   saved_CPPFLAGS=$CPPFLAGS
6856   CPPFLAGS="$CPPFLAGS -I$x_includes"
6857   for ac_hdr in X11/Xlib.h
6858 do
6859 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6860 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6861 echo "configure:6862: checking for $ac_hdr" >&5
6862 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6863   echo $ac_n "(cached) $ac_c" 1>&6
6864 else
6865   cat > conftest.$ac_ext <<EOF
6866 #line 6867 "configure"
6867 #include "confdefs.h"
6868 #include <$ac_hdr>
6869 EOF
6870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6871 { (eval echo configure:6872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6873 if test -z "$ac_err"; then
6874   rm -rf conftest*
6875   eval "ac_cv_header_$ac_safe=yes"
6876 else
6877   echo "$ac_err" >&5
6878   echo "configure: failed program was:" >&5
6879   cat conftest.$ac_ext >&5
6880   rm -rf conftest*
6881   eval "ac_cv_header_$ac_safe=no"
6882 fi
6883 rm -f conftest*
6884 fi
6885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6886   echo "$ac_t""yes" 1>&6
6887     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6888   cat >> confdefs.h <<EOF
6889 #define $ac_tr_hdr 1
6890 EOF
6891  
6892     PLUGINS="${PLUGINS} x11"
6893     LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
6894     CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
6895   
6896 else
6897   echo "$ac_t""no" 1>&6
6898 fi
6899 done
6900
6901   CPPFLAGS=$saved_CPPFLAGS
6902 fi
6903
6904 # Check whether --enable-xvideo or --disable-xvideo was given.
6905 if test "${enable_xvideo+set}" = set; then
6906   enableval="$enable_xvideo"
6907   :
6908 fi
6909
6910 if test x$enable_xvideo != xno &&
6911   (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6912   if test x$x_includes = xNONE; then
6913     x_includes=/usr/X11R6/include
6914   fi
6915   if test x$x_libraries = xNONE; then
6916     x_libraries=/usr/X11R6/lib
6917   fi
6918   saved_CPPFLAGS=$CPPFLAGS
6919   CPPFLAGS="$CPPFLAGS -I$x_includes"
6920   for ac_hdr in X11/extensions/Xv.h
6921 do
6922 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6923 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6924 echo "configure:6925: checking for $ac_hdr" >&5
6925 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6926   echo $ac_n "(cached) $ac_c" 1>&6
6927 else
6928   cat > conftest.$ac_ext <<EOF
6929 #line 6930 "configure"
6930 #include "confdefs.h"
6931 #include <$ac_hdr>
6932 EOF
6933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6934 { (eval echo configure:6935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6936 if test -z "$ac_err"; then
6937   rm -rf conftest*
6938   eval "ac_cv_header_$ac_safe=yes"
6939 else
6940   echo "$ac_err" >&5
6941   echo "configure: failed program was:" >&5
6942   cat conftest.$ac_ext >&5
6943   rm -rf conftest*
6944   eval "ac_cv_header_$ac_safe=no"
6945 fi
6946 rm -f conftest*
6947 fi
6948 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6949   echo "$ac_t""yes" 1>&6
6950     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6951   cat >> confdefs.h <<EOF
6952 #define $ac_tr_hdr 1
6953 EOF
6954  
6955     saved_CFLAGS=$CFLAGS
6956     CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
6957     echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6958 echo "configure:6959: checking for XvSetPortAttribute in -lXv_pic" >&5
6959 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6960 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6961   echo $ac_n "(cached) $ac_c" 1>&6
6962 else
6963   ac_save_LIBS="$LIBS"
6964 LIBS="-lXv_pic  $LIBS"
6965 cat > conftest.$ac_ext <<EOF
6966 #line 6967 "configure"
6967 #include "confdefs.h"
6968 /* Override any gcc2 internal prototype to avoid an error.  */
6969 /* We use char because int might match the return type of a gcc2
6970     builtin and then its argument prototype would still apply.  */
6971 char XvSetPortAttribute();
6972
6973 int main() {
6974 XvSetPortAttribute()
6975 ; return 0; }
6976 EOF
6977 if { (eval echo configure:6978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6978   rm -rf conftest*
6979   eval "ac_cv_lib_$ac_lib_var=yes"
6980 else
6981   echo "configure: failed program was:" >&5
6982   cat conftest.$ac_ext >&5
6983   rm -rf conftest*
6984   eval "ac_cv_lib_$ac_lib_var=no"
6985 fi
6986 rm -f conftest*
6987 LIBS="$ac_save_LIBS"
6988
6989 fi
6990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6991   echo "$ac_t""yes" 1>&6
6992   # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6993       PLUGINS="${PLUGINS} xvideo"
6994       LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv_pic"
6995       CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
6996 else
6997   echo "$ac_t""no" 1>&6
6998 # We don't have Xv_pic, let's make xvideo.a as builtin
6999       BUILTINS="${BUILTINS} xvideo"
7000       LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
7001       CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
7002 fi
7003
7004     CFLAGS=$saved_CFLAGS
7005   
7006   CPPFLAGS=$saved_CPPFLAGS
7007 else
7008   echo "$ac_t""no" 1>&6
7009 fi
7010 done
7011
7012 fi
7013
7014 # Check whether --enable-sdl or --disable-sdl was given.
7015 if test "${enable_sdl+set}" = set; then
7016   enableval="$enable_sdl"
7017   :
7018 fi
7019
7020 if test "x$enable_sdl" != "xno"
7021 then
7022   SDL_PATH=$PATH
7023   # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
7024 if test "${with_sdl_config_path+set}" = set; then
7025   withval="$with_sdl_config_path"
7026    if test "x$withval" != "xno"
7027       then
7028         SDL_PATH=$withval:$PATH
7029       fi 
7030 fi
7031
7032   # Extract the first word of "sdl12-config", so it can be a program name with args.
7033 set dummy sdl12-config; ac_word=$2
7034 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7035 echo "configure:7036: checking for $ac_word" >&5
7036 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
7037   echo $ac_n "(cached) $ac_c" 1>&6
7038 else
7039   case "$SDL12_CONFIG" in
7040   /*)
7041   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
7042   ;;
7043   ?:/*)                  
7044   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
7045   ;;
7046   *)
7047   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7048   ac_dummy="$SDL_PATH"
7049   for ac_dir in $ac_dummy; do 
7050     test -z "$ac_dir" && ac_dir=.
7051     if test -f $ac_dir/$ac_word; then
7052       ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
7053       break
7054     fi
7055   done
7056   IFS="$ac_save_ifs"
7057   test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
7058   ;;
7059 esac
7060 fi
7061 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
7062 if test -n "$SDL12_CONFIG"; then
7063   echo "$ac_t""$SDL12_CONFIG" 1>&6
7064 else
7065   echo "$ac_t""no" 1>&6
7066 fi
7067
7068   SDL_CONFIG=${SDL12_CONFIG}
7069   SDL_HEADER="SDL12/SDL.h"
7070   if test x${SDL_CONFIG} = xno
7071   then
7072     # Extract the first word of "sdl11-config", so it can be a program name with args.
7073 set dummy sdl11-config; ac_word=$2
7074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7075 echo "configure:7076: checking for $ac_word" >&5
7076 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
7077   echo $ac_n "(cached) $ac_c" 1>&6
7078 else
7079   case "$SDL11_CONFIG" in
7080   /*)
7081   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
7082   ;;
7083   ?:/*)                  
7084   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
7085   ;;
7086   *)
7087   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7088   ac_dummy="$SDL_PATH"
7089   for ac_dir in $ac_dummy; do 
7090     test -z "$ac_dir" && ac_dir=.
7091     if test -f $ac_dir/$ac_word; then
7092       ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
7093       break
7094     fi
7095   done
7096   IFS="$ac_save_ifs"
7097   test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
7098   ;;
7099 esac
7100 fi
7101 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
7102 if test -n "$SDL11_CONFIG"; then
7103   echo "$ac_t""$SDL11_CONFIG" 1>&6
7104 else
7105   echo "$ac_t""no" 1>&6
7106 fi
7107
7108     SDL_CONFIG=${SDL11_CONFIG}
7109     SDL_HEADER="SDL11/SDL.h"
7110   fi
7111   if test x${SDL_CONFIG} = xno
7112   then
7113     # Extract the first word of "sdl-config", so it can be a program name with args.
7114 set dummy sdl-config; ac_word=$2
7115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7116 echo "configure:7117: checking for $ac_word" >&5
7117 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
7118   echo $ac_n "(cached) $ac_c" 1>&6
7119 else
7120   case "$SDL_CONFIG" in
7121   /*)
7122   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7123   ;;
7124   ?:/*)                  
7125   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
7126   ;;
7127   *)
7128   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7129   ac_dummy="$SDL_PATH"
7130   for ac_dir in $ac_dummy; do 
7131     test -z "$ac_dir" && ac_dir=.
7132     if test -f $ac_dir/$ac_word; then
7133       ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
7134       break
7135     fi
7136   done
7137   IFS="$ac_save_ifs"
7138   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7139   ;;
7140 esac
7141 fi
7142 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
7143 if test -n "$SDL_CONFIG"; then
7144   echo "$ac_t""$SDL_CONFIG" 1>&6
7145 else
7146   echo "$ac_t""no" 1>&6
7147 fi
7148
7149     SDL_HEADER="SDL/SDL.h"
7150   fi
7151   if test x${SDL_CONFIG} != xno
7152   then
7153     PLUGINS="${PLUGINS} sdl"
7154     CFLAGS_SDL="${CFLAGS_SDL} `${SDL_CONFIG} --cflags`"
7155     LIB_SDL="${LIB_SDL} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
7156     save_CPPFLAGS=$CPPFLAGS
7157     CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
7158     for ac_hdr in ${SDL_HEADER}
7159 do
7160 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7161 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7162 echo "configure:7163: checking for $ac_hdr" >&5
7163 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7164   echo $ac_n "(cached) $ac_c" 1>&6
7165 else
7166   cat > conftest.$ac_ext <<EOF
7167 #line 7168 "configure"
7168 #include "confdefs.h"
7169 #include <$ac_hdr>
7170 EOF
7171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7172 { (eval echo configure:7173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7174 if test -z "$ac_err"; then
7175   rm -rf conftest*
7176   eval "ac_cv_header_$ac_safe=yes"
7177 else
7178   echo "$ac_err" >&5
7179   echo "configure: failed program was:" >&5
7180   cat conftest.$ac_ext >&5
7181   rm -rf conftest*
7182   eval "ac_cv_header_$ac_safe=no"
7183 fi
7184 rm -f conftest*
7185 fi
7186 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7187   echo "$ac_t""yes" 1>&6
7188     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7189   cat >> confdefs.h <<EOF
7190 #define $ac_tr_hdr 1
7191 EOF
7192  cat >> confdefs.h <<EOF
7193 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
7194 EOF
7195
7196 else
7197   echo "$ac_t""no" 1>&6
7198 { echo "configure: error: The development package for SDL is not installed. 
7199 Please install it and try again. Alternatively you can also configure with 
7200 --disable-sdl." 1>&2; exit 1; }
7201       
7202 fi
7203 done
7204
7205     CPPFLAGS=$save_CPPFLAGS
7206     if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
7207     then
7208       { echo "configure: error: The development package for SDL is not installed.
7209 Please install it and try again. Alternatively you can also configure with
7210 --disable-sdl." 1>&2; exit 1; }
7211     fi
7212   elif test "x$enable_sdl" =  "xyes"
7213   then
7214     { echo "configure: error: I couldn't find the SDL package. You can download libSDL
7215 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
7216     " 1>&2; exit 1; }
7217   fi
7218 fi
7219
7220 # Check whether --enable-directx or --disable-directx was given.
7221 if test "${enable_directx+set}" = set; then
7222   enableval="$enable_directx"
7223   :
7224 fi
7225
7226 if test "x$enableval" != "xno"
7227 then
7228   if test x$SYS = xmingw32
7229   then
7230     # Check whether --with-directx or --without-directx was given.
7231 if test "${with_directx+set}" = set; then
7232   withval="$with_directx"
7233   :
7234 fi
7235
7236     if test "x$with_directx" = "x"
7237     then
7238       for ac_hdr in ddraw.h
7239 do
7240 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7241 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7242 echo "configure:7243: checking for $ac_hdr" >&5
7243 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7244   echo $ac_n "(cached) $ac_c" 1>&6
7245 else
7246   cat > conftest.$ac_ext <<EOF
7247 #line 7248 "configure"
7248 #include "confdefs.h"
7249 #include <$ac_hdr>
7250 EOF
7251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7252 { (eval echo configure:7253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7254 if test -z "$ac_err"; then
7255   rm -rf conftest*
7256   eval "ac_cv_header_$ac_safe=yes"
7257 else
7258   echo "$ac_err" >&5
7259   echo "configure: failed program was:" >&5
7260   cat conftest.$ac_ext >&5
7261   rm -rf conftest*
7262   eval "ac_cv_header_$ac_safe=no"
7263 fi
7264 rm -f conftest*
7265 fi
7266 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7267   echo "$ac_t""yes" 1>&6
7268     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7269   cat >> confdefs.h <<EOF
7270 #define $ac_tr_hdr 1
7271 EOF
7272   PLUGINS="${PLUGINS} directx"
7273         LIB_DIRECTX="${LIB_DIRECTX} -lgdi32" 
7274 else
7275   echo "$ac_t""no" 1>&6
7276 fi
7277 done
7278
7279     else
7280       echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
7281 echo "configure:7282: checking for directX headers in ${withval}" >&5
7282       if test -f ${withval}/ddraw.h
7283       then
7284         PLUGINS="${PLUGINS} directx"
7285         LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32"
7286         INCLUDE="${INCLUDE} -I${withval}"
7287         echo "$ac_t""yes" 1>&6
7288       else
7289         echo "$ac_t""no" 1>&6
7290         { echo "configure: error: Cannot find ${withval}/ddraw.h!" 1>&2; exit 1; }
7291       fi
7292     fi
7293   fi
7294 fi
7295
7296 # Check whether --enable-fb or --disable-fb was given.
7297 if test "${enable_fb+set}" = set; then
7298   enableval="$enable_fb"
7299   :
7300 fi
7301
7302     if test x$enable_fb != xno
7303     then
7304       for ac_hdr in linux/fb.h
7305 do
7306 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7307 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7308 echo "configure:7309: checking for $ac_hdr" >&5
7309 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7310   echo $ac_n "(cached) $ac_c" 1>&6
7311 else
7312   cat > conftest.$ac_ext <<EOF
7313 #line 7314 "configure"
7314 #include "confdefs.h"
7315 #include <$ac_hdr>
7316 EOF
7317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7318 { (eval echo configure:7319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7320 if test -z "$ac_err"; then
7321   rm -rf conftest*
7322   eval "ac_cv_header_$ac_safe=yes"
7323 else
7324   echo "$ac_err" >&5
7325   echo "configure: failed program was:" >&5
7326   cat conftest.$ac_ext >&5
7327   rm -rf conftest*
7328   eval "ac_cv_header_$ac_safe=no"
7329 fi
7330 rm -f conftest*
7331 fi
7332 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7333   echo "$ac_t""yes" 1>&6
7334     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7335   cat >> confdefs.h <<EOF
7336 #define $ac_tr_hdr 1
7337 EOF
7338  
7339         PLUGINS="${PLUGINS} fb"
7340       
7341 else
7342   echo "$ac_t""no" 1>&6
7343 fi
7344 done
7345
7346     fi
7347
7348 # Check whether --enable-mga or --disable-mga was given.
7349 if test "${enable_mga+set}" = set; then
7350   enableval="$enable_mga"
7351    if test x$enable_mga = xyes
7352     then
7353       PLUGINS="${PLUGINS} mga xmga"
7354     fi 
7355 fi
7356
7357
7358 # Check whether --enable-ggi or --disable-ggi was given.
7359 if test "${enable_ggi+set}" = set; then
7360   enableval="$enable_ggi"
7361   :
7362 fi
7363
7364 if test x$enable_ggi = xyes
7365 then
7366   PLUGINS="${PLUGINS} ggi"
7367   LIB_GGI="${LIB_GGI} -lggi"
7368   # Check whether --with-ggi or --without-ggi was given.
7369 if test "${with_ggi+set}" = set; then
7370   withval="$with_ggi"
7371    if test "x$with_val" != "xno" -a "x$with_val" != "x"
7372       then
7373         CFLAGS_GGI="${CFLAGS_GGI} -I$with_val/include"
7374         LIB_GGI="${LIB_GGI} -L$with_val/lib"
7375       fi 
7376 fi
7377
7378 fi
7379
7380 # Check whether --enable-glide or --disable-glide was given.
7381 if test "${enable_glide+set}" = set; then
7382   enableval="$enable_glide"
7383   :
7384 fi
7385
7386 if test x$enable_glide = xyes
7387 then
7388   PLUGINS="${PLUGINS} glide"
7389   LIB_GLIDE="${LIB_GLIDE} -lglide2x -lm"
7390   CFLAGS_GLIDE="${CFLAGS_GLIDE} -I/usr/include/glide"
7391   # Check whether --with-glide or --without-glide was given.
7392 if test "${with_glide+set}" = set; then
7393   withval="$with_glide"
7394    if test "x$with_val" != "xno" -a "x$with_val" != "x"
7395       then
7396         CFLAGS_GLIDE="${CFLAGS_GLIDE} -I$with_val/include"
7397         LIB_GLIDE="${LIB_GLIDE} -L$with_val/lib"
7398       fi 
7399 fi
7400
7401 fi
7402
7403 # Check whether --enable-aa or --disable-aa was given.
7404 if test "${enable_aa+set}" = set; then
7405   enableval="$enable_aa"
7406   :
7407 fi
7408
7409 if test x$enable_aa = xyes
7410 then
7411   ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
7412 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
7413 echo "configure:7414: checking for aalib.h" >&5
7414 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7415   echo $ac_n "(cached) $ac_c" 1>&6
7416 else
7417   cat > conftest.$ac_ext <<EOF
7418 #line 7419 "configure"
7419 #include "confdefs.h"
7420 #include <aalib.h>
7421 EOF
7422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7423 { (eval echo configure:7424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7424 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7425 if test -z "$ac_err"; then
7426   rm -rf conftest*
7427   eval "ac_cv_header_$ac_safe=yes"
7428 else
7429   echo "$ac_err" >&5
7430   echo "configure: failed program was:" >&5
7431   cat conftest.$ac_ext >&5
7432   rm -rf conftest*
7433   eval "ac_cv_header_$ac_safe=no"
7434 fi
7435 rm -f conftest*
7436 fi
7437 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7438   echo "$ac_t""yes" 1>&6
7439   have_aa="true"
7440 else
7441   echo "$ac_t""no" 1>&6
7442 have_aa="false"
7443 fi
7444
7445   if test x$have_aa = xtrue
7446   then
7447     PLUGINS="${PLUGINS} aa"
7448     LIB_AA="${LIB_AA} -laa"
7449   fi
7450 fi
7451
7452
7453 # Check whether --with- or --without- was given.
7454 if test "${with_+set}" = set; then
7455   withval="$with_"
7456   :
7457 fi
7458
7459
7460 # Check whether --enable-dsp or --disable-dsp was given.
7461 if test "${enable_dsp+set}" = set; then
7462   enableval="$enable_dsp"
7463   :
7464 fi
7465
7466
7467 if test x$enable_dsp != xno &&
7468   (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
7469 then
7470   for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
7471 do
7472 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7473 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7474 echo "configure:7475: checking for $ac_hdr" >&5
7475 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7476   echo $ac_n "(cached) $ac_c" 1>&6
7477 else
7478   cat > conftest.$ac_ext <<EOF
7479 #line 7480 "configure"
7480 #include "confdefs.h"
7481 #include <$ac_hdr>
7482 EOF
7483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7484 { (eval echo configure:7485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7485 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7486 if test -z "$ac_err"; then
7487   rm -rf conftest*
7488   eval "ac_cv_header_$ac_safe=yes"
7489 else
7490   echo "$ac_err" >&5
7491   echo "configure: failed program was:" >&5
7492   cat conftest.$ac_ext >&5
7493   rm -rf conftest*
7494   eval "ac_cv_header_$ac_safe=no"
7495 fi
7496 rm -f conftest*
7497 fi
7498 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7499   echo "$ac_t""yes" 1>&6
7500     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7501   cat >> confdefs.h <<EOF
7502 #define $ac_tr_hdr 1
7503 EOF
7504  
7505     PLUGINS="${PLUGINS} dsp"
7506     echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
7507 echo "configure:7508: checking for main in -lossaudio" >&5
7508 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
7509 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7510   echo $ac_n "(cached) $ac_c" 1>&6
7511 else
7512   ac_save_LIBS="$LIBS"
7513 LIBS="-lossaudio  $LIBS"
7514 cat > conftest.$ac_ext <<EOF
7515 #line 7516 "configure"
7516 #include "confdefs.h"
7517
7518 int main() {
7519 main()
7520 ; return 0; }
7521 EOF
7522 if { (eval echo configure:7523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7523   rm -rf conftest*
7524   eval "ac_cv_lib_$ac_lib_var=yes"
7525 else
7526   echo "configure: failed program was:" >&5
7527   cat conftest.$ac_ext >&5
7528   rm -rf conftest*
7529   eval "ac_cv_lib_$ac_lib_var=no"
7530 fi
7531 rm -f conftest*
7532 LIBS="$ac_save_LIBS"
7533
7534 fi
7535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7536   echo "$ac_t""yes" 1>&6
7537   LIB_DSP="${LIB_DSP} -lossaudio"
7538 else
7539   echo "$ac_t""no" 1>&6
7540 fi
7541
7542   
7543 else
7544   echo "$ac_t""no" 1>&6
7545 fi
7546 done
7547
7548 fi
7549
7550 # Check whether --enable-esd or --disable-esd was given.
7551 if test "${enable_esd+set}" = set; then
7552   enableval="$enable_esd"
7553   if test x$enable_esd = xyes
7554    then
7555      # Extract the first word of "esd-config", so it can be a program name with args.
7556 set dummy esd-config; ac_word=$2
7557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7558 echo "configure:7559: checking for $ac_word" >&5
7559 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
7560   echo $ac_n "(cached) $ac_c" 1>&6
7561 else
7562   case "$ESD_CONFIG" in
7563   /*)
7564   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
7565   ;;
7566   ?:/*)                  
7567   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
7568   ;;
7569   *)
7570   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7571   ac_dummy="$PATH"
7572   for ac_dir in $ac_dummy; do 
7573     test -z "$ac_dir" && ac_dir=.
7574     if test -f $ac_dir/$ac_word; then
7575       ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
7576       break
7577     fi
7578   done
7579   IFS="$ac_save_ifs"
7580   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
7581   ;;
7582 esac
7583 fi
7584 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
7585 if test -n "$ESD_CONFIG"; then
7586   echo "$ac_t""$ESD_CONFIG" 1>&6
7587 else
7588   echo "$ac_t""no" 1>&6
7589 fi
7590
7591      if test x${ESD_CONFIG} != xno
7592      then
7593        PLUGINS="${PLUGINS} esd"
7594        CFLAGS_ESD="${CFLAGS_ESD} `${ESD_CONFIG} --cflags`"
7595        LIB_ESD="${LIB_ESD} `${ESD_CONFIG} --libs`"
7596      fi
7597    fi
7598 fi
7599
7600
7601 # Check whether --enable-arts or --disable-arts was given.
7602 if test "${enable_arts+set}" = set; then
7603   enableval="$enable_arts"
7604   if test x$enable_arts = xyes
7605    then
7606      # Extract the first word of "artsc-config", so it can be a program name with args.
7607 set dummy artsc-config; ac_word=$2
7608 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7609 echo "configure:7610: checking for $ac_word" >&5
7610 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
7611   echo $ac_n "(cached) $ac_c" 1>&6
7612 else
7613   case "$ARTS_CONFIG" in
7614   /*)
7615   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
7616   ;;
7617   ?:/*)                  
7618   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
7619   ;;
7620   *)
7621   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7622   ac_dummy="$PATH"
7623   for ac_dir in $ac_dummy; do 
7624     test -z "$ac_dir" && ac_dir=.
7625     if test -f $ac_dir/$ac_word; then
7626       ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
7627       break
7628     fi
7629   done
7630   IFS="$ac_save_ifs"
7631   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
7632   ;;
7633 esac
7634 fi
7635 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
7636 if test -n "$ARTS_CONFIG"; then
7637   echo "$ac_t""$ARTS_CONFIG" 1>&6
7638 else
7639   echo "$ac_t""no" 1>&6
7640 fi
7641
7642      if test x${ARTS_CONFIG} != xno
7643      then
7644        PLUGINS="${PLUGINS} arts"
7645        CFLAGS_ARTS="${CFLAGS_ARTS} `${ARTS_CONFIG} --cflags`"
7646        LIB_ARTS="${LIB_ARTS} `${ARTS_CONFIG} --libs `"
7647      fi
7648    fi
7649 fi
7650
7651
7652 # Check whether --enable-alsa or --disable-alsa was given.
7653 if test "${enable_alsa+set}" = set; then
7654   enableval="$enable_alsa"
7655   if test x$enable_alsa = xyes
7656    then
7657      ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7658 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7659 echo "configure:7660: checking for alsa/asoundlib.h" >&5
7660 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7661   echo $ac_n "(cached) $ac_c" 1>&6
7662 else
7663   cat > conftest.$ac_ext <<EOF
7664 #line 7665 "configure"
7665 #include "confdefs.h"
7666 #include <alsa/asoundlib.h>
7667 EOF
7668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7669 { (eval echo configure:7670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7670 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7671 if test -z "$ac_err"; then
7672   rm -rf conftest*
7673   eval "ac_cv_header_$ac_safe=yes"
7674 else
7675   echo "$ac_err" >&5
7676   echo "configure: failed program was:" >&5
7677   cat conftest.$ac_ext >&5
7678   rm -rf conftest*
7679   eval "ac_cv_header_$ac_safe=no"
7680 fi
7681 rm -f conftest*
7682 fi
7683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7684   echo "$ac_t""yes" 1>&6
7685   echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7686 echo "configure:7687: checking for main in -lasound" >&5
7687 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7689   echo $ac_n "(cached) $ac_c" 1>&6
7690 else
7691   ac_save_LIBS="$LIBS"
7692 LIBS="-lasound  $LIBS"
7693 cat > conftest.$ac_ext <<EOF
7694 #line 7695 "configure"
7695 #include "confdefs.h"
7696
7697 int main() {
7698 main()
7699 ; return 0; }
7700 EOF
7701 if { (eval echo configure:7702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7702   rm -rf conftest*
7703   eval "ac_cv_lib_$ac_lib_var=yes"
7704 else
7705   echo "configure: failed program was:" >&5
7706   cat conftest.$ac_ext >&5
7707   rm -rf conftest*
7708   eval "ac_cv_lib_$ac_lib_var=no"
7709 fi
7710 rm -f conftest*
7711 LIBS="$ac_save_LIBS"
7712
7713 fi
7714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7715   echo "$ac_t""yes" 1>&6
7716   have_alsa="true"
7717 else
7718   echo "$ac_t""no" 1>&6
7719 have_alsa="false"
7720 fi
7721
7722 else
7723   echo "$ac_t""no" 1>&6
7724 have_alsa="false"
7725 fi
7726
7727      if test x$have_alsa = xtrue
7728      then
7729        PLUGINS="${PLUGINS} alsa"
7730        LIB_ALSA="${LIB_ALSA} -lasound -lm -ldl"
7731      fi
7732    fi
7733 fi
7734
7735
7736 # Check whether --enable-waveout or --disable-waveout was given.
7737 if test "${enable_waveout+set}" = set; then
7738   enableval="$enable_waveout"
7739   :
7740 fi
7741
7742 if test "x$enableval" != "xno" -a x$SYS = xmingw32
7743   then
7744     PLUGINS="${PLUGINS} waveout"
7745     LIB_WAVEOUT="-lwinmm"
7746 fi
7747
7748
7749 # Check whether --with- or --without- was given.
7750 if test "${with_+set}" = set; then
7751   withval="$with_"
7752   :
7753 fi
7754
7755
7756 # Check whether --enable-gtk or --disable-gtk was given.
7757 if test "${enable_gtk+set}" = set; then
7758   enableval="$enable_gtk"
7759   :
7760 fi
7761
7762 if test x$enable_gtk != xno
7763 then
7764   GTK_PATH=$PATH
7765   # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7766 if test "${with_gtk_config_path+set}" = set; then
7767   withval="$with_gtk_config_path"
7768    if test "x$withval" != "xno"
7769       then
7770         GTK_PATH=$withval:$PATH
7771       fi 
7772 fi
7773
7774   # look for gtk-config
7775   # Extract the first word of "gtk12-config", so it can be a program name with args.
7776 set dummy gtk12-config; ac_word=$2
7777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7778 echo "configure:7779: checking for $ac_word" >&5
7779 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7780   echo $ac_n "(cached) $ac_c" 1>&6
7781 else
7782   case "$GTK12_CONFIG" in
7783   /*)
7784   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7785   ;;
7786   ?:/*)                  
7787   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7788   ;;
7789   *)
7790   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7791   ac_dummy="$GTK_PATH"
7792   for ac_dir in $ac_dummy; do 
7793     test -z "$ac_dir" && ac_dir=.
7794     if test -f $ac_dir/$ac_word; then
7795       ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7796       break
7797     fi
7798   done
7799   IFS="$ac_save_ifs"
7800   test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7801   ;;
7802 esac
7803 fi
7804 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7805 if test -n "$GTK12_CONFIG"; then
7806   echo "$ac_t""$GTK12_CONFIG" 1>&6
7807 else
7808   echo "$ac_t""no" 1>&6
7809 fi
7810
7811   GTK_CONFIG=${GTK12_CONFIG}
7812   if test x${GTK_CONFIG} = xno
7813   then
7814     # Extract the first word of "gtk-config", so it can be a program name with args.
7815 set dummy gtk-config; ac_word=$2
7816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7817 echo "configure:7818: checking for $ac_word" >&5
7818 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7819   echo $ac_n "(cached) $ac_c" 1>&6
7820 else
7821   case "$GTK_CONFIG" in
7822   /*)
7823   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7824   ;;
7825   ?:/*)                  
7826   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7827   ;;
7828   *)
7829   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7830   ac_dummy="$GTK_PATH"
7831   for ac_dir in $ac_dummy; do 
7832     test -z "$ac_dir" && ac_dir=.
7833     if test -f $ac_dir/$ac_word; then
7834       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7835       break
7836     fi
7837   done
7838   IFS="$ac_save_ifs"
7839   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7840   ;;
7841 esac
7842 fi
7843 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7844 if test -n "$GTK_CONFIG"; then
7845   echo "$ac_t""$GTK_CONFIG" 1>&6
7846 else
7847   echo "$ac_t""no" 1>&6
7848 fi
7849
7850   fi
7851   if test x${GTK_CONFIG} != xno
7852   then
7853     if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7854     then
7855       { 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; }
7856     fi
7857     CFLAGS_GTK="${CFLAGS_GTK} `${GTK_CONFIG} --cflags gtk`"
7858     LIB_GTK="${LIB_GTK} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7859     # now look for the gtk.h header
7860     saved_CPPFLAGS=$CPPFLAGS
7861     CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
7862     ac_cv_gtk_headers=yes
7863     for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7864 do
7865 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7866 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7867 echo "configure:7868: checking for $ac_hdr" >&5
7868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7869   echo $ac_n "(cached) $ac_c" 1>&6
7870 else
7871   cat > conftest.$ac_ext <<EOF
7872 #line 7873 "configure"
7873 #include "confdefs.h"
7874 #include <$ac_hdr>
7875 EOF
7876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7877 { (eval echo configure:7878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7879 if test -z "$ac_err"; then
7880   rm -rf conftest*
7881   eval "ac_cv_header_$ac_safe=yes"
7882 else
7883   echo "$ac_err" >&5
7884   echo "configure: failed program was:" >&5
7885   cat conftest.$ac_ext >&5
7886   rm -rf conftest*
7887   eval "ac_cv_header_$ac_safe=no"
7888 fi
7889 rm -f conftest*
7890 fi
7891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7892   echo "$ac_t""yes" 1>&6
7893     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7894   cat >> confdefs.h <<EOF
7895 #define $ac_tr_hdr 1
7896 EOF
7897  
7898 else
7899   echo "$ac_t""no" 1>&6
7900 ac_cv_gtk_headers=no
7901       echo "Cannot find gtk development headers."
7902     
7903 fi
7904 done
7905
7906     if test "x$ac_cv_gtk_headers" = xyes
7907     then
7908       PLUGINS="${PLUGINS} gtk"
7909       ALIASES="${ALIASES} gvlc"
7910     fi
7911     CPPFLAGS=$saved_CPPFLAGS
7912   fi
7913 fi
7914
7915 # Check whether --enable-gnome or --disable-gnome was given.
7916 if test "${enable_gnome+set}" = set; then
7917   enableval="$enable_gnome"
7918   if test x$enable_gnome = xyes; then
7919     # look for gnome-config
7920     # Extract the first word of "gnome-config", so it can be a program name with args.
7921 set dummy gnome-config; ac_word=$2
7922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7923 echo "configure:7924: checking for $ac_word" >&5
7924 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7925   echo $ac_n "(cached) $ac_c" 1>&6
7926 else
7927   case "$GNOME_CONFIG" in
7928   /*)
7929   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7930   ;;
7931   ?:/*)                  
7932   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7933   ;;
7934   *)
7935   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7936   ac_dummy="$PATH"
7937   for ac_dir in $ac_dummy; do 
7938     test -z "$ac_dir" && ac_dir=.
7939     if test -f $ac_dir/$ac_word; then
7940       ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7941       break
7942     fi
7943   done
7944   IFS="$ac_save_ifs"
7945   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7946   ;;
7947 esac
7948 fi
7949 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7950 if test -n "$GNOME_CONFIG"; then
7951   echo "$ac_t""$GNOME_CONFIG" 1>&6
7952 else
7953   echo "$ac_t""no" 1>&6
7954 fi
7955
7956     if test -x ${GNOME_CONFIG}
7957     then
7958        CFLAGS_GNOME="${CFLAGS_GNOME} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7959        LIB_GNOME="${LIB_GNOME} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7960     fi
7961     # now look for the gnome.h header
7962     saved_CPPFLAGS=$CPPFLAGS
7963     CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
7964     for ac_hdr in gnome.h
7965 do
7966 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7967 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7968 echo "configure:7969: checking for $ac_hdr" >&5
7969 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7970   echo $ac_n "(cached) $ac_c" 1>&6
7971 else
7972   cat > conftest.$ac_ext <<EOF
7973 #line 7974 "configure"
7974 #include "confdefs.h"
7975 #include <$ac_hdr>
7976 EOF
7977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7978 { (eval echo configure:7979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7979 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7980 if test -z "$ac_err"; then
7981   rm -rf conftest*
7982   eval "ac_cv_header_$ac_safe=yes"
7983 else
7984   echo "$ac_err" >&5
7985   echo "configure: failed program was:" >&5
7986   cat conftest.$ac_ext >&5
7987   rm -rf conftest*
7988   eval "ac_cv_header_$ac_safe=no"
7989 fi
7990 rm -f conftest*
7991 fi
7992 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7993   echo "$ac_t""yes" 1>&6
7994     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7995   cat >> confdefs.h <<EOF
7996 #define $ac_tr_hdr 1
7997 EOF
7998  
7999       PLUGINS="${PLUGINS} gnome"
8000       ALIASES="${ALIASES} gnome-vlc"
8001      
8002 else
8003   echo "$ac_t""no" 1>&6
8004 { echo "configure: error: Can't find gnome headers. Please install the gnome
8005 developement librairie or remove the --enable-gnome option" 1>&2; exit 1; }
8006      
8007 fi
8008 done
8009
8010   
8011     CPPFLAGS=$saved_CPPFLAGS
8012   fi
8013 fi
8014
8015
8016 # Check whether --enable-qt or --disable-qt was given.
8017 if test "${enable_qt+set}" = set; then
8018   enableval="$enable_qt"
8019   if test x$enable_qt = xyes; then
8020      PLUGINS="${PLUGINS} qt"
8021      ALIASES="${ALIASES} qvlc"
8022      LIB_QT="${LIB_QT} -lqt -L${QTDIR}/lib"
8023      CFLAGS_QT="${CFLAGS_QT} -I/usr/include/qt -I${QTDIR}/include"
8024      if test -x ${QTDIR}/bin/moc
8025      then
8026        MOC=${QTDIR}/bin/moc
8027      else
8028        MOC=moc
8029      fi
8030    fi
8031 fi
8032
8033
8034 # Check whether --enable-kde or --disable-kde was given.
8035 if test "${enable_kde+set}" = set; then
8036   enableval="$enable_kde"
8037   if test x$enable_kde = xyes; then
8038      PLUGINS="${PLUGINS} kde"
8039      ALIASES="${ALIASES} kvlc"
8040      LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
8041      CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
8042      CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
8043      if test -x ${QTDIR}/bin/moc
8044      then
8045        MOC=${QTDIR}/bin/moc
8046      else
8047        MOC=moc
8048      fi
8049    fi
8050 fi
8051
8052
8053 # Check whether --enable-macosx or --disable-macosx was given.
8054 if test "${enable_macosx+set}" = set; then
8055   enableval="$enable_macosx"
8056   if test x$enable_macosx = xyes
8057    then
8058      BUILTINS="${BUILTINS} macosx"
8059      LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
8060      CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
8061      LIB_COMMON="${LIB_COMMON} -ObjC"
8062    fi
8063 else
8064   for ac_hdr in Cocoa/Cocoa.h
8065 do
8066 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8067 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8068 echo "configure:8069: checking for $ac_hdr" >&5
8069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8070   echo $ac_n "(cached) $ac_c" 1>&6
8071 else
8072   cat > conftest.$ac_ext <<EOF
8073 #line 8074 "configure"
8074 #include "confdefs.h"
8075 #include <$ac_hdr>
8076 EOF
8077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8078 { (eval echo configure:8079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8080 if test -z "$ac_err"; then
8081   rm -rf conftest*
8082   eval "ac_cv_header_$ac_safe=yes"
8083 else
8084   echo "$ac_err" >&5
8085   echo "configure: failed program was:" >&5
8086   cat conftest.$ac_ext >&5
8087   rm -rf conftest*
8088   eval "ac_cv_header_$ac_safe=no"
8089 fi
8090 rm -f conftest*
8091 fi
8092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8093   echo "$ac_t""yes" 1>&6
8094     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8095   cat >> confdefs.h <<EOF
8096 #define $ac_tr_hdr 1
8097 EOF
8098  BUILTINS="${BUILTINS} macosx"
8099      LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
8100      CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
8101      LIB_COMMON="${LIB_COMMON} -ObjC"
8102    
8103 else
8104   echo "$ac_t""no" 1>&6
8105 fi
8106 done
8107
8108 fi
8109
8110
8111 # Check whether --enable-qnx or --disable-qnx was given.
8112 if test "${enable_qnx+set}" = set; then
8113   enableval="$enable_qnx"
8114   :
8115 fi
8116
8117     if test x$enable_qnx != xno
8118     then
8119       for ac_hdr in Ph.h
8120 do
8121 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8122 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8123 echo "configure:8124: checking for $ac_hdr" >&5
8124 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8125   echo $ac_n "(cached) $ac_c" 1>&6
8126 else
8127   cat > conftest.$ac_ext <<EOF
8128 #line 8129 "configure"
8129 #include "confdefs.h"
8130 #include <$ac_hdr>
8131 EOF
8132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8133 { (eval echo configure:8134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8135 if test -z "$ac_err"; then
8136   rm -rf conftest*
8137   eval "ac_cv_header_$ac_safe=yes"
8138 else
8139   echo "$ac_err" >&5
8140   echo "configure: failed program was:" >&5
8141   cat conftest.$ac_ext >&5
8142   rm -rf conftest*
8143   eval "ac_cv_header_$ac_safe=no"
8144 fi
8145 rm -f conftest*
8146 fi
8147 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8148   echo "$ac_t""yes" 1>&6
8149     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8150   cat >> confdefs.h <<EOF
8151 #define $ac_tr_hdr 1
8152 EOF
8153  
8154         PLUGINS="${PLUGINS} qnx"
8155         LIB_QNX="${LIB_QNX} -lasound -lph"
8156       
8157 else
8158   echo "$ac_t""no" 1>&6
8159 fi
8160 done
8161
8162     fi
8163
8164 # Check whether --enable-win32 or --disable-win32 was given.
8165 if test "${enable_win32+set}" = set; then
8166   enableval="$enable_win32"
8167    if test "x$enableval" != "xno"
8168     then
8169       PLUGINS="${PLUGINS} win32"
8170     fi 
8171 fi
8172
8173
8174 # Check whether --enable-ncurses or --disable-ncurses was given.
8175 if test "${enable_ncurses+set}" = set; then
8176   enableval="$enable_ncurses"
8177   if test x$enable_ncurses = xyes; then
8178      PLUGINS="${PLUGINS} ncurses"
8179      LIB_NCURSES="${LIB_NCURSES} -lncurses"
8180    fi
8181 fi
8182
8183
8184 # Check whether --enable-lirc or --disable-lirc was given.
8185 if test "${enable_lirc+set}" = set; then
8186   enableval="$enable_lirc"
8187   :
8188 fi
8189
8190 if test x$enable_lirc = xyes
8191 then
8192   ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
8193 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
8194 echo "configure:8195: checking for lirc/lirc_client.h" >&5
8195 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8196   echo $ac_n "(cached) $ac_c" 1>&6
8197 else
8198   cat > conftest.$ac_ext <<EOF
8199 #line 8200 "configure"
8200 #include "confdefs.h"
8201 #include <lirc/lirc_client.h>
8202 EOF
8203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8204 { (eval echo configure:8205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8206 if test -z "$ac_err"; then
8207   rm -rf conftest*
8208   eval "ac_cv_header_$ac_safe=yes"
8209 else
8210   echo "$ac_err" >&5
8211   echo "configure: failed program was:" >&5
8212   cat conftest.$ac_ext >&5
8213   rm -rf conftest*
8214   eval "ac_cv_header_$ac_safe=no"
8215 fi
8216 rm -f conftest*
8217 fi
8218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8219   echo "$ac_t""yes" 1>&6
8220   echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
8221 echo "configure:8222: checking for lirc_init in -llirc_client" >&5
8222 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
8223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8224   echo $ac_n "(cached) $ac_c" 1>&6
8225 else
8226   ac_save_LIBS="$LIBS"
8227 LIBS="-llirc_client  $LIBS"
8228 cat > conftest.$ac_ext <<EOF
8229 #line 8230 "configure"
8230 #include "confdefs.h"
8231 /* Override any gcc2 internal prototype to avoid an error.  */
8232 /* We use char because int might match the return type of a gcc2
8233     builtin and then its argument prototype would still apply.  */
8234 char lirc_init();
8235
8236 int main() {
8237 lirc_init()
8238 ; return 0; }
8239 EOF
8240 if { (eval echo configure:8241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8241   rm -rf conftest*
8242   eval "ac_cv_lib_$ac_lib_var=yes"
8243 else
8244   echo "configure: failed program was:" >&5
8245   cat conftest.$ac_ext >&5
8246   rm -rf conftest*
8247   eval "ac_cv_lib_$ac_lib_var=no"
8248 fi
8249 rm -f conftest*
8250 LIBS="$ac_save_LIBS"
8251
8252 fi
8253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8254   echo "$ac_t""yes" 1>&6
8255   have_lirc="true"
8256 else
8257   echo "$ac_t""no" 1>&6
8258 have_lirc="false"
8259 fi
8260
8261 else
8262   echo "$ac_t""no" 1>&6
8263 have_lirc="false"
8264 fi
8265
8266   if test x$have_lirc = xtrue
8267   then
8268     PLUGINS="${PLUGINS} lirc"
8269     LIB_LIRC="${LIB_LIRC} -llirc_client"
8270   fi
8271 fi
8272
8273 fi
8274
8275 # Check whether --with- or --without- was given.
8276 if test "${with_+set}" = set; then
8277   withval="$with_"
8278   :
8279 fi
8280
8281
8282 # Check whether --with-words or --without-words was given.
8283 if test "${with_words+set}" = set; then
8284   withval="$with_words"
8285   :
8286 fi
8287
8288   case "x$withval" in
8289     xbig)
8290       ac_cv_c_bigendian=yes
8291       ;;
8292     xlittle)
8293       ac_cv_c_bigendian=no
8294       ;;
8295     *)
8296                   echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
8297 echo "configure:8298: checking whether the byte order is big-endian" >&5
8298 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8299   echo $ac_n "(cached) $ac_c" 1>&6
8300 else
8301   ac_cv_c_bigendian=unknown
8302         cat >conftest.c <<EOF
8303         short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
8304         short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
8305         void _a(void) { char*s = (char*)am; s = (char *)ai; }
8306         short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
8307         short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
8308         void _e(void) { char*s = (char*)em; s = (char*)ei; }
8309         int main(void) { _a(); _e(); return 0; }
8310 EOF
8311         
8312         if test -f conftest.c
8313         then 
8314           if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
8315               && test -f conftest.o
8316           then
8317             if test "`strings conftest.o | grep BIGenDianSyS`"
8318             then
8319               ac_cv_c_bigendian=yes
8320             fi
8321             if test "`strings conftest.o | grep LiTTleEnDian`"
8322             then
8323               ac_cv_c_bigendian=no
8324             fi
8325           fi
8326         fi
8327       
8328 fi
8329
8330 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8331       if test x$ac_cv_c_bigendian = xunknown
8332       then
8333         { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
8334       fi
8335       ;;
8336   esac
8337 if test $ac_cv_c_bigendian = yes
8338 then
8339   cat >> confdefs.h <<\EOF
8340 #define WORDS_BIGENDIAN 1
8341 EOF
8342
8343 fi
8344
8345 DLL_PATH=.
8346 # Check whether --with-dll-path or --without-dll-path was given.
8347 if test "${with_dll_path+set}" = set; then
8348   withval="$with_dll_path"
8349    if test "x$withval" != "xno"
8350     then
8351       DLL_PATH=$withval
8352     fi 
8353 fi
8354
8355
8356 GPROF=0
8357 # Check whether --enable-gprof or --disable-gprof was given.
8358 if test "${enable_gprof+set}" = set; then
8359   enableval="$enable_gprof"
8360    if test x$enableval = xyes; then GPROF=1; fi 
8361 fi
8362
8363
8364 CPROF=0
8365 # Check whether --enable-cprof or --disable-cprof was given.
8366 if test "${enable_cprof+set}" = set; then
8367   enableval="$enable_cprof"
8368    if test x$enableval = xyes;
8369   then
8370     LIB_COMMON="${LIB_COMMON} -lcprof"
8371     CPROF=1
8372   fi
8373
8374 fi
8375
8376
8377 # Check whether --enable-pth or --disable-pth was given.
8378 if test "${enable_pth+set}" = set; then
8379   enableval="$enable_pth"
8380    if test x$enableval = xyes; then
8381     echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
8382 echo "configure:8383: checking for pth_init in -lpth" >&5
8383 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
8384 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8385   echo $ac_n "(cached) $ac_c" 1>&6
8386 else
8387   ac_save_LIBS="$LIBS"
8388 LIBS="-lpth  $LIBS"
8389 cat > conftest.$ac_ext <<EOF
8390 #line 8391 "configure"
8391 #include "confdefs.h"
8392 /* Override any gcc2 internal prototype to avoid an error.  */
8393 /* We use char because int might match the return type of a gcc2
8394     builtin and then its argument prototype would still apply.  */
8395 char pth_init();
8396
8397 int main() {
8398 pth_init()
8399 ; return 0; }
8400 EOF
8401 if { (eval echo configure:8402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8402   rm -rf conftest*
8403   eval "ac_cv_lib_$ac_lib_var=yes"
8404 else
8405   echo "configure: failed program was:" >&5
8406   cat conftest.$ac_ext >&5
8407   rm -rf conftest*
8408   eval "ac_cv_lib_$ac_lib_var=no"
8409 fi
8410 rm -f conftest*
8411 LIBS="$ac_save_LIBS"
8412
8413 fi
8414 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8415   echo "$ac_t""yes" 1>&6
8416     ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8417     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8418   cat >> confdefs.h <<EOF
8419 #define $ac_tr_lib 1
8420 EOF
8421
8422   LIBS="-lpth $LIBS"
8423
8424 else
8425   echo "$ac_t""no" 1>&6
8426 fi
8427
8428     cat > conftest.$ac_ext <<EOF
8429 #line 8430 "configure"
8430 #include "confdefs.h"
8431 #include <pth.h>
8432 EOF
8433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8434   egrep "pth_init" >/dev/null 2>&1; then
8435   rm -rf conftest*
8436   
8437       cat >> confdefs.h <<\EOF
8438 #define PTH_INIT_IN_PTH_H 1
8439 EOF
8440
8441     THREAD_LIB="-lpth"
8442     fi
8443 fi
8444 rm -f conftest*
8445
8446
8447 fi
8448
8449
8450 # Check whether --enable-st or --disable-st was given.
8451 if test "${enable_st+set}" = set; then
8452   enableval="$enable_st"
8453    if test x$enableval = xyes; then
8454     echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
8455 echo "configure:8456: checking for st_init in -lst" >&5
8456 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
8457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8458   echo $ac_n "(cached) $ac_c" 1>&6
8459 else
8460   ac_save_LIBS="$LIBS"
8461 LIBS="-lst  $LIBS"
8462 cat > conftest.$ac_ext <<EOF
8463 #line 8464 "configure"
8464 #include "confdefs.h"
8465 /* Override any gcc2 internal prototype to avoid an error.  */
8466 /* We use char because int might match the return type of a gcc2
8467     builtin and then its argument prototype would still apply.  */
8468 char st_init();
8469
8470 int main() {
8471 st_init()
8472 ; return 0; }
8473 EOF
8474 if { (eval echo configure:8475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8475   rm -rf conftest*
8476   eval "ac_cv_lib_$ac_lib_var=yes"
8477 else
8478   echo "configure: failed program was:" >&5
8479   cat conftest.$ac_ext >&5
8480   rm -rf conftest*
8481   eval "ac_cv_lib_$ac_lib_var=no"
8482 fi
8483 rm -f conftest*
8484 LIBS="$ac_save_LIBS"
8485
8486 fi
8487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8488   echo "$ac_t""yes" 1>&6
8489     ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8490     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8491   cat >> confdefs.h <<EOF
8492 #define $ac_tr_lib 1
8493 EOF
8494
8495   LIBS="-lst $LIBS"
8496
8497 else
8498   echo "$ac_t""no" 1>&6
8499 fi
8500
8501     cat > conftest.$ac_ext <<EOF
8502 #line 8503 "configure"
8503 #include "confdefs.h"
8504 #include <st.h>
8505 EOF
8506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8507   egrep "st_init" >/dev/null 2>&1; then
8508   rm -rf conftest*
8509   
8510       cat >> confdefs.h <<\EOF
8511 #define ST_INIT_IN_ST_H 1
8512 EOF
8513
8514     THREAD_LIB="-lst"
8515     fi
8516 fi
8517 rm -f conftest*
8518
8519
8520 fi
8521
8522
8523 LIB_COMMON="${LIB_COMMON} ${THREAD_LIB}"
8524
8525 # Check whether --enable-plugins or --disable-plugins was given.
8526 if test "${enable_plugins+set}" = set; then
8527   enableval="$enable_plugins"
8528   if test x$enable_plugins = xno
8529    then
8530      BUILTINS="${BUILTINS} ${PLUGINS}"
8531      PLUGINS=
8532    fi
8533 fi
8534
8535
8536 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
8537 then
8538   echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
8539   echo "as built-in"
8540   BUILTINS="${BUILTINS} ${PLUGINS}"
8541   PLUGINS=
8542 fi
8543
8544 cat >> confdefs.h <<EOF
8545 #define VERSION_MESSAGE "vlc $VLC_VERSION $VLC_CODENAME Copyright 1996-2001 VideoLAN\n"
8546 EOF
8547
8548 cat >> confdefs.h <<EOF
8549 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VLC_VERSION $VLC_CODENAME - (c) 1996-2002 VideoLAN"
8550 EOF
8551
8552
8553 VLC_SYMBOL="`echo ${VLC_VERSION} | tr .- __`"
8554 cat >> confdefs.h <<EOF
8555 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
8556 EOF
8557
8558 cat >> confdefs.h <<EOF
8559 #define MODULE_SYMBOL $VLC_SYMBOL
8560 EOF
8561
8562
8563 DATA_PATH="${ac_tool_prefix}/share/videolan"
8564
8565 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667 trap '' 1 2 15
8668 cat > confcache <<\EOF
8669 # This file is a shell script that caches the results of configure
8670 # tests run on this system so they can be shared between configure
8671 # scripts and configure runs.  It is not useful on other systems.
8672 # If it contains results you don't want to keep, you may remove or edit it.
8673 #
8674 # By default, configure uses ./config.cache as the cache file,
8675 # creating it if it does not exist already.  You can give configure
8676 # the --cache-file=FILE option to use a different cache file; that is
8677 # what configure does when it calls configure scripts in
8678 # subdirectories, so they share the cache.
8679 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8680 # config.status only pays attention to the cache file if you give it the
8681 # --recheck option to rerun configure.
8682 #
8683 EOF
8684 # The following way of writing the cache mishandles newlines in values,
8685 # but we know of no workaround that is simple, portable, and efficient.
8686 # So, don't put newlines in cache variables' values.
8687 # Ultrix sh set writes to stderr and can't be redirected directly,
8688 # and sets the high bit in the cache file unless we assign to the vars.
8689 (set) 2>&1 |
8690   case `(ac_space=' '; set | grep ac_space) 2>&1` in
8691   *ac_space=\ *)
8692     # `set' does not quote correctly, so add quotes (double-quote substitution
8693     # turns \\\\ into \\, and sed turns \\ into \).
8694     sed -n \
8695       -e "s/'/'\\\\''/g" \
8696       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8697     ;;
8698   *)
8699     # `set' quotes correctly as required by POSIX, so do not add quotes.
8700     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8701     ;;
8702   esac >> confcache
8703 if cmp -s $cache_file confcache; then
8704   :
8705 else
8706   if test -w $cache_file; then
8707     echo "updating cache $cache_file"
8708     cat confcache > $cache_file
8709   else
8710     echo "not updating unwritable cache $cache_file"
8711   fi
8712 fi
8713 rm -f confcache
8714
8715 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8716
8717 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8718 # Let make expand exec_prefix.
8719 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8720
8721 # Any assignment to VPATH causes Sun make to only execute
8722 # the first set of double-colon rules, so remove it if not needed.
8723 # If there is a colon in the path, we need to keep it.
8724 if test "x$srcdir" = x.; then
8725   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
8726 fi
8727
8728 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8729
8730 DEFS=-DHAVE_CONFIG_H
8731
8732 # Without the "./", some shells look in PATH for config.status.
8733 : ${CONFIG_STATUS=./config.status}
8734
8735 echo creating $CONFIG_STATUS
8736 rm -f $CONFIG_STATUS
8737 cat > $CONFIG_STATUS <<EOF
8738 #! /bin/sh
8739 # Generated automatically by configure.
8740 # Run this file to recreate the current configuration.
8741 # This directory was configured as follows,
8742 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8743 #
8744 # $0 $ac_configure_args
8745 #
8746 # Compiler output produced by configure, useful for debugging
8747 # configure, is in ./config.log if it exists.
8748
8749 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8750 for ac_option
8751 do
8752   case "\$ac_option" in
8753   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8754     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8755     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8756   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8757     echo "$CONFIG_STATUS generated by autoconf version 2.13"
8758     exit 0 ;;
8759   -help | --help | --hel | --he | --h)
8760     echo "\$ac_cs_usage"; exit 0 ;;
8761   *) echo "\$ac_cs_usage"; exit 1 ;;
8762   esac
8763 done
8764
8765 ac_given_srcdir=$srcdir
8766 ac_given_INSTALL="$INSTALL"
8767
8768 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8769 EOF
8770 cat >> $CONFIG_STATUS <<EOF
8771
8772 # Protect against being on the right side of a sed subst in config.status.
8773 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8774  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8775 $ac_vpsub
8776 $extrasub
8777 s%@SHELL@%$SHELL%g
8778 s%@CFLAGS@%$CFLAGS%g
8779 s%@CPPFLAGS@%$CPPFLAGS%g
8780 s%@CXXFLAGS@%$CXXFLAGS%g
8781 s%@FFLAGS@%$FFLAGS%g
8782 s%@DEFS@%$DEFS%g
8783 s%@LDFLAGS@%$LDFLAGS%g
8784 s%@LIBS@%$LIBS%g
8785 s%@exec_prefix@%$exec_prefix%g
8786 s%@prefix@%$prefix%g
8787 s%@program_transform_name@%$program_transform_name%g
8788 s%@bindir@%$bindir%g
8789 s%@sbindir@%$sbindir%g
8790 s%@libexecdir@%$libexecdir%g
8791 s%@datadir@%$datadir%g
8792 s%@sysconfdir@%$sysconfdir%g
8793 s%@sharedstatedir@%$sharedstatedir%g
8794 s%@localstatedir@%$localstatedir%g
8795 s%@libdir@%$libdir%g
8796 s%@includedir@%$includedir%g
8797 s%@oldincludedir@%$oldincludedir%g
8798 s%@infodir@%$infodir%g
8799 s%@mandir@%$mandir%g
8800 s%@host@%$host%g
8801 s%@host_alias@%$host_alias%g
8802 s%@host_cpu@%$host_cpu%g
8803 s%@host_vendor@%$host_vendor%g
8804 s%@host_os@%$host_os%g
8805 s%@target@%$target%g
8806 s%@target_alias@%$target_alias%g
8807 s%@target_cpu@%$target_cpu%g
8808 s%@target_vendor@%$target_vendor%g
8809 s%@target_os@%$target_os%g
8810 s%@build@%$build%g
8811 s%@build_alias@%$build_alias%g
8812 s%@build_cpu@%$build_cpu%g
8813 s%@build_vendor@%$build_vendor%g
8814 s%@build_os@%$build_os%g
8815 s%@LIBDVDCSS_VERSION@%$LIBDVDCSS_VERSION%g
8816 s%@SET_MAKE@%$SET_MAKE%g
8817 s%@CC@%$CC%g
8818 s%@CPP@%$CPP%g
8819 s%@RANLIB@%$RANLIB%g
8820 s%@ALLOCA@%$ALLOCA%g
8821 s%@GLIBC21@%$GLIBC21%g
8822 s%@LIBICONV@%$LIBICONV%g
8823 s%@USE_NLS@%$USE_NLS%g
8824 s%@MSGFMT@%$MSGFMT%g
8825 s%@GMSGFMT@%$GMSGFMT%g
8826 s%@XGETTEXT@%$XGETTEXT%g
8827 s%@INTLBISON@%$INTLBISON%g
8828 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8829 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8830 s%@CATALOGS@%$CATALOGS%g
8831 s%@CATOBJEXT@%$CATOBJEXT%g
8832 s%@GMOFILES@%$GMOFILES%g
8833 s%@INTLLIBS@%$INTLLIBS%g
8834 s%@INTLOBJS@%$INTLOBJS%g
8835 s%@POFILES@%$POFILES%g
8836 s%@POSUB@%$POSUB%g
8837 s%@DATADIRNAME@%$DATADIRNAME%g
8838 s%@INSTOBJEXT@%$INSTOBJEXT%g
8839 s%@GENCAT@%$GENCAT%g
8840 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8841 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8842 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8843 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8844 s%@INSTALL_DATA@%$INSTALL_DATA%g
8845 s%@WINDRES@%$WINDRES%g
8846 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8847 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8848 s%@SDL_CONFIG@%$SDL_CONFIG%g
8849 s%@ESD_CONFIG@%$ESD_CONFIG%g
8850 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8851 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8852 s%@GTK_CONFIG@%$GTK_CONFIG%g
8853 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8854 s%@DATA_PATH@%$DATA_PATH%g
8855 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8856 s%@SYS@%$SYS%g
8857 s%@ARCH@%$ARCH%g
8858 s%@PLUGINS@%$PLUGINS%g
8859 s%@BUILTINS@%$BUILTINS%g
8860 s%@ALIASES@%$ALIASES%g
8861 s%@INCLUDE@%$INCLUDE%g
8862 s%@DEBUG@%$DEBUG%g
8863 s%@ASM@%$ASM%g
8864 s%@CPROF@%$CPROF%g
8865 s%@GPROF@%$GPROF%g
8866 s%@OPTIMS@%$OPTIMS%g
8867 s%@TUNING@%$TUNING%g
8868 s%@RELEASE@%$RELEASE%g
8869 s%@MOC@%$MOC%g
8870 s%@DLL_PATH@%$DLL_PATH%g
8871 s%@PACKAGE@%$PACKAGE%g
8872 s%@VERSION@%$VERSION%g
8873 s%@VCD_DEVICE@%$VCD_DEVICE%g
8874 s%@DVD_DEVICE@%$DVD_DEVICE%g
8875 s%@PLDFLAGS@%$PLDFLAGS%g
8876 s%@SOFLAGS@%$SOFLAGS%g
8877 s%@LIB_COMMON@%$LIB_COMMON%g
8878 s%@LIB_VLC@%$LIB_VLC%g
8879 s%@LIB_A52@%$LIB_A52%g
8880 s%@LIB_AA@%$LIB_AA%g
8881 s%@LIB_ALSA@%$LIB_ALSA%g
8882 s%@LIB_ARTS@%$LIB_ARTS%g
8883 s%@LIB_BEOS@%$LIB_BEOS%g
8884 s%@LIB_DARWIN@%$LIB_DARWIN%g
8885 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
8886 s%@LIB_DSP@%$LIB_DSP%g
8887 s%@LIB_DVD@%$LIB_DVD%g
8888 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
8889 s%@LIB_ESD@%$LIB_ESD%g
8890 s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
8891 s%@LIB_GGI@%$LIB_GGI%g
8892 s%@LIB_GLIDE@%$LIB_GLIDE%g
8893 s%@LIB_GNOME@%$LIB_GNOME%g
8894 s%@LIB_GTK@%$LIB_GTK%g
8895 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
8896 s%@LIB_IMDCT@%$LIB_IMDCT%g
8897 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
8898 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
8899 s%@LIB_IPV4@%$LIB_IPV4%g
8900 s%@LIB_IPV6@%$LIB_IPV6%g
8901 s%@LIB_KDE@%$LIB_KDE%g
8902 s%@LIB_LIBDVDCSS@%$LIB_LIBDVDCSS%g
8903 s%@LIB_LIBDVDREAD@%$LIB_LIBDVDREAD%g
8904 s%@LIB_LIRC@%$LIB_LIRC%g
8905 s%@LIB_MACOSX@%$LIB_MACOSX%g
8906 s%@LIB_MAD@%$LIB_MAD%g
8907 s%@LIB_MOTIONALTIVEC@%$LIB_MOTIONALTIVEC%g
8908 s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
8909 s%@LIB_NCURSES@%$LIB_NCURSES%g
8910 s%@LIB_QNX@%$LIB_QNX%g
8911 s%@LIB_QT@%$LIB_QT%g
8912 s%@LIB_RC@%$LIB_RC%g
8913 s%@LIB_SDL@%$LIB_SDL%g
8914 s%@LIB_VCD@%$LIB_VCD%g
8915 s%@LIB_WAVEOUT@%$LIB_WAVEOUT%g
8916 s%@LIB_WIN32@%$LIB_WIN32%g
8917 s%@LIB_X11@%$LIB_X11%g
8918 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
8919 s%@CFLAGS_COMMON@%$CFLAGS_COMMON%g
8920 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
8921 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
8922 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
8923 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
8924 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
8925 s%@CFLAGS_GLIDE@%$CFLAGS_GLIDE%g
8926 s%@CFLAGS_GNOME@%$CFLAGS_GNOME%g
8927 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
8928 s%@CFLAGS_KDE@%$CFLAGS_KDE%g
8929 s%@CFLAGS_IDCTALTIVEC@%$CFLAGS_IDCTALTIVEC%g
8930 s%@CFLAGS_LIBDVDCSS@%$CFLAGS_LIBDVDCSS%g
8931 s%@CFLAGS_MACOSX@%$CFLAGS_MACOSX%g
8932 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
8933 s%@CFLAGS_MOTIONALTIVEC@%$CFLAGS_MOTIONALTIVEC%g
8934 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8935 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8936 s%@CFLAGS_QT@%$CFLAGS_QT%g
8937 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
8938 s%@CFLAGS_WIN32@%$CFLAGS_WIN32%g
8939 s%@CFLAGS_X11@%$CFLAGS_X11%g
8940 s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
8941 s%@SRC_DVD_EXTRA@%$SRC_DVD_EXTRA%g
8942 s%@SRC_DVDCSS_EXTRA@%$SRC_DVDCSS_EXTRA%g
8943 s%@NEED_GETOPT@%$NEED_GETOPT%g
8944 s%@NEED_LIBDVDCSS@%$NEED_LIBDVDCSS%g
8945
8946 CEOF
8947 EOF
8948
8949 cat >> $CONFIG_STATUS <<\EOF
8950
8951 # Split the substitutions into bite-sized pieces for seds with
8952 # small command number limits, like on Digital OSF/1 and HP-UX.
8953 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8954 ac_file=1 # Number of current file.
8955 ac_beg=1 # First line for current file.
8956 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8957 ac_more_lines=:
8958 ac_sed_cmds=""
8959 while $ac_more_lines; do
8960   if test $ac_beg -gt 1; then
8961     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8962   else
8963     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8964   fi
8965   if test ! -s conftest.s$ac_file; then
8966     ac_more_lines=false
8967     rm -f conftest.s$ac_file
8968   else
8969     if test -z "$ac_sed_cmds"; then
8970       ac_sed_cmds="sed -f conftest.s$ac_file"
8971     else
8972       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8973     fi
8974     ac_file=`expr $ac_file + 1`
8975     ac_beg=$ac_end
8976     ac_end=`expr $ac_end + $ac_max_sed_cmds`
8977   fi
8978 done
8979 if test -z "$ac_sed_cmds"; then
8980   ac_sed_cmds=cat
8981 fi
8982 EOF
8983
8984 cat >> $CONFIG_STATUS <<EOF
8985
8986 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8987 EOF
8988 cat >> $CONFIG_STATUS <<\EOF
8989 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8990   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8991   case "$ac_file" in
8992   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8993        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8994   *) ac_file_in="${ac_file}.in" ;;
8995   esac
8996
8997   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8998
8999   # Remove last slash and all that follows it.  Not all systems have dirname.
9000   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9001   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9002     # The file is in a subdirectory.
9003     test ! -d "$ac_dir" && mkdir "$ac_dir"
9004     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9005     # A "../" for each directory in $ac_dir_suffix.
9006     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9007   else
9008     ac_dir_suffix= ac_dots=
9009   fi
9010
9011   case "$ac_given_srcdir" in
9012   .)  srcdir=.
9013       if test -z "$ac_dots"; then top_srcdir=.
9014       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9015   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9016   *) # Relative path.
9017     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9018     top_srcdir="$ac_dots$ac_given_srcdir" ;;
9019   esac
9020
9021   case "$ac_given_INSTALL" in
9022   [/$]*) INSTALL="$ac_given_INSTALL" ;;
9023   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9024   esac
9025
9026   echo creating "$ac_file"
9027   rm -f "$ac_file"
9028   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9029   case "$ac_file" in
9030   *Makefile*) ac_comsub="1i\\
9031 # $configure_input" ;;
9032   *) ac_comsub= ;;
9033   esac
9034
9035   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9036   sed -e "$ac_comsub
9037 s%@configure_input@%$configure_input%g
9038 s%@srcdir@%$srcdir%g
9039 s%@top_srcdir@%$top_srcdir%g
9040 s%@INSTALL@%$INSTALL%g
9041 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9042 fi; done
9043 rm -f conftest.s*
9044
9045 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9046 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9047 #
9048 # ac_d sets the value in "#define NAME VALUE" lines.
9049 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
9050 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
9051 ac_dC='\3'
9052 ac_dD='%g'
9053 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9054 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9055 ac_uB='\([      ]\)%\1#\2define\3'
9056 ac_uC=' '
9057 ac_uD='\4%g'
9058 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9059 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9060 ac_eB='$%\1#\2define\3'
9061 ac_eC=' '
9062 ac_eD='%g'
9063
9064 if test "${CONFIG_HEADERS+set}" != set; then
9065 EOF
9066 cat >> $CONFIG_STATUS <<EOF
9067   CONFIG_HEADERS="include/defs.h"
9068 EOF
9069 cat >> $CONFIG_STATUS <<\EOF
9070 fi
9071 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9072   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9073   case "$ac_file" in
9074   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9075        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9076   *) ac_file_in="${ac_file}.in" ;;
9077   esac
9078
9079   echo creating $ac_file
9080
9081   rm -f conftest.frag conftest.in conftest.out
9082   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9083   cat $ac_file_inputs > conftest.in
9084
9085 EOF
9086
9087 # Transform confdefs.h into a sed script conftest.vals that substitutes
9088 # the proper values into config.h.in to produce config.h.  And first:
9089 # Protect against being on the right side of a sed subst in config.status.
9090 # Protect against being in an unquoted here document in config.status.
9091 rm -f conftest.vals
9092 cat > conftest.hdr <<\EOF
9093 s/[\\&%]/\\&/g
9094 s%[\\$`]%\\&%g
9095 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9096 s%ac_d%ac_u%gp
9097 s%ac_u%ac_e%gp
9098 EOF
9099 sed -n -f conftest.hdr confdefs.h > conftest.vals
9100 rm -f conftest.hdr
9101
9102 # This sed command replaces #undef with comments.  This is necessary, for
9103 # example, in the case of _POSIX_SOURCE, which is predefined and required
9104 # on some systems where configure will not decide to define it.
9105 cat >> conftest.vals <<\EOF
9106 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9107 EOF
9108
9109 # Break up conftest.vals because some shells have a limit on
9110 # the size of here documents, and old seds have small limits too.
9111
9112 rm -f conftest.tail
9113 while :
9114 do
9115   ac_lines=`grep -c . conftest.vals`
9116   # grep -c gives empty output for an empty file on some AIX systems.
9117   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9118   # Write a limited-size here document to conftest.frag.
9119   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9120   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9121   echo 'CEOF
9122   sed -f conftest.frag conftest.in > conftest.out
9123   rm -f conftest.in
9124   mv conftest.out conftest.in
9125 ' >> $CONFIG_STATUS
9126   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9127   rm -f conftest.vals
9128   mv conftest.tail conftest.vals
9129 done
9130 rm -f conftest.vals
9131
9132 cat >> $CONFIG_STATUS <<\EOF
9133   rm -f conftest.frag conftest.h
9134   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
9135   cat conftest.in >> conftest.h
9136   rm -f conftest.in
9137   if cmp -s $ac_file conftest.h 2>/dev/null; then
9138     echo "$ac_file is unchanged"
9139     rm -f conftest.h
9140   else
9141     # Remove last slash and all that follows it.  Not all systems have dirname.
9142       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9143       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9144       # The file is in a subdirectory.
9145       test ! -d "$ac_dir" && mkdir "$ac_dir"
9146     fi
9147     rm -f $ac_file
9148     mv conftest.h $ac_file
9149   fi
9150 fi; done
9151
9152 EOF
9153 cat >> $CONFIG_STATUS <<EOF
9154
9155
9156 EOF
9157 cat >> $CONFIG_STATUS <<\EOF
9158 for ac_file in $CONFIG_FILES; do
9159         # Support "outfile[:infile[:infile...]]"
9160         case "$ac_file" in
9161           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9162         esac
9163         # PO directories have a Makefile.in generated from Makefile.in.in.
9164         case "$ac_file" in */Makefile.in)
9165           # Adjust a relative srcdir.
9166           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9167           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9168           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9169           # In autoconf-2.13 it is called $ac_given_srcdir.
9170           # In autoconf-2.50 it is called $srcdir.
9171           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9172           case "$ac_given_srcdir" in
9173             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9174             /*) top_srcdir="$ac_given_srcdir" ;;
9175             *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
9176           esac
9177           if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9178             rm -f "$ac_dir/POTFILES"
9179             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9180             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9181             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9182             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9183           fi
9184           ;;
9185         esac
9186       done
9187
9188 exit 0
9189 EOF
9190 chmod +x $CONFIG_STATUS
9191 rm -fr confdefs* $ac_clean_files
9192 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9193
9194
9195 echo "
9196 global configuration
9197 --------------------
9198 system                : ${SYS}
9199 architecture          : ${ARCH}
9200 optimizations         : ${OPTIMS}
9201 tuning:               : ${TUNING}
9202 release:              : ${RELEASE}"
9203
9204 if test x${HAVE_VLC} = x1
9205 then
9206   echo "
9207 vlc configuration
9208 -----------------
9209 vlc version           : ${VLC_VERSION}
9210 debug mode            : ${DEBUG}
9211 cprof/gprof support   : ${CPROF}/${GPROF}
9212 need builtin getopt   : ${NEED_GETOPT}
9213 built-in modules      :${BUILTINS}
9214 plug-in modules       :${PLUGINS}
9215 vlc aliases           :${ALIASES}"
9216 fi
9217
9218 echo "
9219 libdvdcss configuration
9220 -----------------------
9221 can be built          : ${CAN_BUILD_LIBDVDCSS}
9222 will be built         : ${NEED_LIBDVDCSS}"
9223 if test x${NEED_LIBDVDCSS} = x1
9224 then
9225   echo "need BSDI libdvd      : ${NEED_BSDI_LIBDVD}"
9226   echo "link statically       : ${STATIC_LIBDVDCSS}"
9227 else
9228   echo "use dummy replacement : ${DUMMY_LIBDVDCSS}"
9229 fi
9230
9231 echo "
9232 You may now tune Makefile.opts at your convenience, for instance to choose
9233 which modules get compiled as plugins.
9234 "
9235 if test x${HAVE_VLC} = x1
9236 then
9237   echo "To build vlc and its plugins, type \`make'."
9238 fi
9239 if test x${NEED_LIBDVDCSS} = x1
9240 then
9241   echo "To build libdvdcss only, type \`make libdvdcss'."
9242 fi
9243 echo ""
9244