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