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