]> git.sesse.net Git - vlc/blob - configure
6535dc703e82d1c6966b9bf7f2cfa8691ec9f691
[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.3.0"
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     LIB_DVD="${LIB_DVD} -ldvd"
3092     LIB_VCD="${LIB_VCD} -ldvd"
3093     ;;
3094   xdarwin*)
3095     SYS=darwin
3096     ;;
3097   x*mingw32*)
3098     SYS=mingw32
3099     # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
3100 set dummy ${ac_tool_prefix}windres; ac_word=$2
3101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3102 echo "configure:3103: checking for $ac_word" >&5
3103 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3104   echo $ac_n "(cached) $ac_c" 1>&6
3105 else
3106   if test -n "$WINDRES"; then
3107   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3108 else
3109   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3110   ac_dummy="$PATH"
3111   for ac_dir in $ac_dummy; do
3112     test -z "$ac_dir" && ac_dir=.
3113     if test -f $ac_dir/$ac_word; then
3114       ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
3115       break
3116     fi
3117   done
3118   IFS="$ac_save_ifs"
3119 fi
3120 fi
3121 WINDRES="$ac_cv_prog_WINDRES"
3122 if test -n "$WINDRES"; then
3123   echo "$ac_t""$WINDRES" 1>&6
3124 else
3125   echo "$ac_t""no" 1>&6
3126 fi
3127
3128
3129 if test -z "$ac_cv_prog_WINDRES"; then
3130 if test -n "$ac_tool_prefix"; then
3131   # Extract the first word of "windres", so it can be a program name with args.
3132 set dummy windres; ac_word=$2
3133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3134 echo "configure:3135: checking for $ac_word" >&5
3135 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
3136   echo $ac_n "(cached) $ac_c" 1>&6
3137 else
3138   if test -n "$WINDRES"; then
3139   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
3140 else
3141   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3142   ac_dummy="$PATH"
3143   for ac_dir in $ac_dummy; do
3144     test -z "$ac_dir" && ac_dir=.
3145     if test -f $ac_dir/$ac_word; then
3146       ac_cv_prog_WINDRES="windres"
3147       break
3148     fi
3149   done
3150   IFS="$ac_save_ifs"
3151   test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES=":"
3152 fi
3153 fi
3154 WINDRES="$ac_cv_prog_WINDRES"
3155 if test -n "$WINDRES"; then
3156   echo "$ac_t""$WINDRES" 1>&6
3157 else
3158   echo "$ac_t""no" 1>&6
3159 fi
3160
3161 else
3162   WINDRES=":"
3163 fi
3164 fi
3165
3166     LIB_IPV4="${LIB_IPV4} -lws2_32"
3167     LIB_RC="${LIB_RC} -lws2_32"
3168     ;;
3169   x*nto*)
3170     SYS=nto
3171     LIB_X11="${LIB_X11} -lsocket"
3172     LIB_XVIDEO="${LIB_XVIDEO} -lsocket"
3173     ;;
3174   xbeos)
3175     SYS=beos
3176     LIB_VLC="${LIB_VLC} -lbe"
3177     LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
3178     LIB_IPV4="${LIB_IPV4} -lbind"
3179     PLDFLAGS="${PLDFLAGS} -nostart"
3180     ;;
3181   x*)
3182     SYS="${target_os}"
3183     ;;
3184 esac
3185
3186 for ac_func in gettimeofday select strerror strtod strtol isatty usleep vasprintf swab sigrelse getpwuid memalign posix_memalign
3187 do
3188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3189 echo "configure:3190: checking for $ac_func" >&5
3190 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3191   echo $ac_n "(cached) $ac_c" 1>&6
3192 else
3193   cat > conftest.$ac_ext <<EOF
3194 #line 3195 "configure"
3195 #include "confdefs.h"
3196 /* System header to define __stub macros and hopefully few prototypes,
3197     which can conflict with char $ac_func(); below.  */
3198 #include <assert.h>
3199 /* Override any gcc2 internal prototype to avoid an error.  */
3200 /* We use char because int might match the return type of a gcc2
3201     builtin and then its argument prototype would still apply.  */
3202 char $ac_func();
3203
3204 int main() {
3205
3206 /* The GNU C library defines this for functions which it implements
3207     to always fail with ENOSYS.  Some functions are actually named
3208     something starting with __ and the normal name is an alias.  */
3209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3210 choke me
3211 #else
3212 $ac_func();
3213 #endif
3214
3215 ; return 0; }
3216 EOF
3217 if { (eval echo configure:3218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3218   rm -rf conftest*
3219   eval "ac_cv_func_$ac_func=yes"
3220 else
3221   echo "configure: failed program was:" >&5
3222   cat conftest.$ac_ext >&5
3223   rm -rf conftest*
3224   eval "ac_cv_func_$ac_func=no"
3225 fi
3226 rm -f conftest*
3227 fi
3228
3229 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3230   echo "$ac_t""yes" 1>&6
3231     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3232   cat >> confdefs.h <<EOF
3233 #define $ac_tr_func 1
3234 EOF
3235  
3236 else
3237   echo "$ac_t""no" 1>&6
3238 fi
3239 done
3240
3241
3242 echo $ac_n "checking for connect""... $ac_c" 1>&6
3243 echo "configure:3244: checking for connect" >&5
3244 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3245   echo $ac_n "(cached) $ac_c" 1>&6
3246 else
3247   cat > conftest.$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3250 /* System header to define __stub macros and hopefully few prototypes,
3251     which can conflict with char connect(); below.  */
3252 #include <assert.h>
3253 /* Override any gcc2 internal prototype to avoid an error.  */
3254 /* We use char because int might match the return type of a gcc2
3255     builtin and then its argument prototype would still apply.  */
3256 char connect();
3257
3258 int main() {
3259
3260 /* The GNU C library defines this for functions which it implements
3261     to always fail with ENOSYS.  Some functions are actually named
3262     something starting with __ and the normal name is an alias.  */
3263 #if defined (__stub_connect) || defined (__stub___connect)
3264 choke me
3265 #else
3266 connect();
3267 #endif
3268
3269 ; return 0; }
3270 EOF
3271 if { (eval echo configure:3272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3272   rm -rf conftest*
3273   eval "ac_cv_func_connect=yes"
3274 else
3275   echo "configure: failed program was:" >&5
3276   cat conftest.$ac_ext >&5
3277   rm -rf conftest*
3278   eval "ac_cv_func_connect=no"
3279 fi
3280 rm -f conftest*
3281 fi
3282
3283 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3284   echo "$ac_t""yes" 1>&6
3285   :
3286 else
3287   echo "$ac_t""no" 1>&6
3288
3289   echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3290 echo "configure:3291: checking for connect in -lsocket" >&5
3291 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3292 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3293   echo $ac_n "(cached) $ac_c" 1>&6
3294 else
3295   ac_save_LIBS="$LIBS"
3296 LIBS="-lsocket  $LIBS"
3297 cat > conftest.$ac_ext <<EOF
3298 #line 3299 "configure"
3299 #include "confdefs.h"
3300 /* Override any gcc2 internal prototype to avoid an error.  */
3301 /* We use char because int might match the return type of a gcc2
3302     builtin and then its argument prototype would still apply.  */
3303 char connect();
3304
3305 int main() {
3306 connect()
3307 ; return 0; }
3308 EOF
3309 if { (eval echo configure:3310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3310   rm -rf conftest*
3311   eval "ac_cv_lib_$ac_lib_var=yes"
3312 else
3313   echo "configure: failed program was:" >&5
3314   cat conftest.$ac_ext >&5
3315   rm -rf conftest*
3316   eval "ac_cv_lib_$ac_lib_var=no"
3317 fi
3318 rm -f conftest*
3319 LIBS="$ac_save_LIBS"
3320
3321 fi
3322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3323   echo "$ac_t""yes" 1>&6
3324   LIB_IPV4="${LIB_IPV4} -lsocket"
3325     LIB_VLC="${LIB_VLC} -lsocket"
3326
3327 else
3328   echo "$ac_t""no" 1>&6
3329 fi
3330
3331 fi
3332
3333 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3334 echo "configure:3335: checking for gethostbyname" >&5
3335 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3336   echo $ac_n "(cached) $ac_c" 1>&6
3337 else
3338   cat > conftest.$ac_ext <<EOF
3339 #line 3340 "configure"
3340 #include "confdefs.h"
3341 /* System header to define __stub macros and hopefully few prototypes,
3342     which can conflict with char gethostbyname(); below.  */
3343 #include <assert.h>
3344 /* Override any gcc2 internal prototype to avoid an error.  */
3345 /* We use char because int might match the return type of a gcc2
3346     builtin and then its argument prototype would still apply.  */
3347 char gethostbyname();
3348
3349 int main() {
3350
3351 /* The GNU C library defines this for functions which it implements
3352     to always fail with ENOSYS.  Some functions are actually named
3353     something starting with __ and the normal name is an alias.  */
3354 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3355 choke me
3356 #else
3357 gethostbyname();
3358 #endif
3359
3360 ; return 0; }
3361 EOF
3362 if { (eval echo configure:3363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3363   rm -rf conftest*
3364   eval "ac_cv_func_gethostbyname=yes"
3365 else
3366   echo "configure: failed program was:" >&5
3367   cat conftest.$ac_ext >&5
3368   rm -rf conftest*
3369   eval "ac_cv_func_gethostbyname=no"
3370 fi
3371 rm -f conftest*
3372 fi
3373
3374 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3375   echo "$ac_t""yes" 1>&6
3376   :
3377 else
3378   echo "$ac_t""no" 1>&6
3379
3380   echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3381 echo "configure:3382: checking for gethostbyname in -lnsl" >&5
3382 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3383 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3384   echo $ac_n "(cached) $ac_c" 1>&6
3385 else
3386   ac_save_LIBS="$LIBS"
3387 LIBS="-lnsl  $LIBS"
3388 cat > conftest.$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3391 /* Override any gcc2 internal prototype to avoid an error.  */
3392 /* We use char because int might match the return type of a gcc2
3393     builtin and then its argument prototype would still apply.  */
3394 char gethostbyname();
3395
3396 int main() {
3397 gethostbyname()
3398 ; return 0; }
3399 EOF
3400 if { (eval echo configure:3401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3401   rm -rf conftest*
3402   eval "ac_cv_lib_$ac_lib_var=yes"
3403 else
3404   echo "configure: failed program was:" >&5
3405   cat conftest.$ac_ext >&5
3406   rm -rf conftest*
3407   eval "ac_cv_lib_$ac_lib_var=no"
3408 fi
3409 rm -f conftest*
3410 LIBS="$ac_save_LIBS"
3411
3412 fi
3413 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3414   echo "$ac_t""yes" 1>&6
3415   LIB_IPV4="${LIB_IPV4} -lnsl"
3416 else
3417   echo "$ac_t""no" 1>&6
3418 fi
3419
3420
3421 fi
3422
3423 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3424 echo "configure:3425: checking for gethostbyname" >&5
3425 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3426   echo $ac_n "(cached) $ac_c" 1>&6
3427 else
3428   cat > conftest.$ac_ext <<EOF
3429 #line 3430 "configure"
3430 #include "confdefs.h"
3431 /* System header to define __stub macros and hopefully few prototypes,
3432     which can conflict with char gethostbyname(); below.  */
3433 #include <assert.h>
3434 /* Override any gcc2 internal prototype to avoid an error.  */
3435 /* We use char because int might match the return type of a gcc2
3436     builtin and then its argument prototype would still apply.  */
3437 char gethostbyname();
3438
3439 int main() {
3440
3441 /* The GNU C library defines this for functions which it implements
3442     to always fail with ENOSYS.  Some functions are actually named
3443     something starting with __ and the normal name is an alias.  */
3444 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3445 choke me
3446 #else
3447 gethostbyname();
3448 #endif
3449
3450 ; return 0; }
3451 EOF
3452 if { (eval echo configure:3453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3453   rm -rf conftest*
3454   eval "ac_cv_func_gethostbyname=yes"
3455 else
3456   echo "configure: failed program was:" >&5
3457   cat conftest.$ac_ext >&5
3458   rm -rf conftest*
3459   eval "ac_cv_func_gethostbyname=no"
3460 fi
3461 rm -f conftest*
3462 fi
3463
3464 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3465   echo "$ac_t""yes" 1>&6
3466   :
3467 else
3468   echo "$ac_t""no" 1>&6
3469
3470   echo $ac_n "checking for gethostbyname in -lbind""... $ac_c" 1>&6
3471 echo "configure:3472: checking for gethostbyname in -lbind" >&5
3472 ac_lib_var=`echo bind'_'gethostbyname | sed 'y%./+-%__p_%'`
3473 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3474   echo $ac_n "(cached) $ac_c" 1>&6
3475 else
3476   ac_save_LIBS="$LIBS"
3477 LIBS="-lbind  $LIBS"
3478 cat > conftest.$ac_ext <<EOF
3479 #line 3480 "configure"
3480 #include "confdefs.h"
3481 /* Override any gcc2 internal prototype to avoid an error.  */
3482 /* We use char because int might match the return type of a gcc2
3483     builtin and then its argument prototype would still apply.  */
3484 char gethostbyname();
3485
3486 int main() {
3487 gethostbyname()
3488 ; return 0; }
3489 EOF
3490 if { (eval echo configure:3491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3491   rm -rf conftest*
3492   eval "ac_cv_lib_$ac_lib_var=yes"
3493 else
3494   echo "configure: failed program was:" >&5
3495   cat conftest.$ac_ext >&5
3496   rm -rf conftest*
3497   eval "ac_cv_lib_$ac_lib_var=no"
3498 fi
3499 rm -f conftest*
3500 LIBS="$ac_save_LIBS"
3501
3502 fi
3503 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3504   echo "$ac_t""yes" 1>&6
3505   LIB_IPV4="${LIB_IPV4} -lbind"
3506 else
3507   echo "$ac_t""no" 1>&6
3508 fi
3509
3510
3511 fi
3512
3513 echo $ac_n "checking for nanosleep""... $ac_c" 1>&6
3514 echo "configure:3515: checking for nanosleep" >&5
3515 if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then
3516   echo $ac_n "(cached) $ac_c" 1>&6
3517 else
3518   cat > conftest.$ac_ext <<EOF
3519 #line 3520 "configure"
3520 #include "confdefs.h"
3521 /* System header to define __stub macros and hopefully few prototypes,
3522     which can conflict with char nanosleep(); below.  */
3523 #include <assert.h>
3524 /* Override any gcc2 internal prototype to avoid an error.  */
3525 /* We use char because int might match the return type of a gcc2
3526     builtin and then its argument prototype would still apply.  */
3527 char nanosleep();
3528
3529 int main() {
3530
3531 /* The GNU C library defines this for functions which it implements
3532     to always fail with ENOSYS.  Some functions are actually named
3533     something starting with __ and the normal name is an alias.  */
3534 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
3535 choke me
3536 #else
3537 nanosleep();
3538 #endif
3539
3540 ; return 0; }
3541 EOF
3542 if { (eval echo configure:3543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3543   rm -rf conftest*
3544   eval "ac_cv_func_nanosleep=yes"
3545 else
3546   echo "configure: failed program was:" >&5
3547   cat conftest.$ac_ext >&5
3548   rm -rf conftest*
3549   eval "ac_cv_func_nanosleep=no"
3550 fi
3551 rm -f conftest*
3552 fi
3553
3554 if eval "test \"`echo '$ac_cv_func_'nanosleep`\" = yes"; then
3555   echo "$ac_t""yes" 1>&6
3556   :
3557 else
3558   echo "$ac_t""no" 1>&6
3559
3560   echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6
3561 echo "configure:3562: checking for nanosleep in -lrt" >&5
3562 ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'`
3563 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3564   echo $ac_n "(cached) $ac_c" 1>&6
3565 else
3566   ac_save_LIBS="$LIBS"
3567 LIBS="-lrt  $LIBS"
3568 cat > conftest.$ac_ext <<EOF
3569 #line 3570 "configure"
3570 #include "confdefs.h"
3571 /* Override any gcc2 internal prototype to avoid an error.  */
3572 /* We use char because int might match the return type of a gcc2
3573     builtin and then its argument prototype would still apply.  */
3574 char nanosleep();
3575
3576 int main() {
3577 nanosleep()
3578 ; return 0; }
3579 EOF
3580 if { (eval echo configure:3581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3581   rm -rf conftest*
3582   eval "ac_cv_lib_$ac_lib_var=yes"
3583 else
3584   echo "configure: failed program was:" >&5
3585   cat conftest.$ac_ext >&5
3586   rm -rf conftest*
3587   eval "ac_cv_lib_$ac_lib_var=no"
3588 fi
3589 rm -f conftest*
3590 LIBS="$ac_save_LIBS"
3591
3592 fi
3593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3594   echo "$ac_t""yes" 1>&6
3595   LIB_VLC="${LIB_VLC} -lrt"
3596 else
3597   echo "$ac_t""no" 1>&6
3598
3599     echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3600 echo "configure:3601: checking for nanosleep in -lposix4" >&5
3601 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3603   echo $ac_n "(cached) $ac_c" 1>&6
3604 else
3605   ac_save_LIBS="$LIBS"
3606 LIBS="-lposix4  $LIBS"
3607 cat > conftest.$ac_ext <<EOF
3608 #line 3609 "configure"
3609 #include "confdefs.h"
3610 /* Override any gcc2 internal prototype to avoid an error.  */
3611 /* We use char because int might match the return type of a gcc2
3612     builtin and then its argument prototype would still apply.  */
3613 char nanosleep();
3614
3615 int main() {
3616 nanosleep()
3617 ; return 0; }
3618 EOF
3619 if { (eval echo configure:3620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3620   rm -rf conftest*
3621   eval "ac_cv_lib_$ac_lib_var=yes"
3622 else
3623   echo "configure: failed program was:" >&5
3624   cat conftest.$ac_ext >&5
3625   rm -rf conftest*
3626   eval "ac_cv_lib_$ac_lib_var=no"
3627 fi
3628 rm -f conftest*
3629 LIBS="$ac_save_LIBS"
3630
3631 fi
3632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3633   echo "$ac_t""yes" 1>&6
3634   LIB_VLC="${LIB_VLC} -lposix4"
3635 else
3636   echo "$ac_t""no" 1>&6
3637 fi
3638
3639   
3640 fi
3641
3642
3643 fi
3644
3645 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3646 echo "configure:3647: checking for inet_aton" >&5
3647 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3648   echo $ac_n "(cached) $ac_c" 1>&6
3649 else
3650   cat > conftest.$ac_ext <<EOF
3651 #line 3652 "configure"
3652 #include "confdefs.h"
3653 /* System header to define __stub macros and hopefully few prototypes,
3654     which can conflict with char inet_aton(); below.  */
3655 #include <assert.h>
3656 /* Override any gcc2 internal prototype to avoid an error.  */
3657 /* We use char because int might match the return type of a gcc2
3658     builtin and then its argument prototype would still apply.  */
3659 char inet_aton();
3660
3661 int main() {
3662
3663 /* The GNU C library defines this for functions which it implements
3664     to always fail with ENOSYS.  Some functions are actually named
3665     something starting with __ and the normal name is an alias.  */
3666 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3667 choke me
3668 #else
3669 inet_aton();
3670 #endif
3671
3672 ; return 0; }
3673 EOF
3674 if { (eval echo configure:3675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3675   rm -rf conftest*
3676   eval "ac_cv_func_inet_aton=yes"
3677 else
3678   echo "configure: failed program was:" >&5
3679   cat conftest.$ac_ext >&5
3680   rm -rf conftest*
3681   eval "ac_cv_func_inet_aton=no"
3682 fi
3683 rm -f conftest*
3684 fi
3685
3686 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3687   echo "$ac_t""yes" 1>&6
3688   :
3689 else
3690   echo "$ac_t""no" 1>&6
3691
3692   echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
3693 echo "configure:3694: checking for inet_aton in -lresolv" >&5
3694 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
3695 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3696   echo $ac_n "(cached) $ac_c" 1>&6
3697 else
3698   ac_save_LIBS="$LIBS"
3699 LIBS="-lresolv  $LIBS"
3700 cat > conftest.$ac_ext <<EOF
3701 #line 3702 "configure"
3702 #include "confdefs.h"
3703 /* Override any gcc2 internal prototype to avoid an error.  */
3704 /* We use char because int might match the return type of a gcc2
3705     builtin and then its argument prototype would still apply.  */
3706 char inet_aton();
3707
3708 int main() {
3709 inet_aton()
3710 ; return 0; }
3711 EOF
3712 if { (eval echo configure:3713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3713   rm -rf conftest*
3714   eval "ac_cv_lib_$ac_lib_var=yes"
3715 else
3716   echo "configure: failed program was:" >&5
3717   cat conftest.$ac_ext >&5
3718   rm -rf conftest*
3719   eval "ac_cv_lib_$ac_lib_var=no"
3720 fi
3721 rm -f conftest*
3722 LIBS="$ac_save_LIBS"
3723
3724 fi
3725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3726   echo "$ac_t""yes" 1>&6
3727   LIB_IPV4="${LIB_IPV4} -lresolv"
3728 else
3729   echo "$ac_t""no" 1>&6
3730 fi
3731
3732
3733 fi
3734
3735 echo $ac_n "checking for textdomain""... $ac_c" 1>&6
3736 echo "configure:3737: checking for textdomain" >&5
3737 if eval "test \"`echo '$''{'ac_cv_func_textdomain'+set}'`\" = set"; then
3738   echo $ac_n "(cached) $ac_c" 1>&6
3739 else
3740   cat > conftest.$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3743 /* System header to define __stub macros and hopefully few prototypes,
3744     which can conflict with char textdomain(); below.  */
3745 #include <assert.h>
3746 /* Override any gcc2 internal prototype to avoid an error.  */
3747 /* We use char because int might match the return type of a gcc2
3748     builtin and then its argument prototype would still apply.  */
3749 char textdomain();
3750
3751 int main() {
3752
3753 /* The GNU C library defines this for functions which it implements
3754     to always fail with ENOSYS.  Some functions are actually named
3755     something starting with __ and the normal name is an alias.  */
3756 #if defined (__stub_textdomain) || defined (__stub___textdomain)
3757 choke me
3758 #else
3759 textdomain();
3760 #endif
3761
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_func_textdomain=yes"
3767 else
3768   echo "configure: failed program was:" >&5
3769   cat conftest.$ac_ext >&5
3770   rm -rf conftest*
3771   eval "ac_cv_func_textdomain=no"
3772 fi
3773 rm -f conftest*
3774 fi
3775
3776 if eval "test \"`echo '$ac_cv_func_'textdomain`\" = yes"; then
3777   echo "$ac_t""yes" 1>&6
3778   :
3779 else
3780   echo "$ac_t""no" 1>&6
3781
3782   echo $ac_n "checking for textdomain in -lintl""... $ac_c" 1>&6
3783 echo "configure:3784: checking for textdomain in -lintl" >&5
3784 ac_lib_var=`echo intl'_'textdomain | sed 'y%./+-%__p_%'`
3785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3786   echo $ac_n "(cached) $ac_c" 1>&6
3787 else
3788   ac_save_LIBS="$LIBS"
3789 LIBS="-lintl  $LIBS"
3790 cat > conftest.$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3793 /* Override any gcc2 internal prototype to avoid an error.  */
3794 /* We use char because int might match the return type of a gcc2
3795     builtin and then its argument prototype would still apply.  */
3796 char textdomain();
3797
3798 int main() {
3799 textdomain()
3800 ; return 0; }
3801 EOF
3802 if { (eval echo configure:3803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3803   rm -rf conftest*
3804   eval "ac_cv_lib_$ac_lib_var=yes"
3805 else
3806   echo "configure: failed program was:" >&5
3807   cat conftest.$ac_ext >&5
3808   rm -rf conftest*
3809   eval "ac_cv_lib_$ac_lib_var=no"
3810 fi
3811 rm -f conftest*
3812 LIBS="$ac_save_LIBS"
3813
3814 fi
3815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3816   echo "$ac_t""yes" 1>&6
3817   LIB_VLC="${LIB_VLC} -lintl"
3818 else
3819   echo "$ac_t""no" 1>&6
3820 fi
3821
3822
3823 fi
3824
3825
3826 NEED_GETOPT=0
3827 echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3828 echo "configure:3829: checking for getopt_long" >&5
3829 if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3830   echo $ac_n "(cached) $ac_c" 1>&6
3831 else
3832   cat > conftest.$ac_ext <<EOF
3833 #line 3834 "configure"
3834 #include "confdefs.h"
3835 /* System header to define __stub macros and hopefully few prototypes,
3836     which can conflict with char getopt_long(); below.  */
3837 #include <assert.h>
3838 /* Override any gcc2 internal prototype to avoid an error.  */
3839 /* We use char because int might match the return type of a gcc2
3840     builtin and then its argument prototype would still apply.  */
3841 char getopt_long();
3842
3843 int main() {
3844
3845 /* The GNU C library defines this for functions which it implements
3846     to always fail with ENOSYS.  Some functions are actually named
3847     something starting with __ and the normal name is an alias.  */
3848 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3849 choke me
3850 #else
3851 getopt_long();
3852 #endif
3853
3854 ; return 0; }
3855 EOF
3856 if { (eval echo configure:3857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3857   rm -rf conftest*
3858   eval "ac_cv_func_getopt_long=yes"
3859 else
3860   echo "configure: failed program was:" >&5
3861   cat conftest.$ac_ext >&5
3862   rm -rf conftest*
3863   eval "ac_cv_func_getopt_long=no"
3864 fi
3865 rm -f conftest*
3866 fi
3867
3868 if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3869   echo "$ac_t""yes" 1>&6
3870   cat >> confdefs.h <<\EOF
3871 #define HAVE_GETOPT_LONG 1
3872 EOF
3873
3874 else
3875   echo "$ac_t""no" 1>&6
3876  # FreeBSD has a gnugetopt library for this:
3877   echo $ac_n "checking for getopt_long in -lgnugetopt""... $ac_c" 1>&6
3878 echo "configure:3879: checking for getopt_long in -lgnugetopt" >&5
3879 ac_lib_var=`echo gnugetopt'_'getopt_long | sed 'y%./+-%__p_%'`
3880 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3881   echo $ac_n "(cached) $ac_c" 1>&6
3882 else
3883   ac_save_LIBS="$LIBS"
3884 LIBS="-lgnugetopt  $LIBS"
3885 cat > conftest.$ac_ext <<EOF
3886 #line 3887 "configure"
3887 #include "confdefs.h"
3888 /* Override any gcc2 internal prototype to avoid an error.  */
3889 /* We use char because int might match the return type of a gcc2
3890     builtin and then its argument prototype would still apply.  */
3891 char getopt_long();
3892
3893 int main() {
3894 getopt_long()
3895 ; return 0; }
3896 EOF
3897 if { (eval echo configure:3898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3898   rm -rf conftest*
3899   eval "ac_cv_lib_$ac_lib_var=yes"
3900 else
3901   echo "configure: failed program was:" >&5
3902   cat conftest.$ac_ext >&5
3903   rm -rf conftest*
3904   eval "ac_cv_lib_$ac_lib_var=no"
3905 fi
3906 rm -f conftest*
3907 LIBS="$ac_save_LIBS"
3908
3909 fi
3910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3911   echo "$ac_t""yes" 1>&6
3912   cat >> confdefs.h <<\EOF
3913 #define HAVE_GETOPT_LONG 1
3914 EOF
3915  LIB_VLC="${LIB_VLC} -lgnugetopt"
3916 else
3917   echo "$ac_t""no" 1>&6
3918 NEED_GETOPT=1
3919 fi
3920
3921 fi
3922
3923
3924 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3925 echo "configure:3926: checking return type of signal handlers" >&5
3926 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3927   echo $ac_n "(cached) $ac_c" 1>&6
3928 else
3929   cat > conftest.$ac_ext <<EOF
3930 #line 3931 "configure"
3931 #include "confdefs.h"
3932 #include <sys/types.h>
3933 #include <signal.h>
3934 #ifdef signal
3935 #undef signal
3936 #endif
3937 #ifdef __cplusplus
3938 extern "C" void (*signal (int, void (*)(int)))(int);
3939 #else
3940 void (*signal ()) ();
3941 #endif
3942
3943 int main() {
3944 int i;
3945 ; return 0; }
3946 EOF
3947 if { (eval echo configure:3948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3948   rm -rf conftest*
3949   ac_cv_type_signal=void
3950 else
3951   echo "configure: failed program was:" >&5
3952   cat conftest.$ac_ext >&5
3953   rm -rf conftest*
3954   ac_cv_type_signal=int
3955 fi
3956 rm -f conftest*
3957 fi
3958
3959 echo "$ac_t""$ac_cv_type_signal" 1>&6
3960 cat >> confdefs.h <<EOF
3961 #define RETSIGTYPE $ac_cv_type_signal
3962 EOF
3963
3964
3965 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3966 echo "configure:3967: checking for dlopen in -ldl" >&5
3967 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3968 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3969   echo $ac_n "(cached) $ac_c" 1>&6
3970 else
3971   ac_save_LIBS="$LIBS"
3972 LIBS="-ldl  $LIBS"
3973 cat > conftest.$ac_ext <<EOF
3974 #line 3975 "configure"
3975 #include "confdefs.h"
3976 /* Override any gcc2 internal prototype to avoid an error.  */
3977 /* We use char because int might match the return type of a gcc2
3978     builtin and then its argument prototype would still apply.  */
3979 char dlopen();
3980
3981 int main() {
3982 dlopen()
3983 ; return 0; }
3984 EOF
3985 if { (eval echo configure:3986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3986   rm -rf conftest*
3987   eval "ac_cv_lib_$ac_lib_var=yes"
3988 else
3989   echo "configure: failed program was:" >&5
3990   cat conftest.$ac_ext >&5
3991   rm -rf conftest*
3992   eval "ac_cv_lib_$ac_lib_var=no"
3993 fi
3994 rm -f conftest*
3995 LIBS="$ac_save_LIBS"
3996
3997 fi
3998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3999   echo "$ac_t""yes" 1>&6
4000   LIB_VLC="${LIB_VLC} -ldl"
4001 else
4002   echo "$ac_t""no" 1>&6
4003 fi
4004
4005 echo $ac_n "checking for cos in -lm""... $ac_c" 1>&6
4006 echo "configure:4007: checking for cos in -lm" >&5
4007 ac_lib_var=`echo m'_'cos | sed 'y%./+-%__p_%'`
4008 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4009   echo $ac_n "(cached) $ac_c" 1>&6
4010 else
4011   ac_save_LIBS="$LIBS"
4012 LIBS="-lm  $LIBS"
4013 cat > conftest.$ac_ext <<EOF
4014 #line 4015 "configure"
4015 #include "confdefs.h"
4016 /* Override any gcc2 internal prototype to avoid an error.  */
4017 /* We use char because int might match the return type of a gcc2
4018     builtin and then its argument prototype would still apply.  */
4019 char cos();
4020
4021 int main() {
4022 cos()
4023 ; return 0; }
4024 EOF
4025 if { (eval echo configure:4026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4026   rm -rf conftest*
4027   eval "ac_cv_lib_$ac_lib_var=yes"
4028 else
4029   echo "configure: failed program was:" >&5
4030   cat conftest.$ac_ext >&5
4031   rm -rf conftest*
4032   eval "ac_cv_lib_$ac_lib_var=no"
4033 fi
4034 rm -f conftest*
4035 LIBS="$ac_save_LIBS"
4036
4037 fi
4038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4039   echo "$ac_t""yes" 1>&6
4040   LIB_IMDCT="${LIB_IMDCT} -lm"
4041   LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm"
4042 else
4043   echo "$ac_t""no" 1>&6
4044 fi
4045
4046 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
4047 echo "configure:4048: checking for pow in -lm" >&5
4048 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
4049 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4050   echo $ac_n "(cached) $ac_c" 1>&6
4051 else
4052   ac_save_LIBS="$LIBS"
4053 LIBS="-lm  $LIBS"
4054 cat > conftest.$ac_ext <<EOF
4055 #line 4056 "configure"
4056 #include "confdefs.h"
4057 /* Override any gcc2 internal prototype to avoid an error.  */
4058 /* We use char because int might match the return type of a gcc2
4059     builtin and then its argument prototype would still apply.  */
4060 char pow();
4061
4062 int main() {
4063 pow()
4064 ; return 0; }
4065 EOF
4066 if { (eval echo configure:4067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4067   rm -rf conftest*
4068   eval "ac_cv_lib_$ac_lib_var=yes"
4069 else
4070   echo "configure: failed program was:" >&5
4071   cat conftest.$ac_ext >&5
4072   rm -rf conftest*
4073   eval "ac_cv_lib_$ac_lib_var=no"
4074 fi
4075 rm -f conftest*
4076 LIBS="$ac_save_LIBS"
4077
4078 fi
4079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4080   echo "$ac_t""yes" 1>&6
4081   LIB_IMDCT="${LIB_IMDCT} -lm"
4082   LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
4083   LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
4084   LIB_CHROMA_I420_RGB="${LIB_CHROMA_I420_RGB} -lm"
4085
4086 else
4087   echo "$ac_t""no" 1>&6
4088 fi
4089
4090
4091 THREAD_LIB=error
4092 if test "x${THREAD_LIB}" = xerror; then
4093   echo $ac_n "checking for pthread_attr_init in -lpthread""... $ac_c" 1>&6
4094 echo "configure:4095: checking for pthread_attr_init in -lpthread" >&5
4095 ac_lib_var=`echo pthread'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4096 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4097   echo $ac_n "(cached) $ac_c" 1>&6
4098 else
4099   ac_save_LIBS="$LIBS"
4100 LIBS="-lpthread  $LIBS"
4101 cat > conftest.$ac_ext <<EOF
4102 #line 4103 "configure"
4103 #include "confdefs.h"
4104 /* Override any gcc2 internal prototype to avoid an error.  */
4105 /* We use char because int might match the return type of a gcc2
4106     builtin and then its argument prototype would still apply.  */
4107 char pthread_attr_init();
4108
4109 int main() {
4110 pthread_attr_init()
4111 ; return 0; }
4112 EOF
4113 if { (eval echo configure:4114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4114   rm -rf conftest*
4115   eval "ac_cv_lib_$ac_lib_var=yes"
4116 else
4117   echo "configure: failed program was:" >&5
4118   cat conftest.$ac_ext >&5
4119   rm -rf conftest*
4120   eval "ac_cv_lib_$ac_lib_var=no"
4121 fi
4122 rm -f conftest*
4123 LIBS="$ac_save_LIBS"
4124
4125 fi
4126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4127   echo "$ac_t""yes" 1>&6
4128   THREAD_LIB="-lpthread"
4129 else
4130   echo "$ac_t""no" 1>&6
4131 fi
4132
4133 fi
4134 if test "x${THREAD_LIB}" = xerror; then
4135   echo $ac_n "checking for pthread_attr_init in -lpthreads""... $ac_c" 1>&6
4136 echo "configure:4137: checking for pthread_attr_init in -lpthreads" >&5
4137 ac_lib_var=`echo pthreads'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4138 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4139   echo $ac_n "(cached) $ac_c" 1>&6
4140 else
4141   ac_save_LIBS="$LIBS"
4142 LIBS="-lpthreads  $LIBS"
4143 cat > conftest.$ac_ext <<EOF
4144 #line 4145 "configure"
4145 #include "confdefs.h"
4146 /* Override any gcc2 internal prototype to avoid an error.  */
4147 /* We use char because int might match the return type of a gcc2
4148     builtin and then its argument prototype would still apply.  */
4149 char pthread_attr_init();
4150
4151 int main() {
4152 pthread_attr_init()
4153 ; return 0; }
4154 EOF
4155 if { (eval echo configure:4156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4156   rm -rf conftest*
4157   eval "ac_cv_lib_$ac_lib_var=yes"
4158 else
4159   echo "configure: failed program was:" >&5
4160   cat conftest.$ac_ext >&5
4161   rm -rf conftest*
4162   eval "ac_cv_lib_$ac_lib_var=no"
4163 fi
4164 rm -f conftest*
4165 LIBS="$ac_save_LIBS"
4166
4167 fi
4168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4169   echo "$ac_t""yes" 1>&6
4170   THREAD_LIB="-lpthreads"
4171 else
4172   echo "$ac_t""no" 1>&6
4173 fi
4174
4175 fi
4176 if test "x${THREAD_LIB}" = xerror; then
4177   echo $ac_n "checking for pthread_attr_init in -lc_r""... $ac_c" 1>&6
4178 echo "configure:4179: checking for pthread_attr_init in -lc_r" >&5
4179 ac_lib_var=`echo c_r'_'pthread_attr_init | sed 'y%./+-%__p_%'`
4180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4181   echo $ac_n "(cached) $ac_c" 1>&6
4182 else
4183   ac_save_LIBS="$LIBS"
4184 LIBS="-lc_r  $LIBS"
4185 cat > conftest.$ac_ext <<EOF
4186 #line 4187 "configure"
4187 #include "confdefs.h"
4188 /* Override any gcc2 internal prototype to avoid an error.  */
4189 /* We use char because int might match the return type of a gcc2
4190     builtin and then its argument prototype would still apply.  */
4191 char pthread_attr_init();
4192
4193 int main() {
4194 pthread_attr_init()
4195 ; return 0; }
4196 EOF
4197 if { (eval echo configure:4198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4198   rm -rf conftest*
4199   eval "ac_cv_lib_$ac_lib_var=yes"
4200 else
4201   echo "configure: failed program was:" >&5
4202   cat conftest.$ac_ext >&5
4203   rm -rf conftest*
4204   eval "ac_cv_lib_$ac_lib_var=no"
4205 fi
4206 rm -f conftest*
4207 LIBS="$ac_save_LIBS"
4208
4209 fi
4210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4211   echo "$ac_t""yes" 1>&6
4212   THREAD_LIB="-lc_r"
4213 else
4214   echo "$ac_t""no" 1>&6
4215 fi
4216
4217 fi
4218 if test "x${THREAD_LIB}" = xerror; then
4219   echo $ac_n "checking for pthread_attr_init""... $ac_c" 1>&6
4220 echo "configure:4221: checking for pthread_attr_init" >&5
4221 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_init'+set}'`\" = set"; then
4222   echo $ac_n "(cached) $ac_c" 1>&6
4223 else
4224   cat > conftest.$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4227 /* System header to define __stub macros and hopefully few prototypes,
4228     which can conflict with char pthread_attr_init(); below.  */
4229 #include <assert.h>
4230 /* Override any gcc2 internal prototype to avoid an error.  */
4231 /* We use char because int might match the return type of a gcc2
4232     builtin and then its argument prototype would still apply.  */
4233 char pthread_attr_init();
4234
4235 int main() {
4236
4237 /* The GNU C library defines this for functions which it implements
4238     to always fail with ENOSYS.  Some functions are actually named
4239     something starting with __ and the normal name is an alias.  */
4240 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
4241 choke me
4242 #else
4243 pthread_attr_init();
4244 #endif
4245
4246 ; return 0; }
4247 EOF
4248 if { (eval echo configure:4249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4249   rm -rf conftest*
4250   eval "ac_cv_func_pthread_attr_init=yes"
4251 else
4252   echo "configure: failed program was:" >&5
4253   cat conftest.$ac_ext >&5
4254   rm -rf conftest*
4255   eval "ac_cv_func_pthread_attr_init=no"
4256 fi
4257 rm -f conftest*
4258 fi
4259
4260 if eval "test \"`echo '$ac_cv_func_'pthread_attr_init`\" = yes"; then
4261   echo "$ac_t""yes" 1>&6
4262   :
4263 else
4264   echo "$ac_t""no" 1>&6
4265 fi
4266
4267   THREAD_LIB=""
4268 fi
4269
4270 echo $ac_n "checking for cthread_fork in -lthreads""... $ac_c" 1>&6
4271 echo "configure:4272: checking for cthread_fork in -lthreads" >&5
4272 ac_lib_var=`echo threads'_'cthread_fork | sed 'y%./+-%__p_%'`
4273 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4274   echo $ac_n "(cached) $ac_c" 1>&6
4275 else
4276   ac_save_LIBS="$LIBS"
4277 LIBS="-lthreads  $LIBS"
4278 cat > conftest.$ac_ext <<EOF
4279 #line 4280 "configure"
4280 #include "confdefs.h"
4281 /* Override any gcc2 internal prototype to avoid an error.  */
4282 /* We use char because int might match the return type of a gcc2
4283     builtin and then its argument prototype would still apply.  */
4284 char cthread_fork();
4285
4286 int main() {
4287 cthread_fork()
4288 ; return 0; }
4289 EOF
4290 if { (eval echo configure:4291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4291   rm -rf conftest*
4292   eval "ac_cv_lib_$ac_lib_var=yes"
4293 else
4294   echo "configure: failed program was:" >&5
4295   cat conftest.$ac_ext >&5
4296   rm -rf conftest*
4297   eval "ac_cv_lib_$ac_lib_var=no"
4298 fi
4299 rm -f conftest*
4300 LIBS="$ac_save_LIBS"
4301
4302 fi
4303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4304   echo "$ac_t""yes" 1>&6
4305   THREAD_LIB="-lthreads"
4306 else
4307   echo "$ac_t""no" 1>&6
4308 fi
4309
4310
4311 cat > conftest.$ac_ext <<EOF
4312 #line 4313 "configure"
4313 #include "confdefs.h"
4314 #include <pthread.h>
4315 EOF
4316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4317   egrep "pthread_cond_t" >/dev/null 2>&1; then
4318   rm -rf conftest*
4319   
4320   cat >> confdefs.h <<\EOF
4321 #define PTHREAD_COND_T_IN_PTHREAD_H 1
4322 EOF
4323
4324 fi
4325 rm -f conftest*
4326
4327 cat > conftest.$ac_ext <<EOF
4328 #line 4329 "configure"
4329 #include "confdefs.h"
4330 #include <strings.h>
4331 EOF
4332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4333   egrep "strncasecmp" >/dev/null 2>&1; then
4334   rm -rf conftest*
4335   
4336   cat >> confdefs.h <<\EOF
4337 #define STRNCASECMP_IN_STRINGS_H 1
4338 EOF
4339
4340 fi
4341 rm -f conftest*
4342
4343
4344 for ac_hdr in getopt.h strings.h
4345 do
4346 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4347 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4348 echo "configure:4349: checking for $ac_hdr" >&5
4349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4350   echo $ac_n "(cached) $ac_c" 1>&6
4351 else
4352   cat > conftest.$ac_ext <<EOF
4353 #line 4354 "configure"
4354 #include "confdefs.h"
4355 #include <$ac_hdr>
4356 EOF
4357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4358 { (eval echo configure:4359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4360 if test -z "$ac_err"; then
4361   rm -rf conftest*
4362   eval "ac_cv_header_$ac_safe=yes"
4363 else
4364   echo "$ac_err" >&5
4365   echo "configure: failed program was:" >&5
4366   cat conftest.$ac_ext >&5
4367   rm -rf conftest*
4368   eval "ac_cv_header_$ac_safe=no"
4369 fi
4370 rm -f conftest*
4371 fi
4372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4373   echo "$ac_t""yes" 1>&6
4374     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4375   cat >> confdefs.h <<EOF
4376 #define $ac_tr_hdr 1
4377 EOF
4378  
4379 else
4380   echo "$ac_t""no" 1>&6
4381 fi
4382 done
4383
4384 for ac_hdr in sys/sockio.h fcntl.h sys/time.h sys/times.h
4385 do
4386 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4387 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4388 echo "configure:4389: checking for $ac_hdr" >&5
4389 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4390   echo $ac_n "(cached) $ac_c" 1>&6
4391 else
4392   cat > conftest.$ac_ext <<EOF
4393 #line 4394 "configure"
4394 #include "confdefs.h"
4395 #include <$ac_hdr>
4396 EOF
4397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4398 { (eval echo configure:4399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4400 if test -z "$ac_err"; then
4401   rm -rf conftest*
4402   eval "ac_cv_header_$ac_safe=yes"
4403 else
4404   echo "$ac_err" >&5
4405   echo "configure: failed program was:" >&5
4406   cat conftest.$ac_ext >&5
4407   rm -rf conftest*
4408   eval "ac_cv_header_$ac_safe=no"
4409 fi
4410 rm -f conftest*
4411 fi
4412 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4413   echo "$ac_t""yes" 1>&6
4414     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4415   cat >> confdefs.h <<EOF
4416 #define $ac_tr_hdr 1
4417 EOF
4418  
4419 else
4420   echo "$ac_t""no" 1>&6
4421 fi
4422 done
4423
4424 for ac_hdr in dlfcn.h image.h
4425 do
4426 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4427 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4428 echo "configure:4429: checking for $ac_hdr" >&5
4429 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4430   echo $ac_n "(cached) $ac_c" 1>&6
4431 else
4432   cat > conftest.$ac_ext <<EOF
4433 #line 4434 "configure"
4434 #include "confdefs.h"
4435 #include <$ac_hdr>
4436 EOF
4437 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4438 { (eval echo configure:4439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4439 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4440 if test -z "$ac_err"; then
4441   rm -rf conftest*
4442   eval "ac_cv_header_$ac_safe=yes"
4443 else
4444   echo "$ac_err" >&5
4445   echo "configure: failed program was:" >&5
4446   cat conftest.$ac_ext >&5
4447   rm -rf conftest*
4448   eval "ac_cv_header_$ac_safe=no"
4449 fi
4450 rm -f conftest*
4451 fi
4452 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4453   echo "$ac_t""yes" 1>&6
4454     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4455   cat >> confdefs.h <<EOF
4456 #define $ac_tr_hdr 1
4457 EOF
4458  
4459 else
4460   echo "$ac_t""no" 1>&6
4461 fi
4462 done
4463
4464 for ac_hdr in arpa/inet.h net/if.h netinet/in.h sys/socket.h
4465 do
4466 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4467 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4468 echo "configure:4469: checking for $ac_hdr" >&5
4469 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4470   echo $ac_n "(cached) $ac_c" 1>&6
4471 else
4472   cat > conftest.$ac_ext <<EOF
4473 #line 4474 "configure"
4474 #include "confdefs.h"
4475 #include <$ac_hdr>
4476 EOF
4477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4478 { (eval echo configure:4479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4480 if test -z "$ac_err"; then
4481   rm -rf conftest*
4482   eval "ac_cv_header_$ac_safe=yes"
4483 else
4484   echo "$ac_err" >&5
4485   echo "configure: failed program was:" >&5
4486   cat conftest.$ac_ext >&5
4487   rm -rf conftest*
4488   eval "ac_cv_header_$ac_safe=no"
4489 fi
4490 rm -f conftest*
4491 fi
4492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4493   echo "$ac_t""yes" 1>&6
4494     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4495   cat >> confdefs.h <<EOF
4496 #define $ac_tr_hdr 1
4497 EOF
4498  
4499 else
4500   echo "$ac_t""no" 1>&6
4501 fi
4502 done
4503
4504 for ac_hdr in machine/param.h sys/shm.h
4505 do
4506 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4507 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4508 echo "configure:4509: checking for $ac_hdr" >&5
4509 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4510   echo $ac_n "(cached) $ac_c" 1>&6
4511 else
4512   cat > conftest.$ac_ext <<EOF
4513 #line 4514 "configure"
4514 #include "confdefs.h"
4515 #include <$ac_hdr>
4516 EOF
4517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4518 { (eval echo configure:4519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4520 if test -z "$ac_err"; then
4521   rm -rf conftest*
4522   eval "ac_cv_header_$ac_safe=yes"
4523 else
4524   echo "$ac_err" >&5
4525   echo "configure: failed program was:" >&5
4526   cat conftest.$ac_ext >&5
4527   rm -rf conftest*
4528   eval "ac_cv_header_$ac_safe=no"
4529 fi
4530 rm -f conftest*
4531 fi
4532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4533   echo "$ac_t""yes" 1>&6
4534     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4535   cat >> confdefs.h <<EOF
4536 #define $ac_tr_hdr 1
4537 EOF
4538  
4539 else
4540   echo "$ac_t""no" 1>&6
4541 fi
4542 done
4543
4544 for ac_hdr in linux/version.h
4545 do
4546 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4547 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4548 echo "configure:4549: checking for $ac_hdr" >&5
4549 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 #include <$ac_hdr>
4556 EOF
4557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4558 { (eval echo configure:4559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4559 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4560 if test -z "$ac_err"; then
4561   rm -rf conftest*
4562   eval "ac_cv_header_$ac_safe=yes"
4563 else
4564   echo "$ac_err" >&5
4565   echo "configure: failed program was:" >&5
4566   cat conftest.$ac_ext >&5
4567   rm -rf conftest*
4568   eval "ac_cv_header_$ac_safe=no"
4569 fi
4570 rm -f conftest*
4571 fi
4572 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4573   echo "$ac_t""yes" 1>&6
4574     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4575   cat >> confdefs.h <<EOF
4576 #define $ac_tr_hdr 1
4577 EOF
4578  
4579 else
4580   echo "$ac_t""no" 1>&6
4581 fi
4582 done
4583
4584
4585 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4586 echo "configure:4587: checking whether time.h and sys/time.h may both be included" >&5
4587 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4588   echo $ac_n "(cached) $ac_c" 1>&6
4589 else
4590   cat > conftest.$ac_ext <<EOF
4591 #line 4592 "configure"
4592 #include "confdefs.h"
4593 #include <sys/types.h>
4594 #include <sys/time.h>
4595 #include <time.h>
4596 int main() {
4597 struct tm *tp;
4598 ; return 0; }
4599 EOF
4600 if { (eval echo configure:4601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4601   rm -rf conftest*
4602   ac_cv_header_time=yes
4603 else
4604   echo "configure: failed program was:" >&5
4605   cat conftest.$ac_ext >&5
4606   rm -rf conftest*
4607   ac_cv_header_time=no
4608 fi
4609 rm -f conftest*
4610 fi
4611
4612 echo "$ac_t""$ac_cv_header_time" 1>&6
4613 if test $ac_cv_header_time = yes; then
4614   cat >> confdefs.h <<\EOF
4615 #define TIME_WITH_SYS_TIME 1
4616 EOF
4617
4618 fi
4619
4620
4621 for ac_hdr in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
4622 do
4623 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4624 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4625 echo "configure:4626: checking for $ac_hdr" >&5
4626 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4627   echo $ac_n "(cached) $ac_c" 1>&6
4628 else
4629   cat > conftest.$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4632 #include <$ac_hdr>
4633 EOF
4634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4635 { (eval echo configure:4636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4637 if test -z "$ac_err"; then
4638   rm -rf conftest*
4639   eval "ac_cv_header_$ac_safe=yes"
4640 else
4641   echo "$ac_err" >&5
4642   echo "configure: failed program was:" >&5
4643   cat conftest.$ac_ext >&5
4644   rm -rf conftest*
4645   eval "ac_cv_header_$ac_safe=no"
4646 fi
4647 rm -f conftest*
4648 fi
4649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4650   echo "$ac_t""yes" 1>&6
4651     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4652   cat >> confdefs.h <<EOF
4653 #define $ac_tr_hdr 1
4654 EOF
4655  
4656 else
4657   echo "$ac_t""no" 1>&6
4658 fi
4659 done
4660
4661
4662 if test x$SYS != xmingw32
4663 then
4664   if test x$x_includes = xNONE; then
4665     x_includes=/usr/X11R6/include
4666   fi
4667   if test x$x_libraries = xNONE; then
4668     x_libraries=/usr/X11R6/lib
4669   fi
4670   saved_CPPFLAGS=$CPPFLAGS
4671   CPPFLAGS="$CPPFLAGS -I$x_includes"
4672   for ac_hdr in X11/extensions/dpms.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     cat > conftest.$ac_ext <<EOF
4708 #line 4709 "configure"
4709 #include "confdefs.h"
4710 #include <X11/extensions/dpms.h>
4711 EOF
4712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4713   egrep "DPMSInfo" >/dev/null 2>&1; then
4714   rm -rf conftest*
4715   
4716       cat >> confdefs.h <<\EOF
4717 #define DPMSINFO_IN_DPMS_H 1
4718 EOF
4719
4720     
4721 fi
4722 rm -f conftest*
4723
4724   
4725 else
4726   echo "$ac_t""no" 1>&6
4727 fi
4728 done
4729
4730   CPPFLAGS=$saved_CPPFLAGS
4731 fi
4732
4733 echo $ac_n "checking for ntohl in sys/param.h""... $ac_c" 1>&6
4734 echo "configure:4735: checking for ntohl in sys/param.h" >&5
4735 if eval "test \"`echo '$''{'ac_cv_c_ntohl_sys_param_h'+set}'`\" = set"; then
4736   echo $ac_n "(cached) $ac_c" 1>&6
4737 else
4738   CFLAGS="${save_CFLAGS} -Wall -Werror"
4739      cat > conftest.$ac_ext <<EOF
4740 #line 4741 "configure"
4741 #include "confdefs.h"
4742 #include <sys/param.h>
4743 int main() {
4744 void foo() { int meuh; ntohl(meuh); }
4745 ; return 0; }
4746 EOF
4747 if { (eval echo configure:4748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4748   rm -rf conftest*
4749   ac_cv_c_ntohl_sys_param_h=yes
4750 else
4751   echo "configure: failed program was:" >&5
4752   cat conftest.$ac_ext >&5
4753   rm -rf conftest*
4754   ac_cv_c_ntohl_sys_param_h=no
4755 fi
4756 rm -f conftest*
4757 fi
4758
4759 echo "$ac_t""$ac_cv_c_ntohl_sys_param_h" 1>&6
4760 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
4761     cat >> confdefs.h <<\EOF
4762 #define NTOHL_IN_SYS_PARAM_H 1
4763 EOF
4764
4765 fi
4766
4767 echo $ac_n "checking if \$CC accepts -finline-limit""... $ac_c" 1>&6
4768 echo "configure:4769: checking if \$CC accepts -finline-limit" >&5
4769 if eval "test \"`echo '$''{'ac_cv_c_inline_limit'+set}'`\" = set"; then
4770   echo $ac_n "(cached) $ac_c" 1>&6
4771 else
4772   CFLAGS="${save_CFLAGS} -finline-limit-30000"
4773      cat > conftest.$ac_ext <<EOF
4774 #line 4775 "configure"
4775 #include "confdefs.h"
4776
4777 int main() {
4778
4779 ; return 0; }
4780 EOF
4781 if { (eval echo configure:4782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4782   rm -rf conftest*
4783   ac_cv_c_inline_limit=yes
4784 else
4785   echo "configure: failed program was:" >&5
4786   cat conftest.$ac_ext >&5
4787   rm -rf conftest*
4788   ac_cv_c_inline_limit=no
4789 fi
4790 rm -f conftest*
4791 fi
4792
4793 echo "$ac_t""$ac_cv_c_inline_limit" 1>&6
4794 if test x"$ac_cv_c_inline_limit" != x"no"; then
4795     save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
4796 fi
4797
4798 echo $ac_n "checking if \$CC accepts -Wall -Winline""... $ac_c" 1>&6
4799 echo "configure:4800: checking if \$CC accepts -Wall -Winline" >&5
4800 if eval "test \"`echo '$''{'ac_cv_c_Wall_Winline'+set}'`\" = set"; then
4801   echo $ac_n "(cached) $ac_c" 1>&6
4802 else
4803   CFLAGS="${save_CFLAGS} -Wall -Winline"
4804      cat > conftest.$ac_ext <<EOF
4805 #line 4806 "configure"
4806 #include "confdefs.h"
4807
4808 int main() {
4809
4810 ; return 0; }
4811 EOF
4812 if { (eval echo configure:4813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4813   rm -rf conftest*
4814   ac_cv_c_Wall_Winline=yes
4815 else
4816   echo "configure: failed program was:" >&5
4817   cat conftest.$ac_ext >&5
4818   rm -rf conftest*
4819   ac_cv_c_Wall_Winline=no
4820 fi
4821 rm -f conftest*
4822 fi
4823
4824 echo "$ac_t""$ac_cv_c_Wall_Winline" 1>&6
4825 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
4826     save_CFLAGS="${save_CFLAGS} -Wall -Winline"
4827 else
4828     echo $ac_n "checking if \$CC accepts -wall -winline""... $ac_c" 1>&6
4829 echo "configure:4830: checking if \$CC accepts -wall -winline" >&5
4830 if eval "test \"`echo '$''{'ac_cv_c_wall_winline'+set}'`\" = set"; then
4831   echo $ac_n "(cached) $ac_c" 1>&6
4832 else
4833   CFLAGS="${save_CFLAGS} -wall -winline"
4834          cat > conftest.$ac_ext <<EOF
4835 #line 4836 "configure"
4836 #include "confdefs.h"
4837
4838 int main() {
4839
4840 ; return 0; }
4841 EOF
4842 if { (eval echo configure:4843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4843   rm -rf conftest*
4844   ac_cv_c_wall_winline=yes
4845 else
4846   echo "configure: failed program was:" >&5
4847   cat conftest.$ac_ext >&5
4848   rm -rf conftest*
4849   ac_cv_c_wall_winline=no
4850 fi
4851 rm -f conftest*
4852 fi
4853
4854 echo "$ac_t""$ac_cv_c_wall_winline" 1>&6
4855     if test x"$ac_cv_c_wall_winline" != x"no"; then
4856         save_CFLAGS="${save_CFLAGS} -wall -winline"
4857     fi
4858 fi
4859
4860 echo $ac_n "checking if \$CC accepts -pipe""... $ac_c" 1>&6
4861 echo "configure:4862: checking if \$CC accepts -pipe" >&5
4862 if eval "test \"`echo '$''{'ac_cv_c_pipe'+set}'`\" = set"; then
4863   echo $ac_n "(cached) $ac_c" 1>&6
4864 else
4865   CFLAGS="${save_CFLAGS} -pipe"
4866      cat > conftest.$ac_ext <<EOF
4867 #line 4868 "configure"
4868 #include "confdefs.h"
4869
4870 int main() {
4871
4872 ; return 0; }
4873 EOF
4874 if { (eval echo configure:4875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4875   rm -rf conftest*
4876   ac_cv_c_pipe=yes
4877 else
4878   echo "configure: failed program was:" >&5
4879   cat conftest.$ac_ext >&5
4880   rm -rf conftest*
4881   ac_cv_c_pipe=no
4882 fi
4883 rm -f conftest*
4884 fi
4885
4886 echo "$ac_t""$ac_cv_c_pipe" 1>&6
4887 if test x"$ac_cv_c_pipe" != x"no"; then
4888     save_CFLAGS="${save_CFLAGS} -pipe"
4889 fi
4890
4891 echo $ac_n "checking if \$CC accepts -O3""... $ac_c" 1>&6
4892 echo "configure:4893: checking if \$CC accepts -O3" >&5
4893 if eval "test \"`echo '$''{'ac_cv_c_o3'+set}'`\" = set"; then
4894   echo $ac_n "(cached) $ac_c" 1>&6
4895 else
4896   CFLAGS="${save_CFLAGS} -O3"
4897      cat > conftest.$ac_ext <<EOF
4898 #line 4899 "configure"
4899 #include "confdefs.h"
4900
4901 int main() {
4902
4903 ; return 0; }
4904 EOF
4905 if { (eval echo configure:4906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4906   rm -rf conftest*
4907   ac_cv_c_o3=yes
4908 else
4909   echo "configure: failed program was:" >&5
4910   cat conftest.$ac_ext >&5
4911   rm -rf conftest*
4912   ac_cv_c_o3=no
4913 fi
4914 rm -f conftest*
4915 fi
4916
4917 echo "$ac_t""$ac_cv_c_o3" 1>&6
4918 if test x"$ac_cv_c_o3" != x"no"; then
4919     CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
4920 else
4921     echo $ac_n "checking if \$CC accepts -O2""... $ac_c" 1>&6
4922 echo "configure:4923: checking if \$CC accepts -O2" >&5
4923 if eval "test \"`echo '$''{'ac_cv_c_o2'+set}'`\" = set"; then
4924   echo $ac_n "(cached) $ac_c" 1>&6
4925 else
4926   CFLAGS="${save_CFLAGS} -O2"
4927          cat > conftest.$ac_ext <<EOF
4928 #line 4929 "configure"
4929 #include "confdefs.h"
4930
4931 int main() {
4932
4933 ; return 0; }
4934 EOF
4935 if { (eval echo configure:4936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4936   rm -rf conftest*
4937   ac_cv_c_o2=yes
4938 else
4939   echo "configure: failed program was:" >&5
4940   cat conftest.$ac_ext >&5
4941   rm -rf conftest*
4942   ac_cv_c_o2=no
4943 fi
4944 rm -f conftest*
4945 fi
4946
4947 echo "$ac_t""$ac_cv_c_o2" 1>&6
4948     if test x"$ac_cv_c_o2" != x"no"; then
4949         CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
4950     else
4951         echo $ac_n "checking if \$CC accepts -O""... $ac_c" 1>&6
4952 echo "configure:4953: checking if \$CC accepts -O" >&5
4953 if eval "test \"`echo '$''{'ac_cv_c_o'+set}'`\" = set"; then
4954   echo $ac_n "(cached) $ac_c" 1>&6
4955 else
4956   CFLAGS="${save_CFLAGS} -O"
4957              cat > conftest.$ac_ext <<EOF
4958 #line 4959 "configure"
4959 #include "confdefs.h"
4960
4961 int main() {
4962
4963 ; return 0; }
4964 EOF
4965 if { (eval echo configure:4966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4966   rm -rf conftest*
4967   ac_cv_c_o=yes
4968 else
4969   echo "configure: failed program was:" >&5
4970   cat conftest.$ac_ext >&5
4971   rm -rf conftest*
4972   ac_cv_c_o=no
4973 fi
4974 rm -f conftest*
4975 fi
4976
4977 echo "$ac_t""$ac_cv_c_o" 1>&6
4978         if test x"$ac_cv_c_o" != x"no"; then
4979             CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
4980         fi
4981     fi
4982 fi
4983
4984 echo $ac_n "checking if \$CC accepts -ffast-math""... $ac_c" 1>&6
4985 echo "configure:4986: checking if \$CC accepts -ffast-math" >&5
4986 if eval "test \"`echo '$''{'ac_cv_c_fast_math'+set}'`\" = set"; then
4987   echo $ac_n "(cached) $ac_c" 1>&6
4988 else
4989   CFLAGS="${save_CFLAGS} -ffast-math"
4990      cat > conftest.$ac_ext <<EOF
4991 #line 4992 "configure"
4992 #include "confdefs.h"
4993
4994 int main() {
4995
4996 ; return 0; }
4997 EOF
4998 if { (eval echo configure:4999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4999   rm -rf conftest*
5000   ac_cv_c_fast_math=yes
5001 else
5002   echo "configure: failed program was:" >&5
5003   cat conftest.$ac_ext >&5
5004   rm -rf conftest*
5005   ac_cv_c_fast_math=no
5006 fi
5007 rm -f conftest*
5008 fi
5009
5010 echo "$ac_t""$ac_cv_c_fast_math" 1>&6
5011 if test x"$ac_cv_c_fast_math" != x"no"; then
5012     CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
5013 fi
5014
5015 echo $ac_n "checking if \$CC accepts -funroll-loops""... $ac_c" 1>&6
5016 echo "configure:5017: checking if \$CC accepts -funroll-loops" >&5
5017 if eval "test \"`echo '$''{'ac_cv_c_unroll_loops'+set}'`\" = set"; then
5018   echo $ac_n "(cached) $ac_c" 1>&6
5019 else
5020   CFLAGS="${save_CFLAGS} -funroll-loops"
5021      cat > conftest.$ac_ext <<EOF
5022 #line 5023 "configure"
5023 #include "confdefs.h"
5024
5025 int main() {
5026
5027 ; return 0; }
5028 EOF
5029 if { (eval echo configure:5030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5030   rm -rf conftest*
5031   ac_cv_c_unroll_loops=yes
5032 else
5033   echo "configure: failed program was:" >&5
5034   cat conftest.$ac_ext >&5
5035   rm -rf conftest*
5036   ac_cv_c_unroll_loops=no
5037 fi
5038 rm -f conftest*
5039 fi
5040
5041 echo "$ac_t""$ac_cv_c_unroll_loops" 1>&6
5042 if test x"$ac_cv_c_unroll_loops" != x"no"; then
5043     CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
5044 fi
5045
5046 echo $ac_n "checking if \$CC accepts -fomit-frame-pointer""... $ac_c" 1>&6
5047 echo "configure:5048: checking if \$CC accepts -fomit-frame-pointer" >&5
5048 if eval "test \"`echo '$''{'ac_cv_c_omit_frame_pointer'+set}'`\" = set"; then
5049   echo $ac_n "(cached) $ac_c" 1>&6
5050 else
5051   CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
5052      cat > conftest.$ac_ext <<EOF
5053 #line 5054 "configure"
5054 #include "confdefs.h"
5055
5056 int main() {
5057
5058 ; return 0; }
5059 EOF
5060 if { (eval echo configure:5061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5061   rm -rf conftest*
5062   ac_cv_c_omit_frame_pointer=yes
5063 else
5064   echo "configure: failed program was:" >&5
5065   cat conftest.$ac_ext >&5
5066   rm -rf conftest*
5067   ac_cv_c_omit_frame_pointer=no
5068 fi
5069 rm -f conftest*
5070 fi
5071
5072 echo "$ac_t""$ac_cv_c_omit_frame_pointer" 1>&6
5073 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
5074     CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
5075 fi
5076
5077 echo $ac_n "checking if \$CC accepts -bundle -undefined error -lcc_dynamic""... $ac_c" 1>&6
5078 echo "configure:5079: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
5079 if eval "test \"`echo '$''{'ac_cv_ld_darwin'+set}'`\" = set"; then
5080   echo $ac_n "(cached) $ac_c" 1>&6
5081 else
5082   CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
5083      cat > conftest.$ac_ext <<EOF
5084 #line 5085 "configure"
5085 #include "confdefs.h"
5086
5087 int main() {
5088
5089 ; return 0; }
5090 EOF
5091 if { (eval echo configure:5092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5092   rm -rf conftest*
5093   ac_cv_ld_darwin=yes
5094 else
5095   echo "configure: failed program was:" >&5
5096   cat conftest.$ac_ext >&5
5097   rm -rf conftest*
5098   ac_cv_ld_darwin=no
5099 fi
5100 rm -f conftest*
5101 fi
5102
5103 echo "$ac_t""$ac_cv_ld_darwin" 1>&6
5104 if test x"$ac_cv_ld_darwin" != x"no"; then
5105     PLDFLAGS="${PLDFLAGS} -bundle -undefined error -lcc_dynamic"
5106 fi
5107
5108 echo $ac_n "checking if \$CC accepts -shared""... $ac_c" 1>&6
5109 echo "configure:5110: checking if \$CC accepts -shared" >&5
5110 if eval "test \"`echo '$''{'ac_cv_ld_plugins'+set}'`\" = set"; then
5111   echo $ac_n "(cached) $ac_c" 1>&6
5112 else
5113   CFLAGS="${save_CFLAGS} -shared"
5114      cat > conftest.$ac_ext <<EOF
5115 #line 5116 "configure"
5116 #include "confdefs.h"
5117
5118 int main() {
5119
5120 ; return 0; }
5121 EOF
5122 if { (eval echo configure:5123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5123   rm -rf conftest*
5124   ac_cv_ld_plugins=yes
5125 else
5126   echo "configure: failed program was:" >&5
5127   cat conftest.$ac_ext >&5
5128   rm -rf conftest*
5129   ac_cv_ld_plugins=no
5130 fi
5131 rm -f conftest*
5132 fi
5133
5134 echo "$ac_t""$ac_cv_ld_plugins" 1>&6
5135 if test x"$ac_cv_ld_plugins" != x"no"; then
5136     PLDFLAGS="${PLDFLAGS} -shared"
5137 fi
5138         
5139 echo $ac_n "checking __attribute__ ((aligned ())) support""... $ac_c" 1>&6
5140 echo "configure:5141: checking __attribute__ ((aligned ())) support" >&5
5141 if eval "test \"`echo '$''{'ac_cv_c_attribute_aligned'+set}'`\" = set"; then
5142   echo $ac_n "(cached) $ac_c" 1>&6
5143 else
5144   ac_cv_c_attribute_aligned=0
5145         CFLAGS="${save_CFLAGS} -Werror"
5146     for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
5147         cat > conftest.$ac_ext <<EOF
5148 #line 5149 "configure"
5149 #include "confdefs.h"
5150
5151 int main() {
5152 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
5153 ; return 0; }
5154 EOF
5155 if { (eval echo configure:5156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5156   rm -rf conftest*
5157   ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
5158 else
5159   echo "configure: failed program was:" >&5
5160   cat conftest.$ac_ext >&5
5161 fi
5162 rm -f conftest*
5163     done
5164 fi
5165
5166 echo "$ac_t""$ac_cv_c_attribute_aligned" 1>&6
5167 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
5168     cat >> confdefs.h <<EOF
5169 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
5170 EOF
5171
5172 fi
5173
5174 CFLAGS="${save_CFLAGS}"
5175 LDFLAGS="${save_LDFLAGS}"
5176
5177 echo $ac_n "checking for boolean_t in sys/types.h""... $ac_c" 1>&6
5178 echo "configure:5179: checking for boolean_t in sys/types.h" >&5
5179 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_sys_types_h'+set}'`\" = set"; then
5180   echo $ac_n "(cached) $ac_c" 1>&6
5181 else
5182   cat > conftest.$ac_ext <<EOF
5183 #line 5184 "configure"
5184 #include "confdefs.h"
5185 #include <sys/types.h>
5186 int main() {
5187 boolean_t foo;
5188 ; return 0; }
5189 EOF
5190 if { (eval echo configure:5191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5191   rm -rf conftest*
5192   ac_cv_c_boolean_t_sys_types_h=yes
5193 else
5194   echo "configure: failed program was:" >&5
5195   cat conftest.$ac_ext >&5
5196   rm -rf conftest*
5197   ac_cv_c_boolean_t_sys_types_h=no
5198 fi
5199 rm -f conftest*
5200 fi
5201
5202 echo "$ac_t""$ac_cv_c_boolean_t_sys_types_h" 1>&6
5203 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
5204     cat >> confdefs.h <<\EOF
5205 #define BOOLEAN_T_IN_SYS_TYPES_H 1
5206 EOF
5207
5208 fi
5209
5210 echo $ac_n "checking for boolean_t in pthread.h""... $ac_c" 1>&6
5211 echo "configure:5212: checking for boolean_t in pthread.h" >&5
5212 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_pthread_h'+set}'`\" = set"; then
5213   echo $ac_n "(cached) $ac_c" 1>&6
5214 else
5215   cat > conftest.$ac_ext <<EOF
5216 #line 5217 "configure"
5217 #include "confdefs.h"
5218 #include <pthread.h>
5219 int main() {
5220 boolean_t foo;
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_boolean_t_pthread_h=yes
5226 else
5227   echo "configure: failed program was:" >&5
5228   cat conftest.$ac_ext >&5
5229   rm -rf conftest*
5230   ac_cv_c_boolean_t_pthread_h=no
5231 fi
5232 rm -f conftest*
5233 fi
5234
5235 echo "$ac_t""$ac_cv_c_boolean_t_pthread_h" 1>&6
5236 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
5237     cat >> confdefs.h <<\EOF
5238 #define BOOLEAN_T_IN_PTHREAD_H 1
5239 EOF
5240
5241 fi
5242
5243 echo $ac_n "checking for boolean_t in cthreads.h""... $ac_c" 1>&6
5244 echo "configure:5245: checking for boolean_t in cthreads.h" >&5
5245 if eval "test \"`echo '$''{'ac_cv_c_boolean_t_cthreads_h'+set}'`\" = set"; then
5246   echo $ac_n "(cached) $ac_c" 1>&6
5247 else
5248   cat > conftest.$ac_ext <<EOF
5249 #line 5250 "configure"
5250 #include "confdefs.h"
5251 #include <cthreads.h>
5252 int main() {
5253 boolean_t foo;
5254 ; return 0; }
5255 EOF
5256 if { (eval echo configure:5257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5257   rm -rf conftest*
5258   ac_cv_c_boolean_t_cthreads_h=yes
5259 else
5260   echo "configure: failed program was:" >&5
5261   cat conftest.$ac_ext >&5
5262   rm -rf conftest*
5263   ac_cv_c_boolean_t_cthreads_h=no
5264 fi
5265 rm -f conftest*
5266 fi
5267
5268 echo "$ac_t""$ac_cv_c_boolean_t_cthreads_h" 1>&6
5269 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
5270     cat >> confdefs.h <<\EOF
5271 #define BOOLEAN_T_IN_CTHREADS_H 1
5272 EOF
5273
5274 fi
5275
5276 case x"${target_cpu}" in
5277   x)
5278     ARCH=unknown
5279     ;;
5280   *)
5281     ARCH="${target_cpu}"
5282     ;;
5283 esac
5284
5285 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"
5286 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"
5287
5288 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
5289 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
5290 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
5291 SSE_MODULES="imdctsse downmixsse"
5292 ALTIVEC_MODULES="idctaltivec motionaltivec"
5293
5294 echo $ac_n "checking if \$CC groks MMX inline assembly""... $ac_c" 1>&6
5295 echo "configure:5296: checking if \$CC groks MMX inline assembly" >&5
5296 if eval "test \"`echo '$''{'ac_cv_mmx_inline'+set}'`\" = set"; then
5297   echo $ac_n "(cached) $ac_c" 1>&6
5298 else
5299   cat > conftest.$ac_ext <<EOF
5300 #line 5301 "configure"
5301 #include "confdefs.h"
5302
5303 int main() {
5304 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
5305 ; return 0; }
5306 EOF
5307 if { (eval echo configure:5308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5308   rm -rf conftest*
5309   ac_cv_mmx_inline=yes
5310 else
5311   echo "configure: failed program was:" >&5
5312   cat conftest.$ac_ext >&5
5313   rm -rf conftest*
5314   ac_cv_mmx_inline=no
5315 fi
5316 rm -f conftest*
5317 fi
5318
5319 echo "$ac_t""$ac_cv_mmx_inline" 1>&6
5320 if test x"$ac_cv_mmx_inline" != x"no"; then
5321   ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
5322 fi
5323
5324 echo $ac_n "checking if \$CC groks MMX EXT inline assembly""... $ac_c" 1>&6
5325 echo "configure:5326: checking if \$CC groks MMX EXT inline assembly" >&5
5326 if eval "test \"`echo '$''{'ac_cv_mmxext_inline'+set}'`\" = set"; then
5327   echo $ac_n "(cached) $ac_c" 1>&6
5328 else
5329   cat > conftest.$ac_ext <<EOF
5330 #line 5331 "configure"
5331 #include "confdefs.h"
5332
5333 int main() {
5334 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
5335 ; return 0; }
5336 EOF
5337 if { (eval echo configure:5338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5338   rm -rf conftest*
5339   ac_cv_mmxext_inline=yes
5340 else
5341   echo "configure: failed program was:" >&5
5342   cat conftest.$ac_ext >&5
5343   rm -rf conftest*
5344   ac_cv_mmxext_inline=no
5345 fi
5346 rm -f conftest*
5347 fi
5348
5349 echo "$ac_t""$ac_cv_mmxext_inline" 1>&6
5350 if test x"$ac_cv_mmxext_inline" != x"no"; then
5351   ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
5352 fi
5353
5354 echo $ac_n "checking if \$CC groks 3D Now! inline assembly""... $ac_c" 1>&6
5355 echo "configure:5356: checking if \$CC groks 3D Now! inline assembly" >&5
5356 if eval "test \"`echo '$''{'ac_cv_3dnow_inline'+set}'`\" = set"; then
5357   echo $ac_n "(cached) $ac_c" 1>&6
5358 else
5359   cat > conftest.$ac_ext <<EOF
5360 #line 5361 "configure"
5361 #include "confdefs.h"
5362
5363 int main() {
5364 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
5365 ; return 0; }
5366 EOF
5367 if { (eval echo configure:5368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5368   rm -rf conftest*
5369   ac_cv_3dnow_inline=yes
5370 else
5371   echo "configure: failed program was:" >&5
5372   cat conftest.$ac_ext >&5
5373   rm -rf conftest*
5374   ac_cv_3dnow_inline=no
5375 fi
5376 rm -f conftest*
5377 fi
5378
5379 echo "$ac_t""$ac_cv_3dnow_inline" 1>&6
5380 if test x"$ac_cv_3dnow_inline" != x"no"; then
5381   cat >> confdefs.h <<\EOF
5382 #define CAN_COMPILE_3DNOW 1
5383 EOF
5384
5385   ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
5386 fi
5387
5388 echo $ac_n "checking if \$CC groks SSE inline assembly""... $ac_c" 1>&6
5389 echo "configure:5390: checking if \$CC groks SSE inline assembly" >&5
5390 if eval "test \"`echo '$''{'ac_cv_sse_inline'+set}'`\" = set"; then
5391   echo $ac_n "(cached) $ac_c" 1>&6
5392 else
5393   cat > conftest.$ac_ext <<EOF
5394 #line 5395 "configure"
5395 #include "confdefs.h"
5396
5397 int main() {
5398 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
5399 ; return 0; }
5400 EOF
5401 if { (eval echo configure:5402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5402   rm -rf conftest*
5403   ac_cv_sse_inline=yes
5404 else
5405   echo "configure: failed program was:" >&5
5406   cat conftest.$ac_ext >&5
5407   rm -rf conftest*
5408   ac_cv_sse_inline=no
5409 fi
5410 rm -f conftest*
5411 fi
5412
5413 echo "$ac_t""$ac_cv_sse_inline" 1>&6
5414 if test x"$ac_cv_sse_inline" != x"no"; then
5415   cat >> confdefs.h <<\EOF
5416 #define CAN_COMPILE_SSE 1
5417 EOF
5418
5419   ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
5420 fi
5421
5422 # don't try to grok altivec with native mingw32 it doesn't work right now
5423 # we should be able to remove this test with future versions of mingw32
5424 if test x$SYS != xmingw32; then
5425 echo $ac_n "checking if \$CC groks Altivec inline assembly""... $ac_c" 1>&6
5426 echo "configure:5427: checking if \$CC groks Altivec inline assembly" >&5
5427 if eval "test \"`echo '$''{'ac_cv_altivec_inline'+set}'`\" = set"; then
5428   echo $ac_n "(cached) $ac_c" 1>&6
5429 else
5430   cat > conftest.$ac_ext <<EOF
5431 #line 5432 "configure"
5432 #include "confdefs.h"
5433
5434 int main() {
5435 asm volatile("vperm 0,1,2,3");
5436 ; return 0; }
5437 EOF
5438 if { (eval echo configure:5439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5439   rm -rf conftest*
5440   ac_cv_altivec_inline=yes
5441 else
5442   echo "configure: failed program was:" >&5
5443   cat conftest.$ac_ext >&5
5444   rm -rf conftest*
5445   save_CFLAGS=$CFLAGS
5446           CFLAGS="$CFLAGS -Wa,-m7400"
5447           cat > conftest.$ac_ext <<EOF
5448 #line 5449 "configure"
5449 #include "confdefs.h"
5450
5451 int main() {
5452 asm volatile("vperm 0,1,2,3");
5453 ; return 0; }
5454 EOF
5455 if { (eval echo configure:5456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5456   rm -rf conftest*
5457   ac_cv_altivec_inline="-Wa,-m7400"
5458 else
5459   echo "configure: failed program was:" >&5
5460   cat conftest.$ac_ext >&5
5461   rm -rf conftest*
5462   ac_cv_altivec_inline=no
5463 fi
5464 rm -f conftest*
5465           CFLAGS=$save_CFLAGS
5466          
5467 fi
5468 rm -f conftest*
5469 fi
5470
5471 echo "$ac_t""$ac_cv_altivec_inline" 1>&6
5472 if test x"$ac_cv_altivec_inline" != x"no"; then
5473   cat >> confdefs.h <<\EOF
5474 #define CAN_COMPILE_ALTIVEC 1
5475 EOF
5476
5477   if test x"$ac_cv_altivec_inline" != x"yes"; then
5478     CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline"
5479     CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline"
5480     CFLAGS_MEMCPYALTIVEC="$CFLAGS_MEMCPYALTIVEC $ac_cv_altivec_inline"
5481     CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
5482   fi
5483   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5484 fi
5485
5486 echo $ac_n "checking if \$CC groks Altivec C extensions""... $ac_c" 1>&6
5487 echo "configure:5488: checking if \$CC groks Altivec C extensions" >&5
5488 if eval "test \"`echo '$''{'ac_cv_c_altivec'+set}'`\" = set"; then
5489   echo $ac_n "(cached) $ac_c" 1>&6
5490 else
5491   save_CFLAGS=$CFLAGS
5492      CFLAGS="$CFLAGS -faltivec"
5493      # Darwin test
5494      cat > conftest.$ac_ext <<EOF
5495 #line 5496 "configure"
5496 #include "confdefs.h"
5497
5498 int main() {
5499 vec_mtvscr((vector unsigned int)(0));
5500 ; return 0; }
5501 EOF
5502 if { (eval echo configure:5503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5503   rm -rf conftest*
5504   ac_cv_c_altivec=-faltivec
5505 else
5506   echo "configure: failed program was:" >&5
5507   cat conftest.$ac_ext >&5
5508   rm -rf conftest*
5509   
5510         # Linux/PPC test
5511         CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec"
5512         cat > conftest.$ac_ext <<EOF
5513 #line 5514 "configure"
5514 #include "confdefs.h"
5515
5516 int main() {
5517 vec_mtvscr((vector unsigned int)(0));
5518 ; return 0; }
5519 EOF
5520 if { (eval echo configure:5521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5521   rm -rf conftest*
5522   ac_cv_c_altivec="-fvec"
5523 else
5524   echo "configure: failed program was:" >&5
5525   cat conftest.$ac_ext >&5
5526   rm -rf conftest*
5527   ac_cv_c_altivec=no
5528 fi
5529 rm -f conftest*
5530         
5531 fi
5532 rm -f conftest*
5533      CFLAGS=$save_CFLAGS
5534     
5535 fi
5536
5537 echo "$ac_t""$ac_cv_c_altivec" 1>&6
5538 if test x"$ac_cv_c_altivec" != x"no"; then
5539   cat >> confdefs.h <<\EOF
5540 #define CAN_COMPILE_C_ALTIVEC 1
5541 EOF
5542
5543   CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec"
5544   CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec"
5545   CFLAGS_MEMCPYALTIVEC="$CFLAGS_MEMCPYALTIVEC $ac_cv_c_altivec"
5546   CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
5547   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
5548 fi
5549
5550 echo $ac_n "checking if linker needs -framework vecLib""... $ac_c" 1>&6
5551 echo "configure:5552: checking if linker needs -framework vecLib" >&5
5552 if eval "test \"`echo '$''{'ac_cv_ld_altivec'+set}'`\" = set"; then
5553   echo $ac_n "(cached) $ac_c" 1>&6
5554 else
5555   save_LDFLAGS=$LDFLAGS
5556      LDFLAGS="$LDFLAGS -framework vecLib"
5557      cat > conftest.$ac_ext <<EOF
5558 #line 5559 "configure"
5559 #include "confdefs.h"
5560
5561 int main() {
5562
5563 ; return 0; }
5564 EOF
5565 if { (eval echo configure:5566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5566   rm -rf conftest*
5567   ac_cv_ld_altivec=yes
5568 else
5569   echo "configure: failed program was:" >&5
5570   cat conftest.$ac_ext >&5
5571   rm -rf conftest*
5572   ac_cv_ld_altivec=no
5573 fi
5574 rm -f conftest*
5575      LDFLAGS=$save_LDFLAGS
5576     
5577 fi
5578
5579 echo "$ac_t""$ac_cv_ld_altivec" 1>&6
5580 if test x"$ac_cv_ld_altivec" != x"no"; then
5581   LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib"
5582   LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib"
5583   LIB_MEMCPYALTIVEC="${LIB_MEMCPYALTIVEC} -framework vecLib"
5584   LIB_VLC="${LIB_VLC} -framework vecLib"
5585 fi
5586 fi # end if mingw32
5587
5588
5589 # Check whether --with- or --without- was given.
5590 if test "${with_+set}" = set; then
5591   withval="$with_"
5592   :
5593 fi
5594
5595 # Check whether --with- or --without- was given.
5596 if test "${with_+set}" = set; then
5597   withval="$with_"
5598   :
5599 fi
5600
5601
5602 # Check whether --with-tuning or --without-tuning was given.
5603 if test "${with_tuning+set}" = set; then
5604   withval="$with_tuning"
5605   :
5606 fi
5607
5608 if test "x$withval" != "x"; then
5609     TUNING=$withval
5610 else
5611     if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
5612     else
5613         if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
5614     fi
5615 fi
5616
5617 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
5618 then
5619     ARCH="${ARCH} mmx"
5620     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
5621 fi
5622
5623 # Check whether --enable-optimizations or --disable-optimizations was given.
5624 if test "${enable_optimizations+set}" = set; then
5625   enableval="$enable_optimizations"
5626    if test x$enableval = xno; then OPTIMS=0; fi 
5627 else
5628    OPTIMS=1 
5629 fi
5630
5631
5632 # Check whether --enable-altivec or --disable-altivec was given.
5633 if test "${enable_altivec+set}" = set; then
5634   enableval="$enable_altivec"
5635    if test x$enableval = xyes; then ARCH="${ARCH} altivec";
5636     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
5637 else
5638    if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
5639     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi 
5640 fi
5641
5642
5643 DEBUG=0
5644 # Check whether --enable-debug or --disable-debug was given.
5645 if test "${enable_debug+set}" = set; then
5646   enableval="$enable_debug"
5647    if test x$enableval = xyes; then DEBUG=1; fi 
5648 fi
5649
5650
5651 # Check whether --enable-release or --disable-release was given.
5652 if test "${enable_release+set}" = set; then
5653   enableval="$enable_release"
5654    if test x$enableval = xyes; then RELEASE=1; fi 
5655 else
5656    VERSION="${VERSION}_`date +%Y-%m-%d`" 
5657 fi
5658
5659
5660
5661 # Check whether --with- or --without- was given.
5662 if test "${with_+set}" = set; then
5663   withval="$with_"
5664   :
5665 fi
5666
5667
5668 # Check whether --enable-dvd or --disable-dvd was given.
5669 if test "${enable_dvd+set}" = set; then
5670   enableval="$enable_dvd"
5671   :
5672 fi
5673
5674 if test "x$enableval" != "xno"
5675 then
5676   # Check whether --with-dvdcss or --without-dvdcss was given.
5677 if test "${with_dvdcss+set}" = set; then
5678   withval="$with_dvdcss"
5679   :
5680 fi
5681
5682   # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
5683 if test "${with_dvdcss_tree+set}" = set; then
5684   withval="$with_dvdcss_tree"
5685   :
5686 fi
5687
5688   case "x$with_dvdcss" in
5689   x|xyes)
5690     if test "x$with_dvdcss_tree" = x
5691     then
5692       for ac_hdr in dvdcss/dvdcss.h
5693 do
5694 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5696 echo "configure:5697: checking for $ac_hdr" >&5
5697 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5698   echo $ac_n "(cached) $ac_c" 1>&6
5699 else
5700   cat > conftest.$ac_ext <<EOF
5701 #line 5702 "configure"
5702 #include "confdefs.h"
5703 #include <$ac_hdr>
5704 EOF
5705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5706 { (eval echo configure:5707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5708 if test -z "$ac_err"; then
5709   rm -rf conftest*
5710   eval "ac_cv_header_$ac_safe=yes"
5711 else
5712   echo "$ac_err" >&5
5713   echo "configure: failed program was:" >&5
5714   cat conftest.$ac_ext >&5
5715   rm -rf conftest*
5716   eval "ac_cv_header_$ac_safe=no"
5717 fi
5718 rm -f conftest*
5719 fi
5720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5721   echo "$ac_t""yes" 1>&6
5722     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5723   cat >> confdefs.h <<EOF
5724 #define $ac_tr_hdr 1
5725 EOF
5726   PLUGINS="${PLUGINS} dvd"
5727           LIB_DVD="${LIB_DVD} -ldvdcss" 
5728 else
5729   echo "$ac_t""no" 1>&6
5730 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
5731           { echo "configure: error: cannot find libdvdcss headers" 1>&2; exit 1; } 
5732 fi
5733 done
5734
5735     else
5736       echo $ac_n "checking for libdvdcss.a in ${with_dvdcss_tree}""... $ac_c" 1>&6
5737 echo "configure:5738: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
5738       real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
5739       if test "x$real_dvdcss_tree" = x
5740       then
5741                 echo "$ac_t""no" 1>&6
5742         { echo "configure: error: cannot cd to ${with_dvdcss_tree}" 1>&2; exit 1; }
5743       fi
5744       if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5745       then
5746                 echo "$ac_t""${real_dvdcss_tree}/src/.libs/libdvdcss.a" 1>&6
5747         BUILTINS="${BUILTINS} dvd"
5748         LIB_DVD="${LIB_DVD} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
5749         CFLAGS_DVD="${CFLAGS_DVD} -I${real_dvdcss_tree}/src"
5750       else
5751                 echo "$ac_t""no" 1>&6
5752         { 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; }
5753       fi
5754     fi
5755   ;;
5756   xno)
5757         PLUGINS="${PLUGINS} dvd"
5758     CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA"
5759     LIB_DVD="${LIB_DVD} -ldl"
5760   ;;
5761   *)
5762     echo $ac_n "checking for dvdcss headers in ${with_dvdcss}""... $ac_c" 1>&6
5763 echo "configure:5764: checking for dvdcss headers in ${with_dvdcss}" >&5
5764     if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
5765     then
5766             echo "$ac_t""yes" 1>&6
5767       PLUGINS="${PLUGINS} dvd"
5768       LIB_DVD="${LIB_DVD} -L${with_dvdcss}/lib -ldvdcss"
5769       CFLAGS_DVD="${CFLAGS_DVD} -I${with_dvdcss}/include"
5770     else
5771             echo "$ac_t""no" 1>&6
5772       { echo "configure: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" 1>&2; exit 1; }
5773     fi
5774   ;;
5775   esac
5776 fi
5777
5778 # Check whether --enable-dvdread or --disable-dvdread was given.
5779 if test "${enable_dvdread+set}" = set; then
5780   enableval="$enable_dvdread"
5781   :
5782 fi
5783
5784 if test "x$enableval" != "xno"
5785 then
5786   # Check whether --with-dvdread or --without-dvdread was given.
5787 if test "${with_dvdread+set}" = set; then
5788   withval="$with_dvdread"
5789   :
5790 fi
5791
5792   case "x$with_dvdread" in
5793   x)
5794     for ac_hdr in dvdread/dvd_reader.h
5795 do
5796 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5797 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5798 echo "configure:5799: checking for $ac_hdr" >&5
5799 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5800   echo $ac_n "(cached) $ac_c" 1>&6
5801 else
5802   cat > conftest.$ac_ext <<EOF
5803 #line 5804 "configure"
5804 #include "confdefs.h"
5805 #include <$ac_hdr>
5806 EOF
5807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5808 { (eval echo configure:5809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5810 if test -z "$ac_err"; then
5811   rm -rf conftest*
5812   eval "ac_cv_header_$ac_safe=yes"
5813 else
5814   echo "$ac_err" >&5
5815   echo "configure: failed program was:" >&5
5816   cat conftest.$ac_ext >&5
5817   rm -rf conftest*
5818   eval "ac_cv_header_$ac_safe=no"
5819 fi
5820 rm -f conftest*
5821 fi
5822 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5823   echo "$ac_t""yes" 1>&6
5824     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5825   cat >> confdefs.h <<EOF
5826 #define $ac_tr_hdr 1
5827 EOF
5828   PLUGINS="${PLUGINS} dvdread"
5829         LIB_DVDREAD="${LIB_DVDREAD} -ldvdread" 
5830 else
5831   echo "$ac_t""no" 1>&6
5832 fi
5833 done
5834
5835   ;;
5836   *)
5837     echo $ac_n "checking for dvdread headers in ${withval}""... $ac_c" 1>&6
5838 echo "configure:5839: checking for dvdread headers in ${withval}" >&5
5839     if test -f ${withval}/include/dvdread/dvd_reader.h
5840     then
5841       echo "$ac_t""yes" 1>&6
5842       PLUGINS="${PLUGINS} dvdread"
5843       LIB_DVDREAD="${LIB_DVDREAD} -L${withval}/lib -ldvdread"
5844       CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I${withval}/include"
5845     else
5846       echo "$ac_t""no" 1>&6
5847       { echo "configure: error: Cannot find ${withval}/dvdread/dvd_reader.h" 1>&2; exit 1; }
5848     fi
5849   ;;
5850   esac
5851 fi
5852
5853 # Check whether --enable-vcd or --disable-vcd was given.
5854 if test "${enable_vcd+set}" = set; then
5855   enableval="$enable_vcd"
5856   :
5857 fi
5858
5859
5860 if test x$enable_vcd != xno
5861 then
5862   cat > conftest.$ac_ext <<EOF
5863 #line 5864 "configure"
5864 #include "confdefs.h"
5865 #include <linux/cdrom.h>
5866 EOF
5867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5868   egrep "cdrom_msf0" >/dev/null 2>&1; then
5869   rm -rf conftest*
5870   
5871     PLUGINS="${PLUGINS} vcd"
5872   
5873 fi
5874 rm -f conftest*
5875
5876
5877   if test "x${SYS}" = "xbsdi"
5878   then
5879     PLUGINS="${PLUGINS} vcd"
5880   fi
5881
5882   if test "x${SYS}" = "xdarwin"
5883   then
5884     PLUGINS="${PLUGINS} vcd"
5885     LIB_VCD="${LIB_VCD} -framework IOKit -framework CoreFoundation" 
5886   fi
5887 fi
5888
5889 # Check whether --enable-satellite or --disable-satellite was given.
5890 if test "${enable_satellite+set}" = set; then
5891   enableval="$enable_satellite"
5892    if test x$enable_satellite = xyes
5893     then
5894       BUILTINS="${BUILTINS} satellite"
5895       cat >> confdefs.h <<\EOF
5896 #define HAVE_SATELLITE 1
5897 EOF
5898
5899     fi
5900 fi
5901
5902
5903 echo $ac_n "checking for inet_pton""... $ac_c" 1>&6
5904 echo "configure:5905: checking for inet_pton" >&5
5905 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then
5906   echo $ac_n "(cached) $ac_c" 1>&6
5907 else
5908   cat > conftest.$ac_ext <<EOF
5909 #line 5910 "configure"
5910 #include "confdefs.h"
5911 /* System header to define __stub macros and hopefully few prototypes,
5912     which can conflict with char inet_pton(); below.  */
5913 #include <assert.h>
5914 /* Override any gcc2 internal prototype to avoid an error.  */
5915 /* We use char because int might match the return type of a gcc2
5916     builtin and then its argument prototype would still apply.  */
5917 char inet_pton();
5918
5919 int main() {
5920
5921 /* The GNU C library defines this for functions which it implements
5922     to always fail with ENOSYS.  Some functions are actually named
5923     something starting with __ and the normal name is an alias.  */
5924 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
5925 choke me
5926 #else
5927 inet_pton();
5928 #endif
5929
5930 ; return 0; }
5931 EOF
5932 if { (eval echo configure:5933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5933   rm -rf conftest*
5934   eval "ac_cv_func_inet_pton=yes"
5935 else
5936   echo "configure: failed program was:" >&5
5937   cat conftest.$ac_ext >&5
5938   rm -rf conftest*
5939   eval "ac_cv_func_inet_pton=no"
5940 fi
5941 rm -f conftest*
5942 fi
5943
5944 if eval "test \"`echo '$ac_cv_func_'inet_pton`\" = yes"; then
5945   echo "$ac_t""yes" 1>&6
5946   PLUGINS="${PLUGINS} ipv6"
5947 else
5948   echo "$ac_t""no" 1>&6
5949 fi
5950
5951
5952
5953 # Check whether --with- or --without- was given.
5954 if test "${with_+set}" = set; then
5955   withval="$with_"
5956   :
5957 fi
5958
5959
5960 # Check whether --enable-mad or --disable-mad was given.
5961 if test "${enable_mad+set}" = set; then
5962   enableval="$enable_mad"
5963   :
5964 fi
5965
5966 if test x$enable_mad = xyes
5967 then
5968   PLUGINS="${PLUGINS} mad"
5969   LIB_MAD="${LIB_MAD} -lmad"
5970   # Check whether --with-mad or --without-mad was given.
5971 if test "${with_mad+set}" = set; then
5972   withval="$with_mad"
5973    if test "x$with_val" != "xno" -a "x$with_val" != "x"
5974       then
5975         CFLAGS_MAD="${CFLAGS_MAD} -I$with_val/include"
5976         LIB_MAD="${LIB_MAD} -L$with_val/lib"
5977       fi 
5978 fi
5979
5980   save_CFLAGS=$CFLAGS
5981   save_LDFLAGS=$LDFLAGS
5982   CFLAGS="$CFLAGS $CFLAGS_MAD"
5983   LDFLAGS="$LDFLAGS $LIB_MAD"
5984   for ac_hdr in mad.h
5985 do
5986 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5987 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5988 echo "configure:5989: checking for $ac_hdr" >&5
5989 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5990   echo $ac_n "(cached) $ac_c" 1>&6
5991 else
5992   cat > conftest.$ac_ext <<EOF
5993 #line 5994 "configure"
5994 #include "confdefs.h"
5995 #include <$ac_hdr>
5996 EOF
5997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5998 { (eval echo configure:5999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5999 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6000 if test -z "$ac_err"; then
6001   rm -rf conftest*
6002   eval "ac_cv_header_$ac_safe=yes"
6003 else
6004   echo "$ac_err" >&5
6005   echo "configure: failed program was:" >&5
6006   cat conftest.$ac_ext >&5
6007   rm -rf conftest*
6008   eval "ac_cv_header_$ac_safe=no"
6009 fi
6010 rm -f conftest*
6011 fi
6012 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6013   echo "$ac_t""yes" 1>&6
6014     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6015   cat >> confdefs.h <<EOF
6016 #define $ac_tr_hdr 1
6017 EOF
6018  
6019 else
6020   echo "$ac_t""no" 1>&6
6021 echo "Cannot find development headers for libmad..."
6022     exit 1
6023   
6024 fi
6025 done
6026
6027   echo $ac_n "checking for mad_bit_init in -lmad""... $ac_c" 1>&6
6028 echo "configure:6029: checking for mad_bit_init in -lmad" >&5
6029 ac_lib_var=`echo mad'_'mad_bit_init | sed 'y%./+-%__p_%'`
6030 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6031   echo $ac_n "(cached) $ac_c" 1>&6
6032 else
6033   ac_save_LIBS="$LIBS"
6034 LIBS="-lmad  $LIBS"
6035 cat > conftest.$ac_ext <<EOF
6036 #line 6037 "configure"
6037 #include "confdefs.h"
6038 /* Override any gcc2 internal prototype to avoid an error.  */
6039 /* We use char because int might match the return type of a gcc2
6040     builtin and then its argument prototype would still apply.  */
6041 char mad_bit_init();
6042
6043 int main() {
6044 mad_bit_init()
6045 ; return 0; }
6046 EOF
6047 if { (eval echo configure:6048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6048   rm -rf conftest*
6049   eval "ac_cv_lib_$ac_lib_var=yes"
6050 else
6051   echo "configure: failed program was:" >&5
6052   cat conftest.$ac_ext >&5
6053   rm -rf conftest*
6054   eval "ac_cv_lib_$ac_lib_var=no"
6055 fi
6056 rm -f conftest*
6057 LIBS="$ac_save_LIBS"
6058
6059 fi
6060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6061   echo "$ac_t""yes" 1>&6
6062     ac_tr_lib=HAVE_LIB`echo mad | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6063     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6064   cat >> confdefs.h <<EOF
6065 #define $ac_tr_lib 1
6066 EOF
6067
6068   LIBS="-lmad $LIBS"
6069
6070 else
6071   echo "$ac_t""no" 1>&6
6072  echo "Cannot find libmad library..."
6073     exit 1
6074   
6075 fi
6076
6077   CFLAGS=$save_CFLAGS
6078   LDFLAGS=$save_LDFLAGS
6079 fi
6080
6081 if test x$SYS = xbeos
6082 then
6083     PLUGINS="${PLUGINS} beos"
6084
6085 else
6086
6087 # Check whether --enable-a52 or --disable-a52 was given.
6088 if test "${enable_a52+set}" = set; then
6089   enableval="$enable_a52"
6090   :
6091 fi
6092
6093 if test "x$enableval" != "xno" -a x$SYS != xmingw32
6094   then
6095     for ac_hdr in a52dec/a52.h
6096 do
6097 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6098 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6099 echo "configure:6100: checking for $ac_hdr" >&5
6100 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6101   echo $ac_n "(cached) $ac_c" 1>&6
6102 else
6103   cat > conftest.$ac_ext <<EOF
6104 #line 6105 "configure"
6105 #include "confdefs.h"
6106 #include <$ac_hdr>
6107 EOF
6108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6109 { (eval echo configure:6110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6111 if test -z "$ac_err"; then
6112   rm -rf conftest*
6113   eval "ac_cv_header_$ac_safe=yes"
6114 else
6115   echo "$ac_err" >&5
6116   echo "configure: failed program was:" >&5
6117   cat conftest.$ac_ext >&5
6118   rm -rf conftest*
6119   eval "ac_cv_header_$ac_safe=no"
6120 fi
6121 rm -f conftest*
6122 fi
6123 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6124   echo "$ac_t""yes" 1>&6
6125     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6126   cat >> confdefs.h <<EOF
6127 #define $ac_tr_hdr 1
6128 EOF
6129  
6130       BUILTINS="${BUILTINS} a52"
6131       LIB_A52="${LIB_A52} -la52 -lm"
6132      
6133 else
6134   echo "$ac_t""no" 1>&6
6135 fi
6136 done
6137
6138 fi
6139
6140 # Check whether --enable-vorbis or --disable-vorbis was given.
6141 if test "${enable_vorbis+set}" = set; then
6142   enableval="$enable_vorbis"
6143   :
6144 fi
6145
6146 if test "x$enableval" != "xno"
6147 then
6148   for ac_hdr in ogg/ogg.h
6149 do
6150 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6151 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6152 echo "configure:6153: checking for $ac_hdr" >&5
6153 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6154   echo $ac_n "(cached) $ac_c" 1>&6
6155 else
6156   cat > conftest.$ac_ext <<EOF
6157 #line 6158 "configure"
6158 #include "confdefs.h"
6159 #include <$ac_hdr>
6160 EOF
6161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6162 { (eval echo configure:6163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6163 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6164 if test -z "$ac_err"; then
6165   rm -rf conftest*
6166   eval "ac_cv_header_$ac_safe=yes"
6167 else
6168   echo "$ac_err" >&5
6169   echo "configure: failed program was:" >&5
6170   cat conftest.$ac_ext >&5
6171   rm -rf conftest*
6172   eval "ac_cv_header_$ac_safe=no"
6173 fi
6174 rm -f conftest*
6175 fi
6176 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6177   echo "$ac_t""yes" 1>&6
6178     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6179   cat >> confdefs.h <<EOF
6180 #define $ac_tr_hdr 1
6181 EOF
6182  
6183     PLUGINS="${PLUGINS} vorbis"
6184     LIB_VORBIS="${LIB_VORBIS} -lvorbis"
6185    
6186 else
6187   echo "$ac_t""no" 1>&6
6188 fi
6189 done
6190
6191 fi
6192
6193
6194 # Check whether --with- or --without- was given.
6195 if test "${with_+set}" = set; then
6196   withval="$with_"
6197   :
6198 fi
6199
6200
6201 # Check whether --enable-x11 or --disable-x11 was given.
6202 if test "${enable_x11+set}" = set; then
6203   enableval="$enable_x11"
6204   :
6205 fi
6206
6207 if test x$enable_x11 != xno &&
6208   (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
6209   if test x$x_includes = xNONE; then
6210     x_includes=/usr/X11R6/include
6211   fi
6212   if test x$x_libraries = xNONE; then
6213     x_libraries=/usr/X11R6/lib
6214   fi
6215   saved_CPPFLAGS=$CPPFLAGS
6216   CPPFLAGS="$CPPFLAGS -I$x_includes"
6217   for ac_hdr in X11/Xlib.h
6218 do
6219 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6221 echo "configure:6222: checking for $ac_hdr" >&5
6222 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6223   echo $ac_n "(cached) $ac_c" 1>&6
6224 else
6225   cat > conftest.$ac_ext <<EOF
6226 #line 6227 "configure"
6227 #include "confdefs.h"
6228 #include <$ac_hdr>
6229 EOF
6230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6231 { (eval echo configure:6232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6233 if test -z "$ac_err"; then
6234   rm -rf conftest*
6235   eval "ac_cv_header_$ac_safe=yes"
6236 else
6237   echo "$ac_err" >&5
6238   echo "configure: failed program was:" >&5
6239   cat conftest.$ac_ext >&5
6240   rm -rf conftest*
6241   eval "ac_cv_header_$ac_safe=no"
6242 fi
6243 rm -f conftest*
6244 fi
6245 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6246   echo "$ac_t""yes" 1>&6
6247     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6248   cat >> confdefs.h <<EOF
6249 #define $ac_tr_hdr 1
6250 EOF
6251  
6252     PLUGINS="${PLUGINS} x11"
6253     LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
6254     CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
6255   
6256 else
6257   echo "$ac_t""no" 1>&6
6258 fi
6259 done
6260
6261   CPPFLAGS=$saved_CPPFLAGS
6262 fi
6263
6264 # Check whether --enable-xvideo or --disable-xvideo was given.
6265 if test "${enable_xvideo+set}" = set; then
6266   enableval="$enable_xvideo"
6267   :
6268 fi
6269
6270 if test x$enable_xvideo != xno &&
6271   (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
6272   if test x$x_includes = xNONE; then
6273     x_includes=/usr/X11R6/include
6274   fi
6275   if test x$x_libraries = xNONE; then
6276     x_libraries=/usr/X11R6/lib
6277   fi
6278   saved_CPPFLAGS=$CPPFLAGS
6279   CPPFLAGS="$CPPFLAGS -I$x_includes"
6280   for ac_hdr in X11/extensions/Xv.h
6281 do
6282 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6283 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6284 echo "configure:6285: checking for $ac_hdr" >&5
6285 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6286   echo $ac_n "(cached) $ac_c" 1>&6
6287 else
6288   cat > conftest.$ac_ext <<EOF
6289 #line 6290 "configure"
6290 #include "confdefs.h"
6291 #include <$ac_hdr>
6292 EOF
6293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6294 { (eval echo configure:6295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6296 if test -z "$ac_err"; then
6297   rm -rf conftest*
6298   eval "ac_cv_header_$ac_safe=yes"
6299 else
6300   echo "$ac_err" >&5
6301   echo "configure: failed program was:" >&5
6302   cat conftest.$ac_ext >&5
6303   rm -rf conftest*
6304   eval "ac_cv_header_$ac_safe=no"
6305 fi
6306 rm -f conftest*
6307 fi
6308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6309   echo "$ac_t""yes" 1>&6
6310     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6311   cat >> confdefs.h <<EOF
6312 #define $ac_tr_hdr 1
6313 EOF
6314  
6315     saved_CFLAGS=$CFLAGS
6316     CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
6317     echo $ac_n "checking for XvSetPortAttribute in -lXv_pic""... $ac_c" 1>&6
6318 echo "configure:6319: checking for XvSetPortAttribute in -lXv_pic" >&5
6319 ac_lib_var=`echo Xv_pic'_'XvSetPortAttribute | sed 'y%./+-%__p_%'`
6320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6321   echo $ac_n "(cached) $ac_c" 1>&6
6322 else
6323   ac_save_LIBS="$LIBS"
6324 LIBS="-lXv_pic  $LIBS"
6325 cat > conftest.$ac_ext <<EOF
6326 #line 6327 "configure"
6327 #include "confdefs.h"
6328 /* Override any gcc2 internal prototype to avoid an error.  */
6329 /* We use char because int might match the return type of a gcc2
6330     builtin and then its argument prototype would still apply.  */
6331 char XvSetPortAttribute();
6332
6333 int main() {
6334 XvSetPortAttribute()
6335 ; return 0; }
6336 EOF
6337 if { (eval echo configure:6338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6338   rm -rf conftest*
6339   eval "ac_cv_lib_$ac_lib_var=yes"
6340 else
6341   echo "configure: failed program was:" >&5
6342   cat conftest.$ac_ext >&5
6343   rm -rf conftest*
6344   eval "ac_cv_lib_$ac_lib_var=no"
6345 fi
6346 rm -f conftest*
6347 LIBS="$ac_save_LIBS"
6348
6349 fi
6350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6351   echo "$ac_t""yes" 1>&6
6352   # We have Xv_pic, that's good, we can build an xvideo.so plugin !
6353       PLUGINS="${PLUGINS} xvideo"
6354       LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv_pic"
6355       CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
6356 else
6357   echo "$ac_t""no" 1>&6
6358 # We don't have Xv_pic, let's make xvideo.a as builtin
6359       BUILTINS="${BUILTINS} xvideo"
6360       LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
6361       CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes"
6362 fi
6363
6364     CFLAGS=$saved_CFLAGS
6365   
6366   CPPFLAGS=$saved_CPPFLAGS
6367 else
6368   echo "$ac_t""no" 1>&6
6369 fi
6370 done
6371
6372 fi
6373
6374 # Check whether --enable-sdl or --disable-sdl was given.
6375 if test "${enable_sdl+set}" = set; then
6376   enableval="$enable_sdl"
6377   :
6378 fi
6379
6380 if test "x$enable_sdl" != "xno"
6381 then
6382   SDL_PATH=$PATH
6383   # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
6384 if test "${with_sdl_config_path+set}" = set; then
6385   withval="$with_sdl_config_path"
6386    if test "x$withval" != "xno"
6387       then
6388         SDL_PATH=$withval:$PATH
6389       fi 
6390 fi
6391
6392   # Extract the first word of "sdl12-config", so it can be a program name with args.
6393 set dummy sdl12-config; ac_word=$2
6394 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6395 echo "configure:6396: checking for $ac_word" >&5
6396 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
6397   echo $ac_n "(cached) $ac_c" 1>&6
6398 else
6399   case "$SDL12_CONFIG" in
6400   /*)
6401   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
6402   ;;
6403   ?:/*)                  
6404   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a dos path.
6405   ;;
6406   *)
6407   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6408   ac_dummy="$SDL_PATH"
6409   for ac_dir in $ac_dummy; do 
6410     test -z "$ac_dir" && ac_dir=.
6411     if test -f $ac_dir/$ac_word; then
6412       ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
6413       break
6414     fi
6415   done
6416   IFS="$ac_save_ifs"
6417   test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
6418   ;;
6419 esac
6420 fi
6421 SDL12_CONFIG="$ac_cv_path_SDL12_CONFIG"
6422 if test -n "$SDL12_CONFIG"; then
6423   echo "$ac_t""$SDL12_CONFIG" 1>&6
6424 else
6425   echo "$ac_t""no" 1>&6
6426 fi
6427
6428   SDL_CONFIG=${SDL12_CONFIG}
6429   SDL_HEADER="SDL12/SDL.h"
6430   if test x${SDL_CONFIG} = xno
6431   then
6432     # Extract the first word of "sdl11-config", so it can be a program name with args.
6433 set dummy sdl11-config; ac_word=$2
6434 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6435 echo "configure:6436: checking for $ac_word" >&5
6436 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
6437   echo $ac_n "(cached) $ac_c" 1>&6
6438 else
6439   case "$SDL11_CONFIG" in
6440   /*)
6441   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
6442   ;;
6443   ?:/*)                  
6444   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a dos path.
6445   ;;
6446   *)
6447   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6448   ac_dummy="$SDL_PATH"
6449   for ac_dir in $ac_dummy; do 
6450     test -z "$ac_dir" && ac_dir=.
6451     if test -f $ac_dir/$ac_word; then
6452       ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
6453       break
6454     fi
6455   done
6456   IFS="$ac_save_ifs"
6457   test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
6458   ;;
6459 esac
6460 fi
6461 SDL11_CONFIG="$ac_cv_path_SDL11_CONFIG"
6462 if test -n "$SDL11_CONFIG"; then
6463   echo "$ac_t""$SDL11_CONFIG" 1>&6
6464 else
6465   echo "$ac_t""no" 1>&6
6466 fi
6467
6468     SDL_CONFIG=${SDL11_CONFIG}
6469     SDL_HEADER="SDL11/SDL.h"
6470   fi
6471   if test x${SDL_CONFIG} = xno
6472   then
6473     # Extract the first word of "sdl-config", so it can be a program name with args.
6474 set dummy sdl-config; ac_word=$2
6475 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6476 echo "configure:6477: checking for $ac_word" >&5
6477 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
6478   echo $ac_n "(cached) $ac_c" 1>&6
6479 else
6480   case "$SDL_CONFIG" in
6481   /*)
6482   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6483   ;;
6484   ?:/*)                  
6485   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
6486   ;;
6487   *)
6488   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6489   ac_dummy="$SDL_PATH"
6490   for ac_dir in $ac_dummy; do 
6491     test -z "$ac_dir" && ac_dir=.
6492     if test -f $ac_dir/$ac_word; then
6493       ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
6494       break
6495     fi
6496   done
6497   IFS="$ac_save_ifs"
6498   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
6499   ;;
6500 esac
6501 fi
6502 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
6503 if test -n "$SDL_CONFIG"; then
6504   echo "$ac_t""$SDL_CONFIG" 1>&6
6505 else
6506   echo "$ac_t""no" 1>&6
6507 fi
6508
6509     SDL_HEADER="SDL/SDL.h"
6510   fi
6511   if test x${SDL_CONFIG} != xno
6512   then
6513     PLUGINS="${PLUGINS} sdl"
6514     CFLAGS_SDL="${CFLAGS_SDL} `${SDL_CONFIG} --cflags`"
6515     LIB_SDL="${LIB_SDL} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
6516     save_CPPFLAGS=$CPPFLAGS
6517     CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
6518     for ac_hdr in ${SDL_HEADER}
6519 do
6520 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6521 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6522 echo "configure:6523: checking for $ac_hdr" >&5
6523 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6524   echo $ac_n "(cached) $ac_c" 1>&6
6525 else
6526   cat > conftest.$ac_ext <<EOF
6527 #line 6528 "configure"
6528 #include "confdefs.h"
6529 #include <$ac_hdr>
6530 EOF
6531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6532 { (eval echo configure:6533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6533 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6534 if test -z "$ac_err"; then
6535   rm -rf conftest*
6536   eval "ac_cv_header_$ac_safe=yes"
6537 else
6538   echo "$ac_err" >&5
6539   echo "configure: failed program was:" >&5
6540   cat conftest.$ac_ext >&5
6541   rm -rf conftest*
6542   eval "ac_cv_header_$ac_safe=no"
6543 fi
6544 rm -f conftest*
6545 fi
6546 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6547   echo "$ac_t""yes" 1>&6
6548     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6549   cat >> confdefs.h <<EOF
6550 #define $ac_tr_hdr 1
6551 EOF
6552  cat >> confdefs.h <<EOF
6553 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
6554 EOF
6555
6556 else
6557   echo "$ac_t""no" 1>&6
6558 { echo "configure: error: The development package for SDL is not installed. 
6559 Please install it and try again. Alternatively you can also configure with 
6560 --disable-sdl." 1>&2; exit 1; }
6561       
6562 fi
6563 done
6564
6565     CPPFLAGS=$save_CPPFLAGS
6566     if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
6567     then
6568       { echo "configure: error: The development package for SDL is not installed.
6569 Please install it and try again. Alternatively you can also configure with
6570 --disable-sdl." 1>&2; exit 1; }
6571     fi
6572   elif test "x$enable_sdl" =  "xyes"
6573   then
6574     { echo "configure: error: I couldn't find the SDL package. You can download libSDL
6575 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
6576     " 1>&2; exit 1; }
6577   fi
6578 fi
6579
6580 # Check whether --enable-directx or --disable-directx was given.
6581 if test "${enable_directx+set}" = set; then
6582   enableval="$enable_directx"
6583   :
6584 fi
6585
6586 if test "x$enableval" != "xno"
6587 then
6588   if test x$SYS = xmingw32
6589   then
6590     # Check whether --with-directx or --without-directx was given.
6591 if test "${with_directx+set}" = set; then
6592   withval="$with_directx"
6593   :
6594 fi
6595
6596     if test "x$with_directx" = "x"
6597     then
6598       for ac_hdr in ddraw.h
6599 do
6600 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6601 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6602 echo "configure:6603: checking for $ac_hdr" >&5
6603 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6604   echo $ac_n "(cached) $ac_c" 1>&6
6605 else
6606   cat > conftest.$ac_ext <<EOF
6607 #line 6608 "configure"
6608 #include "confdefs.h"
6609 #include <$ac_hdr>
6610 EOF
6611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6612 { (eval echo configure:6613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6614 if test -z "$ac_err"; then
6615   rm -rf conftest*
6616   eval "ac_cv_header_$ac_safe=yes"
6617 else
6618   echo "$ac_err" >&5
6619   echo "configure: failed program was:" >&5
6620   cat conftest.$ac_ext >&5
6621   rm -rf conftest*
6622   eval "ac_cv_header_$ac_safe=no"
6623 fi
6624 rm -f conftest*
6625 fi
6626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6627   echo "$ac_t""yes" 1>&6
6628     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6629   cat >> confdefs.h <<EOF
6630 #define $ac_tr_hdr 1
6631 EOF
6632   PLUGINS="${PLUGINS} directx"
6633         LIB_DIRECTX="${LIB_DIRECTX} -lgdi32" 
6634 else
6635   echo "$ac_t""no" 1>&6
6636 fi
6637 done
6638
6639     else
6640       echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
6641 echo "configure:6642: checking for directX headers in ${withval}" >&5
6642       if test -f ${withval}/ddraw.h
6643       then
6644         PLUGINS="${PLUGINS} directx"
6645         LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32"
6646         INCLUDE="${INCLUDE} -I${withval}"
6647         echo "$ac_t""yes" 1>&6
6648       else
6649         echo "$ac_t""no" 1>&6
6650         { echo "configure: error: Cannot find ${withval}/ddraw.h!" 1>&2; exit 1; }
6651       fi
6652     fi
6653   fi
6654 fi
6655
6656 # Check whether --enable-fb or --disable-fb was given.
6657 if test "${enable_fb+set}" = set; then
6658   enableval="$enable_fb"
6659   :
6660 fi
6661
6662     if test x$enable_fb != xno
6663     then
6664       for ac_hdr in linux/fb.h
6665 do
6666 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6668 echo "configure:6669: checking for $ac_hdr" >&5
6669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6670   echo $ac_n "(cached) $ac_c" 1>&6
6671 else
6672   cat > conftest.$ac_ext <<EOF
6673 #line 6674 "configure"
6674 #include "confdefs.h"
6675 #include <$ac_hdr>
6676 EOF
6677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6678 { (eval echo configure:6679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6680 if test -z "$ac_err"; then
6681   rm -rf conftest*
6682   eval "ac_cv_header_$ac_safe=yes"
6683 else
6684   echo "$ac_err" >&5
6685   echo "configure: failed program was:" >&5
6686   cat conftest.$ac_ext >&5
6687   rm -rf conftest*
6688   eval "ac_cv_header_$ac_safe=no"
6689 fi
6690 rm -f conftest*
6691 fi
6692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6693   echo "$ac_t""yes" 1>&6
6694     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6695   cat >> confdefs.h <<EOF
6696 #define $ac_tr_hdr 1
6697 EOF
6698  
6699         PLUGINS="${PLUGINS} fb"
6700       
6701 else
6702   echo "$ac_t""no" 1>&6
6703 fi
6704 done
6705
6706     fi
6707
6708 # Check whether --enable-mga or --disable-mga was given.
6709 if test "${enable_mga+set}" = set; then
6710   enableval="$enable_mga"
6711    if test x$enable_mga = xyes
6712     then
6713       PLUGINS="${PLUGINS} mga xmga"
6714     fi 
6715 fi
6716
6717
6718 # Check whether --enable-ggi or --disable-ggi was given.
6719 if test "${enable_ggi+set}" = set; then
6720   enableval="$enable_ggi"
6721   :
6722 fi
6723
6724 if test x$enable_ggi = xyes
6725 then
6726   PLUGINS="${PLUGINS} ggi"
6727   LIB_GGI="${LIB_GGI} -lggi"
6728   # Check whether --with-ggi or --without-ggi was given.
6729 if test "${with_ggi+set}" = set; then
6730   withval="$with_ggi"
6731    if test "x$with_val" != "xno" -a "x$with_val" != "x"
6732       then
6733         CFLAGS_GGI="${CFLAGS_GGI} -I$with_val/include"
6734         LIB_GGI="${LIB_GGI} -L$with_val/lib"
6735       fi 
6736 fi
6737
6738 fi
6739
6740 # Check whether --enable-glide or --disable-glide was given.
6741 if test "${enable_glide+set}" = set; then
6742   enableval="$enable_glide"
6743   :
6744 fi
6745
6746 if test x$enable_glide = xyes
6747 then
6748   PLUGINS="${PLUGINS} glide"
6749   LIB_GLIDE="${LIB_GLIDE} -lglide2x -lm"
6750   CFLAGS_GLIDE="${CFLAGS_GLIDE} -I/usr/include/glide"
6751   # Check whether --with-glide or --without-glide was given.
6752 if test "${with_glide+set}" = set; then
6753   withval="$with_glide"
6754    if test "x$with_val" != "xno" -a "x$with_val" != "x"
6755       then
6756         CFLAGS_GLIDE="${CFLAGS_GLIDE} -I$with_val/include"
6757         LIB_GLIDE="${LIB_GLIDE} -L$with_val/lib"
6758       fi 
6759 fi
6760
6761 fi
6762
6763 # Check whether --enable-aa or --disable-aa was given.
6764 if test "${enable_aa+set}" = set; then
6765   enableval="$enable_aa"
6766   :
6767 fi
6768
6769 if test x$enable_aa = xyes
6770 then
6771   ac_safe=`echo "aalib.h" | sed 'y%./+-%__p_%'`
6772 echo $ac_n "checking for aalib.h""... $ac_c" 1>&6
6773 echo "configure:6774: checking for aalib.h" >&5
6774 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6775   echo $ac_n "(cached) $ac_c" 1>&6
6776 else
6777   cat > conftest.$ac_ext <<EOF
6778 #line 6779 "configure"
6779 #include "confdefs.h"
6780 #include <aalib.h>
6781 EOF
6782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6783 { (eval echo configure:6784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6785 if test -z "$ac_err"; then
6786   rm -rf conftest*
6787   eval "ac_cv_header_$ac_safe=yes"
6788 else
6789   echo "$ac_err" >&5
6790   echo "configure: failed program was:" >&5
6791   cat conftest.$ac_ext >&5
6792   rm -rf conftest*
6793   eval "ac_cv_header_$ac_safe=no"
6794 fi
6795 rm -f conftest*
6796 fi
6797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6798   echo "$ac_t""yes" 1>&6
6799   have_aa="true"
6800 else
6801   echo "$ac_t""no" 1>&6
6802 have_aa="false"
6803 fi
6804
6805   if test x$have_aa = xtrue
6806   then
6807     PLUGINS="${PLUGINS} aa"
6808     LIB_AA="${LIB_AA} -laa"
6809   fi
6810 fi
6811
6812
6813 # Check whether --with- or --without- was given.
6814 if test "${with_+set}" = set; then
6815   withval="$with_"
6816   :
6817 fi
6818
6819
6820 # Check whether --enable-dsp or --disable-dsp was given.
6821 if test "${enable_dsp+set}" = set; then
6822   enableval="$enable_dsp"
6823   :
6824 fi
6825
6826
6827 if test x$enable_dsp != xno &&
6828   (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
6829 then
6830   for ac_hdr in soundcard.h sys/soundcard.h machine/soundcard.h
6831 do
6832 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6833 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6834 echo "configure:6835: checking for $ac_hdr" >&5
6835 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6836   echo $ac_n "(cached) $ac_c" 1>&6
6837 else
6838   cat > conftest.$ac_ext <<EOF
6839 #line 6840 "configure"
6840 #include "confdefs.h"
6841 #include <$ac_hdr>
6842 EOF
6843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6844 { (eval echo configure:6845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6846 if test -z "$ac_err"; then
6847   rm -rf conftest*
6848   eval "ac_cv_header_$ac_safe=yes"
6849 else
6850   echo "$ac_err" >&5
6851   echo "configure: failed program was:" >&5
6852   cat conftest.$ac_ext >&5
6853   rm -rf conftest*
6854   eval "ac_cv_header_$ac_safe=no"
6855 fi
6856 rm -f conftest*
6857 fi
6858 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6859   echo "$ac_t""yes" 1>&6
6860     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6861   cat >> confdefs.h <<EOF
6862 #define $ac_tr_hdr 1
6863 EOF
6864  
6865     PLUGINS="${PLUGINS} dsp"
6866     echo $ac_n "checking for main in -lossaudio""... $ac_c" 1>&6
6867 echo "configure:6868: checking for main in -lossaudio" >&5
6868 ac_lib_var=`echo ossaudio'_'main | sed 'y%./+-%__p_%'`
6869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6870   echo $ac_n "(cached) $ac_c" 1>&6
6871 else
6872   ac_save_LIBS="$LIBS"
6873 LIBS="-lossaudio  $LIBS"
6874 cat > conftest.$ac_ext <<EOF
6875 #line 6876 "configure"
6876 #include "confdefs.h"
6877
6878 int main() {
6879 main()
6880 ; return 0; }
6881 EOF
6882 if { (eval echo configure:6883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6883   rm -rf conftest*
6884   eval "ac_cv_lib_$ac_lib_var=yes"
6885 else
6886   echo "configure: failed program was:" >&5
6887   cat conftest.$ac_ext >&5
6888   rm -rf conftest*
6889   eval "ac_cv_lib_$ac_lib_var=no"
6890 fi
6891 rm -f conftest*
6892 LIBS="$ac_save_LIBS"
6893
6894 fi
6895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6896   echo "$ac_t""yes" 1>&6
6897   LIB_DSP="${LIB_DSP} -lossaudio"
6898 else
6899   echo "$ac_t""no" 1>&6
6900 fi
6901
6902   
6903 else
6904   echo "$ac_t""no" 1>&6
6905 fi
6906 done
6907
6908 fi
6909
6910 # Check whether --enable-esd or --disable-esd was given.
6911 if test "${enable_esd+set}" = set; then
6912   enableval="$enable_esd"
6913   if test x$enable_esd = xyes
6914    then
6915      # Extract the first word of "esd-config", so it can be a program name with args.
6916 set dummy esd-config; ac_word=$2
6917 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6918 echo "configure:6919: checking for $ac_word" >&5
6919 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
6920   echo $ac_n "(cached) $ac_c" 1>&6
6921 else
6922   case "$ESD_CONFIG" in
6923   /*)
6924   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
6925   ;;
6926   ?:/*)                  
6927   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
6928   ;;
6929   *)
6930   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6931   ac_dummy="$PATH"
6932   for ac_dir in $ac_dummy; do 
6933     test -z "$ac_dir" && ac_dir=.
6934     if test -f $ac_dir/$ac_word; then
6935       ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
6936       break
6937     fi
6938   done
6939   IFS="$ac_save_ifs"
6940   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
6941   ;;
6942 esac
6943 fi
6944 ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
6945 if test -n "$ESD_CONFIG"; then
6946   echo "$ac_t""$ESD_CONFIG" 1>&6
6947 else
6948   echo "$ac_t""no" 1>&6
6949 fi
6950
6951      if test x${ESD_CONFIG} != xno
6952      then
6953        PLUGINS="${PLUGINS} esd"
6954        CFLAGS_ESD="${CFLAGS_ESD} `${ESD_CONFIG} --cflags`"
6955        LIB_ESD="${LIB_ESD} `${ESD_CONFIG} --libs`"
6956      fi
6957    fi
6958 fi
6959
6960
6961 # Check whether --enable-arts or --disable-arts was given.
6962 if test "${enable_arts+set}" = set; then
6963   enableval="$enable_arts"
6964   if test x$enable_arts = xyes
6965    then
6966      # Extract the first word of "artsc-config", so it can be a program name with args.
6967 set dummy artsc-config; ac_word=$2
6968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6969 echo "configure:6970: checking for $ac_word" >&5
6970 if eval "test \"`echo '$''{'ac_cv_path_ARTS_CONFIG'+set}'`\" = set"; then
6971   echo $ac_n "(cached) $ac_c" 1>&6
6972 else
6973   case "$ARTS_CONFIG" in
6974   /*)
6975   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
6976   ;;
6977   ?:/*)                  
6978   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a dos path.
6979   ;;
6980   *)
6981   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6982   ac_dummy="$PATH"
6983   for ac_dir in $ac_dummy; do 
6984     test -z "$ac_dir" && ac_dir=.
6985     if test -f $ac_dir/$ac_word; then
6986       ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
6987       break
6988     fi
6989   done
6990   IFS="$ac_save_ifs"
6991   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
6992   ;;
6993 esac
6994 fi
6995 ARTS_CONFIG="$ac_cv_path_ARTS_CONFIG"
6996 if test -n "$ARTS_CONFIG"; then
6997   echo "$ac_t""$ARTS_CONFIG" 1>&6
6998 else
6999   echo "$ac_t""no" 1>&6
7000 fi
7001
7002      if test x${ARTS_CONFIG} != xno
7003      then
7004        PLUGINS="${PLUGINS} arts"
7005        CFLAGS_ARTS="${CFLAGS_ARTS} `${ARTS_CONFIG} --cflags`"
7006        LIB_ARTS="${LIB_ARTS} `${ARTS_CONFIG} --libs `"
7007      fi
7008    fi
7009 fi
7010
7011
7012 # Check whether --enable-alsa or --disable-alsa was given.
7013 if test "${enable_alsa+set}" = set; then
7014   enableval="$enable_alsa"
7015   if test x$enable_alsa = xyes
7016    then
7017      ac_safe=`echo "alsa/asoundlib.h" | sed 'y%./+-%__p_%'`
7018 echo $ac_n "checking for alsa/asoundlib.h""... $ac_c" 1>&6
7019 echo "configure:7020: checking for alsa/asoundlib.h" >&5
7020 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7021   echo $ac_n "(cached) $ac_c" 1>&6
7022 else
7023   cat > conftest.$ac_ext <<EOF
7024 #line 7025 "configure"
7025 #include "confdefs.h"
7026 #include <alsa/asoundlib.h>
7027 EOF
7028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7029 { (eval echo configure:7030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7031 if test -z "$ac_err"; then
7032   rm -rf conftest*
7033   eval "ac_cv_header_$ac_safe=yes"
7034 else
7035   echo "$ac_err" >&5
7036   echo "configure: failed program was:" >&5
7037   cat conftest.$ac_ext >&5
7038   rm -rf conftest*
7039   eval "ac_cv_header_$ac_safe=no"
7040 fi
7041 rm -f conftest*
7042 fi
7043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7044   echo "$ac_t""yes" 1>&6
7045   echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
7046 echo "configure:7047: checking for main in -lasound" >&5
7047 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
7048 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7049   echo $ac_n "(cached) $ac_c" 1>&6
7050 else
7051   ac_save_LIBS="$LIBS"
7052 LIBS="-lasound  $LIBS"
7053 cat > conftest.$ac_ext <<EOF
7054 #line 7055 "configure"
7055 #include "confdefs.h"
7056
7057 int main() {
7058 main()
7059 ; return 0; }
7060 EOF
7061 if { (eval echo configure:7062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7062   rm -rf conftest*
7063   eval "ac_cv_lib_$ac_lib_var=yes"
7064 else
7065   echo "configure: failed program was:" >&5
7066   cat conftest.$ac_ext >&5
7067   rm -rf conftest*
7068   eval "ac_cv_lib_$ac_lib_var=no"
7069 fi
7070 rm -f conftest*
7071 LIBS="$ac_save_LIBS"
7072
7073 fi
7074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7075   echo "$ac_t""yes" 1>&6
7076   have_alsa="true"
7077 else
7078   echo "$ac_t""no" 1>&6
7079 have_alsa="false"
7080 fi
7081
7082 else
7083   echo "$ac_t""no" 1>&6
7084 have_alsa="false"
7085 fi
7086
7087      if test x$have_alsa = xtrue
7088      then
7089        PLUGINS="${PLUGINS} alsa"
7090        LIB_ALSA="${LIB_ALSA} -lasound -lm -ldl"
7091      fi
7092    fi
7093 fi
7094
7095
7096 # Check whether --enable-waveout or --disable-waveout was given.
7097 if test "${enable_waveout+set}" = set; then
7098   enableval="$enable_waveout"
7099   :
7100 fi
7101
7102 if test "x$enableval" != "xno" -a x$SYS = xmingw32
7103   then
7104     PLUGINS="${PLUGINS} waveout"
7105     LIB_WAVEOUT="-lwinmm"
7106 fi
7107
7108
7109 # Check whether --with- or --without- was given.
7110 if test "${with_+set}" = set; then
7111   withval="$with_"
7112   :
7113 fi
7114
7115
7116 # Check whether --enable-gtk or --disable-gtk was given.
7117 if test "${enable_gtk+set}" = set; then
7118   enableval="$enable_gtk"
7119   :
7120 fi
7121
7122 if test x$enable_gtk != xno
7123 then
7124   GTK_PATH=$PATH
7125   # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
7126 if test "${with_gtk_config_path+set}" = set; then
7127   withval="$with_gtk_config_path"
7128    if test "x$withval" != "xno"
7129       then
7130         GTK_PATH=$withval:$PATH
7131       fi 
7132 fi
7133
7134   # look for gtk-config
7135   # Extract the first word of "gtk12-config", so it can be a program name with args.
7136 set dummy gtk12-config; ac_word=$2
7137 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7138 echo "configure:7139: checking for $ac_word" >&5
7139 if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then
7140   echo $ac_n "(cached) $ac_c" 1>&6
7141 else
7142   case "$GTK12_CONFIG" in
7143   /*)
7144   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7145   ;;
7146   ?:/*)                  
7147   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path.
7148   ;;
7149   *)
7150   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7151   ac_dummy="$GTK_PATH"
7152   for ac_dir in $ac_dummy; do 
7153     test -z "$ac_dir" && ac_dir=.
7154     if test -f $ac_dir/$ac_word; then
7155       ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
7156       break
7157     fi
7158   done
7159   IFS="$ac_save_ifs"
7160   test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7161   ;;
7162 esac
7163 fi
7164 GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG"
7165 if test -n "$GTK12_CONFIG"; then
7166   echo "$ac_t""$GTK12_CONFIG" 1>&6
7167 else
7168   echo "$ac_t""no" 1>&6
7169 fi
7170
7171   GTK_CONFIG=${GTK12_CONFIG}
7172   if test x${GTK_CONFIG} = xno
7173   then
7174     # Extract the first word of "gtk-config", so it can be a program name with args.
7175 set dummy gtk-config; ac_word=$2
7176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7177 echo "configure:7178: checking for $ac_word" >&5
7178 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7179   echo $ac_n "(cached) $ac_c" 1>&6
7180 else
7181   case "$GTK_CONFIG" in
7182   /*)
7183   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7184   ;;
7185   ?:/*)                  
7186   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
7187   ;;
7188   *)
7189   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7190   ac_dummy="$GTK_PATH"
7191   for ac_dir in $ac_dummy; do 
7192     test -z "$ac_dir" && ac_dir=.
7193     if test -f $ac_dir/$ac_word; then
7194       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
7195       break
7196     fi
7197   done
7198   IFS="$ac_save_ifs"
7199   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7200   ;;
7201 esac
7202 fi
7203 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
7204 if test -n "$GTK_CONFIG"; then
7205   echo "$ac_t""$GTK_CONFIG" 1>&6
7206 else
7207   echo "$ac_t""no" 1>&6
7208 fi
7209
7210   fi
7211   if test x${GTK_CONFIG} != xno
7212   then
7213     if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
7214     then
7215       { 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; }
7216     fi
7217     CFLAGS_GTK="${CFLAGS_GTK} `${GTK_CONFIG} --cflags gtk`"
7218     LIB_GTK="${LIB_GTK} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
7219     # now look for the gtk.h header
7220     saved_CPPFLAGS=$CPPFLAGS
7221     CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
7222     ac_cv_gtk_headers=yes
7223     for ac_hdr in gtk/gtk.h glib.h gdk/gdk.h
7224 do
7225 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7226 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7227 echo "configure:7228: checking for $ac_hdr" >&5
7228 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7229   echo $ac_n "(cached) $ac_c" 1>&6
7230 else
7231   cat > conftest.$ac_ext <<EOF
7232 #line 7233 "configure"
7233 #include "confdefs.h"
7234 #include <$ac_hdr>
7235 EOF
7236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7237 { (eval echo configure:7238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7239 if test -z "$ac_err"; then
7240   rm -rf conftest*
7241   eval "ac_cv_header_$ac_safe=yes"
7242 else
7243   echo "$ac_err" >&5
7244   echo "configure: failed program was:" >&5
7245   cat conftest.$ac_ext >&5
7246   rm -rf conftest*
7247   eval "ac_cv_header_$ac_safe=no"
7248 fi
7249 rm -f conftest*
7250 fi
7251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7252   echo "$ac_t""yes" 1>&6
7253     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7254   cat >> confdefs.h <<EOF
7255 #define $ac_tr_hdr 1
7256 EOF
7257  
7258 else
7259   echo "$ac_t""no" 1>&6
7260 ac_cv_gtk_headers=no
7261       echo "Cannot find gtk development headers."
7262     
7263 fi
7264 done
7265
7266     if test "x$ac_cv_gtk_headers" = xyes
7267     then
7268       PLUGINS="${PLUGINS} gtk"
7269       ALIASES="${ALIASES} gvlc"
7270     fi
7271     CPPFLAGS=$saved_CPPFLAGS
7272   fi
7273 fi
7274
7275 # Check whether --enable-gnome or --disable-gnome was given.
7276 if test "${enable_gnome+set}" = set; then
7277   enableval="$enable_gnome"
7278   if test x$enable_gnome = xyes; then
7279     # look for gnome-config
7280     # Extract the first word of "gnome-config", so it can be a program name with args.
7281 set dummy gnome-config; ac_word=$2
7282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7283 echo "configure:7284: checking for $ac_word" >&5
7284 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
7285   echo $ac_n "(cached) $ac_c" 1>&6
7286 else
7287   case "$GNOME_CONFIG" in
7288   /*)
7289   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7290   ;;
7291   ?:/*)                  
7292   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
7293   ;;
7294   *)
7295   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7296   ac_dummy="$PATH"
7297   for ac_dir in $ac_dummy; do 
7298     test -z "$ac_dir" && ac_dir=.
7299     if test -f $ac_dir/$ac_word; then
7300       ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
7301       break
7302     fi
7303   done
7304   IFS="$ac_save_ifs"
7305   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7306   ;;
7307 esac
7308 fi
7309 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
7310 if test -n "$GNOME_CONFIG"; then
7311   echo "$ac_t""$GNOME_CONFIG" 1>&6
7312 else
7313   echo "$ac_t""no" 1>&6
7314 fi
7315
7316     if test -x ${GNOME_CONFIG}
7317     then
7318        CFLAGS_GNOME="${CFLAGS_GNOME} `${GNOME_CONFIG} --cflags gtk gnomeui`"
7319        LIB_GNOME="${LIB_GNOME} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
7320     fi
7321     # now look for the gnome.h header
7322     saved_CPPFLAGS=$CPPFLAGS
7323     CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
7324     for ac_hdr in gnome.h
7325 do
7326 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7327 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7328 echo "configure:7329: checking for $ac_hdr" >&5
7329 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7330   echo $ac_n "(cached) $ac_c" 1>&6
7331 else
7332   cat > conftest.$ac_ext <<EOF
7333 #line 7334 "configure"
7334 #include "confdefs.h"
7335 #include <$ac_hdr>
7336 EOF
7337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7338 { (eval echo configure:7339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7340 if test -z "$ac_err"; then
7341   rm -rf conftest*
7342   eval "ac_cv_header_$ac_safe=yes"
7343 else
7344   echo "$ac_err" >&5
7345   echo "configure: failed program was:" >&5
7346   cat conftest.$ac_ext >&5
7347   rm -rf conftest*
7348   eval "ac_cv_header_$ac_safe=no"
7349 fi
7350 rm -f conftest*
7351 fi
7352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7353   echo "$ac_t""yes" 1>&6
7354     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7355   cat >> confdefs.h <<EOF
7356 #define $ac_tr_hdr 1
7357 EOF
7358  
7359       PLUGINS="${PLUGINS} gnome"
7360       ALIASES="${ALIASES} gnome-vlc"
7361      
7362 else
7363   echo "$ac_t""no" 1>&6
7364 { echo "configure: error: Can't find gnome headers. Please install the gnome
7365 developement tools or remove the --enable-gnome option" 1>&2; exit 1; }
7366      
7367 fi
7368 done
7369
7370   
7371     CPPFLAGS=$saved_CPPFLAGS
7372   fi
7373 fi
7374
7375
7376 # Check whether --enable-qt or --disable-qt was given.
7377 if test "${enable_qt+set}" = set; then
7378   enableval="$enable_qt"
7379   if test x$enable_qt = xyes; then
7380      PLUGINS="${PLUGINS} qt"
7381      ALIASES="${ALIASES} qvlc"
7382      LIB_QT="${LIB_QT} -lqt -L${QTDIR}/lib"
7383      CFLAGS_QT="${CFLAGS_QT} -I/usr/include/qt -I${QTDIR}/include"
7384      if test -x ${QTDIR}/bin/moc
7385      then
7386        MOC=${QTDIR}/bin/moc
7387      else
7388        MOC=moc
7389      fi
7390    fi
7391 fi
7392
7393
7394 # Check whether --enable-kde or --disable-kde was given.
7395 if test "${enable_kde+set}" = set; then
7396   enableval="$enable_kde"
7397   if test x$enable_kde = xyes; then
7398      PLUGINS="${PLUGINS} kde"
7399      ALIASES="${ALIASES} kvlc"
7400      LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
7401      CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
7402      CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
7403      if test -x ${QTDIR}/bin/moc
7404      then
7405        MOC=${QTDIR}/bin/moc
7406      else
7407        MOC=moc
7408      fi
7409    fi
7410 fi
7411
7412
7413 # Check whether --enable-macosx or --disable-macosx was given.
7414 if test "${enable_macosx+set}" = set; then
7415   enableval="$enable_macosx"
7416   if test x$enable_macosx = xyes
7417    then
7418      BUILTINS="${BUILTINS} macosx"
7419      LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7420      CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
7421      LIB_COMMON="${LIB_COMMON} -ObjC"
7422    fi
7423 else
7424   for ac_hdr in Cocoa/Cocoa.h
7425 do
7426 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7427 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7428 echo "configure:7429: checking for $ac_hdr" >&5
7429 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7430   echo $ac_n "(cached) $ac_c" 1>&6
7431 else
7432   cat > conftest.$ac_ext <<EOF
7433 #line 7434 "configure"
7434 #include "confdefs.h"
7435 #include <$ac_hdr>
7436 EOF
7437 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7438 { (eval echo configure:7439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7439 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7440 if test -z "$ac_err"; then
7441   rm -rf conftest*
7442   eval "ac_cv_header_$ac_safe=yes"
7443 else
7444   echo "$ac_err" >&5
7445   echo "configure: failed program was:" >&5
7446   cat conftest.$ac_ext >&5
7447   rm -rf conftest*
7448   eval "ac_cv_header_$ac_safe=no"
7449 fi
7450 rm -f conftest*
7451 fi
7452 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7453   echo "$ac_t""yes" 1>&6
7454     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7455   cat >> confdefs.h <<EOF
7456 #define $ac_tr_hdr 1
7457 EOF
7458  BUILTINS="${BUILTINS} macosx"
7459      LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
7460      CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
7461      LIB_COMMON="${LIB_COMMON} -ObjC"
7462    
7463 else
7464   echo "$ac_t""no" 1>&6
7465 fi
7466 done
7467
7468 fi
7469
7470
7471 # Check whether --enable-qnx or --disable-qnx was given.
7472 if test "${enable_qnx+set}" = set; then
7473   enableval="$enable_qnx"
7474   :
7475 fi
7476
7477     if test x$enable_qnx != xno
7478     then
7479       for ac_hdr in Ph.h
7480 do
7481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7482 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7483 echo "configure:7484: checking for $ac_hdr" >&5
7484 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7485   echo $ac_n "(cached) $ac_c" 1>&6
7486 else
7487   cat > conftest.$ac_ext <<EOF
7488 #line 7489 "configure"
7489 #include "confdefs.h"
7490 #include <$ac_hdr>
7491 EOF
7492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7493 { (eval echo configure:7494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7495 if test -z "$ac_err"; then
7496   rm -rf conftest*
7497   eval "ac_cv_header_$ac_safe=yes"
7498 else
7499   echo "$ac_err" >&5
7500   echo "configure: failed program was:" >&5
7501   cat conftest.$ac_ext >&5
7502   rm -rf conftest*
7503   eval "ac_cv_header_$ac_safe=no"
7504 fi
7505 rm -f conftest*
7506 fi
7507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7508   echo "$ac_t""yes" 1>&6
7509     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7510   cat >> confdefs.h <<EOF
7511 #define $ac_tr_hdr 1
7512 EOF
7513  
7514         PLUGINS="${PLUGINS} qnx"
7515         LIB_QNX="${LIB_QNX} -lasound -lph"
7516       
7517 else
7518   echo "$ac_t""no" 1>&6
7519 fi
7520 done
7521
7522     fi
7523
7524 # Check whether --enable-win32 or --disable-win32 was given.
7525 if test "${enable_win32+set}" = set; then
7526   enableval="$enable_win32"
7527    if test "x$enableval" != "xno"
7528     then
7529       PLUGINS="${PLUGINS} win32"
7530     fi 
7531 fi
7532
7533
7534 # Check whether --enable-ncurses or --disable-ncurses was given.
7535 if test "${enable_ncurses+set}" = set; then
7536   enableval="$enable_ncurses"
7537   if test x$enable_ncurses = xyes; then
7538      PLUGINS="${PLUGINS} ncurses"
7539      LIB_NCURSES="${LIB_NCURSES} -lncurses"
7540    fi
7541 fi
7542
7543
7544 # Check whether --enable-lirc or --disable-lirc was given.
7545 if test "${enable_lirc+set}" = set; then
7546   enableval="$enable_lirc"
7547   :
7548 fi
7549
7550 if test x$enable_lirc = xyes
7551 then
7552   ac_safe=`echo "lirc/lirc_client.h" | sed 'y%./+-%__p_%'`
7553 echo $ac_n "checking for lirc/lirc_client.h""... $ac_c" 1>&6
7554 echo "configure:7555: checking for lirc/lirc_client.h" >&5
7555 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7556   echo $ac_n "(cached) $ac_c" 1>&6
7557 else
7558   cat > conftest.$ac_ext <<EOF
7559 #line 7560 "configure"
7560 #include "confdefs.h"
7561 #include <lirc/lirc_client.h>
7562 EOF
7563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7564 { (eval echo configure:7565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7566 if test -z "$ac_err"; then
7567   rm -rf conftest*
7568   eval "ac_cv_header_$ac_safe=yes"
7569 else
7570   echo "$ac_err" >&5
7571   echo "configure: failed program was:" >&5
7572   cat conftest.$ac_ext >&5
7573   rm -rf conftest*
7574   eval "ac_cv_header_$ac_safe=no"
7575 fi
7576 rm -f conftest*
7577 fi
7578 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7579   echo "$ac_t""yes" 1>&6
7580   echo $ac_n "checking for lirc_init in -llirc_client""... $ac_c" 1>&6
7581 echo "configure:7582: checking for lirc_init in -llirc_client" >&5
7582 ac_lib_var=`echo lirc_client'_'lirc_init | sed 'y%./+-%__p_%'`
7583 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7584   echo $ac_n "(cached) $ac_c" 1>&6
7585 else
7586   ac_save_LIBS="$LIBS"
7587 LIBS="-llirc_client  $LIBS"
7588 cat > conftest.$ac_ext <<EOF
7589 #line 7590 "configure"
7590 #include "confdefs.h"
7591 /* Override any gcc2 internal prototype to avoid an error.  */
7592 /* We use char because int might match the return type of a gcc2
7593     builtin and then its argument prototype would still apply.  */
7594 char lirc_init();
7595
7596 int main() {
7597 lirc_init()
7598 ; return 0; }
7599 EOF
7600 if { (eval echo configure:7601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7601   rm -rf conftest*
7602   eval "ac_cv_lib_$ac_lib_var=yes"
7603 else
7604   echo "configure: failed program was:" >&5
7605   cat conftest.$ac_ext >&5
7606   rm -rf conftest*
7607   eval "ac_cv_lib_$ac_lib_var=no"
7608 fi
7609 rm -f conftest*
7610 LIBS="$ac_save_LIBS"
7611
7612 fi
7613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7614   echo "$ac_t""yes" 1>&6
7615   have_lirc="true"
7616 else
7617   echo "$ac_t""no" 1>&6
7618 have_lirc="false"
7619 fi
7620
7621 else
7622   echo "$ac_t""no" 1>&6
7623 have_lirc="false"
7624 fi
7625
7626   if test x$have_lirc = xtrue
7627   then
7628     PLUGINS="${PLUGINS} lirc"
7629     LIB_LIRC="${LIB_LIRC} -llirc_client"
7630   fi
7631 fi
7632
7633 fi
7634
7635 # Check whether --with- or --without- was given.
7636 if test "${with_+set}" = set; then
7637   withval="$with_"
7638   :
7639 fi
7640
7641
7642 # Check whether --with-words or --without-words was given.
7643 if test "${with_words+set}" = set; then
7644   withval="$with_words"
7645   :
7646 fi
7647
7648   case "x$withval" in
7649     xbig)
7650       ac_cv_c_bigendian=yes
7651       ;;
7652     xlittle)
7653       ac_cv_c_bigendian=no
7654       ;;
7655     *)
7656                   echo $ac_n "checking whether the byte order is big-endian""... $ac_c" 1>&6
7657 echo "configure:7658: checking whether the byte order is big-endian" >&5
7658 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
7659   echo $ac_n "(cached) $ac_c" 1>&6
7660 else
7661   ac_cv_c_bigendian=unknown
7662         cat >conftest.c <<EOF
7663         short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
7664         short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
7665         void _a(void) { char*s = (char*)am; s = (char *)ai; }
7666         short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
7667         short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
7668         void _e(void) { char*s = (char*)em; s = (char*)ei; }
7669         int main(void) { _a(); _e(); return 0; }
7670 EOF
7671         
7672         if test -f conftest.c
7673         then 
7674           if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
7675               && test -f conftest.o
7676           then
7677             if test "`strings conftest.o | grep BIGenDianSyS`"
7678             then
7679               ac_cv_c_bigendian=yes
7680             fi
7681             if test "`strings conftest.o | grep LiTTleEnDian`"
7682             then
7683               ac_cv_c_bigendian=no
7684             fi
7685           fi
7686         fi
7687       
7688 fi
7689
7690 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
7691       if test x$ac_cv_c_bigendian = xunknown
7692       then
7693         { echo "configure: error: Could not guess endianness, please use --with-words" 1>&2; exit 1; }
7694       fi
7695       ;;
7696   esac
7697 if test $ac_cv_c_bigendian = yes
7698 then
7699   cat >> confdefs.h <<\EOF
7700 #define WORDS_BIGENDIAN 1
7701 EOF
7702
7703 fi
7704
7705 DLL_PATH=.
7706 # Check whether --with-dll-path or --without-dll-path was given.
7707 if test "${with_dll_path+set}" = set; then
7708   withval="$with_dll_path"
7709    if test "x$withval" != "xno"
7710     then
7711       DLL_PATH=$withval
7712     fi 
7713 fi
7714
7715
7716 GPROF=0
7717 # Check whether --enable-gprof or --disable-gprof was given.
7718 if test "${enable_gprof+set}" = set; then
7719   enableval="$enable_gprof"
7720    if test x$enableval = xyes; then GPROF=1; fi 
7721 fi
7722
7723
7724 CPROF=0
7725 # Check whether --enable-cprof or --disable-cprof was given.
7726 if test "${enable_cprof+set}" = set; then
7727   enableval="$enable_cprof"
7728    if test x$enableval = xyes;
7729   then
7730     LIB_COMMON="${LIB_COMMON} -lcprof"
7731     CPROF=1
7732   fi
7733
7734 fi
7735
7736
7737 # Check whether --enable-pth or --disable-pth was given.
7738 if test "${enable_pth+set}" = set; then
7739   enableval="$enable_pth"
7740    if test x$enableval = xyes; then
7741     echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
7742 echo "configure:7743: checking for pth_init in -lpth" >&5
7743 ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
7744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7745   echo $ac_n "(cached) $ac_c" 1>&6
7746 else
7747   ac_save_LIBS="$LIBS"
7748 LIBS="-lpth  $LIBS"
7749 cat > conftest.$ac_ext <<EOF
7750 #line 7751 "configure"
7751 #include "confdefs.h"
7752 /* Override any gcc2 internal prototype to avoid an error.  */
7753 /* We use char because int might match the return type of a gcc2
7754     builtin and then its argument prototype would still apply.  */
7755 char pth_init();
7756
7757 int main() {
7758 pth_init()
7759 ; return 0; }
7760 EOF
7761 if { (eval echo configure:7762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7762   rm -rf conftest*
7763   eval "ac_cv_lib_$ac_lib_var=yes"
7764 else
7765   echo "configure: failed program was:" >&5
7766   cat conftest.$ac_ext >&5
7767   rm -rf conftest*
7768   eval "ac_cv_lib_$ac_lib_var=no"
7769 fi
7770 rm -f conftest*
7771 LIBS="$ac_save_LIBS"
7772
7773 fi
7774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7775   echo "$ac_t""yes" 1>&6
7776     ac_tr_lib=HAVE_LIB`echo pth | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7777     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7778   cat >> confdefs.h <<EOF
7779 #define $ac_tr_lib 1
7780 EOF
7781
7782   LIBS="-lpth $LIBS"
7783
7784 else
7785   echo "$ac_t""no" 1>&6
7786 fi
7787
7788     cat > conftest.$ac_ext <<EOF
7789 #line 7790 "configure"
7790 #include "confdefs.h"
7791 #include <pth.h>
7792 EOF
7793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7794   egrep "pth_init" >/dev/null 2>&1; then
7795   rm -rf conftest*
7796   
7797       cat >> confdefs.h <<\EOF
7798 #define PTH_INIT_IN_PTH_H 1
7799 EOF
7800
7801     THREAD_LIB="-lpth"
7802     fi
7803 fi
7804 rm -f conftest*
7805
7806
7807 fi
7808
7809
7810 # Check whether --enable-st or --disable-st was given.
7811 if test "${enable_st+set}" = set; then
7812   enableval="$enable_st"
7813    if test x$enableval = xyes; then
7814     echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
7815 echo "configure:7816: checking for st_init in -lst" >&5
7816 ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
7817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7818   echo $ac_n "(cached) $ac_c" 1>&6
7819 else
7820   ac_save_LIBS="$LIBS"
7821 LIBS="-lst  $LIBS"
7822 cat > conftest.$ac_ext <<EOF
7823 #line 7824 "configure"
7824 #include "confdefs.h"
7825 /* Override any gcc2 internal prototype to avoid an error.  */
7826 /* We use char because int might match the return type of a gcc2
7827     builtin and then its argument prototype would still apply.  */
7828 char st_init();
7829
7830 int main() {
7831 st_init()
7832 ; return 0; }
7833 EOF
7834 if { (eval echo configure:7835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7835   rm -rf conftest*
7836   eval "ac_cv_lib_$ac_lib_var=yes"
7837 else
7838   echo "configure: failed program was:" >&5
7839   cat conftest.$ac_ext >&5
7840   rm -rf conftest*
7841   eval "ac_cv_lib_$ac_lib_var=no"
7842 fi
7843 rm -f conftest*
7844 LIBS="$ac_save_LIBS"
7845
7846 fi
7847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7848   echo "$ac_t""yes" 1>&6
7849     ac_tr_lib=HAVE_LIB`echo st | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7850     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7851   cat >> confdefs.h <<EOF
7852 #define $ac_tr_lib 1
7853 EOF
7854
7855   LIBS="-lst $LIBS"
7856
7857 else
7858   echo "$ac_t""no" 1>&6
7859 fi
7860
7861     cat > conftest.$ac_ext <<EOF
7862 #line 7863 "configure"
7863 #include "confdefs.h"
7864 #include <st.h>
7865 EOF
7866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7867   egrep "st_init" >/dev/null 2>&1; then
7868   rm -rf conftest*
7869   
7870       cat >> confdefs.h <<\EOF
7871 #define ST_INIT_IN_ST_H 1
7872 EOF
7873
7874     THREAD_LIB="-lst"
7875     fi
7876 fi
7877 rm -f conftest*
7878
7879
7880 fi
7881
7882
7883 LIB_COMMON="${LIB_COMMON} ${THREAD_LIB}"
7884
7885 # Check whether --enable-plugins or --disable-plugins was given.
7886 if test "${enable_plugins+set}" = set; then
7887   enableval="$enable_plugins"
7888   if test x$enable_plugins = xno
7889    then
7890      BUILTINS="${BUILTINS} ${PLUGINS}"
7891      PLUGINS=
7892    fi
7893 fi
7894
7895
7896 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
7897 then
7898   echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
7899   echo "as built-in"
7900   BUILTINS="${BUILTINS} ${PLUGINS}"
7901   PLUGINS=
7902 fi
7903
7904 cat >> confdefs.h <<EOF
7905 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN\n"
7906 EOF
7907
7908 cat >> confdefs.h <<EOF
7909 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
7910 EOF
7911
7912
7913 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
7914 cat >> confdefs.h <<EOF
7915 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
7916 EOF
7917
7918 cat >> confdefs.h <<EOF
7919 #define MODULE_SYMBOL $VLC_SYMBOL
7920 EOF
7921
7922
7923 DATA_PATH="${ac_tool_prefix}/share/videolan"
7924
7925 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021 trap '' 1 2 15
8022 cat > confcache <<\EOF
8023 # This file is a shell script that caches the results of configure
8024 # tests run on this system so they can be shared between configure
8025 # scripts and configure runs.  It is not useful on other systems.
8026 # If it contains results you don't want to keep, you may remove or edit it.
8027 #
8028 # By default, configure uses ./config.cache as the cache file,
8029 # creating it if it does not exist already.  You can give configure
8030 # the --cache-file=FILE option to use a different cache file; that is
8031 # what configure does when it calls configure scripts in
8032 # subdirectories, so they share the cache.
8033 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8034 # config.status only pays attention to the cache file if you give it the
8035 # --recheck option to rerun configure.
8036 #
8037 EOF
8038 # The following way of writing the cache mishandles newlines in values,
8039 # but we know of no workaround that is simple, portable, and efficient.
8040 # So, don't put newlines in cache variables' values.
8041 # Ultrix sh set writes to stderr and can't be redirected directly,
8042 # and sets the high bit in the cache file unless we assign to the vars.
8043 (set) 2>&1 |
8044   case `(ac_space=' '; set | grep ac_space) 2>&1` in
8045   *ac_space=\ *)
8046     # `set' does not quote correctly, so add quotes (double-quote substitution
8047     # turns \\\\ into \\, and sed turns \\ into \).
8048     sed -n \
8049       -e "s/'/'\\\\''/g" \
8050       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8051     ;;
8052   *)
8053     # `set' quotes correctly as required by POSIX, so do not add quotes.
8054     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8055     ;;
8056   esac >> confcache
8057 if cmp -s $cache_file confcache; then
8058   :
8059 else
8060   if test -w $cache_file; then
8061     echo "updating cache $cache_file"
8062     cat confcache > $cache_file
8063   else
8064     echo "not updating unwritable cache $cache_file"
8065   fi
8066 fi
8067 rm -f confcache
8068
8069 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8070
8071 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8072 # Let make expand exec_prefix.
8073 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8074
8075 # Any assignment to VPATH causes Sun make to only execute
8076 # the first set of double-colon rules, so remove it if not needed.
8077 # If there is a colon in the path, we need to keep it.
8078 if test "x$srcdir" = x.; then
8079   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
8080 fi
8081
8082 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8083
8084 DEFS=-DHAVE_CONFIG_H
8085
8086 # Without the "./", some shells look in PATH for config.status.
8087 : ${CONFIG_STATUS=./config.status}
8088
8089 echo creating $CONFIG_STATUS
8090 rm -f $CONFIG_STATUS
8091 cat > $CONFIG_STATUS <<EOF
8092 #! /bin/sh
8093 # Generated automatically by configure.
8094 # Run this file to recreate the current configuration.
8095 # This directory was configured as follows,
8096 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8097 #
8098 # $0 $ac_configure_args
8099 #
8100 # Compiler output produced by configure, useful for debugging
8101 # configure, is in ./config.log if it exists.
8102
8103 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8104 for ac_option
8105 do
8106   case "\$ac_option" in
8107   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8108     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8109     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8110   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8111     echo "$CONFIG_STATUS generated by autoconf version 2.13"
8112     exit 0 ;;
8113   -help | --help | --hel | --he | --h)
8114     echo "\$ac_cs_usage"; exit 0 ;;
8115   *) echo "\$ac_cs_usage"; exit 1 ;;
8116   esac
8117 done
8118
8119 ac_given_srcdir=$srcdir
8120 ac_given_INSTALL="$INSTALL"
8121
8122 trap 'rm -fr `echo "Makefile.opts po/Makefile.in include/defs.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8123 EOF
8124 cat >> $CONFIG_STATUS <<EOF
8125
8126 # Protect against being on the right side of a sed subst in config.status.
8127 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8128  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8129 $ac_vpsub
8130 $extrasub
8131 s%@SHELL@%$SHELL%g
8132 s%@CFLAGS@%$CFLAGS%g
8133 s%@CPPFLAGS@%$CPPFLAGS%g
8134 s%@CXXFLAGS@%$CXXFLAGS%g
8135 s%@FFLAGS@%$FFLAGS%g
8136 s%@DEFS@%$DEFS%g
8137 s%@LDFLAGS@%$LDFLAGS%g
8138 s%@LIBS@%$LIBS%g
8139 s%@exec_prefix@%$exec_prefix%g
8140 s%@prefix@%$prefix%g
8141 s%@program_transform_name@%$program_transform_name%g
8142 s%@bindir@%$bindir%g
8143 s%@sbindir@%$sbindir%g
8144 s%@libexecdir@%$libexecdir%g
8145 s%@datadir@%$datadir%g
8146 s%@sysconfdir@%$sysconfdir%g
8147 s%@sharedstatedir@%$sharedstatedir%g
8148 s%@localstatedir@%$localstatedir%g
8149 s%@libdir@%$libdir%g
8150 s%@includedir@%$includedir%g
8151 s%@oldincludedir@%$oldincludedir%g
8152 s%@infodir@%$infodir%g
8153 s%@mandir@%$mandir%g
8154 s%@host@%$host%g
8155 s%@host_alias@%$host_alias%g
8156 s%@host_cpu@%$host_cpu%g
8157 s%@host_vendor@%$host_vendor%g
8158 s%@host_os@%$host_os%g
8159 s%@target@%$target%g
8160 s%@target_alias@%$target_alias%g
8161 s%@target_cpu@%$target_cpu%g
8162 s%@target_vendor@%$target_vendor%g
8163 s%@target_os@%$target_os%g
8164 s%@build@%$build%g
8165 s%@build_alias@%$build_alias%g
8166 s%@build_cpu@%$build_cpu%g
8167 s%@build_vendor@%$build_vendor%g
8168 s%@build_os@%$build_os%g
8169 s%@SET_MAKE@%$SET_MAKE%g
8170 s%@CC@%$CC%g
8171 s%@CPP@%$CPP%g
8172 s%@RANLIB@%$RANLIB%g
8173 s%@GMAKE@%$GMAKE%g
8174 s%@ALLOCA@%$ALLOCA%g
8175 s%@GLIBC21@%$GLIBC21%g
8176 s%@LIBICONV@%$LIBICONV%g
8177 s%@USE_NLS@%$USE_NLS%g
8178 s%@MSGFMT@%$MSGFMT%g
8179 s%@GMSGFMT@%$GMSGFMT%g
8180 s%@XGETTEXT@%$XGETTEXT%g
8181 s%@INTLBISON@%$INTLBISON%g
8182 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8183 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8184 s%@CATALOGS@%$CATALOGS%g
8185 s%@CATOBJEXT@%$CATOBJEXT%g
8186 s%@GMOFILES@%$GMOFILES%g
8187 s%@INTLLIBS@%$INTLLIBS%g
8188 s%@INTLOBJS@%$INTLOBJS%g
8189 s%@POFILES@%$POFILES%g
8190 s%@POSUB@%$POSUB%g
8191 s%@DATADIRNAME@%$DATADIRNAME%g
8192 s%@INSTOBJEXT@%$INSTOBJEXT%g
8193 s%@GENCAT@%$GENCAT%g
8194 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8195 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8196 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8197 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8198 s%@INSTALL_DATA@%$INSTALL_DATA%g
8199 s%@WINDRES@%$WINDRES%g
8200 s%@SDL12_CONFIG@%$SDL12_CONFIG%g
8201 s%@SDL11_CONFIG@%$SDL11_CONFIG%g
8202 s%@SDL_CONFIG@%$SDL_CONFIG%g
8203 s%@ESD_CONFIG@%$ESD_CONFIG%g
8204 s%@ARTS_CONFIG@%$ARTS_CONFIG%g
8205 s%@GTK12_CONFIG@%$GTK12_CONFIG%g
8206 s%@GTK_CONFIG@%$GTK_CONFIG%g
8207 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
8208 s%@DATA_PATH@%$DATA_PATH%g
8209 s%@PLUGIN_PATH@%$PLUGIN_PATH%g
8210 s%@SYS@%$SYS%g
8211 s%@ARCH@%$ARCH%g
8212 s%@PLUGINS@%$PLUGINS%g
8213 s%@BUILTINS@%$BUILTINS%g
8214 s%@ALIASES@%$ALIASES%g
8215 s%@INCLUDE@%$INCLUDE%g
8216 s%@DEBUG@%$DEBUG%g
8217 s%@ASM@%$ASM%g
8218 s%@CPROF@%$CPROF%g
8219 s%@GPROF@%$GPROF%g
8220 s%@OPTIMS@%$OPTIMS%g
8221 s%@TUNING@%$TUNING%g
8222 s%@RELEASE@%$RELEASE%g
8223 s%@MOC@%$MOC%g
8224 s%@DLL_PATH@%$DLL_PATH%g
8225 s%@PACKAGE@%$PACKAGE%g
8226 s%@VERSION@%$VERSION%g
8227 s%@PLDFLAGS@%$PLDFLAGS%g
8228 s%@LIB_COMMON@%$LIB_COMMON%g
8229 s%@LIB_VLC@%$LIB_VLC%g
8230 s%@LIB_A52@%$LIB_A52%g
8231 s%@LIB_AA@%$LIB_AA%g
8232 s%@LIB_ALSA@%$LIB_ALSA%g
8233 s%@LIB_ARTS@%$LIB_ARTS%g
8234 s%@LIB_BEOS@%$LIB_BEOS%g
8235 s%@LIB_CHROMA_I420_RGB@%$LIB_CHROMA_I420_RGB%g
8236 s%@LIB_DARWIN@%$LIB_DARWIN%g
8237 s%@LIB_DIRECTX@%$LIB_DIRECTX%g
8238 s%@LIB_DSP@%$LIB_DSP%g
8239 s%@LIB_DVD@%$LIB_DVD%g
8240 s%@LIB_DVDREAD@%$LIB_DVDREAD%g
8241 s%@LIB_ESD@%$LIB_ESD%g
8242 s%@LIB_FILTER_DISTORT@%$LIB_FILTER_DISTORT%g
8243 s%@LIB_GGI@%$LIB_GGI%g
8244 s%@LIB_GLIDE@%$LIB_GLIDE%g
8245 s%@LIB_GNOME@%$LIB_GNOME%g
8246 s%@LIB_GTK@%$LIB_GTK%g
8247 s%@LIB_IDCTALTIVEC@%$LIB_IDCTALTIVEC%g
8248 s%@LIB_IMDCT@%$LIB_IMDCT%g
8249 s%@LIB_IMDCT3DN@%$LIB_IMDCT3DN%g
8250 s%@LIB_IMDCTSSE@%$LIB_IMDCTSSE%g
8251 s%@LIB_IPV4@%$LIB_IPV4%g
8252 s%@LIB_IPV6@%$LIB_IPV6%g
8253 s%@LIB_KDE@%$LIB_KDE%g
8254 s%@LIB_LIRC@%$LIB_LIRC%g
8255 s%@LIB_MACOSX@%$LIB_MACOSX%g
8256 s%@LIB_MAD@%$LIB_MAD%g
8257 s%@LIB_MEMCPYALTIVEC@%$LIB_MEMCPYALTIVEC%g
8258 s%@LIB_MOTIONALTIVEC@%$LIB_MOTIONALTIVEC%g
8259 s%@LIB_MPEG_TS@%$LIB_MPEG_TS%g
8260 s%@LIB_NCURSES@%$LIB_NCURSES%g
8261 s%@LIB_QNX@%$LIB_QNX%g
8262 s%@LIB_QT@%$LIB_QT%g
8263 s%@LIB_RC@%$LIB_RC%g
8264 s%@LIB_SDL@%$LIB_SDL%g
8265 s%@LIB_VCD@%$LIB_VCD%g
8266 s%@LIB_VORBIS@%$LIB_VORBIS%g
8267 s%@LIB_WAVEOUT@%$LIB_WAVEOUT%g
8268 s%@LIB_WIN32@%$LIB_WIN32%g
8269 s%@LIB_X11@%$LIB_X11%g
8270 s%@LIB_XVIDEO@%$LIB_XVIDEO%g
8271 s%@CFLAGS_COMMON@%$CFLAGS_COMMON%g
8272 s%@CFLAGS_VLC@%$CFLAGS_VLC%g
8273 s%@CFLAGS_ARTS@%$CFLAGS_ARTS%g
8274 s%@CFLAGS_DVD@%$CFLAGS_DVD%g
8275 s%@CFLAGS_DVDREAD@%$CFLAGS_DVDREAD%g
8276 s%@CFLAGS_ESD@%$CFLAGS_ESD%g
8277 s%@CFLAGS_GLIDE@%$CFLAGS_GLIDE%g
8278 s%@CFLAGS_GNOME@%$CFLAGS_GNOME%g
8279 s%@CFLAGS_GTK@%$CFLAGS_GTK%g
8280 s%@CFLAGS_KDE@%$CFLAGS_KDE%g
8281 s%@CFLAGS_IDCTALTIVEC@%$CFLAGS_IDCTALTIVEC%g
8282 s%@CFLAGS_MACOSX@%$CFLAGS_MACOSX%g
8283 s%@CFLAGS_MAD@%$CFLAGS_MAD%g
8284 s%@CFLAGS_MEMCPYALTIVEC@%$CFLAGS_MEMCPYALTIVEC%g
8285 s%@CFLAGS_MOTIONALTIVEC@%$CFLAGS_MOTIONALTIVEC%g
8286 s%@CFLAGS_OPTIM@%$CFLAGS_OPTIM%g
8287 s%@CFLAGS_OPTIM_NODEBUG@%$CFLAGS_OPTIM_NODEBUG%g
8288 s%@CFLAGS_QT@%$CFLAGS_QT%g
8289 s%@CFLAGS_SDL@%$CFLAGS_SDL%g
8290 s%@CFLAGS_WIN32@%$CFLAGS_WIN32%g
8291 s%@CFLAGS_X11@%$CFLAGS_X11%g
8292 s%@CFLAGS_XVIDEO@%$CFLAGS_XVIDEO%g
8293 s%@NEED_GETOPT@%$NEED_GETOPT%g
8294
8295 CEOF
8296 EOF
8297
8298 cat >> $CONFIG_STATUS <<\EOF
8299
8300 # Split the substitutions into bite-sized pieces for seds with
8301 # small command number limits, like on Digital OSF/1 and HP-UX.
8302 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8303 ac_file=1 # Number of current file.
8304 ac_beg=1 # First line for current file.
8305 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8306 ac_more_lines=:
8307 ac_sed_cmds=""
8308 while $ac_more_lines; do
8309   if test $ac_beg -gt 1; then
8310     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8311   else
8312     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8313   fi
8314   if test ! -s conftest.s$ac_file; then
8315     ac_more_lines=false
8316     rm -f conftest.s$ac_file
8317   else
8318     if test -z "$ac_sed_cmds"; then
8319       ac_sed_cmds="sed -f conftest.s$ac_file"
8320     else
8321       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8322     fi
8323     ac_file=`expr $ac_file + 1`
8324     ac_beg=$ac_end
8325     ac_end=`expr $ac_end + $ac_max_sed_cmds`
8326   fi
8327 done
8328 if test -z "$ac_sed_cmds"; then
8329   ac_sed_cmds=cat
8330 fi
8331 EOF
8332
8333 cat >> $CONFIG_STATUS <<EOF
8334
8335 CONFIG_FILES=\${CONFIG_FILES-"Makefile.opts po/Makefile.in"}
8336 EOF
8337 cat >> $CONFIG_STATUS <<\EOF
8338 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8339   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8340   case "$ac_file" in
8341   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8342        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8343   *) ac_file_in="${ac_file}.in" ;;
8344   esac
8345
8346   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8347
8348   # Remove last slash and all that follows it.  Not all systems have dirname.
8349   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8350   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8351     # The file is in a subdirectory.
8352     test ! -d "$ac_dir" && mkdir "$ac_dir"
8353     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8354     # A "../" for each directory in $ac_dir_suffix.
8355     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8356   else
8357     ac_dir_suffix= ac_dots=
8358   fi
8359
8360   case "$ac_given_srcdir" in
8361   .)  srcdir=.
8362       if test -z "$ac_dots"; then top_srcdir=.
8363       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8364   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8365   *) # Relative path.
8366     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8367     top_srcdir="$ac_dots$ac_given_srcdir" ;;
8368   esac
8369
8370   case "$ac_given_INSTALL" in
8371   [/$]*) INSTALL="$ac_given_INSTALL" ;;
8372   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8373   esac
8374
8375   echo creating "$ac_file"
8376   rm -f "$ac_file"
8377   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8378   case "$ac_file" in
8379   *Makefile*) ac_comsub="1i\\
8380 # $configure_input" ;;
8381   *) ac_comsub= ;;
8382   esac
8383
8384   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8385   sed -e "$ac_comsub
8386 s%@configure_input@%$configure_input%g
8387 s%@srcdir@%$srcdir%g
8388 s%@top_srcdir@%$top_srcdir%g
8389 s%@INSTALL@%$INSTALL%g
8390 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8391 fi; done
8392 rm -f conftest.s*
8393
8394 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8395 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8396 #
8397 # ac_d sets the value in "#define NAME VALUE" lines.
8398 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
8399 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
8400 ac_dC='\3'
8401 ac_dD='%g'
8402 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8403 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8404 ac_uB='\([      ]\)%\1#\2define\3'
8405 ac_uC=' '
8406 ac_uD='\4%g'
8407 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8408 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8409 ac_eB='$%\1#\2define\3'
8410 ac_eC=' '
8411 ac_eD='%g'
8412
8413 if test "${CONFIG_HEADERS+set}" != set; then
8414 EOF
8415 cat >> $CONFIG_STATUS <<EOF
8416   CONFIG_HEADERS="include/defs.h"
8417 EOF
8418 cat >> $CONFIG_STATUS <<\EOF
8419 fi
8420 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8421   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8422   case "$ac_file" in
8423   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8424        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8425   *) ac_file_in="${ac_file}.in" ;;
8426   esac
8427
8428   echo creating $ac_file
8429
8430   rm -f conftest.frag conftest.in conftest.out
8431   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8432   cat $ac_file_inputs > conftest.in
8433
8434 EOF
8435
8436 # Transform confdefs.h into a sed script conftest.vals that substitutes
8437 # the proper values into config.h.in to produce config.h.  And first:
8438 # Protect against being on the right side of a sed subst in config.status.
8439 # Protect against being in an unquoted here document in config.status.
8440 rm -f conftest.vals
8441 cat > conftest.hdr <<\EOF
8442 s/[\\&%]/\\&/g
8443 s%[\\$`]%\\&%g
8444 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8445 s%ac_d%ac_u%gp
8446 s%ac_u%ac_e%gp
8447 EOF
8448 sed -n -f conftest.hdr confdefs.h > conftest.vals
8449 rm -f conftest.hdr
8450
8451 # This sed command replaces #undef with comments.  This is necessary, for
8452 # example, in the case of _POSIX_SOURCE, which is predefined and required
8453 # on some systems where configure will not decide to define it.
8454 cat >> conftest.vals <<\EOF
8455 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8456 EOF
8457
8458 # Break up conftest.vals because some shells have a limit on
8459 # the size of here documents, and old seds have small limits too.
8460
8461 rm -f conftest.tail
8462 while :
8463 do
8464   ac_lines=`grep -c . conftest.vals`
8465   # grep -c gives empty output for an empty file on some AIX systems.
8466   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8467   # Write a limited-size here document to conftest.frag.
8468   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8469   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8470   echo 'CEOF
8471   sed -f conftest.frag conftest.in > conftest.out
8472   rm -f conftest.in
8473   mv conftest.out conftest.in
8474 ' >> $CONFIG_STATUS
8475   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8476   rm -f conftest.vals
8477   mv conftest.tail conftest.vals
8478 done
8479 rm -f conftest.vals
8480
8481 cat >> $CONFIG_STATUS <<\EOF
8482   rm -f conftest.frag conftest.h
8483   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
8484   cat conftest.in >> conftest.h
8485   rm -f conftest.in
8486   if cmp -s $ac_file conftest.h 2>/dev/null; then
8487     echo "$ac_file is unchanged"
8488     rm -f conftest.h
8489   else
8490     # Remove last slash and all that follows it.  Not all systems have dirname.
8491       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8492       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8493       # The file is in a subdirectory.
8494       test ! -d "$ac_dir" && mkdir "$ac_dir"
8495     fi
8496     rm -f $ac_file
8497     mv conftest.h $ac_file
8498   fi
8499 fi; done
8500
8501 EOF
8502 cat >> $CONFIG_STATUS <<EOF
8503
8504
8505 EOF
8506 cat >> $CONFIG_STATUS <<\EOF
8507 for ac_file in $CONFIG_FILES; do
8508         # Support "outfile[:infile[:infile...]]"
8509         case "$ac_file" in
8510           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8511         esac
8512         # PO directories have a Makefile.in generated from Makefile.in.in.
8513         case "$ac_file" in */Makefile.in)
8514           # Adjust a relative srcdir.
8515           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8516           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8517           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8518           # In autoconf-2.13 it is called $ac_given_srcdir.
8519           # In autoconf-2.50 it is called $srcdir.
8520           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8521           case "$ac_given_srcdir" in
8522             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8523             /*) top_srcdir="$ac_given_srcdir" ;;
8524             *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
8525           esac
8526           if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8527             rm -f "$ac_dir/POTFILES"
8528             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8529             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8530             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8531             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8532           fi
8533           ;;
8534         esac
8535       done
8536
8537 exit 0
8538 EOF
8539 chmod +x $CONFIG_STATUS
8540 rm -fr confdefs* $ac_clean_files
8541 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8542
8543
8544 echo "
8545 vlc configuration
8546 --------------------
8547 vlc version           : ${VERSION}
8548 system                : ${SYS}
8549 architecture          : ${ARCH}
8550 optimizations         : ${OPTIMS}
8551 tuning                : ${TUNING}
8552 debug mode            : ${DEBUG}
8553 release               : ${RELEASE}
8554 cprof/gprof support   : ${CPROF}/${GPROF}
8555 need builtin getopt   : ${NEED_GETOPT}
8556 built-in modules      :${BUILTINS}
8557 plug-in modules       :${PLUGINS}
8558 vlc aliases           :${ALIASES}
8559
8560 You may now tune Makefile.opts at your convenience, for instance to choose
8561 which modules get compiled as plugins.
8562
8563 To build vlc and its plugins, type \`$VLC_MAKE'.
8564 "
8565