]> git.sesse.net Git - vlc/blob - configure
Added HAVE_GPE_INIT_H define for autodetection of libgpewidget and GPE headerfiles.
[vlc] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
16
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25   emulate sh
26   NULLCMD=:
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28   set -o posix
29 fi
30
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
33
34 if expr a : '\(a\)' >/dev/null 2>&1; then
35   as_expr=expr
36 else
37   as_expr=false
38 fi
39
40 rm -f conf$$ conf$$.exe conf$$.file
41 echo >conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43   # We could just check for DJGPP; but this test a) works b) is more generic
44   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45   if test -f conf$$.exe; then
46     # Don't use ln at all; we don't have any links
47     as_ln_s='cp -p'
48   else
49     as_ln_s='ln -s'
50   fi
51 elif ln conf$$.file conf$$ 2>/dev/null; then
52   as_ln_s=ln
53 else
54   as_ln_s='cp -p'
55 fi
56 rm -f conf$$ conf$$.exe conf$$.file
57
58 as_executable_p="test -f"
59
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62   as_unset=unset
63 else
64   as_unset=false
65 fi
66
67 # NLS nuisances.
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
76
77 # IFS
78 # We need space, tab and new line, in precisely that order.
79 as_nl='
80 '
81 IFS="   $as_nl"
82
83 # CDPATH.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
85
86 # Name of the host.
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90
91 exec 6>&1
92
93 #
94 # Initializations.
95 #
96 ac_default_prefix=/usr/local
97 cross_compiling=no
98 subdirs=
99 MFLAGS= MAKEFLAGS=
100 SHELL=${CONFIG_SHELL-/bin/sh}
101
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete.  It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
106
107 ac_unique_file="include/main.h"
108 # Factoring default headers for most tests.
109 ac_includes_default="\
110 #include <stdio.h>
111 #if HAVE_SYS_TYPES_H
112 # include <sys/types.h>
113 #endif
114 #if HAVE_SYS_STAT_H
115 # include <sys/stat.h>
116 #endif
117 #if STDC_HEADERS
118 # include <stdlib.h>
119 # include <stddef.h>
120 #else
121 # if HAVE_STDLIB_H
122 #  include <stdlib.h>
123 # endif
124 #endif
125 #if HAVE_STRING_H
126 # if !STDC_HEADERS && HAVE_MEMORY_H
127 #  include <memory.h>
128 # endif
129 # include <string.h>
130 #endif
131 #if HAVE_STRINGS_H
132 # include <strings.h>
133 #endif
134 #if HAVE_INTTYPES_H
135 # include <inttypes.h>
136 #else
137 # if HAVE_STDINT_H
138 #  include <stdint.h>
139 # endif
140 #endif
141 #if HAVE_UNISTD_H
142 # include <unistd.h>
143 #endif"
144
145 # Initialize some variables set by options.
146 ac_init_help=
147 ac_init_version=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
150 cache_file=/dev/null
151 exec_prefix=NONE
152 no_create=
153 no_recursion=
154 prefix=NONE
155 program_prefix=NONE
156 program_suffix=NONE
157 program_transform_name=s,x,x,
158 silent=
159 site=
160 srcdir=
161 verbose=
162 x_includes=NONE
163 x_libraries=NONE
164
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir='${exec_prefix}/bin'
171 sbindir='${exec_prefix}/sbin'
172 libexecdir='${exec_prefix}/libexec'
173 datadir='${prefix}/share'
174 sysconfdir='${prefix}/etc'
175 sharedstatedir='${prefix}/com'
176 localstatedir='${prefix}/var'
177 libdir='${exec_prefix}/lib'
178 includedir='${prefix}/include'
179 oldincludedir='/usr/include'
180 infodir='${prefix}/info'
181 mandir='${prefix}/man'
182
183 # Identity of this package.
184 PACKAGE_NAME=
185 PACKAGE_TARNAME=
186 PACKAGE_VERSION=
187 PACKAGE_STRING=
188 PACKAGE_BUGREPORT=
189
190 ac_prev=
191 for ac_option
192 do
193   # If the previous option needs an argument, assign it.
194   if test -n "$ac_prev"; then
195     eval "$ac_prev=\$ac_option"
196     ac_prev=
197     continue
198   fi
199
200   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
201
202   # Accept the important Cygnus configure options, so we can diagnose typos.
203
204   case $ac_option in
205
206   -bindir | --bindir | --bindi | --bind | --bin | --bi)
207     ac_prev=bindir ;;
208   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
209     bindir=$ac_optarg ;;
210
211   -build | --build | --buil | --bui | --bu)
212     ac_prev=build_alias ;;
213   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214     build_alias=$ac_optarg ;;
215
216   -cache-file | --cache-file | --cache-fil | --cache-fi \
217   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218     ac_prev=cache_file ;;
219   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221     cache_file=$ac_optarg ;;
222
223   --config-cache | -C)
224     cache_file=config.cache ;;
225
226   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
227     ac_prev=datadir ;;
228   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
229   | --da=*)
230     datadir=$ac_optarg ;;
231
232   -disable-* | --disable-*)
233     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234     # Reject names that are not valid shell variable names.
235     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237    { (exit 1); exit 1; }; }
238     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239     eval "enable_$ac_feature=no" ;;
240
241   -enable-* | --enable-*)
242     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243     # Reject names that are not valid shell variable names.
244     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246    { (exit 1); exit 1; }; }
247     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248     case $ac_option in
249       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
250       *) ac_optarg=yes ;;
251     esac
252     eval "enable_$ac_feature='$ac_optarg'" ;;
253
254   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256   | --exec | --exe | --ex)
257     ac_prev=exec_prefix ;;
258   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260   | --exec=* | --exe=* | --ex=*)
261     exec_prefix=$ac_optarg ;;
262
263   -gas | --gas | --ga | --g)
264     # Obsolete; use --with-gas.
265     with_gas=yes ;;
266
267   -help | --help | --hel | --he | -h)
268     ac_init_help=long ;;
269   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270     ac_init_help=recursive ;;
271   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272     ac_init_help=short ;;
273
274   -host | --host | --hos | --ho)
275     ac_prev=host_alias ;;
276   -host=* | --host=* | --hos=* | --ho=*)
277     host_alias=$ac_optarg ;;
278
279   -includedir | --includedir | --includedi | --included | --include \
280   | --includ | --inclu | --incl | --inc)
281     ac_prev=includedir ;;
282   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283   | --includ=* | --inclu=* | --incl=* | --inc=*)
284     includedir=$ac_optarg ;;
285
286   -infodir | --infodir | --infodi | --infod | --info | --inf)
287     ac_prev=infodir ;;
288   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289     infodir=$ac_optarg ;;
290
291   -libdir | --libdir | --libdi | --libd)
292     ac_prev=libdir ;;
293   -libdir=* | --libdir=* | --libdi=* | --libd=*)
294     libdir=$ac_optarg ;;
295
296   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297   | --libexe | --libex | --libe)
298     ac_prev=libexecdir ;;
299   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300   | --libexe=* | --libex=* | --libe=*)
301     libexecdir=$ac_optarg ;;
302
303   -localstatedir | --localstatedir | --localstatedi | --localstated \
304   | --localstate | --localstat | --localsta | --localst \
305   | --locals | --local | --loca | --loc | --lo)
306     ac_prev=localstatedir ;;
307   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310     localstatedir=$ac_optarg ;;
311
312   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
313     ac_prev=mandir ;;
314   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
315     mandir=$ac_optarg ;;
316
317   -nfp | --nfp | --nf)
318     # Obsolete; use --without-fp.
319     with_fp=no ;;
320
321   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
322   | --no-cr | --no-c)
323     no_create=yes ;;
324
325   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327     no_recursion=yes ;;
328
329   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331   | --oldin | --oldi | --old | --ol | --o)
332     ac_prev=oldincludedir ;;
333   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336     oldincludedir=$ac_optarg ;;
337
338   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
339     ac_prev=prefix ;;
340   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
341     prefix=$ac_optarg ;;
342
343   -program-prefix | --program-prefix | --program-prefi | --program-pref \
344   | --program-pre | --program-pr | --program-p)
345     ac_prev=program_prefix ;;
346   -program-prefix=* | --program-prefix=* | --program-prefi=* \
347   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348     program_prefix=$ac_optarg ;;
349
350   -program-suffix | --program-suffix | --program-suffi | --program-suff \
351   | --program-suf | --program-su | --program-s)
352     ac_prev=program_suffix ;;
353   -program-suffix=* | --program-suffix=* | --program-suffi=* \
354   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355     program_suffix=$ac_optarg ;;
356
357   -program-transform-name | --program-transform-name \
358   | --program-transform-nam | --program-transform-na \
359   | --program-transform-n | --program-transform- \
360   | --program-transform | --program-transfor \
361   | --program-transfo | --program-transf \
362   | --program-trans | --program-tran \
363   | --progr-tra | --program-tr | --program-t)
364     ac_prev=program_transform_name ;;
365   -program-transform-name=* | --program-transform-name=* \
366   | --program-transform-nam=* | --program-transform-na=* \
367   | --program-transform-n=* | --program-transform-=* \
368   | --program-transform=* | --program-transfor=* \
369   | --program-transfo=* | --program-transf=* \
370   | --program-trans=* | --program-tran=* \
371   | --progr-tra=* | --program-tr=* | --program-t=*)
372     program_transform_name=$ac_optarg ;;
373
374   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375   | -silent | --silent | --silen | --sile | --sil)
376     silent=yes ;;
377
378   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379     ac_prev=sbindir ;;
380   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381   | --sbi=* | --sb=*)
382     sbindir=$ac_optarg ;;
383
384   -sharedstatedir | --sharedstatedir | --sharedstatedi \
385   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386   | --sharedst | --shareds | --shared | --share | --shar \
387   | --sha | --sh)
388     ac_prev=sharedstatedir ;;
389   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392   | --sha=* | --sh=*)
393     sharedstatedir=$ac_optarg ;;
394
395   -site | --site | --sit)
396     ac_prev=site ;;
397   -site=* | --site=* | --sit=*)
398     site=$ac_optarg ;;
399
400   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401     ac_prev=srcdir ;;
402   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403     srcdir=$ac_optarg ;;
404
405   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406   | --syscon | --sysco | --sysc | --sys | --sy)
407     ac_prev=sysconfdir ;;
408   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410     sysconfdir=$ac_optarg ;;
411
412   -target | --target | --targe | --targ | --tar | --ta | --t)
413     ac_prev=target_alias ;;
414   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415     target_alias=$ac_optarg ;;
416
417   -v | -verbose | --verbose | --verbos | --verbo | --verb)
418     verbose=yes ;;
419
420   -version | --version | --versio | --versi | --vers | -V)
421     ac_init_version=: ;;
422
423   -with-* | --with-*)
424     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425     # Reject names that are not valid shell variable names.
426     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427       { echo "$as_me: error: invalid package name: $ac_package" >&2
428    { (exit 1); exit 1; }; }
429     ac_package=`echo $ac_package| sed 's/-/_/g'`
430     case $ac_option in
431       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
432       *) ac_optarg=yes ;;
433     esac
434     eval "with_$ac_package='$ac_optarg'" ;;
435
436   -without-* | --without-*)
437     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438     # Reject names that are not valid shell variable names.
439     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440       { echo "$as_me: error: invalid package name: $ac_package" >&2
441    { (exit 1); exit 1; }; }
442     ac_package=`echo $ac_package | sed 's/-/_/g'`
443     eval "with_$ac_package=no" ;;
444
445   --x)
446     # Obsolete; use --with-x.
447     with_x=yes ;;
448
449   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450   | --x-incl | --x-inc | --x-in | --x-i)
451     ac_prev=x_includes ;;
452   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454     x_includes=$ac_optarg ;;
455
456   -x-libraries | --x-libraries | --x-librarie | --x-librari \
457   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458     ac_prev=x_libraries ;;
459   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461     x_libraries=$ac_optarg ;;
462
463   -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465    { (exit 1); exit 1; }; }
466     ;;
467
468   *=*)
469     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470     # Reject names that are not valid shell variable names.
471     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473    { (exit 1); exit 1; }; }
474     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475     eval "$ac_envvar='$ac_optarg'"
476     export $ac_envvar ;;
477
478   *)
479     # FIXME: should be removed in autoconf 3.0.
480     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
484     ;;
485
486   esac
487 done
488
489 if test -n "$ac_prev"; then
490   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491   { echo "$as_me: error: missing argument to $ac_option" >&2
492    { (exit 1); exit 1; }; }
493 fi
494
495 # Be sure to have absolute paths.
496 for ac_var in exec_prefix prefix
497 do
498   eval ac_val=$`echo $ac_var`
499   case $ac_val in
500     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502    { (exit 1); exit 1; }; };;
503   esac
504 done
505
506 # Be sure to have absolute paths.
507 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508               localstatedir libdir includedir oldincludedir infodir mandir
509 do
510   eval ac_val=$`echo $ac_var`
511   case $ac_val in
512     [\\/$]* | ?:[\\/]* ) ;;
513     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514    { (exit 1); exit 1; }; };;
515   esac
516 done
517
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
520 build=$build_alias
521 host=$host_alias
522 target=$target_alias
523
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x; then
526   if test "x$build_alias" = x; then
527     cross_compiling=maybe
528     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529     If a cross compiler is detected then cross compile mode will be used." >&2
530   elif test "x$build_alias" != "x$host_alias"; then
531     cross_compiling=yes
532   fi
533 fi
534
535 ac_tool_prefix=
536 test -n "$host_alias" && ac_tool_prefix=$host_alias-
537
538 test "$silent" = yes && exec 6>/dev/null
539
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542   ac_srcdir_defaulted=yes
543   # Try the directory containing this script, then its parent.
544   ac_prog=$0
545   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547   srcdir=$ac_confdir
548   if test ! -r $srcdir/$ac_unique_file; then
549     srcdir=..
550   fi
551 else
552   ac_srcdir_defaulted=no
553 fi
554 if test ! -r $srcdir/$ac_unique_file; then
555   if test "$ac_srcdir_defaulted" = yes; then
556     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557    { (exit 1); exit 1; }; }
558   else
559     { echo "$as_me: error: cannot find sources in $srcdir" >&2
560    { (exit 1); exit 1; }; }
561   fi
562 fi
563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set=${build_alias+set}
565 ac_env_build_alias_value=$build_alias
566 ac_cv_env_build_alias_set=${build_alias+set}
567 ac_cv_env_build_alias_value=$build_alias
568 ac_env_host_alias_set=${host_alias+set}
569 ac_env_host_alias_value=$host_alias
570 ac_cv_env_host_alias_set=${host_alias+set}
571 ac_cv_env_host_alias_value=$host_alias
572 ac_env_target_alias_set=${target_alias+set}
573 ac_env_target_alias_value=$target_alias
574 ac_cv_env_target_alias_set=${target_alias+set}
575 ac_cv_env_target_alias_value=$target_alias
576 ac_env_CC_set=${CC+set}
577 ac_env_CC_value=$CC
578 ac_cv_env_CC_set=${CC+set}
579 ac_cv_env_CC_value=$CC
580 ac_env_CFLAGS_set=${CFLAGS+set}
581 ac_env_CFLAGS_value=$CFLAGS
582 ac_cv_env_CFLAGS_set=${CFLAGS+set}
583 ac_cv_env_CFLAGS_value=$CFLAGS
584 ac_env_LDFLAGS_set=${LDFLAGS+set}
585 ac_env_LDFLAGS_value=$LDFLAGS
586 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value=$LDFLAGS
588 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592 ac_env_CPP_set=${CPP+set}
593 ac_env_CPP_value=$CPP
594 ac_cv_env_CPP_set=${CPP+set}
595 ac_cv_env_CPP_value=$CPP
596
597 #
598 # Report the --help message.
599 #
600 if test "$ac_init_help" = "long"; then
601   # Omit some internal or obsolete options to make the list less imposing.
602   # This message is too long to be a string in the A/UX 3.1 sh.
603   cat <<EOF
604 \`configure' configures this package to adapt to many kinds of systems.
605
606 Usage: $0 [OPTION]... [VAR=VALUE]...
607
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
609 VAR=VALUE.  See below for descriptions of some of the useful variables.
610
611 Defaults for the options are specified in brackets.
612
613 Configuration:
614   -h, --help              display this help and exit
615       --help=short        display options specific to this package
616       --help=recursive    display the short help of all the included packages
617   -V, --version           display version information and exit
618   -q, --quiet, --silent   do not print \`checking...' messages
619       --cache-file=FILE   cache test results in FILE [disabled]
620   -C, --config-cache      alias for \`--cache-file=config.cache'
621   -n, --no-create         do not create output files
622       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
623
624 EOF
625
626   cat <<EOF
627 Installation directories:
628   --prefix=PREFIX         install architecture-independent files in PREFIX
629                           [$ac_default_prefix]
630   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
631                           [PREFIX]
632
633 By default, \`make install' will install all the files in
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636 for instance \`--prefix=\$HOME'.
637
638 For better control, use the options below.
639
640 Fine tuning of the installation directories:
641   --bindir=DIR           user executables [EPREFIX/bin]
642   --sbindir=DIR          system admin executables [EPREFIX/sbin]
643   --libexecdir=DIR       program executables [EPREFIX/libexec]
644   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
645   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
646   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
647   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
648   --libdir=DIR           object code libraries [EPREFIX/lib]
649   --includedir=DIR       C header files [PREFIX/include]
650   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
651   --infodir=DIR          info documentation [PREFIX/info]
652   --mandir=DIR           man documentation [PREFIX/man]
653 EOF
654
655   cat <<\EOF
656
657 System types:
658   --build=BUILD     configure for building on BUILD [guessed]
659   --host=HOST       build programs to run on HOST [BUILD]
660   --target=TARGET   configure for building compilers for TARGET [HOST]
661 EOF
662 fi
663
664 if test -n "$ac_init_help"; then
665
666   cat <<\EOF
667
668 Optional Features:
669   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
670   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
671   --disable-nls           do not use Native Language Support
672   --disable-optimizations disable compiler optimizations (default enabled)
673   --disable-altivec       disable altivec optimizations (default enabled on PPC)
674   --enable-debug          debug mode (default disabled)
675   --enable-release        activate extra optimizations (default disabled)
676   --enable-dvd            DVD input module (default enabled)
677   --enable-dvdread        dvdread input module (default disabled)
678   --enable-dvbpsi        dvbpsi ts demux module (default disabled)
679   --enable-vcd            VCD support for Linux, FreeBSD and MacOS X (default enabled)
680   --enable-satellite      satellite card support (default disabled)
681   --enable-avi            AVI demux module (default enabled)
682   --enable-mad            libmad module (default disabled)
683   --enable-ffmpeg         ffmpeg codec (default disabled)
684   --enable-a52            AC3 support with liba52 (default enabled)
685   --enable-vorbis         Ogg/Vorbis decoder support (default enabled)
686   --enable-x11            X11 support (default enabled)
687   --enable-xvideo         XVideo support (default enabled)
688   --enable-sdl            SDL support (default enabled)
689   --enable-qte            QT Embedded support (default disabled)
690   --enable-directx        Win32 DirectX support (default enabled on Win32)
691   --enable-fb             Linux framebuffer support (default enabled on Linux)
692   --enable-mga            Linux kernel Matrox support (default disabled)
693   --enable-ggi            GGI support (default disabled)
694   --enable-glide          Glide (3dfx) support (default disabled)
695   --enable-aa             aalib output (default disabled)
696   --enable-dsp            Linux /dev/dsp support (enabled on Linux)
697   --enable-esd            Esound library support (default disabled)
698   --enable-arts           aRts sound server (default disabled)
699   --enable-alsa           ALSA sound support for Linux (default disabled)
700   --enable-waveout        Win32 waveOut module (default enabled on Win32)
701   --enable-gtk            Gtk+ support (default enabled)
702   --enable-familiar       Familiar Gtk+ support (default disabled)
703   --enable-gnome          Gnome interface support (default disabled)
704   --enable-qt             Qt interface support (default disabled)
705   --enable-kde            KDE interface support (default disabled)
706   --enable-opie           Qt embedded interface support (default disabled)
707   --enable-macosx         MacOS X support (default enabled on MacOS X)
708   --enable-qnx            QNX RTOS support (default enabled on QNX RTOS)
709   --enable-intfwin        Win32 interface support (default disabled)
710   --enable-ncurses        ncurses interface support (default disabled)
711   --enable-lirc           lirc support (default disabled)
712   --enable-gprof          gprof profiling (default disabled)
713   --enable-cprof          cprof profiling (default disabled)
714   --enable-pth            GNU Pth support (default disabled)
715   --enable-st             State Threads (default disabled)
716   --disable-plugins       make all plug-ins built-in (default plug-ins enabled)
717
718 Optional Packages:
719   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
720   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
721   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
722   --with-included-gettext use the GNU gettext library included here
723
724 Optimization options:
725   --with-tuning=ARCH      enable special tuning for an architecture
726                           (default i686 on IA-32 and 750 on PPC)
727 Input plugins:
728     --with-dvdcss=PATH    libdvdcss headers and libraries
729     --with-dvdcss-tree=PATH libdvdcss tree for static linking
730     --with-dvdread=PATH   libdvdread headers and libraries
731     --with-dvbpsi=PATH    libdvbpsi headers and libraries
732     --with-dvbpsi-tree=PATH libdvbpsi tree for static linking
733 Codec plugins:
734     --with-mad=PATH       path to libmad
735     --with-mad-tree=PATH  mad tree for static linking
736     --with-ffmpeg=PATH    path to ffmpeg installation
737     --with-ffmpeg-tree=PATH ffmpeg tree for static linking
738     --with-a52-tree=PATH  a52dec tree for static linking
739 Video plugins:
740     --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)
741     --with-qte=PATH    Qt Embedded headers and libraries
742     --with-directx=PATH   Win32 DirectX headers and libraries
743     --with-ggi=PATH       path to libggi
744     --with-glide=PATH     path to libglide
745 Audio plugins:
746 Interface plugins:
747     --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)
748     --with-bcbuilder=PATH Borland C++ Builder installation path
749 Misc options:
750   --with-words=endianness set endianness (big or little)
751
752 Some influential environment variables:
753   CC          C compiler command
754   CFLAGS      C compiler flags
755   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
756               nonstandard directory <lib dir>
757   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
758               headers in a nonstandard directory <include dir>
759   CPP         C preprocessor
760
761 Use these variables to override the choices made by `configure' or to help
762 it to find libraries and programs with nonstandard names/locations.
763
764 EOF
765 fi
766
767 if test "$ac_init_help" = "recursive"; then
768   # If there are subdirs, report their specific --help.
769   ac_popdir=`pwd`
770   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
771     cd $ac_subdir
772     # A "../" for each directory in /$ac_subdir.
773     ac_dots=`echo $ac_subdir |
774              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
775
776     case $srcdir in
777     .) # No --srcdir option.  We are building in place.
778       ac_sub_srcdir=$srcdir ;;
779     [\\/]* | ?:[\\/]* ) # Absolute path.
780       ac_sub_srcdir=$srcdir/$ac_subdir ;;
781     *) # Relative path.
782       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
783     esac
784
785     # Check for guested configure; otherwise get Cygnus style configure.
786     if test -f $ac_sub_srcdir/configure.gnu; then
787       echo
788       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
789     elif test -f $ac_sub_srcdir/configure; then
790       echo
791       $SHELL $ac_sub_srcdir/configure  --help=recursive
792     elif test -f $ac_sub_srcdir/configure.ac ||
793            test -f $ac_sub_srcdir/configure.in; then
794       echo
795       $ac_configure --help
796     else
797       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
798     fi
799     cd $ac_popdir
800   done
801 fi
802
803 test -n "$ac_init_help" && exit 0
804 if $ac_init_version; then
805   cat <<\EOF
806
807 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
808 Free Software Foundation, Inc.
809 This configure script is free software; the Free Software Foundation
810 gives unlimited permission to copy, distribute and modify it.
811 EOF
812   exit 0
813 fi
814 exec 5>config.log
815 cat >&5 <<EOF
816 This file contains any messages produced by compilers while
817 running configure, to aid debugging if configure makes a mistake.
818
819 It was created by $as_me, which was
820 generated by GNU Autoconf 2.52.  Invocation command line was
821
822   $ $0 $@
823
824 EOF
825 {
826 cat <<_ASUNAME
827 ## ---------- ##
828 ## Platform.  ##
829 ## ---------- ##
830
831 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
832 uname -m = `(uname -m) 2>/dev/null || echo unknown`
833 uname -r = `(uname -r) 2>/dev/null || echo unknown`
834 uname -s = `(uname -s) 2>/dev/null || echo unknown`
835 uname -v = `(uname -v) 2>/dev/null || echo unknown`
836
837 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
838 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
839
840 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
841 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
842 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
843 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
844 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
845 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
846 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
847
848 PATH = $PATH
849
850 _ASUNAME
851 } >&5
852
853 cat >&5 <<EOF
854 ## ------------ ##
855 ## Core tests.  ##
856 ## ------------ ##
857
858 EOF
859
860 # Keep a trace of the command line.
861 # Strip out --no-create and --no-recursion so they do not pile up.
862 # Also quote any args containing shell meta-characters.
863 ac_configure_args=
864 ac_sep=
865 for ac_arg
866 do
867   case $ac_arg in
868   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
869   | --no-cr | --no-c) ;;
870   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
871   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
872   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
873     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
874     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
875     ac_sep=" " ;;
876   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
877      ac_sep=" " ;;
878   esac
879   # Get rid of the leading space.
880 done
881
882 # When interrupted or exit'd, cleanup temporary files, and complete
883 # config.log.  We remove comments because anyway the quotes in there
884 # would cause problems or look ugly.
885 trap 'exit_status=$?
886   # Save into config.log some information that might help in debugging.
887   echo >&5
888   echo "## ----------------- ##" >&5
889   echo "## Cache variables.  ##" >&5
890   echo "## ----------------- ##" >&5
891   echo >&5
892   # The following way of writing the cache mishandles newlines in values,
893 {
894   (set) 2>&1 |
895     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
896     *ac_space=\ *)
897       sed -n \
898         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
899           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
900       ;;
901     *)
902       sed -n \
903         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
904       ;;
905     esac;
906 } >&5
907   sed "/^$/d" confdefs.h >conftest.log
908   if test -s conftest.log; then
909     echo >&5
910     echo "## ------------ ##" >&5
911     echo "## confdefs.h.  ##" >&5
912     echo "## ------------ ##" >&5
913     echo >&5
914     cat conftest.log >&5
915   fi
916   (echo; echo) >&5
917   test "$ac_signal" != 0 &&
918     echo "$as_me: caught signal $ac_signal" >&5
919   echo "$as_me: exit $exit_status" >&5
920   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
921     exit $exit_status
922      ' 0
923 for ac_signal in 1 2 13 15; do
924   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
925 done
926 ac_signal=0
927
928 # confdefs.h avoids OS command line length limits that DEFS can exceed.
929 rm -rf conftest* confdefs.h
930 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
931 echo >confdefs.h
932
933 # Let the site file select an alternate cache file if it wants to.
934 # Prefer explicitly selected file to automatically selected ones.
935 if test -z "$CONFIG_SITE"; then
936   if test "x$prefix" != xNONE; then
937     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
938   else
939     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
940   fi
941 fi
942 for ac_site_file in $CONFIG_SITE; do
943   if test -r "$ac_site_file"; then
944     { echo "$as_me:944: loading site script $ac_site_file" >&5
945 echo "$as_me: loading site script $ac_site_file" >&6;}
946     cat "$ac_site_file" >&5
947     . "$ac_site_file"
948   fi
949 done
950
951 if test -r "$cache_file"; then
952   # Some versions of bash will fail to source /dev/null (special
953   # files actually), so we avoid doing that.
954   if test -f "$cache_file"; then
955     { echo "$as_me:955: loading cache $cache_file" >&5
956 echo "$as_me: loading cache $cache_file" >&6;}
957     case $cache_file in
958       [\\/]* | ?:[\\/]* ) . $cache_file;;
959       *)                      . ./$cache_file;;
960     esac
961   fi
962 else
963   { echo "$as_me:963: creating cache $cache_file" >&5
964 echo "$as_me: creating cache $cache_file" >&6;}
965   >$cache_file
966 fi
967
968 # Check that the precious variables saved in the cache have kept the same
969 # value.
970 ac_cache_corrupted=false
971 for ac_var in `(set) 2>&1 |
972                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
973   eval ac_old_set=\$ac_cv_env_${ac_var}_set
974   eval ac_new_set=\$ac_env_${ac_var}_set
975   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
976   eval ac_new_val="\$ac_env_${ac_var}_value"
977   case $ac_old_set,$ac_new_set in
978     set,)
979       { echo "$as_me:979: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
980 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
981       ac_cache_corrupted=: ;;
982     ,set)
983       { echo "$as_me:983: error: \`$ac_var' was not set in the previous run" >&5
984 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
985       ac_cache_corrupted=: ;;
986     ,);;
987     *)
988       if test "x$ac_old_val" != "x$ac_new_val"; then
989         { echo "$as_me:989: error: \`$ac_var' has changed since the previous run:" >&5
990 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
991         { echo "$as_me:991:   former value:  $ac_old_val" >&5
992 echo "$as_me:   former value:  $ac_old_val" >&2;}
993         { echo "$as_me:993:   current value: $ac_new_val" >&5
994 echo "$as_me:   current value: $ac_new_val" >&2;}
995         ac_cache_corrupted=:
996       fi;;
997   esac
998   # Pass precious variables to config.status.  It doesn't matter if
999   # we pass some twice (in addition to the command line arguments).
1000   if test "$ac_new_set" = set; then
1001     case $ac_new_val in
1002     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1003       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1004       ac_configure_args="$ac_configure_args '$ac_arg'"
1005       ;;
1006     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1007        ;;
1008     esac
1009   fi
1010 done
1011 if $ac_cache_corrupted; then
1012   { echo "$as_me:1012: error: changes in the environment can compromise the build" >&5
1013 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1014   { { echo "$as_me:1014: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1015 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1016    { (exit 1); exit 1; }; }
1017 fi
1018
1019 ac_ext=c
1020 ac_cpp='$CPP $CPPFLAGS'
1021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1024
1025 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1026   *c*,-n*) ECHO_N= ECHO_C='
1027 ' ECHO_T='      ' ;;
1028   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1029   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
1030 esac
1031 echo "#! $SHELL" >conftest.sh
1032 echo  "exit 0"   >>conftest.sh
1033 chmod +x conftest.sh
1034 if { (echo "$as_me:1034: PATH=\".;.\"; conftest.sh") >&5
1035   (PATH=".;."; conftest.sh) 2>&5
1036   ac_status=$?
1037   echo "$as_me:1037: \$? = $ac_status" >&5
1038   (exit $ac_status); }; then
1039   ac_path_separator=';'
1040 else
1041   ac_path_separator=:
1042 fi
1043 PATH_SEPARATOR="$ac_path_separator"
1044 rm -f conftest.sh
1045
1046 ac_config_headers="$ac_config_headers include/defs.h"
1047
1048 ac_aux_dir=
1049 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1050   if test -f $ac_dir/install-sh; then
1051     ac_aux_dir=$ac_dir
1052     ac_install_sh="$ac_aux_dir/install-sh -c"
1053     break
1054   elif test -f $ac_dir/install.sh; then
1055     ac_aux_dir=$ac_dir
1056     ac_install_sh="$ac_aux_dir/install.sh -c"
1057     break
1058   elif test -f $ac_dir/shtool; then
1059     ac_aux_dir=$ac_dir
1060     ac_install_sh="$ac_aux_dir/shtool install -c"
1061     break
1062   fi
1063 done
1064 if test -z "$ac_aux_dir"; then
1065   { { echo "$as_me:1065: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1066 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1067    { (exit 1); exit 1; }; }
1068 fi
1069 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1070 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1071 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1072
1073 # Make sure we can run config.sub.
1074 $ac_config_sub sun4 >/dev/null 2>&1 ||
1075   { { echo "$as_me:1075: error: cannot run $ac_config_sub" >&5
1076 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1077    { (exit 1); exit 1; }; }
1078
1079 echo "$as_me:1079: checking build system type" >&5
1080 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1081 if test "${ac_cv_build+set}" = set; then
1082   echo $ECHO_N "(cached) $ECHO_C" >&6
1083 else
1084   ac_cv_build_alias=$build_alias
1085 test -z "$ac_cv_build_alias" &&
1086   ac_cv_build_alias=`$ac_config_guess`
1087 test -z "$ac_cv_build_alias" &&
1088   { { echo "$as_me:1088: error: cannot guess build type; you must specify one" >&5
1089 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1090    { (exit 1); exit 1; }; }
1091 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1092   { { echo "$as_me:1092: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1093 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1094    { (exit 1); exit 1; }; }
1095
1096 fi
1097 echo "$as_me:1097: result: $ac_cv_build" >&5
1098 echo "${ECHO_T}$ac_cv_build" >&6
1099 build=$ac_cv_build
1100 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1101 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1102 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1103
1104 echo "$as_me:1104: checking host system type" >&5
1105 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1106 if test "${ac_cv_host+set}" = set; then
1107   echo $ECHO_N "(cached) $ECHO_C" >&6
1108 else
1109   ac_cv_host_alias=$host_alias
1110 test -z "$ac_cv_host_alias" &&
1111   ac_cv_host_alias=$ac_cv_build_alias
1112 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1113   { { echo "$as_me:1113: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1114 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1115    { (exit 1); exit 1; }; }
1116
1117 fi
1118 echo "$as_me:1118: result: $ac_cv_host" >&5
1119 echo "${ECHO_T}$ac_cv_host" >&6
1120 host=$ac_cv_host
1121 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1122 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1123 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1124
1125 echo "$as_me:1125: checking target system type" >&5
1126 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1127 if test "${ac_cv_target+set}" = set; then
1128   echo $ECHO_N "(cached) $ECHO_C" >&6
1129 else
1130   ac_cv_target_alias=$target_alias
1131 test "x$ac_cv_target_alias" = "x" &&
1132   ac_cv_target_alias=$ac_cv_host_alias
1133 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1134   { { echo "$as_me:1134: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1135 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1136    { (exit 1); exit 1; }; }
1137
1138 fi
1139 echo "$as_me:1139: result: $ac_cv_target" >&5
1140 echo "${ECHO_T}$ac_cv_target" >&6
1141 target=$ac_cv_target
1142 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1143 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1144 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1145
1146 # The aliases save the names the user supplied, while $host etc.
1147 # will get canonicalized.
1148 test -n "$target_alias" &&
1149   test "$program_prefix$program_suffix$program_transform_name" = \
1150     NONENONEs,x,x, &&
1151   program_prefix=${target_alias}-
1152
1153 PACKAGE="vlc"
1154 VERSION="0.4.6"
1155 CODENAME=Ourumov
1156
1157 save_CFLAGS="${CFLAGS}"
1158 save_CPPFLAGS="${CPPFLAGS}"
1159 save_LDFLAGS="${LDFLAGS}"
1160
1161 echo "$as_me:1161: checking whether ${MAKE-make} sets \${MAKE}" >&5
1162 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1163 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1164 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1165   echo $ECHO_N "(cached) $ECHO_C" >&6
1166 else
1167   cat >conftest.make <<\EOF
1168 all:
1169         @echo 'ac_maketemp="${MAKE}"'
1170 EOF
1171 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1172 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1173 if test -n "$ac_maketemp"; then
1174   eval ac_cv_prog_make_${ac_make}_set=yes
1175 else
1176   eval ac_cv_prog_make_${ac_make}_set=no
1177 fi
1178 rm -f conftest.make
1179 fi
1180 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1181   echo "$as_me:1181: result: yes" >&5
1182 echo "${ECHO_T}yes" >&6
1183   SET_MAKE=
1184 else
1185   echo "$as_me:1185: result: no" >&5
1186 echo "${ECHO_T}no" >&6
1187   SET_MAKE="MAKE=${MAKE-make}"
1188 fi
1189
1190 ac_ext=c
1191 ac_cpp='$CPP $CPPFLAGS'
1192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1195 if test -n "$ac_tool_prefix"; then
1196   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1197 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1198 echo "$as_me:1198: checking for $ac_word" >&5
1199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1200 if test "${ac_cv_prog_CC+set}" = set; then
1201   echo $ECHO_N "(cached) $ECHO_C" >&6
1202 else
1203   if test -n "$CC"; then
1204   ac_cv_prog_CC="$CC" # Let the user override the test.
1205 else
1206   ac_save_IFS=$IFS; IFS=$ac_path_separator
1207 ac_dummy="$PATH"
1208 for ac_dir in $ac_dummy; do
1209   IFS=$ac_save_IFS
1210   test -z "$ac_dir" && ac_dir=.
1211   $as_executable_p "$ac_dir/$ac_word" || continue
1212 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1213 echo "$as_me:1213: found $ac_dir/$ac_word" >&5
1214 break
1215 done
1216
1217 fi
1218 fi
1219 CC=$ac_cv_prog_CC
1220 if test -n "$CC"; then
1221   echo "$as_me:1221: result: $CC" >&5
1222 echo "${ECHO_T}$CC" >&6
1223 else
1224   echo "$as_me:1224: result: no" >&5
1225 echo "${ECHO_T}no" >&6
1226 fi
1227
1228 fi
1229 if test -z "$ac_cv_prog_CC"; then
1230   ac_ct_CC=$CC
1231   # Extract the first word of "gcc", so it can be a program name with args.
1232 set dummy gcc; ac_word=$2
1233 echo "$as_me:1233: checking for $ac_word" >&5
1234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1235 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1236   echo $ECHO_N "(cached) $ECHO_C" >&6
1237 else
1238   if test -n "$ac_ct_CC"; then
1239   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1240 else
1241   ac_save_IFS=$IFS; IFS=$ac_path_separator
1242 ac_dummy="$PATH"
1243 for ac_dir in $ac_dummy; do
1244   IFS=$ac_save_IFS
1245   test -z "$ac_dir" && ac_dir=.
1246   $as_executable_p "$ac_dir/$ac_word" || continue
1247 ac_cv_prog_ac_ct_CC="gcc"
1248 echo "$as_me:1248: found $ac_dir/$ac_word" >&5
1249 break
1250 done
1251
1252 fi
1253 fi
1254 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1255 if test -n "$ac_ct_CC"; then
1256   echo "$as_me:1256: result: $ac_ct_CC" >&5
1257 echo "${ECHO_T}$ac_ct_CC" >&6
1258 else
1259   echo "$as_me:1259: result: no" >&5
1260 echo "${ECHO_T}no" >&6
1261 fi
1262
1263   CC=$ac_ct_CC
1264 else
1265   CC="$ac_cv_prog_CC"
1266 fi
1267
1268 if test -z "$CC"; then
1269   if test -n "$ac_tool_prefix"; then
1270   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1271 set dummy ${ac_tool_prefix}cc; ac_word=$2
1272 echo "$as_me:1272: checking for $ac_word" >&5
1273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1274 if test "${ac_cv_prog_CC+set}" = set; then
1275   echo $ECHO_N "(cached) $ECHO_C" >&6
1276 else
1277   if test -n "$CC"; then
1278   ac_cv_prog_CC="$CC" # Let the user override the test.
1279 else
1280   ac_save_IFS=$IFS; IFS=$ac_path_separator
1281 ac_dummy="$PATH"
1282 for ac_dir in $ac_dummy; do
1283   IFS=$ac_save_IFS
1284   test -z "$ac_dir" && ac_dir=.
1285   $as_executable_p "$ac_dir/$ac_word" || continue
1286 ac_cv_prog_CC="${ac_tool_prefix}cc"
1287 echo "$as_me:1287: found $ac_dir/$ac_word" >&5
1288 break
1289 done
1290
1291 fi
1292 fi
1293 CC=$ac_cv_prog_CC
1294 if test -n "$CC"; then
1295   echo "$as_me:1295: result: $CC" >&5
1296 echo "${ECHO_T}$CC" >&6
1297 else
1298   echo "$as_me:1298: result: no" >&5
1299 echo "${ECHO_T}no" >&6
1300 fi
1301
1302 fi
1303 if test -z "$ac_cv_prog_CC"; then
1304   ac_ct_CC=$CC
1305   # Extract the first word of "cc", so it can be a program name with args.
1306 set dummy cc; ac_word=$2
1307 echo "$as_me:1307: checking for $ac_word" >&5
1308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1309 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1310   echo $ECHO_N "(cached) $ECHO_C" >&6
1311 else
1312   if test -n "$ac_ct_CC"; then
1313   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1314 else
1315   ac_save_IFS=$IFS; IFS=$ac_path_separator
1316 ac_dummy="$PATH"
1317 for ac_dir in $ac_dummy; do
1318   IFS=$ac_save_IFS
1319   test -z "$ac_dir" && ac_dir=.
1320   $as_executable_p "$ac_dir/$ac_word" || continue
1321 ac_cv_prog_ac_ct_CC="cc"
1322 echo "$as_me:1322: found $ac_dir/$ac_word" >&5
1323 break
1324 done
1325
1326 fi
1327 fi
1328 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1329 if test -n "$ac_ct_CC"; then
1330   echo "$as_me:1330: result: $ac_ct_CC" >&5
1331 echo "${ECHO_T}$ac_ct_CC" >&6
1332 else
1333   echo "$as_me:1333: result: no" >&5
1334 echo "${ECHO_T}no" >&6
1335 fi
1336
1337   CC=$ac_ct_CC
1338 else
1339   CC="$ac_cv_prog_CC"
1340 fi
1341
1342 fi
1343 if test -z "$CC"; then
1344   # Extract the first word of "cc", so it can be a program name with args.
1345 set dummy cc; ac_word=$2
1346 echo "$as_me:1346: checking for $ac_word" >&5
1347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1348 if test "${ac_cv_prog_CC+set}" = set; then
1349   echo $ECHO_N "(cached) $ECHO_C" >&6
1350 else
1351   if test -n "$CC"; then
1352   ac_cv_prog_CC="$CC" # Let the user override the test.
1353 else
1354   ac_prog_rejected=no
1355   ac_save_IFS=$IFS; IFS=$ac_path_separator
1356 ac_dummy="$PATH"
1357 for ac_dir in $ac_dummy; do
1358   IFS=$ac_save_IFS
1359   test -z "$ac_dir" && ac_dir=.
1360   $as_executable_p "$ac_dir/$ac_word" || continue
1361 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1362   ac_prog_rejected=yes
1363   continue
1364 fi
1365 ac_cv_prog_CC="cc"
1366 echo "$as_me:1366: found $ac_dir/$ac_word" >&5
1367 break
1368 done
1369
1370 if test $ac_prog_rejected = yes; then
1371   # We found a bogon in the path, so make sure we never use it.
1372   set dummy $ac_cv_prog_CC
1373   shift
1374   if test $# != 0; then
1375     # We chose a different compiler from the bogus one.
1376     # However, it has the same basename, so the bogon will be chosen
1377     # first if we set CC to just the basename; use the full file name.
1378     shift
1379     set dummy "$ac_dir/$ac_word" ${1+"$@"}
1380     shift
1381     ac_cv_prog_CC="$@"
1382   fi
1383 fi
1384 fi
1385 fi
1386 CC=$ac_cv_prog_CC
1387 if test -n "$CC"; then
1388   echo "$as_me:1388: result: $CC" >&5
1389 echo "${ECHO_T}$CC" >&6
1390 else
1391   echo "$as_me:1391: result: no" >&5
1392 echo "${ECHO_T}no" >&6
1393 fi
1394
1395 fi
1396 if test -z "$CC"; then
1397   if test -n "$ac_tool_prefix"; then
1398   for ac_prog in cl
1399   do
1400     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1401 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1402 echo "$as_me:1402: checking for $ac_word" >&5
1403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1404 if test "${ac_cv_prog_CC+set}" = set; then
1405   echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407   if test -n "$CC"; then
1408   ac_cv_prog_CC="$CC" # Let the user override the test.
1409 else
1410   ac_save_IFS=$IFS; IFS=$ac_path_separator
1411 ac_dummy="$PATH"
1412 for ac_dir in $ac_dummy; do
1413   IFS=$ac_save_IFS
1414   test -z "$ac_dir" && ac_dir=.
1415   $as_executable_p "$ac_dir/$ac_word" || continue
1416 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1417 echo "$as_me:1417: found $ac_dir/$ac_word" >&5
1418 break
1419 done
1420
1421 fi
1422 fi
1423 CC=$ac_cv_prog_CC
1424 if test -n "$CC"; then
1425   echo "$as_me:1425: result: $CC" >&5
1426 echo "${ECHO_T}$CC" >&6
1427 else
1428   echo "$as_me:1428: result: no" >&5
1429 echo "${ECHO_T}no" >&6
1430 fi
1431
1432     test -n "$CC" && break
1433   done
1434 fi
1435 if test -z "$CC"; then
1436   ac_ct_CC=$CC
1437   for ac_prog in cl
1438 do
1439   # Extract the first word of "$ac_prog", so it can be a program name with args.
1440 set dummy $ac_prog; ac_word=$2
1441 echo "$as_me:1441: checking for $ac_word" >&5
1442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1444   echo $ECHO_N "(cached) $ECHO_C" >&6
1445 else
1446   if test -n "$ac_ct_CC"; then
1447   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1448 else
1449   ac_save_IFS=$IFS; IFS=$ac_path_separator
1450 ac_dummy="$PATH"
1451 for ac_dir in $ac_dummy; do
1452   IFS=$ac_save_IFS
1453   test -z "$ac_dir" && ac_dir=.
1454   $as_executable_p "$ac_dir/$ac_word" || continue
1455 ac_cv_prog_ac_ct_CC="$ac_prog"
1456 echo "$as_me:1456: found $ac_dir/$ac_word" >&5
1457 break
1458 done
1459
1460 fi
1461 fi
1462 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1463 if test -n "$ac_ct_CC"; then
1464   echo "$as_me:1464: result: $ac_ct_CC" >&5
1465 echo "${ECHO_T}$ac_ct_CC" >&6
1466 else
1467   echo "$as_me:1467: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1469 fi
1470
1471   test -n "$ac_ct_CC" && break
1472 done
1473
1474   CC=$ac_ct_CC
1475 fi
1476
1477 fi
1478
1479 test -z "$CC" && { { echo "$as_me:1479: error: no acceptable cc found in \$PATH" >&5
1480 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1481    { (exit 1); exit 1; }; }
1482
1483 # Provide some information about the compiler.
1484 echo "$as_me:1484:" \
1485      "checking for C compiler version" >&5
1486 ac_compiler=`set X $ac_compile; echo $2`
1487 { (eval echo "$as_me:1487: \"$ac_compiler --version </dev/null >&5\"") >&5
1488   (eval $ac_compiler --version </dev/null >&5) 2>&5
1489   ac_status=$?
1490   echo "$as_me:1490: \$? = $ac_status" >&5
1491   (exit $ac_status); }
1492 { (eval echo "$as_me:1492: \"$ac_compiler -v </dev/null >&5\"") >&5
1493   (eval $ac_compiler -v </dev/null >&5) 2>&5
1494   ac_status=$?
1495   echo "$as_me:1495: \$? = $ac_status" >&5
1496   (exit $ac_status); }
1497 { (eval echo "$as_me:1497: \"$ac_compiler -V </dev/null >&5\"") >&5
1498   (eval $ac_compiler -V </dev/null >&5) 2>&5
1499   ac_status=$?
1500   echo "$as_me:1500: \$? = $ac_status" >&5
1501   (exit $ac_status); }
1502
1503 cat >conftest.$ac_ext <<_ACEOF
1504 #line 1504 "configure"
1505 #include "confdefs.h"
1506
1507 int
1508 main ()
1509 {
1510
1511   ;
1512   return 0;
1513 }
1514 _ACEOF
1515 ac_clean_files_save=$ac_clean_files
1516 ac_clean_files="$ac_clean_files a.out a.exe"
1517 # Try to create an executable without -o first, disregard a.out.
1518 # It will help us diagnose broken compilers, and finding out an intuition
1519 # of exeext.
1520 echo "$as_me:1520: checking for C compiler default output" >&5
1521 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1522 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1523 if { (eval echo "$as_me:1523: \"$ac_link_default\"") >&5
1524   (eval $ac_link_default) 2>&5
1525   ac_status=$?
1526   echo "$as_me:1526: \$? = $ac_status" >&5
1527   (exit $ac_status); }; then
1528   # Find the output, starting from the most likely.  This scheme is
1529 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1530 # resort.
1531 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1532                 ls a.out conftest 2>/dev/null;
1533                 ls a.* conftest.* 2>/dev/null`; do
1534   case $ac_file in
1535     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1536     a.out ) # We found the default executable, but exeext='' is most
1537             # certainly right.
1538             break;;
1539     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1540           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1541           export ac_cv_exeext
1542           break;;
1543     * ) break;;
1544   esac
1545 done
1546 else
1547   echo "$as_me: failed program was:" >&5
1548 cat conftest.$ac_ext >&5
1549 { { echo "$as_me:1549: error: C compiler cannot create executables" >&5
1550 echo "$as_me: error: C compiler cannot create executables" >&2;}
1551    { (exit 77); exit 77; }; }
1552 fi
1553
1554 ac_exeext=$ac_cv_exeext
1555 echo "$as_me:1555: result: $ac_file" >&5
1556 echo "${ECHO_T}$ac_file" >&6
1557
1558 # Check the compiler produces executables we can run.  If not, either
1559 # the compiler is broken, or we cross compile.
1560 echo "$as_me:1560: checking whether the C compiler works" >&5
1561 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1562 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1563 # If not cross compiling, check that we can run a simple program.
1564 if test "$cross_compiling" != yes; then
1565   if { ac_try='./$ac_file'
1566   { (eval echo "$as_me:1566: \"$ac_try\"") >&5
1567   (eval $ac_try) 2>&5
1568   ac_status=$?
1569   echo "$as_me:1569: \$? = $ac_status" >&5
1570   (exit $ac_status); }; }; then
1571     cross_compiling=no
1572   else
1573     if test "$cross_compiling" = maybe; then
1574         cross_compiling=yes
1575     else
1576         { { echo "$as_me:1576: error: cannot run C compiled programs.
1577 If you meant to cross compile, use \`--host'." >&5
1578 echo "$as_me: error: cannot run C compiled programs.
1579 If you meant to cross compile, use \`--host'." >&2;}
1580    { (exit 1); exit 1; }; }
1581     fi
1582   fi
1583 fi
1584 echo "$as_me:1584: result: yes" >&5
1585 echo "${ECHO_T}yes" >&6
1586
1587 rm -f a.out a.exe conftest$ac_cv_exeext
1588 ac_clean_files=$ac_clean_files_save
1589 # Check the compiler produces executables we can run.  If not, either
1590 # the compiler is broken, or we cross compile.
1591 echo "$as_me:1591: checking whether we are cross compiling" >&5
1592 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1593 echo "$as_me:1593: result: $cross_compiling" >&5
1594 echo "${ECHO_T}$cross_compiling" >&6
1595
1596 echo "$as_me:1596: checking for executable suffix" >&5
1597 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1598 if { (eval echo "$as_me:1598: \"$ac_link\"") >&5
1599   (eval $ac_link) 2>&5
1600   ac_status=$?
1601   echo "$as_me:1601: \$? = $ac_status" >&5
1602   (exit $ac_status); }; then
1603   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1604 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1605 # work properly (i.e., refer to `conftest.exe'), while it won't with
1606 # `rm'.
1607 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1608   case $ac_file in
1609     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1610     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1611           export ac_cv_exeext
1612           break;;
1613     * ) break;;
1614   esac
1615 done
1616 else
1617   { { echo "$as_me:1617: error: cannot compute EXEEXT: cannot compile and link" >&5
1618 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1619    { (exit 1); exit 1; }; }
1620 fi
1621
1622 rm -f conftest$ac_cv_exeext
1623 echo "$as_me:1623: result: $ac_cv_exeext" >&5
1624 echo "${ECHO_T}$ac_cv_exeext" >&6
1625
1626 rm -f conftest.$ac_ext
1627 EXEEXT=$ac_cv_exeext
1628 ac_exeext=$EXEEXT
1629 echo "$as_me:1629: checking for object suffix" >&5
1630 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1631 if test "${ac_cv_objext+set}" = set; then
1632   echo $ECHO_N "(cached) $ECHO_C" >&6
1633 else
1634   cat >conftest.$ac_ext <<_ACEOF
1635 #line 1635 "configure"
1636 #include "confdefs.h"
1637
1638 int
1639 main ()
1640 {
1641
1642   ;
1643   return 0;
1644 }
1645 _ACEOF
1646 rm -f conftest.o conftest.obj
1647 if { (eval echo "$as_me:1647: \"$ac_compile\"") >&5
1648   (eval $ac_compile) 2>&5
1649   ac_status=$?
1650   echo "$as_me:1650: \$? = $ac_status" >&5
1651   (exit $ac_status); }; then
1652   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1653   case $ac_file in
1654     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1655     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1656        break;;
1657   esac
1658 done
1659 else
1660   echo "$as_me: failed program was:" >&5
1661 cat conftest.$ac_ext >&5
1662 { { echo "$as_me:1662: error: cannot compute OBJEXT: cannot compile" >&5
1663 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1664    { (exit 1); exit 1; }; }
1665 fi
1666
1667 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1668 fi
1669 echo "$as_me:1669: result: $ac_cv_objext" >&5
1670 echo "${ECHO_T}$ac_cv_objext" >&6
1671 OBJEXT=$ac_cv_objext
1672 ac_objext=$OBJEXT
1673 echo "$as_me:1673: checking whether we are using the GNU C compiler" >&5
1674 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1675 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1676   echo $ECHO_N "(cached) $ECHO_C" >&6
1677 else
1678   cat >conftest.$ac_ext <<_ACEOF
1679 #line 1679 "configure"
1680 #include "confdefs.h"
1681
1682 int
1683 main ()
1684 {
1685 #ifndef __GNUC__
1686        choke me
1687 #endif
1688
1689   ;
1690   return 0;
1691 }
1692 _ACEOF
1693 rm -f conftest.$ac_objext
1694 if { (eval echo "$as_me:1694: \"$ac_compile\"") >&5
1695   (eval $ac_compile) 2>&5
1696   ac_status=$?
1697   echo "$as_me:1697: \$? = $ac_status" >&5
1698   (exit $ac_status); } &&
1699          { ac_try='test -s conftest.$ac_objext'
1700   { (eval echo "$as_me:1700: \"$ac_try\"") >&5
1701   (eval $ac_try) 2>&5
1702   ac_status=$?
1703   echo "$as_me:1703: \$? = $ac_status" >&5
1704   (exit $ac_status); }; }; then
1705   ac_compiler_gnu=yes
1706 else
1707   echo "$as_me: failed program was:" >&5
1708 cat conftest.$ac_ext >&5
1709 ac_compiler_gnu=no
1710 fi
1711 rm -f conftest.$ac_objext conftest.$ac_ext
1712 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1713
1714 fi
1715 echo "$as_me:1715: result: $ac_cv_c_compiler_gnu" >&5
1716 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1717 GCC=`test $ac_compiler_gnu = yes && echo yes`
1718 ac_test_CFLAGS=${CFLAGS+set}
1719 ac_save_CFLAGS=$CFLAGS
1720 CFLAGS="-g"
1721 echo "$as_me:1721: checking whether $CC accepts -g" >&5
1722 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1723 if test "${ac_cv_prog_cc_g+set}" = set; then
1724   echo $ECHO_N "(cached) $ECHO_C" >&6
1725 else
1726   cat >conftest.$ac_ext <<_ACEOF
1727 #line 1727 "configure"
1728 #include "confdefs.h"
1729
1730 int
1731 main ()
1732 {
1733
1734   ;
1735   return 0;
1736 }
1737 _ACEOF
1738 rm -f conftest.$ac_objext
1739 if { (eval echo "$as_me:1739: \"$ac_compile\"") >&5
1740   (eval $ac_compile) 2>&5
1741   ac_status=$?
1742   echo "$as_me:1742: \$? = $ac_status" >&5
1743   (exit $ac_status); } &&
1744          { ac_try='test -s conftest.$ac_objext'
1745   { (eval echo "$as_me:1745: \"$ac_try\"") >&5
1746   (eval $ac_try) 2>&5
1747   ac_status=$?
1748   echo "$as_me:1748: \$? = $ac_status" >&5
1749   (exit $ac_status); }; }; then
1750   ac_cv_prog_cc_g=yes
1751 else
1752   echo "$as_me: failed program was:" >&5
1753 cat conftest.$ac_ext >&5
1754 ac_cv_prog_cc_g=no
1755 fi
1756 rm -f conftest.$ac_objext conftest.$ac_ext
1757 fi
1758 echo "$as_me:1758: result: $ac_cv_prog_cc_g" >&5
1759 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1760 if test "$ac_test_CFLAGS" = set; then
1761   CFLAGS=$ac_save_CFLAGS
1762 elif test $ac_cv_prog_cc_g = yes; then
1763   if test "$GCC" = yes; then
1764     CFLAGS="-g -O2"
1765   else
1766     CFLAGS="-g"
1767   fi
1768 else
1769   if test "$GCC" = yes; then
1770     CFLAGS="-O2"
1771   else
1772     CFLAGS=
1773   fi
1774 fi
1775 # Some people use a C++ compiler to compile C.  Since we use `exit',
1776 # in C++ we need to declare it.  In case someone uses the same compiler
1777 # for both compiling C and C++ we need to have the C++ compiler decide
1778 # the declaration of exit, since it's the most demanding environment.
1779 cat >conftest.$ac_ext <<_ACEOF
1780 #ifndef __cplusplus
1781   choke me
1782 #endif
1783 _ACEOF
1784 rm -f conftest.$ac_objext
1785 if { (eval echo "$as_me:1785: \"$ac_compile\"") >&5
1786   (eval $ac_compile) 2>&5
1787   ac_status=$?
1788   echo "$as_me:1788: \$? = $ac_status" >&5
1789   (exit $ac_status); } &&
1790          { ac_try='test -s conftest.$ac_objext'
1791   { (eval echo "$as_me:1791: \"$ac_try\"") >&5
1792   (eval $ac_try) 2>&5
1793   ac_status=$?
1794   echo "$as_me:1794: \$? = $ac_status" >&5
1795   (exit $ac_status); }; }; then
1796   for ac_declaration in \
1797    ''\
1798    '#include <stdlib.h>' \
1799    'extern "C" void std::exit (int) throw (); using std::exit;' \
1800    'extern "C" void std::exit (int); using std::exit;' \
1801    'extern "C" void exit (int) throw ();' \
1802    'extern "C" void exit (int);' \
1803    'void exit (int);'
1804 do
1805   cat >conftest.$ac_ext <<_ACEOF
1806 #line 1806 "configure"
1807 #include "confdefs.h"
1808 #include <stdlib.h>
1809 $ac_declaration
1810 int
1811 main ()
1812 {
1813 exit (42);
1814   ;
1815   return 0;
1816 }
1817 _ACEOF
1818 rm -f conftest.$ac_objext
1819 if { (eval echo "$as_me:1819: \"$ac_compile\"") >&5
1820   (eval $ac_compile) 2>&5
1821   ac_status=$?
1822   echo "$as_me:1822: \$? = $ac_status" >&5
1823   (exit $ac_status); } &&
1824          { ac_try='test -s conftest.$ac_objext'
1825   { (eval echo "$as_me:1825: \"$ac_try\"") >&5
1826   (eval $ac_try) 2>&5
1827   ac_status=$?
1828   echo "$as_me:1828: \$? = $ac_status" >&5
1829   (exit $ac_status); }; }; then
1830   :
1831 else
1832   echo "$as_me: failed program was:" >&5
1833 cat conftest.$ac_ext >&5
1834 continue
1835 fi
1836 rm -f conftest.$ac_objext conftest.$ac_ext
1837   cat >conftest.$ac_ext <<_ACEOF
1838 #line 1838 "configure"
1839 #include "confdefs.h"
1840 $ac_declaration
1841 int
1842 main ()
1843 {
1844 exit (42);
1845   ;
1846   return 0;
1847 }
1848 _ACEOF
1849 rm -f conftest.$ac_objext
1850 if { (eval echo "$as_me:1850: \"$ac_compile\"") >&5
1851   (eval $ac_compile) 2>&5
1852   ac_status=$?
1853   echo "$as_me:1853: \$? = $ac_status" >&5
1854   (exit $ac_status); } &&
1855          { ac_try='test -s conftest.$ac_objext'
1856   { (eval echo "$as_me:1856: \"$ac_try\"") >&5
1857   (eval $ac_try) 2>&5
1858   ac_status=$?
1859   echo "$as_me:1859: \$? = $ac_status" >&5
1860   (exit $ac_status); }; }; then
1861   break
1862 else
1863   echo "$as_me: failed program was:" >&5
1864 cat conftest.$ac_ext >&5
1865 fi
1866 rm -f conftest.$ac_objext conftest.$ac_ext
1867 done
1868 rm -f conftest*
1869 if test -n "$ac_declaration"; then
1870   echo '#ifdef __cplusplus' >>confdefs.h
1871   echo $ac_declaration      >>confdefs.h
1872   echo '#endif'             >>confdefs.h
1873 fi
1874
1875 else
1876   echo "$as_me: failed program was:" >&5
1877 cat conftest.$ac_ext >&5
1878 fi
1879 rm -f conftest.$ac_objext conftest.$ac_ext
1880 ac_ext=c
1881 ac_cpp='$CPP $CPPFLAGS'
1882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1885
1886 ac_ext=c
1887 ac_cpp='$CPP $CPPFLAGS'
1888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1891 echo "$as_me:1891: checking how to run the C preprocessor" >&5
1892 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1893 # On Suns, sometimes $CPP names a directory.
1894 if test -n "$CPP" && test -d "$CPP"; then
1895   CPP=
1896 fi
1897 if test -z "$CPP"; then
1898   if test "${ac_cv_prog_CPP+set}" = set; then
1899   echo $ECHO_N "(cached) $ECHO_C" >&6
1900 else
1901       # Double quotes because CPP needs to be expanded
1902     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1903     do
1904       ac_preproc_ok=false
1905 for ac_c_preproc_warn_flag in '' yes
1906 do
1907   # Use a header file that comes with gcc, so configuring glibc
1908   # with a fresh cross-compiler works.
1909   # On the NeXT, cc -E runs the code through the compiler's parser,
1910   # not just through cpp. "Syntax error" is here to catch this case.
1911   cat >conftest.$ac_ext <<_ACEOF
1912 #line 1912 "configure"
1913 #include "confdefs.h"
1914 #include <assert.h>
1915                      Syntax error
1916 _ACEOF
1917 if { (eval echo "$as_me:1917: \"$ac_cpp conftest.$ac_ext\"") >&5
1918   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1919   ac_status=$?
1920   egrep -v '^ *\+' conftest.er1 >conftest.err
1921   rm -f conftest.er1
1922   cat conftest.err >&5
1923   echo "$as_me:1923: \$? = $ac_status" >&5
1924   (exit $ac_status); } >/dev/null; then
1925   if test -s conftest.err; then
1926     ac_cpp_err=$ac_c_preproc_warn_flag
1927   else
1928     ac_cpp_err=
1929   fi
1930 else
1931   ac_cpp_err=yes
1932 fi
1933 if test -z "$ac_cpp_err"; then
1934   :
1935 else
1936   echo "$as_me: failed program was:" >&5
1937   cat conftest.$ac_ext >&5
1938   # Broken: fails on valid input.
1939 continue
1940 fi
1941 rm -f conftest.err conftest.$ac_ext
1942
1943   # OK, works on sane cases.  Now check whether non-existent headers
1944   # can be detected and how.
1945   cat >conftest.$ac_ext <<_ACEOF
1946 #line 1946 "configure"
1947 #include "confdefs.h"
1948 #include <ac_nonexistent.h>
1949 _ACEOF
1950 if { (eval echo "$as_me:1950: \"$ac_cpp conftest.$ac_ext\"") >&5
1951   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1952   ac_status=$?
1953   egrep -v '^ *\+' conftest.er1 >conftest.err
1954   rm -f conftest.er1
1955   cat conftest.err >&5
1956   echo "$as_me:1956: \$? = $ac_status" >&5
1957   (exit $ac_status); } >/dev/null; then
1958   if test -s conftest.err; then
1959     ac_cpp_err=$ac_c_preproc_warn_flag
1960   else
1961     ac_cpp_err=
1962   fi
1963 else
1964   ac_cpp_err=yes
1965 fi
1966 if test -z "$ac_cpp_err"; then
1967   # Broken: success on invalid input.
1968 continue
1969 else
1970   echo "$as_me: failed program was:" >&5
1971   cat conftest.$ac_ext >&5
1972   # Passes both tests.
1973 ac_preproc_ok=:
1974 break
1975 fi
1976 rm -f conftest.err conftest.$ac_ext
1977
1978 done
1979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1980 rm -f conftest.err conftest.$ac_ext
1981 if $ac_preproc_ok; then
1982   break
1983 fi
1984
1985     done
1986     ac_cv_prog_CPP=$CPP
1987
1988 fi
1989   CPP=$ac_cv_prog_CPP
1990 else
1991   ac_cv_prog_CPP=$CPP
1992 fi
1993 echo "$as_me:1993: result: $CPP" >&5
1994 echo "${ECHO_T}$CPP" >&6
1995 ac_preproc_ok=false
1996 for ac_c_preproc_warn_flag in '' yes
1997 do
1998   # Use a header file that comes with gcc, so configuring glibc
1999   # with a fresh cross-compiler works.
2000   # On the NeXT, cc -E runs the code through the compiler's parser,
2001   # not just through cpp. "Syntax error" is here to catch this case.
2002   cat >conftest.$ac_ext <<_ACEOF
2003 #line 2003 "configure"
2004 #include "confdefs.h"
2005 #include <assert.h>
2006                      Syntax error
2007 _ACEOF
2008 if { (eval echo "$as_me:2008: \"$ac_cpp conftest.$ac_ext\"") >&5
2009   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2010   ac_status=$?
2011   egrep -v '^ *\+' conftest.er1 >conftest.err
2012   rm -f conftest.er1
2013   cat conftest.err >&5
2014   echo "$as_me:2014: \$? = $ac_status" >&5
2015   (exit $ac_status); } >/dev/null; then
2016   if test -s conftest.err; then
2017     ac_cpp_err=$ac_c_preproc_warn_flag
2018   else
2019     ac_cpp_err=
2020   fi
2021 else
2022   ac_cpp_err=yes
2023 fi
2024 if test -z "$ac_cpp_err"; then
2025   :
2026 else
2027   echo "$as_me: failed program was:" >&5
2028   cat conftest.$ac_ext >&5
2029   # Broken: fails on valid input.
2030 continue
2031 fi
2032 rm -f conftest.err conftest.$ac_ext
2033
2034   # OK, works on sane cases.  Now check whether non-existent headers
2035   # can be detected and how.
2036   cat >conftest.$ac_ext <<_ACEOF
2037 #line 2037 "configure"
2038 #include "confdefs.h"
2039 #include <ac_nonexistent.h>
2040 _ACEOF
2041 if { (eval echo "$as_me:2041: \"$ac_cpp conftest.$ac_ext\"") >&5
2042   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2043   ac_status=$?
2044   egrep -v '^ *\+' conftest.er1 >conftest.err
2045   rm -f conftest.er1
2046   cat conftest.err >&5
2047   echo "$as_me:2047: \$? = $ac_status" >&5
2048   (exit $ac_status); } >/dev/null; then
2049   if test -s conftest.err; then
2050     ac_cpp_err=$ac_c_preproc_warn_flag
2051   else
2052     ac_cpp_err=
2053   fi
2054 else
2055   ac_cpp_err=yes
2056 fi
2057 if test -z "$ac_cpp_err"; then
2058   # Broken: success on invalid input.
2059 continue
2060 else
2061   echo "$as_me: failed program was:" >&5
2062   cat conftest.$ac_ext >&5
2063   # Passes both tests.
2064 ac_preproc_ok=:
2065 break
2066 fi
2067 rm -f conftest.err conftest.$ac_ext
2068
2069 done
2070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2071 rm -f conftest.err conftest.$ac_ext
2072 if $ac_preproc_ok; then
2073   :
2074 else
2075   { { echo "$as_me:2075: error: C preprocessor \"$CPP\" fails sanity check" >&5
2076 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2077    { (exit 1); exit 1; }; }
2078 fi
2079
2080 ac_ext=c
2081 ac_cpp='$CPP $CPPFLAGS'
2082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2085
2086 if test -n "$ac_tool_prefix"; then
2087   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2088 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2089 echo "$as_me:2089: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2091 if test "${ac_cv_prog_RANLIB+set}" = set; then
2092   echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094   if test -n "$RANLIB"; then
2095   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2096 else
2097   ac_save_IFS=$IFS; IFS=$ac_path_separator
2098 ac_dummy="$PATH"
2099 for ac_dir in $ac_dummy; do
2100   IFS=$ac_save_IFS
2101   test -z "$ac_dir" && ac_dir=.
2102   $as_executable_p "$ac_dir/$ac_word" || continue
2103 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2104 echo "$as_me:2104: found $ac_dir/$ac_word" >&5
2105 break
2106 done
2107
2108 fi
2109 fi
2110 RANLIB=$ac_cv_prog_RANLIB
2111 if test -n "$RANLIB"; then
2112   echo "$as_me:2112: result: $RANLIB" >&5
2113 echo "${ECHO_T}$RANLIB" >&6
2114 else
2115   echo "$as_me:2115: result: no" >&5
2116 echo "${ECHO_T}no" >&6
2117 fi
2118
2119 fi
2120 if test -z "$ac_cv_prog_RANLIB"; then
2121   ac_ct_RANLIB=$RANLIB
2122   # Extract the first word of "ranlib", so it can be a program name with args.
2123 set dummy ranlib; ac_word=$2
2124 echo "$as_me:2124: checking for $ac_word" >&5
2125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2127   echo $ECHO_N "(cached) $ECHO_C" >&6
2128 else
2129   if test -n "$ac_ct_RANLIB"; then
2130   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2131 else
2132   ac_save_IFS=$IFS; IFS=$ac_path_separator
2133 ac_dummy="$PATH"
2134 for ac_dir in $ac_dummy; do
2135   IFS=$ac_save_IFS
2136   test -z "$ac_dir" && ac_dir=.
2137   $as_executable_p "$ac_dir/$ac_word" || continue
2138 ac_cv_prog_ac_ct_RANLIB="ranlib"
2139 echo "$as_me:2139: found $ac_dir/$ac_word" >&5
2140 break
2141 done
2142
2143   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2144 fi
2145 fi
2146 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2147 if test -n "$ac_ct_RANLIB"; then
2148   echo "$as_me:2148: result: $ac_ct_RANLIB" >&5
2149 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2150 else
2151   echo "$as_me:2151: result: no" >&5
2152 echo "${ECHO_T}no" >&6
2153 fi
2154
2155   RANLIB=$ac_ct_RANLIB
2156 else
2157   RANLIB="$ac_cv_prog_RANLIB"
2158 fi
2159
2160 if test -n "$ac_tool_prefix"; then
2161   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2162 set dummy ${ac_tool_prefix}strip; ac_word=$2
2163 echo "$as_me:2163: checking for $ac_word" >&5
2164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2165 if test "${ac_cv_prog_STRIP+set}" = set; then
2166   echo $ECHO_N "(cached) $ECHO_C" >&6
2167 else
2168   if test -n "$STRIP"; then
2169   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2170 else
2171   ac_save_IFS=$IFS; IFS=$ac_path_separator
2172 ac_dummy="$PATH"
2173 for ac_dir in $ac_dummy; do
2174   IFS=$ac_save_IFS
2175   test -z "$ac_dir" && ac_dir=.
2176   $as_executable_p "$ac_dir/$ac_word" || continue
2177 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2178 echo "$as_me:2178: found $ac_dir/$ac_word" >&5
2179 break
2180 done
2181
2182 fi
2183 fi
2184 STRIP=$ac_cv_prog_STRIP
2185 if test -n "$STRIP"; then
2186   echo "$as_me:2186: result: $STRIP" >&5
2187 echo "${ECHO_T}$STRIP" >&6
2188 else
2189   echo "$as_me:2189: result: no" >&5
2190 echo "${ECHO_T}no" >&6
2191 fi
2192
2193 fi
2194 if test -z "$ac_cv_prog_STRIP"; then
2195   ac_ct_STRIP=$STRIP
2196   # Extract the first word of "strip", so it can be a program name with args.
2197 set dummy strip; ac_word=$2
2198 echo "$as_me:2198: checking for $ac_word" >&5
2199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2200 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2201   echo $ECHO_N "(cached) $ECHO_C" >&6
2202 else
2203   if test -n "$ac_ct_STRIP"; then
2204   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2205 else
2206   ac_save_IFS=$IFS; IFS=$ac_path_separator
2207 ac_dummy="$PATH"
2208 for ac_dir in $ac_dummy; do
2209   IFS=$ac_save_IFS
2210   test -z "$ac_dir" && ac_dir=.
2211   $as_executable_p "$ac_dir/$ac_word" || continue
2212 ac_cv_prog_ac_ct_STRIP="strip"
2213 echo "$as_me:2213: found $ac_dir/$ac_word" >&5
2214 break
2215 done
2216
2217   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2218 fi
2219 fi
2220 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2221 if test -n "$ac_ct_STRIP"; then
2222   echo "$as_me:2222: result: $ac_ct_STRIP" >&5
2223 echo "${ECHO_T}$ac_ct_STRIP" >&6
2224 else
2225   echo "$as_me:2225: result: no" >&5
2226 echo "${ECHO_T}no" >&6
2227 fi
2228
2229   STRIP=$ac_ct_STRIP
2230 else
2231   STRIP="$ac_cv_prog_STRIP"
2232 fi
2233
2234 # Extract the first word of "gmake", so it can be a program name with args.
2235 set dummy gmake; ac_word=$2
2236 echo "$as_me:2236: checking for $ac_word" >&5
2237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2238 if test "${ac_cv_path_GMAKE+set}" = set; then
2239   echo $ECHO_N "(cached) $ECHO_C" >&6
2240 else
2241   case $GMAKE in
2242   [\\/]* | ?:[\\/]*)
2243   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
2244   ;;
2245   *)
2246   ac_save_IFS=$IFS; IFS=$ac_path_separator
2247 ac_dummy="$PATH"
2248 for ac_dir in $ac_dummy; do
2249   IFS=$ac_save_IFS
2250   test -z "$ac_dir" && ac_dir=.
2251   if $as_executable_p "$ac_dir/$ac_word"; then
2252    ac_cv_path_GMAKE="$ac_dir/$ac_word"
2253    echo "$as_me:2253: found $ac_dir/$ac_word" >&5
2254    break
2255 fi
2256 done
2257
2258   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
2259   ;;
2260 esac
2261 fi
2262 GMAKE=$ac_cv_path_GMAKE
2263
2264 if test -n "$GMAKE"; then
2265   echo "$as_me:2265: result: $GMAKE" >&5
2266 echo "${ECHO_T}$GMAKE" >&6
2267 else
2268   echo "$as_me:2268: result: no" >&5
2269 echo "${ECHO_T}no" >&6
2270 fi
2271
2272 if test "x$GMAKE" = "xno"; then
2273   echo "$as_me:2273: checking whether GNU make is installed" >&5
2274 echo $ECHO_N "checking whether GNU make is installed... $ECHO_C" >&6
2275 if test "${ac_cv_gmake+set}" = set; then
2276   echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278   if make --version | grep -q -i gnu; then
2279          ac_cv_gmake="yes"
2280        else
2281          echo "This software needs you to install GNU make to compile properly."
2282          echo "You can get it from http://www.gnu.org/."
2283          exit
2284        fi
2285 fi
2286 echo "$as_me:2286: result: $ac_cv_gmake" >&5
2287 echo "${ECHO_T}$ac_cv_gmake" >&6
2288   VLC_MAKE="make"
2289 else
2290   VLC_MAKE="gmake"
2291 fi
2292
2293 ALL_LINGUAS="de en_GB fr ja no ru nl pl"
2294
2295 cat >>confdefs.h <<EOF
2296 #define VLC_PACKAGE "$PACKAGE"
2297 EOF
2298
2299 cat >>confdefs.h <<EOF
2300 #define VLC_VERSION "$VERSION"
2301 EOF
2302
2303 if test -n "$ac_tool_prefix"; then
2304   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2305 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2306 echo "$as_me:2306: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2308 if test "${ac_cv_prog_RANLIB+set}" = set; then
2309   echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311   if test -n "$RANLIB"; then
2312   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2313 else
2314   ac_save_IFS=$IFS; IFS=$ac_path_separator
2315 ac_dummy="$PATH"
2316 for ac_dir in $ac_dummy; do
2317   IFS=$ac_save_IFS
2318   test -z "$ac_dir" && ac_dir=.
2319   $as_executable_p "$ac_dir/$ac_word" || continue
2320 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2321 echo "$as_me:2321: found $ac_dir/$ac_word" >&5
2322 break
2323 done
2324
2325 fi
2326 fi
2327 RANLIB=$ac_cv_prog_RANLIB
2328 if test -n "$RANLIB"; then
2329   echo "$as_me:2329: result: $RANLIB" >&5
2330 echo "${ECHO_T}$RANLIB" >&6
2331 else
2332   echo "$as_me:2332: result: no" >&5
2333 echo "${ECHO_T}no" >&6
2334 fi
2335
2336 fi
2337 if test -z "$ac_cv_prog_RANLIB"; then
2338   ac_ct_RANLIB=$RANLIB
2339   # Extract the first word of "ranlib", so it can be a program name with args.
2340 set dummy ranlib; ac_word=$2
2341 echo "$as_me:2341: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2343 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2344   echo $ECHO_N "(cached) $ECHO_C" >&6
2345 else
2346   if test -n "$ac_ct_RANLIB"; then
2347   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2348 else
2349   ac_save_IFS=$IFS; IFS=$ac_path_separator
2350 ac_dummy="$PATH"
2351 for ac_dir in $ac_dummy; do
2352   IFS=$ac_save_IFS
2353   test -z "$ac_dir" && ac_dir=.
2354   $as_executable_p "$ac_dir/$ac_word" || continue
2355 ac_cv_prog_ac_ct_RANLIB="ranlib"
2356 echo "$as_me:2356: found $ac_dir/$ac_word" >&5
2357 break
2358 done
2359
2360   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2361 fi
2362 fi
2363 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2364 if test -n "$ac_ct_RANLIB"; then
2365   echo "$as_me:2365: result: $ac_ct_RANLIB" >&5
2366 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2367 else
2368   echo "$as_me:2368: result: no" >&5
2369 echo "${ECHO_T}no" >&6
2370 fi
2371
2372   RANLIB=$ac_ct_RANLIB
2373 else
2374   RANLIB="$ac_cv_prog_RANLIB"
2375 fi
2376
2377         echo "$as_me:2377: checking for strerror in -lcposix" >&5
2378 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2379 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2380   echo $ECHO_N "(cached) $ECHO_C" >&6
2381 else
2382   ac_check_lib_save_LIBS=$LIBS
2383 LIBS="-lcposix  $LIBS"
2384 cat >conftest.$ac_ext <<_ACEOF
2385 #line 2385 "configure"
2386 #include "confdefs.h"
2387
2388 /* Override any gcc2 internal prototype to avoid an error.  */
2389 #ifdef __cplusplus
2390 extern "C"
2391 #endif
2392 /* We use char because int might match the return type of a gcc2
2393    builtin and then its argument prototype would still apply.  */
2394 char strerror ();
2395 int
2396 main ()
2397 {
2398 strerror ();
2399   ;
2400   return 0;
2401 }
2402 _ACEOF
2403 rm -f conftest.$ac_objext conftest$ac_exeext
2404 if { (eval echo "$as_me:2404: \"$ac_link\"") >&5
2405   (eval $ac_link) 2>&5
2406   ac_status=$?
2407   echo "$as_me:2407: \$? = $ac_status" >&5
2408   (exit $ac_status); } &&
2409          { ac_try='test -s conftest$ac_exeext'
2410   { (eval echo "$as_me:2410: \"$ac_try\"") >&5
2411   (eval $ac_try) 2>&5
2412   ac_status=$?
2413   echo "$as_me:2413: \$? = $ac_status" >&5
2414   (exit $ac_status); }; }; then
2415   ac_cv_lib_cposix_strerror=yes
2416 else
2417   echo "$as_me: failed program was:" >&5
2418 cat conftest.$ac_ext >&5
2419 ac_cv_lib_cposix_strerror=no
2420 fi
2421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2422 LIBS=$ac_check_lib_save_LIBS
2423 fi
2424 echo "$as_me:2424: result: $ac_cv_lib_cposix_strerror" >&5
2425 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2426 if test $ac_cv_lib_cposix_strerror = yes; then
2427   LIBS="$LIBS -lcposix"
2428 fi
2429
2430 echo "$as_me:2430: checking for ANSI C header files" >&5
2431 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2432 if test "${ac_cv_header_stdc+set}" = set; then
2433   echo $ECHO_N "(cached) $ECHO_C" >&6
2434 else
2435   cat >conftest.$ac_ext <<_ACEOF
2436 #line 2436 "configure"
2437 #include "confdefs.h"
2438 #include <stdlib.h>
2439 #include <stdarg.h>
2440 #include <string.h>
2441 #include <float.h>
2442
2443 _ACEOF
2444 if { (eval echo "$as_me:2444: \"$ac_cpp conftest.$ac_ext\"") >&5
2445   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2446   ac_status=$?
2447   egrep -v '^ *\+' conftest.er1 >conftest.err
2448   rm -f conftest.er1
2449   cat conftest.err >&5
2450   echo "$as_me:2450: \$? = $ac_status" >&5
2451   (exit $ac_status); } >/dev/null; then
2452   if test -s conftest.err; then
2453     ac_cpp_err=$ac_c_preproc_warn_flag
2454   else
2455     ac_cpp_err=
2456   fi
2457 else
2458   ac_cpp_err=yes
2459 fi
2460 if test -z "$ac_cpp_err"; then
2461   ac_cv_header_stdc=yes
2462 else
2463   echo "$as_me: failed program was:" >&5
2464   cat conftest.$ac_ext >&5
2465   ac_cv_header_stdc=no
2466 fi
2467 rm -f conftest.err conftest.$ac_ext
2468
2469 if test $ac_cv_header_stdc = yes; then
2470   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2471   cat >conftest.$ac_ext <<_ACEOF
2472 #line 2472 "configure"
2473 #include "confdefs.h"
2474 #include <string.h>
2475
2476 _ACEOF
2477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2478   egrep "memchr" >/dev/null 2>&1; then
2479   :
2480 else
2481   ac_cv_header_stdc=no
2482 fi
2483 rm -f conftest*
2484
2485 fi
2486
2487 if test $ac_cv_header_stdc = yes; then
2488   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2489   cat >conftest.$ac_ext <<_ACEOF
2490 #line 2490 "configure"
2491 #include "confdefs.h"
2492 #include <stdlib.h>
2493
2494 _ACEOF
2495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2496   egrep "free" >/dev/null 2>&1; then
2497   :
2498 else
2499   ac_cv_header_stdc=no
2500 fi
2501 rm -f conftest*
2502
2503 fi
2504
2505 if test $ac_cv_header_stdc = yes; then
2506   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2507   if test "$cross_compiling" = yes; then
2508   :
2509 else
2510   cat >conftest.$ac_ext <<_ACEOF
2511 #line 2511 "configure"
2512 #include "confdefs.h"
2513 #include <ctype.h>
2514 #if ((' ' & 0x0FF) == 0x020)
2515 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2516 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2517 #else
2518 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2519                      || ('j' <= (c) && (c) <= 'r') \
2520                      || ('s' <= (c) && (c) <= 'z'))
2521 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2522 #endif
2523
2524 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2525 int
2526 main ()
2527 {
2528   int i;
2529   for (i = 0; i < 256; i++)
2530     if (XOR (islower (i), ISLOWER (i))
2531         || toupper (i) != TOUPPER (i))
2532       exit(2);
2533   exit (0);
2534 }
2535 _ACEOF
2536 rm -f conftest$ac_exeext
2537 if { (eval echo "$as_me:2537: \"$ac_link\"") >&5
2538   (eval $ac_link) 2>&5
2539   ac_status=$?
2540   echo "$as_me:2540: \$? = $ac_status" >&5
2541   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2542   { (eval echo "$as_me:2542: \"$ac_try\"") >&5
2543   (eval $ac_try) 2>&5
2544   ac_status=$?
2545   echo "$as_me:2545: \$? = $ac_status" >&5
2546   (exit $ac_status); }; }; then
2547   :
2548 else
2549   echo "$as_me: program exited with status $ac_status" >&5
2550 echo "$as_me: failed program was:" >&5
2551 cat conftest.$ac_ext >&5
2552 ac_cv_header_stdc=no
2553 fi
2554 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2555 fi
2556 fi
2557 fi
2558 echo "$as_me:2558: result: $ac_cv_header_stdc" >&5
2559 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2560 if test $ac_cv_header_stdc = yes; then
2561
2562 cat >>confdefs.h <<\EOF
2563 #define STDC_HEADERS 1
2564 EOF
2565
2566 fi
2567
2568 echo "$as_me:2568: checking for $CC option to accept ANSI C" >&5
2569 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2570 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2571   echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573   ac_cv_prog_cc_stdc=no
2574 ac_save_CC=$CC
2575 cat >conftest.$ac_ext <<_ACEOF
2576 #line 2576 "configure"
2577 #include "confdefs.h"
2578 #include <stdarg.h>
2579 #include <stdio.h>
2580 #include <sys/types.h>
2581 #include <sys/stat.h>
2582 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2583 struct buf { int x; };
2584 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2585 static char *e (p, i)
2586      char **p;
2587      int i;
2588 {
2589   return p[i];
2590 }
2591 static char *f (char * (*g) (char **, int), char **p, ...)
2592 {
2593   char *s;
2594   va_list v;
2595   va_start (v,p);
2596   s = g (p, va_arg (v,int));
2597   va_end (v);
2598   return s;
2599 }
2600 int test (int i, double x);
2601 struct s1 {int (*f) (int a);};
2602 struct s2 {int (*f) (double a);};
2603 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2604 int argc;
2605 char **argv;
2606 int
2607 main ()
2608 {
2609 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2610   ;
2611   return 0;
2612 }
2613 _ACEOF
2614 # Don't try gcc -ansi; that turns off useful extensions and
2615 # breaks some systems' header files.
2616 # AIX                   -qlanglvl=ansi
2617 # Ultrix and OSF/1      -std1
2618 # HP-UX 10.20 and later -Ae
2619 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2620 # SVR4                  -Xc -D__EXTENSIONS__
2621 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2622 do
2623   CC="$ac_save_CC $ac_arg"
2624   rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:2625: \"$ac_compile\"") >&5
2626   (eval $ac_compile) 2>&5
2627   ac_status=$?
2628   echo "$as_me:2628: \$? = $ac_status" >&5
2629   (exit $ac_status); } &&
2630          { ac_try='test -s conftest.$ac_objext'
2631   { (eval echo "$as_me:2631: \"$ac_try\"") >&5
2632   (eval $ac_try) 2>&5
2633   ac_status=$?
2634   echo "$as_me:2634: \$? = $ac_status" >&5
2635   (exit $ac_status); }; }; then
2636   ac_cv_prog_cc_stdc=$ac_arg
2637 break
2638 else
2639   echo "$as_me: failed program was:" >&5
2640 cat conftest.$ac_ext >&5
2641 fi
2642 rm -f conftest.$ac_objext
2643 done
2644 rm -f conftest.$ac_ext conftest.$ac_objext
2645 CC=$ac_save_CC
2646
2647 fi
2648
2649 case "x$ac_cv_prog_cc_stdc" in
2650   x|xno)
2651     echo "$as_me:2651: result: none needed" >&5
2652 echo "${ECHO_T}none needed" >&6 ;;
2653   *)
2654     echo "$as_me:2654: result: $ac_cv_prog_cc_stdc" >&5
2655 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2656     CC="$CC $ac_cv_prog_cc_stdc" ;;
2657 esac
2658
2659 echo "$as_me:2659: checking for an ANSI C-conforming const" >&5
2660 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2661 if test "${ac_cv_c_const+set}" = set; then
2662   echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664   cat >conftest.$ac_ext <<_ACEOF
2665 #line 2665 "configure"
2666 #include "confdefs.h"
2667
2668 int
2669 main ()
2670 {
2671 /* FIXME: Include the comments suggested by Paul. */
2672 #ifndef __cplusplus
2673   /* Ultrix mips cc rejects this.  */
2674   typedef int charset[2];
2675   const charset x;
2676   /* SunOS 4.1.1 cc rejects this.  */
2677   char const *const *ccp;
2678   char **p;
2679   /* NEC SVR4.0.2 mips cc rejects this.  */
2680   struct point {int x, y;};
2681   static struct point const zero = {0,0};
2682   /* AIX XL C 1.02.0.0 rejects this.
2683      It does not let you subtract one const X* pointer from another in
2684      an arm of an if-expression whose if-part is not a constant
2685      expression */
2686   const char *g = "string";
2687   ccp = &g + (g ? g-g : 0);
2688   /* HPUX 7.0 cc rejects these. */
2689   ++ccp;
2690   p = (char**) ccp;
2691   ccp = (char const *const *) p;
2692   { /* SCO 3.2v4 cc rejects this.  */
2693     char *t;
2694     char const *s = 0 ? (char *) 0 : (char const *) 0;
2695
2696     *t++ = 0;
2697   }
2698   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2699     int x[] = {25, 17};
2700     const int *foo = &x[0];
2701     ++foo;
2702   }
2703   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2704     typedef const int *iptr;
2705     iptr p = 0;
2706     ++p;
2707   }
2708   { /* AIX XL C 1.02.0.0 rejects this saying
2709        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2710     struct s { int j; const int *ap[3]; };
2711     struct s *b; b->j = 5;
2712   }
2713   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2714     const int foo = 10;
2715   }
2716 #endif
2717
2718   ;
2719   return 0;
2720 }
2721 _ACEOF
2722 rm -f conftest.$ac_objext
2723 if { (eval echo "$as_me:2723: \"$ac_compile\"") >&5
2724   (eval $ac_compile) 2>&5
2725   ac_status=$?
2726   echo "$as_me:2726: \$? = $ac_status" >&5
2727   (exit $ac_status); } &&
2728          { ac_try='test -s conftest.$ac_objext'
2729   { (eval echo "$as_me:2729: \"$ac_try\"") >&5
2730   (eval $ac_try) 2>&5
2731   ac_status=$?
2732   echo "$as_me:2732: \$? = $ac_status" >&5
2733   (exit $ac_status); }; }; then
2734   ac_cv_c_const=yes
2735 else
2736   echo "$as_me: failed program was:" >&5
2737 cat conftest.$ac_ext >&5
2738 ac_cv_c_const=no
2739 fi
2740 rm -f conftest.$ac_objext conftest.$ac_ext
2741 fi
2742 echo "$as_me:2742: result: $ac_cv_c_const" >&5
2743 echo "${ECHO_T}$ac_cv_c_const" >&6
2744 if test $ac_cv_c_const = no; then
2745
2746 cat >>confdefs.h <<\EOF
2747 #define const
2748 EOF
2749
2750 fi
2751
2752 echo "$as_me:2752: checking for inline" >&5
2753 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2754 if test "${ac_cv_c_inline+set}" = set; then
2755   echo $ECHO_N "(cached) $ECHO_C" >&6
2756 else
2757   ac_cv_c_inline=no
2758 for ac_kw in inline __inline__ __inline; do
2759   cat >conftest.$ac_ext <<_ACEOF
2760 #line 2760 "configure"
2761 #include "confdefs.h"
2762 #ifndef __cplusplus
2763 static $ac_kw int static_foo () {return 0; }
2764 $ac_kw int foo () {return 0; }
2765 #endif
2766
2767 _ACEOF
2768 rm -f conftest.$ac_objext
2769 if { (eval echo "$as_me:2769: \"$ac_compile\"") >&5
2770   (eval $ac_compile) 2>&5
2771   ac_status=$?
2772   echo "$as_me:2772: \$? = $ac_status" >&5
2773   (exit $ac_status); } &&
2774          { ac_try='test -s conftest.$ac_objext'
2775   { (eval echo "$as_me:2775: \"$ac_try\"") >&5
2776   (eval $ac_try) 2>&5
2777   ac_status=$?
2778   echo "$as_me:2778: \$? = $ac_status" >&5
2779   (exit $ac_status); }; }; then
2780   ac_cv_c_inline=$ac_kw; break
2781 else
2782   echo "$as_me: failed program was:" >&5
2783 cat conftest.$ac_ext >&5
2784 fi
2785 rm -f conftest.$ac_objext conftest.$ac_ext
2786 done
2787
2788 fi
2789 echo "$as_me:2789: result: $ac_cv_c_inline" >&5
2790 echo "${ECHO_T}$ac_cv_c_inline" >&6
2791 case $ac_cv_c_inline in
2792   inline | yes) ;;
2793   no)
2794 cat >>confdefs.h <<\EOF
2795 #define inline
2796 EOF
2797  ;;
2798   *)  cat >>confdefs.h <<EOF
2799 #define inline $ac_cv_c_inline
2800 EOF
2801  ;;
2802 esac
2803
2804 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2805
2806 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2807                   inttypes.h stdint.h unistd.h
2808 do
2809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2810 echo "$as_me:2810: checking for $ac_header" >&5
2811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2813   echo $ECHO_N "(cached) $ECHO_C" >&6
2814 else
2815   cat >conftest.$ac_ext <<_ACEOF
2816 #line 2816 "configure"
2817 #include "confdefs.h"
2818 $ac_includes_default
2819 #include <$ac_header>
2820 _ACEOF
2821 rm -f conftest.$ac_objext
2822 if { (eval echo "$as_me:2822: \"$ac_compile\"") >&5
2823   (eval $ac_compile) 2>&5
2824   ac_status=$?
2825   echo "$as_me:2825: \$? = $ac_status" >&5
2826   (exit $ac_status); } &&
2827          { ac_try='test -s conftest.$ac_objext'
2828   { (eval echo "$as_me:2828: \"$ac_try\"") >&5
2829   (eval $ac_try) 2>&5
2830   ac_status=$?
2831   echo "$as_me:2831: \$? = $ac_status" >&5
2832   (exit $ac_status); }; }; then
2833   eval "$as_ac_Header=yes"
2834 else
2835   echo "$as_me: failed program was:" >&5
2836 cat conftest.$ac_ext >&5
2837 eval "$as_ac_Header=no"
2838 fi
2839 rm -f conftest.$ac_objext conftest.$ac_ext
2840 fi
2841 echo "$as_me:2841: result: `eval echo '${'$as_ac_Header'}'`" >&5
2842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2844   cat >>confdefs.h <<EOF
2845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2846 EOF
2847
2848 fi
2849 done
2850
2851 echo "$as_me:2851: checking for off_t" >&5
2852 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
2853 if test "${ac_cv_type_off_t+set}" = set; then
2854   echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856   cat >conftest.$ac_ext <<_ACEOF
2857 #line 2857 "configure"
2858 #include "confdefs.h"
2859 $ac_includes_default
2860 int
2861 main ()
2862 {
2863 if ((off_t *) 0)
2864   return 0;
2865 if (sizeof (off_t))
2866   return 0;
2867   ;
2868   return 0;
2869 }
2870 _ACEOF
2871 rm -f conftest.$ac_objext
2872 if { (eval echo "$as_me:2872: \"$ac_compile\"") >&5
2873   (eval $ac_compile) 2>&5
2874   ac_status=$?
2875   echo "$as_me:2875: \$? = $ac_status" >&5
2876   (exit $ac_status); } &&
2877          { ac_try='test -s conftest.$ac_objext'
2878   { (eval echo "$as_me:2878: \"$ac_try\"") >&5
2879   (eval $ac_try) 2>&5
2880   ac_status=$?
2881   echo "$as_me:2881: \$? = $ac_status" >&5
2882   (exit $ac_status); }; }; then
2883   ac_cv_type_off_t=yes
2884 else
2885   echo "$as_me: failed program was:" >&5
2886 cat conftest.$ac_ext >&5
2887 ac_cv_type_off_t=no
2888 fi
2889 rm -f conftest.$ac_objext conftest.$ac_ext
2890 fi
2891 echo "$as_me:2891: result: $ac_cv_type_off_t" >&5
2892 echo "${ECHO_T}$ac_cv_type_off_t" >&6
2893 if test $ac_cv_type_off_t = yes; then
2894   :
2895 else
2896
2897 cat >>confdefs.h <<EOF
2898 #define off_t long
2899 EOF
2900
2901 fi
2902
2903 echo "$as_me:2903: checking for size_t" >&5
2904 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2905 if test "${ac_cv_type_size_t+set}" = set; then
2906   echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908   cat >conftest.$ac_ext <<_ACEOF
2909 #line 2909 "configure"
2910 #include "confdefs.h"
2911 $ac_includes_default
2912 int
2913 main ()
2914 {
2915 if ((size_t *) 0)
2916   return 0;
2917 if (sizeof (size_t))
2918   return 0;
2919   ;
2920   return 0;
2921 }
2922 _ACEOF
2923 rm -f conftest.$ac_objext
2924 if { (eval echo "$as_me:2924: \"$ac_compile\"") >&5
2925   (eval $ac_compile) 2>&5
2926   ac_status=$?
2927   echo "$as_me:2927: \$? = $ac_status" >&5
2928   (exit $ac_status); } &&
2929          { ac_try='test -s conftest.$ac_objext'
2930   { (eval echo "$as_me:2930: \"$ac_try\"") >&5
2931   (eval $ac_try) 2>&5
2932   ac_status=$?
2933   echo "$as_me:2933: \$? = $ac_status" >&5
2934   (exit $ac_status); }; }; then
2935   ac_cv_type_size_t=yes
2936 else
2937   echo "$as_me: failed program was:" >&5
2938 cat conftest.$ac_ext >&5
2939 ac_cv_type_size_t=no
2940 fi
2941 rm -f conftest.$ac_objext conftest.$ac_ext
2942 fi
2943 echo "$as_me:2943: result: $ac_cv_type_size_t" >&5
2944 echo "${ECHO_T}$ac_cv_type_size_t" >&6
2945 if test $ac_cv_type_size_t = yes; then
2946   :
2947 else
2948
2949 cat >>confdefs.h <<EOF
2950 #define size_t unsigned
2951 EOF
2952
2953 fi
2954
2955 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2956 # for constant arguments.  Useless!
2957 echo "$as_me:2957: checking for working alloca.h" >&5
2958 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
2959 if test "${ac_cv_working_alloca_h+set}" = set; then
2960   echo $ECHO_N "(cached) $ECHO_C" >&6
2961 else
2962   cat >conftest.$ac_ext <<_ACEOF
2963 #line 2963 "configure"
2964 #include "confdefs.h"
2965 #include <alloca.h>
2966 int
2967 main ()
2968 {
2969 char *p = (char *) alloca (2 * sizeof (int));
2970   ;
2971   return 0;
2972 }
2973 _ACEOF
2974 rm -f conftest.$ac_objext conftest$ac_exeext
2975 if { (eval echo "$as_me:2975: \"$ac_link\"") >&5
2976   (eval $ac_link) 2>&5
2977   ac_status=$?
2978   echo "$as_me:2978: \$? = $ac_status" >&5
2979   (exit $ac_status); } &&
2980          { ac_try='test -s conftest$ac_exeext'
2981   { (eval echo "$as_me:2981: \"$ac_try\"") >&5
2982   (eval $ac_try) 2>&5
2983   ac_status=$?
2984   echo "$as_me:2984: \$? = $ac_status" >&5
2985   (exit $ac_status); }; }; then
2986   ac_cv_working_alloca_h=yes
2987 else
2988   echo "$as_me: failed program was:" >&5
2989 cat conftest.$ac_ext >&5
2990 ac_cv_working_alloca_h=no
2991 fi
2992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2993 fi
2994 echo "$as_me:2994: result: $ac_cv_working_alloca_h" >&5
2995 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
2996 if test $ac_cv_working_alloca_h = yes; then
2997
2998 cat >>confdefs.h <<\EOF
2999 #define HAVE_ALLOCA_H 1
3000 EOF
3001
3002 fi
3003
3004 echo "$as_me:3004: checking for alloca" >&5
3005 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3006 if test "${ac_cv_func_alloca_works+set}" = set; then
3007   echo $ECHO_N "(cached) $ECHO_C" >&6
3008 else
3009   cat >conftest.$ac_ext <<_ACEOF
3010 #line 3010 "configure"
3011 #include "confdefs.h"
3012 #ifdef __GNUC__
3013 # define alloca __builtin_alloca
3014 #else
3015 # ifdef _MSC_VER
3016 #  include <malloc.h>
3017 #  define alloca _alloca
3018 # else
3019 #  if HAVE_ALLOCA_H
3020 #   include <alloca.h>
3021 #  else
3022 #   ifdef _AIX
3023  #pragma alloca
3024 #   else
3025 #    ifndef alloca /* predefined by HP cc +Olibcalls */
3026 char *alloca ();
3027 #    endif
3028 #   endif
3029 #  endif
3030 # endif
3031 #endif
3032
3033 int
3034 main ()
3035 {
3036 char *p = (char *) alloca (1);
3037   ;
3038   return 0;
3039 }
3040 _ACEOF
3041 rm -f conftest.$ac_objext conftest$ac_exeext
3042 if { (eval echo "$as_me:3042: \"$ac_link\"") >&5
3043   (eval $ac_link) 2>&5
3044   ac_status=$?
3045   echo "$as_me:3045: \$? = $ac_status" >&5
3046   (exit $ac_status); } &&
3047          { ac_try='test -s conftest$ac_exeext'
3048   { (eval echo "$as_me:3048: \"$ac_try\"") >&5
3049   (eval $ac_try) 2>&5
3050   ac_status=$?
3051   echo "$as_me:3051: \$? = $ac_status" >&5
3052   (exit $ac_status); }; }; then
3053   ac_cv_func_alloca_works=yes
3054 else
3055   echo "$as_me: failed program was:" >&5
3056 cat conftest.$ac_ext >&5
3057 ac_cv_func_alloca_works=no
3058 fi
3059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3060 fi
3061 echo "$as_me:3061: result: $ac_cv_func_alloca_works" >&5
3062 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3063
3064 if test $ac_cv_func_alloca_works = yes; then
3065
3066 cat >>confdefs.h <<\EOF
3067 #define HAVE_ALLOCA 1
3068 EOF
3069
3070 else
3071   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3072 # that cause trouble.  Some versions do not even contain alloca or
3073 # contain a buggy version.  If you still want to use their alloca,
3074 # use ar to extract alloca.o from them instead of compiling alloca.c.
3075
3076 ALLOCA=alloca.$ac_objext
3077
3078 cat >>confdefs.h <<\EOF
3079 #define C_ALLOCA 1
3080 EOF
3081
3082 echo "$as_me:3082: checking whether \`alloca.c' needs Cray hooks" >&5
3083 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3084 if test "${ac_cv_os_cray+set}" = set; then
3085   echo $ECHO_N "(cached) $ECHO_C" >&6
3086 else
3087   cat >conftest.$ac_ext <<_ACEOF
3088 #line 3088 "configure"
3089 #include "confdefs.h"
3090 #if defined(CRAY) && ! defined(CRAY2)
3091 webecray
3092 #else
3093 wenotbecray
3094 #endif
3095
3096 _ACEOF
3097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3098   egrep "webecray" >/dev/null 2>&1; then
3099   ac_cv_os_cray=yes
3100 else
3101   ac_cv_os_cray=no
3102 fi
3103 rm -f conftest*
3104
3105 fi
3106 echo "$as_me:3106: result: $ac_cv_os_cray" >&5
3107 echo "${ECHO_T}$ac_cv_os_cray" >&6
3108 if test $ac_cv_os_cray = yes; then
3109   for ac_func in _getb67 GETB67 getb67; do
3110     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3111 echo "$as_me:3111: checking for $ac_func" >&5
3112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3113 if eval "test \"\${$as_ac_var+set}\" = set"; then
3114   echo $ECHO_N "(cached) $ECHO_C" >&6
3115 else
3116   cat >conftest.$ac_ext <<_ACEOF
3117 #line 3117 "configure"
3118 #include "confdefs.h"
3119 /* System header to define __stub macros and hopefully few prototypes,
3120     which can conflict with char $ac_func (); below.  */
3121 #include <assert.h>
3122 /* Override any gcc2 internal prototype to avoid an error.  */
3123 #ifdef __cplusplus
3124 extern "C"
3125 #endif
3126 /* We use char because int might match the return type of a gcc2
3127    builtin and then its argument prototype would still apply.  */
3128 char $ac_func ();
3129 char (*f) ();
3130
3131 int
3132 main ()
3133 {
3134 /* The GNU C library defines this for functions which it implements
3135     to always fail with ENOSYS.  Some functions are actually named
3136     something starting with __ and the normal name is an alias.  */
3137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3138 choke me
3139 #else
3140 f = $ac_func;
3141 #endif
3142
3143   ;
3144   return 0;
3145 }
3146 _ACEOF
3147 rm -f conftest.$ac_objext conftest$ac_exeext
3148 if { (eval echo "$as_me:3148: \"$ac_link\"") >&5
3149   (eval $ac_link) 2>&5
3150   ac_status=$?
3151   echo "$as_me:3151: \$? = $ac_status" >&5
3152   (exit $ac_status); } &&
3153          { ac_try='test -s conftest$ac_exeext'
3154   { (eval echo "$as_me:3154: \"$ac_try\"") >&5
3155   (eval $ac_try) 2>&5
3156   ac_status=$?
3157   echo "$as_me:3157: \$? = $ac_status" >&5
3158   (exit $ac_status); }; }; then
3159   eval "$as_ac_var=yes"
3160 else
3161   echo "$as_me: failed program was:" >&5
3162 cat conftest.$ac_ext >&5
3163 eval "$as_ac_var=no"
3164 fi
3165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3166 fi
3167 echo "$as_me:3167: result: `eval echo '${'$as_ac_var'}'`" >&5
3168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3169 if test `eval echo '${'$as_ac_var'}'` = yes; then
3170
3171 cat >>confdefs.h <<EOF
3172 #define CRAY_STACKSEG_END $ac_func
3173 EOF
3174
3175     break
3176 fi
3177
3178   done
3179 fi
3180
3181 echo "$as_me:3181: checking stack direction for C alloca" >&5
3182 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3183 if test "${ac_cv_c_stack_direction+set}" = set; then
3184   echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
3186   if test "$cross_compiling" = yes; then
3187   ac_cv_c_stack_direction=0
3188 else
3189   cat >conftest.$ac_ext <<_ACEOF
3190 #line 3190 "configure"
3191 #include "confdefs.h"
3192 int
3193 find_stack_direction ()
3194 {
3195   static char *addr = 0;
3196   auto char dummy;
3197   if (addr == 0)
3198     {
3199       addr = &dummy;
3200       return find_stack_direction ();
3201     }
3202   else
3203     return (&dummy > addr) ? 1 : -1;
3204 }
3205
3206 int
3207 main ()
3208 {
3209   exit (find_stack_direction () < 0);
3210 }
3211 _ACEOF
3212 rm -f conftest$ac_exeext
3213 if { (eval echo "$as_me:3213: \"$ac_link\"") >&5
3214   (eval $ac_link) 2>&5
3215   ac_status=$?
3216   echo "$as_me:3216: \$? = $ac_status" >&5
3217   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3218   { (eval echo "$as_me:3218: \"$ac_try\"") >&5
3219   (eval $ac_try) 2>&5
3220   ac_status=$?
3221   echo "$as_me:3221: \$? = $ac_status" >&5
3222   (exit $ac_status); }; }; then
3223   ac_cv_c_stack_direction=1
3224 else
3225   echo "$as_me: program exited with status $ac_status" >&5
3226 echo "$as_me: failed program was:" >&5
3227 cat conftest.$ac_ext >&5
3228 ac_cv_c_stack_direction=-1
3229 fi
3230 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3231 fi
3232 fi
3233 echo "$as_me:3233: result: $ac_cv_c_stack_direction" >&5
3234 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3235
3236 cat >>confdefs.h <<EOF
3237 #define STACK_DIRECTION $ac_cv_c_stack_direction
3238 EOF
3239
3240 fi
3241
3242 for ac_header in stdlib.h unistd.h
3243 do
3244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3245 echo "$as_me:3245: checking for $ac_header" >&5
3246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3248   echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250   cat >conftest.$ac_ext <<_ACEOF
3251 #line 3251 "configure"
3252 #include "confdefs.h"
3253 #include <$ac_header>
3254 _ACEOF
3255 if { (eval echo "$as_me:3255: \"$ac_cpp conftest.$ac_ext\"") >&5
3256   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3257   ac_status=$?
3258   egrep -v '^ *\+' conftest.er1 >conftest.err
3259   rm -f conftest.er1
3260   cat conftest.err >&5
3261   echo "$as_me:3261: \$? = $ac_status" >&5
3262   (exit $ac_status); } >/dev/null; then
3263   if test -s conftest.err; then
3264     ac_cpp_err=$ac_c_preproc_warn_flag
3265   else
3266     ac_cpp_err=
3267   fi
3268 else
3269   ac_cpp_err=yes
3270 fi
3271 if test -z "$ac_cpp_err"; then
3272   eval "$as_ac_Header=yes"
3273 else
3274   echo "$as_me: failed program was:" >&5
3275   cat conftest.$ac_ext >&5
3276   eval "$as_ac_Header=no"
3277 fi
3278 rm -f conftest.err conftest.$ac_ext
3279 fi
3280 echo "$as_me:3280: result: `eval echo '${'$as_ac_Header'}'`" >&5
3281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3283   cat >>confdefs.h <<EOF
3284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3285 EOF
3286
3287 fi
3288 done
3289
3290 for ac_func in getpagesize
3291 do
3292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3293 echo "$as_me:3293: checking for $ac_func" >&5
3294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3295 if eval "test \"\${$as_ac_var+set}\" = set"; then
3296   echo $ECHO_N "(cached) $ECHO_C" >&6
3297 else
3298   cat >conftest.$ac_ext <<_ACEOF
3299 #line 3299 "configure"
3300 #include "confdefs.h"
3301 /* System header to define __stub macros and hopefully few prototypes,
3302     which can conflict with char $ac_func (); below.  */
3303 #include <assert.h>
3304 /* Override any gcc2 internal prototype to avoid an error.  */
3305 #ifdef __cplusplus
3306 extern "C"
3307 #endif
3308 /* We use char because int might match the return type of a gcc2
3309    builtin and then its argument prototype would still apply.  */
3310 char $ac_func ();
3311 char (*f) ();
3312
3313 int
3314 main ()
3315 {
3316 /* The GNU C library defines this for functions which it implements
3317     to always fail with ENOSYS.  Some functions are actually named
3318     something starting with __ and the normal name is an alias.  */
3319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3320 choke me
3321 #else
3322 f = $ac_func;
3323 #endif
3324
3325   ;
3326   return 0;
3327 }
3328 _ACEOF
3329 rm -f conftest.$ac_objext conftest$ac_exeext
3330 if { (eval echo "$as_me:3330: \"$ac_link\"") >&5
3331   (eval $ac_link) 2>&5
3332   ac_status=$?
3333   echo "$as_me:3333: \$? = $ac_status" >&5
3334   (exit $ac_status); } &&
3335          { ac_try='test -s conftest$ac_exeext'
3336   { (eval echo "$as_me:3336: \"$ac_try\"") >&5
3337   (eval $ac_try) 2>&5
3338   ac_status=$?
3339   echo "$as_me:3339: \$? = $ac_status" >&5
3340   (exit $ac_status); }; }; then
3341   eval "$as_ac_var=yes"
3342 else
3343   echo "$as_me: failed program was:" >&5
3344 cat conftest.$ac_ext >&5
3345 eval "$as_ac_var=no"
3346 fi
3347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3348 fi
3349 echo "$as_me:3349: result: `eval echo '${'$as_ac_var'}'`" >&5
3350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3351 if test `eval echo '${'$as_ac_var'}'` = yes; then
3352   cat >>confdefs.h <<EOF
3353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3354 EOF
3355
3356 fi
3357 done
3358
3359 echo "$as_me:3359: checking for working mmap" >&5
3360 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
3361 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3362   echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364   if test "$cross_compiling" = yes; then
3365   ac_cv_func_mmap_fixed_mapped=no
3366 else
3367   cat >conftest.$ac_ext <<_ACEOF
3368 #line 3368 "configure"
3369 #include "confdefs.h"
3370 $ac_includes_default
3371 /* Thanks to Mike Haertel and Jim Avera for this test.
3372    Here is a matrix of mmap possibilities:
3373         mmap private not fixed
3374         mmap private fixed at somewhere currently unmapped
3375         mmap private fixed at somewhere already mapped
3376         mmap shared not fixed
3377         mmap shared fixed at somewhere currently unmapped
3378         mmap shared fixed at somewhere already mapped
3379    For private mappings, we should verify that changes cannot be read()
3380    back from the file, nor mmap's back from the file at a different
3381    address.  (There have been systems where private was not correctly
3382    implemented like the infamous i386 svr4.0, and systems where the
3383    VM page cache was not coherent with the file system buffer cache
3384    like early versions of FreeBSD and possibly contemporary NetBSD.)
3385    For shared mappings, we should conversely verify that changes get
3386    propogated back to all the places they're supposed to be.
3387
3388    Grep wants private fixed already mapped.
3389    The main things grep needs to know about mmap are:
3390    * does it exist and is it safe to write into the mmap'd area
3391    * how to use it (BSD variants)  */
3392
3393 #include <fcntl.h>
3394 #include <sys/mman.h>
3395
3396 #if !STDC_HEADERS && !HAVE_STDLIB_H
3397 char *malloc ();
3398 #endif
3399
3400 /* This mess was copied from the GNU getpagesize.h.  */
3401 #if !HAVE_GETPAGESIZE
3402 /* Assume that all systems that can run configure have sys/param.h.  */
3403 # if !HAVE_SYS_PARAM_H
3404 #  define HAVE_SYS_PARAM_H 1
3405 # endif
3406
3407 # ifdef _SC_PAGESIZE
3408 #  define getpagesize() sysconf(_SC_PAGESIZE)
3409 # else /* no _SC_PAGESIZE */
3410 #  if HAVE_SYS_PARAM_H
3411 #   include <sys/param.h>
3412 #   ifdef EXEC_PAGESIZE
3413 #    define getpagesize() EXEC_PAGESIZE
3414 #   else /* no EXEC_PAGESIZE */
3415 #    ifdef NBPG
3416 #     define getpagesize() NBPG * CLSIZE
3417 #     ifndef CLSIZE
3418 #      define CLSIZE 1
3419 #     endif /* no CLSIZE */
3420 #    else /* no NBPG */
3421 #     ifdef NBPC
3422 #      define getpagesize() NBPC
3423 #     else /* no NBPC */
3424 #      ifdef PAGESIZE
3425 #       define getpagesize() PAGESIZE
3426 #      endif /* PAGESIZE */
3427 #     endif /* no NBPC */
3428 #    endif /* no NBPG */
3429 #   endif /* no EXEC_PAGESIZE */
3430 #  else /* no HAVE_SYS_PARAM_H */
3431 #   define getpagesize() 8192   /* punt totally */
3432 #  endif /* no HAVE_SYS_PARAM_H */
3433 # endif /* no _SC_PAGESIZE */
3434
3435 #endif /* no HAVE_GETPAGESIZE */
3436
3437 int
3438 main ()
3439 {
3440   char *data, *data2, *data3;
3441   int i, pagesize;
3442   int fd;
3443
3444   pagesize = getpagesize ();
3445
3446   /* First, make a file with some known garbage in it. */
3447   data = (char *) malloc (pagesize);
3448   if (!data)
3449     exit (1);
3450   for (i = 0; i < pagesize; ++i)
3451     *(data + i) = rand ();
3452   umask (0);
3453   fd = creat ("conftest.mmap", 0600);
3454   if (fd < 0)
3455     exit (1);
3456   if (write (fd, data, pagesize) != pagesize)
3457     exit (1);
3458   close (fd);
3459
3460   /* Next, try to mmap the file at a fixed address which already has
3461      something else allocated at it.  If we can, also make sure that
3462      we see the same garbage.  */
3463   fd = open ("conftest.mmap", O_RDWR);
3464   if (fd < 0)
3465     exit (1);
3466   data2 = (char *) malloc (2 * pagesize);
3467   if (!data2)
3468     exit (1);
3469   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3470   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3471                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
3472     exit (1);
3473   for (i = 0; i < pagesize; ++i)
3474     if (*(data + i) != *(data2 + i))
3475       exit (1);
3476
3477   /* Finally, make sure that changes to the mapped area do not
3478      percolate back to the file as seen by read().  (This is a bug on
3479      some variants of i386 svr4.0.)  */
3480   for (i = 0; i < pagesize; ++i)
3481     *(data2 + i) = *(data2 + i) + 1;
3482   data3 = (char *) malloc (pagesize);
3483   if (!data3)
3484     exit (1);
3485   if (read (fd, data3, pagesize) != pagesize)
3486     exit (1);
3487   for (i = 0; i < pagesize; ++i)
3488     if (*(data + i) != *(data3 + i))
3489       exit (1);
3490   close (fd);
3491   exit (0);
3492 }
3493 _ACEOF
3494 rm -f conftest$ac_exeext
3495 if { (eval echo "$as_me:3495: \"$ac_link\"") >&5
3496   (eval $ac_link) 2>&5
3497   ac_status=$?
3498   echo "$as_me:3498: \$? = $ac_status" >&5
3499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3500   { (eval echo "$as_me:3500: \"$ac_try\"") >&5
3501   (eval $ac_try) 2>&5
3502   ac_status=$?
3503   echo "$as_me:3503: \$? = $ac_status" >&5
3504   (exit $ac_status); }; }; then
3505   ac_cv_func_mmap_fixed_mapped=yes
3506 else
3507   echo "$as_me: program exited with status $ac_status" >&5
3508 echo "$as_me: failed program was:" >&5
3509 cat conftest.$ac_ext >&5
3510 ac_cv_func_mmap_fixed_mapped=no
3511 fi
3512 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3513 fi
3514 fi
3515 echo "$as_me:3515: result: $ac_cv_func_mmap_fixed_mapped" >&5
3516 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3517 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3518
3519 cat >>confdefs.h <<\EOF
3520 #define HAVE_MMAP 1
3521 EOF
3522
3523 fi
3524 rm -f conftest.mmap
3525
3526     echo "$as_me:3526: checking whether we are using the GNU C Library 2.1 or newer" >&5
3527 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
3528 if test "${ac_cv_gnu_library_2_1+set}" = set; then
3529   echo $ECHO_N "(cached) $ECHO_C" >&6
3530 else
3531   cat >conftest.$ac_ext <<_ACEOF
3532 #line 3532 "configure"
3533 #include "confdefs.h"
3534
3535 #include <features.h>
3536 #ifdef __GNU_LIBRARY__
3537  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
3538   Lucky GNU user
3539  #endif
3540 #endif
3541
3542 _ACEOF
3543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3544   egrep "Lucky GNU user" >/dev/null 2>&1; then
3545   ac_cv_gnu_library_2_1=yes
3546 else
3547   ac_cv_gnu_library_2_1=no
3548 fi
3549 rm -f conftest*
3550
3551 fi
3552 echo "$as_me:3552: result: $ac_cv_gnu_library_2_1" >&5
3553 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
3554
3555     GLIBC21="$ac_cv_gnu_library_2_1"
3556
3557 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
3558 stdlib.h string.h unistd.h sys/param.h
3559 do
3560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3561 echo "$as_me:3561: checking for $ac_header" >&5
3562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3564   echo $ECHO_N "(cached) $ECHO_C" >&6
3565 else
3566   cat >conftest.$ac_ext <<_ACEOF
3567 #line 3567 "configure"
3568 #include "confdefs.h"
3569 #include <$ac_header>
3570 _ACEOF
3571 if { (eval echo "$as_me:3571: \"$ac_cpp conftest.$ac_ext\"") >&5
3572   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3573   ac_status=$?
3574   egrep -v '^ *\+' conftest.er1 >conftest.err
3575   rm -f conftest.er1
3576   cat conftest.err >&5
3577   echo "$as_me:3577: \$? = $ac_status" >&5
3578   (exit $ac_status); } >/dev/null; then
3579   if test -s conftest.err; then
3580     ac_cpp_err=$ac_c_preproc_warn_flag
3581   else
3582     ac_cpp_err=
3583   fi
3584 else
3585   ac_cpp_err=yes
3586 fi
3587 if test -z "$ac_cpp_err"; then
3588   eval "$as_ac_Header=yes"
3589 else
3590   echo "$as_me: failed program was:" >&5
3591   cat conftest.$ac_ext >&5
3592   eval "$as_ac_Header=no"
3593 fi
3594 rm -f conftest.err conftest.$ac_ext
3595 fi
3596 echo "$as_me:3596: result: `eval echo '${'$as_ac_Header'}'`" >&5
3597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3599   cat >>confdefs.h <<EOF
3600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3601 EOF
3602
3603 fi
3604 done
3605
3606 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
3607 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
3608 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
3609 do
3610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3611 echo "$as_me:3611: checking for $ac_func" >&5
3612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3613 if eval "test \"\${$as_ac_var+set}\" = set"; then
3614   echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616   cat >conftest.$ac_ext <<_ACEOF
3617 #line 3617 "configure"
3618 #include "confdefs.h"
3619 /* System header to define __stub macros and hopefully few prototypes,
3620     which can conflict with char $ac_func (); below.  */
3621 #include <assert.h>
3622 /* Override any gcc2 internal prototype to avoid an error.  */
3623 #ifdef __cplusplus
3624 extern "C"
3625 #endif
3626 /* We use char because int might match the return type of a gcc2
3627    builtin and then its argument prototype would still apply.  */
3628 char $ac_func ();
3629 char (*f) ();
3630
3631 int
3632 main ()
3633 {
3634 /* The GNU C library defines this for functions which it implements
3635     to always fail with ENOSYS.  Some functions are actually named
3636     something starting with __ and the normal name is an alias.  */
3637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3638 choke me
3639 #else
3640 f = $ac_func;
3641 #endif
3642
3643   ;
3644   return 0;
3645 }
3646 _ACEOF
3647 rm -f conftest.$ac_objext conftest$ac_exeext
3648 if { (eval echo "$as_me:3648: \"$ac_link\"") >&5
3649   (eval $ac_link) 2>&5
3650   ac_status=$?
3651   echo "$as_me:3651: \$? = $ac_status" >&5
3652   (exit $ac_status); } &&
3653          { ac_try='test -s conftest$ac_exeext'
3654   { (eval echo "$as_me:3654: \"$ac_try\"") >&5
3655   (eval $ac_try) 2>&5
3656   ac_status=$?
3657   echo "$as_me:3657: \$? = $ac_status" >&5
3658   (exit $ac_status); }; }; then
3659   eval "$as_ac_var=yes"
3660 else
3661   echo "$as_me: failed program was:" >&5
3662 cat conftest.$ac_ext >&5
3663 eval "$as_ac_var=no"
3664 fi
3665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3666 fi
3667 echo "$as_me:3667: result: `eval echo '${'$as_ac_var'}'`" >&5
3668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3669 if test `eval echo '${'$as_ac_var'}'` = yes; then
3670   cat >>confdefs.h <<EOF
3671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3672 EOF
3673
3674 fi
3675 done
3676
3677 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3678 if test "${with_libiconv_prefix+set}" = set; then
3679   withval="$with_libiconv_prefix"
3680
3681     for dir in `echo "$withval" | tr : ' '`; do
3682       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
3683       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
3684     done
3685
3686 fi;
3687
3688   echo "$as_me:3688: checking for iconv" >&5
3689 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
3690 if test "${am_cv_func_iconv+set}" = set; then
3691   echo $ECHO_N "(cached) $ECHO_C" >&6
3692 else
3693
3694     am_cv_func_iconv="no, consider installing GNU libiconv"
3695     am_cv_lib_iconv=no
3696     cat >conftest.$ac_ext <<_ACEOF
3697 #line 3697 "configure"
3698 #include "confdefs.h"
3699 #include <stdlib.h>
3700 #include <iconv.h>
3701 int
3702 main ()
3703 {
3704 iconv_t cd = iconv_open("","");
3705        iconv(cd,NULL,NULL,NULL,NULL);
3706        iconv_close(cd);
3707   ;
3708   return 0;
3709 }
3710 _ACEOF
3711 rm -f conftest.$ac_objext conftest$ac_exeext
3712 if { (eval echo "$as_me:3712: \"$ac_link\"") >&5
3713   (eval $ac_link) 2>&5
3714   ac_status=$?
3715   echo "$as_me:3715: \$? = $ac_status" >&5
3716   (exit $ac_status); } &&
3717          { ac_try='test -s conftest$ac_exeext'
3718   { (eval echo "$as_me:3718: \"$ac_try\"") >&5
3719   (eval $ac_try) 2>&5
3720   ac_status=$?
3721   echo "$as_me:3721: \$? = $ac_status" >&5
3722   (exit $ac_status); }; }; then
3723   am_cv_func_iconv=yes
3724 else
3725   echo "$as_me: failed program was:" >&5
3726 cat conftest.$ac_ext >&5
3727 fi
3728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3729     if test "$am_cv_func_iconv" != yes; then
3730       am_save_LIBS="$LIBS"
3731       LIBS="$LIBS -liconv"
3732       cat >conftest.$ac_ext <<_ACEOF
3733 #line 3733 "configure"
3734 #include "confdefs.h"
3735 #include <stdlib.h>
3736 #include <iconv.h>
3737 int
3738 main ()
3739 {
3740 iconv_t cd = iconv_open("","");
3741          iconv(cd,NULL,NULL,NULL,NULL);
3742          iconv_close(cd);
3743   ;
3744   return 0;
3745 }
3746 _ACEOF
3747 rm -f conftest.$ac_objext conftest$ac_exeext
3748 if { (eval echo "$as_me:3748: \"$ac_link\"") >&5
3749   (eval $ac_link) 2>&5
3750   ac_status=$?
3751   echo "$as_me:3751: \$? = $ac_status" >&5
3752   (exit $ac_status); } &&
3753          { ac_try='test -s conftest$ac_exeext'
3754   { (eval echo "$as_me:3754: \"$ac_try\"") >&5
3755   (eval $ac_try) 2>&5
3756   ac_status=$?
3757   echo "$as_me:3757: \$? = $ac_status" >&5
3758   (exit $ac_status); }; }; then
3759   am_cv_lib_iconv=yes
3760         am_cv_func_iconv=yes
3761 else
3762   echo "$as_me: failed program was:" >&5
3763 cat conftest.$ac_ext >&5
3764 fi
3765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3766       LIBS="$am_save_LIBS"
3767     fi
3768
3769 fi
3770 echo "$as_me:3770: result: $am_cv_func_iconv" >&5
3771 echo "${ECHO_T}$am_cv_func_iconv" >&6
3772   if test "$am_cv_func_iconv" = yes; then
3773
3774 cat >>confdefs.h <<\EOF
3775 #define HAVE_ICONV 1
3776 EOF
3777
3778     echo "$as_me:3778: checking for iconv declaration" >&5
3779 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
3780     if test "${am_cv_proto_iconv+set}" = set; then
3781   echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783
3784       cat >conftest.$ac_ext <<_ACEOF
3785 #line 3785 "configure"
3786 #include "confdefs.h"
3787
3788 #include <stdlib.h>
3789 #include <iconv.h>
3790 extern
3791 #ifdef __cplusplus
3792 "C"
3793 #endif
3794 #if defined(__STDC__) || defined(__cplusplus)
3795 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3796 #else
3797 size_t iconv();
3798 #endif
3799
3800 int
3801 main ()
3802 {
3803
3804   ;
3805   return 0;
3806 }
3807 _ACEOF
3808 rm -f conftest.$ac_objext
3809 if { (eval echo "$as_me:3809: \"$ac_compile\"") >&5
3810   (eval $ac_compile) 2>&5
3811   ac_status=$?
3812   echo "$as_me:3812: \$? = $ac_status" >&5
3813   (exit $ac_status); } &&
3814          { ac_try='test -s conftest.$ac_objext'
3815   { (eval echo "$as_me:3815: \"$ac_try\"") >&5
3816   (eval $ac_try) 2>&5
3817   ac_status=$?
3818   echo "$as_me:3818: \$? = $ac_status" >&5
3819   (exit $ac_status); }; }; then
3820   am_cv_proto_iconv_arg1=""
3821 else
3822   echo "$as_me: failed program was:" >&5
3823 cat conftest.$ac_ext >&5
3824 am_cv_proto_iconv_arg1="const"
3825 fi
3826 rm -f conftest.$ac_objext conftest.$ac_ext
3827       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);"
3828 fi
3829
3830     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3831     echo "$as_me:3831: result: ${ac_t:-
3832          }$am_cv_proto_iconv" >&5
3833 echo "${ECHO_T}${ac_t:-
3834          }$am_cv_proto_iconv" >&6
3835
3836 cat >>confdefs.h <<EOF
3837 #define ICONV_CONST $am_cv_proto_iconv_arg1
3838 EOF
3839
3840   fi
3841   LIBICONV=
3842   if test "$am_cv_lib_iconv" = yes; then
3843     LIBICONV="-liconv"
3844   fi
3845
3846   echo "$as_me:3846: checking for nl_langinfo and CODESET" >&5
3847 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
3848 if test "${am_cv_langinfo_codeset+set}" = set; then
3849   echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851   cat >conftest.$ac_ext <<_ACEOF
3852 #line 3852 "configure"
3853 #include "confdefs.h"
3854 #include <langinfo.h>
3855 int
3856 main ()
3857 {
3858 char* cs = nl_langinfo(CODESET);
3859   ;
3860   return 0;
3861 }
3862 _ACEOF
3863 rm -f conftest.$ac_objext conftest$ac_exeext
3864 if { (eval echo "$as_me:3864: \"$ac_link\"") >&5
3865   (eval $ac_link) 2>&5
3866   ac_status=$?
3867   echo "$as_me:3867: \$? = $ac_status" >&5
3868   (exit $ac_status); } &&
3869          { ac_try='test -s conftest$ac_exeext'
3870   { (eval echo "$as_me:3870: \"$ac_try\"") >&5
3871   (eval $ac_try) 2>&5
3872   ac_status=$?
3873   echo "$as_me:3873: \$? = $ac_status" >&5
3874   (exit $ac_status); }; }; then
3875   am_cv_langinfo_codeset=yes
3876 else
3877   echo "$as_me: failed program was:" >&5
3878 cat conftest.$ac_ext >&5
3879 am_cv_langinfo_codeset=no
3880 fi
3881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3882
3883 fi
3884 echo "$as_me:3884: result: $am_cv_langinfo_codeset" >&5
3885 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
3886   if test $am_cv_langinfo_codeset = yes; then
3887
3888 cat >>confdefs.h <<\EOF
3889 #define HAVE_LANGINFO_CODESET 1
3890 EOF
3891
3892   fi
3893
3894    if test $ac_cv_header_locale_h = yes; then
3895     echo "$as_me:3895: checking for LC_MESSAGES" >&5
3896 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
3897 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
3898   echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900   cat >conftest.$ac_ext <<_ACEOF
3901 #line 3901 "configure"
3902 #include "confdefs.h"
3903 #include <locale.h>
3904 int
3905 main ()
3906 {
3907 return LC_MESSAGES
3908   ;
3909   return 0;
3910 }
3911 _ACEOF
3912 rm -f conftest.$ac_objext conftest$ac_exeext
3913 if { (eval echo "$as_me:3913: \"$ac_link\"") >&5
3914   (eval $ac_link) 2>&5
3915   ac_status=$?
3916   echo "$as_me:3916: \$? = $ac_status" >&5
3917   (exit $ac_status); } &&
3918          { ac_try='test -s conftest$ac_exeext'
3919   { (eval echo "$as_me:3919: \"$ac_try\"") >&5
3920   (eval $ac_try) 2>&5
3921   ac_status=$?
3922   echo "$as_me:3922: \$? = $ac_status" >&5
3923   (exit $ac_status); }; }; then
3924   am_cv_val_LC_MESSAGES=yes
3925 else
3926   echo "$as_me: failed program was:" >&5
3927 cat conftest.$ac_ext >&5
3928 am_cv_val_LC_MESSAGES=no
3929 fi
3930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3931 fi
3932 echo "$as_me:3932: result: $am_cv_val_LC_MESSAGES" >&5
3933 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
3934     if test $am_cv_val_LC_MESSAGES = yes; then
3935
3936 cat >>confdefs.h <<\EOF
3937 #define HAVE_LC_MESSAGES 1
3938 EOF
3939
3940     fi
3941   fi
3942    echo "$as_me:3942: checking whether NLS is requested" >&5
3943 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3944         # Check whether --enable-nls or --disable-nls was given.
3945 if test "${enable_nls+set}" = set; then
3946   enableval="$enable_nls"
3947   USE_NLS=$enableval
3948 else
3949   USE_NLS=yes
3950 fi;
3951     echo "$as_me:3951: result: $USE_NLS" >&5
3952 echo "${ECHO_T}$USE_NLS" >&6
3953
3954     BUILD_INCLUDED_LIBINTL=no
3955     USE_INCLUDED_LIBINTL=no
3956     INTLLIBS=
3957
3958         if test "$USE_NLS" = "yes"; then
3959
3960 cat >>confdefs.h <<\EOF
3961 #define ENABLE_NLS 1
3962 EOF
3963
3964       echo "$as_me:3964: checking whether included gettext is requested" >&5
3965 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
3966
3967 # Check whether --with-included-gettext or --without-included-gettext was given.
3968 if test "${with_included_gettext+set}" = set; then
3969   withval="$with_included_gettext"
3970   nls_cv_force_use_gnu_gettext=$withval
3971 else
3972   nls_cv_force_use_gnu_gettext=no
3973 fi;
3974       echo "$as_me:3974: result: $nls_cv_force_use_gnu_gettext" >&5
3975 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
3976
3977       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3978       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3979                                 CATOBJEXT=NONE
3980
3981         echo "$as_me:3981: checking for libintl.h" >&5
3982 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
3983 if test "${ac_cv_header_libintl_h+set}" = set; then
3984   echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986   cat >conftest.$ac_ext <<_ACEOF
3987 #line 3987 "configure"
3988 #include "confdefs.h"
3989 #include <libintl.h>
3990 _ACEOF
3991 if { (eval echo "$as_me:3991: \"$ac_cpp conftest.$ac_ext\"") >&5
3992   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3993   ac_status=$?
3994   egrep -v '^ *\+' conftest.er1 >conftest.err
3995   rm -f conftest.er1
3996   cat conftest.err >&5
3997   echo "$as_me:3997: \$? = $ac_status" >&5
3998   (exit $ac_status); } >/dev/null; then
3999   if test -s conftest.err; then
4000     ac_cpp_err=$ac_c_preproc_warn_flag
4001   else
4002     ac_cpp_err=
4003   fi
4004 else
4005   ac_cpp_err=yes
4006 fi
4007 if test -z "$ac_cpp_err"; then
4008   ac_cv_header_libintl_h=yes
4009 else
4010   echo "$as_me: failed program was:" >&5
4011   cat conftest.$ac_ext >&5
4012   ac_cv_header_libintl_h=no
4013 fi
4014 rm -f conftest.err conftest.$ac_ext
4015 fi
4016 echo "$as_me:4016: result: $ac_cv_header_libintl_h" >&5
4017 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4018 if test $ac_cv_header_libintl_h = yes; then
4019   echo "$as_me:4019: checking for GNU gettext in libc" >&5
4020 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
4021 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
4022   echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024   cat >conftest.$ac_ext <<_ACEOF
4025 #line 4025 "configure"
4026 #include "confdefs.h"
4027 #include <libintl.h>
4028 extern int _nl_msg_cat_cntr;
4029 int
4030 main ()
4031 {
4032 bindtextdomain ("", "");
4033 return (int) gettext ("") + _nl_msg_cat_cntr
4034   ;
4035   return 0;
4036 }
4037 _ACEOF
4038 rm -f conftest.$ac_objext conftest$ac_exeext
4039 if { (eval echo "$as_me:4039: \"$ac_link\"") >&5
4040   (eval $ac_link) 2>&5
4041   ac_status=$?
4042   echo "$as_me:4042: \$? = $ac_status" >&5
4043   (exit $ac_status); } &&
4044          { ac_try='test -s conftest$ac_exeext'
4045   { (eval echo "$as_me:4045: \"$ac_try\"") >&5
4046   (eval $ac_try) 2>&5
4047   ac_status=$?
4048   echo "$as_me:4048: \$? = $ac_status" >&5
4049   (exit $ac_status); }; }; then
4050   gt_cv_func_gnugettext1_libc=yes
4051 else
4052   echo "$as_me: failed program was:" >&5
4053 cat conftest.$ac_ext >&5
4054 gt_cv_func_gnugettext1_libc=no
4055 fi
4056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4057 fi
4058 echo "$as_me:4058: result: $gt_cv_func_gnugettext1_libc" >&5
4059 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
4060
4061            if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
4062              echo "$as_me:4062: checking for GNU gettext in libintl" >&5
4063 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
4064 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   gt_save_LIBS="$LIBS"
4068                 LIBS="$LIBS -lintl $LIBICONV"
4069                 cat >conftest.$ac_ext <<_ACEOF
4070 #line 4070 "configure"
4071 #include "confdefs.h"
4072 #include <libintl.h>
4073 extern int _nl_msg_cat_cntr;
4074 int
4075 main ()
4076 {
4077 bindtextdomain ("", "");
4078 return (int) gettext ("") + _nl_msg_cat_cntr
4079   ;
4080   return 0;
4081 }
4082 _ACEOF
4083 rm -f conftest.$ac_objext conftest$ac_exeext
4084 if { (eval echo "$as_me:4084: \"$ac_link\"") >&5
4085   (eval $ac_link) 2>&5
4086   ac_status=$?
4087   echo "$as_me:4087: \$? = $ac_status" >&5
4088   (exit $ac_status); } &&
4089          { ac_try='test -s conftest$ac_exeext'
4090   { (eval echo "$as_me:4090: \"$ac_try\"") >&5
4091   (eval $ac_try) 2>&5
4092   ac_status=$?
4093   echo "$as_me:4093: \$? = $ac_status" >&5
4094   (exit $ac_status); }; }; then
4095   gt_cv_func_gnugettext1_libintl=yes
4096 else
4097   echo "$as_me: failed program was:" >&5
4098 cat conftest.$ac_ext >&5
4099 gt_cv_func_gnugettext1_libintl=no
4100 fi
4101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4102                 LIBS="$gt_save_LIBS"
4103 fi
4104 echo "$as_me:4104: result: $gt_cv_func_gnugettext1_libintl" >&5
4105 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
4106            fi
4107
4108                                            if test "$gt_cv_func_gnugettext1_libc" = "yes" \
4109               || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
4110                    && test "$PACKAGE" != gettext; }; then
4111
4112 cat >>confdefs.h <<\EOF
4113 #define HAVE_GETTEXT 1
4114 EOF
4115
4116              if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
4117                                        INTLLIBS="-lintl $LIBICONV"
4118              fi
4119
4120              gt_save_LIBS="$LIBS"
4121              LIBS="$LIBS $INTLLIBS"
4122
4123 for ac_func in dcgettext
4124 do
4125 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4126 echo "$as_me:4126: checking for $ac_func" >&5
4127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4128 if eval "test \"\${$as_ac_var+set}\" = set"; then
4129   echo $ECHO_N "(cached) $ECHO_C" >&6
4130 else
4131   cat >conftest.$ac_ext <<_ACEOF
4132 #line 4132 "configure"
4133 #include "confdefs.h"
4134 /* System header to define __stub macros and hopefully few prototypes,
4135     which can conflict with char $ac_func (); below.  */
4136 #include <assert.h>
4137 /* Override any gcc2 internal prototype to avoid an error.  */
4138 #ifdef __cplusplus
4139 extern "C"
4140 #endif
4141 /* We use char because int might match the return type of a gcc2
4142    builtin and then its argument prototype would still apply.  */
4143 char $ac_func ();
4144 char (*f) ();
4145
4146 int
4147 main ()
4148 {
4149 /* The GNU C library defines this for functions which it implements
4150     to always fail with ENOSYS.  Some functions are actually named
4151     something starting with __ and the normal name is an alias.  */
4152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4153 choke me
4154 #else
4155 f = $ac_func;
4156 #endif
4157
4158   ;
4159   return 0;
4160 }
4161 _ACEOF
4162 rm -f conftest.$ac_objext conftest$ac_exeext
4163 if { (eval echo "$as_me:4163: \"$ac_link\"") >&5
4164   (eval $ac_link) 2>&5
4165   ac_status=$?
4166   echo "$as_me:4166: \$? = $ac_status" >&5
4167   (exit $ac_status); } &&
4168          { ac_try='test -s conftest$ac_exeext'
4169   { (eval echo "$as_me:4169: \"$ac_try\"") >&5
4170   (eval $ac_try) 2>&5
4171   ac_status=$?
4172   echo "$as_me:4172: \$? = $ac_status" >&5
4173   (exit $ac_status); }; }; then
4174   eval "$as_ac_var=yes"
4175 else
4176   echo "$as_me: failed program was:" >&5
4177 cat conftest.$ac_ext >&5
4178 eval "$as_ac_var=no"
4179 fi
4180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4181 fi
4182 echo "$as_me:4182: result: `eval echo '${'$as_ac_var'}'`" >&5
4183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4184 if test `eval echo '${'$as_ac_var'}'` = yes; then
4185   cat >>confdefs.h <<EOF
4186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4187 EOF
4188
4189 fi
4190 done
4191
4192              LIBS="$gt_save_LIBS"
4193
4194                      # Extract the first word of "msgfmt", so it can be a program name with args.
4195 set dummy msgfmt; ac_word=$2
4196 echo "$as_me:4196: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4198 if test "${ac_cv_path_MSGFMT+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   case "$MSGFMT" in
4202   /*)
4203   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4204   ;;
4205   *)
4206   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4207   for ac_dir in $PATH; do
4208     test -z "$ac_dir" && ac_dir=.
4209     if test -f $ac_dir/$ac_word; then
4210       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
4211         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4212         break
4213       fi
4214     fi
4215   done
4216   IFS="$ac_save_ifs"
4217   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4218   ;;
4219 esac
4220 fi
4221 MSGFMT="$ac_cv_path_MSGFMT"
4222 if test "$MSGFMT" != ":"; then
4223   echo "$as_me:4223: result: $MSGFMT" >&5
4224 echo "${ECHO_T}$MSGFMT" >&6
4225 else
4226   echo "$as_me:4226: result: no" >&5
4227 echo "${ECHO_T}no" >&6
4228 fi
4229
4230              # Extract the first word of "gmsgfmt", so it can be a program name with args.
4231 set dummy gmsgfmt; ac_word=$2
4232 echo "$as_me:4232: checking for $ac_word" >&5
4233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4234 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4235   echo $ECHO_N "(cached) $ECHO_C" >&6
4236 else
4237   case $GMSGFMT in
4238   [\\/]* | ?:[\\/]*)
4239   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4240   ;;
4241   *)
4242   ac_save_IFS=$IFS; IFS=$ac_path_separator
4243 ac_dummy="$PATH"
4244 for ac_dir in $ac_dummy; do
4245   IFS=$ac_save_IFS
4246   test -z "$ac_dir" && ac_dir=.
4247   if $as_executable_p "$ac_dir/$ac_word"; then
4248    ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4249    echo "$as_me:4249: found $ac_dir/$ac_word" >&5
4250    break
4251 fi
4252 done
4253
4254   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4255   ;;
4256 esac
4257 fi
4258 GMSGFMT=$ac_cv_path_GMSGFMT
4259
4260 if test -n "$GMSGFMT"; then
4261   echo "$as_me:4261: result: $GMSGFMT" >&5
4262 echo "${ECHO_T}$GMSGFMT" >&6
4263 else
4264   echo "$as_me:4264: result: no" >&5
4265 echo "${ECHO_T}no" >&6
4266 fi
4267
4268                      # Extract the first word of "xgettext", so it can be a program name with args.
4269 set dummy xgettext; ac_word=$2
4270 echo "$as_me:4270: checking for $ac_word" >&5
4271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4272 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4273   echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275   case "$XGETTEXT" in
4276   /*)
4277   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4278   ;;
4279   *)
4280   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4281   for ac_dir in $PATH; do
4282     test -z "$ac_dir" && ac_dir=.
4283     if test -f $ac_dir/$ac_word; then
4284       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
4285         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4286         break
4287       fi
4288     fi
4289   done
4290   IFS="$ac_save_ifs"
4291   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4292   ;;
4293 esac
4294 fi
4295 XGETTEXT="$ac_cv_path_XGETTEXT"
4296 if test "$XGETTEXT" != ":"; then
4297   echo "$as_me:4297: result: $XGETTEXT" >&5
4298 echo "${ECHO_T}$XGETTEXT" >&6
4299 else
4300   echo "$as_me:4300: result: no" >&5
4301 echo "${ECHO_T}no" >&6
4302 fi
4303
4304              CATOBJEXT=.gmo
4305            fi
4306
4307 fi
4308
4309         if test "$CATOBJEXT" = "NONE"; then
4310                           nls_cv_use_gnu_gettext=yes
4311         fi
4312       fi
4313
4314       if test "$nls_cv_use_gnu_gettext" = "yes"; then
4315                 INTLOBJS="\$(GETTOBJS)"
4316         # Extract the first word of "msgfmt", so it can be a program name with args.
4317 set dummy msgfmt; ac_word=$2
4318 echo "$as_me:4318: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4320 if test "${ac_cv_path_MSGFMT+set}" = set; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323   case "$MSGFMT" in
4324   /*)
4325   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4326   ;;
4327   *)
4328   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4329   for ac_dir in $PATH; do
4330     test -z "$ac_dir" && ac_dir=.
4331     if test -f $ac_dir/$ac_word; then
4332       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
4333         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4334         break
4335       fi
4336     fi
4337   done
4338   IFS="$ac_save_ifs"
4339   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4340   ;;
4341 esac
4342 fi
4343 MSGFMT="$ac_cv_path_MSGFMT"
4344 if test "$MSGFMT" != ":"; then
4345   echo "$as_me:4345: result: $MSGFMT" >&5
4346 echo "${ECHO_T}$MSGFMT" >&6
4347 else
4348   echo "$as_me:4348: result: no" >&5
4349 echo "${ECHO_T}no" >&6
4350 fi
4351
4352         # Extract the first word of "gmsgfmt", so it can be a program name with args.
4353 set dummy gmsgfmt; ac_word=$2
4354 echo "$as_me:4354: checking for $ac_word" >&5
4355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4356 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4357   echo $ECHO_N "(cached) $ECHO_C" >&6
4358 else
4359   case $GMSGFMT in
4360   [\\/]* | ?:[\\/]*)
4361   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4362   ;;
4363   *)
4364   ac_save_IFS=$IFS; IFS=$ac_path_separator
4365 ac_dummy="$PATH"
4366 for ac_dir in $ac_dummy; do
4367   IFS=$ac_save_IFS
4368   test -z "$ac_dir" && ac_dir=.
4369   if $as_executable_p "$ac_dir/$ac_word"; then
4370    ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4371    echo "$as_me:4371: found $ac_dir/$ac_word" >&5
4372    break
4373 fi
4374 done
4375
4376   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4377   ;;
4378 esac
4379 fi
4380 GMSGFMT=$ac_cv_path_GMSGFMT
4381
4382 if test -n "$GMSGFMT"; then
4383   echo "$as_me:4383: result: $GMSGFMT" >&5
4384 echo "${ECHO_T}$GMSGFMT" >&6
4385 else
4386   echo "$as_me:4386: result: no" >&5
4387 echo "${ECHO_T}no" >&6
4388 fi
4389
4390         # Extract the first word of "xgettext", so it can be a program name with args.
4391 set dummy xgettext; ac_word=$2
4392 echo "$as_me:4392: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4394 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4395   echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397   case "$XGETTEXT" in
4398   /*)
4399   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4400   ;;
4401   *)
4402   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4403   for ac_dir in $PATH; do
4404     test -z "$ac_dir" && ac_dir=.
4405     if test -f $ac_dir/$ac_word; then
4406       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
4407         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4408         break
4409       fi
4410     fi
4411   done
4412   IFS="$ac_save_ifs"
4413   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4414   ;;
4415 esac
4416 fi
4417 XGETTEXT="$ac_cv_path_XGETTEXT"
4418 if test "$XGETTEXT" != ":"; then
4419   echo "$as_me:4419: result: $XGETTEXT" >&5
4420 echo "${ECHO_T}$XGETTEXT" >&6
4421 else
4422   echo "$as_me:4422: result: no" >&5
4423 echo "${ECHO_T}no" >&6
4424 fi
4425
4426         BUILD_INCLUDED_LIBINTL=yes
4427         USE_INCLUDED_LIBINTL=yes
4428         CATOBJEXT=.gmo
4429         INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
4430         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
4431       fi
4432
4433                   if test "$GMSGFMT" != ":"; then
4434                         if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
4435           : ;
4436         else
4437           echo "$as_me:4437: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
4438 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
4439           GMSGFMT=":"
4440         fi
4441       fi
4442
4443                   if test "$XGETTEXT" != ":"; then
4444                         if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
4445           : ;
4446         else
4447           echo "$as_me:4447: result: found xgettext program is not GNU xgettext; ignore it" >&5
4448 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
4449           XGETTEXT=":"
4450         fi
4451       fi
4452
4453             POSUB=po
4454     fi
4455     ac_config_commands="$ac_config_commands default-1"
4456
4457             if test "$PACKAGE" = gettext; then
4458       BUILD_INCLUDED_LIBINTL=yes
4459     fi
4460
4461                                             for ac_prog in bison
4462 do
4463   # Extract the first word of "$ac_prog", so it can be a program name with args.
4464 set dummy $ac_prog; ac_word=$2
4465 echo "$as_me:4465: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4467 if test "${ac_cv_prog_INTLBISON+set}" = set; then
4468   echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470   if test -n "$INTLBISON"; then
4471   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
4472 else
4473   ac_save_IFS=$IFS; IFS=$ac_path_separator
4474 ac_dummy="$PATH"
4475 for ac_dir in $ac_dummy; do
4476   IFS=$ac_save_IFS
4477   test -z "$ac_dir" && ac_dir=.
4478   $as_executable_p "$ac_dir/$ac_word" || continue
4479 ac_cv_prog_INTLBISON="$ac_prog"
4480 echo "$as_me:4480: found $ac_dir/$ac_word" >&5
4481 break
4482 done
4483
4484 fi
4485 fi
4486 INTLBISON=$ac_cv_prog_INTLBISON
4487 if test -n "$INTLBISON"; then
4488   echo "$as_me:4488: result: $INTLBISON" >&5
4489 echo "${ECHO_T}$INTLBISON" >&6
4490 else
4491   echo "$as_me:4491: result: no" >&5
4492 echo "${ECHO_T}no" >&6
4493 fi
4494
4495   test -n "$INTLBISON" && break
4496 done
4497
4498     if test -z "$INTLBISON"; then
4499       ac_verc_fail=yes
4500     else
4501             echo "$as_me:4501: checking version of bison" >&5
4502 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
4503       ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4504       case $ac_prog_version in
4505         '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4506         1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
4507            ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4508         *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4509       esac
4510       echo "$as_me:4510: result: $ac_prog_version" >&5
4511 echo "${ECHO_T}$ac_prog_version" >&6
4512     fi
4513     if test $ac_verc_fail = yes; then
4514       INTLBISON=:
4515     fi
4516
4517                 for lang in $ALL_LINGUAS; do
4518       GMOFILES="$GMOFILES $lang.gmo"
4519       POFILES="$POFILES $lang.po"
4520     done
4521
4522         nls_cv_header_intl=
4523     nls_cv_header_libgt=
4524
4525         DATADIRNAME=share
4526
4527         INSTOBJEXT=.mo
4528
4529         GENCAT=gencat
4530
4531    if test "x$CATOBJEXT" != "x"; then
4532      if test "x$ALL_LINGUAS" = "x"; then
4533        LINGUAS=
4534      else
4535        echo "$as_me:4535: checking for catalogs to be installed" >&5
4536 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
4537        NEW_LINGUAS=
4538        for presentlang in $ALL_LINGUAS; do
4539          useit=no
4540          for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
4541            # Use the presentlang catalog if desiredlang is
4542            #   a. equal to presentlang, or
4543            #   b. a variant of presentlang (because in this case,
4544            #      presentlang can be used as a fallback for messages
4545            #      which are not translated in the desiredlang catalog).
4546            case "$desiredlang" in
4547              "$presentlang"*) useit=yes;;
4548            esac
4549          done
4550          if test $useit = yes; then
4551            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
4552          fi
4553        done
4554        LINGUAS=$NEW_LINGUAS
4555        echo "$as_me:4555: result: $LINGUAS" >&5
4556 echo "${ECHO_T}$LINGUAS" >&6
4557      fi
4558
4559           if test -n "$LINGUAS"; then
4560        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4561      fi
4562    fi
4563
4564             MKINSTALLDIRS=
4565    if test -n "$ac_aux_dir"; then
4566      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
4567    fi
4568    if test -z "$MKINSTALLDIRS"; then
4569      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4570    fi
4571
4572       INTL_LIBTOOL_SUFFIX_PREFIX=
4573
4574 # Find a good install program.  We prefer a C program (faster),
4575 # so one script is as good as another.  But avoid the broken or
4576 # incompatible versions:
4577 # SysV /etc/install, /usr/sbin/install
4578 # SunOS /usr/etc/install
4579 # IRIX /sbin/install
4580 # AIX /bin/install
4581 # AmigaOS /C/install, which installs bootblocks on floppy discs
4582 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4583 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4584 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4585 # ./install, which can be erroneously created by make from ./install.sh.
4586 echo "$as_me:4586: checking for a BSD compatible install" >&5
4587 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4588 if test -z "$INSTALL"; then
4589 if test "${ac_cv_path_install+set}" = set; then
4590   echo $ECHO_N "(cached) $ECHO_C" >&6
4591 else
4592     ac_save_IFS=$IFS; IFS=$ac_path_separator
4593   for ac_dir in $PATH; do
4594     IFS=$ac_save_IFS
4595     # Account for people who put trailing slashes in PATH elements.
4596     case $ac_dir/ in
4597     / | ./ | .// | /cC/* \
4598     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
4599     | /usr/ucb/* ) ;;
4600     *)
4601       # OSF1 and SCO ODT 3.0 have their own names for install.
4602       # Don't use installbsd from OSF since it installs stuff as root
4603       # by default.
4604       for ac_prog in ginstall scoinst install; do
4605         if $as_executable_p "$ac_dir/$ac_prog"; then
4606           if test $ac_prog = install &&
4607             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
4608             # AIX install.  It has an incompatible calling convention.
4609             :
4610           elif test $ac_prog = install &&
4611             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
4612             # program-specific install script used by HP pwplus--don't use.
4613             :
4614           else
4615             ac_cv_path_install="$ac_dir/$ac_prog -c"
4616             break 2
4617           fi
4618         fi
4619       done
4620       ;;
4621     esac
4622   done
4623
4624 fi
4625   if test "${ac_cv_path_install+set}" = set; then
4626     INSTALL=$ac_cv_path_install
4627   else
4628     # As a last resort, use the slow shell script.  We don't cache a
4629     # path for INSTALL within a source directory, because that will
4630     # break other packages using the cache if that directory is
4631     # removed, or if the path is relative.
4632     INSTALL=$ac_install_sh
4633   fi
4634 fi
4635 echo "$as_me:4635: result: $INSTALL" >&5
4636 echo "${ECHO_T}$INSTALL" >&6
4637
4638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4639 # It thinks the first close brace ends the variable substitution.
4640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4641
4642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4643
4644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4645
4646 case x"${target_os}" in
4647   x)
4648     SYS=unknown
4649     ;;
4650   xlinux*)
4651     SYS=linux
4652     ;;
4653   xbsdi*)
4654     SYS=bsdi
4655     save_CFLAGS="${save_CFLAGS} -pthread"
4656     dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
4657     vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
4658     ;;
4659   x*bsd*)
4660     SYS="${target_os}"
4661     save_CFLAGS="${save_CFLAGS} -pthread"
4662     ;;
4663   xdarwin*)
4664     SYS=darwin
4665     save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
4666     ;;
4667   x*mingw32*)
4668     SYS=mingw32
4669     if test -n "$ac_tool_prefix"; then
4670   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4671 set dummy ${ac_tool_prefix}windres; ac_word=$2
4672 echo "$as_me:4672: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4674 if test "${ac_cv_prog_WINDRES+set}" = set; then
4675   echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677   if test -n "$WINDRES"; then
4678   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4679 else
4680   ac_save_IFS=$IFS; IFS=$ac_path_separator
4681 ac_dummy="$PATH"
4682 for ac_dir in $ac_dummy; do
4683   IFS=$ac_save_IFS
4684   test -z "$ac_dir" && ac_dir=.
4685   $as_executable_p "$ac_dir/$ac_word" || continue
4686 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4687 echo "$as_me:4687: found $ac_dir/$ac_word" >&5
4688 break
4689 done
4690
4691 fi
4692 fi
4693 WINDRES=$ac_cv_prog_WINDRES
4694 if test -n "$WINDRES"; then
4695   echo "$as_me:4695: result: $WINDRES" >&5
4696 echo "${ECHO_T}$WINDRES" >&6
4697 else
4698   echo "$as_me:4698: result: no" >&5
4699 echo "${ECHO_T}no" >&6
4700 fi
4701
4702 fi
4703 if test -z "$ac_cv_prog_WINDRES"; then
4704   ac_ct_WINDRES=$WINDRES
4705   # Extract the first word of "windres", so it can be a program name with args.
4706 set dummy windres; ac_word=$2
4707 echo "$as_me:4707: checking for $ac_word" >&5
4708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4709 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4710   echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712   if test -n "$ac_ct_WINDRES"; then
4713   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4714 else
4715   ac_save_IFS=$IFS; IFS=$ac_path_separator
4716 ac_dummy="$PATH"
4717 for ac_dir in $ac_dummy; do
4718   IFS=$ac_save_IFS
4719   test -z "$ac_dir" && ac_dir=.
4720   $as_executable_p "$ac_dir/$ac_word" || continue
4721 ac_cv_prog_ac_ct_WINDRES="windres"
4722 echo "$as_me:4722: found $ac_dir/$ac_word" >&5
4723 break
4724 done
4725
4726   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES=":"
4727 fi
4728 fi
4729 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4730 if test -n "$ac_ct_WINDRES"; then
4731   echo "$as_me:4731: result: $ac_ct_WINDRES" >&5
4732 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4733 else
4734   echo "$as_me:4734: result: no" >&5
4735 echo "${ECHO_T}no" >&6
4736 fi
4737
4738   WINDRES=$ac_ct_WINDRES
4739 else
4740   WINDRES="$ac_cv_prog_WINDRES"
4741 fi
4742
4743     save_CFLAGS="${save_CFLAGS} -D_OFF_T_ -D_off_t=long"
4744     vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
4745     vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
4746     ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
4747     ipv6_LDFLAGS="${ipv6_LDFLAGS} -lws2_32"
4748     http_LDFLAGS="${http_LDFLAGS} -lws2_32"
4749     rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
4750     ;;
4751   x*nto*)
4752     SYS=nto
4753     x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
4754     xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
4755     ;;
4756   xbeos)
4757     SYS=beos
4758     save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
4759     vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
4760     plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
4761     beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker -ltranslation -lstdc++.r4"
4762     ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
4763     ;;
4764   x*)
4765     SYS="${target_os}"
4766     ;;
4767 esac
4768
4769 if test x"${SYS}" != xmingw32; then
4770   plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
4771 fi
4772
4773 if test x$SYS = xmingw32
4774 then
4775     echo "$as_me:4775: checking for opendir in -lmingwex" >&5
4776 echo $ECHO_N "checking for opendir in -lmingwex... $ECHO_C" >&6
4777 if test "${ac_cv_lib_mingwex_opendir+set}" = set; then
4778   echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780   ac_check_lib_save_LIBS=$LIBS
4781 LIBS="-lmingwex  $LIBS"
4782 cat >conftest.$ac_ext <<_ACEOF
4783 #line 4783 "configure"
4784 #include "confdefs.h"
4785
4786 /* Override any gcc2 internal prototype to avoid an error.  */
4787 #ifdef __cplusplus
4788 extern "C"
4789 #endif
4790 /* We use char because int might match the return type of a gcc2
4791    builtin and then its argument prototype would still apply.  */
4792 char opendir ();
4793 int
4794 main ()
4795 {
4796 opendir ();
4797   ;
4798   return 0;
4799 }
4800 _ACEOF
4801 rm -f conftest.$ac_objext conftest$ac_exeext
4802 if { (eval echo "$as_me:4802: \"$ac_link\"") >&5
4803   (eval $ac_link) 2>&5
4804   ac_status=$?
4805   echo "$as_me:4805: \$? = $ac_status" >&5
4806   (exit $ac_status); } &&
4807          { ac_try='test -s conftest$ac_exeext'
4808   { (eval echo "$as_me:4808: \"$ac_try\"") >&5
4809   (eval $ac_try) 2>&5
4810   ac_status=$?
4811   echo "$as_me:4811: \$? = $ac_status" >&5
4812   (exit $ac_status); }; }; then
4813   ac_cv_lib_mingwex_opendir=yes
4814 else
4815   echo "$as_me: failed program was:" >&5
4816 cat conftest.$ac_ext >&5
4817 ac_cv_lib_mingwex_opendir=no
4818 fi
4819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4820 LIBS=$ac_check_lib_save_LIBS
4821 fi
4822 echo "$as_me:4822: result: $ac_cv_lib_mingwex_opendir" >&5
4823 echo "${ECHO_T}$ac_cv_lib_mingwex_opendir" >&6
4824 if test $ac_cv_lib_mingwex_opendir = yes; then
4825   echo "$as_me:4825: checking for opendir in -lmingw32" >&5
4826 echo $ECHO_N "checking for opendir in -lmingw32... $ECHO_C" >&6
4827 if test "${ac_cv_lib_mingw32_opendir+set}" = set; then
4828   echo $ECHO_N "(cached) $ECHO_C" >&6
4829 else
4830   ac_check_lib_save_LIBS=$LIBS
4831 LIBS="-lmingw32  $LIBS"
4832 cat >conftest.$ac_ext <<_ACEOF
4833 #line 4833 "configure"
4834 #include "confdefs.h"
4835
4836 /* Override any gcc2 internal prototype to avoid an error.  */
4837 #ifdef __cplusplus
4838 extern "C"
4839 #endif
4840 /* We use char because int might match the return type of a gcc2
4841    builtin and then its argument prototype would still apply.  */
4842 char opendir ();
4843 int
4844 main ()
4845 {
4846 opendir ();
4847   ;
4848   return 0;
4849 }
4850 _ACEOF
4851 rm -f conftest.$ac_objext conftest$ac_exeext
4852 if { (eval echo "$as_me:4852: \"$ac_link\"") >&5
4853   (eval $ac_link) 2>&5
4854   ac_status=$?
4855   echo "$as_me:4855: \$? = $ac_status" >&5
4856   (exit $ac_status); } &&
4857          { ac_try='test -s conftest$ac_exeext'
4858   { (eval echo "$as_me:4858: \"$ac_try\"") >&5
4859   (eval $ac_try) 2>&5
4860   ac_status=$?
4861   echo "$as_me:4861: \$? = $ac_status" >&5
4862   (exit $ac_status); }; }; then
4863   ac_cv_lib_mingw32_opendir=yes
4864 else
4865   echo "$as_me: failed program was:" >&5
4866 cat conftest.$ac_ext >&5
4867 ac_cv_lib_mingw32_opendir=no
4868 fi
4869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4870 LIBS=$ac_check_lib_save_LIBS
4871 fi
4872 echo "$as_me:4872: result: $ac_cv_lib_mingw32_opendir" >&5
4873 echo "${ECHO_T}$ac_cv_lib_mingw32_opendir" >&6
4874 if test $ac_cv_lib_mingw32_opendir = yes; then
4875   vlc_LDFLAGS="${vlc_LDFLAGS}"
4876 else
4877   vlc_LDFLAGS="${vlc_LDFLAGS} -lmingwex"
4878              gtk_LDFLAGS="${gtk_LDFLAGS} -lmingwex"
4879 fi
4880
4881 fi
4882
4883 fi
4884
4885 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
4886
4887 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 atoll
4888 do
4889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4890 echo "$as_me:4890: checking for $ac_func" >&5
4891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4892 if eval "test \"\${$as_ac_var+set}\" = set"; then
4893   echo $ECHO_N "(cached) $ECHO_C" >&6
4894 else
4895   cat >conftest.$ac_ext <<_ACEOF
4896 #line 4896 "configure"
4897 #include "confdefs.h"
4898 /* System header to define __stub macros and hopefully few prototypes,
4899     which can conflict with char $ac_func (); below.  */
4900 #include <assert.h>
4901 /* Override any gcc2 internal prototype to avoid an error.  */
4902 #ifdef __cplusplus
4903 extern "C"
4904 #endif
4905 /* We use char because int might match the return type of a gcc2
4906    builtin and then its argument prototype would still apply.  */
4907 char $ac_func ();
4908 char (*f) ();
4909
4910 int
4911 main ()
4912 {
4913 /* The GNU C library defines this for functions which it implements
4914     to always fail with ENOSYS.  Some functions are actually named
4915     something starting with __ and the normal name is an alias.  */
4916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4917 choke me
4918 #else
4919 f = $ac_func;
4920 #endif
4921
4922   ;
4923   return 0;
4924 }
4925 _ACEOF
4926 rm -f conftest.$ac_objext conftest$ac_exeext
4927 if { (eval echo "$as_me:4927: \"$ac_link\"") >&5
4928   (eval $ac_link) 2>&5
4929   ac_status=$?
4930   echo "$as_me:4930: \$? = $ac_status" >&5
4931   (exit $ac_status); } &&
4932          { ac_try='test -s conftest$ac_exeext'
4933   { (eval echo "$as_me:4933: \"$ac_try\"") >&5
4934   (eval $ac_try) 2>&5
4935   ac_status=$?
4936   echo "$as_me:4936: \$? = $ac_status" >&5
4937   (exit $ac_status); }; }; then
4938   eval "$as_ac_var=yes"
4939 else
4940   echo "$as_me: failed program was:" >&5
4941 cat conftest.$ac_ext >&5
4942 eval "$as_ac_var=no"
4943 fi
4944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4945 fi
4946 echo "$as_me:4946: result: `eval echo '${'$as_ac_var'}'`" >&5
4947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4948 if test `eval echo '${'$as_ac_var'}'` = yes; then
4949   cat >>confdefs.h <<EOF
4950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4951 EOF
4952
4953 fi
4954 done
4955
4956 echo "$as_me:4956: checking for connect" >&5
4957 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4958 if test "${ac_cv_func_connect+set}" = set; then
4959   echo $ECHO_N "(cached) $ECHO_C" >&6
4960 else
4961   cat >conftest.$ac_ext <<_ACEOF
4962 #line 4962 "configure"
4963 #include "confdefs.h"
4964 /* System header to define __stub macros and hopefully few prototypes,
4965     which can conflict with char connect (); below.  */
4966 #include <assert.h>
4967 /* Override any gcc2 internal prototype to avoid an error.  */
4968 #ifdef __cplusplus
4969 extern "C"
4970 #endif
4971 /* We use char because int might match the return type of a gcc2
4972    builtin and then its argument prototype would still apply.  */
4973 char connect ();
4974 char (*f) ();
4975
4976 int
4977 main ()
4978 {
4979 /* The GNU C library defines this for functions which it implements
4980     to always fail with ENOSYS.  Some functions are actually named
4981     something starting with __ and the normal name is an alias.  */
4982 #if defined (__stub_connect) || defined (__stub___connect)
4983 choke me
4984 #else
4985 f = connect;
4986 #endif
4987
4988   ;
4989   return 0;
4990 }
4991 _ACEOF
4992 rm -f conftest.$ac_objext conftest$ac_exeext
4993 if { (eval echo "$as_me:4993: \"$ac_link\"") >&5
4994   (eval $ac_link) 2>&5
4995   ac_status=$?
4996   echo "$as_me:4996: \$? = $ac_status" >&5
4997   (exit $ac_status); } &&
4998          { ac_try='test -s conftest$ac_exeext'
4999   { (eval echo "$as_me:4999: \"$ac_try\"") >&5
5000   (eval $ac_try) 2>&5
5001   ac_status=$?
5002   echo "$as_me:5002: \$? = $ac_status" >&5
5003   (exit $ac_status); }; }; then
5004   ac_cv_func_connect=yes
5005 else
5006   echo "$as_me: failed program was:" >&5
5007 cat conftest.$ac_ext >&5
5008 ac_cv_func_connect=no
5009 fi
5010 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5011 fi
5012 echo "$as_me:5012: result: $ac_cv_func_connect" >&5
5013 echo "${ECHO_T}$ac_cv_func_connect" >&6
5014 if test $ac_cv_func_connect = yes; then
5015   :
5016 else
5017
5018   echo "$as_me:5018: checking for connect in -lsocket" >&5
5019 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5020 if test "${ac_cv_lib_socket_connect+set}" = set; then
5021   echo $ECHO_N "(cached) $ECHO_C" >&6
5022 else
5023   ac_check_lib_save_LIBS=$LIBS
5024 LIBS="-lsocket  $LIBS"
5025 cat >conftest.$ac_ext <<_ACEOF
5026 #line 5026 "configure"
5027 #include "confdefs.h"
5028
5029 /* Override any gcc2 internal prototype to avoid an error.  */
5030 #ifdef __cplusplus
5031 extern "C"
5032 #endif
5033 /* We use char because int might match the return type of a gcc2
5034    builtin and then its argument prototype would still apply.  */
5035 char connect ();
5036 int
5037 main ()
5038 {
5039 connect ();
5040   ;
5041   return 0;
5042 }
5043 _ACEOF
5044 rm -f conftest.$ac_objext conftest$ac_exeext
5045 if { (eval echo "$as_me:5045: \"$ac_link\"") >&5
5046   (eval $ac_link) 2>&5
5047   ac_status=$?
5048   echo "$as_me:5048: \$? = $ac_status" >&5
5049   (exit $ac_status); } &&
5050          { ac_try='test -s conftest$ac_exeext'
5051   { (eval echo "$as_me:5051: \"$ac_try\"") >&5
5052   (eval $ac_try) 2>&5
5053   ac_status=$?
5054   echo "$as_me:5054: \$? = $ac_status" >&5
5055   (exit $ac_status); }; }; then
5056   ac_cv_lib_socket_connect=yes
5057 else
5058   echo "$as_me: failed program was:" >&5
5059 cat conftest.$ac_ext >&5
5060 ac_cv_lib_socket_connect=no
5061 fi
5062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5063 LIBS=$ac_check_lib_save_LIBS
5064 fi
5065 echo "$as_me:5065: result: $ac_cv_lib_socket_connect" >&5
5066 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5067 if test $ac_cv_lib_socket_connect = yes; then
5068   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
5069     vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
5070
5071 fi
5072
5073 fi
5074
5075 echo "$as_me:5075: checking for gethostbyname" >&5
5076 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5077 if test "${ac_cv_func_gethostbyname+set}" = set; then
5078   echo $ECHO_N "(cached) $ECHO_C" >&6
5079 else
5080   cat >conftest.$ac_ext <<_ACEOF
5081 #line 5081 "configure"
5082 #include "confdefs.h"
5083 /* System header to define __stub macros and hopefully few prototypes,
5084     which can conflict with char gethostbyname (); below.  */
5085 #include <assert.h>
5086 /* Override any gcc2 internal prototype to avoid an error.  */
5087 #ifdef __cplusplus
5088 extern "C"
5089 #endif
5090 /* We use char because int might match the return type of a gcc2
5091    builtin and then its argument prototype would still apply.  */
5092 char gethostbyname ();
5093 char (*f) ();
5094
5095 int
5096 main ()
5097 {
5098 /* The GNU C library defines this for functions which it implements
5099     to always fail with ENOSYS.  Some functions are actually named
5100     something starting with __ and the normal name is an alias.  */
5101 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5102 choke me
5103 #else
5104 f = gethostbyname;
5105 #endif
5106
5107   ;
5108   return 0;
5109 }
5110 _ACEOF
5111 rm -f conftest.$ac_objext conftest$ac_exeext
5112 if { (eval echo "$as_me:5112: \"$ac_link\"") >&5
5113   (eval $ac_link) 2>&5
5114   ac_status=$?
5115   echo "$as_me:5115: \$? = $ac_status" >&5
5116   (exit $ac_status); } &&
5117          { ac_try='test -s conftest$ac_exeext'
5118   { (eval echo "$as_me:5118: \"$ac_try\"") >&5
5119   (eval $ac_try) 2>&5
5120   ac_status=$?
5121   echo "$as_me:5121: \$? = $ac_status" >&5
5122   (exit $ac_status); }; }; then
5123   ac_cv_func_gethostbyname=yes
5124 else
5125   echo "$as_me: failed program was:" >&5
5126 cat conftest.$ac_ext >&5
5127 ac_cv_func_gethostbyname=no
5128 fi
5129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5130 fi
5131 echo "$as_me:5131: result: $ac_cv_func_gethostbyname" >&5
5132 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5133 if test $ac_cv_func_gethostbyname = yes; then
5134   :
5135 else
5136
5137   echo "$as_me:5137: checking for gethostbyname in -lnsl" >&5
5138 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5139 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5140   echo $ECHO_N "(cached) $ECHO_C" >&6
5141 else
5142   ac_check_lib_save_LIBS=$LIBS
5143 LIBS="-lnsl  $LIBS"
5144 cat >conftest.$ac_ext <<_ACEOF
5145 #line 5145 "configure"
5146 #include "confdefs.h"
5147
5148 /* Override any gcc2 internal prototype to avoid an error.  */
5149 #ifdef __cplusplus
5150 extern "C"
5151 #endif
5152 /* We use char because int might match the return type of a gcc2
5153    builtin and then its argument prototype would still apply.  */
5154 char gethostbyname ();
5155 int
5156 main ()
5157 {
5158 gethostbyname ();
5159   ;
5160   return 0;
5161 }
5162 _ACEOF
5163 rm -f conftest.$ac_objext conftest$ac_exeext
5164 if { (eval echo "$as_me:5164: \"$ac_link\"") >&5
5165   (eval $ac_link) 2>&5
5166   ac_status=$?
5167   echo "$as_me:5167: \$? = $ac_status" >&5
5168   (exit $ac_status); } &&
5169          { ac_try='test -s conftest$ac_exeext'
5170   { (eval echo "$as_me:5170: \"$ac_try\"") >&5
5171   (eval $ac_try) 2>&5
5172   ac_status=$?
5173   echo "$as_me:5173: \$? = $ac_status" >&5
5174   (exit $ac_status); }; }; then
5175   ac_cv_lib_nsl_gethostbyname=yes
5176 else
5177   echo "$as_me: failed program was:" >&5
5178 cat conftest.$ac_ext >&5
5179 ac_cv_lib_nsl_gethostbyname=no
5180 fi
5181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5182 LIBS=$ac_check_lib_save_LIBS
5183 fi
5184 echo "$as_me:5184: result: $ac_cv_lib_nsl_gethostbyname" >&5
5185 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5186 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5187   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
5188 fi
5189
5190 fi
5191
5192 echo "$as_me:5192: checking for gethostbyname" >&5
5193 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5194 if test "${ac_cv_func_gethostbyname+set}" = set; then
5195   echo $ECHO_N "(cached) $ECHO_C" >&6
5196 else
5197   cat >conftest.$ac_ext <<_ACEOF
5198 #line 5198 "configure"
5199 #include "confdefs.h"
5200 /* System header to define __stub macros and hopefully few prototypes,
5201     which can conflict with char gethostbyname (); below.  */
5202 #include <assert.h>
5203 /* Override any gcc2 internal prototype to avoid an error.  */
5204 #ifdef __cplusplus
5205 extern "C"
5206 #endif
5207 /* We use char because int might match the return type of a gcc2
5208    builtin and then its argument prototype would still apply.  */
5209 char gethostbyname ();
5210 char (*f) ();
5211
5212 int
5213 main ()
5214 {
5215 /* The GNU C library defines this for functions which it implements
5216     to always fail with ENOSYS.  Some functions are actually named
5217     something starting with __ and the normal name is an alias.  */
5218 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5219 choke me
5220 #else
5221 f = gethostbyname;
5222 #endif
5223
5224   ;
5225   return 0;
5226 }
5227 _ACEOF
5228 rm -f conftest.$ac_objext conftest$ac_exeext
5229 if { (eval echo "$as_me:5229: \"$ac_link\"") >&5
5230   (eval $ac_link) 2>&5
5231   ac_status=$?
5232   echo "$as_me:5232: \$? = $ac_status" >&5
5233   (exit $ac_status); } &&
5234          { ac_try='test -s conftest$ac_exeext'
5235   { (eval echo "$as_me:5235: \"$ac_try\"") >&5
5236   (eval $ac_try) 2>&5
5237   ac_status=$?
5238   echo "$as_me:5238: \$? = $ac_status" >&5
5239   (exit $ac_status); }; }; then
5240   ac_cv_func_gethostbyname=yes
5241 else
5242   echo "$as_me: failed program was:" >&5
5243 cat conftest.$ac_ext >&5
5244 ac_cv_func_gethostbyname=no
5245 fi
5246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5247 fi
5248 echo "$as_me:5248: result: $ac_cv_func_gethostbyname" >&5
5249 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5250 if test $ac_cv_func_gethostbyname = yes; then
5251   :
5252 else
5253
5254   echo "$as_me:5254: checking for gethostbyname in -lbind" >&5
5255 echo $ECHO_N "checking for gethostbyname in -lbind... $ECHO_C" >&6
5256 if test "${ac_cv_lib_bind_gethostbyname+set}" = set; then
5257   echo $ECHO_N "(cached) $ECHO_C" >&6
5258 else
5259   ac_check_lib_save_LIBS=$LIBS
5260 LIBS="-lbind  $LIBS"
5261 cat >conftest.$ac_ext <<_ACEOF
5262 #line 5262 "configure"
5263 #include "confdefs.h"
5264
5265 /* Override any gcc2 internal prototype to avoid an error.  */
5266 #ifdef __cplusplus
5267 extern "C"
5268 #endif
5269 /* We use char because int might match the return type of a gcc2
5270    builtin and then its argument prototype would still apply.  */
5271 char gethostbyname ();
5272 int
5273 main ()
5274 {
5275 gethostbyname ();
5276   ;
5277   return 0;
5278 }
5279 _ACEOF
5280 rm -f conftest.$ac_objext conftest$ac_exeext
5281 if { (eval echo "$as_me:5281: \"$ac_link\"") >&5
5282   (eval $ac_link) 2>&5
5283   ac_status=$?
5284   echo "$as_me:5284: \$? = $ac_status" >&5
5285   (exit $ac_status); } &&
5286          { ac_try='test -s conftest$ac_exeext'
5287   { (eval echo "$as_me:5287: \"$ac_try\"") >&5
5288   (eval $ac_try) 2>&5
5289   ac_status=$?
5290   echo "$as_me:5290: \$? = $ac_status" >&5
5291   (exit $ac_status); }; }; then
5292   ac_cv_lib_bind_gethostbyname=yes
5293 else
5294   echo "$as_me: failed program was:" >&5
5295 cat conftest.$ac_ext >&5
5296 ac_cv_lib_bind_gethostbyname=no
5297 fi
5298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5299 LIBS=$ac_check_lib_save_LIBS
5300 fi
5301 echo "$as_me:5301: result: $ac_cv_lib_bind_gethostbyname" >&5
5302 echo "${ECHO_T}$ac_cv_lib_bind_gethostbyname" >&6
5303 if test $ac_cv_lib_bind_gethostbyname = yes; then
5304   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
5305 fi
5306
5307 fi
5308
5309 have_nanosleep=0
5310 echo "$as_me:5310: checking for nanosleep" >&5
5311 echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6
5312 if test "${ac_cv_func_nanosleep+set}" = set; then
5313   echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315   cat >conftest.$ac_ext <<_ACEOF
5316 #line 5316 "configure"
5317 #include "confdefs.h"
5318 /* System header to define __stub macros and hopefully few prototypes,
5319     which can conflict with char nanosleep (); below.  */
5320 #include <assert.h>
5321 /* Override any gcc2 internal prototype to avoid an error.  */
5322 #ifdef __cplusplus
5323 extern "C"
5324 #endif
5325 /* We use char because int might match the return type of a gcc2
5326    builtin and then its argument prototype would still apply.  */
5327 char nanosleep ();
5328 char (*f) ();
5329
5330 int
5331 main ()
5332 {
5333 /* The GNU C library defines this for functions which it implements
5334     to always fail with ENOSYS.  Some functions are actually named
5335     something starting with __ and the normal name is an alias.  */
5336 #if defined (__stub_nanosleep) || defined (__stub___nanosleep)
5337 choke me
5338 #else
5339 f = nanosleep;
5340 #endif
5341
5342   ;
5343   return 0;
5344 }
5345 _ACEOF
5346 rm -f conftest.$ac_objext conftest$ac_exeext
5347 if { (eval echo "$as_me:5347: \"$ac_link\"") >&5
5348   (eval $ac_link) 2>&5
5349   ac_status=$?
5350   echo "$as_me:5350: \$? = $ac_status" >&5
5351   (exit $ac_status); } &&
5352          { ac_try='test -s conftest$ac_exeext'
5353   { (eval echo "$as_me:5353: \"$ac_try\"") >&5
5354   (eval $ac_try) 2>&5
5355   ac_status=$?
5356   echo "$as_me:5356: \$? = $ac_status" >&5
5357   (exit $ac_status); }; }; then
5358   ac_cv_func_nanosleep=yes
5359 else
5360   echo "$as_me: failed program was:" >&5
5361 cat conftest.$ac_ext >&5
5362 ac_cv_func_nanosleep=no
5363 fi
5364 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5365 fi
5366 echo "$as_me:5366: result: $ac_cv_func_nanosleep" >&5
5367 echo "${ECHO_T}$ac_cv_func_nanosleep" >&6
5368 if test $ac_cv_func_nanosleep = yes; then
5369   have_nanosleep=1
5370 else
5371
5372   echo "$as_me:5372: checking for nanosleep in -lrt" >&5
5373 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6
5374 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
5375   echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
5377   ac_check_lib_save_LIBS=$LIBS
5378 LIBS="-lrt  $LIBS"
5379 cat >conftest.$ac_ext <<_ACEOF
5380 #line 5380 "configure"
5381 #include "confdefs.h"
5382
5383 /* Override any gcc2 internal prototype to avoid an error.  */
5384 #ifdef __cplusplus
5385 extern "C"
5386 #endif
5387 /* We use char because int might match the return type of a gcc2
5388    builtin and then its argument prototype would still apply.  */
5389 char nanosleep ();
5390 int
5391 main ()
5392 {
5393 nanosleep ();
5394   ;
5395   return 0;
5396 }
5397 _ACEOF
5398 rm -f conftest.$ac_objext conftest$ac_exeext
5399 if { (eval echo "$as_me:5399: \"$ac_link\"") >&5
5400   (eval $ac_link) 2>&5
5401   ac_status=$?
5402   echo "$as_me:5402: \$? = $ac_status" >&5
5403   (exit $ac_status); } &&
5404          { ac_try='test -s conftest$ac_exeext'
5405   { (eval echo "$as_me:5405: \"$ac_try\"") >&5
5406   (eval $ac_try) 2>&5
5407   ac_status=$?
5408   echo "$as_me:5408: \$? = $ac_status" >&5
5409   (exit $ac_status); }; }; then
5410   ac_cv_lib_rt_nanosleep=yes
5411 else
5412   echo "$as_me: failed program was:" >&5
5413 cat conftest.$ac_ext >&5
5414 ac_cv_lib_rt_nanosleep=no
5415 fi
5416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5417 LIBS=$ac_check_lib_save_LIBS
5418 fi
5419 echo "$as_me:5419: result: $ac_cv_lib_rt_nanosleep" >&5
5420 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6
5421 if test $ac_cv_lib_rt_nanosleep = yes; then
5422   vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"; have_nanosleep=1
5423 else
5424   echo "$as_me:5424: checking for nanosleep in -lposix4" >&5
5425 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
5426 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
5427   echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429   ac_check_lib_save_LIBS=$LIBS
5430 LIBS="-lposix4  $LIBS"
5431 cat >conftest.$ac_ext <<_ACEOF
5432 #line 5432 "configure"
5433 #include "confdefs.h"
5434
5435 /* Override any gcc2 internal prototype to avoid an error.  */
5436 #ifdef __cplusplus
5437 extern "C"
5438 #endif
5439 /* We use char because int might match the return type of a gcc2
5440    builtin and then its argument prototype would still apply.  */
5441 char nanosleep ();
5442 int
5443 main ()
5444 {
5445 nanosleep ();
5446   ;
5447   return 0;
5448 }
5449 _ACEOF
5450 rm -f conftest.$ac_objext conftest$ac_exeext
5451 if { (eval echo "$as_me:5451: \"$ac_link\"") >&5
5452   (eval $ac_link) 2>&5
5453   ac_status=$?
5454   echo "$as_me:5454: \$? = $ac_status" >&5
5455   (exit $ac_status); } &&
5456          { ac_try='test -s conftest$ac_exeext'
5457   { (eval echo "$as_me:5457: \"$ac_try\"") >&5
5458   (eval $ac_try) 2>&5
5459   ac_status=$?
5460   echo "$as_me:5460: \$? = $ac_status" >&5
5461   (exit $ac_status); }; }; then
5462   ac_cv_lib_posix4_nanosleep=yes
5463 else
5464   echo "$as_me: failed program was:" >&5
5465 cat conftest.$ac_ext >&5
5466 ac_cv_lib_posix4_nanosleep=no
5467 fi
5468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5469 LIBS=$ac_check_lib_save_LIBS
5470 fi
5471 echo "$as_me:5471: result: $ac_cv_lib_posix4_nanosleep" >&5
5472 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
5473 if test $ac_cv_lib_posix4_nanosleep = yes; then
5474   vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"; have_nanosleep=1
5475 fi
5476
5477 fi
5478
5479 fi
5480
5481 if test x$have_nanosleep = x1; then
5482
5483 cat >>confdefs.h <<\EOF
5484 #define HAVE_NANOSLEEP 1
5485 EOF
5486
5487 fi
5488 echo "$as_me:5488: checking for inet_aton" >&5
5489 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
5490 if test "${ac_cv_func_inet_aton+set}" = set; then
5491   echo $ECHO_N "(cached) $ECHO_C" >&6
5492 else
5493   cat >conftest.$ac_ext <<_ACEOF
5494 #line 5494 "configure"
5495 #include "confdefs.h"
5496 /* System header to define __stub macros and hopefully few prototypes,
5497     which can conflict with char inet_aton (); below.  */
5498 #include <assert.h>
5499 /* Override any gcc2 internal prototype to avoid an error.  */
5500 #ifdef __cplusplus
5501 extern "C"
5502 #endif
5503 /* We use char because int might match the return type of a gcc2
5504    builtin and then its argument prototype would still apply.  */
5505 char inet_aton ();
5506 char (*f) ();
5507
5508 int
5509 main ()
5510 {
5511 /* The GNU C library defines this for functions which it implements
5512     to always fail with ENOSYS.  Some functions are actually named
5513     something starting with __ and the normal name is an alias.  */
5514 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
5515 choke me
5516 #else
5517 f = inet_aton;
5518 #endif
5519
5520   ;
5521   return 0;
5522 }
5523 _ACEOF
5524 rm -f conftest.$ac_objext conftest$ac_exeext
5525 if { (eval echo "$as_me:5525: \"$ac_link\"") >&5
5526   (eval $ac_link) 2>&5
5527   ac_status=$?
5528   echo "$as_me:5528: \$? = $ac_status" >&5
5529   (exit $ac_status); } &&
5530          { ac_try='test -s conftest$ac_exeext'
5531   { (eval echo "$as_me:5531: \"$ac_try\"") >&5
5532   (eval $ac_try) 2>&5
5533   ac_status=$?
5534   echo "$as_me:5534: \$? = $ac_status" >&5
5535   (exit $ac_status); }; }; then
5536   ac_cv_func_inet_aton=yes
5537 else
5538   echo "$as_me: failed program was:" >&5
5539 cat conftest.$ac_ext >&5
5540 ac_cv_func_inet_aton=no
5541 fi
5542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5543 fi
5544 echo "$as_me:5544: result: $ac_cv_func_inet_aton" >&5
5545 echo "${ECHO_T}$ac_cv_func_inet_aton" >&6
5546 if test $ac_cv_func_inet_aton = yes; then
5547   :
5548 else
5549
5550   echo "$as_me:5550: checking for inet_aton in -lresolv" >&5
5551 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5552 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5553   echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555   ac_check_lib_save_LIBS=$LIBS
5556 LIBS="-lresolv  $LIBS"
5557 cat >conftest.$ac_ext <<_ACEOF
5558 #line 5558 "configure"
5559 #include "confdefs.h"
5560
5561 /* Override any gcc2 internal prototype to avoid an error.  */
5562 #ifdef __cplusplus
5563 extern "C"
5564 #endif
5565 /* We use char because int might match the return type of a gcc2
5566    builtin and then its argument prototype would still apply.  */
5567 char inet_aton ();
5568 int
5569 main ()
5570 {
5571 inet_aton ();
5572   ;
5573   return 0;
5574 }
5575 _ACEOF
5576 rm -f conftest.$ac_objext conftest$ac_exeext
5577 if { (eval echo "$as_me:5577: \"$ac_link\"") >&5
5578   (eval $ac_link) 2>&5
5579   ac_status=$?
5580   echo "$as_me:5580: \$? = $ac_status" >&5
5581   (exit $ac_status); } &&
5582          { ac_try='test -s conftest$ac_exeext'
5583   { (eval echo "$as_me:5583: \"$ac_try\"") >&5
5584   (eval $ac_try) 2>&5
5585   ac_status=$?
5586   echo "$as_me:5586: \$? = $ac_status" >&5
5587   (exit $ac_status); }; }; then
5588   ac_cv_lib_resolv_inet_aton=yes
5589 else
5590   echo "$as_me: failed program was:" >&5
5591 cat conftest.$ac_ext >&5
5592 ac_cv_lib_resolv_inet_aton=no
5593 fi
5594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5595 LIBS=$ac_check_lib_save_LIBS
5596 fi
5597 echo "$as_me:5597: result: $ac_cv_lib_resolv_inet_aton" >&5
5598 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5599 if test $ac_cv_lib_resolv_inet_aton = yes; then
5600   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
5601 fi
5602
5603 fi
5604
5605 echo "$as_me:5605: checking for textdomain" >&5
5606 echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
5607 if test "${ac_cv_func_textdomain+set}" = set; then
5608   echo $ECHO_N "(cached) $ECHO_C" >&6
5609 else
5610   cat >conftest.$ac_ext <<_ACEOF
5611 #line 5611 "configure"
5612 #include "confdefs.h"
5613 /* System header to define __stub macros and hopefully few prototypes,
5614     which can conflict with char textdomain (); below.  */
5615 #include <assert.h>
5616 /* Override any gcc2 internal prototype to avoid an error.  */
5617 #ifdef __cplusplus
5618 extern "C"
5619 #endif
5620 /* We use char because int might match the return type of a gcc2
5621    builtin and then its argument prototype would still apply.  */
5622 char textdomain ();
5623 char (*f) ();
5624
5625 int
5626 main ()
5627 {
5628 /* The GNU C library defines this for functions which it implements
5629     to always fail with ENOSYS.  Some functions are actually named
5630     something starting with __ and the normal name is an alias.  */
5631 #if defined (__stub_textdomain) || defined (__stub___textdomain)
5632 choke me
5633 #else
5634 f = textdomain;
5635 #endif
5636
5637   ;
5638   return 0;
5639 }
5640 _ACEOF
5641 rm -f conftest.$ac_objext conftest$ac_exeext
5642 if { (eval echo "$as_me:5642: \"$ac_link\"") >&5
5643   (eval $ac_link) 2>&5
5644   ac_status=$?
5645   echo "$as_me:5645: \$? = $ac_status" >&5
5646   (exit $ac_status); } &&
5647          { ac_try='test -s conftest$ac_exeext'
5648   { (eval echo "$as_me:5648: \"$ac_try\"") >&5
5649   (eval $ac_try) 2>&5
5650   ac_status=$?
5651   echo "$as_me:5651: \$? = $ac_status" >&5
5652   (exit $ac_status); }; }; then
5653   ac_cv_func_textdomain=yes
5654 else
5655   echo "$as_me: failed program was:" >&5
5656 cat conftest.$ac_ext >&5
5657 ac_cv_func_textdomain=no
5658 fi
5659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5660 fi
5661 echo "$as_me:5661: result: $ac_cv_func_textdomain" >&5
5662 echo "${ECHO_T}$ac_cv_func_textdomain" >&6
5663 if test $ac_cv_func_textdomain = yes; then
5664   :
5665 else
5666
5667   echo "$as_me:5667: checking for textdomain in -lintl" >&5
5668 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
5669 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
5670   echo $ECHO_N "(cached) $ECHO_C" >&6
5671 else
5672   ac_check_lib_save_LIBS=$LIBS
5673 LIBS="-lintl  $LIBS"
5674 cat >conftest.$ac_ext <<_ACEOF
5675 #line 5675 "configure"
5676 #include "confdefs.h"
5677
5678 /* Override any gcc2 internal prototype to avoid an error.  */
5679 #ifdef __cplusplus
5680 extern "C"
5681 #endif
5682 /* We use char because int might match the return type of a gcc2
5683    builtin and then its argument prototype would still apply.  */
5684 char textdomain ();
5685 int
5686 main ()
5687 {
5688 textdomain ();
5689   ;
5690   return 0;
5691 }
5692 _ACEOF
5693 rm -f conftest.$ac_objext conftest$ac_exeext
5694 if { (eval echo "$as_me:5694: \"$ac_link\"") >&5
5695   (eval $ac_link) 2>&5
5696   ac_status=$?
5697   echo "$as_me:5697: \$? = $ac_status" >&5
5698   (exit $ac_status); } &&
5699          { ac_try='test -s conftest$ac_exeext'
5700   { (eval echo "$as_me:5700: \"$ac_try\"") >&5
5701   (eval $ac_try) 2>&5
5702   ac_status=$?
5703   echo "$as_me:5703: \$? = $ac_status" >&5
5704   (exit $ac_status); }; }; then
5705   ac_cv_lib_intl_textdomain=yes
5706 else
5707   echo "$as_me: failed program was:" >&5
5708 cat conftest.$ac_ext >&5
5709 ac_cv_lib_intl_textdomain=no
5710 fi
5711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5712 LIBS=$ac_check_lib_save_LIBS
5713 fi
5714 echo "$as_me:5714: result: $ac_cv_lib_intl_textdomain" >&5
5715 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
5716 if test $ac_cv_lib_intl_textdomain = yes; then
5717   save_LDFLAGS="${save_LDFLAGS} -lintl"
5718 fi
5719
5720 fi
5721
5722 NEED_GETOPT=0
5723 echo "$as_me:5723: checking for getopt_long" >&5
5724 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
5725 if test "${ac_cv_func_getopt_long+set}" = set; then
5726   echo $ECHO_N "(cached) $ECHO_C" >&6
5727 else
5728   cat >conftest.$ac_ext <<_ACEOF
5729 #line 5729 "configure"
5730 #include "confdefs.h"
5731 /* System header to define __stub macros and hopefully few prototypes,
5732     which can conflict with char getopt_long (); below.  */
5733 #include <assert.h>
5734 /* Override any gcc2 internal prototype to avoid an error.  */
5735 #ifdef __cplusplus
5736 extern "C"
5737 #endif
5738 /* We use char because int might match the return type of a gcc2
5739    builtin and then its argument prototype would still apply.  */
5740 char getopt_long ();
5741 char (*f) ();
5742
5743 int
5744 main ()
5745 {
5746 /* The GNU C library defines this for functions which it implements
5747     to always fail with ENOSYS.  Some functions are actually named
5748     something starting with __ and the normal name is an alias.  */
5749 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
5750 choke me
5751 #else
5752 f = getopt_long;
5753 #endif
5754
5755   ;
5756   return 0;
5757 }
5758 _ACEOF
5759 rm -f conftest.$ac_objext conftest$ac_exeext
5760 if { (eval echo "$as_me:5760: \"$ac_link\"") >&5
5761   (eval $ac_link) 2>&5
5762   ac_status=$?
5763   echo "$as_me:5763: \$? = $ac_status" >&5
5764   (exit $ac_status); } &&
5765          { ac_try='test -s conftest$ac_exeext'
5766   { (eval echo "$as_me:5766: \"$ac_try\"") >&5
5767   (eval $ac_try) 2>&5
5768   ac_status=$?
5769   echo "$as_me:5769: \$? = $ac_status" >&5
5770   (exit $ac_status); }; }; then
5771   ac_cv_func_getopt_long=yes
5772 else
5773   echo "$as_me: failed program was:" >&5
5774 cat conftest.$ac_ext >&5
5775 ac_cv_func_getopt_long=no
5776 fi
5777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5778 fi
5779 echo "$as_me:5779: result: $ac_cv_func_getopt_long" >&5
5780 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
5781 if test $ac_cv_func_getopt_long = yes; then
5782
5783 cat >>confdefs.h <<\EOF
5784 #define HAVE_GETOPT_LONG 1
5785 EOF
5786
5787 else
5788    # FreeBSD has a gnugetopt library for this:
5789   echo "$as_me:5789: checking for getopt_long in -lgnugetopt" >&5
5790 echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
5791 if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
5792   echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794   ac_check_lib_save_LIBS=$LIBS
5795 LIBS="-lgnugetopt  $LIBS"
5796 cat >conftest.$ac_ext <<_ACEOF
5797 #line 5797 "configure"
5798 #include "confdefs.h"
5799
5800 /* Override any gcc2 internal prototype to avoid an error.  */
5801 #ifdef __cplusplus
5802 extern "C"
5803 #endif
5804 /* We use char because int might match the return type of a gcc2
5805    builtin and then its argument prototype would still apply.  */
5806 char getopt_long ();
5807 int
5808 main ()
5809 {
5810 getopt_long ();
5811   ;
5812   return 0;
5813 }
5814 _ACEOF
5815 rm -f conftest.$ac_objext conftest$ac_exeext
5816 if { (eval echo "$as_me:5816: \"$ac_link\"") >&5
5817   (eval $ac_link) 2>&5
5818   ac_status=$?
5819   echo "$as_me:5819: \$? = $ac_status" >&5
5820   (exit $ac_status); } &&
5821          { ac_try='test -s conftest$ac_exeext'
5822   { (eval echo "$as_me:5822: \"$ac_try\"") >&5
5823   (eval $ac_try) 2>&5
5824   ac_status=$?
5825   echo "$as_me:5825: \$? = $ac_status" >&5
5826   (exit $ac_status); }; }; then
5827   ac_cv_lib_gnugetopt_getopt_long=yes
5828 else
5829   echo "$as_me: failed program was:" >&5
5830 cat conftest.$ac_ext >&5
5831 ac_cv_lib_gnugetopt_getopt_long=no
5832 fi
5833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5834 LIBS=$ac_check_lib_save_LIBS
5835 fi
5836 echo "$as_me:5836: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
5837 echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
5838 if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
5839
5840 cat >>confdefs.h <<\EOF
5841 #define HAVE_GETOPT_LONG 1
5842 EOF
5843  vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
5844 else
5845   NEED_GETOPT=1
5846 fi
5847
5848 fi
5849
5850 echo "$as_me:5850: checking return type of signal handlers" >&5
5851 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5852 if test "${ac_cv_type_signal+set}" = set; then
5853   echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855   cat >conftest.$ac_ext <<_ACEOF
5856 #line 5856 "configure"
5857 #include "confdefs.h"
5858 #include <sys/types.h>
5859 #include <signal.h>
5860 #ifdef signal
5861 # undef signal
5862 #endif
5863 #ifdef __cplusplus
5864 extern "C" void (*signal (int, void (*)(int)))(int);
5865 #else
5866 void (*signal ()) ();
5867 #endif
5868
5869 int
5870 main ()
5871 {
5872 int i;
5873   ;
5874   return 0;
5875 }
5876 _ACEOF
5877 rm -f conftest.$ac_objext
5878 if { (eval echo "$as_me:5878: \"$ac_compile\"") >&5
5879   (eval $ac_compile) 2>&5
5880   ac_status=$?
5881   echo "$as_me:5881: \$? = $ac_status" >&5
5882   (exit $ac_status); } &&
5883          { ac_try='test -s conftest.$ac_objext'
5884   { (eval echo "$as_me:5884: \"$ac_try\"") >&5
5885   (eval $ac_try) 2>&5
5886   ac_status=$?
5887   echo "$as_me:5887: \$? = $ac_status" >&5
5888   (exit $ac_status); }; }; then
5889   ac_cv_type_signal=void
5890 else
5891   echo "$as_me: failed program was:" >&5
5892 cat conftest.$ac_ext >&5
5893 ac_cv_type_signal=int
5894 fi
5895 rm -f conftest.$ac_objext conftest.$ac_ext
5896 fi
5897 echo "$as_me:5897: result: $ac_cv_type_signal" >&5
5898 echo "${ECHO_T}$ac_cv_type_signal" >&6
5899
5900 cat >>confdefs.h <<EOF
5901 #define RETSIGTYPE $ac_cv_type_signal
5902 EOF
5903
5904 echo "$as_me:5904: checking for dlopen in -ldl" >&5
5905 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5906 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5907   echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909   ac_check_lib_save_LIBS=$LIBS
5910 LIBS="-ldl  $LIBS"
5911 cat >conftest.$ac_ext <<_ACEOF
5912 #line 5912 "configure"
5913 #include "confdefs.h"
5914
5915 /* Override any gcc2 internal prototype to avoid an error.  */
5916 #ifdef __cplusplus
5917 extern "C"
5918 #endif
5919 /* We use char because int might match the return type of a gcc2
5920    builtin and then its argument prototype would still apply.  */
5921 char dlopen ();
5922 int
5923 main ()
5924 {
5925 dlopen ();
5926   ;
5927   return 0;
5928 }
5929 _ACEOF
5930 rm -f conftest.$ac_objext conftest$ac_exeext
5931 if { (eval echo "$as_me:5931: \"$ac_link\"") >&5
5932   (eval $ac_link) 2>&5
5933   ac_status=$?
5934   echo "$as_me:5934: \$? = $ac_status" >&5
5935   (exit $ac_status); } &&
5936          { ac_try='test -s conftest$ac_exeext'
5937   { (eval echo "$as_me:5937: \"$ac_try\"") >&5
5938   (eval $ac_try) 2>&5
5939   ac_status=$?
5940   echo "$as_me:5940: \$? = $ac_status" >&5
5941   (exit $ac_status); }; }; then
5942   ac_cv_lib_dl_dlopen=yes
5943 else
5944   echo "$as_me: failed program was:" >&5
5945 cat conftest.$ac_ext >&5
5946 ac_cv_lib_dl_dlopen=no
5947 fi
5948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5949 LIBS=$ac_check_lib_save_LIBS
5950 fi
5951 echo "$as_me:5951: result: $ac_cv_lib_dl_dlopen" >&5
5952 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5953 if test $ac_cv_lib_dl_dlopen = yes; then
5954   vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
5955 fi
5956
5957 echo "$as_me:5957: checking for cos in -lm" >&5
5958 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
5959 if test "${ac_cv_lib_m_cos+set}" = set; then
5960   echo $ECHO_N "(cached) $ECHO_C" >&6
5961 else
5962   ac_check_lib_save_LIBS=$LIBS
5963 LIBS="-lm  $LIBS"
5964 cat >conftest.$ac_ext <<_ACEOF
5965 #line 5965 "configure"
5966 #include "confdefs.h"
5967
5968 /* Override any gcc2 internal prototype to avoid an error.  */
5969 #ifdef __cplusplus
5970 extern "C"
5971 #endif
5972 /* We use char because int might match the return type of a gcc2
5973    builtin and then its argument prototype would still apply.  */
5974 char cos ();
5975 int
5976 main ()
5977 {
5978 cos ();
5979   ;
5980   return 0;
5981 }
5982 _ACEOF
5983 rm -f conftest.$ac_objext conftest$ac_exeext
5984 if { (eval echo "$as_me:5984: \"$ac_link\"") >&5
5985   (eval $ac_link) 2>&5
5986   ac_status=$?
5987   echo "$as_me:5987: \$? = $ac_status" >&5
5988   (exit $ac_status); } &&
5989          { ac_try='test -s conftest$ac_exeext'
5990   { (eval echo "$as_me:5990: \"$ac_try\"") >&5
5991   (eval $ac_try) 2>&5
5992   ac_status=$?
5993   echo "$as_me:5993: \$? = $ac_status" >&5
5994   (exit $ac_status); }; }; then
5995   ac_cv_lib_m_cos=yes
5996 else
5997   echo "$as_me: failed program was:" >&5
5998 cat conftest.$ac_ext >&5
5999 ac_cv_lib_m_cos=no
6000 fi
6001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6002 LIBS=$ac_check_lib_save_LIBS
6003 fi
6004 echo "$as_me:6004: result: $ac_cv_lib_m_cos" >&5
6005 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
6006 if test $ac_cv_lib_m_cos = yes; then
6007   imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
6008   filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
6009 fi
6010
6011 echo "$as_me:6011: checking for pow in -lm" >&5
6012 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
6013 if test "${ac_cv_lib_m_pow+set}" = set; then
6014   echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016   ac_check_lib_save_LIBS=$LIBS
6017 LIBS="-lm  $LIBS"
6018 cat >conftest.$ac_ext <<_ACEOF
6019 #line 6019 "configure"
6020 #include "confdefs.h"
6021
6022 /* Override any gcc2 internal prototype to avoid an error.  */
6023 #ifdef __cplusplus
6024 extern "C"
6025 #endif
6026 /* We use char because int might match the return type of a gcc2
6027    builtin and then its argument prototype would still apply.  */
6028 char pow ();
6029 int
6030 main ()
6031 {
6032 pow ();
6033   ;
6034   return 0;
6035 }
6036 _ACEOF
6037 rm -f conftest.$ac_objext conftest$ac_exeext
6038 if { (eval echo "$as_me:6038: \"$ac_link\"") >&5
6039   (eval $ac_link) 2>&5
6040   ac_status=$?
6041   echo "$as_me:6041: \$? = $ac_status" >&5
6042   (exit $ac_status); } &&
6043          { ac_try='test -s conftest$ac_exeext'
6044   { (eval echo "$as_me:6044: \"$ac_try\"") >&5
6045   (eval $ac_try) 2>&5
6046   ac_status=$?
6047   echo "$as_me:6047: \$? = $ac_status" >&5
6048   (exit $ac_status); }; }; then
6049   ac_cv_lib_m_pow=yes
6050 else
6051   echo "$as_me: failed program was:" >&5
6052 cat conftest.$ac_ext >&5
6053 ac_cv_lib_m_pow=no
6054 fi
6055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6056 LIBS=$ac_check_lib_save_LIBS
6057 fi
6058 echo "$as_me:6058: result: $ac_cv_lib_m_pow" >&5
6059 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
6060 if test $ac_cv_lib_m_pow = yes; then
6061   imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
6062   imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
6063   imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
6064   chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
6065
6066 fi
6067
6068 THREAD_LIB=error
6069 if test "x${THREAD_LIB}" = xerror; then
6070   echo "$as_me:6070: checking for pthread_attr_init in -lpthread" >&5
6071 echo $ECHO_N "checking for pthread_attr_init in -lpthread... $ECHO_C" >&6
6072 if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then
6073   echo $ECHO_N "(cached) $ECHO_C" >&6
6074 else
6075   ac_check_lib_save_LIBS=$LIBS
6076 LIBS="-lpthread  $LIBS"
6077 cat >conftest.$ac_ext <<_ACEOF
6078 #line 6078 "configure"
6079 #include "confdefs.h"
6080
6081 /* Override any gcc2 internal prototype to avoid an error.  */
6082 #ifdef __cplusplus
6083 extern "C"
6084 #endif
6085 /* We use char because int might match the return type of a gcc2
6086    builtin and then its argument prototype would still apply.  */
6087 char pthread_attr_init ();
6088 int
6089 main ()
6090 {
6091 pthread_attr_init ();
6092   ;
6093   return 0;
6094 }
6095 _ACEOF
6096 rm -f conftest.$ac_objext conftest$ac_exeext
6097 if { (eval echo "$as_me:6097: \"$ac_link\"") >&5
6098   (eval $ac_link) 2>&5
6099   ac_status=$?
6100   echo "$as_me:6100: \$? = $ac_status" >&5
6101   (exit $ac_status); } &&
6102          { ac_try='test -s conftest$ac_exeext'
6103   { (eval echo "$as_me:6103: \"$ac_try\"") >&5
6104   (eval $ac_try) 2>&5
6105   ac_status=$?
6106   echo "$as_me:6106: \$? = $ac_status" >&5
6107   (exit $ac_status); }; }; then
6108   ac_cv_lib_pthread_pthread_attr_init=yes
6109 else
6110   echo "$as_me: failed program was:" >&5
6111 cat conftest.$ac_ext >&5
6112 ac_cv_lib_pthread_pthread_attr_init=no
6113 fi
6114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6115 LIBS=$ac_check_lib_save_LIBS
6116 fi
6117 echo "$as_me:6117: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
6118 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_attr_init" >&6
6119 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
6120   THREAD_LIB="-lpthread"
6121 fi
6122
6123 fi
6124 if test "x${THREAD_LIB}" = xerror; then
6125   echo "$as_me:6125: checking for pthread_attr_init in -lpthreads" >&5
6126 echo $ECHO_N "checking for pthread_attr_init in -lpthreads... $ECHO_C" >&6
6127 if test "${ac_cv_lib_pthreads_pthread_attr_init+set}" = set; then
6128   echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130   ac_check_lib_save_LIBS=$LIBS
6131 LIBS="-lpthreads  $LIBS"
6132 cat >conftest.$ac_ext <<_ACEOF
6133 #line 6133 "configure"
6134 #include "confdefs.h"
6135
6136 /* Override any gcc2 internal prototype to avoid an error.  */
6137 #ifdef __cplusplus
6138 extern "C"
6139 #endif
6140 /* We use char because int might match the return type of a gcc2
6141    builtin and then its argument prototype would still apply.  */
6142 char pthread_attr_init ();
6143 int
6144 main ()
6145 {
6146 pthread_attr_init ();
6147   ;
6148   return 0;
6149 }
6150 _ACEOF
6151 rm -f conftest.$ac_objext conftest$ac_exeext
6152 if { (eval echo "$as_me:6152: \"$ac_link\"") >&5
6153   (eval $ac_link) 2>&5
6154   ac_status=$?
6155   echo "$as_me:6155: \$? = $ac_status" >&5
6156   (exit $ac_status); } &&
6157          { ac_try='test -s conftest$ac_exeext'
6158   { (eval echo "$as_me:6158: \"$ac_try\"") >&5
6159   (eval $ac_try) 2>&5
6160   ac_status=$?
6161   echo "$as_me:6161: \$? = $ac_status" >&5
6162   (exit $ac_status); }; }; then
6163   ac_cv_lib_pthreads_pthread_attr_init=yes
6164 else
6165   echo "$as_me: failed program was:" >&5
6166 cat conftest.$ac_ext >&5
6167 ac_cv_lib_pthreads_pthread_attr_init=no
6168 fi
6169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6170 LIBS=$ac_check_lib_save_LIBS
6171 fi
6172 echo "$as_me:6172: result: $ac_cv_lib_pthreads_pthread_attr_init" >&5
6173 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_attr_init" >&6
6174 if test $ac_cv_lib_pthreads_pthread_attr_init = yes; then
6175   THREAD_LIB="-lpthreads"
6176 fi
6177
6178 fi
6179 if test "x${THREAD_LIB}" = xerror; then
6180   echo "$as_me:6180: checking for pthread_attr_init in -lc_r" >&5
6181 echo $ECHO_N "checking for pthread_attr_init in -lc_r... $ECHO_C" >&6
6182 if test "${ac_cv_lib_c_r_pthread_attr_init+set}" = set; then
6183   echo $ECHO_N "(cached) $ECHO_C" >&6
6184 else
6185   ac_check_lib_save_LIBS=$LIBS
6186 LIBS="-lc_r  $LIBS"
6187 cat >conftest.$ac_ext <<_ACEOF
6188 #line 6188 "configure"
6189 #include "confdefs.h"
6190
6191 /* Override any gcc2 internal prototype to avoid an error.  */
6192 #ifdef __cplusplus
6193 extern "C"
6194 #endif
6195 /* We use char because int might match the return type of a gcc2
6196    builtin and then its argument prototype would still apply.  */
6197 char pthread_attr_init ();
6198 int
6199 main ()
6200 {
6201 pthread_attr_init ();
6202   ;
6203   return 0;
6204 }
6205 _ACEOF
6206 rm -f conftest.$ac_objext conftest$ac_exeext
6207 if { (eval echo "$as_me:6207: \"$ac_link\"") >&5
6208   (eval $ac_link) 2>&5
6209   ac_status=$?
6210   echo "$as_me:6210: \$? = $ac_status" >&5
6211   (exit $ac_status); } &&
6212          { ac_try='test -s conftest$ac_exeext'
6213   { (eval echo "$as_me:6213: \"$ac_try\"") >&5
6214   (eval $ac_try) 2>&5
6215   ac_status=$?
6216   echo "$as_me:6216: \$? = $ac_status" >&5
6217   (exit $ac_status); }; }; then
6218   ac_cv_lib_c_r_pthread_attr_init=yes
6219 else
6220   echo "$as_me: failed program was:" >&5
6221 cat conftest.$ac_ext >&5
6222 ac_cv_lib_c_r_pthread_attr_init=no
6223 fi
6224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6225 LIBS=$ac_check_lib_save_LIBS
6226 fi
6227 echo "$as_me:6227: result: $ac_cv_lib_c_r_pthread_attr_init" >&5
6228 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_attr_init" >&6
6229 if test $ac_cv_lib_c_r_pthread_attr_init = yes; then
6230   THREAD_LIB="-lc_r"
6231 fi
6232
6233 fi
6234 if test "x${THREAD_LIB}" = xerror; then
6235   echo "$as_me:6235: checking for pthread_attr_init" >&5
6236 echo $ECHO_N "checking for pthread_attr_init... $ECHO_C" >&6
6237 if test "${ac_cv_func_pthread_attr_init+set}" = set; then
6238   echo $ECHO_N "(cached) $ECHO_C" >&6
6239 else
6240   cat >conftest.$ac_ext <<_ACEOF
6241 #line 6241 "configure"
6242 #include "confdefs.h"
6243 /* System header to define __stub macros and hopefully few prototypes,
6244     which can conflict with char pthread_attr_init (); below.  */
6245 #include <assert.h>
6246 /* Override any gcc2 internal prototype to avoid an error.  */
6247 #ifdef __cplusplus
6248 extern "C"
6249 #endif
6250 /* We use char because int might match the return type of a gcc2
6251    builtin and then its argument prototype would still apply.  */
6252 char pthread_attr_init ();
6253 char (*f) ();
6254
6255 int
6256 main ()
6257 {
6258 /* The GNU C library defines this for functions which it implements
6259     to always fail with ENOSYS.  Some functions are actually named
6260     something starting with __ and the normal name is an alias.  */
6261 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
6262 choke me
6263 #else
6264 f = pthread_attr_init;
6265 #endif
6266
6267   ;
6268   return 0;
6269 }
6270 _ACEOF
6271 rm -f conftest.$ac_objext conftest$ac_exeext
6272 if { (eval echo "$as_me:6272: \"$ac_link\"") >&5
6273   (eval $ac_link) 2>&5
6274   ac_status=$?
6275   echo "$as_me:6275: \$? = $ac_status" >&5
6276   (exit $ac_status); } &&
6277          { ac_try='test -s conftest$ac_exeext'
6278   { (eval echo "$as_me:6278: \"$ac_try\"") >&5
6279   (eval $ac_try) 2>&5
6280   ac_status=$?
6281   echo "$as_me:6281: \$? = $ac_status" >&5
6282   (exit $ac_status); }; }; then
6283   ac_cv_func_pthread_attr_init=yes
6284 else
6285   echo "$as_me: failed program was:" >&5
6286 cat conftest.$ac_ext >&5
6287 ac_cv_func_pthread_attr_init=no
6288 fi
6289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6290 fi
6291 echo "$as_me:6291: result: $ac_cv_func_pthread_attr_init" >&5
6292 echo "${ECHO_T}$ac_cv_func_pthread_attr_init" >&6
6293
6294   THREAD_LIB=""
6295 fi
6296
6297 echo "$as_me:6297: checking for cthread_fork in -lthreads" >&5
6298 echo $ECHO_N "checking for cthread_fork in -lthreads... $ECHO_C" >&6
6299 if test "${ac_cv_lib_threads_cthread_fork+set}" = set; then
6300   echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302   ac_check_lib_save_LIBS=$LIBS
6303 LIBS="-lthreads  $LIBS"
6304 cat >conftest.$ac_ext <<_ACEOF
6305 #line 6305 "configure"
6306 #include "confdefs.h"
6307
6308 /* Override any gcc2 internal prototype to avoid an error.  */
6309 #ifdef __cplusplus
6310 extern "C"
6311 #endif
6312 /* We use char because int might match the return type of a gcc2
6313    builtin and then its argument prototype would still apply.  */
6314 char cthread_fork ();
6315 int
6316 main ()
6317 {
6318 cthread_fork ();
6319   ;
6320   return 0;
6321 }
6322 _ACEOF
6323 rm -f conftest.$ac_objext conftest$ac_exeext
6324 if { (eval echo "$as_me:6324: \"$ac_link\"") >&5
6325   (eval $ac_link) 2>&5
6326   ac_status=$?
6327   echo "$as_me:6327: \$? = $ac_status" >&5
6328   (exit $ac_status); } &&
6329          { ac_try='test -s conftest$ac_exeext'
6330   { (eval echo "$as_me:6330: \"$ac_try\"") >&5
6331   (eval $ac_try) 2>&5
6332   ac_status=$?
6333   echo "$as_me:6333: \$? = $ac_status" >&5
6334   (exit $ac_status); }; }; then
6335   ac_cv_lib_threads_cthread_fork=yes
6336 else
6337   echo "$as_me: failed program was:" >&5
6338 cat conftest.$ac_ext >&5
6339 ac_cv_lib_threads_cthread_fork=no
6340 fi
6341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6342 LIBS=$ac_check_lib_save_LIBS
6343 fi
6344 echo "$as_me:6344: result: $ac_cv_lib_threads_cthread_fork" >&5
6345 echo "${ECHO_T}$ac_cv_lib_threads_cthread_fork" >&6
6346 if test $ac_cv_lib_threads_cthread_fork = yes; then
6347   THREAD_LIB="-lthreads"
6348 fi
6349
6350 cat >conftest.$ac_ext <<_ACEOF
6351 #line 6351 "configure"
6352 #include "confdefs.h"
6353 #include <pthread.h>
6354
6355 _ACEOF
6356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6357   egrep "pthread_cond_t" >/dev/null 2>&1; then
6358
6359 cat >>confdefs.h <<\EOF
6360 #define PTHREAD_COND_T_IN_PTHREAD_H 1
6361 EOF
6362
6363 fi
6364 rm -f conftest*
6365
6366 cat >conftest.$ac_ext <<_ACEOF
6367 #line 6367 "configure"
6368 #include "confdefs.h"
6369 #include <strings.h>
6370
6371 _ACEOF
6372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6373   egrep "strncasecmp" >/dev/null 2>&1; then
6374
6375 cat >>confdefs.h <<\EOF
6376 #define STRNCASECMP_IN_STRINGS_H 1
6377 EOF
6378
6379 fi
6380 rm -f conftest*
6381
6382 for ac_header in stdint.h getopt.h strings.h inttypes.h sys/int_types.h
6383 do
6384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6385 echo "$as_me:6385: checking for $ac_header" >&5
6386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6388   echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390   cat >conftest.$ac_ext <<_ACEOF
6391 #line 6391 "configure"
6392 #include "confdefs.h"
6393 #include <$ac_header>
6394 _ACEOF
6395 if { (eval echo "$as_me:6395: \"$ac_cpp conftest.$ac_ext\"") >&5
6396   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6397   ac_status=$?
6398   egrep -v '^ *\+' conftest.er1 >conftest.err
6399   rm -f conftest.er1
6400   cat conftest.err >&5
6401   echo "$as_me:6401: \$? = $ac_status" >&5
6402   (exit $ac_status); } >/dev/null; then
6403   if test -s conftest.err; then
6404     ac_cpp_err=$ac_c_preproc_warn_flag
6405   else
6406     ac_cpp_err=
6407   fi
6408 else
6409   ac_cpp_err=yes
6410 fi
6411 if test -z "$ac_cpp_err"; then
6412   eval "$as_ac_Header=yes"
6413 else
6414   echo "$as_me: failed program was:" >&5
6415   cat conftest.$ac_ext >&5
6416   eval "$as_ac_Header=no"
6417 fi
6418 rm -f conftest.err conftest.$ac_ext
6419 fi
6420 echo "$as_me:6420: result: `eval echo '${'$as_ac_Header'}'`" >&5
6421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6423   cat >>confdefs.h <<EOF
6424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6425 EOF
6426
6427 fi
6428 done
6429
6430 for ac_header in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
6431 do
6432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6433 echo "$as_me:6433: checking for $ac_header" >&5
6434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6436   echo $ECHO_N "(cached) $ECHO_C" >&6
6437 else
6438   cat >conftest.$ac_ext <<_ACEOF
6439 #line 6439 "configure"
6440 #include "confdefs.h"
6441 #include <$ac_header>
6442 _ACEOF
6443 if { (eval echo "$as_me:6443: \"$ac_cpp conftest.$ac_ext\"") >&5
6444   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6445   ac_status=$?
6446   egrep -v '^ *\+' conftest.er1 >conftest.err
6447   rm -f conftest.er1
6448   cat conftest.err >&5
6449   echo "$as_me:6449: \$? = $ac_status" >&5
6450   (exit $ac_status); } >/dev/null; then
6451   if test -s conftest.err; then
6452     ac_cpp_err=$ac_c_preproc_warn_flag
6453   else
6454     ac_cpp_err=
6455   fi
6456 else
6457   ac_cpp_err=yes
6458 fi
6459 if test -z "$ac_cpp_err"; then
6460   eval "$as_ac_Header=yes"
6461 else
6462   echo "$as_me: failed program was:" >&5
6463   cat conftest.$ac_ext >&5
6464   eval "$as_ac_Header=no"
6465 fi
6466 rm -f conftest.err conftest.$ac_ext
6467 fi
6468 echo "$as_me:6468: result: `eval echo '${'$as_ac_Header'}'`" >&5
6469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6471   cat >>confdefs.h <<EOF
6472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6473 EOF
6474
6475 fi
6476 done
6477
6478 for ac_header in dlfcn.h image.h
6479 do
6480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6481 echo "$as_me:6481: checking for $ac_header" >&5
6482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6484   echo $ECHO_N "(cached) $ECHO_C" >&6
6485 else
6486   cat >conftest.$ac_ext <<_ACEOF
6487 #line 6487 "configure"
6488 #include "confdefs.h"
6489 #include <$ac_header>
6490 _ACEOF
6491 if { (eval echo "$as_me:6491: \"$ac_cpp conftest.$ac_ext\"") >&5
6492   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6493   ac_status=$?
6494   egrep -v '^ *\+' conftest.er1 >conftest.err
6495   rm -f conftest.er1
6496   cat conftest.err >&5
6497   echo "$as_me:6497: \$? = $ac_status" >&5
6498   (exit $ac_status); } >/dev/null; then
6499   if test -s conftest.err; then
6500     ac_cpp_err=$ac_c_preproc_warn_flag
6501   else
6502     ac_cpp_err=
6503   fi
6504 else
6505   ac_cpp_err=yes
6506 fi
6507 if test -z "$ac_cpp_err"; then
6508   eval "$as_ac_Header=yes"
6509 else
6510   echo "$as_me: failed program was:" >&5
6511   cat conftest.$ac_ext >&5
6512   eval "$as_ac_Header=no"
6513 fi
6514 rm -f conftest.err conftest.$ac_ext
6515 fi
6516 echo "$as_me:6516: result: `eval echo '${'$as_ac_Header'}'`" >&5
6517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6519   cat >>confdefs.h <<EOF
6520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6521 EOF
6522
6523 fi
6524 done
6525
6526 for ac_header in arpa/inet.h net/if.h netinet/in.h sys/socket.h
6527 do
6528 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6529 echo "$as_me:6529: checking for $ac_header" >&5
6530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6532   echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534   cat >conftest.$ac_ext <<_ACEOF
6535 #line 6535 "configure"
6536 #include "confdefs.h"
6537 #include <$ac_header>
6538 _ACEOF
6539 if { (eval echo "$as_me:6539: \"$ac_cpp conftest.$ac_ext\"") >&5
6540   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6541   ac_status=$?
6542   egrep -v '^ *\+' conftest.er1 >conftest.err
6543   rm -f conftest.er1
6544   cat conftest.err >&5
6545   echo "$as_me:6545: \$? = $ac_status" >&5
6546   (exit $ac_status); } >/dev/null; then
6547   if test -s conftest.err; then
6548     ac_cpp_err=$ac_c_preproc_warn_flag
6549   else
6550     ac_cpp_err=
6551   fi
6552 else
6553   ac_cpp_err=yes
6554 fi
6555 if test -z "$ac_cpp_err"; then
6556   eval "$as_ac_Header=yes"
6557 else
6558   echo "$as_me: failed program was:" >&5
6559   cat conftest.$ac_ext >&5
6560   eval "$as_ac_Header=no"
6561 fi
6562 rm -f conftest.err conftest.$ac_ext
6563 fi
6564 echo "$as_me:6564: result: `eval echo '${'$as_ac_Header'}'`" >&5
6565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6567   cat >>confdefs.h <<EOF
6568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6569 EOF
6570
6571 fi
6572 done
6573
6574 for ac_header in machine/param.h sys/shm.h
6575 do
6576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6577 echo "$as_me:6577: checking for $ac_header" >&5
6578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6580   echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582   cat >conftest.$ac_ext <<_ACEOF
6583 #line 6583 "configure"
6584 #include "confdefs.h"
6585 #include <$ac_header>
6586 _ACEOF
6587 if { (eval echo "$as_me:6587: \"$ac_cpp conftest.$ac_ext\"") >&5
6588   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6589   ac_status=$?
6590   egrep -v '^ *\+' conftest.er1 >conftest.err
6591   rm -f conftest.er1
6592   cat conftest.err >&5
6593   echo "$as_me:6593: \$? = $ac_status" >&5
6594   (exit $ac_status); } >/dev/null; then
6595   if test -s conftest.err; then
6596     ac_cpp_err=$ac_c_preproc_warn_flag
6597   else
6598     ac_cpp_err=
6599   fi
6600 else
6601   ac_cpp_err=yes
6602 fi
6603 if test -z "$ac_cpp_err"; then
6604   eval "$as_ac_Header=yes"
6605 else
6606   echo "$as_me: failed program was:" >&5
6607   cat conftest.$ac_ext >&5
6608   eval "$as_ac_Header=no"
6609 fi
6610 rm -f conftest.err conftest.$ac_ext
6611 fi
6612 echo "$as_me:6612: result: `eval echo '${'$as_ac_Header'}'`" >&5
6613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6615   cat >>confdefs.h <<EOF
6616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6617 EOF
6618
6619 fi
6620 done
6621
6622 for ac_header in linux/version.h
6623 do
6624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6625 echo "$as_me:6625: checking for $ac_header" >&5
6626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6628   echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630   cat >conftest.$ac_ext <<_ACEOF
6631 #line 6631 "configure"
6632 #include "confdefs.h"
6633 #include <$ac_header>
6634 _ACEOF
6635 if { (eval echo "$as_me:6635: \"$ac_cpp conftest.$ac_ext\"") >&5
6636   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6637   ac_status=$?
6638   egrep -v '^ *\+' conftest.er1 >conftest.err
6639   rm -f conftest.er1
6640   cat conftest.err >&5
6641   echo "$as_me:6641: \$? = $ac_status" >&5
6642   (exit $ac_status); } >/dev/null; then
6643   if test -s conftest.err; then
6644     ac_cpp_err=$ac_c_preproc_warn_flag
6645   else
6646     ac_cpp_err=
6647   fi
6648 else
6649   ac_cpp_err=yes
6650 fi
6651 if test -z "$ac_cpp_err"; then
6652   eval "$as_ac_Header=yes"
6653 else
6654   echo "$as_me: failed program was:" >&5
6655   cat conftest.$ac_ext >&5
6656   eval "$as_ac_Header=no"
6657 fi
6658 rm -f conftest.err conftest.$ac_ext
6659 fi
6660 echo "$as_me:6660: result: `eval echo '${'$as_ac_Header'}'`" >&5
6661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6663   cat >>confdefs.h <<EOF
6664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6665 EOF
6666
6667 fi
6668 done
6669
6670 echo "$as_me:6670: checking whether time.h and sys/time.h may both be included" >&5
6671 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6672 if test "${ac_cv_header_time+set}" = set; then
6673   echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675   cat >conftest.$ac_ext <<_ACEOF
6676 #line 6676 "configure"
6677 #include "confdefs.h"
6678 #include <sys/types.h>
6679 #include <sys/time.h>
6680 #include <time.h>
6681
6682 int
6683 main ()
6684 {
6685 if ((struct tm *) 0)
6686 return 0;
6687   ;
6688   return 0;
6689 }
6690 _ACEOF
6691 rm -f conftest.$ac_objext
6692 if { (eval echo "$as_me:6692: \"$ac_compile\"") >&5
6693   (eval $ac_compile) 2>&5
6694   ac_status=$?
6695   echo "$as_me:6695: \$? = $ac_status" >&5
6696   (exit $ac_status); } &&
6697          { ac_try='test -s conftest.$ac_objext'
6698   { (eval echo "$as_me:6698: \"$ac_try\"") >&5
6699   (eval $ac_try) 2>&5
6700   ac_status=$?
6701   echo "$as_me:6701: \$? = $ac_status" >&5
6702   (exit $ac_status); }; }; then
6703   ac_cv_header_time=yes
6704 else
6705   echo "$as_me: failed program was:" >&5
6706 cat conftest.$ac_ext >&5
6707 ac_cv_header_time=no
6708 fi
6709 rm -f conftest.$ac_objext conftest.$ac_ext
6710 fi
6711 echo "$as_me:6711: result: $ac_cv_header_time" >&5
6712 echo "${ECHO_T}$ac_cv_header_time" >&6
6713 if test $ac_cv_header_time = yes; then
6714
6715 cat >>confdefs.h <<\EOF
6716 #define TIME_WITH_SYS_TIME 1
6717 EOF
6718
6719 fi
6720
6721 cat >conftest.$ac_ext <<_ACEOF
6722 #line 6722 "configure"
6723 #include "confdefs.h"
6724 #include <time.h>
6725
6726 _ACEOF
6727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6728   egrep "nanosleep" >/dev/null 2>&1; then
6729
6730 cat >>confdefs.h <<\EOF
6731 #define HAVE_DECL_NANOSLEEP 1
6732 EOF
6733
6734 fi
6735 rm -f conftest*
6736
6737 cat >conftest.$ac_ext <<_ACEOF
6738 #line 6738 "configure"
6739 #include "confdefs.h"
6740 #include <sys/time.h>
6741
6742 _ACEOF
6743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6744   egrep "timespec" >/dev/null 2>&1; then
6745
6746 cat >>confdefs.h <<\EOF
6747 #define HAVE_STRUCT_TIMESPEC 1
6748 EOF
6749
6750 fi
6751 rm -f conftest*
6752
6753 for ac_header in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
6754 do
6755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6756 echo "$as_me:6756: checking for $ac_header" >&5
6757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6759   echo $ECHO_N "(cached) $ECHO_C" >&6
6760 else
6761   cat >conftest.$ac_ext <<_ACEOF
6762 #line 6762 "configure"
6763 #include "confdefs.h"
6764 #include <$ac_header>
6765 _ACEOF
6766 if { (eval echo "$as_me:6766: \"$ac_cpp conftest.$ac_ext\"") >&5
6767   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6768   ac_status=$?
6769   egrep -v '^ *\+' conftest.er1 >conftest.err
6770   rm -f conftest.er1
6771   cat conftest.err >&5
6772   echo "$as_me:6772: \$? = $ac_status" >&5
6773   (exit $ac_status); } >/dev/null; then
6774   if test -s conftest.err; then
6775     ac_cpp_err=$ac_c_preproc_warn_flag
6776   else
6777     ac_cpp_err=
6778   fi
6779 else
6780   ac_cpp_err=yes
6781 fi
6782 if test -z "$ac_cpp_err"; then
6783   eval "$as_ac_Header=yes"
6784 else
6785   echo "$as_me: failed program was:" >&5
6786   cat conftest.$ac_ext >&5
6787   eval "$as_ac_Header=no"
6788 fi
6789 rm -f conftest.err conftest.$ac_ext
6790 fi
6791 echo "$as_me:6791: result: `eval echo '${'$as_ac_Header'}'`" >&5
6792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6794   cat >>confdefs.h <<EOF
6795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6796 EOF
6797
6798 fi
6799 done
6800
6801 if test x$SYS != xmingw32
6802 then
6803   if test x$x_includes = xNONE; then
6804     x_includes=/usr/X11R6/include
6805   fi
6806   if test x$x_libraries = xNONE; then
6807     x_libraries=/usr/X11R6/lib
6808   fi
6809   CPPFLAGS="$save_CPPFLAGS -I$x_includes"
6810
6811 for ac_header in X11/extensions/dpms.h
6812 do
6813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6814 echo "$as_me:6814: checking for $ac_header" >&5
6815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6817   echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819   cat >conftest.$ac_ext <<_ACEOF
6820 #line 6820 "configure"
6821 #include "confdefs.h"
6822 #include <$ac_header>
6823 _ACEOF
6824 if { (eval echo "$as_me:6824: \"$ac_cpp conftest.$ac_ext\"") >&5
6825   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6826   ac_status=$?
6827   egrep -v '^ *\+' conftest.er1 >conftest.err
6828   rm -f conftest.er1
6829   cat conftest.err >&5
6830   echo "$as_me:6830: \$? = $ac_status" >&5
6831   (exit $ac_status); } >/dev/null; then
6832   if test -s conftest.err; then
6833     ac_cpp_err=$ac_c_preproc_warn_flag
6834   else
6835     ac_cpp_err=
6836   fi
6837 else
6838   ac_cpp_err=yes
6839 fi
6840 if test -z "$ac_cpp_err"; then
6841   eval "$as_ac_Header=yes"
6842 else
6843   echo "$as_me: failed program was:" >&5
6844   cat conftest.$ac_ext >&5
6845   eval "$as_ac_Header=no"
6846 fi
6847 rm -f conftest.err conftest.$ac_ext
6848 fi
6849 echo "$as_me:6849: result: `eval echo '${'$as_ac_Header'}'`" >&5
6850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6852   cat >>confdefs.h <<EOF
6853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6854 EOF
6855
6856     cat >conftest.$ac_ext <<_ACEOF
6857 #line 6857 "configure"
6858 #include "confdefs.h"
6859 #include <X11/extensions/dpms.h>
6860
6861 _ACEOF
6862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6863   egrep "DPMSInfo" >/dev/null 2>&1; then
6864
6865 cat >>confdefs.h <<\EOF
6866 #define DPMSINFO_IN_DPMS_H 1
6867 EOF
6868
6869 fi
6870 rm -f conftest*
6871
6872 fi
6873 done
6874
6875   CPPFLAGS="$save_CPPFLAGS"
6876 fi
6877
6878 echo "$as_me:6878: checking for ntohl in sys/param.h" >&5
6879 echo $ECHO_N "checking for ntohl in sys/param.h... $ECHO_C" >&6
6880 if test "${ac_cv_c_ntohl_sys_param_h+set}" = set; then
6881   echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else
6883   CFLAGS="${save_CFLAGS} -Wall -Werror"
6884      cat >conftest.$ac_ext <<_ACEOF
6885 #line 6885 "configure"
6886 #include "confdefs.h"
6887 #include <sys/param.h>
6888 int
6889 main ()
6890 {
6891 void foo() { int meuh; ntohl(meuh); }
6892   ;
6893   return 0;
6894 }
6895 _ACEOF
6896 rm -f conftest.$ac_objext
6897 if { (eval echo "$as_me:6897: \"$ac_compile\"") >&5
6898   (eval $ac_compile) 2>&5
6899   ac_status=$?
6900   echo "$as_me:6900: \$? = $ac_status" >&5
6901   (exit $ac_status); } &&
6902          { ac_try='test -s conftest.$ac_objext'
6903   { (eval echo "$as_me:6903: \"$ac_try\"") >&5
6904   (eval $ac_try) 2>&5
6905   ac_status=$?
6906   echo "$as_me:6906: \$? = $ac_status" >&5
6907   (exit $ac_status); }; }; then
6908   ac_cv_c_ntohl_sys_param_h=yes
6909 else
6910   echo "$as_me: failed program was:" >&5
6911 cat conftest.$ac_ext >&5
6912 ac_cv_c_ntohl_sys_param_h=no
6913 fi
6914 rm -f conftest.$ac_objext conftest.$ac_ext
6915 fi
6916 echo "$as_me:6916: result: $ac_cv_c_ntohl_sys_param_h" >&5
6917 echo "${ECHO_T}$ac_cv_c_ntohl_sys_param_h" >&6
6918 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
6919
6920 cat >>confdefs.h <<\EOF
6921 #define NTOHL_IN_SYS_PARAM_H 1
6922 EOF
6923
6924 fi
6925
6926 echo "$as_me:6926: checking if \$CC accepts -finline-limit" >&5
6927 echo $ECHO_N "checking if \$CC accepts -finline-limit... $ECHO_C" >&6
6928 if test "${ac_cv_c_inline_limit+set}" = set; then
6929   echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931   CFLAGS="${save_CFLAGS} -finline-limit-30000"
6932      cat >conftest.$ac_ext <<_ACEOF
6933 #line 6933 "configure"
6934 #include "confdefs.h"
6935
6936 int
6937 main ()
6938 {
6939
6940   ;
6941   return 0;
6942 }
6943 _ACEOF
6944 rm -f conftest.$ac_objext
6945 if { (eval echo "$as_me:6945: \"$ac_compile\"") >&5
6946   (eval $ac_compile) 2>&5
6947   ac_status=$?
6948   echo "$as_me:6948: \$? = $ac_status" >&5
6949   (exit $ac_status); } &&
6950          { ac_try='test -s conftest.$ac_objext'
6951   { (eval echo "$as_me:6951: \"$ac_try\"") >&5
6952   (eval $ac_try) 2>&5
6953   ac_status=$?
6954   echo "$as_me:6954: \$? = $ac_status" >&5
6955   (exit $ac_status); }; }; then
6956   ac_cv_c_inline_limit=yes
6957 else
6958   echo "$as_me: failed program was:" >&5
6959 cat conftest.$ac_ext >&5
6960 ac_cv_c_inline_limit=no
6961 fi
6962 rm -f conftest.$ac_objext conftest.$ac_ext
6963 fi
6964 echo "$as_me:6964: result: $ac_cv_c_inline_limit" >&5
6965 echo "${ECHO_T}$ac_cv_c_inline_limit" >&6
6966 if test x"$ac_cv_c_inline_limit" != x"no"; then
6967     save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
6968 fi
6969
6970 echo "$as_me:6970: checking if \$CC accepts -Wall -Winline" >&5
6971 echo $ECHO_N "checking if \$CC accepts -Wall -Winline... $ECHO_C" >&6
6972 if test "${ac_cv_c_Wall_Winline+set}" = set; then
6973   echo $ECHO_N "(cached) $ECHO_C" >&6
6974 else
6975   CFLAGS="${save_CFLAGS} -Wall -Winline"
6976      cat >conftest.$ac_ext <<_ACEOF
6977 #line 6977 "configure"
6978 #include "confdefs.h"
6979
6980 int
6981 main ()
6982 {
6983
6984   ;
6985   return 0;
6986 }
6987 _ACEOF
6988 rm -f conftest.$ac_objext
6989 if { (eval echo "$as_me:6989: \"$ac_compile\"") >&5
6990   (eval $ac_compile) 2>&5
6991   ac_status=$?
6992   echo "$as_me:6992: \$? = $ac_status" >&5
6993   (exit $ac_status); } &&
6994          { ac_try='test -s conftest.$ac_objext'
6995   { (eval echo "$as_me:6995: \"$ac_try\"") >&5
6996   (eval $ac_try) 2>&5
6997   ac_status=$?
6998   echo "$as_me:6998: \$? = $ac_status" >&5
6999   (exit $ac_status); }; }; then
7000   ac_cv_c_Wall_Winline=yes
7001 else
7002   echo "$as_me: failed program was:" >&5
7003 cat conftest.$ac_ext >&5
7004 ac_cv_c_Wall_Winline=no
7005 fi
7006 rm -f conftest.$ac_objext conftest.$ac_ext
7007 fi
7008 echo "$as_me:7008: result: $ac_cv_c_Wall_Winline" >&5
7009 echo "${ECHO_T}$ac_cv_c_Wall_Winline" >&6
7010 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
7011     save_CFLAGS="${save_CFLAGS} -Wall -Winline"
7012 else
7013     echo "$as_me:7013: checking if \$CC accepts -wall -winline" >&5
7014 echo $ECHO_N "checking if \$CC accepts -wall -winline... $ECHO_C" >&6
7015 if test "${ac_cv_c_wall_winline+set}" = set; then
7016   echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018   CFLAGS="${save_CFLAGS} -wall -winline"
7019          cat >conftest.$ac_ext <<_ACEOF
7020 #line 7020 "configure"
7021 #include "confdefs.h"
7022
7023 int
7024 main ()
7025 {
7026
7027   ;
7028   return 0;
7029 }
7030 _ACEOF
7031 rm -f conftest.$ac_objext
7032 if { (eval echo "$as_me:7032: \"$ac_compile\"") >&5
7033   (eval $ac_compile) 2>&5
7034   ac_status=$?
7035   echo "$as_me:7035: \$? = $ac_status" >&5
7036   (exit $ac_status); } &&
7037          { ac_try='test -s conftest.$ac_objext'
7038   { (eval echo "$as_me:7038: \"$ac_try\"") >&5
7039   (eval $ac_try) 2>&5
7040   ac_status=$?
7041   echo "$as_me:7041: \$? = $ac_status" >&5
7042   (exit $ac_status); }; }; then
7043   ac_cv_c_wall_winline=yes
7044 else
7045   echo "$as_me: failed program was:" >&5
7046 cat conftest.$ac_ext >&5
7047 ac_cv_c_wall_winline=no
7048 fi
7049 rm -f conftest.$ac_objext conftest.$ac_ext
7050 fi
7051 echo "$as_me:7051: result: $ac_cv_c_wall_winline" >&5
7052 echo "${ECHO_T}$ac_cv_c_wall_winline" >&6
7053     if test x"$ac_cv_c_wall_winline" != x"no"; then
7054         save_CFLAGS="${save_CFLAGS} -wall -winline"
7055     fi
7056 fi
7057
7058 echo "$as_me:7058: checking if \$CC accepts -pipe" >&5
7059 echo $ECHO_N "checking if \$CC accepts -pipe... $ECHO_C" >&6
7060 if test "${ac_cv_c_pipe+set}" = set; then
7061   echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063   CFLAGS="${save_CFLAGS} -pipe"
7064      cat >conftest.$ac_ext <<_ACEOF
7065 #line 7065 "configure"
7066 #include "confdefs.h"
7067
7068 int
7069 main ()
7070 {
7071
7072   ;
7073   return 0;
7074 }
7075 _ACEOF
7076 rm -f conftest.$ac_objext
7077 if { (eval echo "$as_me:7077: \"$ac_compile\"") >&5
7078   (eval $ac_compile) 2>&5
7079   ac_status=$?
7080   echo "$as_me:7080: \$? = $ac_status" >&5
7081   (exit $ac_status); } &&
7082          { ac_try='test -s conftest.$ac_objext'
7083   { (eval echo "$as_me:7083: \"$ac_try\"") >&5
7084   (eval $ac_try) 2>&5
7085   ac_status=$?
7086   echo "$as_me:7086: \$? = $ac_status" >&5
7087   (exit $ac_status); }; }; then
7088   ac_cv_c_pipe=yes
7089 else
7090   echo "$as_me: failed program was:" >&5
7091 cat conftest.$ac_ext >&5
7092 ac_cv_c_pipe=no
7093 fi
7094 rm -f conftest.$ac_objext conftest.$ac_ext
7095 fi
7096 echo "$as_me:7096: result: $ac_cv_c_pipe" >&5
7097 echo "${ECHO_T}$ac_cv_c_pipe" >&6
7098 if test x"$ac_cv_c_pipe" != x"no"; then
7099     save_CFLAGS="${save_CFLAGS} -pipe"
7100 fi
7101
7102 echo "$as_me:7102: checking if \$CC accepts -O3" >&5
7103 echo $ECHO_N "checking if \$CC accepts -O3... $ECHO_C" >&6
7104 if test "${ac_cv_c_o3+set}" = set; then
7105   echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107   CFLAGS="${save_CFLAGS} -O3"
7108      cat >conftest.$ac_ext <<_ACEOF
7109 #line 7109 "configure"
7110 #include "confdefs.h"
7111
7112 int
7113 main ()
7114 {
7115
7116   ;
7117   return 0;
7118 }
7119 _ACEOF
7120 rm -f conftest.$ac_objext
7121 if { (eval echo "$as_me:7121: \"$ac_compile\"") >&5
7122   (eval $ac_compile) 2>&5
7123   ac_status=$?
7124   echo "$as_me:7124: \$? = $ac_status" >&5
7125   (exit $ac_status); } &&
7126          { ac_try='test -s conftest.$ac_objext'
7127   { (eval echo "$as_me:7127: \"$ac_try\"") >&5
7128   (eval $ac_try) 2>&5
7129   ac_status=$?
7130   echo "$as_me:7130: \$? = $ac_status" >&5
7131   (exit $ac_status); }; }; then
7132   ac_cv_c_o3=yes
7133 else
7134   echo "$as_me: failed program was:" >&5
7135 cat conftest.$ac_ext >&5
7136 ac_cv_c_o3=no
7137 fi
7138 rm -f conftest.$ac_objext conftest.$ac_ext
7139 fi
7140 echo "$as_me:7140: result: $ac_cv_c_o3" >&5
7141 echo "${ECHO_T}$ac_cv_c_o3" >&6
7142 if test x"$ac_cv_c_o3" != x"no"; then
7143     CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
7144 else
7145     echo "$as_me:7145: checking if \$CC accepts -O2" >&5
7146 echo $ECHO_N "checking if \$CC accepts -O2... $ECHO_C" >&6
7147 if test "${ac_cv_c_o2+set}" = set; then
7148   echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150   CFLAGS="${save_CFLAGS} -O2"
7151          cat >conftest.$ac_ext <<_ACEOF
7152 #line 7152 "configure"
7153 #include "confdefs.h"
7154
7155 int
7156 main ()
7157 {
7158
7159   ;
7160   return 0;
7161 }
7162 _ACEOF
7163 rm -f conftest.$ac_objext
7164 if { (eval echo "$as_me:7164: \"$ac_compile\"") >&5
7165   (eval $ac_compile) 2>&5
7166   ac_status=$?
7167   echo "$as_me:7167: \$? = $ac_status" >&5
7168   (exit $ac_status); } &&
7169          { ac_try='test -s conftest.$ac_objext'
7170   { (eval echo "$as_me:7170: \"$ac_try\"") >&5
7171   (eval $ac_try) 2>&5
7172   ac_status=$?
7173   echo "$as_me:7173: \$? = $ac_status" >&5
7174   (exit $ac_status); }; }; then
7175   ac_cv_c_o2=yes
7176 else
7177   echo "$as_me: failed program was:" >&5
7178 cat conftest.$ac_ext >&5
7179 ac_cv_c_o2=no
7180 fi
7181 rm -f conftest.$ac_objext conftest.$ac_ext
7182 fi
7183 echo "$as_me:7183: result: $ac_cv_c_o2" >&5
7184 echo "${ECHO_T}$ac_cv_c_o2" >&6
7185     if test x"$ac_cv_c_o2" != x"no"; then
7186         CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
7187     else
7188         echo "$as_me:7188: checking if \$CC accepts -O" >&5
7189 echo $ECHO_N "checking if \$CC accepts -O... $ECHO_C" >&6
7190 if test "${ac_cv_c_o+set}" = set; then
7191   echo $ECHO_N "(cached) $ECHO_C" >&6
7192 else
7193   CFLAGS="${save_CFLAGS} -O"
7194              cat >conftest.$ac_ext <<_ACEOF
7195 #line 7195 "configure"
7196 #include "confdefs.h"
7197
7198 int
7199 main ()
7200 {
7201
7202   ;
7203   return 0;
7204 }
7205 _ACEOF
7206 rm -f conftest.$ac_objext
7207 if { (eval echo "$as_me:7207: \"$ac_compile\"") >&5
7208   (eval $ac_compile) 2>&5
7209   ac_status=$?
7210   echo "$as_me:7210: \$? = $ac_status" >&5
7211   (exit $ac_status); } &&
7212          { ac_try='test -s conftest.$ac_objext'
7213   { (eval echo "$as_me:7213: \"$ac_try\"") >&5
7214   (eval $ac_try) 2>&5
7215   ac_status=$?
7216   echo "$as_me:7216: \$? = $ac_status" >&5
7217   (exit $ac_status); }; }; then
7218   ac_cv_c_o=yes
7219 else
7220   echo "$as_me: failed program was:" >&5
7221 cat conftest.$ac_ext >&5
7222 ac_cv_c_o=no
7223 fi
7224 rm -f conftest.$ac_objext conftest.$ac_ext
7225 fi
7226 echo "$as_me:7226: result: $ac_cv_c_o" >&5
7227 echo "${ECHO_T}$ac_cv_c_o" >&6
7228         if test x"$ac_cv_c_o" != x"no"; then
7229             CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
7230         fi
7231     fi
7232 fi
7233
7234 echo "$as_me:7234: checking if \$CC accepts -ffast-math" >&5
7235 echo $ECHO_N "checking if \$CC accepts -ffast-math... $ECHO_C" >&6
7236 if test "${ac_cv_c_fast_math+set}" = set; then
7237   echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
7239   CFLAGS="${save_CFLAGS} -ffast-math"
7240      cat >conftest.$ac_ext <<_ACEOF
7241 #line 7241 "configure"
7242 #include "confdefs.h"
7243
7244 int
7245 main ()
7246 {
7247
7248   ;
7249   return 0;
7250 }
7251 _ACEOF
7252 rm -f conftest.$ac_objext
7253 if { (eval echo "$as_me:7253: \"$ac_compile\"") >&5
7254   (eval $ac_compile) 2>&5
7255   ac_status=$?
7256   echo "$as_me:7256: \$? = $ac_status" >&5
7257   (exit $ac_status); } &&
7258          { ac_try='test -s conftest.$ac_objext'
7259   { (eval echo "$as_me:7259: \"$ac_try\"") >&5
7260   (eval $ac_try) 2>&5
7261   ac_status=$?
7262   echo "$as_me:7262: \$? = $ac_status" >&5
7263   (exit $ac_status); }; }; then
7264   ac_cv_c_fast_math=yes
7265 else
7266   echo "$as_me: failed program was:" >&5
7267 cat conftest.$ac_ext >&5
7268 ac_cv_c_fast_math=no
7269 fi
7270 rm -f conftest.$ac_objext conftest.$ac_ext
7271 fi
7272 echo "$as_me:7272: result: $ac_cv_c_fast_math" >&5
7273 echo "${ECHO_T}$ac_cv_c_fast_math" >&6
7274 if test x"$ac_cv_c_fast_math" != x"no"; then
7275     CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
7276 fi
7277
7278 echo "$as_me:7278: checking if \$CC accepts -funroll-loops" >&5
7279 echo $ECHO_N "checking if \$CC accepts -funroll-loops... $ECHO_C" >&6
7280 if test "${ac_cv_c_unroll_loops+set}" = set; then
7281   echo $ECHO_N "(cached) $ECHO_C" >&6
7282 else
7283   CFLAGS="${save_CFLAGS} -funroll-loops"
7284      cat >conftest.$ac_ext <<_ACEOF
7285 #line 7285 "configure"
7286 #include "confdefs.h"
7287
7288 int
7289 main ()
7290 {
7291
7292   ;
7293   return 0;
7294 }
7295 _ACEOF
7296 rm -f conftest.$ac_objext
7297 if { (eval echo "$as_me:7297: \"$ac_compile\"") >&5
7298   (eval $ac_compile) 2>&5
7299   ac_status=$?
7300   echo "$as_me:7300: \$? = $ac_status" >&5
7301   (exit $ac_status); } &&
7302          { ac_try='test -s conftest.$ac_objext'
7303   { (eval echo "$as_me:7303: \"$ac_try\"") >&5
7304   (eval $ac_try) 2>&5
7305   ac_status=$?
7306   echo "$as_me:7306: \$? = $ac_status" >&5
7307   (exit $ac_status); }; }; then
7308   ac_cv_c_unroll_loops=yes
7309 else
7310   echo "$as_me: failed program was:" >&5
7311 cat conftest.$ac_ext >&5
7312 ac_cv_c_unroll_loops=no
7313 fi
7314 rm -f conftest.$ac_objext conftest.$ac_ext
7315 fi
7316 echo "$as_me:7316: result: $ac_cv_c_unroll_loops" >&5
7317 echo "${ECHO_T}$ac_cv_c_unroll_loops" >&6
7318 if test x"$ac_cv_c_unroll_loops" != x"no"; then
7319     CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
7320 fi
7321
7322 echo "$as_me:7322: checking if \$CC accepts -fomit-frame-pointer" >&5
7323 echo $ECHO_N "checking if \$CC accepts -fomit-frame-pointer... $ECHO_C" >&6
7324 if test "${ac_cv_c_omit_frame_pointer+set}" = set; then
7325   echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327   CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
7328      cat >conftest.$ac_ext <<_ACEOF
7329 #line 7329 "configure"
7330 #include "confdefs.h"
7331
7332 int
7333 main ()
7334 {
7335
7336   ;
7337   return 0;
7338 }
7339 _ACEOF
7340 rm -f conftest.$ac_objext
7341 if { (eval echo "$as_me:7341: \"$ac_compile\"") >&5
7342   (eval $ac_compile) 2>&5
7343   ac_status=$?
7344   echo "$as_me:7344: \$? = $ac_status" >&5
7345   (exit $ac_status); } &&
7346          { ac_try='test -s conftest.$ac_objext'
7347   { (eval echo "$as_me:7347: \"$ac_try\"") >&5
7348   (eval $ac_try) 2>&5
7349   ac_status=$?
7350   echo "$as_me:7350: \$? = $ac_status" >&5
7351   (exit $ac_status); }; }; then
7352   ac_cv_c_omit_frame_pointer=yes
7353 else
7354   echo "$as_me: failed program was:" >&5
7355 cat conftest.$ac_ext >&5
7356 ac_cv_c_omit_frame_pointer=no
7357 fi
7358 rm -f conftest.$ac_objext conftest.$ac_ext
7359 fi
7360 echo "$as_me:7360: result: $ac_cv_c_omit_frame_pointer" >&5
7361 echo "${ECHO_T}$ac_cv_c_omit_frame_pointer" >&6
7362 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
7363     CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
7364 fi
7365
7366 if test x$SYS = xmingw32
7367 then
7368     echo "$as_me:7368: checking if \$CC accepts -mms-bitfields" >&5
7369 echo $ECHO_N "checking if \$CC accepts -mms-bitfields... $ECHO_C" >&6
7370 if test "${ac_cv_c_mms_bitfields+set}" = set; then
7371   echo $ECHO_N "(cached) $ECHO_C" >&6
7372 else
7373   CFLAGS="${save_CFLAGS} -mms-bitfields"
7374          cat >conftest.$ac_ext <<_ACEOF
7375 #line 7375 "configure"
7376 #include "confdefs.h"
7377
7378 int
7379 main ()
7380 {
7381
7382   ;
7383   return 0;
7384 }
7385 _ACEOF
7386 rm -f conftest.$ac_objext
7387 if { (eval echo "$as_me:7387: \"$ac_compile\"") >&5
7388   (eval $ac_compile) 2>&5
7389   ac_status=$?
7390   echo "$as_me:7390: \$? = $ac_status" >&5
7391   (exit $ac_status); } &&
7392          { ac_try='test -s conftest.$ac_objext'
7393   { (eval echo "$as_me:7393: \"$ac_try\"") >&5
7394   (eval $ac_try) 2>&5
7395   ac_status=$?
7396   echo "$as_me:7396: \$? = $ac_status" >&5
7397   (exit $ac_status); }; }; then
7398   ac_cv_c_mms_bitfields=yes
7399 else
7400   echo "$as_me: failed program was:" >&5
7401 cat conftest.$ac_ext >&5
7402 ac_cv_c_mms_bitfields=no
7403 fi
7404 rm -f conftest.$ac_objext conftest.$ac_ext
7405 fi
7406 echo "$as_me:7406: result: $ac_cv_c_mms_bitfields" >&5
7407 echo "${ECHO_T}$ac_cv_c_mms_bitfields" >&6
7408     if test x"$ac_cv_c_mms_bitfields" != x"no"; then
7409         save_CFLAGS="${save_CFLAGS} -mms-bitfields"
7410         plugins_CFLAGS="${plugins_CFLAGS} -mms-bitfields"
7411     else
7412         save_CFLAGS="${save_CFLAGS} -fnative-struct"
7413         plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
7414     fi
7415 fi
7416
7417 echo "$as_me:7417: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
7418 echo $ECHO_N "checking if \$CC accepts -bundle -undefined error -lcc_dynamic... $ECHO_C" >&6
7419 if test "${ac_cv_ld_darwin+set}" = set; then
7420   echo $ECHO_N "(cached) $ECHO_C" >&6
7421 else
7422   CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
7423      cat >conftest.$ac_ext <<_ACEOF
7424 #line 7424 "configure"
7425 #include "confdefs.h"
7426
7427 int
7428 main ()
7429 {
7430
7431   ;
7432   return 0;
7433 }
7434 _ACEOF
7435 rm -f conftest.$ac_objext
7436 if { (eval echo "$as_me:7436: \"$ac_compile\"") >&5
7437   (eval $ac_compile) 2>&5
7438   ac_status=$?
7439   echo "$as_me:7439: \$? = $ac_status" >&5
7440   (exit $ac_status); } &&
7441          { ac_try='test -s conftest.$ac_objext'
7442   { (eval echo "$as_me:7442: \"$ac_try\"") >&5
7443   (eval $ac_try) 2>&5
7444   ac_status=$?
7445   echo "$as_me:7445: \$? = $ac_status" >&5
7446   (exit $ac_status); }; }; then
7447   ac_cv_ld_darwin=yes
7448 else
7449   echo "$as_me: failed program was:" >&5
7450 cat conftest.$ac_ext >&5
7451 ac_cv_ld_darwin=no
7452 fi
7453 rm -f conftest.$ac_objext conftest.$ac_ext
7454 fi
7455 echo "$as_me:7455: result: $ac_cv_ld_darwin" >&5
7456 echo "${ECHO_T}$ac_cv_ld_darwin" >&6
7457 if test x"$ac_cv_ld_darwin" != x"no"; then
7458     plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
7459 fi
7460
7461 echo "$as_me:7461: checking if \$CC accepts -shared" >&5
7462 echo $ECHO_N "checking if \$CC accepts -shared... $ECHO_C" >&6
7463 if test "${ac_cv_ld_plugins+set}" = set; then
7464   echo $ECHO_N "(cached) $ECHO_C" >&6
7465 else
7466   CFLAGS="${save_CFLAGS} -shared"
7467      cat >conftest.$ac_ext <<_ACEOF
7468 #line 7468 "configure"
7469 #include "confdefs.h"
7470
7471 int
7472 main ()
7473 {
7474
7475   ;
7476   return 0;
7477 }
7478 _ACEOF
7479 rm -f conftest.$ac_objext
7480 if { (eval echo "$as_me:7480: \"$ac_compile\"") >&5
7481   (eval $ac_compile) 2>&5
7482   ac_status=$?
7483   echo "$as_me:7483: \$? = $ac_status" >&5
7484   (exit $ac_status); } &&
7485          { ac_try='test -s conftest.$ac_objext'
7486   { (eval echo "$as_me:7486: \"$ac_try\"") >&5
7487   (eval $ac_try) 2>&5
7488   ac_status=$?
7489   echo "$as_me:7489: \$? = $ac_status" >&5
7490   (exit $ac_status); }; }; then
7491   ac_cv_ld_plugins=yes
7492 else
7493   echo "$as_me: failed program was:" >&5
7494 cat conftest.$ac_ext >&5
7495 ac_cv_ld_plugins=no
7496 fi
7497 rm -f conftest.$ac_objext conftest.$ac_ext
7498 fi
7499 echo "$as_me:7499: result: $ac_cv_ld_plugins" >&5
7500 echo "${ECHO_T}$ac_cv_ld_plugins" >&6
7501 if test x"$ac_cv_ld_plugins" != x"no"; then
7502     plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
7503 fi
7504
7505 echo "$as_me:7505: checking for variadic cpp macros" >&5
7506 echo $ECHO_N "checking for variadic cpp macros... $ECHO_C" >&6
7507 if test "${ac_cv_cpp_variadic_macros+set}" = set; then
7508   echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510   CFLAGS="${save_CFLAGS}"
7511      cat >conftest.$ac_ext <<_ACEOF
7512 #line 7512 "configure"
7513 #include "confdefs.h"
7514 #include <stdio.h>
7515           #define a(b,c...) printf(b,##c)
7516 int
7517 main ()
7518 {
7519 a("foo");a("%s","bar");a("%s%s","baz","quux");
7520   ;
7521   return 0;
7522 }
7523 _ACEOF
7524 rm -f conftest.$ac_objext
7525 if { (eval echo "$as_me:7525: \"$ac_compile\"") >&5
7526   (eval $ac_compile) 2>&5
7527   ac_status=$?
7528   echo "$as_me:7528: \$? = $ac_status" >&5
7529   (exit $ac_status); } &&
7530          { ac_try='test -s conftest.$ac_objext'
7531   { (eval echo "$as_me:7531: \"$ac_try\"") >&5
7532   (eval $ac_try) 2>&5
7533   ac_status=$?
7534   echo "$as_me:7534: \$? = $ac_status" >&5
7535   (exit $ac_status); }; }; then
7536   ac_cv_cpp_variadic_macros=yes
7537 else
7538   echo "$as_me: failed program was:" >&5
7539 cat conftest.$ac_ext >&5
7540 ac_cv_cpp_variadic_macros=no
7541 fi
7542 rm -f conftest.$ac_objext conftest.$ac_ext
7543 fi
7544 echo "$as_me:7544: result: $ac_cv_cpp_variadic_macros" >&5
7545 echo "${ECHO_T}$ac_cv_cpp_variadic_macros" >&6
7546 if test x"$ac_cv_cpp_variadic_macros" != x"no"; then
7547
7548 cat >>confdefs.h <<\EOF
7549 #define HAVE_VARIADIC_MACROS 1
7550 EOF
7551
7552 fi
7553
7554 echo "$as_me:7554: checking __attribute__ ((aligned ())) support" >&5
7555 echo $ECHO_N "checking __attribute__ ((aligned ())) support... $ECHO_C" >&6
7556 if test "${ac_cv_c_attribute_aligned+set}" = set; then
7557   echo $ECHO_N "(cached) $ECHO_C" >&6
7558 else
7559   ac_cv_c_attribute_aligned=0
7560         CFLAGS="${save_CFLAGS} -Werror"
7561     for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
7562         cat >conftest.$ac_ext <<_ACEOF
7563 #line 7563 "configure"
7564 #include "confdefs.h"
7565
7566 int
7567 main ()
7568 {
7569 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
7570   ;
7571   return 0;
7572 }
7573 _ACEOF
7574 rm -f conftest.$ac_objext
7575 if { (eval echo "$as_me:7575: \"$ac_compile\"") >&5
7576   (eval $ac_compile) 2>&5
7577   ac_status=$?
7578   echo "$as_me:7578: \$? = $ac_status" >&5
7579   (exit $ac_status); } &&
7580          { ac_try='test -s conftest.$ac_objext'
7581   { (eval echo "$as_me:7581: \"$ac_try\"") >&5
7582   (eval $ac_try) 2>&5
7583   ac_status=$?
7584   echo "$as_me:7584: \$? = $ac_status" >&5
7585   (exit $ac_status); }; }; then
7586   ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
7587 else
7588   echo "$as_me: failed program was:" >&5
7589 cat conftest.$ac_ext >&5
7590 fi
7591 rm -f conftest.$ac_objext conftest.$ac_ext
7592     done
7593 fi
7594 echo "$as_me:7594: result: $ac_cv_c_attribute_aligned" >&5
7595 echo "${ECHO_T}$ac_cv_c_attribute_aligned" >&6
7596 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
7597
7598 cat >>confdefs.h <<EOF
7599 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
7600 EOF
7601
7602 fi
7603
7604 CFLAGS="${save_CFLAGS}"
7605 CPPFLAGS="${save_CPPFLAGS}"
7606 LDFLAGS="${save_LDFLAGS}"
7607
7608 echo "$as_me:7608: checking for boolean_t in sys/types.h" >&5
7609 echo $ECHO_N "checking for boolean_t in sys/types.h... $ECHO_C" >&6
7610 if test "${ac_cv_c_boolean_t_sys_types_h+set}" = set; then
7611   echo $ECHO_N "(cached) $ECHO_C" >&6
7612 else
7613   cat >conftest.$ac_ext <<_ACEOF
7614 #line 7614 "configure"
7615 #include "confdefs.h"
7616 #include <sys/types.h>
7617 int
7618 main ()
7619 {
7620 boolean_t foo;
7621   ;
7622   return 0;
7623 }
7624 _ACEOF
7625 rm -f conftest.$ac_objext
7626 if { (eval echo "$as_me:7626: \"$ac_compile\"") >&5
7627   (eval $ac_compile) 2>&5
7628   ac_status=$?
7629   echo "$as_me:7629: \$? = $ac_status" >&5
7630   (exit $ac_status); } &&
7631          { ac_try='test -s conftest.$ac_objext'
7632   { (eval echo "$as_me:7632: \"$ac_try\"") >&5
7633   (eval $ac_try) 2>&5
7634   ac_status=$?
7635   echo "$as_me:7635: \$? = $ac_status" >&5
7636   (exit $ac_status); }; }; then
7637   ac_cv_c_boolean_t_sys_types_h=yes
7638 else
7639   echo "$as_me: failed program was:" >&5
7640 cat conftest.$ac_ext >&5
7641 ac_cv_c_boolean_t_sys_types_h=no
7642 fi
7643 rm -f conftest.$ac_objext conftest.$ac_ext
7644 fi
7645 echo "$as_me:7645: result: $ac_cv_c_boolean_t_sys_types_h" >&5
7646 echo "${ECHO_T}$ac_cv_c_boolean_t_sys_types_h" >&6
7647 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
7648
7649 cat >>confdefs.h <<\EOF
7650 #define BOOLEAN_T_IN_SYS_TYPES_H 1
7651 EOF
7652
7653 fi
7654
7655 echo "$as_me:7655: checking for boolean_t in pthread.h" >&5
7656 echo $ECHO_N "checking for boolean_t in pthread.h... $ECHO_C" >&6
7657 if test "${ac_cv_c_boolean_t_pthread_h+set}" = set; then
7658   echo $ECHO_N "(cached) $ECHO_C" >&6
7659 else
7660   cat >conftest.$ac_ext <<_ACEOF
7661 #line 7661 "configure"
7662 #include "confdefs.h"
7663 #include <pthread.h>
7664 int
7665 main ()
7666 {
7667 boolean_t foo;
7668   ;
7669   return 0;
7670 }
7671 _ACEOF
7672 rm -f conftest.$ac_objext
7673 if { (eval echo "$as_me:7673: \"$ac_compile\"") >&5
7674   (eval $ac_compile) 2>&5
7675   ac_status=$?
7676   echo "$as_me:7676: \$? = $ac_status" >&5
7677   (exit $ac_status); } &&
7678          { ac_try='test -s conftest.$ac_objext'
7679   { (eval echo "$as_me:7679: \"$ac_try\"") >&5
7680   (eval $ac_try) 2>&5
7681   ac_status=$?
7682   echo "$as_me:7682: \$? = $ac_status" >&5
7683   (exit $ac_status); }; }; then
7684   ac_cv_c_boolean_t_pthread_h=yes
7685 else
7686   echo "$as_me: failed program was:" >&5
7687 cat conftest.$ac_ext >&5
7688 ac_cv_c_boolean_t_pthread_h=no
7689 fi
7690 rm -f conftest.$ac_objext conftest.$ac_ext
7691 fi
7692 echo "$as_me:7692: result: $ac_cv_c_boolean_t_pthread_h" >&5
7693 echo "${ECHO_T}$ac_cv_c_boolean_t_pthread_h" >&6
7694 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
7695
7696 cat >>confdefs.h <<\EOF
7697 #define BOOLEAN_T_IN_PTHREAD_H 1
7698 EOF
7699
7700 fi
7701
7702 echo "$as_me:7702: checking for boolean_t in cthreads.h" >&5
7703 echo $ECHO_N "checking for boolean_t in cthreads.h... $ECHO_C" >&6
7704 if test "${ac_cv_c_boolean_t_cthreads_h+set}" = set; then
7705   echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707   cat >conftest.$ac_ext <<_ACEOF
7708 #line 7708 "configure"
7709 #include "confdefs.h"
7710 #include <cthreads.h>
7711 int
7712 main ()
7713 {
7714 boolean_t foo;
7715   ;
7716   return 0;
7717 }
7718 _ACEOF
7719 rm -f conftest.$ac_objext
7720 if { (eval echo "$as_me:7720: \"$ac_compile\"") >&5
7721   (eval $ac_compile) 2>&5
7722   ac_status=$?
7723   echo "$as_me:7723: \$? = $ac_status" >&5
7724   (exit $ac_status); } &&
7725          { ac_try='test -s conftest.$ac_objext'
7726   { (eval echo "$as_me:7726: \"$ac_try\"") >&5
7727   (eval $ac_try) 2>&5
7728   ac_status=$?
7729   echo "$as_me:7729: \$? = $ac_status" >&5
7730   (exit $ac_status); }; }; then
7731   ac_cv_c_boolean_t_cthreads_h=yes
7732 else
7733   echo "$as_me: failed program was:" >&5
7734 cat conftest.$ac_ext >&5
7735 ac_cv_c_boolean_t_cthreads_h=no
7736 fi
7737 rm -f conftest.$ac_objext conftest.$ac_ext
7738 fi
7739 echo "$as_me:7739: result: $ac_cv_c_boolean_t_cthreads_h" >&5
7740 echo "${ECHO_T}$ac_cv_c_boolean_t_cthreads_h" >&6
7741 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
7742
7743 cat >>confdefs.h <<\EOF
7744 #define BOOLEAN_T_IN_CTHREADS_H 1
7745 EOF
7746
7747 fi
7748
7749 case x"${target_cpu}" in
7750   x)
7751     ARCH=unknown
7752     ;;
7753   *)
7754     ARCH="${target_cpu}"
7755     ;;
7756 esac
7757
7758 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"
7759 PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_ps mpeg_ts mpeg_audio file memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort filter_clone filter_crop fx_scope"
7760
7761 NETWORK_MODULES="udp http rtp ipv4"
7762
7763 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
7764 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
7765 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
7766 SSE_MODULES="imdctsse downmixsse"
7767 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
7768
7769 if test x$SYS != xbeos
7770 then
7771     PLUGINS="${PLUGINS} ${NETWORK_MODULES}"
7772 fi
7773
7774 echo "$as_me:7774: checking if \$CC groks MMX inline assembly" >&5
7775 echo $ECHO_N "checking if \$CC groks MMX inline assembly... $ECHO_C" >&6
7776 if test "${ac_cv_mmx_inline+set}" = set; then
7777   echo $ECHO_N "(cached) $ECHO_C" >&6
7778 else
7779   cat >conftest.$ac_ext <<_ACEOF
7780 #line 7780 "configure"
7781 #include "confdefs.h"
7782
7783 int
7784 main ()
7785 {
7786 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
7787   ;
7788   return 0;
7789 }
7790 _ACEOF
7791 rm -f conftest.$ac_objext
7792 if { (eval echo "$as_me:7792: \"$ac_compile\"") >&5
7793   (eval $ac_compile) 2>&5
7794   ac_status=$?
7795   echo "$as_me:7795: \$? = $ac_status" >&5
7796   (exit $ac_status); } &&
7797          { ac_try='test -s conftest.$ac_objext'
7798   { (eval echo "$as_me:7798: \"$ac_try\"") >&5
7799   (eval $ac_try) 2>&5
7800   ac_status=$?
7801   echo "$as_me:7801: \$? = $ac_status" >&5
7802   (exit $ac_status); }; }; then
7803   ac_cv_mmx_inline=yes
7804 else
7805   echo "$as_me: failed program was:" >&5
7806 cat conftest.$ac_ext >&5
7807 ac_cv_mmx_inline=no
7808 fi
7809 rm -f conftest.$ac_objext conftest.$ac_ext
7810 fi
7811 echo "$as_me:7811: result: $ac_cv_mmx_inline" >&5
7812 echo "${ECHO_T}$ac_cv_mmx_inline" >&6
7813 if test x"$ac_cv_mmx_inline" != x"no"; then
7814   ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
7815 fi
7816
7817 echo "$as_me:7817: checking if \$CC groks MMX EXT inline assembly" >&5
7818 echo $ECHO_N "checking if \$CC groks MMX EXT inline assembly... $ECHO_C" >&6
7819 if test "${ac_cv_mmxext_inline+set}" = set; then
7820   echo $ECHO_N "(cached) $ECHO_C" >&6
7821 else
7822   cat >conftest.$ac_ext <<_ACEOF
7823 #line 7823 "configure"
7824 #include "confdefs.h"
7825
7826 int
7827 main ()
7828 {
7829 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
7830   ;
7831   return 0;
7832 }
7833 _ACEOF
7834 rm -f conftest.$ac_objext
7835 if { (eval echo "$as_me:7835: \"$ac_compile\"") >&5
7836   (eval $ac_compile) 2>&5
7837   ac_status=$?
7838   echo "$as_me:7838: \$? = $ac_status" >&5
7839   (exit $ac_status); } &&
7840          { ac_try='test -s conftest.$ac_objext'
7841   { (eval echo "$as_me:7841: \"$ac_try\"") >&5
7842   (eval $ac_try) 2>&5
7843   ac_status=$?
7844   echo "$as_me:7844: \$? = $ac_status" >&5
7845   (exit $ac_status); }; }; then
7846   ac_cv_mmxext_inline=yes
7847 else
7848   echo "$as_me: failed program was:" >&5
7849 cat conftest.$ac_ext >&5
7850 ac_cv_mmxext_inline=no
7851 fi
7852 rm -f conftest.$ac_objext conftest.$ac_ext
7853 fi
7854 echo "$as_me:7854: result: $ac_cv_mmxext_inline" >&5
7855 echo "${ECHO_T}$ac_cv_mmxext_inline" >&6
7856 if test x"$ac_cv_mmxext_inline" != x"no"; then
7857   ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
7858 fi
7859
7860 echo "$as_me:7860: checking if \$CC groks 3D Now! inline assembly" >&5
7861 echo $ECHO_N "checking if \$CC groks 3D Now! inline assembly... $ECHO_C" >&6
7862 if test "${ac_cv_3dnow_inline+set}" = set; then
7863   echo $ECHO_N "(cached) $ECHO_C" >&6
7864 else
7865   cat >conftest.$ac_ext <<_ACEOF
7866 #line 7866 "configure"
7867 #include "confdefs.h"
7868
7869 int
7870 main ()
7871 {
7872 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
7873   ;
7874   return 0;
7875 }
7876 _ACEOF
7877 rm -f conftest.$ac_objext
7878 if { (eval echo "$as_me:7878: \"$ac_compile\"") >&5
7879   (eval $ac_compile) 2>&5
7880   ac_status=$?
7881   echo "$as_me:7881: \$? = $ac_status" >&5
7882   (exit $ac_status); } &&
7883          { ac_try='test -s conftest.$ac_objext'
7884   { (eval echo "$as_me:7884: \"$ac_try\"") >&5
7885   (eval $ac_try) 2>&5
7886   ac_status=$?
7887   echo "$as_me:7887: \$? = $ac_status" >&5
7888   (exit $ac_status); }; }; then
7889   ac_cv_3dnow_inline=yes
7890 else
7891   echo "$as_me: failed program was:" >&5
7892 cat conftest.$ac_ext >&5
7893 ac_cv_3dnow_inline=no
7894 fi
7895 rm -f conftest.$ac_objext conftest.$ac_ext
7896 fi
7897 echo "$as_me:7897: result: $ac_cv_3dnow_inline" >&5
7898 echo "${ECHO_T}$ac_cv_3dnow_inline" >&6
7899 if test x"$ac_cv_3dnow_inline" != x"no"; then
7900
7901 cat >>confdefs.h <<\EOF
7902 #define CAN_COMPILE_3DNOW 1
7903 EOF
7904
7905   ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
7906 fi
7907
7908 echo "$as_me:7908: checking if \$CC groks SSE inline assembly" >&5
7909 echo $ECHO_N "checking if \$CC groks SSE inline assembly... $ECHO_C" >&6
7910 if test "${ac_cv_sse_inline+set}" = set; then
7911   echo $ECHO_N "(cached) $ECHO_C" >&6
7912 else
7913   cat >conftest.$ac_ext <<_ACEOF
7914 #line 7914 "configure"
7915 #include "confdefs.h"
7916
7917 int
7918 main ()
7919 {
7920 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
7921   ;
7922   return 0;
7923 }
7924 _ACEOF
7925 rm -f conftest.$ac_objext
7926 if { (eval echo "$as_me:7926: \"$ac_compile\"") >&5
7927   (eval $ac_compile) 2>&5
7928   ac_status=$?
7929   echo "$as_me:7929: \$? = $ac_status" >&5
7930   (exit $ac_status); } &&
7931          { ac_try='test -s conftest.$ac_objext'
7932   { (eval echo "$as_me:7932: \"$ac_try\"") >&5
7933   (eval $ac_try) 2>&5
7934   ac_status=$?
7935   echo "$as_me:7935: \$? = $ac_status" >&5
7936   (exit $ac_status); }; }; then
7937   ac_cv_sse_inline=yes
7938 else
7939   echo "$as_me: failed program was:" >&5
7940 cat conftest.$ac_ext >&5
7941 ac_cv_sse_inline=no
7942 fi
7943 rm -f conftest.$ac_objext conftest.$ac_ext
7944 fi
7945 echo "$as_me:7945: result: $ac_cv_sse_inline" >&5
7946 echo "${ECHO_T}$ac_cv_sse_inline" >&6
7947 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
7948
7949 cat >>confdefs.h <<\EOF
7950 #define CAN_COMPILE_SSE 1
7951 EOF
7952
7953   ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
7954 fi
7955
7956 # don't try to grok altivec with native mingw32 it doesn't work right now
7957 # we should be able to remove this test with future versions of mingw32
7958 if test x$SYS != xmingw32; then
7959 echo "$as_me:7959: checking if \$CC groks Altivec inline assembly" >&5
7960 echo $ECHO_N "checking if \$CC groks Altivec inline assembly... $ECHO_C" >&6
7961 if test "${ac_cv_altivec_inline+set}" = set; then
7962   echo $ECHO_N "(cached) $ECHO_C" >&6
7963 else
7964   cat >conftest.$ac_ext <<_ACEOF
7965 #line 7965 "configure"
7966 #include "confdefs.h"
7967
7968 int
7969 main ()
7970 {
7971 asm volatile("vperm 0,1,2,3");
7972   ;
7973   return 0;
7974 }
7975 _ACEOF
7976 rm -f conftest.$ac_objext
7977 if { (eval echo "$as_me:7977: \"$ac_compile\"") >&5
7978   (eval $ac_compile) 2>&5
7979   ac_status=$?
7980   echo "$as_me:7980: \$? = $ac_status" >&5
7981   (exit $ac_status); } &&
7982          { ac_try='test -s conftest.$ac_objext'
7983   { (eval echo "$as_me:7983: \"$ac_try\"") >&5
7984   (eval $ac_try) 2>&5
7985   ac_status=$?
7986   echo "$as_me:7986: \$? = $ac_status" >&5
7987   (exit $ac_status); }; }; then
7988   ac_cv_altivec_inline=yes
7989 else
7990   echo "$as_me: failed program was:" >&5
7991 cat conftest.$ac_ext >&5
7992 save_CFLAGS=$CFLAGS
7993           CFLAGS="$CFLAGS -Wa,-m7400"
7994           cat >conftest.$ac_ext <<_ACEOF
7995 #line 7995 "configure"
7996 #include "confdefs.h"
7997
7998 int
7999 main ()
8000 {
8001 asm volatile("vperm 0,1,2,3");
8002   ;
8003   return 0;
8004 }
8005 _ACEOF
8006 rm -f conftest.$ac_objext
8007 if { (eval echo "$as_me:8007: \"$ac_compile\"") >&5
8008   (eval $ac_compile) 2>&5
8009   ac_status=$?
8010   echo "$as_me:8010: \$? = $ac_status" >&5
8011   (exit $ac_status); } &&
8012          { ac_try='test -s conftest.$ac_objext'
8013   { (eval echo "$as_me:8013: \"$ac_try\"") >&5
8014   (eval $ac_try) 2>&5
8015   ac_status=$?
8016   echo "$as_me:8016: \$? = $ac_status" >&5
8017   (exit $ac_status); }; }; then
8018   ac_cv_altivec_inline="-Wa,-m7400"
8019 else
8020   echo "$as_me: failed program was:" >&5
8021 cat conftest.$ac_ext >&5
8022 ac_cv_altivec_inline=no
8023 fi
8024 rm -f conftest.$ac_objext conftest.$ac_ext
8025           CFLAGS=$save_CFLAGS
8026
8027 fi
8028 rm -f conftest.$ac_objext conftest.$ac_ext
8029 fi
8030 echo "$as_me:8030: result: $ac_cv_altivec_inline" >&5
8031 echo "${ECHO_T}$ac_cv_altivec_inline" >&6
8032 if test x"$ac_cv_altivec_inline" != x"no"; then
8033
8034 cat >>confdefs.h <<\EOF
8035 #define CAN_COMPILE_ALTIVEC 1
8036 EOF
8037
8038   if test x"$ac_cv_altivec_inline" != x"yes"; then
8039     idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
8040     motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
8041     memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
8042     vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
8043   fi
8044   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
8045 fi
8046
8047 echo "$as_me:8047: checking if \$CC groks Altivec C extensions" >&5
8048 echo $ECHO_N "checking if \$CC groks Altivec C extensions... $ECHO_C" >&6
8049 if test "${ac_cv_c_altivec+set}" = set; then
8050   echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052   save_CFLAGS=$CFLAGS
8053      CFLAGS="$CFLAGS -faltivec"
8054      # Darwin test
8055      cat >conftest.$ac_ext <<_ACEOF
8056 #line 8056 "configure"
8057 #include "confdefs.h"
8058
8059 int
8060 main ()
8061 {
8062 vec_mtvscr((vector unsigned int)(0));
8063   ;
8064   return 0;
8065 }
8066 _ACEOF
8067 rm -f conftest.$ac_objext
8068 if { (eval echo "$as_me:8068: \"$ac_compile\"") >&5
8069   (eval $ac_compile) 2>&5
8070   ac_status=$?
8071   echo "$as_me:8071: \$? = $ac_status" >&5
8072   (exit $ac_status); } &&
8073          { ac_try='test -s conftest.$ac_objext'
8074   { (eval echo "$as_me:8074: \"$ac_try\"") >&5
8075   (eval $ac_try) 2>&5
8076   ac_status=$?
8077   echo "$as_me:8077: \$? = $ac_status" >&5
8078   (exit $ac_status); }; }; then
8079   ac_cv_c_altivec=-faltivec
8080 else
8081   echo "$as_me: failed program was:" >&5
8082 cat conftest.$ac_ext >&5
8083
8084         # Linux/PPC test
8085         CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
8086         cat >conftest.$ac_ext <<_ACEOF
8087 #line 8087 "configure"
8088 #include "confdefs.h"
8089
8090 int
8091 main ()
8092 {
8093 vec_mtvscr((vector unsigned int)(0));
8094   ;
8095   return 0;
8096 }
8097 _ACEOF
8098 rm -f conftest.$ac_objext
8099 if { (eval echo "$as_me:8099: \"$ac_compile\"") >&5
8100   (eval $ac_compile) 2>&5
8101   ac_status=$?
8102   echo "$as_me:8102: \$? = $ac_status" >&5
8103   (exit $ac_status); } &&
8104          { ac_try='test -s conftest.$ac_objext'
8105   { (eval echo "$as_me:8105: \"$ac_try\"") >&5
8106   (eval $ac_try) 2>&5
8107   ac_status=$?
8108   echo "$as_me:8108: \$? = $ac_status" >&5
8109   (exit $ac_status); }; }; then
8110   ac_cv_c_altivec="-fvec"
8111 else
8112   echo "$as_me: failed program was:" >&5
8113 cat conftest.$ac_ext >&5
8114 ac_cv_c_altivec=no
8115 fi
8116 rm -f conftest.$ac_objext conftest.$ac_ext
8117
8118 fi
8119 rm -f conftest.$ac_objext conftest.$ac_ext
8120      CFLAGS=$save_CFLAGS
8121
8122 fi
8123 echo "$as_me:8123: result: $ac_cv_c_altivec" >&5
8124 echo "${ECHO_T}$ac_cv_c_altivec" >&6
8125 if test x"$ac_cv_c_altivec" != x"no"; then
8126
8127 cat >>confdefs.h <<\EOF
8128 #define CAN_COMPILE_C_ALTIVEC 1
8129 EOF
8130
8131   idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
8132   motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
8133   memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
8134   vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
8135   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
8136 fi
8137
8138 echo "$as_me:8138: checking if linker needs -framework vecLib" >&5
8139 echo $ECHO_N "checking if linker needs -framework vecLib... $ECHO_C" >&6
8140 if test "${ac_cv_ld_altivec+set}" = set; then
8141   echo $ECHO_N "(cached) $ECHO_C" >&6
8142 else
8143   save_LDFLAGS=$LDFLAGS
8144      LDFLAGS="$LDFLAGS -framework vecLib"
8145      cat >conftest.$ac_ext <<_ACEOF
8146 #line 8146 "configure"
8147 #include "confdefs.h"
8148
8149 int
8150 main ()
8151 {
8152
8153   ;
8154   return 0;
8155 }
8156 _ACEOF
8157 rm -f conftest.$ac_objext conftest$ac_exeext
8158 if { (eval echo "$as_me:8158: \"$ac_link\"") >&5
8159   (eval $ac_link) 2>&5
8160   ac_status=$?
8161   echo "$as_me:8161: \$? = $ac_status" >&5
8162   (exit $ac_status); } &&
8163          { ac_try='test -s conftest$ac_exeext'
8164   { (eval echo "$as_me:8164: \"$ac_try\"") >&5
8165   (eval $ac_try) 2>&5
8166   ac_status=$?
8167   echo "$as_me:8167: \$? = $ac_status" >&5
8168   (exit $ac_status); }; }; then
8169   ac_cv_ld_altivec=yes
8170 else
8171   echo "$as_me: failed program was:" >&5
8172 cat conftest.$ac_ext >&5
8173 ac_cv_ld_altivec=no
8174 fi
8175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8176      LDFLAGS=$save_LDFLAGS
8177
8178 fi
8179 echo "$as_me:8179: result: $ac_cv_ld_altivec" >&5
8180 echo "${ECHO_T}$ac_cv_ld_altivec" >&6
8181 if test x"$ac_cv_ld_altivec" != x"no"; then
8182   idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
8183   motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
8184   memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
8185   vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
8186 fi
8187 fi # end if mingw32
8188
8189 # Check whether --with- or --without- was given.
8190 if test "${with_+set}" = set; then
8191   withval="$with_"
8192
8193 fi;
8194
8195 # Check whether --with- or --without- was given.
8196 if test "${with_+set}" = set; then
8197   withval="$with_"
8198
8199 fi;
8200
8201 # Check whether --with-tuning or --without-tuning was given.
8202 if test "${with_tuning+set}" = set; then
8203   withval="$with_tuning"
8204
8205 fi;
8206 if test "x$with_tuning" != "x"; then
8207     TUNING="$with_tuning"
8208 else
8209     if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
8210     else
8211         if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
8212     fi
8213 fi
8214
8215 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
8216 then
8217     ARCH="${ARCH} mmx"
8218     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
8219 fi
8220
8221 # Check whether --enable-optimizations or --disable-optimizations was given.
8222 if test "${enable_optimizations+set}" = set; then
8223   enableval="$enable_optimizations"
8224    if test x$enable_optimizations = xno; then OPTIMS=0; fi
8225 else
8226    OPTIMS=1
8227 fi;
8228
8229 # Check whether --enable-altivec or --disable-altivec was given.
8230 if test "${enable_altivec+set}" = set; then
8231   enableval="$enable_altivec"
8232    if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
8233     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
8234 else
8235    if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
8236     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
8237 fi;
8238
8239 DEBUG=0
8240 # Check whether --enable-debug or --disable-debug was given.
8241 if test "${enable_debug+set}" = set; then
8242   enableval="$enable_debug"
8243    if test x$enable_debug = xyes; then DEBUG=1; fi
8244 fi;
8245
8246 RELEASE=0
8247 # Check whether --enable-release or --disable-release was given.
8248 if test "${enable_release+set}" = set; then
8249   enableval="$enable_release"
8250    if test x$enable_release = xyes; then RELEASE=1; fi
8251 else
8252    VERSION="${VERSION}_`date +%Y-%m-%d`"
8253 fi;
8254
8255 # Check whether --with- or --without- was given.
8256 if test "${with_+set}" = set; then
8257   withval="$with_"
8258
8259 fi;
8260
8261 # Check whether --enable-dvd or --disable-dvd was given.
8262 if test "${enable_dvd+set}" = set; then
8263   enableval="$enable_dvd"
8264
8265 fi;
8266 if test "x$enable_dvd" != "xno"
8267 then
8268
8269 # Check whether --with-dvdcss or --without-dvdcss was given.
8270 if test "${with_dvdcss+set}" = set; then
8271   withval="$with_dvdcss"
8272
8273 fi;
8274
8275 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
8276 if test "${with_dvdcss_tree+set}" = set; then
8277   withval="$with_dvdcss_tree"
8278
8279 fi;
8280   case "x$with_dvdcss" in
8281   x|xyes)
8282     if test "x$with_dvdcss_tree" = x
8283     then
8284
8285 for ac_header in dvdcss/dvdcss.h
8286 do
8287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8288 echo "$as_me:8288: checking for $ac_header" >&5
8289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8291   echo $ECHO_N "(cached) $ECHO_C" >&6
8292 else
8293   cat >conftest.$ac_ext <<_ACEOF
8294 #line 8294 "configure"
8295 #include "confdefs.h"
8296 #include <$ac_header>
8297 _ACEOF
8298 if { (eval echo "$as_me:8298: \"$ac_cpp conftest.$ac_ext\"") >&5
8299   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8300   ac_status=$?
8301   egrep -v '^ *\+' conftest.er1 >conftest.err
8302   rm -f conftest.er1
8303   cat conftest.err >&5
8304   echo "$as_me:8304: \$? = $ac_status" >&5
8305   (exit $ac_status); } >/dev/null; then
8306   if test -s conftest.err; then
8307     ac_cpp_err=$ac_c_preproc_warn_flag
8308   else
8309     ac_cpp_err=
8310   fi
8311 else
8312   ac_cpp_err=yes
8313 fi
8314 if test -z "$ac_cpp_err"; then
8315   eval "$as_ac_Header=yes"
8316 else
8317   echo "$as_me: failed program was:" >&5
8318   cat conftest.$ac_ext >&5
8319   eval "$as_ac_Header=no"
8320 fi
8321 rm -f conftest.err conftest.$ac_ext
8322 fi
8323 echo "$as_me:8323: result: `eval echo '${'$as_ac_Header'}'`" >&5
8324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8326   cat >>confdefs.h <<EOF
8327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8328 EOF
8329   PLUGINS="${PLUGINS} dvd"
8330           dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
8331 else
8332    { echo "$as_me:8332: WARNING: libdvdcss is no longer provided with vlc; please get libdvdcss from http://www.videolan.org/libdvdcss/ and build it. Then either use --with-dvdcss=<path/where/libdvdcss/was/installed> for dynamic linking (recommended under Unix) or --with-dvdcss-tree=<path/where/libdvdcss/was/built> for static linking (recommended under BeOS, Windows, MacOS X). Alternatively you can use --disable-dvd to disable the DVD plugin." >&5
8333 echo "$as_me: WARNING: libdvdcss is no longer provided with vlc; please get libdvdcss from http://www.videolan.org/libdvdcss/ and build it. Then either use --with-dvdcss=<path/where/libdvdcss/was/installed> for dynamic linking (recommended under Unix) or --with-dvdcss-tree=<path/where/libdvdcss/was/built> for static linking (recommended under BeOS, Windows, MacOS X). Alternatively you can use --disable-dvd to disable the DVD plugin." >&2;}
8334           { { echo "$as_me:8334: error: cannot find libdvdcss headers" >&5
8335 echo "$as_me: error: cannot find libdvdcss headers" >&2;}
8336    { (exit 1); exit 1; }; }
8337 fi
8338 done
8339
8340     else
8341       echo "$as_me:8341: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
8342 echo $ECHO_N "checking for libdvdcss.a in ${with_dvdcss_tree}... $ECHO_C" >&6
8343       real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
8344       if test "x$real_dvdcss_tree" = x
8345       then
8346                 echo "$as_me:8346: result: no" >&5
8347 echo "${ECHO_T}no" >&6
8348         { { echo "$as_me:8348: error: cannot cd to ${with_dvdcss_tree}" >&5
8349 echo "$as_me: error: cannot cd to ${with_dvdcss_tree}" >&2;}
8350    { (exit 1); exit 1; }; }
8351       fi
8352       if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
8353       then
8354                 echo "$as_me:8354: result: ${real_dvdcss_tree}/src/.libs/libdvdcss.a" >&5
8355 echo "${ECHO_T}${real_dvdcss_tree}/src/.libs/libdvdcss.a" >&6
8356         BUILTINS="${BUILTINS} dvd"
8357         dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
8358         dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
8359       else
8360                 echo "$as_me:8360: result: no" >&5
8361 echo "${ECHO_T}no" >&6
8362         { { echo "$as_me:8362: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" >&5
8363 echo "$as_me: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" >&2;}
8364    { (exit 1); exit 1; }; }
8365       fi
8366     fi
8367   ;;
8368   xno)
8369         PLUGINS="${PLUGINS} dvd"
8370     dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
8371     dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
8372   ;;
8373   *)
8374     echo "$as_me:8374: checking for dvdcss headers in ${with_dvdcss}" >&5
8375 echo $ECHO_N "checking for dvdcss headers in ${with_dvdcss}... $ECHO_C" >&6
8376     if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
8377     then
8378             echo "$as_me:8378: result: yes" >&5
8379 echo "${ECHO_T}yes" >&6
8380       PLUGINS="${PLUGINS} dvd"
8381       dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
8382       dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
8383     else
8384             echo "$as_me:8384: result: no" >&5
8385 echo "${ECHO_T}no" >&6
8386       { { echo "$as_me:8386: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" >&5
8387 echo "$as_me: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" >&2;}
8388    { (exit 1); exit 1; }; }
8389     fi
8390   ;;
8391   esac
8392 fi
8393
8394 # Check whether --enable-dvdread or --disable-dvdread was given.
8395 if test "${enable_dvdread+set}" = set; then
8396   enableval="$enable_dvdread"
8397
8398 fi;
8399 if test "x$enable_dvdread" != "xno"
8400 then
8401
8402 # Check whether --with-dvdread or --without-dvdread was given.
8403 if test "${with_dvdread+set}" = set; then
8404   withval="$with_dvdread"
8405
8406 fi;
8407   if test "x$with_dvdread" = x
8408   then
8409     test_LDFLAGS=""
8410     test_CFLAGS=""
8411   else
8412     test_LDFLAGS="-L${with_dvdread}/lib"
8413     test_CFLAGS="-I${with_dvdread}/include"
8414   fi
8415   CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
8416
8417 for ac_header in dvdread/dvd_reader.h
8418 do
8419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8420 echo "$as_me:8420: checking for $ac_header" >&5
8421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8423   echo $ECHO_N "(cached) $ECHO_C" >&6
8424 else
8425   cat >conftest.$ac_ext <<_ACEOF
8426 #line 8426 "configure"
8427 #include "confdefs.h"
8428 #include <$ac_header>
8429 _ACEOF
8430 if { (eval echo "$as_me:8430: \"$ac_cpp conftest.$ac_ext\"") >&5
8431   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8432   ac_status=$?
8433   egrep -v '^ *\+' conftest.er1 >conftest.err
8434   rm -f conftest.er1
8435   cat conftest.err >&5
8436   echo "$as_me:8436: \$? = $ac_status" >&5
8437   (exit $ac_status); } >/dev/null; then
8438   if test -s conftest.err; then
8439     ac_cpp_err=$ac_c_preproc_warn_flag
8440   else
8441     ac_cpp_err=
8442   fi
8443 else
8444   ac_cpp_err=yes
8445 fi
8446 if test -z "$ac_cpp_err"; then
8447   eval "$as_ac_Header=yes"
8448 else
8449   echo "$as_me: failed program was:" >&5
8450   cat conftest.$ac_ext >&5
8451   eval "$as_ac_Header=no"
8452 fi
8453 rm -f conftest.err conftest.$ac_ext
8454 fi
8455 echo "$as_me:8455: result: `eval echo '${'$as_ac_Header'}'`" >&5
8456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8458   cat >>confdefs.h <<EOF
8459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8460 EOF
8461
8462      cat >conftest.$ac_ext <<_ACEOF
8463 #line 8463 "configure"
8464 #include "confdefs.h"
8465 #include <dvdread/dvd_reader.h>
8466 int
8467 main ()
8468 {
8469 void foo() { int i=DVD_VIDEO_LB_LEN; }
8470   ;
8471   return 0;
8472 }
8473 _ACEOF
8474 rm -f conftest.$ac_objext
8475 if { (eval echo "$as_me:8475: \"$ac_compile\"") >&5
8476   (eval $ac_compile) 2>&5
8477   ac_status=$?
8478   echo "$as_me:8478: \$? = $ac_status" >&5
8479   (exit $ac_status); } &&
8480          { ac_try='test -s conftest.$ac_objext'
8481   { (eval echo "$as_me:8481: \"$ac_try\"") >&5
8482   (eval $ac_try) 2>&5
8483   ac_status=$?
8484   echo "$as_me:8484: \$? = $ac_status" >&5
8485   (exit $ac_status); }; }; then
8486
8487           PLUGINS="${PLUGINS} dvdread"
8488           dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
8489           dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
8490
8491 else
8492   echo "$as_me: failed program was:" >&5
8493 cat conftest.$ac_ext >&5
8494
8495           if test "x$enable_dvdread" != x
8496           then
8497             { { echo "$as_me:8497: error: Cannot find DVD_VIDEO_LB_LEN in dvdread/dvd_reader.h, please install libdvdread version 0.9.2 or later" >&5
8498 echo "$as_me: error: Cannot find DVD_VIDEO_LB_LEN in dvdread/dvd_reader.h, please install libdvdread version 0.9.2 or later" >&2;}
8499    { (exit 1); exit 1; }; }
8500           fi
8501
8502 fi
8503 rm -f conftest.$ac_objext conftest.$ac_ext
8504
8505 else
8506
8507     if test "x$enable_dvdread" != x
8508     then
8509       if test "x$with_dvdread" != x
8510       then
8511         { { echo "$as_me:8511: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" >&5
8512 echo "$as_me: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" >&2;}
8513    { (exit 1); exit 1; }; }
8514       else
8515         { { echo "$as_me:8515: error: Cannot find dvdread/dvd_reader.h" >&5
8516 echo "$as_me: error: Cannot find dvdread/dvd_reader.h" >&2;}
8517    { (exit 1); exit 1; }; }
8518       fi
8519     fi
8520
8521 fi
8522 done
8523
8524   CPPFLAGS="$save_CPPFLAGS"
8525 fi
8526
8527 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
8528 if test "${enable_dvbpsi+set}" = set; then
8529   enableval="$enable_dvbpsi"
8530
8531 fi;
8532 if test "x$enable_dvbpsi" != "xno"
8533 then
8534
8535 # Check whether --with-dvbpsi or --without-dvbpsi was given.
8536 if test "${with_dvbpsi+set}" = set; then
8537   withval="$with_dvbpsi"
8538
8539 fi;
8540
8541 # Check whether --with-dvbpsi or --without-dvbpsi was given.
8542 if test "${with_dvbpsi+set}" = set; then
8543   withval="$with_dvbpsi"
8544
8545 fi;
8546   case "x$with_dvbpsi" in
8547   x|xyes)
8548     if test "x$with_dvbpsi_tree" = x
8549     then
8550
8551 for ac_header in dvbpsi/dr.h
8552 do
8553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8554 echo "$as_me:8554: checking for $ac_header" >&5
8555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8557   echo $ECHO_N "(cached) $ECHO_C" >&6
8558 else
8559   cat >conftest.$ac_ext <<_ACEOF
8560 #line 8560 "configure"
8561 #include "confdefs.h"
8562   { { echo "$as_me:8562: error: cannot find libdvbpsi headers" >&5
8563 echo "$as_me: error: cannot find libdvbpsi headers" >&2;}
8564    { (exit 1); exit 1; }; }
8565 #include <$ac_header>
8566 _ACEOF
8567 rm -f conftest.$ac_objext
8568 if { (eval echo "$as_me:8568: \"$ac_compile\"") >&5
8569   (eval $ac_compile) 2>&5
8570   ac_status=$?
8571   echo "$as_me:8571: \$? = $ac_status" >&5
8572   (exit $ac_status); } &&
8573          { ac_try='test -s conftest.$ac_objext'
8574   { (eval echo "$as_me:8574: \"$ac_try\"") >&5
8575   (eval $ac_try) 2>&5
8576   ac_status=$?
8577   echo "$as_me:8577: \$? = $ac_status" >&5
8578   (exit $ac_status); }; }; then
8579   eval "$as_ac_Header=yes"
8580 else
8581   echo "$as_me: failed program was:" >&5
8582 cat conftest.$ac_ext >&5
8583 eval "$as_ac_Header=no"
8584 fi
8585 rm -f conftest.$ac_objext conftest.$ac_ext
8586 fi
8587 echo "$as_me:8587: result: `eval echo '${'$as_ac_Header'}'`" >&5
8588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8590   cat >>confdefs.h <<EOF
8591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8592 EOF
8593   PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
8594           mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} -ldvbpsi"
8595 fi
8596 done
8597
8598     else
8599       echo "$as_me:8599: checking for libdvbpsi.a in ${with_dvbpsi_tree}" >&5
8600 echo $ECHO_N "checking for libdvbpsi.a in ${with_dvbpsi_tree}... $ECHO_C" >&6
8601       real_dvbpsi_tree="`cd ${with_dvbpsi_tree} 2>/dev/null && pwd`"
8602       if test "x$real_dvbpsi_tree" = x
8603       then
8604                 echo "$as_me:8604: result: no" >&5
8605 echo "${ECHO_T}no" >&6
8606         { { echo "$as_me:8606: error: cannot cd to ${with_dvbpsi_tree}" >&5
8607 echo "$as_me: error: cannot cd to ${with_dvbpsi_tree}" >&2;}
8608    { (exit 1); exit 1; }; }
8609       fi
8610       if test -f "${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
8611       then
8612                 echo "$as_me:8612: result: ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" >&5
8613 echo "${ECHO_T}${real_dvbpsi_tree}/src/.libs/libdvbpsi.a" >&6
8614         BUILTINS="${BUILTINS} mpeg_ts_dvbpsi"
8615         mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a"
8616         mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} -I${real_dvbpsi_tree}/src"
8617       else
8618                 echo "$as_me:8618: result: no" >&5
8619 echo "${ECHO_T}no" >&6
8620         { { echo "$as_me:8620: error: cannot find ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a, make sure you compiled libdvbpsi in ${with_dvbpsi_tree}" >&5
8621 echo "$as_me: error: cannot find ${real_dvbpsi_tree}/src/.libs/libdvbpsi.a, make sure you compiled libdvbpsi in ${with_dvbpsi_tree}" >&2;}
8622    { (exit 1); exit 1; }; }
8623       fi
8624     fi
8625   ;;
8626   xno)
8627       ;;
8628   *)
8629     echo "$as_me:8629: checking for dvbpsi headers in ${with_dvbpsi}" >&5
8630 echo $ECHO_N "checking for dvbpsi headers in ${with_dvbpsi}... $ECHO_C" >&6
8631     if test "x$with_dvbpsi" = x
8632     then
8633       test_LDFLAGS=""
8634       test_CFLAGS=""
8635     else
8636       test_LDFLAGS="-L${with_dvbpsi}/lib"
8637       test_CFLAGS="-I${with_dvbpsi}/include"
8638     fi
8639     CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
8640     echo "$as_me:8640: checking for dvbpsi/dr.h" >&5
8641 echo $ECHO_N "checking for dvbpsi/dr.h... $ECHO_C" >&6
8642 if test "${ac_cv_header_dvbpsi_dr_h+set}" = set; then
8643   echo $ECHO_N "(cached) $ECHO_C" >&6
8644 else
8645   cat >conftest.$ac_ext <<_ACEOF
8646 #line 8646 "configure"
8647 #include "confdefs.h"
8648 #include <dvbpsi/dr.h>
8649 _ACEOF
8650 if { (eval echo "$as_me:8650: \"$ac_cpp conftest.$ac_ext\"") >&5
8651   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8652   ac_status=$?
8653   egrep -v '^ *\+' conftest.er1 >conftest.err
8654   rm -f conftest.er1
8655   cat conftest.err >&5
8656   echo "$as_me:8656: \$? = $ac_status" >&5
8657   (exit $ac_status); } >/dev/null; then
8658   if test -s conftest.err; then
8659     ac_cpp_err=$ac_c_preproc_warn_flag
8660   else
8661     ac_cpp_err=
8662   fi
8663 else
8664   ac_cpp_err=yes
8665 fi
8666 if test -z "$ac_cpp_err"; then
8667   ac_cv_header_dvbpsi_dr_h=yes
8668 else
8669   echo "$as_me: failed program was:" >&5
8670   cat conftest.$ac_ext >&5
8671   ac_cv_header_dvbpsi_dr_h=no
8672 fi
8673 rm -f conftest.err conftest.$ac_ext
8674 fi
8675 echo "$as_me:8675: result: $ac_cv_header_dvbpsi_dr_h" >&5
8676 echo "${ECHO_T}$ac_cv_header_dvbpsi_dr_h" >&6
8677 if test $ac_cv_header_dvbpsi_dr_h = yes; then
8678
8679       PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
8680       mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
8681       mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
8682
8683 else
8684
8685       if test "x$enable_dvbpsi" != x
8686       then
8687         { { echo "$as_me:8687: error: Could not find libdvbpsi on your system: you may get it from www.videolan.org, you'll need at least version 0.1.1" >&5
8688 echo "$as_me: error: Could not find libdvbpsi on your system: you may get it from www.videolan.org, you'll need at least version 0.1.1" >&2;}
8689    { (exit 1); exit 1; }; }
8690       fi
8691
8692 fi
8693
8694     CPPFLAGS="$save_CPPFLAGS"
8695   ;;
8696   esac
8697 fi
8698
8699 # Check whether --enable-vcd or --disable-vcd was given.
8700 if test "${enable_vcd+set}" = set; then
8701   enableval="$enable_vcd"
8702
8703 fi;
8704
8705 if test x$enable_vcd != xno
8706 then
8707   cat >conftest.$ac_ext <<_ACEOF
8708 #line 8708 "configure"
8709 #include "confdefs.h"
8710 #include <linux/cdrom.h>
8711
8712 _ACEOF
8713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8714   egrep "cdrom_msf0" >/dev/null 2>&1; then
8715
8716     PLUGINS="${PLUGINS} vcd"
8717
8718 fi
8719 rm -f conftest*
8720
8721   cat >conftest.$ac_ext <<_ACEOF
8722 #line 8722 "configure"
8723 #include "confdefs.h"
8724 #include <sys/cdio.h>
8725
8726 _ACEOF
8727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8728   egrep "ioc_toc_header " >/dev/null 2>&1; then
8729
8730     PLUGINS="${PLUGINS} vcd"
8731
8732 cat >>confdefs.h <<\EOF
8733 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
8734 EOF
8735
8736 fi
8737 rm -f conftest*
8738
8739   if test "x${SYS}" = "xbsdi"
8740   then
8741     PLUGINS="${PLUGINS} vcd"
8742   fi
8743
8744   if test "x${SYS}" = "xdarwin"
8745   then
8746     PLUGINS="${PLUGINS} vcd"
8747     vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
8748   fi
8749 fi
8750
8751 # Check whether --enable-satellite or --disable-satellite was given.
8752 if test "${enable_satellite+set}" = set; then
8753   enableval="$enable_satellite"
8754    if test x$enable_satellite = xyes
8755     then
8756       PLUGINS="${PLUGINS} satellite"
8757     fi
8758 fi;
8759
8760 if test x$SYS != xnto && test "x$SYS" != "xmingw32"
8761 then
8762   echo "$as_me:8762: checking for inet_pton" >&5
8763 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
8764 if test "${ac_cv_func_inet_pton+set}" = set; then
8765   echo $ECHO_N "(cached) $ECHO_C" >&6
8766 else
8767   cat >conftest.$ac_ext <<_ACEOF
8768 #line 8768 "configure"
8769 #include "confdefs.h"
8770 /* System header to define __stub macros and hopefully few prototypes,
8771     which can conflict with char inet_pton (); below.  */
8772 #include <assert.h>
8773 /* Override any gcc2 internal prototype to avoid an error.  */
8774 #ifdef __cplusplus
8775 extern "C"
8776 #endif
8777 /* We use char because int might match the return type of a gcc2
8778    builtin and then its argument prototype would still apply.  */
8779 char inet_pton ();
8780 char (*f) ();
8781
8782 int
8783 main ()
8784 {
8785 /* The GNU C library defines this for functions which it implements
8786     to always fail with ENOSYS.  Some functions are actually named
8787     something starting with __ and the normal name is an alias.  */
8788 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
8789 choke me
8790 #else
8791 f = inet_pton;
8792 #endif
8793
8794   ;
8795   return 0;
8796 }
8797 _ACEOF
8798 rm -f conftest.$ac_objext conftest$ac_exeext
8799 if { (eval echo "$as_me:8799: \"$ac_link\"") >&5
8800   (eval $ac_link) 2>&5
8801   ac_status=$?
8802   echo "$as_me:8802: \$? = $ac_status" >&5
8803   (exit $ac_status); } &&
8804          { ac_try='test -s conftest$ac_exeext'
8805   { (eval echo "$as_me:8805: \"$ac_try\"") >&5
8806   (eval $ac_try) 2>&5
8807   ac_status=$?
8808   echo "$as_me:8808: \$? = $ac_status" >&5
8809   (exit $ac_status); }; }; then
8810   ac_cv_func_inet_pton=yes
8811 else
8812   echo "$as_me: failed program was:" >&5
8813 cat conftest.$ac_ext >&5
8814 ac_cv_func_inet_pton=no
8815 fi
8816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8817 fi
8818 echo "$as_me:8818: result: $ac_cv_func_inet_pton" >&5
8819 echo "${ECHO_T}$ac_cv_func_inet_pton" >&6
8820 if test $ac_cv_func_inet_pton = yes; then
8821   PLUGINS="${PLUGINS} ipv6"
8822 fi
8823
8824 fi
8825 if test "x$SYS" = "xmingw32"
8826 then
8827   echo "$as_me:8827: checking for getaddrinfo in ws2tcpip.h" >&5
8828 echo $ECHO_N "checking for getaddrinfo in ws2tcpip.h... $ECHO_C" >&6
8829   cat >conftest.$ac_ext <<_ACEOF
8830 #line 8830 "configure"
8831 #include "confdefs.h"
8832 #include <ws2tcpip.h>
8833
8834 _ACEOF
8835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8836   egrep "addrinfo" >/dev/null 2>&1; then
8837   echo "$as_me:8837: result: yes" >&5
8838 echo "${ECHO_T}yes" >&6
8839     PLUGINS="${PLUGINS} ipv6"
8840 else
8841   echo "$as_me:8841: result: no" >&5
8842 echo "${ECHO_T}no" >&6
8843 fi
8844 rm -f conftest*
8845
8846 fi
8847
8848 # Check whether --enable-avi or --disable-avi was given.
8849 if test "${enable_avi+set}" = set; then
8850   enableval="$enable_avi"
8851
8852 fi;
8853 if test x$enable_avi != xno
8854 then
8855   PLUGINS="${PLUGINS} avi"
8856 fi
8857
8858 # Check whether --with- or --without- was given.
8859 if test "${with_+set}" = set; then
8860   withval="$with_"
8861
8862 fi;
8863
8864 # Check whether --enable-mad or --disable-mad was given.
8865 if test "${enable_mad+set}" = set; then
8866   enableval="$enable_mad"
8867
8868 fi;
8869 if test x$enable_mad = xyes
8870 then
8871
8872 # Check whether --with-mad or --without-mad was given.
8873 if test "${with_mad+set}" = set; then
8874   withval="$with_mad"
8875
8876 fi;
8877   if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
8878   then
8879     mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
8880     mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
8881   fi
8882
8883 # Check whether --with-mad-tree or --without-mad-tree was given.
8884 if test "${with_mad_tree+set}" = set; then
8885   withval="$with_mad_tree"
8886
8887 fi;
8888   if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
8889   then
8890     real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
8891     if test "x$real_mad_tree" = x
8892     then
8893             echo "$as_me:8893: result: no" >&5
8894 echo "${ECHO_T}no" >&6
8895       { { echo "$as_me:8895: error: ${with_mad_tree} directory doesn't exist" >&5
8896 echo "$as_me: error: ${with_mad_tree} directory doesn't exist" >&2;}
8897    { (exit 1); exit 1; }; }
8898     fi
8899         echo "$as_me:8899: checking for mad.h in ${real_mad_tree}/libmad" >&5
8900 echo $ECHO_N "checking for mad.h in ${real_mad_tree}/libmad... $ECHO_C" >&6
8901     if test -f ${real_mad_tree}/libmad/mad.h
8902     then
8903       echo "$as_me:8903: result: yes" >&5
8904 echo "${ECHO_T}yes" >&6
8905       mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
8906       mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
8907       save_LDFLAGS=$LDFLAGS
8908       LDFLAGS=$mad_LDFLAGS
8909       echo "$as_me:8909: checking for mad_bit_init in -lmad" >&5
8910 echo $ECHO_N "checking for mad_bit_init in -lmad... $ECHO_C" >&6
8911 if test "${ac_cv_lib_mad_mad_bit_init+set}" = set; then
8912   echo $ECHO_N "(cached) $ECHO_C" >&6
8913 else
8914   ac_check_lib_save_LIBS=$LIBS
8915 LIBS="-lmad  $LIBS"
8916 cat >conftest.$ac_ext <<_ACEOF
8917 #line 8917 "configure"
8918 #include "confdefs.h"
8919
8920 /* Override any gcc2 internal prototype to avoid an error.  */
8921 #ifdef __cplusplus
8922 extern "C"
8923 #endif
8924 /* We use char because int might match the return type of a gcc2
8925    builtin and then its argument prototype would still apply.  */
8926 char mad_bit_init ();
8927 int
8928 main ()
8929 {
8930 mad_bit_init ();
8931   ;
8932   return 0;
8933 }
8934 _ACEOF
8935 rm -f conftest.$ac_objext conftest$ac_exeext
8936 if { (eval echo "$as_me:8936: \"$ac_link\"") >&5
8937   (eval $ac_link) 2>&5
8938   ac_status=$?
8939   echo "$as_me:8939: \$? = $ac_status" >&5
8940   (exit $ac_status); } &&
8941          { ac_try='test -s conftest$ac_exeext'
8942   { (eval echo "$as_me:8942: \"$ac_try\"") >&5
8943   (eval $ac_try) 2>&5
8944   ac_status=$?
8945   echo "$as_me:8945: \$? = $ac_status" >&5
8946   (exit $ac_status); }; }; then
8947   ac_cv_lib_mad_mad_bit_init=yes
8948 else
8949   echo "$as_me: failed program was:" >&5
8950 cat conftest.$ac_ext >&5
8951 ac_cv_lib_mad_mad_bit_init=no
8952 fi
8953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8954 LIBS=$ac_check_lib_save_LIBS
8955 fi
8956 echo "$as_me:8956: result: $ac_cv_lib_mad_mad_bit_init" >&5
8957 echo "${ECHO_T}$ac_cv_lib_mad_mad_bit_init" >&6
8958 if test $ac_cv_lib_mad_mad_bit_init = yes; then
8959
8960         BUILTINS="${BUILTINS} mad"
8961         mad_LDFLAGS="${mad_LDFLAGS} -lmad"
8962
8963 else
8964    { { echo "$as_me:8964: error: the specified tree hasn't been compiled " >&5
8965 echo "$as_me: error: the specified tree hasn't been compiled " >&2;}
8966    { (exit 1); exit 1; }; }
8967
8968 fi
8969
8970       LDFLAGS=$save_LDFLAGS
8971     else
8972       echo "$as_me:8972: result: no" >&5
8973 echo "${ECHO_T}no" >&6
8974       { { echo "$as_me:8974: error: the specified tree doesn't have mad.h" >&5
8975 echo "$as_me: error: the specified tree doesn't have mad.h" >&2;}
8976    { (exit 1); exit 1; }; }
8977     fi
8978   else
8979     save_CFLAGS=$CFLAGS
8980     save_LDFLAGS=$LDFLAGS
8981     CFLAGS="$CFLAGS $mad_CFLAGS"
8982     LDFLAGS="$LDFLAGS $mad_LDFLAGS"
8983
8984 for ac_header in mad.h
8985 do
8986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8987 echo "$as_me:8987: checking for $ac_header" >&5
8988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8990   echo $ECHO_N "(cached) $ECHO_C" >&6
8991 else
8992   cat >conftest.$ac_ext <<_ACEOF
8993 #line 8993 "configure"
8994 #include "confdefs.h"
8995 #include <$ac_header>
8996 _ACEOF
8997 if { (eval echo "$as_me:8997: \"$ac_cpp conftest.$ac_ext\"") >&5
8998   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8999   ac_status=$?
9000   egrep -v '^ *\+' conftest.er1 >conftest.err
9001   rm -f conftest.er1
9002   cat conftest.err >&5
9003   echo "$as_me:9003: \$? = $ac_status" >&5
9004   (exit $ac_status); } >/dev/null; then
9005   if test -s conftest.err; then
9006     ac_cpp_err=$ac_c_preproc_warn_flag
9007   else
9008     ac_cpp_err=
9009   fi
9010 else
9011   ac_cpp_err=yes
9012 fi
9013 if test -z "$ac_cpp_err"; then
9014   eval "$as_ac_Header=yes"
9015 else
9016   echo "$as_me: failed program was:" >&5
9017   cat conftest.$ac_ext >&5
9018   eval "$as_ac_Header=no"
9019 fi
9020 rm -f conftest.err conftest.$ac_ext
9021 fi
9022 echo "$as_me:9022: result: `eval echo '${'$as_ac_Header'}'`" >&5
9023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9025   cat >>confdefs.h <<EOF
9026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9027 EOF
9028
9029 else
9030    { { echo "$as_me:9030: error: Cannot find development headers for libmad..." >&5
9031 echo "$as_me: error: Cannot find development headers for libmad..." >&2;}
9032    { (exit 1); exit 1; }; }
9033 fi
9034 done
9035
9036     echo "$as_me:9036: checking for mad_bit_init in -lmad" >&5
9037 echo $ECHO_N "checking for mad_bit_init in -lmad... $ECHO_C" >&6
9038 if test "${ac_cv_lib_mad_mad_bit_init+set}" = set; then
9039   echo $ECHO_N "(cached) $ECHO_C" >&6
9040 else
9041   ac_check_lib_save_LIBS=$LIBS
9042 LIBS="-lmad  $LIBS"
9043 cat >conftest.$ac_ext <<_ACEOF
9044 #line 9044 "configure"
9045 #include "confdefs.h"
9046
9047 /* Override any gcc2 internal prototype to avoid an error.  */
9048 #ifdef __cplusplus
9049 extern "C"
9050 #endif
9051 /* We use char because int might match the return type of a gcc2
9052    builtin and then its argument prototype would still apply.  */
9053 char mad_bit_init ();
9054 int
9055 main ()
9056 {
9057 mad_bit_init ();
9058   ;
9059   return 0;
9060 }
9061 _ACEOF
9062 rm -f conftest.$ac_objext conftest$ac_exeext
9063 if { (eval echo "$as_me:9063: \"$ac_link\"") >&5
9064   (eval $ac_link) 2>&5
9065   ac_status=$?
9066   echo "$as_me:9066: \$? = $ac_status" >&5
9067   (exit $ac_status); } &&
9068          { ac_try='test -s conftest$ac_exeext'
9069   { (eval echo "$as_me:9069: \"$ac_try\"") >&5
9070   (eval $ac_try) 2>&5
9071   ac_status=$?
9072   echo "$as_me:9072: \$? = $ac_status" >&5
9073   (exit $ac_status); }; }; then
9074   ac_cv_lib_mad_mad_bit_init=yes
9075 else
9076   echo "$as_me: failed program was:" >&5
9077 cat conftest.$ac_ext >&5
9078 ac_cv_lib_mad_mad_bit_init=no
9079 fi
9080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9081 LIBS=$ac_check_lib_save_LIBS
9082 fi
9083 echo "$as_me:9083: result: $ac_cv_lib_mad_mad_bit_init" >&5
9084 echo "${ECHO_T}$ac_cv_lib_mad_mad_bit_init" >&6
9085 if test $ac_cv_lib_mad_mad_bit_init = yes; then
9086
9087       PLUGINS="${PLUGINS} mad"
9088       mad_LDFLAGS="${mad_LDFLAGS} -lmad"
9089 else
9090    { { echo "$as_me:9090: error: Cannot find libmad library..." >&5
9091 echo "$as_me: error: Cannot find libmad library..." >&2;}
9092    { (exit 1); exit 1; }; }
9093 fi
9094
9095     CFLAGS=$save_CFLAGS
9096     LDFLAGS=$save_LDFLAGS
9097   fi
9098 fi
9099
9100 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
9101 if test "${enable_ffmpeg+set}" = set; then
9102   enableval="$enable_ffmpeg"
9103
9104 fi;
9105 if test "x$enable_ffmpeg" = "xyes"
9106 then
9107
9108 # Check whether --with-ffmpeg or --without-ffmpeg was given.
9109 if test "${with_ffmpeg+set}" = set; then
9110   withval="$with_ffmpeg"
9111
9112 fi;
9113   if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"
9114   then
9115     ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I$with_ffmpeg/include/libffmpeg"
9116     ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -L$with_ffmpeg/lib"
9117   fi
9118
9119 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
9120 if test "${with_ffmpeg_tree+set}" = set; then
9121   withval="$with_ffmpeg_tree"
9122
9123 fi;
9124   if test "x$with_ffmpeg_tree" != "x"
9125   then
9126     echo "$as_me:9126: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
9127 echo $ECHO_N "checking for libavcodec.a in ${with_ffmpeg_tree}... $ECHO_C" >&6
9128     real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
9129     if test "x$real_ffmpeg_tree" = x
9130     then
9131             echo "$as_me:9131: result: no" >&5
9132 echo "${ECHO_T}no" >&6
9133       { { echo "$as_me:9133: error: cannot cd to ${with_ffmpeg_tree}" >&5
9134 echo "$as_me: error: cannot cd to ${with_ffmpeg_tree}" >&2;}
9135    { (exit 1); exit 1; }; }
9136     fi
9137     if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
9138     then
9139             echo "$as_me:9139: result: ${real_ffmpeg_tree}/libavcodec/libavcodec.a" >&5
9140 echo "${ECHO_T}${real_ffmpeg_tree}/libavcodec/libavcodec.a" >&6
9141       BUILTINS="${BUILTINS} ffmpeg"
9142       ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a"
9143       if test x$SYS != xbeos
9144       then
9145         ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
9146       fi
9147       ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
9148     else
9149             echo "$as_me:9149: result: no" >&5
9150 echo "${ECHO_T}no" >&6
9151       { { echo "$as_me:9151: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" >&5
9152 echo "$as_me: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" >&2;}
9153    { (exit 1); exit 1; }; }
9154     fi
9155   else
9156     save_CFLAGS=$CFLAGS
9157     save_LDFLAGS=$LDFLAGS
9158     CFLAGS="$CFLAGS $ffmpeg_CFLAGS"
9159     LDFLAGS="$LDFLAGS $ffmpeg_LDFLAGS"
9160     if test x$SYS != xbeos
9161     then
9162       ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
9163     fi
9164     echo "$as_me:9164: checking for avcodec_init in -lavcodec" >&5
9165 echo $ECHO_N "checking for avcodec_init in -lavcodec... $ECHO_C" >&6
9166 if test "${ac_cv_lib_avcodec_avcodec_init+set}" = set; then
9167   echo $ECHO_N "(cached) $ECHO_C" >&6
9168 else
9169   ac_check_lib_save_LIBS=$LIBS
9170 LIBS="-lavcodec  $LIBS"
9171 cat >conftest.$ac_ext <<_ACEOF
9172 #line 9172 "configure"
9173 #include "confdefs.h"
9174
9175 /* Override any gcc2 internal prototype to avoid an error.  */
9176 #ifdef __cplusplus
9177 extern "C"
9178 #endif
9179 /* We use char because int might match the return type of a gcc2
9180    builtin and then its argument prototype would still apply.  */
9181 char avcodec_init ();
9182 int
9183 main ()
9184 {
9185 avcodec_init ();
9186   ;
9187   return 0;
9188 }
9189 _ACEOF
9190 rm -f conftest.$ac_objext conftest$ac_exeext
9191 if { (eval echo "$as_me:9191: \"$ac_link\"") >&5
9192   (eval $ac_link) 2>&5
9193   ac_status=$?
9194   echo "$as_me:9194: \$? = $ac_status" >&5
9195   (exit $ac_status); } &&
9196          { ac_try='test -s conftest$ac_exeext'
9197   { (eval echo "$as_me:9197: \"$ac_try\"") >&5
9198   (eval $ac_try) 2>&5
9199   ac_status=$?
9200   echo "$as_me:9200: \$? = $ac_status" >&5
9201   (exit $ac_status); }; }; then
9202   ac_cv_lib_avcodec_avcodec_init=yes
9203 else
9204   echo "$as_me: failed program was:" >&5
9205 cat conftest.$ac_ext >&5
9206 ac_cv_lib_avcodec_avcodec_init=no
9207 fi
9208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9209 LIBS=$ac_check_lib_save_LIBS
9210 fi
9211 echo "$as_me:9211: result: $ac_cv_lib_avcodec_avcodec_init" >&5
9212 echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_init" >&6
9213 if test $ac_cv_lib_avcodec_avcodec_init = yes; then
9214
9215       BUILTINS="${BUILTINS} ffmpeg"
9216       ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lavcodec"
9217       if test x$SYS != xbeos
9218       then
9219         ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} -lm"
9220       fi
9221 else
9222    { { echo "$as_me:9222: error: Cannot find libavcodec library..." >&5
9223 echo "$as_me: error: Cannot find libavcodec library..." >&2;}
9224    { (exit 1); exit 1; }; }
9225 fi
9226
9227     CFLAGS=$save_CFLAGS
9228     LDFLAGS=$save_LDFLAGS
9229   fi
9230 fi
9231
9232 if test x$SYS = xbeos
9233 then
9234     PLUGINS="${PLUGINS} beos"
9235 fi
9236
9237 # Check whether --enable-a52 or --disable-a52 was given.
9238 if test "${enable_a52+set}" = set; then
9239   enableval="$enable_a52"
9240
9241 fi;
9242 if test "x$enable_a52" != "xno"
9243 then
9244
9245 # Check whether --with-a52-tree or --without-a52-tree was given.
9246 if test "${with_a52_tree+set}" = set; then
9247   withval="$with_a52_tree"
9248
9249 fi;
9250   if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
9251   then
9252     real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
9253     if test "x$real_a52_tree" = x
9254     then
9255             echo "$as_me:9255: result: no" >&5
9256 echo "${ECHO_T}no" >&6
9257       { { echo "$as_me:9257: error: ${with_a52_tree} directory doesn't exist" >&5
9258 echo "$as_me: error: ${with_a52_tree} directory doesn't exist" >&2;}
9259    { (exit 1); exit 1; }; }
9260     fi
9261         echo "$as_me:9261: checking for a52.h in ${real_a52_tree}/include" >&5
9262 echo $ECHO_N "checking for a52.h in ${real_a52_tree}/include... $ECHO_C" >&6
9263     if test -f ${real_a52_tree}/include/a52.h
9264     then
9265       echo "$as_me:9265: result: yes" >&5
9266 echo "${ECHO_T}yes" >&6
9267       a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
9268       a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
9269       save_LDFLAGS=$LDFLAGS
9270       LDFLAGS="$a52_LDFLAGS $LDFLAGS"
9271       echo "$as_me:9271: checking for a52_free in -la52" >&5
9272 echo $ECHO_N "checking for a52_free in -la52... $ECHO_C" >&6
9273 if test "${ac_cv_lib_a52_a52_free+set}" = set; then
9274   echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276   ac_check_lib_save_LIBS=$LIBS
9277 LIBS="-la52 -lm $LIBS"
9278 cat >conftest.$ac_ext <<_ACEOF
9279 #line 9279 "configure"
9280 #include "confdefs.h"
9281
9282 /* Override any gcc2 internal prototype to avoid an error.  */
9283 #ifdef __cplusplus
9284 extern "C"
9285 #endif
9286 /* We use char because int might match the return type of a gcc2
9287    builtin and then its argument prototype would still apply.  */
9288 char a52_free ();
9289 int
9290 main ()
9291 {
9292 a52_free ();
9293   ;
9294   return 0;
9295 }
9296 _ACEOF
9297 rm -f conftest.$ac_objext conftest$ac_exeext
9298 if { (eval echo "$as_me:9298: \"$ac_link\"") >&5
9299   (eval $ac_link) 2>&5
9300   ac_status=$?
9301   echo "$as_me:9301: \$? = $ac_status" >&5
9302   (exit $ac_status); } &&
9303          { ac_try='test -s conftest$ac_exeext'
9304   { (eval echo "$as_me:9304: \"$ac_try\"") >&5
9305   (eval $ac_try) 2>&5
9306   ac_status=$?
9307   echo "$as_me:9307: \$? = $ac_status" >&5
9308   (exit $ac_status); }; }; then
9309   ac_cv_lib_a52_a52_free=yes
9310 else
9311   echo "$as_me: failed program was:" >&5
9312 cat conftest.$ac_ext >&5
9313 ac_cv_lib_a52_a52_free=no
9314 fi
9315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9316 LIBS=$ac_check_lib_save_LIBS
9317 fi
9318 echo "$as_me:9318: result: $ac_cv_lib_a52_a52_free" >&5
9319 echo "${ECHO_T}$ac_cv_lib_a52_a52_free" >&6
9320 if test $ac_cv_lib_a52_a52_free = yes; then
9321
9322         BUILTINS="${BUILTINS} a52"
9323         a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
9324         a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
9325
9326 else
9327
9328         if test -f ${real_a52_tree}/liba52/.libs/liba52.a
9329         then
9330           { { echo "$as_me:9330: error: make sure you have at least a52dec-0.7.3" >&5
9331 echo "$as_me: error: make sure you have at least a52dec-0.7.3" >&2;}
9332    { (exit 1); exit 1; }; }
9333         else
9334           { { echo "$as_me:9334: error: the specified tree hasn't been compiled" >&5
9335 echo "$as_me: error: the specified tree hasn't been compiled" >&2;}
9336    { (exit 1); exit 1; }; }
9337         fi
9338
9339 fi
9340
9341       LDFLAGS=$save_LDFLAGS
9342     else
9343       echo "$as_me:9343: result: no" >&5
9344 echo "${ECHO_T}no" >&6
9345       { { echo "$as_me:9345: error: the specified tree doesn't have a52.h" >&5
9346 echo "$as_me: error: the specified tree doesn't have a52.h" >&2;}
9347    { (exit 1); exit 1; }; }
9348     fi
9349   else
9350 for ac_header in a52dec/a52.h
9351 do
9352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9353 echo "$as_me:9353: checking for $ac_header" >&5
9354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9356   echo $ECHO_N "(cached) $ECHO_C" >&6
9357 else
9358   cat >conftest.$ac_ext <<_ACEOF
9359 #line 9359 "configure"
9360 #include "confdefs.h"
9361 #include <$ac_header>
9362 _ACEOF
9363 if { (eval echo "$as_me:9363: \"$ac_cpp conftest.$ac_ext\"") >&5
9364   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9365   ac_status=$?
9366   egrep -v '^ *\+' conftest.er1 >conftest.err
9367   rm -f conftest.er1
9368   cat conftest.err >&5
9369   echo "$as_me:9369: \$? = $ac_status" >&5
9370   (exit $ac_status); } >/dev/null; then
9371   if test -s conftest.err; then
9372     ac_cpp_err=$ac_c_preproc_warn_flag
9373   else
9374     ac_cpp_err=
9375   fi
9376 else
9377   ac_cpp_err=yes
9378 fi
9379 if test -z "$ac_cpp_err"; then
9380   eval "$as_ac_Header=yes"
9381 else
9382   echo "$as_me: failed program was:" >&5
9383   cat conftest.$ac_ext >&5
9384   eval "$as_ac_Header=no"
9385 fi
9386 rm -f conftest.err conftest.$ac_ext
9387 fi
9388 echo "$as_me:9388: result: `eval echo '${'$as_ac_Header'}'`" >&5
9389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9391   cat >>confdefs.h <<EOF
9392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9393 EOF
9394
9395       echo "$as_me:9395: checking for a52_free in -la52" >&5
9396 echo $ECHO_N "checking for a52_free in -la52... $ECHO_C" >&6
9397 if test "${ac_cv_lib_a52_a52_free+set}" = set; then
9398   echo $ECHO_N "(cached) $ECHO_C" >&6
9399 else
9400   ac_check_lib_save_LIBS=$LIBS
9401 LIBS="-la52 -lm $LIBS"
9402 cat >conftest.$ac_ext <<_ACEOF
9403 #line 9403 "configure"
9404 #include "confdefs.h"
9405
9406 /* Override any gcc2 internal prototype to avoid an error.  */
9407 #ifdef __cplusplus
9408 extern "C"
9409 #endif
9410 /* We use char because int might match the return type of a gcc2
9411    builtin and then its argument prototype would still apply.  */
9412 char a52_free ();
9413 int
9414 main ()
9415 {
9416 a52_free ();
9417   ;
9418   return 0;
9419 }
9420 _ACEOF
9421 rm -f conftest.$ac_objext conftest$ac_exeext
9422 if { (eval echo "$as_me:9422: \"$ac_link\"") >&5
9423   (eval $ac_link) 2>&5
9424   ac_status=$?
9425   echo "$as_me:9425: \$? = $ac_status" >&5
9426   (exit $ac_status); } &&
9427          { ac_try='test -s conftest$ac_exeext'
9428   { (eval echo "$as_me:9428: \"$ac_try\"") >&5
9429   (eval $ac_try) 2>&5
9430   ac_status=$?
9431   echo "$as_me:9431: \$? = $ac_status" >&5
9432   (exit $ac_status); }; }; then
9433   ac_cv_lib_a52_a52_free=yes
9434 else
9435   echo "$as_me: failed program was:" >&5
9436 cat conftest.$ac_ext >&5
9437 ac_cv_lib_a52_a52_free=no
9438 fi
9439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9440 LIBS=$ac_check_lib_save_LIBS
9441 fi
9442 echo "$as_me:9442: result: $ac_cv_lib_a52_a52_free" >&5
9443 echo "${ECHO_T}$ac_cv_lib_a52_a52_free" >&6
9444 if test $ac_cv_lib_a52_a52_free = yes; then
9445
9446         BUILTINS="${BUILTINS} a52"
9447         a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
9448         a52_CFLAGS="${a52_CFLAGS}"
9449
9450 fi
9451
9452 fi
9453 done
9454
9455   fi
9456 fi
9457
9458 # Check whether --enable-vorbis or --disable-vorbis was given.
9459 if test "${enable_vorbis+set}" = set; then
9460   enableval="$enable_vorbis"
9461
9462 fi;
9463 if test "x$enable_vorbis" != "xno"
9464 then
9465
9466 for ac_header in ogg/ogg.h
9467 do
9468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9469 echo "$as_me:9469: checking for $ac_header" >&5
9470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9472   echo $ECHO_N "(cached) $ECHO_C" >&6
9473 else
9474   cat >conftest.$ac_ext <<_ACEOF
9475 #line 9475 "configure"
9476 #include "confdefs.h"
9477 #include <$ac_header>
9478 _ACEOF
9479 if { (eval echo "$as_me:9479: \"$ac_cpp conftest.$ac_ext\"") >&5
9480   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9481   ac_status=$?
9482   egrep -v '^ *\+' conftest.er1 >conftest.err
9483   rm -f conftest.er1
9484   cat conftest.err >&5
9485   echo "$as_me:9485: \$? = $ac_status" >&5
9486   (exit $ac_status); } >/dev/null; then
9487   if test -s conftest.err; then
9488     ac_cpp_err=$ac_c_preproc_warn_flag
9489   else
9490     ac_cpp_err=
9491   fi
9492 else
9493   ac_cpp_err=yes
9494 fi
9495 if test -z "$ac_cpp_err"; then
9496   eval "$as_ac_Header=yes"
9497 else
9498   echo "$as_me: failed program was:" >&5
9499   cat conftest.$ac_ext >&5
9500   eval "$as_ac_Header=no"
9501 fi
9502 rm -f conftest.err conftest.$ac_ext
9503 fi
9504 echo "$as_me:9504: result: `eval echo '${'$as_ac_Header'}'`" >&5
9505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9507   cat >>confdefs.h <<EOF
9508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9509 EOF
9510
9511         #PLUGINS="${PLUGINS} vorbis"
9512     vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
9513
9514 fi
9515 done
9516
9517 fi
9518
9519 # Check whether --with- or --without- was given.
9520 if test "${with_+set}" = set; then
9521   withval="$with_"
9522
9523 fi;
9524
9525 # Check whether --enable-x11 or --disable-x11 was given.
9526 if test "${enable_x11+set}" = set; then
9527   enableval="$enable_x11"
9528
9529 fi;
9530 if test x$enable_x11 != xno &&
9531   (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
9532   if test x$x_includes = xNONE; then
9533     x_includes=/usr/X11R6/include
9534   fi
9535   if test x$x_libraries = xNONE; then
9536     x_libraries=/usr/X11R6/lib
9537   fi
9538   CPPFLAGS="$save_CPPFLAGS -I$x_includes"
9539
9540 for ac_header in X11/Xlib.h
9541 do
9542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9543 echo "$as_me:9543: checking for $ac_header" >&5
9544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9546   echo $ECHO_N "(cached) $ECHO_C" >&6
9547 else
9548   cat >conftest.$ac_ext <<_ACEOF
9549 #line 9549 "configure"
9550 #include "confdefs.h"
9551 #include <$ac_header>
9552 _ACEOF
9553 if { (eval echo "$as_me:9553: \"$ac_cpp conftest.$ac_ext\"") >&5
9554   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9555   ac_status=$?
9556   egrep -v '^ *\+' conftest.er1 >conftest.err
9557   rm -f conftest.er1
9558   cat conftest.err >&5
9559   echo "$as_me:9559: \$? = $ac_status" >&5
9560   (exit $ac_status); } >/dev/null; then
9561   if test -s conftest.err; then
9562     ac_cpp_err=$ac_c_preproc_warn_flag
9563   else
9564     ac_cpp_err=
9565   fi
9566 else
9567   ac_cpp_err=yes
9568 fi
9569 if test -z "$ac_cpp_err"; then
9570   eval "$as_ac_Header=yes"
9571 else
9572   echo "$as_me: failed program was:" >&5
9573   cat conftest.$ac_ext >&5
9574   eval "$as_ac_Header=no"
9575 fi
9576 rm -f conftest.err conftest.$ac_ext
9577 fi
9578 echo "$as_me:9578: result: `eval echo '${'$as_ac_Header'}'`" >&5
9579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9581   cat >>confdefs.h <<EOF
9582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9583 EOF
9584
9585     PLUGINS="${PLUGINS} x11"
9586     x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
9587     x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
9588
9589 fi
9590 done
9591
9592   CPPFLAGS="$save_CPPFLAGS"
9593 fi
9594
9595 # Check whether --enable-xvideo or --disable-xvideo was given.
9596 if test "${enable_xvideo+set}" = set; then
9597   enableval="$enable_xvideo"
9598
9599 fi;
9600 if test x$enable_xvideo != xno &&
9601   (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
9602   if test x$x_includes = xNONE; then
9603     x_includes=/usr/X11R6/include
9604   fi
9605   if test x$x_libraries = xNONE; then
9606     x_libraries=/usr/X11R6/lib
9607   fi
9608   save_CPPFLAGS=$CPPFLAGS
9609   CPPFLAGS="$save_CPPFLAGS -I$x_includes"
9610
9611 for ac_header in X11/extensions/Xv.h
9612 do
9613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9614 echo "$as_me:9614: checking for $ac_header" >&5
9615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9617   echo $ECHO_N "(cached) $ECHO_C" >&6
9618 else
9619   cat >conftest.$ac_ext <<_ACEOF
9620 #line 9620 "configure"
9621 #include "confdefs.h"
9622 #include <$ac_header>
9623 _ACEOF
9624 if { (eval echo "$as_me:9624: \"$ac_cpp conftest.$ac_ext\"") >&5
9625   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9626   ac_status=$?
9627   egrep -v '^ *\+' conftest.er1 >conftest.err
9628   rm -f conftest.er1
9629   cat conftest.err >&5
9630   echo "$as_me:9630: \$? = $ac_status" >&5
9631   (exit $ac_status); } >/dev/null; then
9632   if test -s conftest.err; then
9633     ac_cpp_err=$ac_c_preproc_warn_flag
9634   else
9635     ac_cpp_err=
9636   fi
9637 else
9638   ac_cpp_err=yes
9639 fi
9640 if test -z "$ac_cpp_err"; then
9641   eval "$as_ac_Header=yes"
9642 else
9643   echo "$as_me: failed program was:" >&5
9644   cat conftest.$ac_ext >&5
9645   eval "$as_ac_Header=no"
9646 fi
9647 rm -f conftest.err conftest.$ac_ext
9648 fi
9649 echo "$as_me:9649: result: `eval echo '${'$as_ac_Header'}'`" >&5
9650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9652   cat >>confdefs.h <<EOF
9653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9654 EOF
9655
9656     save_CFLAGS=$CFLAGS
9657     CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
9658     echo "$as_me:9658: checking for XvSetPortAttribute in -lXv_pic" >&5
9659 echo $ECHO_N "checking for XvSetPortAttribute in -lXv_pic... $ECHO_C" >&6
9660 if test "${ac_cv_lib_Xv_pic_XvSetPortAttribute+set}" = set; then
9661   echo $ECHO_N "(cached) $ECHO_C" >&6
9662 else
9663   ac_check_lib_save_LIBS=$LIBS
9664 LIBS="-lXv_pic  $LIBS"
9665 cat >conftest.$ac_ext <<_ACEOF
9666 #line 9666 "configure"
9667 #include "confdefs.h"
9668
9669 /* Override any gcc2 internal prototype to avoid an error.  */
9670 #ifdef __cplusplus
9671 extern "C"
9672 #endif
9673 /* We use char because int might match the return type of a gcc2
9674    builtin and then its argument prototype would still apply.  */
9675 char XvSetPortAttribute ();
9676 int
9677 main ()
9678 {
9679 XvSetPortAttribute ();
9680   ;
9681   return 0;
9682 }
9683 _ACEOF
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (eval echo "$as_me:9685: \"$ac_link\"") >&5
9686   (eval $ac_link) 2>&5
9687   ac_status=$?
9688   echo "$as_me:9688: \$? = $ac_status" >&5
9689   (exit $ac_status); } &&
9690          { ac_try='test -s conftest$ac_exeext'
9691   { (eval echo "$as_me:9691: \"$ac_try\"") >&5
9692   (eval $ac_try) 2>&5
9693   ac_status=$?
9694   echo "$as_me:9694: \$? = $ac_status" >&5
9695   (exit $ac_status); }; }; then
9696   ac_cv_lib_Xv_pic_XvSetPortAttribute=yes
9697 else
9698   echo "$as_me: failed program was:" >&5
9699 cat conftest.$ac_ext >&5
9700 ac_cv_lib_Xv_pic_XvSetPortAttribute=no
9701 fi
9702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9703 LIBS=$ac_check_lib_save_LIBS
9704 fi
9705 echo "$as_me:9705: result: $ac_cv_lib_Xv_pic_XvSetPortAttribute" >&5
9706 echo "${ECHO_T}$ac_cv_lib_Xv_pic_XvSetPortAttribute" >&6
9707 if test $ac_cv_lib_Xv_pic_XvSetPortAttribute = yes; then
9708   # We have Xv_pic, that's good, we can build an xvideo.so plugin !
9709       PLUGINS="${PLUGINS} xvideo"
9710       xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
9711       xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
9712 else
9713   # We don't have Xv_pic, let's make xvideo.a as builtin
9714       BUILTINS="${BUILTINS} xvideo"
9715       xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
9716       xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
9717 fi
9718
9719     CFLAGS="$save_CFLAGS"
9720
9721   CPPFLAGS="$save_CPPFLAGS"
9722 fi
9723 done
9724
9725 fi
9726
9727 # Check whether --enable-sdl or --disable-sdl was given.
9728 if test "${enable_sdl+set}" = set; then
9729   enableval="$enable_sdl"
9730
9731 fi;
9732 if test "x$enable_sdl" != "xno"
9733 then
9734   SDL_PATH=$PATH
9735
9736 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
9737 if test "${with_sdl_config_path+set}" = set; then
9738   withval="$with_sdl_config_path"
9739    if test "x$with_sdl_config_path" != "xno"
9740       then
9741         SDL_PATH="$with_sdl_config_path:$PATH"
9742       fi
9743 fi;
9744   # Extract the first word of "sdl12-config", so it can be a program name with args.
9745 set dummy sdl12-config; ac_word=$2
9746 echo "$as_me:9746: checking for $ac_word" >&5
9747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9748 if test "${ac_cv_path_SDL12_CONFIG+set}" = set; then
9749   echo $ECHO_N "(cached) $ECHO_C" >&6
9750 else
9751   case $SDL12_CONFIG in
9752   [\\/]* | ?:[\\/]*)
9753   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
9754   ;;
9755   *)
9756   ac_save_IFS=$IFS; IFS=$ac_path_separator
9757 ac_dummy="$SDL_PATH"
9758 for ac_dir in $ac_dummy; do
9759   IFS=$ac_save_IFS
9760   test -z "$ac_dir" && ac_dir=.
9761   if $as_executable_p "$ac_dir/$ac_word"; then
9762    ac_cv_path_SDL12_CONFIG="$ac_dir/$ac_word"
9763    echo "$as_me:9763: found $ac_dir/$ac_word" >&5
9764    break
9765 fi
9766 done
9767
9768   test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
9769   ;;
9770 esac
9771 fi
9772 SDL12_CONFIG=$ac_cv_path_SDL12_CONFIG
9773
9774 if test -n "$SDL12_CONFIG"; then
9775   echo "$as_me:9775: result: $SDL12_CONFIG" >&5
9776 echo "${ECHO_T}$SDL12_CONFIG" >&6
9777 else
9778   echo "$as_me:9778: result: no" >&5
9779 echo "${ECHO_T}no" >&6
9780 fi
9781
9782   SDL_CONFIG=${SDL12_CONFIG}
9783   SDL_HEADER="SDL12/SDL.h"
9784   if test x${SDL_CONFIG} = xno
9785   then
9786     # Extract the first word of "sdl11-config", so it can be a program name with args.
9787 set dummy sdl11-config; ac_word=$2
9788 echo "$as_me:9788: checking for $ac_word" >&5
9789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9790 if test "${ac_cv_path_SDL11_CONFIG+set}" = set; then
9791   echo $ECHO_N "(cached) $ECHO_C" >&6
9792 else
9793   case $SDL11_CONFIG in
9794   [\\/]* | ?:[\\/]*)
9795   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
9796   ;;
9797   *)
9798   ac_save_IFS=$IFS; IFS=$ac_path_separator
9799 ac_dummy="$SDL_PATH"
9800 for ac_dir in $ac_dummy; do
9801   IFS=$ac_save_IFS
9802   test -z "$ac_dir" && ac_dir=.
9803   if $as_executable_p "$ac_dir/$ac_word"; then
9804    ac_cv_path_SDL11_CONFIG="$ac_dir/$ac_word"
9805    echo "$as_me:9805: found $ac_dir/$ac_word" >&5
9806    break
9807 fi
9808 done
9809
9810   test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
9811   ;;
9812 esac
9813 fi
9814 SDL11_CONFIG=$ac_cv_path_SDL11_CONFIG
9815
9816 if test -n "$SDL11_CONFIG"; then
9817   echo "$as_me:9817: result: $SDL11_CONFIG" >&5
9818 echo "${ECHO_T}$SDL11_CONFIG" >&6
9819 else
9820   echo "$as_me:9820: result: no" >&5
9821 echo "${ECHO_T}no" >&6
9822 fi
9823
9824     SDL_CONFIG=${SDL11_CONFIG}
9825     SDL_HEADER="SDL11/SDL.h"
9826   fi
9827   if test x${SDL_CONFIG} = xno
9828   then
9829     # Extract the first word of "sdl-config", so it can be a program name with args.
9830 set dummy sdl-config; ac_word=$2
9831 echo "$as_me:9831: checking for $ac_word" >&5
9832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9833 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
9834   echo $ECHO_N "(cached) $ECHO_C" >&6
9835 else
9836   case $SDL_CONFIG in
9837   [\\/]* | ?:[\\/]*)
9838   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
9839   ;;
9840   *)
9841   ac_save_IFS=$IFS; IFS=$ac_path_separator
9842 ac_dummy="$SDL_PATH"
9843 for ac_dir in $ac_dummy; do
9844   IFS=$ac_save_IFS
9845   test -z "$ac_dir" && ac_dir=.
9846   if $as_executable_p "$ac_dir/$ac_word"; then
9847    ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
9848    echo "$as_me:9848: found $ac_dir/$ac_word" >&5
9849    break
9850 fi
9851 done
9852
9853   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
9854   ;;
9855 esac
9856 fi
9857 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
9858
9859 if test -n "$SDL_CONFIG"; then
9860   echo "$as_me:9860: result: $SDL_CONFIG" >&5
9861 echo "${ECHO_T}$SDL_CONFIG" >&6
9862 else
9863   echo "$as_me:9863: result: no" >&5
9864 echo "${ECHO_T}no" >&6
9865 fi
9866
9867     SDL_HEADER="SDL/SDL.h"
9868   fi
9869   if test x${SDL_CONFIG} != xno
9870   then
9871     PLUGINS="${PLUGINS} sdl"
9872     sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
9873     sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
9874     CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
9875
9876 for ac_header in ${SDL_HEADER}
9877 do
9878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9879 echo "$as_me:9879: checking for $ac_header" >&5
9880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9882   echo $ECHO_N "(cached) $ECHO_C" >&6
9883 else
9884   cat >conftest.$ac_ext <<_ACEOF
9885 #line 9885 "configure"
9886 #include "confdefs.h"
9887 #include <$ac_header>
9888 _ACEOF
9889 if { (eval echo "$as_me:9889: \"$ac_cpp conftest.$ac_ext\"") >&5
9890   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9891   ac_status=$?
9892   egrep -v '^ *\+' conftest.er1 >conftest.err
9893   rm -f conftest.er1
9894   cat conftest.err >&5
9895   echo "$as_me:9895: \$? = $ac_status" >&5
9896   (exit $ac_status); } >/dev/null; then
9897   if test -s conftest.err; then
9898     ac_cpp_err=$ac_c_preproc_warn_flag
9899   else
9900     ac_cpp_err=
9901   fi
9902 else
9903   ac_cpp_err=yes
9904 fi
9905 if test -z "$ac_cpp_err"; then
9906   eval "$as_ac_Header=yes"
9907 else
9908   echo "$as_me: failed program was:" >&5
9909   cat conftest.$ac_ext >&5
9910   eval "$as_ac_Header=no"
9911 fi
9912 rm -f conftest.err conftest.$ac_ext
9913 fi
9914 echo "$as_me:9914: result: `eval echo '${'$as_ac_Header'}'`" >&5
9915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9917   cat >>confdefs.h <<EOF
9918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9919 EOF
9920
9921 cat >>confdefs.h <<EOF
9922 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
9923 EOF
9924
9925 else
9926    { { echo "$as_me:9926: error: The development package for SDL is not installed.
9927 Please install it and try again. Alternatively you can also configure with
9928 --disable-sdl." >&5
9929 echo "$as_me: error: The development package for SDL is not installed.
9930 Please install it and try again. Alternatively you can also configure with
9931 --disable-sdl." >&2;}
9932    { (exit 1); exit 1; }; }
9933
9934 fi
9935 done
9936
9937     CPPFLAGS="$save_CPPFLAGS"
9938     if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
9939     then
9940       { { echo "$as_me:9940: error: The development package for SDL is not installed.
9941 Please install it and try again. Alternatively you can also configure with
9942 --disable-sdl." >&5
9943 echo "$as_me: error: The development package for SDL is not installed.
9944 Please install it and try again. Alternatively you can also configure with
9945 --disable-sdl." >&2;}
9946    { (exit 1); exit 1; }; }
9947     fi
9948   elif test "x$enable_sdl" =  "xyes"
9949   then
9950     { { echo "$as_me:9950: error: I couldn't find the SDL package. You can download libSDL
9951 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
9952     " >&5
9953 echo "$as_me: error: I couldn't find the SDL package. You can download libSDL
9954 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
9955     " >&2;}
9956    { (exit 1); exit 1; }; }
9957   fi
9958 fi
9959
9960 # Check whether --enable-qte or --disable-qte was given.
9961 if test "${enable_qte+set}" = set; then
9962   enableval="$enable_qte"
9963
9964 fi;
9965 if test "x${enable_qte}" != "xno"
9966 then
9967
9968 # Check whether --with-qte or --without-qte was given.
9969 if test "${with_qte+set}" = set; then
9970   withval="$with_qte"
9971
9972 fi;
9973   if test "x${with_qte}" = "x"
9974   then
9975     test_LDFLAGS="-L${QTDIR}/lib"
9976     test_CFLAGS="-I${QTDIR}/include"
9977   else
9978     test_LDFLAGS="-L${with_qte}/lib"
9979     test_CFLAGS="-I${with_qte}/include"
9980   fi
9981
9982   CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
9983
9984 for ac_header in qt.h
9985 do
9986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9987 echo "$as_me:9987: checking for $ac_header" >&5
9988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9990   echo $ECHO_N "(cached) $ECHO_C" >&6
9991 else
9992   cat >conftest.$ac_ext <<_ACEOF
9993 #line 9993 "configure"
9994 #include "confdefs.h"
9995 #include <$ac_header>
9996 _ACEOF
9997 if { (eval echo "$as_me:9997: \"$ac_cpp conftest.$ac_ext\"") >&5
9998   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9999   ac_status=$?
10000   egrep -v '^ *\+' conftest.er1 >conftest.err
10001   rm -f conftest.er1
10002   cat conftest.err >&5
10003   echo "$as_me:10003: \$? = $ac_status" >&5
10004   (exit $ac_status); } >/dev/null; then
10005   if test -s conftest.err; then
10006     ac_cpp_err=$ac_c_preproc_warn_flag
10007   else
10008     ac_cpp_err=
10009   fi
10010 else
10011   ac_cpp_err=yes
10012 fi
10013 if test -z "$ac_cpp_err"; then
10014   eval "$as_ac_Header=yes"
10015 else
10016   echo "$as_me: failed program was:" >&5
10017   cat conftest.$ac_ext >&5
10018   eval "$as_ac_Header=no"
10019 fi
10020 rm -f conftest.err conftest.$ac_ext
10021 fi
10022 echo "$as_me:10022: result: `eval echo '${'$as_ac_Header'}'`" >&5
10023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10025   cat >>confdefs.h <<EOF
10026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10027 EOF
10028
10029     qte_CFLAGS="${qte_CFLAGS} ${test_CFLAGS} -DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti"
10030     qte_LDFLAGS="${qte_LDFLAGS} ${test_LDFLAGS} -lqpe -lqte"
10031     if test "x${with_qte}" = "x"
10032     then
10033       PLUGINS="${PLUGINS} qte"
10034     else
10035       BUILTINS="${BUILTINS} qte"
10036     fi
10037
10038 fi
10039 done
10040
10041   CPPFLAGS="${save_CPPFLAGS}"
10042 fi
10043
10044 # Check whether --enable-directx or --disable-directx was given.
10045 if test "${enable_directx+set}" = set; then
10046   enableval="$enable_directx"
10047
10048 fi;
10049 if test "x$enable_directx" != "xno"
10050 then
10051   if test x$SYS = xmingw32
10052   then
10053
10054 # Check whether --with-directx or --without-directx was given.
10055 if test "${with_directx+set}" = set; then
10056   withval="$with_directx"
10057
10058 fi;
10059     if test "x$with_directx" = "x"
10060     then
10061
10062 for ac_header in ddraw.h
10063 do
10064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10065 echo "$as_me:10065: checking for $ac_header" >&5
10066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10068   echo $ECHO_N "(cached) $ECHO_C" >&6
10069 else
10070   cat >conftest.$ac_ext <<_ACEOF
10071 #line 10071 "configure"
10072 #include "confdefs.h"
10073 #include <$ac_header>
10074 _ACEOF
10075 if { (eval echo "$as_me:10075: \"$ac_cpp conftest.$ac_ext\"") >&5
10076   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10077   ac_status=$?
10078   egrep -v '^ *\+' conftest.er1 >conftest.err
10079   rm -f conftest.er1
10080   cat conftest.err >&5
10081   echo "$as_me:10081: \$? = $ac_status" >&5
10082   (exit $ac_status); } >/dev/null; then
10083   if test -s conftest.err; then
10084     ac_cpp_err=$ac_c_preproc_warn_flag
10085   else
10086     ac_cpp_err=
10087   fi
10088 else
10089   ac_cpp_err=yes
10090 fi
10091 if test -z "$ac_cpp_err"; then
10092   eval "$as_ac_Header=yes"
10093 else
10094   echo "$as_me: failed program was:" >&5
10095   cat conftest.$ac_ext >&5
10096   eval "$as_ac_Header=no"
10097 fi
10098 rm -f conftest.err conftest.$ac_ext
10099 fi
10100 echo "$as_me:10100: result: `eval echo '${'$as_ac_Header'}'`" >&5
10101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10103   cat >>confdefs.h <<EOF
10104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10105 EOF
10106   PLUGINS="${PLUGINS} directx"
10107         directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
10108 fi
10109 done
10110
10111     else
10112       echo "$as_me:10112: checking for directX headers in ${with_directx}" >&5
10113 echo $ECHO_N "checking for directX headers in ${with_directx}... $ECHO_C" >&6
10114       if test -f ${with_directx}/ddraw.h
10115       then
10116         PLUGINS="${PLUGINS} directx"
10117         directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
10118         directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
10119         echo "$as_me:10119: result: yes" >&5
10120 echo "${ECHO_T}yes" >&6
10121       else
10122         echo "$as_me:10122: result: no" >&5
10123 echo "${ECHO_T}no" >&6
10124         { { echo "$as_me:10124: error: Cannot find ${with_directx}/ddraw.h!" >&5
10125 echo "$as_me: error: Cannot find ${with_directx}/ddraw.h!" >&2;}
10126    { (exit 1); exit 1; }; }
10127       fi
10128     fi
10129   fi
10130 fi
10131
10132 # Check whether --enable-fb or --disable-fb was given.
10133 if test "${enable_fb+set}" = set; then
10134   enableval="$enable_fb"
10135
10136 fi;
10137     if test x$enable_fb != xno
10138     then
10139
10140 for ac_header in linux/fb.h
10141 do
10142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10143 echo "$as_me:10143: checking for $ac_header" >&5
10144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10146   echo $ECHO_N "(cached) $ECHO_C" >&6
10147 else
10148   cat >conftest.$ac_ext <<_ACEOF
10149 #line 10149 "configure"
10150 #include "confdefs.h"
10151 #include <$ac_header>
10152 _ACEOF
10153 if { (eval echo "$as_me:10153: \"$ac_cpp conftest.$ac_ext\"") >&5
10154   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10155   ac_status=$?
10156   egrep -v '^ *\+' conftest.er1 >conftest.err
10157   rm -f conftest.er1
10158   cat conftest.err >&5
10159   echo "$as_me:10159: \$? = $ac_status" >&5
10160   (exit $ac_status); } >/dev/null; then
10161   if test -s conftest.err; then
10162     ac_cpp_err=$ac_c_preproc_warn_flag
10163   else
10164     ac_cpp_err=
10165   fi
10166 else
10167   ac_cpp_err=yes
10168 fi
10169 if test -z "$ac_cpp_err"; then
10170   eval "$as_ac_Header=yes"
10171 else
10172   echo "$as_me: failed program was:" >&5
10173   cat conftest.$ac_ext >&5
10174   eval "$as_ac_Header=no"
10175 fi
10176 rm -f conftest.err conftest.$ac_ext
10177 fi
10178 echo "$as_me:10178: result: `eval echo '${'$as_ac_Header'}'`" >&5
10179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10181   cat >>confdefs.h <<EOF
10182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10183 EOF
10184
10185         PLUGINS="${PLUGINS} fb"
10186
10187 fi
10188 done
10189
10190     fi
10191
10192 # Check whether --enable-mga or --disable-mga was given.
10193 if test "${enable_mga+set}" = set; then
10194   enableval="$enable_mga"
10195    if test x$enable_mga = xyes
10196     then
10197       PLUGINS="${PLUGINS} mga xmga"
10198     fi
10199 fi;
10200
10201 # Check whether --enable-ggi or --disable-ggi was given.
10202 if test "${enable_ggi+set}" = set; then
10203   enableval="$enable_ggi"
10204
10205 fi;
10206 if test x$enable_ggi = xyes
10207 then
10208   PLUGINS="${PLUGINS} ggi"
10209   ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
10210
10211 # Check whether --with-ggi or --without-ggi was given.
10212 if test "${with_ggi+set}" = set; then
10213   withval="$with_ggi"
10214    if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
10215       then
10216         CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
10217         ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
10218       fi
10219 fi;
10220 fi
10221
10222 # Check whether --enable-glide or --disable-glide was given.
10223 if test "${enable_glide+set}" = set; then
10224   enableval="$enable_glide"
10225
10226 fi;
10227 if test x$enable_glide = xyes
10228 then
10229   PLUGINS="${PLUGINS} glide"
10230   glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
10231   glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
10232
10233 # Check whether --with-glide or --without-glide was given.
10234 if test "${with_glide+set}" = set; then
10235   withval="$with_glide"
10236    if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
10237       then
10238         glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
10239         glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
10240       fi
10241 fi;
10242 fi
10243
10244 # Check whether --enable-aa or --disable-aa was given.
10245 if test "${enable_aa+set}" = set; then
10246   enableval="$enable_aa"
10247
10248 fi;
10249 if test x$enable_aa = xyes
10250 then
10251   echo "$as_me:10251: checking for aalib.h" >&5
10252 echo $ECHO_N "checking for aalib.h... $ECHO_C" >&6
10253 if test "${ac_cv_header_aalib_h+set}" = set; then
10254   echo $ECHO_N "(cached) $ECHO_C" >&6
10255 else
10256   cat >conftest.$ac_ext <<_ACEOF
10257 #line 10257 "configure"
10258 #include "confdefs.h"
10259 #include <aalib.h>
10260 _ACEOF
10261 if { (eval echo "$as_me:10261: \"$ac_cpp conftest.$ac_ext\"") >&5
10262   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10263   ac_status=$?
10264   egrep -v '^ *\+' conftest.er1 >conftest.err
10265   rm -f conftest.er1
10266   cat conftest.err >&5
10267   echo "$as_me:10267: \$? = $ac_status" >&5
10268   (exit $ac_status); } >/dev/null; then
10269   if test -s conftest.err; then
10270     ac_cpp_err=$ac_c_preproc_warn_flag
10271   else
10272     ac_cpp_err=
10273   fi
10274 else
10275   ac_cpp_err=yes
10276 fi
10277 if test -z "$ac_cpp_err"; then
10278   ac_cv_header_aalib_h=yes
10279 else
10280   echo "$as_me: failed program was:" >&5
10281   cat conftest.$ac_ext >&5
10282   ac_cv_header_aalib_h=no
10283 fi
10284 rm -f conftest.err conftest.$ac_ext
10285 fi
10286 echo "$as_me:10286: result: $ac_cv_header_aalib_h" >&5
10287 echo "${ECHO_T}$ac_cv_header_aalib_h" >&6
10288 if test $ac_cv_header_aalib_h = yes; then
10289   have_aa="true"
10290 else
10291   have_aa="false"
10292 fi
10293
10294   if test x$have_aa = xtrue
10295   then
10296     PLUGINS="${PLUGINS} aa"
10297     aa_LDFLAGS="${aa_LDFLAGS} -laa"
10298   fi
10299 fi
10300
10301 # Check whether --with- or --without- was given.
10302 if test "${with_+set}" = set; then
10303   withval="$with_"
10304
10305 fi;
10306
10307 # Check whether --enable-dsp or --disable-dsp was given.
10308 if test "${enable_dsp+set}" = set; then
10309   enableval="$enable_dsp"
10310
10311 fi;
10312
10313 if test x$enable_dsp != xno &&
10314   (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
10315 then
10316
10317 for ac_header in soundcard.h sys/soundcard.h machine/soundcard.h
10318 do
10319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10320 echo "$as_me:10320: checking for $ac_header" >&5
10321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10323   echo $ECHO_N "(cached) $ECHO_C" >&6
10324 else
10325   cat >conftest.$ac_ext <<_ACEOF
10326 #line 10326 "configure"
10327 #include "confdefs.h"
10328 #include <$ac_header>
10329 _ACEOF
10330 if { (eval echo "$as_me:10330: \"$ac_cpp conftest.$ac_ext\"") >&5
10331   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10332   ac_status=$?
10333   egrep -v '^ *\+' conftest.er1 >conftest.err
10334   rm -f conftest.er1
10335   cat conftest.err >&5
10336   echo "$as_me:10336: \$? = $ac_status" >&5
10337   (exit $ac_status); } >/dev/null; then
10338   if test -s conftest.err; then
10339     ac_cpp_err=$ac_c_preproc_warn_flag
10340   else
10341     ac_cpp_err=
10342   fi
10343 else
10344   ac_cpp_err=yes
10345 fi
10346 if test -z "$ac_cpp_err"; then
10347   eval "$as_ac_Header=yes"
10348 else
10349   echo "$as_me: failed program was:" >&5
10350   cat conftest.$ac_ext >&5
10351   eval "$as_ac_Header=no"
10352 fi
10353 rm -f conftest.err conftest.$ac_ext
10354 fi
10355 echo "$as_me:10355: result: `eval echo '${'$as_ac_Header'}'`" >&5
10356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10358   cat >>confdefs.h <<EOF
10359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10360 EOF
10361
10362     PLUGINS="${PLUGINS} dsp"
10363     echo "$as_me:10363: checking for main in -lossaudio" >&5
10364 echo $ECHO_N "checking for main in -lossaudio... $ECHO_C" >&6
10365 if test "${ac_cv_lib_ossaudio_main+set}" = set; then
10366   echo $ECHO_N "(cached) $ECHO_C" >&6
10367 else
10368   ac_check_lib_save_LIBS=$LIBS
10369 LIBS="-lossaudio  $LIBS"
10370 cat >conftest.$ac_ext <<_ACEOF
10371 #line 10371 "configure"
10372 #include "confdefs.h"
10373
10374 int
10375 main ()
10376 {
10377 main ();
10378   ;
10379   return 0;
10380 }
10381 _ACEOF
10382 rm -f conftest.$ac_objext conftest$ac_exeext
10383 if { (eval echo "$as_me:10383: \"$ac_link\"") >&5
10384   (eval $ac_link) 2>&5
10385   ac_status=$?
10386   echo "$as_me:10386: \$? = $ac_status" >&5
10387   (exit $ac_status); } &&
10388          { ac_try='test -s conftest$ac_exeext'
10389   { (eval echo "$as_me:10389: \"$ac_try\"") >&5
10390   (eval $ac_try) 2>&5
10391   ac_status=$?
10392   echo "$as_me:10392: \$? = $ac_status" >&5
10393   (exit $ac_status); }; }; then
10394   ac_cv_lib_ossaudio_main=yes
10395 else
10396   echo "$as_me: failed program was:" >&5
10397 cat conftest.$ac_ext >&5
10398 ac_cv_lib_ossaudio_main=no
10399 fi
10400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10401 LIBS=$ac_check_lib_save_LIBS
10402 fi
10403 echo "$as_me:10403: result: $ac_cv_lib_ossaudio_main" >&5
10404 echo "${ECHO_T}$ac_cv_lib_ossaudio_main" >&6
10405 if test $ac_cv_lib_ossaudio_main = yes; then
10406   dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
10407 fi
10408
10409 fi
10410 done
10411
10412 fi
10413
10414 # Check whether --enable-esd or --disable-esd was given.
10415 if test "${enable_esd+set}" = set; then
10416   enableval="$enable_esd"
10417   if test x$enable_esd = xyes
10418    then
10419      # Extract the first word of "esd-config", so it can be a program name with args.
10420 set dummy esd-config; ac_word=$2
10421 echo "$as_me:10421: checking for $ac_word" >&5
10422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10423 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
10424   echo $ECHO_N "(cached) $ECHO_C" >&6
10425 else
10426   case $ESD_CONFIG in
10427   [\\/]* | ?:[\\/]*)
10428   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
10429   ;;
10430   *)
10431   ac_save_IFS=$IFS; IFS=$ac_path_separator
10432 ac_dummy="$PATH"
10433 for ac_dir in $ac_dummy; do
10434   IFS=$ac_save_IFS
10435   test -z "$ac_dir" && ac_dir=.
10436   if $as_executable_p "$ac_dir/$ac_word"; then
10437    ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
10438    echo "$as_me:10438: found $ac_dir/$ac_word" >&5
10439    break
10440 fi
10441 done
10442
10443   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
10444   ;;
10445 esac
10446 fi
10447 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
10448
10449 if test -n "$ESD_CONFIG"; then
10450   echo "$as_me:10450: result: $ESD_CONFIG" >&5
10451 echo "${ECHO_T}$ESD_CONFIG" >&6
10452 else
10453   echo "$as_me:10453: result: no" >&5
10454 echo "${ECHO_T}no" >&6
10455 fi
10456
10457      if test x${ESD_CONFIG} != xno
10458      then
10459        PLUGINS="${PLUGINS} esd"
10460        esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
10461        esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
10462      fi
10463    fi
10464 fi;
10465
10466 # Check whether --enable-arts or --disable-arts was given.
10467 if test "${enable_arts+set}" = set; then
10468   enableval="$enable_arts"
10469   if test x$enable_arts = xyes
10470    then
10471      # Extract the first word of "artsc-config", so it can be a program name with args.
10472 set dummy artsc-config; ac_word=$2
10473 echo "$as_me:10473: checking for $ac_word" >&5
10474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10475 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
10476   echo $ECHO_N "(cached) $ECHO_C" >&6
10477 else
10478   case $ARTS_CONFIG in
10479   [\\/]* | ?:[\\/]*)
10480   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
10481   ;;
10482   *)
10483   ac_save_IFS=$IFS; IFS=$ac_path_separator
10484 ac_dummy="$PATH"
10485 for ac_dir in $ac_dummy; do
10486   IFS=$ac_save_IFS
10487   test -z "$ac_dir" && ac_dir=.
10488   if $as_executable_p "$ac_dir/$ac_word"; then
10489    ac_cv_path_ARTS_CONFIG="$ac_dir/$ac_word"
10490    echo "$as_me:10490: found $ac_dir/$ac_word" >&5
10491    break
10492 fi
10493 done
10494
10495   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
10496   ;;
10497 esac
10498 fi
10499 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
10500
10501 if test -n "$ARTS_CONFIG"; then
10502   echo "$as_me:10502: result: $ARTS_CONFIG" >&5
10503 echo "${ECHO_T}$ARTS_CONFIG" >&6
10504 else
10505   echo "$as_me:10505: result: no" >&5
10506 echo "${ECHO_T}no" >&6
10507 fi
10508
10509      if test x${ARTS_CONFIG} != xno
10510      then
10511        PLUGINS="${PLUGINS} arts"
10512        arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
10513        arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
10514      fi
10515    fi
10516 fi;
10517
10518 # Check whether --enable-alsa or --disable-alsa was given.
10519 if test "${enable_alsa+set}" = set; then
10520   enableval="$enable_alsa"
10521   if test x$enable_alsa = xyes
10522    then
10523      echo "$as_me:10523: checking for alsa/asoundlib.h" >&5
10524 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
10525 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
10526   echo $ECHO_N "(cached) $ECHO_C" >&6
10527 else
10528   cat >conftest.$ac_ext <<_ACEOF
10529 #line 10529 "configure"
10530 #include "confdefs.h"
10531 #include <alsa/asoundlib.h>
10532 _ACEOF
10533 if { (eval echo "$as_me:10533: \"$ac_cpp conftest.$ac_ext\"") >&5
10534   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10535   ac_status=$?
10536   egrep -v '^ *\+' conftest.er1 >conftest.err
10537   rm -f conftest.er1
10538   cat conftest.err >&5
10539   echo "$as_me:10539: \$? = $ac_status" >&5
10540   (exit $ac_status); } >/dev/null; then
10541   if test -s conftest.err; then
10542     ac_cpp_err=$ac_c_preproc_warn_flag
10543   else
10544     ac_cpp_err=
10545   fi
10546 else
10547   ac_cpp_err=yes
10548 fi
10549 if test -z "$ac_cpp_err"; then
10550   ac_cv_header_alsa_asoundlib_h=yes
10551 else
10552   echo "$as_me: failed program was:" >&5
10553   cat conftest.$ac_ext >&5
10554   ac_cv_header_alsa_asoundlib_h=no
10555 fi
10556 rm -f conftest.err conftest.$ac_ext
10557 fi
10558 echo "$as_me:10558: result: $ac_cv_header_alsa_asoundlib_h" >&5
10559 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
10560 if test $ac_cv_header_alsa_asoundlib_h = yes; then
10561   echo "$as_me:10561: checking for main in -lasound" >&5
10562 echo $ECHO_N "checking for main in -lasound... $ECHO_C" >&6
10563 if test "${ac_cv_lib_asound_main+set}" = set; then
10564   echo $ECHO_N "(cached) $ECHO_C" >&6
10565 else
10566   ac_check_lib_save_LIBS=$LIBS
10567 LIBS="-lasound  $LIBS"
10568 cat >conftest.$ac_ext <<_ACEOF
10569 #line 10569 "configure"
10570 #include "confdefs.h"
10571
10572 int
10573 main ()
10574 {
10575 main ();
10576   ;
10577   return 0;
10578 }
10579 _ACEOF
10580 rm -f conftest.$ac_objext conftest$ac_exeext
10581 if { (eval echo "$as_me:10581: \"$ac_link\"") >&5
10582   (eval $ac_link) 2>&5
10583   ac_status=$?
10584   echo "$as_me:10584: \$? = $ac_status" >&5
10585   (exit $ac_status); } &&
10586          { ac_try='test -s conftest$ac_exeext'
10587   { (eval echo "$as_me:10587: \"$ac_try\"") >&5
10588   (eval $ac_try) 2>&5
10589   ac_status=$?
10590   echo "$as_me:10590: \$? = $ac_status" >&5
10591   (exit $ac_status); }; }; then
10592   ac_cv_lib_asound_main=yes
10593 else
10594   echo "$as_me: failed program was:" >&5
10595 cat conftest.$ac_ext >&5
10596 ac_cv_lib_asound_main=no
10597 fi
10598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10599 LIBS=$ac_check_lib_save_LIBS
10600 fi
10601 echo "$as_me:10601: result: $ac_cv_lib_asound_main" >&5
10602 echo "${ECHO_T}$ac_cv_lib_asound_main" >&6
10603 if test $ac_cv_lib_asound_main = yes; then
10604   have_alsa="true"
10605 else
10606   have_alsa="false"
10607 fi
10608
10609 else
10610   have_alsa="false"
10611 fi
10612
10613      if test x$have_alsa = xtrue
10614      then
10615        PLUGINS="${PLUGINS} alsa"
10616        alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
10617      fi
10618    fi
10619 fi;
10620
10621 # Check whether --enable-waveout or --disable-waveout was given.
10622 if test "${enable_waveout+set}" = set; then
10623   enableval="$enable_waveout"
10624
10625 fi;
10626 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
10627   then
10628     PLUGINS="${PLUGINS} waveout"
10629     waveout_LDFLAGS="-lwinmm"
10630 fi
10631
10632 # Check whether --with- or --without- was given.
10633 if test "${with_+set}" = set; then
10634   withval="$with_"
10635
10636 fi;
10637
10638 # Check whether --enable-gtk or --disable-gtk was given.
10639 if test "${enable_gtk+set}" = set; then
10640   enableval="$enable_gtk"
10641
10642 fi;
10643 if test x$enable_gtk != xno
10644 then
10645   GTK_PATH=$PATH
10646
10647 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
10648 if test "${with_gtk_config_path+set}" = set; then
10649   withval="$with_gtk_config_path"
10650    if test "x$with_gtk_config_path" != "xno"
10651       then
10652         GTK_PATH="$with_gtk_config_path:$PATH"
10653       fi
10654 fi;
10655   # look for gtk-config
10656   # Extract the first word of "gtk12-config", so it can be a program name with args.
10657 set dummy gtk12-config; ac_word=$2
10658 echo "$as_me:10658: checking for $ac_word" >&5
10659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10660 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
10661   echo $ECHO_N "(cached) $ECHO_C" >&6
10662 else
10663   case $GTK12_CONFIG in
10664   [\\/]* | ?:[\\/]*)
10665   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
10666   ;;
10667   *)
10668   ac_save_IFS=$IFS; IFS=$ac_path_separator
10669 ac_dummy="$GTK_PATH"
10670 for ac_dir in $ac_dummy; do
10671   IFS=$ac_save_IFS
10672   test -z "$ac_dir" && ac_dir=.
10673   if $as_executable_p "$ac_dir/$ac_word"; then
10674    ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
10675    echo "$as_me:10675: found $ac_dir/$ac_word" >&5
10676    break
10677 fi
10678 done
10679
10680   test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
10681   ;;
10682 esac
10683 fi
10684 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
10685
10686 if test -n "$GTK12_CONFIG"; then
10687   echo "$as_me:10687: result: $GTK12_CONFIG" >&5
10688 echo "${ECHO_T}$GTK12_CONFIG" >&6
10689 else
10690   echo "$as_me:10690: result: no" >&5
10691 echo "${ECHO_T}no" >&6
10692 fi
10693
10694   GTK_CONFIG=${GTK12_CONFIG}
10695   if test x${GTK_CONFIG} = xno
10696   then
10697     # Extract the first word of "gtk-config", so it can be a program name with args.
10698 set dummy gtk-config; ac_word=$2
10699 echo "$as_me:10699: checking for $ac_word" >&5
10700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10701 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
10702   echo $ECHO_N "(cached) $ECHO_C" >&6
10703 else
10704   case $GTK_CONFIG in
10705   [\\/]* | ?:[\\/]*)
10706   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10707   ;;
10708   *)
10709   ac_save_IFS=$IFS; IFS=$ac_path_separator
10710 ac_dummy="$GTK_PATH"
10711 for ac_dir in $ac_dummy; do
10712   IFS=$ac_save_IFS
10713   test -z "$ac_dir" && ac_dir=.
10714   if $as_executable_p "$ac_dir/$ac_word"; then
10715    ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10716    echo "$as_me:10716: found $ac_dir/$ac_word" >&5
10717    break
10718 fi
10719 done
10720
10721   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10722   ;;
10723 esac
10724 fi
10725 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
10726
10727 if test -n "$GTK_CONFIG"; then
10728   echo "$as_me:10728: result: $GTK_CONFIG" >&5
10729 echo "${ECHO_T}$GTK_CONFIG" >&6
10730 else
10731   echo "$as_me:10731: result: no" >&5
10732 echo "${ECHO_T}no" >&6
10733 fi
10734
10735   fi
10736   if test x${GTK_CONFIG} != xno
10737   then
10738     if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
10739     then
10740       { { echo "$as_me:10740: 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." >&5
10741 echo "$as_me: 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." >&2;}
10742    { (exit 1); exit 1; }; }
10743     fi
10744     gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
10745     gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
10746     # now look for the gtk.h header
10747     CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
10748     ac_cv_gtk_headers=yes
10749
10750 for ac_header in gtk/gtk.h glib.h gdk/gdk.h
10751 do
10752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10753 echo "$as_me:10753: checking for $ac_header" >&5
10754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10756   echo $ECHO_N "(cached) $ECHO_C" >&6
10757 else
10758   cat >conftest.$ac_ext <<_ACEOF
10759 #line 10759 "configure"
10760 #include "confdefs.h"
10761 #include <$ac_header>
10762 _ACEOF
10763 if { (eval echo "$as_me:10763: \"$ac_cpp conftest.$ac_ext\"") >&5
10764   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10765   ac_status=$?
10766   egrep -v '^ *\+' conftest.er1 >conftest.err
10767   rm -f conftest.er1
10768   cat conftest.err >&5
10769   echo "$as_me:10769: \$? = $ac_status" >&5
10770   (exit $ac_status); } >/dev/null; then
10771   if test -s conftest.err; then
10772     ac_cpp_err=$ac_c_preproc_warn_flag
10773   else
10774     ac_cpp_err=
10775   fi
10776 else
10777   ac_cpp_err=yes
10778 fi
10779 if test -z "$ac_cpp_err"; then
10780   eval "$as_ac_Header=yes"
10781 else
10782   echo "$as_me: failed program was:" >&5
10783   cat conftest.$ac_ext >&5
10784   eval "$as_ac_Header=no"
10785 fi
10786 rm -f conftest.err conftest.$ac_ext
10787 fi
10788 echo "$as_me:10788: result: `eval echo '${'$as_ac_Header'}'`" >&5
10789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10791   cat >>confdefs.h <<EOF
10792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10793 EOF
10794
10795 else
10796
10797       ac_cv_gtk_headers=no
10798       echo "Cannot find gtk development headers."
10799
10800 fi
10801 done
10802
10803     if test "x$ac_cv_gtk_headers" = xyes
10804     then
10805       PLUGINS="${PLUGINS} gtk"
10806       ALIASES="${ALIASES} gvlc"
10807     fi
10808     CPPFLAGS="$save_CPPFLAGS"
10809   fi
10810 fi
10811
10812 # Check whether --enable-familiar or --disable-familiar was given.
10813 if test "${enable_familiar+set}" = set; then
10814   enableval="$enable_familiar"
10815
10816 fi;
10817 if test "x${enable_familiar}" = "xyes"
10818 then
10819   GTK_PATH="${PATH}"
10820
10821 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
10822 if test "${with_gtk_config_path+set}" = set; then
10823   withval="$with_gtk_config_path"
10824    if test "x${with_gtk_config_path}" != "xno"
10825       then
10826         GTK_PATH="${with_gtk_config_path}:${PATH}"
10827       fi
10828 fi;
10829   # look for gtk-config
10830   # Extract the first word of "gtk12-config", so it can be a program name with args.
10831 set dummy gtk12-config; ac_word=$2
10832 echo "$as_me:10832: checking for $ac_word" >&5
10833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10834 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
10835   echo $ECHO_N "(cached) $ECHO_C" >&6
10836 else
10837   case $GTK12_CONFIG in
10838   [\\/]* | ?:[\\/]*)
10839   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
10840   ;;
10841   *)
10842   ac_save_IFS=$IFS; IFS=$ac_path_separator
10843 ac_dummy="${GTK_PATH}"
10844 for ac_dir in $ac_dummy; do
10845   IFS=$ac_save_IFS
10846   test -z "$ac_dir" && ac_dir=.
10847   if $as_executable_p "$ac_dir/$ac_word"; then
10848    ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word"
10849    echo "$as_me:10849: found $ac_dir/$ac_word" >&5
10850    break
10851 fi
10852 done
10853
10854   test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
10855   ;;
10856 esac
10857 fi
10858 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
10859
10860 if test -n "$GTK12_CONFIG"; then
10861   echo "$as_me:10861: result: $GTK12_CONFIG" >&5
10862 echo "${ECHO_T}$GTK12_CONFIG" >&6
10863 else
10864   echo "$as_me:10864: result: no" >&5
10865 echo "${ECHO_T}no" >&6
10866 fi
10867
10868   GTK_CONFIG=${GTK12_CONFIG}
10869   if test "x${GTK_CONFIG}" = "xno"
10870   then
10871     # Extract the first word of "gtk-config", so it can be a program name with args.
10872 set dummy gtk-config; ac_word=$2
10873 echo "$as_me:10873: checking for $ac_word" >&5
10874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10875 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
10876   echo $ECHO_N "(cached) $ECHO_C" >&6
10877 else
10878   case $GTK_CONFIG in
10879   [\\/]* | ?:[\\/]*)
10880   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10881   ;;
10882   *)
10883   ac_save_IFS=$IFS; IFS=$ac_path_separator
10884 ac_dummy="${GTK_PATH}"
10885 for ac_dir in $ac_dummy; do
10886   IFS=$ac_save_IFS
10887   test -z "$ac_dir" && ac_dir=.
10888   if $as_executable_p "$ac_dir/$ac_word"; then
10889    ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10890    echo "$as_me:10890: found $ac_dir/$ac_word" >&5
10891    break
10892 fi
10893 done
10894
10895   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10896   ;;
10897 esac
10898 fi
10899 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
10900
10901 if test -n "$GTK_CONFIG"; then
10902   echo "$as_me:10902: result: $GTK_CONFIG" >&5
10903 echo "${ECHO_T}$GTK_CONFIG" >&6
10904 else
10905   echo "$as_me:10905: result: no" >&5
10906 echo "${ECHO_T}no" >&6
10907 fi
10908
10909   fi
10910   if test "x${GTK_CONFIG}" != "xno"
10911   then
10912     if expr 1.2.0 \> `${GTK_CONFIG} --version` >/dev/null
10913     then
10914       { { echo "$as_me:10914: 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-familiar." >&5
10915 echo "$as_me: 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-familiar." >&2;}
10916    { (exit 1); exit 1; }; }
10917     fi
10918     familiar_CFLAGS="${familiar_CFLAGS} `${GTK_CONFIG} --cflags gtk gthread`"
10919     familiar_LDFLAGS="${familiar_LDFLAGS} `${GTK_CONFIG} --libs gtk gthread | sed 's,-rdynamic,,'`"
10920     # now look for the gtk.h header
10921     CPPFLAGS="${save_CPPFLAGS} ${familiar_CFLAGS}"
10922     ac_cv_gtk_headers=yes
10923
10924 for ac_header in gtk/gtk.h glib.h gdk/gdk.h
10925 do
10926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10927 echo "$as_me:10927: checking for $ac_header" >&5
10928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10930   echo $ECHO_N "(cached) $ECHO_C" >&6
10931 else
10932   cat >conftest.$ac_ext <<_ACEOF
10933 #line 10933 "configure"
10934 #include "confdefs.h"
10935 #include <$ac_header>
10936 _ACEOF
10937 if { (eval echo "$as_me:10937: \"$ac_cpp conftest.$ac_ext\"") >&5
10938   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10939   ac_status=$?
10940   egrep -v '^ *\+' conftest.er1 >conftest.err
10941   rm -f conftest.er1
10942   cat conftest.err >&5
10943   echo "$as_me:10943: \$? = $ac_status" >&5
10944   (exit $ac_status); } >/dev/null; then
10945   if test -s conftest.err; then
10946     ac_cpp_err=$ac_c_preproc_warn_flag
10947   else
10948     ac_cpp_err=
10949   fi
10950 else
10951   ac_cpp_err=yes
10952 fi
10953 if test -z "$ac_cpp_err"; then
10954   eval "$as_ac_Header=yes"
10955 else
10956   echo "$as_me: failed program was:" >&5
10957   cat conftest.$ac_ext >&5
10958   eval "$as_ac_Header=no"
10959 fi
10960 rm -f conftest.err conftest.$ac_ext
10961 fi
10962 echo "$as_me:10962: result: `eval echo '${'$as_ac_Header'}'`" >&5
10963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10965   cat >>confdefs.h <<EOF
10966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10967 EOF
10968
10969 else
10970
10971       ac_cv_gtk_headers=no
10972       echo "Cannot find gtk development headers."
10973
10974 fi
10975 done
10976
10977     if test "x${ac_cv_gtk_headers}" = "xyes"
10978     then
10979       PLUGINS="${PLUGINS} familiar"
10980       NEED_GTK_MAIN=yes
10981     fi
10982     CPPFLAGS="${save_CPPFLAGS}"
10983   fi
10984 fi
10985
10986 # Check whether --enable-gnome or --disable-gnome was given.
10987 if test "${enable_gnome+set}" = set; then
10988   enableval="$enable_gnome"
10989   if test x$enable_gnome = xyes; then
10990     # look for gnome-config
10991     # Extract the first word of "gnome-config", so it can be a program name with args.
10992 set dummy gnome-config; ac_word=$2
10993 echo "$as_me:10993: checking for $ac_word" >&5
10994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10995 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
10996   echo $ECHO_N "(cached) $ECHO_C" >&6
10997 else
10998   case $GNOME_CONFIG in
10999   [\\/]* | ?:[\\/]*)
11000   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
11001   ;;
11002   *)
11003   ac_save_IFS=$IFS; IFS=$ac_path_separator
11004 ac_dummy="$PATH"
11005 for ac_dir in $ac_dummy; do
11006   IFS=$ac_save_IFS
11007   test -z "$ac_dir" && ac_dir=.
11008   if $as_executable_p "$ac_dir/$ac_word"; then
11009    ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
11010    echo "$as_me:11010: found $ac_dir/$ac_word" >&5
11011    break
11012 fi
11013 done
11014
11015   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
11016   ;;
11017 esac
11018 fi
11019 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
11020
11021 if test -n "$GNOME_CONFIG"; then
11022   echo "$as_me:11022: result: $GNOME_CONFIG" >&5
11023 echo "${ECHO_T}$GNOME_CONFIG" >&6
11024 else
11025   echo "$as_me:11025: result: no" >&5
11026 echo "${ECHO_T}no" >&6
11027 fi
11028
11029     if test -x ${GNOME_CONFIG}
11030     then
11031        gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
11032        gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
11033     fi
11034     # now look for the gnome.h header
11035     CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
11036
11037 for ac_header in gnome.h
11038 do
11039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11040 echo "$as_me:11040: checking for $ac_header" >&5
11041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11043   echo $ECHO_N "(cached) $ECHO_C" >&6
11044 else
11045   cat >conftest.$ac_ext <<_ACEOF
11046 #line 11046 "configure"
11047 #include "confdefs.h"
11048 #include <$ac_header>
11049 _ACEOF
11050 if { (eval echo "$as_me:11050: \"$ac_cpp conftest.$ac_ext\"") >&5
11051   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11052   ac_status=$?
11053   egrep -v '^ *\+' conftest.er1 >conftest.err
11054   rm -f conftest.er1
11055   cat conftest.err >&5
11056   echo "$as_me:11056: \$? = $ac_status" >&5
11057   (exit $ac_status); } >/dev/null; then
11058   if test -s conftest.err; then
11059     ac_cpp_err=$ac_c_preproc_warn_flag
11060   else
11061     ac_cpp_err=
11062   fi
11063 else
11064   ac_cpp_err=yes
11065 fi
11066 if test -z "$ac_cpp_err"; then
11067   eval "$as_ac_Header=yes"
11068 else
11069   echo "$as_me: failed program was:" >&5
11070   cat conftest.$ac_ext >&5
11071   eval "$as_ac_Header=no"
11072 fi
11073 rm -f conftest.err conftest.$ac_ext
11074 fi
11075 echo "$as_me:11075: result: `eval echo '${'$as_ac_Header'}'`" >&5
11076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11078   cat >>confdefs.h <<EOF
11079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11080 EOF
11081
11082       PLUGINS="${PLUGINS} gnome"
11083       ALIASES="${ALIASES} gnome-vlc"
11084
11085 else
11086
11087       { { echo "$as_me:11087: error: Can't find gnome headers. Please install the gnome
11088 developement tools or remove the --enable-gnome option" >&5
11089 echo "$as_me: error: Can't find gnome headers. Please install the gnome
11090 developement tools or remove the --enable-gnome option" >&2;}
11091    { (exit 1); exit 1; }; }
11092
11093 fi
11094 done
11095
11096     CPPFLAGS="$save_CPPFLAGS"
11097   fi
11098 fi;
11099
11100 # Check whether --enable-qt or --disable-qt was given.
11101 if test "${enable_qt+set}" = set; then
11102   enableval="$enable_qt"
11103   if test x$enable_qt = xyes; then
11104      PLUGINS="${PLUGINS} qt"
11105      ALIASES="${ALIASES} qvlc"
11106      qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
11107      qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
11108      if test -x ${QTDIR}/bin/moc
11109      then
11110        MOC=${QTDIR}/bin/moc
11111      else
11112        MOC=moc
11113      fi
11114    fi
11115 fi;
11116
11117 # Check whether --enable-kde or --disable-kde was given.
11118 if test "${enable_kde+set}" = set; then
11119   enableval="$enable_kde"
11120   if test x$enable_kde = xyes; then
11121      PLUGINS="${PLUGINS} kde"
11122      ALIASES="${ALIASES} kvlc"
11123      kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
11124      kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
11125      kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
11126      if test -x ${QTDIR}/bin/moc
11127      then
11128        MOC=${QTDIR}/bin/moc
11129      else
11130        MOC=moc
11131      fi
11132    fi
11133 fi;
11134
11135 # Check whether --enable-opie or --disable-opie was given.
11136 if test "${enable_opie+set}" = set; then
11137   enableval="$enable_opie"
11138   if test "x${enable_opie}" = "xyes"; then
11139
11140 # Check whether --with-qte or --without-qte was given.
11141 if test "${with_qte+set}" = set; then
11142   withval="$with_qte"
11143
11144 fi;
11145      if test "x${with_qte}" = "x"
11146      then
11147        test_LDFLAGS="-L${QTDIR}/lib"
11148        test_CFLAGS="-I${QTDIR}/include"
11149      else
11150        test_LDFLAGS="-L${with_qte}/lib"
11151        test_CFLAGS="-I${with_qte}/include"
11152      fi
11153
11154      PLUGINS="${PLUGINS} opie"
11155      opie_LDFLAGS="${opie_LDFLAGS} ${test_LDFLAGS} -lqpe -lqte"
11156      opie_CFLAGS="${opie_CFLAGS} ${test_CFLAGS}-DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti"
11157      if test -x ${QTDIR}/bin/moc
11158      then
11159        MOC=${QTDIR}/bin/moc
11160      else
11161        MOC=moc
11162      fi
11163    fi
11164 fi;
11165
11166 # Check whether --enable-macosx or --disable-macosx was given.
11167 if test "${enable_macosx+set}" = set; then
11168   enableval="$enable_macosx"
11169   if test x$enable_macosx = xyes
11170    then
11171      BUILTINS="${BUILTINS} macosx"
11172      macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
11173    fi
11174 else
11175
11176 for ac_header in Cocoa/Cocoa.h
11177 do
11178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11179 echo "$as_me:11179: checking for $ac_header" >&5
11180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11182   echo $ECHO_N "(cached) $ECHO_C" >&6
11183 else
11184   cat >conftest.$ac_ext <<_ACEOF
11185 #line 11185 "configure"
11186 #include "confdefs.h"
11187 #include <$ac_header>
11188 _ACEOF
11189 if { (eval echo "$as_me:11189: \"$ac_cpp conftest.$ac_ext\"") >&5
11190   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11191   ac_status=$?
11192   egrep -v '^ *\+' conftest.er1 >conftest.err
11193   rm -f conftest.er1
11194   cat conftest.err >&5
11195   echo "$as_me:11195: \$? = $ac_status" >&5
11196   (exit $ac_status); } >/dev/null; then
11197   if test -s conftest.err; then
11198     ac_cpp_err=$ac_c_preproc_warn_flag
11199   else
11200     ac_cpp_err=
11201   fi
11202 else
11203   ac_cpp_err=yes
11204 fi
11205 if test -z "$ac_cpp_err"; then
11206   eval "$as_ac_Header=yes"
11207 else
11208   echo "$as_me: failed program was:" >&5
11209   cat conftest.$ac_ext >&5
11210   eval "$as_ac_Header=no"
11211 fi
11212 rm -f conftest.err conftest.$ac_ext
11213 fi
11214 echo "$as_me:11214: result: `eval echo '${'$as_ac_Header'}'`" >&5
11215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11217   cat >>confdefs.h <<EOF
11218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11219 EOF
11220  BUILTINS="${BUILTINS} macosx"
11221      macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
11222
11223 fi
11224 done
11225
11226 fi;
11227
11228 # Check whether --enable-qnx or --disable-qnx was given.
11229 if test "${enable_qnx+set}" = set; then
11230   enableval="$enable_qnx"
11231
11232 fi;
11233     if test x$enable_qnx != xno
11234     then
11235
11236 for ac_header in Ph.h
11237 do
11238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11239 echo "$as_me:11239: checking for $ac_header" >&5
11240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11242   echo $ECHO_N "(cached) $ECHO_C" >&6
11243 else
11244   cat >conftest.$ac_ext <<_ACEOF
11245 #line 11245 "configure"
11246 #include "confdefs.h"
11247 #include <$ac_header>
11248 _ACEOF
11249 if { (eval echo "$as_me:11249: \"$ac_cpp conftest.$ac_ext\"") >&5
11250   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11251   ac_status=$?
11252   egrep -v '^ *\+' conftest.er1 >conftest.err
11253   rm -f conftest.er1
11254   cat conftest.err >&5
11255   echo "$as_me:11255: \$? = $ac_status" >&5
11256   (exit $ac_status); } >/dev/null; then
11257   if test -s conftest.err; then
11258     ac_cpp_err=$ac_c_preproc_warn_flag
11259   else
11260     ac_cpp_err=
11261   fi
11262 else
11263   ac_cpp_err=yes
11264 fi
11265 if test -z "$ac_cpp_err"; then
11266   eval "$as_ac_Header=yes"
11267 else
11268   echo "$as_me: failed program was:" >&5
11269   cat conftest.$ac_ext >&5
11270   eval "$as_ac_Header=no"
11271 fi
11272 rm -f conftest.err conftest.$ac_ext
11273 fi
11274 echo "$as_me:11274: result: `eval echo '${'$as_ac_Header'}'`" >&5
11275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11277   cat >>confdefs.h <<EOF
11278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11279 EOF
11280
11281         PLUGINS="${PLUGINS} qnx"
11282         qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
11283
11284 fi
11285 done
11286
11287     fi
11288
11289 # Check whether --enable-intfwin or --disable-intfwin was given.
11290 if test "${enable_intfwin+set}" = set; then
11291   enableval="$enable_intfwin"
11292    if test "x$enable_intfwin" != "xno"
11293   then
11294
11295 # Check whether --with-bcbuilder or --without-bcbuilder was given.
11296 if test "${with_bcbuilder+set}" = set; then
11297   withval="$with_bcbuilder"
11298
11299 fi;
11300     if test "x$with_bcbuilder" != "x"
11301     then
11302       BCBUILDER="$with_bcbuilder"
11303     fi
11304     PLUGINS="${PLUGINS} intfwin"
11305   fi
11306 fi;
11307
11308 # Check whether --enable-ncurses or --disable-ncurses was given.
11309 if test "${enable_ncurses+set}" = set; then
11310   enableval="$enable_ncurses"
11311   if test x$enable_ncurses = xyes; then
11312      PLUGINS="${PLUGINS} ncurses"
11313      ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
11314    fi
11315 fi;
11316
11317 # Check whether --enable-lirc or --disable-lirc was given.
11318 if test "${enable_lirc+set}" = set; then
11319   enableval="$enable_lirc"
11320
11321 fi;
11322 if test x$enable_lirc = xyes
11323 then
11324   echo "$as_me:11324: checking for lirc/lirc_client.h" >&5
11325 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6
11326 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
11327   echo $ECHO_N "(cached) $ECHO_C" >&6
11328 else
11329   cat >conftest.$ac_ext <<_ACEOF
11330 #line 11330 "configure"
11331 #include "confdefs.h"
11332 #include <lirc/lirc_client.h>
11333 _ACEOF
11334 if { (eval echo "$as_me:11334: \"$ac_cpp conftest.$ac_ext\"") >&5
11335   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11336   ac_status=$?
11337   egrep -v '^ *\+' conftest.er1 >conftest.err
11338   rm -f conftest.er1
11339   cat conftest.err >&5
11340   echo "$as_me:11340: \$? = $ac_status" >&5
11341   (exit $ac_status); } >/dev/null; then
11342   if test -s conftest.err; then
11343     ac_cpp_err=$ac_c_preproc_warn_flag
11344   else
11345     ac_cpp_err=
11346   fi
11347 else
11348   ac_cpp_err=yes
11349 fi
11350 if test -z "$ac_cpp_err"; then
11351   ac_cv_header_lirc_lirc_client_h=yes
11352 else
11353   echo "$as_me: failed program was:" >&5
11354   cat conftest.$ac_ext >&5
11355   ac_cv_header_lirc_lirc_client_h=no
11356 fi
11357 rm -f conftest.err conftest.$ac_ext
11358 fi
11359 echo "$as_me:11359: result: $ac_cv_header_lirc_lirc_client_h" >&5
11360 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6
11361 if test $ac_cv_header_lirc_lirc_client_h = yes; then
11362   echo "$as_me:11362: checking for lirc_init in -llirc_client" >&5
11363 echo $ECHO_N "checking for lirc_init in -llirc_client... $ECHO_C" >&6
11364 if test "${ac_cv_lib_lirc_client_lirc_init+set}" = set; then
11365   echo $ECHO_N "(cached) $ECHO_C" >&6
11366 else
11367   ac_check_lib_save_LIBS=$LIBS
11368 LIBS="-llirc_client  $LIBS"
11369 cat >conftest.$ac_ext <<_ACEOF
11370 #line 11370 "configure"
11371 #include "confdefs.h"
11372
11373 /* Override any gcc2 internal prototype to avoid an error.  */
11374 #ifdef __cplusplus
11375 extern "C"
11376 #endif
11377 /* We use char because int might match the return type of a gcc2
11378    builtin and then its argument prototype would still apply.  */
11379 char lirc_init ();
11380 int
11381 main ()
11382 {
11383 lirc_init ();
11384   ;
11385   return 0;
11386 }
11387 _ACEOF
11388 rm -f conftest.$ac_objext conftest$ac_exeext
11389 if { (eval echo "$as_me:11389: \"$ac_link\"") >&5
11390   (eval $ac_link) 2>&5
11391   ac_status=$?
11392   echo "$as_me:11392: \$? = $ac_status" >&5
11393   (exit $ac_status); } &&
11394          { ac_try='test -s conftest$ac_exeext'
11395   { (eval echo "$as_me:11395: \"$ac_try\"") >&5
11396   (eval $ac_try) 2>&5
11397   ac_status=$?
11398   echo "$as_me:11398: \$? = $ac_status" >&5
11399   (exit $ac_status); }; }; then
11400   ac_cv_lib_lirc_client_lirc_init=yes
11401 else
11402   echo "$as_me: failed program was:" >&5
11403 cat conftest.$ac_ext >&5
11404 ac_cv_lib_lirc_client_lirc_init=no
11405 fi
11406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11407 LIBS=$ac_check_lib_save_LIBS
11408 fi
11409 echo "$as_me:11409: result: $ac_cv_lib_lirc_client_lirc_init" >&5
11410 echo "${ECHO_T}$ac_cv_lib_lirc_client_lirc_init" >&6
11411 if test $ac_cv_lib_lirc_client_lirc_init = yes; then
11412   have_lirc="true"
11413 else
11414   have_lirc="false"
11415 fi
11416
11417 else
11418   have_lirc="false"
11419 fi
11420
11421   if test x$have_lirc = xtrue
11422   then
11423     PLUGINS="${PLUGINS} lirc"
11424     lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
11425   fi
11426 fi
11427
11428 # Check whether --with- or --without- was given.
11429 if test "${with_+set}" = set; then
11430   withval="$with_"
11431
11432 fi;
11433
11434 # Check whether --with-words or --without-words was given.
11435 if test "${with_words+set}" = set; then
11436   withval="$with_words"
11437
11438 fi;
11439   case "x$with_words" in
11440     xbig)
11441       ac_cv_c_bigendian=yes
11442       ;;
11443     xlittle)
11444       ac_cv_c_bigendian=no
11445       ;;
11446     *)
11447                   echo "$as_me:11447: checking whether the byte order is big-endian" >&5
11448 echo $ECHO_N "checking whether the byte order is big-endian... $ECHO_C" >&6
11449 if test "${ac_cv_c_bigendian+set}" = set; then
11450   echo $ECHO_N "(cached) $ECHO_C" >&6
11451 else
11452   ac_cv_c_bigendian=unknown
11453         cat >conftest.c <<EOF
11454         short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
11455         short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
11456         void _a(void) { char*s = (char*)am; s = (char *)ai; }
11457         short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
11458         short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
11459         void _e(void) { char*s = (char*)em; s = (char*)ei; }
11460         int main(void) { _a(); _e(); return 0; }
11461 EOF
11462
11463         if test -f conftest.c
11464         then
11465           if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
11466               && test -f conftest.o
11467           then
11468             if test "`strings conftest.o | grep BIGenDianSyS`"
11469             then
11470               ac_cv_c_bigendian=yes
11471             fi
11472             if test "`strings conftest.o | grep LiTTleEnDian`"
11473             then
11474               ac_cv_c_bigendian=no
11475             fi
11476           fi
11477         fi
11478
11479 fi
11480 echo "$as_me:11480: result: $ac_cv_c_bigendian" >&5
11481 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
11482       if test x$ac_cv_c_bigendian = xunknown
11483       then
11484         { { echo "$as_me:11484: error: Could not guess endianness, please use --with-words" >&5
11485 echo "$as_me: error: Could not guess endianness, please use --with-words" >&2;}
11486    { (exit 1); exit 1; }; }
11487       fi
11488       ;;
11489   esac
11490 if test $ac_cv_c_bigendian = yes
11491 then
11492
11493 cat >>confdefs.h <<\EOF
11494 #define WORDS_BIGENDIAN 1
11495 EOF
11496
11497 fi
11498
11499 GPROF=0
11500 # Check whether --enable-gprof or --disable-gprof was given.
11501 if test "${enable_gprof+set}" = set; then
11502   enableval="$enable_gprof"
11503    if test "x$enable_gprof" = "xyes"; then GPROF=1; fi
11504 fi;
11505
11506 CPROF=0
11507 # Check whether --enable-cprof or --disable-cprof was given.
11508 if test "${enable_cprof+set}" = set; then
11509   enableval="$enable_cprof"
11510    if test "x$enable_cprof" = "xyes";
11511   then
11512     LDFLAGS="${LDFLAGS} -lcprof"
11513     CPROF=1
11514   fi
11515
11516 fi;
11517
11518 # Check whether --enable-pth or --disable-pth was given.
11519 if test "${enable_pth+set}" = set; then
11520   enableval="$enable_pth"
11521    if test "x$enable_pth" = "xyes"; then
11522
11523 echo "$as_me:11523: checking for pth_init in -lpth" >&5
11524 echo $ECHO_N "checking for pth_init in -lpth... $ECHO_C" >&6
11525 if test "${ac_cv_lib_pth_pth_init+set}" = set; then
11526   echo $ECHO_N "(cached) $ECHO_C" >&6
11527 else
11528   ac_check_lib_save_LIBS=$LIBS
11529 LIBS="-lpth  $LIBS"
11530 cat >conftest.$ac_ext <<_ACEOF
11531 #line 11531 "configure"
11532 #include "confdefs.h"
11533
11534 /* Override any gcc2 internal prototype to avoid an error.  */
11535 #ifdef __cplusplus
11536 extern "C"
11537 #endif
11538 /* We use char because int might match the return type of a gcc2
11539    builtin and then its argument prototype would still apply.  */
11540 char pth_init ();
11541 int
11542 main ()
11543 {
11544 pth_init ();
11545   ;
11546   return 0;
11547 }
11548 _ACEOF
11549 rm -f conftest.$ac_objext conftest$ac_exeext
11550 if { (eval echo "$as_me:11550: \"$ac_link\"") >&5
11551   (eval $ac_link) 2>&5
11552   ac_status=$?
11553   echo "$as_me:11553: \$? = $ac_status" >&5
11554   (exit $ac_status); } &&
11555          { ac_try='test -s conftest$ac_exeext'
11556   { (eval echo "$as_me:11556: \"$ac_try\"") >&5
11557   (eval $ac_try) 2>&5
11558   ac_status=$?
11559   echo "$as_me:11559: \$? = $ac_status" >&5
11560   (exit $ac_status); }; }; then
11561   ac_cv_lib_pth_pth_init=yes
11562 else
11563   echo "$as_me: failed program was:" >&5
11564 cat conftest.$ac_ext >&5
11565 ac_cv_lib_pth_pth_init=no
11566 fi
11567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11568 LIBS=$ac_check_lib_save_LIBS
11569 fi
11570 echo "$as_me:11570: result: $ac_cv_lib_pth_pth_init" >&5
11571 echo "${ECHO_T}$ac_cv_lib_pth_pth_init" >&6
11572 if test $ac_cv_lib_pth_pth_init = yes; then
11573   cat >>confdefs.h <<EOF
11574 #define HAVE_LIBPTH 1
11575 EOF
11576
11577   LIBS="-lpth $LIBS"
11578
11579 fi
11580
11581     cat >conftest.$ac_ext <<_ACEOF
11582 #line 11582 "configure"
11583 #include "confdefs.h"
11584 #include <pth.h>
11585
11586 _ACEOF
11587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11588   egrep "pth_init" >/dev/null 2>&1; then
11589
11590 cat >>confdefs.h <<\EOF
11591 #define PTH_INIT_IN_PTH_H 1
11592 EOF
11593
11594     THREAD_LIB="-lpth"
11595     fi
11596 fi
11597 rm -f conftest*
11598
11599 fi;
11600
11601 # Check whether --enable-st or --disable-st was given.
11602 if test "${enable_st+set}" = set; then
11603   enableval="$enable_st"
11604    if test "x$enable_st" = "xyes"; then
11605
11606 echo "$as_me:11606: checking for st_init in -lst" >&5
11607 echo $ECHO_N "checking for st_init in -lst... $ECHO_C" >&6
11608 if test "${ac_cv_lib_st_st_init+set}" = set; then
11609   echo $ECHO_N "(cached) $ECHO_C" >&6
11610 else
11611   ac_check_lib_save_LIBS=$LIBS
11612 LIBS="-lst  $LIBS"
11613 cat >conftest.$ac_ext <<_ACEOF
11614 #line 11614 "configure"
11615 #include "confdefs.h"
11616
11617 /* Override any gcc2 internal prototype to avoid an error.  */
11618 #ifdef __cplusplus
11619 extern "C"
11620 #endif
11621 /* We use char because int might match the return type of a gcc2
11622    builtin and then its argument prototype would still apply.  */
11623 char st_init ();
11624 int
11625 main ()
11626 {
11627 st_init ();
11628   ;
11629   return 0;
11630 }
11631 _ACEOF
11632 rm -f conftest.$ac_objext conftest$ac_exeext
11633 if { (eval echo "$as_me:11633: \"$ac_link\"") >&5
11634   (eval $ac_link) 2>&5
11635   ac_status=$?
11636   echo "$as_me:11636: \$? = $ac_status" >&5
11637   (exit $ac_status); } &&
11638          { ac_try='test -s conftest$ac_exeext'
11639   { (eval echo "$as_me:11639: \"$ac_try\"") >&5
11640   (eval $ac_try) 2>&5
11641   ac_status=$?
11642   echo "$as_me:11642: \$? = $ac_status" >&5
11643   (exit $ac_status); }; }; then
11644   ac_cv_lib_st_st_init=yes
11645 else
11646   echo "$as_me: failed program was:" >&5
11647 cat conftest.$ac_ext >&5
11648 ac_cv_lib_st_st_init=no
11649 fi
11650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11651 LIBS=$ac_check_lib_save_LIBS
11652 fi
11653 echo "$as_me:11653: result: $ac_cv_lib_st_st_init" >&5
11654 echo "${ECHO_T}$ac_cv_lib_st_st_init" >&6
11655 if test $ac_cv_lib_st_st_init = yes; then
11656   cat >>confdefs.h <<EOF
11657 #define HAVE_LIBST 1
11658 EOF
11659
11660   LIBS="-lst $LIBS"
11661
11662 fi
11663
11664     cat >conftest.$ac_ext <<_ACEOF
11665 #line 11665 "configure"
11666 #include "confdefs.h"
11667 #include <st.h>
11668
11669 _ACEOF
11670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11671   egrep "st_init" >/dev/null 2>&1; then
11672
11673 cat >>confdefs.h <<\EOF
11674 #define ST_INIT_IN_ST_H 1
11675 EOF
11676
11677     THREAD_LIB="-lst"
11678     fi
11679 fi
11680 rm -f conftest*
11681
11682 fi;
11683
11684 LDFLAGS="${LDFLAGS} ${THREAD_LIB}"
11685
11686 # Check whether --enable-plugins or --disable-plugins was given.
11687 if test "${enable_plugins+set}" = set; then
11688   enableval="$enable_plugins"
11689   if test x$enable_plugins = xno
11690    then
11691      BUILTINS="${BUILTINS} ${PLUGINS}"
11692      PLUGINS=
11693    fi
11694 fi;
11695
11696 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
11697 then
11698   echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
11699   echo "as built-in"
11700   BUILTINS="${BUILTINS} ${PLUGINS}"
11701   PLUGINS=
11702 fi
11703
11704 cat >>confdefs.h <<EOF
11705 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
11706 EOF
11707
11708 cat >>confdefs.h <<EOF
11709 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
11710 EOF
11711
11712 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
11713
11714 cat >>confdefs.h <<EOF
11715 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
11716 EOF
11717
11718 cat >>confdefs.h <<EOF
11719 #define MODULE_SYMBOL $VLC_SYMBOL
11720 EOF
11721
11722 DATA_PATH="${ac_tool_prefix}/share/videolan"
11723
11724 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
11725
11726 ac_config_files="$ac_config_files Makefile.config Makefile.opts po/Makefile.in"
11727 cat >confcache <<\_ACEOF
11728 # This file is a shell script that caches the results of configure
11729 # tests run on this system so they can be shared between configure
11730 # scripts and configure runs, see configure's option --config-cache.
11731 # It is not useful on other systems.  If it contains results you don't
11732 # want to keep, you may remove or edit it.
11733 #
11734 # config.status only pays attention to the cache file if you give it
11735 # the --recheck option to rerun configure.
11736 #
11737 # `ac_cv_env_foo' variables (set or unset) will be overriden when
11738 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11739 # following values.
11740
11741 _ACEOF
11742
11743 # The following way of writing the cache mishandles newlines in values,
11744 # but we know of no workaround that is simple, portable, and efficient.
11745 # So, don't put newlines in cache variables' values.
11746 # Ultrix sh set writes to stderr and can't be redirected directly,
11747 # and sets the high bit in the cache file unless we assign to the vars.
11748 {
11749   (set) 2>&1 |
11750     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11751     *ac_space=\ *)
11752       # `set' does not quote correctly, so add quotes (double-quote
11753       # substitution turns \\\\ into \\, and sed turns \\ into \).
11754       sed -n \
11755         "s/'/'\\\\''/g;
11756           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11757       ;;
11758     *)
11759       # `set' quotes correctly as required by POSIX, so do not add quotes.
11760       sed -n \
11761         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11762       ;;
11763     esac;
11764 } |
11765   sed '
11766      t clear
11767      : clear
11768      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11769      t end
11770      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11771      : end' >>confcache
11772 if cmp -s $cache_file confcache; then :; else
11773   if test -w $cache_file; then
11774     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11775     cat confcache >$cache_file
11776   else
11777     echo "not updating unwritable cache $cache_file"
11778   fi
11779 fi
11780 rm -f confcache
11781
11782 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11783 # Let make expand exec_prefix.
11784 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11785
11786 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11787 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11788 # trailing colons and then remove the whole line if VPATH becomes empty
11789 # (actually we leave an empty line to preserve line numbers).
11790 if test "x$srcdir" = x.; then
11791   ac_vpsub='/^[         ]*VPATH[        ]*=/{
11792 s/:*\$(srcdir):*/:/;
11793 s/:*\${srcdir}:*/:/;
11794 s/:*@srcdir@:*/:/;
11795 s/^\([^=]*=[    ]*\):*/\1/;
11796 s/:*$//;
11797 s/^[^=]*=[      ]*$//;
11798 }'
11799 fi
11800
11801 DEFS=-DHAVE_CONFIG_H
11802
11803 : ${CONFIG_STATUS=./config.status}
11804 ac_clean_files_save=$ac_clean_files
11805 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11806 { echo "$as_me:11806: creating $CONFIG_STATUS" >&5
11807 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11808 cat >$CONFIG_STATUS <<_ACEOF
11809 #! $SHELL
11810 # Generated automatically by configure.
11811 # Run this file to recreate the current configuration.
11812 # Compiler output produced by configure, useful for debugging
11813 # configure, is in config.log if it exists.
11814
11815 debug=false
11816 SHELL=\${CONFIG_SHELL-$SHELL}
11817 ac_cs_invocation="\$0 \$@"
11818
11819 _ACEOF
11820
11821 cat >>$CONFIG_STATUS <<\_ACEOF
11822 # Be Bourne compatible
11823 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11824   emulate sh
11825   NULLCMD=:
11826 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11827   set -o posix
11828 fi
11829
11830 # Name of the executable.
11831 as_me=`echo "$0" |sed 's,.*[\\/],,'`
11832
11833 if expr a : '\(a\)' >/dev/null 2>&1; then
11834   as_expr=expr
11835 else
11836   as_expr=false
11837 fi
11838
11839 rm -f conf$$ conf$$.exe conf$$.file
11840 echo >conf$$.file
11841 if ln -s conf$$.file conf$$ 2>/dev/null; then
11842   # We could just check for DJGPP; but this test a) works b) is more generic
11843   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11844   if test -f conf$$.exe; then
11845     # Don't use ln at all; we don't have any links
11846     as_ln_s='cp -p'
11847   else
11848     as_ln_s='ln -s'
11849   fi
11850 elif ln conf$$.file conf$$ 2>/dev/null; then
11851   as_ln_s=ln
11852 else
11853   as_ln_s='cp -p'
11854 fi
11855 rm -f conf$$ conf$$.exe conf$$.file
11856
11857 as_executable_p="test -f"
11858
11859 # Support unset when possible.
11860 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11861   as_unset=unset
11862 else
11863   as_unset=false
11864 fi
11865
11866 # NLS nuisances.
11867 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
11868 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
11869 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
11870 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
11871 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
11872 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
11873 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
11874 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
11875
11876 # IFS
11877 # We need space, tab and new line, in precisely that order.
11878 as_nl='
11879 '
11880 IFS="   $as_nl"
11881
11882 # CDPATH.
11883 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
11884
11885 exec 6>&1
11886
11887 _ACEOF
11888
11889 # Files that config.status was made for.
11890 if test -n "$ac_config_files"; then
11891   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11892 fi
11893
11894 if test -n "$ac_config_headers"; then
11895   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11896 fi
11897
11898 if test -n "$ac_config_links"; then
11899   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11900 fi
11901
11902 if test -n "$ac_config_commands"; then
11903   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11904 fi
11905
11906 cat >>$CONFIG_STATUS <<\EOF
11907
11908 ac_cs_usage="\
11909 \`$as_me' instantiates files from templates according to the
11910 current configuration.
11911
11912 Usage: $0 [OPTIONS] [FILE]...
11913
11914   -h, --help       print this help, then exit
11915   -V, --version    print version number, then exit
11916   -d, --debug      don't remove temporary files
11917       --recheck    update $as_me by reconfiguring in the same conditions
11918   --file=FILE[:TEMPLATE]
11919                    instantiate the configuration file FILE
11920   --header=FILE[:TEMPLATE]
11921                    instantiate the configuration header FILE
11922
11923 Configuration files:
11924 $config_files
11925
11926 Configuration headers:
11927 $config_headers
11928
11929 Configuration commands:
11930 $config_commands
11931
11932 Report bugs to <bug-autoconf@gnu.org>."
11933 EOF
11934
11935 cat >>$CONFIG_STATUS <<EOF
11936 ac_cs_version="\\
11937 config.status
11938 configured by $0, generated by GNU Autoconf 2.52,
11939   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11940
11941 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11942 Free Software Foundation, Inc.
11943 This config.status script is free software; the Free Software Foundation
11944 gives unlimited permission to copy, distribute and modify it."
11945 srcdir=$srcdir
11946 INSTALL="$INSTALL"
11947 EOF
11948
11949 cat >>$CONFIG_STATUS <<\EOF
11950 # If no file are specified by the user, then we need to provide default
11951 # value.  By we need to know if files were specified by the user.
11952 ac_need_defaults=:
11953 while test $# != 0
11954 do
11955   case $1 in
11956   --*=*)
11957     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11958     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11959     shift
11960     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
11961     shift
11962     ;;
11963   -*);;
11964   *) # This is not an option, so the user has probably given explicit
11965      # arguments.
11966      ac_need_defaults=false;;
11967   esac
11968
11969   case $1 in
11970   # Handling of the options.
11971 EOF
11972 cat >>$CONFIG_STATUS <<EOF
11973   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11974     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
11975     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
11976 EOF
11977 cat >>$CONFIG_STATUS <<\EOF
11978   --version | --vers* | -V )
11979     echo "$ac_cs_version"; exit 0 ;;
11980   --he | --h)
11981     # Conflict between --help and --header
11982     { { echo "$as_me:11982: error: ambiguous option: $1
11983 Try \`$0 --help' for more information." >&5
11984 echo "$as_me: error: ambiguous option: $1
11985 Try \`$0 --help' for more information." >&2;}
11986    { (exit 1); exit 1; }; };;
11987   --help | --hel | -h )
11988     echo "$ac_cs_usage"; exit 0 ;;
11989   --debug | --d* | -d )
11990     debug=: ;;
11991   --file | --fil | --fi | --f )
11992     shift
11993     CONFIG_FILES="$CONFIG_FILES $1"
11994     ac_need_defaults=false;;
11995   --header | --heade | --head | --hea )
11996     shift
11997     CONFIG_HEADERS="$CONFIG_HEADERS $1"
11998     ac_need_defaults=false;;
11999
12000   # This is an error.
12001   -*) { { echo "$as_me:12001: error: unrecognized option: $1
12002 Try \`$0 --help' for more information." >&5
12003 echo "$as_me: error: unrecognized option: $1
12004 Try \`$0 --help' for more information." >&2;}
12005    { (exit 1); exit 1; }; } ;;
12006
12007   *) ac_config_targets="$ac_config_targets $1" ;;
12008
12009   esac
12010   shift
12011 done
12012
12013 exec 5>>config.log
12014 cat >&5 << _ACEOF
12015
12016 ## ----------------------- ##
12017 ## Running config.status.  ##
12018 ## ----------------------- ##
12019
12020 This file was extended by $as_me 2.52, executed with
12021   CONFIG_FILES    = $CONFIG_FILES
12022   CONFIG_HEADERS  = $CONFIG_HEADERS
12023   CONFIG_LINKS    = $CONFIG_LINKS
12024   CONFIG_COMMANDS = $CONFIG_COMMANDS
12025   > $ac_cs_invocation
12026 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12027
12028 _ACEOF
12029 EOF
12030
12031 cat >>$CONFIG_STATUS <<EOF
12032 #
12033 # INIT-COMMANDS section.
12034 #
12035
12036 EOF
12037
12038 cat >>$CONFIG_STATUS <<\EOF
12039 for ac_config_target in $ac_config_targets
12040 do
12041   case "$ac_config_target" in
12042   # Handling of arguments.
12043   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
12044   "Makefile.opts" ) CONFIG_FILES="$CONFIG_FILES Makefile.opts" ;;
12045   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12046   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12047   "include/defs.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/defs.h" ;;
12048   *) { { echo "$as_me:12048: error: invalid argument: $ac_config_target" >&5
12049 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12050    { (exit 1); exit 1; }; };;
12051   esac
12052 done
12053
12054 # If the user did not use the arguments to specify the items to instantiate,
12055 # then the envvar interface is used.  Set only those that are not.
12056 # We use the long form for the default assignment because of an extremely
12057 # bizarre bug on SunOS 4.1.3.
12058 if $ac_need_defaults; then
12059   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12060   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12061   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12062 fi
12063
12064 # Create a temporary directory, and hook for its removal unless debugging.
12065 $debug ||
12066 {
12067   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12068   trap '{ (exit 1); exit 1; }' 1 2 13 15
12069 }
12070
12071 # Create a (secure) tmp directory for tmp files.
12072 : ${TMPDIR=/tmp}
12073 {
12074   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12075   test -n "$tmp" && test -d "$tmp"
12076 }  ||
12077 {
12078   tmp=$TMPDIR/cs$$-$RANDOM
12079   (umask 077 && mkdir $tmp)
12080 } ||
12081 {
12082    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12083    { (exit 1); exit 1; }
12084 }
12085
12086 EOF
12087
12088 cat >>$CONFIG_STATUS <<EOF
12089
12090 #
12091 # CONFIG_FILES section.
12092 #
12093
12094 # No need to generate the scripts if there are no CONFIG_FILES.
12095 # This happens for instance when ./config.status config.h
12096 if test -n "\$CONFIG_FILES"; then
12097   # Protect against being on the right side of a sed subst in config.status.
12098   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12099    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12100 s,@SHELL@,$SHELL,;t t
12101 s,@exec_prefix@,$exec_prefix,;t t
12102 s,@prefix@,$prefix,;t t
12103 s,@program_transform_name@,$program_transform_name,;t t
12104 s,@bindir@,$bindir,;t t
12105 s,@sbindir@,$sbindir,;t t
12106 s,@libexecdir@,$libexecdir,;t t
12107 s,@datadir@,$datadir,;t t
12108 s,@sysconfdir@,$sysconfdir,;t t
12109 s,@sharedstatedir@,$sharedstatedir,;t t
12110 s,@localstatedir@,$localstatedir,;t t
12111 s,@libdir@,$libdir,;t t
12112 s,@includedir@,$includedir,;t t
12113 s,@oldincludedir@,$oldincludedir,;t t
12114 s,@infodir@,$infodir,;t t
12115 s,@mandir@,$mandir,;t t
12116 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12117 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12118 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12119 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12120 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12121 s,@build_alias@,$build_alias,;t t
12122 s,@host_alias@,$host_alias,;t t
12123 s,@target_alias@,$target_alias,;t t
12124 s,@ECHO_C@,$ECHO_C,;t t
12125 s,@ECHO_N@,$ECHO_N,;t t
12126 s,@ECHO_T@,$ECHO_T,;t t
12127 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12128 s,@DEFS@,$DEFS,;t t
12129 s,@LIBS@,$LIBS,;t t
12130 s,@build@,$build,;t t
12131 s,@build_cpu@,$build_cpu,;t t
12132 s,@build_vendor@,$build_vendor,;t t
12133 s,@build_os@,$build_os,;t t
12134 s,@host@,$host,;t t
12135 s,@host_cpu@,$host_cpu,;t t
12136 s,@host_vendor@,$host_vendor,;t t
12137 s,@host_os@,$host_os,;t t
12138 s,@target@,$target,;t t
12139 s,@target_cpu@,$target_cpu,;t t
12140 s,@target_vendor@,$target_vendor,;t t
12141 s,@target_os@,$target_os,;t t
12142 s,@SET_MAKE@,$SET_MAKE,;t t
12143 s,@CC@,$CC,;t t
12144 s,@CFLAGS@,$CFLAGS,;t t
12145 s,@LDFLAGS@,$LDFLAGS,;t t
12146 s,@CPPFLAGS@,$CPPFLAGS,;t t
12147 s,@ac_ct_CC@,$ac_ct_CC,;t t
12148 s,@EXEEXT@,$EXEEXT,;t t
12149 s,@OBJEXT@,$OBJEXT,;t t
12150 s,@CPP@,$CPP,;t t
12151 s,@RANLIB@,$RANLIB,;t t
12152 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12153 s,@STRIP@,$STRIP,;t t
12154 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12155 s,@GMAKE@,$GMAKE,;t t
12156 s,@ALLOCA@,$ALLOCA,;t t
12157 s,@GLIBC21@,$GLIBC21,;t t
12158 s,@LIBICONV@,$LIBICONV,;t t
12159 s,@USE_NLS@,$USE_NLS,;t t
12160 s,@MSGFMT@,$MSGFMT,;t t
12161 s,@GMSGFMT@,$GMSGFMT,;t t
12162 s,@XGETTEXT@,$XGETTEXT,;t t
12163 s,@INTLBISON@,$INTLBISON,;t t
12164 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
12165 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
12166 s,@CATALOGS@,$CATALOGS,;t t
12167 s,@CATOBJEXT@,$CATOBJEXT,;t t
12168 s,@GMOFILES@,$GMOFILES,;t t
12169 s,@INTLLIBS@,$INTLLIBS,;t t
12170 s,@INTLOBJS@,$INTLOBJS,;t t
12171 s,@POFILES@,$POFILES,;t t
12172 s,@POSUB@,$POSUB,;t t
12173 s,@DATADIRNAME@,$DATADIRNAME,;t t
12174 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12175 s,@GENCAT@,$GENCAT,;t t
12176 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12177 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
12178 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12179 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12180 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12181 s,@WINDRES@,$WINDRES,;t t
12182 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
12183 s,@SDL12_CONFIG@,$SDL12_CONFIG,;t t
12184 s,@SDL11_CONFIG@,$SDL11_CONFIG,;t t
12185 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
12186 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
12187 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
12188 s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
12189 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
12190 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
12191 s,@DATA_PATH@,$DATA_PATH,;t t
12192 s,@PLUGIN_PATH@,$PLUGIN_PATH,;t t
12193 s,@SYS@,$SYS,;t t
12194 s,@ARCH@,$ARCH,;t t
12195 s,@PLUGINS@,$PLUGINS,;t t
12196 s,@BUILTINS@,$BUILTINS,;t t
12197 s,@ALIASES@,$ALIASES,;t t
12198 s,@DEBUG@,$DEBUG,;t t
12199 s,@ASM@,$ASM,;t t
12200 s,@CPROF@,$CPROF,;t t
12201 s,@GPROF@,$GPROF,;t t
12202 s,@OPTIMS@,$OPTIMS,;t t
12203 s,@TUNING@,$TUNING,;t t
12204 s,@RELEASE@,$RELEASE,;t t
12205 s,@MOC@,$MOC,;t t
12206 s,@BCBUILDER@,$BCBUILDER,;t t
12207 s,@PACKAGE@,$PACKAGE,;t t
12208 s,@VERSION@,$VERSION,;t t
12209 s,@NEED_GETOPT@,$NEED_GETOPT,;t t
12210 s,@CFLAGS_OPTIM@,$CFLAGS_OPTIM,;t t
12211 s,@CFLAGS_OPTIM_NODEBUG@,$CFLAGS_OPTIM_NODEBUG,;t t
12212 s,@vlc_CFLAGS@,$vlc_CFLAGS,;t t
12213 s,@plugins_CFLAGS@,$plugins_CFLAGS,;t t
12214 s,@builtins_CFLAGS@,$builtins_CFLAGS,;t t
12215 s,@a52_CFLAGS@,$a52_CFLAGS,;t t
12216 s,@arts_CFLAGS@,$arts_CFLAGS,;t t
12217 s,@dvd_CFLAGS@,$dvd_CFLAGS,;t t
12218 s,@dvdread_CFLAGS@,$dvdread_CFLAGS,;t t
12219 s,@mpeg_ts_dvbpsi_CFLAGS@,$mpeg_ts_dvbpsi_CFLAGS,;t t
12220 s,@directx_CFLAGS@,$directx_CFLAGS,;t t
12221 s,@esd_CFLAGS@,$esd_CFLAGS,;t t
12222 s,@familiar_CFLAGS@,$familiar_CFLAGS,;t t
12223 s,@ffmpeg_CFLAGS@,$ffmpeg_CFLAGS,;t t
12224 s,@glide_CFLAGS@,$glide_CFLAGS,;t t
12225 s,@gnome_CFLAGS@,$gnome_CFLAGS,;t t
12226 s,@gtk_CFLAGS@,$gtk_CFLAGS,;t t
12227 s,@kde_CFLAGS@,$kde_CFLAGS,;t t
12228 s,@idctaltivec_CFLAGS@,$idctaltivec_CFLAGS,;t t
12229 s,@macosx_CFLAGS@,$macosx_CFLAGS,;t t
12230 s,@mad_CFLAGS@,$mad_CFLAGS,;t t
12231 s,@memcpyaltivec_CFLAGS@,$memcpyaltivec_CFLAGS,;t t
12232 s,@motionaltivec_CFLAGS@,$motionaltivec_CFLAGS,;t t
12233 s,@opie_CFLAGS@,$opie_CFLAGS,;t t
12234 s,@qt_CFLAGS@,$qt_CFLAGS,;t t
12235 s,@qte_CFLAGS@,$qte_CFLAGS,;t t
12236 s,@sdl_CFLAGS@,$sdl_CFLAGS,;t t
12237 s,@x11_CFLAGS@,$x11_CFLAGS,;t t
12238 s,@xvideo_CFLAGS@,$xvideo_CFLAGS,;t t
12239 s,@vlc_LDFLAGS@,$vlc_LDFLAGS,;t t
12240 s,@plugins_LDFLAGS@,$plugins_LDFLAGS,;t t
12241 s,@builtins_LDFLAGS@,$builtins_LDFLAGS,;t t
12242 s,@a52_LDFLAGS@,$a52_LDFLAGS,;t t
12243 s,@aa_LDFLAGS@,$aa_LDFLAGS,;t t
12244 s,@alsa_LDFLAGS@,$alsa_LDFLAGS,;t t
12245 s,@arts_LDFLAGS@,$arts_LDFLAGS,;t t
12246 s,@beos_LDFLAGS@,$beos_LDFLAGS,;t t
12247 s,@chroma_i420_rgb_LDFLAGS@,$chroma_i420_rgb_LDFLAGS,;t t
12248 s,@directx_LDFLAGS@,$directx_LDFLAGS,;t t
12249 s,@dsp_LDFLAGS@,$dsp_LDFLAGS,;t t
12250 s,@dvd_LDFLAGS@,$dvd_LDFLAGS,;t t
12251 s,@dvdread_LDFLAGS@,$dvdread_LDFLAGS,;t t
12252 s,@mpeg_ts_dvbpsi_LDFLAGS@,$mpeg_ts_dvbpsi_LDFLAGS,;t t
12253 s,@esd_LDFLAGS@,$esd_LDFLAGS,;t t
12254 s,@familiar_LDFLAGS@,$familiar_LDFLAGS,;t t
12255 s,@filter_distort_LDFLAGS@,$filter_distort_LDFLAGS,;t t
12256 s,@ffmpeg_LDFLAGS@,$ffmpeg_LDFLAGS,;t t
12257 s,@ggi_LDFLAGS@,$ggi_LDFLAGS,;t t
12258 s,@glide_LDFLAGS@,$glide_LDFLAGS,;t t
12259 s,@gnome_LDFLAGS@,$gnome_LDFLAGS,;t t
12260 s,@gtk_LDFLAGS@,$gtk_LDFLAGS,;t t
12261 s,@http_LDFLAGS@,$http_LDFLAGS,;t t
12262 s,@idctaltivec_LDFLAGS@,$idctaltivec_LDFLAGS,;t t
12263 s,@imdct_LDFLAGS@,$imdct_LDFLAGS,;t t
12264 s,@imdct3dn_LDFLAGS@,$imdct3dn_LDFLAGS,;t t
12265 s,@imdctsse_LDFLAGS@,$imdctsse_LDFLAGS,;t t
12266 s,@ipv4_LDFLAGS@,$ipv4_LDFLAGS,;t t
12267 s,@ipv6_LDFLAGS@,$ipv6_LDFLAGS,;t t
12268 s,@kde_LDFLAGS@,$kde_LDFLAGS,;t t
12269 s,@lirc_LDFLAGS@,$lirc_LDFLAGS,;t t
12270 s,@macosx_LDFLAGS@,$macosx_LDFLAGS,;t t
12271 s,@mad_LDFLAGS@,$mad_LDFLAGS,;t t
12272 s,@memcpyaltivec_LDFLAGS@,$memcpyaltivec_LDFLAGS,;t t
12273 s,@motionaltivec_LDFLAGS@,$motionaltivec_LDFLAGS,;t t
12274 s,@ncurses_LDFLAGS@,$ncurses_LDFLAGS,;t t
12275 s,@opie_LDFLAGS@,$opie_LDFLAGS,;t t
12276 s,@qnx_LDFLAGS@,$qnx_LDFLAGS,;t t
12277 s,@qt_LDFLAGS@,$qt_LDFLAGS,;t t
12278 s,@qte_LDFLAGS@,$qte_LDFLAGS,;t t
12279 s,@rc_LDFLAGS@,$rc_LDFLAGS,;t t
12280 s,@sdl_LDFLAGS@,$sdl_LDFLAGS,;t t
12281 s,@vcd_LDFLAGS@,$vcd_LDFLAGS,;t t
12282 s,@vorbis_LDFLAGS@,$vorbis_LDFLAGS,;t t
12283 s,@waveout_LDFLAGS@,$waveout_LDFLAGS,;t t
12284 s,@x11_LDFLAGS@,$x11_LDFLAGS,;t t
12285 s,@xvideo_LDFLAGS@,$xvideo_LDFLAGS,;t t
12286 CEOF
12287
12288 EOF
12289
12290   cat >>$CONFIG_STATUS <<\EOF
12291   # Split the substitutions into bite-sized pieces for seds with
12292   # small command number limits, like on Digital OSF/1 and HP-UX.
12293   ac_max_sed_lines=48
12294   ac_sed_frag=1 # Number of current file.
12295   ac_beg=1 # First line for current file.
12296   ac_end=$ac_max_sed_lines # Line after last line for current file.
12297   ac_more_lines=:
12298   ac_sed_cmds=
12299   while $ac_more_lines; do
12300     if test $ac_beg -gt 1; then
12301       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12302     else
12303       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12304     fi
12305     if test ! -s $tmp/subs.frag; then
12306       ac_more_lines=false
12307     else
12308       # The purpose of the label and of the branching condition is to
12309       # speed up the sed processing (if there are no `@' at all, there
12310       # is no need to browse any of the substitutions).
12311       # These are the two extra sed commands mentioned above.
12312       (echo ':t
12313   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12314       if test -z "$ac_sed_cmds"; then
12315         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12316       else
12317         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12318       fi
12319       ac_sed_frag=`expr $ac_sed_frag + 1`
12320       ac_beg=$ac_end
12321       ac_end=`expr $ac_end + $ac_max_sed_lines`
12322     fi
12323   done
12324   if test -z "$ac_sed_cmds"; then
12325     ac_sed_cmds=cat
12326   fi
12327 fi # test -n "$CONFIG_FILES"
12328
12329 EOF
12330 cat >>$CONFIG_STATUS <<\EOF
12331 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12332   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12333   case $ac_file in
12334   - | *:- | *:-:* ) # input from stdin
12335         cat >$tmp/stdin
12336         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12337         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12338   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12339         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12340   * )   ac_file_in=$ac_file.in ;;
12341   esac
12342
12343   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12344   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12345          X"$ac_file" : 'X\(//\)[^/]' \| \
12346          X"$ac_file" : 'X\(//\)$' \| \
12347          X"$ac_file" : 'X\(/\)' \| \
12348          .     : '\(.\)' 2>/dev/null ||
12349 echo X"$ac_file" |
12350     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12351           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12352           /^X\(\/\/\)$/{ s//\1/; q; }
12353           /^X\(\/\).*/{ s//\1/; q; }
12354           s/.*/./; q'`
12355   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12356     { case "$ac_dir" in
12357   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12358   *)                      as_incr_dir=.;;
12359 esac
12360 as_dummy="$ac_dir"
12361 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12362   case $as_mkdir_dir in
12363     # Skip DOS drivespec
12364     ?:) as_incr_dir=$as_mkdir_dir ;;
12365     *)
12366       as_incr_dir=$as_incr_dir/$as_mkdir_dir
12367       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
12368     ;;
12369   esac
12370 done; }
12371
12372     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
12373     # A "../" for each directory in $ac_dir_suffix.
12374     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
12375   else
12376     ac_dir_suffix= ac_dots=
12377   fi
12378
12379   case $srcdir in
12380   .)  ac_srcdir=.
12381       if test -z "$ac_dots"; then
12382          ac_top_srcdir=.
12383       else
12384          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
12385       fi ;;
12386   [\\/]* | ?:[\\/]* )
12387       ac_srcdir=$srcdir$ac_dir_suffix;
12388       ac_top_srcdir=$srcdir ;;
12389   *) # Relative path.
12390     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
12391     ac_top_srcdir=$ac_dots$srcdir ;;
12392   esac
12393
12394   case $INSTALL in
12395   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12396   *) ac_INSTALL=$ac_dots$INSTALL ;;
12397   esac
12398
12399   if test x"$ac_file" != x-; then
12400     { echo "$as_me:12400: creating $ac_file" >&5
12401 echo "$as_me: creating $ac_file" >&6;}
12402     rm -f "$ac_file"
12403   fi
12404   # Let's still pretend it is `configure' which instantiates (i.e., don't
12405   # use $as_me), people would be surprised to read:
12406   #    /* config.h.  Generated automatically by config.status.  */
12407   configure_input="Generated automatically from `echo $ac_file_in |
12408                                                  sed 's,.*/,,'` by configure."
12409
12410   # First look for the input files in the build tree, otherwise in the
12411   # src tree.
12412   ac_file_inputs=`IFS=:
12413     for f in $ac_file_in; do
12414       case $f in
12415       -) echo $tmp/stdin ;;
12416       [\\/$]*)
12417          # Absolute (can't be DOS-style, as IFS=:)
12418          test -f "$f" || { { echo "$as_me:12418: error: cannot find input file: $f" >&5
12419 echo "$as_me: error: cannot find input file: $f" >&2;}
12420    { (exit 1); exit 1; }; }
12421          echo $f;;
12422       *) # Relative
12423          if test -f "$f"; then
12424            # Build tree
12425            echo $f
12426          elif test -f "$srcdir/$f"; then
12427            # Source tree
12428            echo $srcdir/$f
12429          else
12430            # /dev/null tree
12431            { { echo "$as_me:12431: error: cannot find input file: $f" >&5
12432 echo "$as_me: error: cannot find input file: $f" >&2;}
12433    { (exit 1); exit 1; }; }
12434          fi;;
12435       esac
12436     done` || { (exit 1); exit 1; }
12437 EOF
12438 cat >>$CONFIG_STATUS <<EOF
12439   sed "$ac_vpsub
12440 $extrasub
12441 EOF
12442 cat >>$CONFIG_STATUS <<\EOF
12443 :t
12444 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12445 s,@configure_input@,$configure_input,;t t
12446 s,@srcdir@,$ac_srcdir,;t t
12447 s,@top_srcdir@,$ac_top_srcdir,;t t
12448 s,@INSTALL@,$ac_INSTALL,;t t
12449 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12450   rm -f $tmp/stdin
12451   if test x"$ac_file" != x-; then
12452     mv $tmp/out $ac_file
12453   else
12454     cat $tmp/out
12455     rm -f $tmp/out
12456   fi
12457
12458 done
12459 EOF
12460 cat >>$CONFIG_STATUS <<\EOF
12461
12462 #
12463 # CONFIG_HEADER section.
12464 #
12465
12466 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12467 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12468 #
12469 # ac_d sets the value in "#define NAME VALUE" lines.
12470 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
12471 ac_dB='[        ].*$,\1#\2'
12472 ac_dC=' '
12473 ac_dD=',;t'
12474 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12475 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12476 ac_uB='$,\1#\2define\3'
12477 ac_uC=' '
12478 ac_uD=',;t'
12479
12480 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12481   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12482   case $ac_file in
12483   - | *:- | *:-:* ) # input from stdin
12484         cat >$tmp/stdin
12485         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12486         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12487   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12488         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12489   * )   ac_file_in=$ac_file.in ;;
12490   esac
12491
12492   test x"$ac_file" != x- && { echo "$as_me:12492: creating $ac_file" >&5
12493 echo "$as_me: creating $ac_file" >&6;}
12494
12495   # First look for the input files in the build tree, otherwise in the
12496   # src tree.
12497   ac_file_inputs=`IFS=:
12498     for f in $ac_file_in; do
12499       case $f in
12500       -) echo $tmp/stdin ;;
12501       [\\/$]*)
12502          # Absolute (can't be DOS-style, as IFS=:)
12503          test -f "$f" || { { echo "$as_me:12503: error: cannot find input file: $f" >&5
12504 echo "$as_me: error: cannot find input file: $f" >&2;}
12505    { (exit 1); exit 1; }; }
12506          echo $f;;
12507       *) # Relative
12508          if test -f "$f"; then
12509            # Build tree
12510            echo $f
12511          elif test -f "$srcdir/$f"; then
12512            # Source tree
12513            echo $srcdir/$f
12514          else
12515            # /dev/null tree
12516            { { echo "$as_me:12516: error: cannot find input file: $f" >&5
12517 echo "$as_me: error: cannot find input file: $f" >&2;}
12518    { (exit 1); exit 1; }; }
12519          fi;;
12520       esac
12521     done` || { (exit 1); exit 1; }
12522   # Remove the trailing spaces.
12523   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
12524
12525 EOF
12526
12527 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12528 # `conftest.undefs', that substitutes the proper values into
12529 # config.h.in to produce config.h.  The first handles `#define'
12530 # templates, and the second `#undef' templates.
12531 # And first: Protect against being on the right side of a sed subst in
12532 # config.status.  Protect against being in an unquoted here document
12533 # in config.status.
12534 rm -f conftest.defines conftest.undefs
12535 # Using a here document instead of a string reduces the quoting nightmare.
12536 # Putting comments in sed scripts is not portable.
12537 #
12538 # `end' is used to avoid that the second main sed command (meant for
12539 # 0-ary CPP macros) applies to n-ary macro definitions.
12540 # See the Autoconf documentation for `clear'.
12541 cat >confdef2sed.sed <<\EOF
12542 s/[\\&,]/\\&/g
12543 s,[\\$`],\\&,g
12544 t clear
12545 : clear
12546 s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
12547 t end
12548 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12549 : end
12550 EOF
12551 # If some macros were called several times there might be several times
12552 # the same #defines, which is useless.  Nevertheless, we may not want to
12553 # sort them, since we want the *last* AC-DEFINE to be honored.
12554 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12555 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12556 rm -f confdef2sed.sed
12557
12558 # This sed command replaces #undef with comments.  This is necessary, for
12559 # example, in the case of _POSIX_SOURCE, which is predefined and required
12560 # on some systems where configure will not decide to define it.
12561 cat >>conftest.undefs <<\EOF
12562 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12563 EOF
12564
12565 # Break up conftest.defines because some shells have a limit on the size
12566 # of here documents, and old seds have small limits too (100 cmds).
12567 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12568 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12569 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12570 echo '  :' >>$CONFIG_STATUS
12571 rm -f conftest.tail
12572 while grep . conftest.defines >/dev/null
12573 do
12574   # Write a limited-size here document to $tmp/defines.sed.
12575   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12576   # Speed up: don't consider the non `#define' lines.
12577   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
12578   # Work around the forget-to-reset-the-flag bug.
12579   echo 't clr' >>$CONFIG_STATUS
12580   echo ': clr' >>$CONFIG_STATUS
12581   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12582   echo 'CEOF
12583   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12584   rm -f $tmp/in
12585   mv $tmp/out $tmp/in
12586 ' >>$CONFIG_STATUS
12587   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12588   rm -f conftest.defines
12589   mv conftest.tail conftest.defines
12590 done
12591 rm -f conftest.defines
12592 echo '  fi # egrep' >>$CONFIG_STATUS
12593 echo >>$CONFIG_STATUS
12594
12595 # Break up conftest.undefs because some shells have a limit on the size
12596 # of here documents, and old seds have small limits too (100 cmds).
12597 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12598 rm -f conftest.tail
12599 while grep . conftest.undefs >/dev/null
12600 do
12601   # Write a limited-size here document to $tmp/undefs.sed.
12602   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12603   # Speed up: don't consider the non `#undef'
12604   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12605   # Work around the forget-to-reset-the-flag bug.
12606   echo 't clr' >>$CONFIG_STATUS
12607   echo ': clr' >>$CONFIG_STATUS
12608   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12609   echo 'CEOF
12610   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12611   rm -f $tmp/in
12612   mv $tmp/out $tmp/in
12613 ' >>$CONFIG_STATUS
12614   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12615   rm -f conftest.undefs
12616   mv conftest.tail conftest.undefs
12617 done
12618 rm -f conftest.undefs
12619
12620 cat >>$CONFIG_STATUS <<\EOF
12621   # Let's still pretend it is `configure' which instantiates (i.e., don't
12622   # use $as_me), people would be surprised to read:
12623   #    /* config.h.  Generated automatically by config.status.  */
12624   if test x"$ac_file" = x-; then
12625     echo "/* Generated automatically by configure.  */" >$tmp/config.h
12626   else
12627     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
12628   fi
12629   cat $tmp/in >>$tmp/config.h
12630   rm -f $tmp/in
12631   if test x"$ac_file" != x-; then
12632     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
12633       { echo "$as_me:12633: $ac_file is unchanged" >&5
12634 echo "$as_me: $ac_file is unchanged" >&6;}
12635     else
12636       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12637          X"$ac_file" : 'X\(//\)[^/]' \| \
12638          X"$ac_file" : 'X\(//\)$' \| \
12639          X"$ac_file" : 'X\(/\)' \| \
12640          .     : '\(.\)' 2>/dev/null ||
12641 echo X"$ac_file" |
12642     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12643           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12644           /^X\(\/\/\)$/{ s//\1/; q; }
12645           /^X\(\/\).*/{ s//\1/; q; }
12646           s/.*/./; q'`
12647       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12648         { case "$ac_dir" in
12649   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12650   *)                      as_incr_dir=.;;
12651 esac
12652 as_dummy="$ac_dir"
12653 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12654   case $as_mkdir_dir in
12655     # Skip DOS drivespec
12656     ?:) as_incr_dir=$as_mkdir_dir ;;
12657     *)
12658       as_incr_dir=$as_incr_dir/$as_mkdir_dir
12659       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
12660     ;;
12661   esac
12662 done; }
12663
12664       fi
12665       rm -f $ac_file
12666       mv $tmp/config.h $ac_file
12667     fi
12668   else
12669     cat $tmp/config.h
12670     rm -f $tmp/config.h
12671   fi
12672 done
12673 EOF
12674 cat >>$CONFIG_STATUS <<\EOF
12675
12676 #
12677 # CONFIG_COMMANDS section.
12678 #
12679 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12680   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12681   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12682
12683   case $ac_dest in
12684     default-1 ) for ac_file in $CONFIG_FILES; do
12685         # Support "outfile[:infile[:infile...]]"
12686         case "$ac_file" in
12687           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12688         esac
12689         # PO directories have a Makefile.in generated from Makefile.in.in.
12690         case "$ac_file" in */Makefile.in)
12691           # Adjust a relative srcdir.
12692           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12693           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12694           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12695           # In autoconf-2.13 it is called $ac_given_srcdir.
12696           # In autoconf-2.50 it is called $srcdir.
12697           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12698           case "$ac_given_srcdir" in
12699             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12700             /*) top_srcdir="$ac_given_srcdir" ;;
12701             *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12702           esac
12703           if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12704             rm -f "$ac_dir/POTFILES"
12705             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12706             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
12707             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12708             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
12709           fi
12710           ;;
12711         esac
12712       done ;;
12713   esac
12714 done
12715 EOF
12716
12717 cat >>$CONFIG_STATUS <<\EOF
12718
12719 { (exit 0); exit 0; }
12720 EOF
12721 chmod +x $CONFIG_STATUS
12722 ac_clean_files=$ac_clean_files_save
12723
12724 # configure is writing to config.log, and then calls config.status.
12725 # config.status does its own redirection, appending to config.log.
12726 # Unfortunately, on DOS this fails, as config.log is still kept open
12727 # by configure, so config.status won't be able to write to it; its
12728 # output is simply discarded.  So we exec the FD to /dev/null,
12729 # effectively closing config.log, so it can be properly (re)opened and
12730 # appended to by config.status.  When coming back to configure, we
12731 # need to make the FD available again.
12732 if test "$no_create" != yes; then
12733   ac_cs_success=:
12734   exec 5>/dev/null
12735   $SHELL $CONFIG_STATUS || ac_cs_success=false
12736   exec 5>>config.log
12737   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12738   # would make configure fail if this is the last instruction.
12739   $ac_cs_success || { (exit 1); exit 1; }
12740 fi
12741
12742 echo "
12743 vlc configuration
12744 --------------------
12745 vlc version           : ${VERSION}
12746 system                : ${SYS}
12747 architecture          : ${ARCH}
12748 optimizations         : ${OPTIMS}
12749 tuning                : ${TUNING}
12750 debug mode            : ${DEBUG}
12751 release               : ${RELEASE}
12752 cprof/gprof support   : ${CPROF}/${GPROF}
12753 need builtin getopt   : ${NEED_GETOPT}
12754 built-in modules      :${BUILTINS}
12755 plug-in modules       :${PLUGINS}
12756 vlc aliases           :${ALIASES}
12757
12758 You may now tune Makefile.opts at your convenience, for instance to choose
12759 which modules get compiled as plugins.
12760
12761 To build vlc and its plugins, type \`$VLC_MAKE'.
12762 "
12763