]> git.sesse.net Git - vlc/blob - configure
* ./plugins/text/rc.c: added a safety lock.
[vlc] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
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 if expr a : '\(a\)' >/dev/null 2>&1; then
11   as_expr=expr
12 else
13   as_expr=false
14 fi
15
16
17 ## --------------------- ##
18 ## M4sh Initialization.  ##
19 ## --------------------- ##
20
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23   emulate sh
24   NULLCMD=:
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26   set -o posix
27 fi
28
29 # NLS nuisances.
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32   as_unset=unset
33 else
34   as_unset=false
35 fi
36
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38     { $as_unset LANG || test "${LANG+set}" != set; } ||
39       { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42       { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45       { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48       { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51       { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54       { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57       { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60       { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66          X"$0" : 'X\(//\)$' \| \
67          X"$0" : 'X\(/\)$' \| \
68          .     : '\(.\)' 2>/dev/null ||
69 echo X/"$0" |
70     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71           /^X\/\(\/\/\)$/{ s//\1/; q; }
72           /^X\/\(\/\).*/{ s//\1/; q; }
73           s/.*/./; q'`
74
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85   echo "#! /bin/sh" >conftest.sh
86   echo  "exit 0"   >>conftest.sh
87   chmod +x conftest.sh
88   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89     PATH_SEPARATOR=';'
90   else
91     PATH_SEPARATOR=:
92   fi
93   rm -f conftest.sh
94 fi
95
96
97   as_lineno_1=$LINENO
98   as_lineno_2=$LINENO
99   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100   test "x$as_lineno_1" != "x$as_lineno_2" &&
101   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102   # Find who we are.  Look in the path if we contain no path at all
103   # relative or not.
104   case $0 in
105     *[\\/]* ) as_myself=$0 ;;
106     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 for as_dir in $PATH
108 do
109   IFS=$as_save_IFS
110   test -z "$as_dir" && as_dir=.
111   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 done
113
114        ;;
115   esac
116   # We did not find ourselves, most probably we were run as `sh COMMAND'
117   # in which case we are not to be found in the path.
118   if test "x$as_myself" = x; then
119     as_myself=$0
120   fi
121   if test ! -f "$as_myself"; then
122     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123    { (exit 1); exit 1; }; }
124   fi
125   case $CONFIG_SHELL in
126   '')
127     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129 do
130   IFS=$as_save_IFS
131   test -z "$as_dir" && as_dir=.
132   for as_base in sh bash ksh sh5; do
133          case $as_dir in
134          /*)
135            if ("$as_dir/$as_base" -c '
136   as_lineno_1=$LINENO
137   as_lineno_2=$LINENO
138   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139   test "x$as_lineno_1" != "x$as_lineno_2" &&
140   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141              CONFIG_SHELL=$as_dir/$as_base
142              export CONFIG_SHELL
143              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144            fi;;
145          esac
146        done
147 done
148 ;;
149   esac
150
151   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152   # uniformly replaced by the line number.  The first 'sed' inserts a
153   # line-number line before each line; the second 'sed' does the real
154   # work.  The second script uses 'N' to pair each line-number line
155   # with the numbered line, and appends trailing '-' during
156   # substitution so that $LINENO is not a special case at line end.
157   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
159   sed '=' <$as_myself |
160     sed '
161       N
162       s,$,-,
163       : loop
164       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165       t loop
166       s,-$,,
167       s,^['$as_cr_digits']*\n,,
168     ' >$as_me.lineno &&
169   chmod +x $as_me.lineno ||
170     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171    { (exit 1); exit 1; }; }
172
173   # Don't try to exec as it changes $[0], causing all sort of problems
174   # (the dirname of $[0] is not the place where we might find the
175   # original and so on.  Autoconf is especially sensible to this).
176   . ./$as_me.lineno
177   # Exit status is that of the last command.
178   exit
179 }
180
181
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183   *c*,-n*) ECHO_N= ECHO_C='
184 ' ECHO_T='      ' ;;
185   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
187 esac
188
189 if expr a : '\(a\)' >/dev/null 2>&1; then
190   as_expr=expr
191 else
192   as_expr=false
193 fi
194
195 rm -f conf$$ conf$$.exe conf$$.file
196 echo >conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198   # We could just check for DJGPP; but this test a) works b) is more generic
199   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200   if test -f conf$$.exe; then
201     # Don't use ln at all; we don't have any links
202     as_ln_s='cp -p'
203   else
204     as_ln_s='ln -s'
205   fi
206 elif ln conf$$.file conf$$ 2>/dev/null; then
207   as_ln_s=ln
208 else
209   as_ln_s='cp -p'
210 fi
211 rm -f conf$$ conf$$.exe conf$$.file
212
213 as_executable_p="test -f"
214
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222 # IFS
223 # We need space, tab and new line, in precisely that order.
224 as_nl='
225 '
226 IFS="   $as_nl"
227
228 # CDPATH.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232 # Name of the host.
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237 exec 6>&1
238
239 #
240 # Initializations.
241 #
242 ac_default_prefix=/usr/local
243 cross_compiling=no
244 subdirs=
245 MFLAGS=
246 MAKEFLAGS=
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete.  It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
253
254 # Identity of this package.
255 PACKAGE_NAME=
256 PACKAGE_TARNAME=
257 PACKAGE_VERSION=
258 PACKAGE_STRING=
259 PACKAGE_BUGREPORT=
260
261 ac_unique_file="include/main.h"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
264 #include <stdio.h>
265 #if HAVE_SYS_TYPES_H
266 # include <sys/types.h>
267 #endif
268 #if HAVE_SYS_STAT_H
269 # include <sys/stat.h>
270 #endif
271 #if STDC_HEADERS
272 # include <stdlib.h>
273 # include <stddef.h>
274 #else
275 # if HAVE_STDLIB_H
276 #  include <stdlib.h>
277 # endif
278 #endif
279 #if HAVE_STRING_H
280 # if !STDC_HEADERS && HAVE_MEMORY_H
281 #  include <memory.h>
282 # endif
283 # include <string.h>
284 #endif
285 #if HAVE_STRINGS_H
286 # include <strings.h>
287 #endif
288 #if HAVE_INTTYPES_H
289 # include <inttypes.h>
290 #else
291 # if HAVE_STDINT_H
292 #  include <stdint.h>
293 # endif
294 #endif
295 #if HAVE_UNISTD_H
296 # include <unistd.h>
297 #endif"
298
299
300 # Initialize some variables set by options.
301 ac_init_help=
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
305 cache_file=/dev/null
306 exec_prefix=NONE
307 no_create=
308 no_recursion=
309 prefix=NONE
310 program_prefix=NONE
311 program_suffix=NONE
312 program_transform_name=s,x,x,
313 silent=
314 site=
315 srcdir=
316 verbose=
317 x_includes=NONE
318 x_libraries=NONE
319
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
337
338 ac_prev=
339 for ac_option
340 do
341   # If the previous option needs an argument, assign it.
342   if test -n "$ac_prev"; then
343     eval "$ac_prev=\$ac_option"
344     ac_prev=
345     continue
346   fi
347
348   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350   # Accept the important Cygnus configure options, so we can diagnose typos.
351
352   case $ac_option in
353
354   -bindir | --bindir | --bindi | --bind | --bin | --bi)
355     ac_prev=bindir ;;
356   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357     bindir=$ac_optarg ;;
358
359   -build | --build | --buil | --bui | --bu)
360     ac_prev=build_alias ;;
361   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362     build_alias=$ac_optarg ;;
363
364   -cache-file | --cache-file | --cache-fil | --cache-fi \
365   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366     ac_prev=cache_file ;;
367   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369     cache_file=$ac_optarg ;;
370
371   --config-cache | -C)
372     cache_file=config.cache ;;
373
374   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375     ac_prev=datadir ;;
376   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377   | --da=*)
378     datadir=$ac_optarg ;;
379
380   -disable-* | --disable-*)
381     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382     # Reject names that are not valid shell variable names.
383     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385    { (exit 1); exit 1; }; }
386     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387     eval "enable_$ac_feature=no" ;;
388
389   -enable-* | --enable-*)
390     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391     # Reject names that are not valid shell variable names.
392     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394    { (exit 1); exit 1; }; }
395     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396     case $ac_option in
397       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398       *) ac_optarg=yes ;;
399     esac
400     eval "enable_$ac_feature='$ac_optarg'" ;;
401
402   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404   | --exec | --exe | --ex)
405     ac_prev=exec_prefix ;;
406   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408   | --exec=* | --exe=* | --ex=*)
409     exec_prefix=$ac_optarg ;;
410
411   -gas | --gas | --ga | --g)
412     # Obsolete; use --with-gas.
413     with_gas=yes ;;
414
415   -help | --help | --hel | --he | -h)
416     ac_init_help=long ;;
417   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418     ac_init_help=recursive ;;
419   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420     ac_init_help=short ;;
421
422   -host | --host | --hos | --ho)
423     ac_prev=host_alias ;;
424   -host=* | --host=* | --hos=* | --ho=*)
425     host_alias=$ac_optarg ;;
426
427   -includedir | --includedir | --includedi | --included | --include \
428   | --includ | --inclu | --incl | --inc)
429     ac_prev=includedir ;;
430   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431   | --includ=* | --inclu=* | --incl=* | --inc=*)
432     includedir=$ac_optarg ;;
433
434   -infodir | --infodir | --infodi | --infod | --info | --inf)
435     ac_prev=infodir ;;
436   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437     infodir=$ac_optarg ;;
438
439   -libdir | --libdir | --libdi | --libd)
440     ac_prev=libdir ;;
441   -libdir=* | --libdir=* | --libdi=* | --libd=*)
442     libdir=$ac_optarg ;;
443
444   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445   | --libexe | --libex | --libe)
446     ac_prev=libexecdir ;;
447   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448   | --libexe=* | --libex=* | --libe=*)
449     libexecdir=$ac_optarg ;;
450
451   -localstatedir | --localstatedir | --localstatedi | --localstated \
452   | --localstate | --localstat | --localsta | --localst \
453   | --locals | --local | --loca | --loc | --lo)
454     ac_prev=localstatedir ;;
455   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458     localstatedir=$ac_optarg ;;
459
460   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461     ac_prev=mandir ;;
462   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463     mandir=$ac_optarg ;;
464
465   -nfp | --nfp | --nf)
466     # Obsolete; use --without-fp.
467     with_fp=no ;;
468
469   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470   | --no-cr | --no-c | -n)
471     no_create=yes ;;
472
473   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475     no_recursion=yes ;;
476
477   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479   | --oldin | --oldi | --old | --ol | --o)
480     ac_prev=oldincludedir ;;
481   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484     oldincludedir=$ac_optarg ;;
485
486   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487     ac_prev=prefix ;;
488   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489     prefix=$ac_optarg ;;
490
491   -program-prefix | --program-prefix | --program-prefi | --program-pref \
492   | --program-pre | --program-pr | --program-p)
493     ac_prev=program_prefix ;;
494   -program-prefix=* | --program-prefix=* | --program-prefi=* \
495   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496     program_prefix=$ac_optarg ;;
497
498   -program-suffix | --program-suffix | --program-suffi | --program-suff \
499   | --program-suf | --program-su | --program-s)
500     ac_prev=program_suffix ;;
501   -program-suffix=* | --program-suffix=* | --program-suffi=* \
502   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503     program_suffix=$ac_optarg ;;
504
505   -program-transform-name | --program-transform-name \
506   | --program-transform-nam | --program-transform-na \
507   | --program-transform-n | --program-transform- \
508   | --program-transform | --program-transfor \
509   | --program-transfo | --program-transf \
510   | --program-trans | --program-tran \
511   | --progr-tra | --program-tr | --program-t)
512     ac_prev=program_transform_name ;;
513   -program-transform-name=* | --program-transform-name=* \
514   | --program-transform-nam=* | --program-transform-na=* \
515   | --program-transform-n=* | --program-transform-=* \
516   | --program-transform=* | --program-transfor=* \
517   | --program-transfo=* | --program-transf=* \
518   | --program-trans=* | --program-tran=* \
519   | --progr-tra=* | --program-tr=* | --program-t=*)
520     program_transform_name=$ac_optarg ;;
521
522   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523   | -silent | --silent | --silen | --sile | --sil)
524     silent=yes ;;
525
526   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527     ac_prev=sbindir ;;
528   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529   | --sbi=* | --sb=*)
530     sbindir=$ac_optarg ;;
531
532   -sharedstatedir | --sharedstatedir | --sharedstatedi \
533   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534   | --sharedst | --shareds | --shared | --share | --shar \
535   | --sha | --sh)
536     ac_prev=sharedstatedir ;;
537   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540   | --sha=* | --sh=*)
541     sharedstatedir=$ac_optarg ;;
542
543   -site | --site | --sit)
544     ac_prev=site ;;
545   -site=* | --site=* | --sit=*)
546     site=$ac_optarg ;;
547
548   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549     ac_prev=srcdir ;;
550   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551     srcdir=$ac_optarg ;;
552
553   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554   | --syscon | --sysco | --sysc | --sys | --sy)
555     ac_prev=sysconfdir ;;
556   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558     sysconfdir=$ac_optarg ;;
559
560   -target | --target | --targe | --targ | --tar | --ta | --t)
561     ac_prev=target_alias ;;
562   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563     target_alias=$ac_optarg ;;
564
565   -v | -verbose | --verbose | --verbos | --verbo | --verb)
566     verbose=yes ;;
567
568   -version | --version | --versio | --versi | --vers | -V)
569     ac_init_version=: ;;
570
571   -with-* | --with-*)
572     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573     # Reject names that are not valid shell variable names.
574     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575       { echo "$as_me: error: invalid package name: $ac_package" >&2
576    { (exit 1); exit 1; }; }
577     ac_package=`echo $ac_package| sed 's/-/_/g'`
578     case $ac_option in
579       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580       *) ac_optarg=yes ;;
581     esac
582     eval "with_$ac_package='$ac_optarg'" ;;
583
584   -without-* | --without-*)
585     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586     # Reject names that are not valid shell variable names.
587     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588       { echo "$as_me: error: invalid package name: $ac_package" >&2
589    { (exit 1); exit 1; }; }
590     ac_package=`echo $ac_package | sed 's/-/_/g'`
591     eval "with_$ac_package=no" ;;
592
593   --x)
594     # Obsolete; use --with-x.
595     with_x=yes ;;
596
597   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598   | --x-incl | --x-inc | --x-in | --x-i)
599     ac_prev=x_includes ;;
600   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602     x_includes=$ac_optarg ;;
603
604   -x-libraries | --x-libraries | --x-librarie | --x-librari \
605   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606     ac_prev=x_libraries ;;
607   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609     x_libraries=$ac_optarg ;;
610
611   -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613    { (exit 1); exit 1; }; }
614     ;;
615
616   *=*)
617     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618     # Reject names that are not valid shell variable names.
619     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621    { (exit 1); exit 1; }; }
622     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623     eval "$ac_envvar='$ac_optarg'"
624     export $ac_envvar ;;
625
626   *)
627     # FIXME: should be removed in autoconf 3.0.
628     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632     ;;
633
634   esac
635 done
636
637 if test -n "$ac_prev"; then
638   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639   { echo "$as_me: error: missing argument to $ac_option" >&2
640    { (exit 1); exit 1; }; }
641 fi
642
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
645 do
646   eval ac_val=$`echo $ac_var`
647   case $ac_val in
648     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650    { (exit 1); exit 1; }; };;
651   esac
652 done
653
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656               localstatedir libdir includedir oldincludedir infodir mandir
657 do
658   eval ac_val=$`echo $ac_var`
659   case $ac_val in
660     [\\/$]* | ?:[\\/]* ) ;;
661     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662    { (exit 1); exit 1; }; };;
663   esac
664 done
665
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
669 build=$build_alias
670 host=$host_alias
671 target=$target_alias
672
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675   if test "x$build_alias" = x; then
676     cross_compiling=maybe
677     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678     If a cross compiler is detected then cross compile mode will be used." >&2
679   elif test "x$build_alias" != "x$host_alias"; then
680     cross_compiling=yes
681   fi
682 fi
683
684 ac_tool_prefix=
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687 test "$silent" = yes && exec 6>/dev/null
688
689
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692   ac_srcdir_defaulted=yes
693   # Try the directory containing this script, then its parent.
694   ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696          X"$0" : 'X\(//\)[^/]' \| \
697          X"$0" : 'X\(//\)$' \| \
698          X"$0" : 'X\(/\)' \| \
699          .     : '\(.\)' 2>/dev/null ||
700 echo X"$0" |
701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703           /^X\(\/\/\)$/{ s//\1/; q; }
704           /^X\(\/\).*/{ s//\1/; q; }
705           s/.*/./; q'`
706   srcdir=$ac_confdir
707   if test ! -r $srcdir/$ac_unique_file; then
708     srcdir=..
709   fi
710 else
711   ac_srcdir_defaulted=no
712 fi
713 if test ! -r $srcdir/$ac_unique_file; then
714   if test "$ac_srcdir_defaulted" = yes; then
715     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716    { (exit 1); exit 1; }; }
717   else
718     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719    { (exit 1); exit 1; }; }
720   fi
721 fi
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
736 ac_env_CC_value=$CC
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
755
756 #
757 # Report the --help message.
758 #
759 if test "$ac_init_help" = "long"; then
760   # Omit some internal or obsolete options to make the list less imposing.
761   # This message is too long to be a string in the A/UX 3.1 sh.
762   cat <<_ACEOF
763 \`configure' configures this package to adapt to many kinds of systems.
764
765 Usage: $0 [OPTION]... [VAR=VALUE]...
766
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE.  See below for descriptions of some of the useful variables.
769
770 Defaults for the options are specified in brackets.
771
772 Configuration:
773   -h, --help              display this help and exit
774       --help=short        display options specific to this package
775       --help=recursive    display the short help of all the included packages
776   -V, --version           display version information and exit
777   -q, --quiet, --silent   do not print \`checking...' messages
778       --cache-file=FILE   cache test results in FILE [disabled]
779   -C, --config-cache      alias for \`--cache-file=config.cache'
780   -n, --no-create         do not create output files
781       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
782
783 _ACEOF
784
785   cat <<_ACEOF
786 Installation directories:
787   --prefix=PREFIX         install architecture-independent files in PREFIX
788                           [$ac_default_prefix]
789   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
790                           [PREFIX]
791
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
796
797 For better control, use the options below.
798
799 Fine tuning of the installation directories:
800   --bindir=DIR           user executables [EPREFIX/bin]
801   --sbindir=DIR          system admin executables [EPREFIX/sbin]
802   --libexecdir=DIR       program executables [EPREFIX/libexec]
803   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
804   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
805   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
806   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
807   --libdir=DIR           object code libraries [EPREFIX/lib]
808   --includedir=DIR       C header files [PREFIX/include]
809   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
810   --infodir=DIR          info documentation [PREFIX/info]
811   --mandir=DIR           man documentation [PREFIX/man]
812 _ACEOF
813
814   cat <<\_ACEOF
815
816 System types:
817   --build=BUILD     configure for building on BUILD [guessed]
818   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
819   --target=TARGET   configure for building compilers for TARGET [HOST]
820 _ACEOF
821 fi
822
823 if test -n "$ac_init_help"; then
824
825   cat <<\_ACEOF
826
827 Optional Features:
828   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
829   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
830   --disable-nls           do not use Native Language Support
831   --disable-optimizations disable compiler optimizations (default enabled)
832   --disable-altivec       disable altivec optimizations (default enabled on PPC)
833   --enable-debug          debug mode (default disabled)
834   --enable-release        activate extra optimizations (default disabled)
835   --enable-dvd            DVD input module (default enabled)
836   --enable-dvdread        dvdread input module (default disabled)
837   --enable-dvbpsi        dvbpsi ts demux module (default disabled)
838   --enable-vcd            VCD support for Linux, FreeBSD and MacOS X (default enabled)
839   --enable-satellite      satellite card support (default disabled)
840   --enable-avi            AVI demux module (default enabled)
841   --enable-mad            libmad module (default disabled)
842   --enable-ffmpeg         ffmpeg codec (default disabled)
843   --enable-a52            AC3 support with liba52 (default enabled)
844   --enable-vorbis         Ogg/Vorbis decoder support (default enabled)
845   --enable-x11            X11 support (default enabled)
846   --enable-xvideo         XVideo support (default enabled)
847   --enable-sdl            SDL support (default enabled)
848   --enable-directx        Win32 DirectX support (default enabled on Win32)
849   --enable-fb             Linux framebuffer support (default enabled on Linux)
850   --enable-mga            Linux kernel Matrox support (default disabled)
851   --enable-ggi            GGI support (default disabled)
852   --enable-glide          Glide (3dfx) support (default disabled)
853   --enable-aa             aalib output (default disabled)
854   --enable-dsp            Linux /dev/dsp support (enabled on Linux)
855   --enable-esd            Esound library support (default disabled)
856   --enable-arts           aRts sound server (default disabled)
857   --enable-alsa           ALSA sound support for Linux (default disabled)
858   --enable-waveout        Win32 waveOut module (default enabled on Win32)
859   --enable-gtk            Gtk+ support (default enabled)
860   --enable-gnome          Gnome interface support (default disabled)
861   --enable-qt             Qt interface support (default disabled)
862   --enable-kde            KDE interface support (default disabled)
863   --enable-macosx         MacOS X support (default enabled on MacOS X)
864   --enable-qnx            QNX RTOS support (default enabled on QNX RTOS)
865   --enable-intfwin        Win32 interface support (default disabled)
866   --enable-ncurses        ncurses interface support (default disabled)
867   --enable-lirc           lirc support (default disabled)
868   --enable-gprof          gprof profiling (default disabled)
869   --enable-cprof          cprof profiling (default disabled)
870   --enable-pth            GNU Pth support (default disabled)
871   --enable-st             State Threads (default disabled)
872   --disable-plugins       make all plug-ins built-in (default plug-ins enabled)
873
874 Optional Packages:
875   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
876   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
877   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
878   --with-included-gettext use the GNU gettext library included here
879
880 Optimization options:
881   --with-tuning=ARCH      enable special tuning for an architecture
882                           (default i686 on IA-32 and 750 on PPC)
883 Input plugins:
884     --with-dvdcss=PATH    libdvdcss headers and libraries
885     --with-dvdcss-tree=PATH libdvdcss tree for static linking
886     --with-dvdread=PATH   libdvdread headers and libraries
887     --with-dvbpsi=PATH    libdvbpsi headers and libraries
888 Codec plugins:
889     --with-mad=PATH       path to libmad
890     --with-mad-tree=PATH  mad tree for static linking
891     --with-ffmpeg-tree=PATH ffmpeg tree for static linking
892     --with-a52-tree=PATH  a52dec tree for static linking
893 Video plugins:
894     --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)
895     --with-directx=PATH   Win32 DirectX headers and libraries
896     --with-ggi=PATH       path to libggi
897     --with-glide=PATH     path to libglide
898 Audio plugins:
899 Interface plugins:
900     --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)
901     --with-bcbuilder=PATH Borland C++ Builder installation path
902 Misc options:
903   --with-words=endianness set endianness (big or little)
904
905 Some influential environment variables:
906   CC          C compiler command
907   CFLAGS      C compiler flags
908   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
909               nonstandard directory <lib dir>
910   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
911               headers in a nonstandard directory <include dir>
912   CPP         C preprocessor
913
914 Use these variables to override the choices made by `configure' or to help
915 it to find libraries and programs with nonstandard names/locations.
916
917 _ACEOF
918 fi
919
920 if test "$ac_init_help" = "recursive"; then
921   # If there are subdirs, report their specific --help.
922   ac_popdir=`pwd`
923   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
924     test -d $ac_dir || continue
925     ac_builddir=.
926
927 if test "$ac_dir" != .; then
928   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
929   # A "../" for each directory in $ac_dir_suffix.
930   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
931 else
932   ac_dir_suffix= ac_top_builddir=
933 fi
934
935 case $srcdir in
936   .)  # No --srcdir option.  We are building in place.
937     ac_srcdir=.
938     if test -z "$ac_top_builddir"; then
939        ac_top_srcdir=.
940     else
941        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
942     fi ;;
943   [\\/]* | ?:[\\/]* )  # Absolute path.
944     ac_srcdir=$srcdir$ac_dir_suffix;
945     ac_top_srcdir=$srcdir ;;
946   *) # Relative path.
947     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
948     ac_top_srcdir=$ac_top_builddir$srcdir ;;
949 esac
950 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
951 # absolute.
952 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
953 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
954 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
955 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
956
957     cd $ac_dir
958     # Check for guested configure; otherwise get Cygnus style configure.
959     if test -f $ac_srcdir/configure.gnu; then
960       echo
961       $SHELL $ac_srcdir/configure.gnu  --help=recursive
962     elif test -f $ac_srcdir/configure; then
963       echo
964       $SHELL $ac_srcdir/configure  --help=recursive
965     elif test -f $ac_srcdir/configure.ac ||
966            test -f $ac_srcdir/configure.in; then
967       echo
968       $ac_configure --help
969     else
970       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
971     fi
972     cd $ac_popdir
973   done
974 fi
975
976 test -n "$ac_init_help" && exit 0
977 if $ac_init_version; then
978   cat <<\_ACEOF
979
980 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
981 Free Software Foundation, Inc.
982 This configure script is free software; the Free Software Foundation
983 gives unlimited permission to copy, distribute and modify it.
984 _ACEOF
985   exit 0
986 fi
987 exec 5>config.log
988 cat >&5 <<_ACEOF
989 This file contains any messages produced by compilers while
990 running configure, to aid debugging if configure makes a mistake.
991
992 It was created by $as_me, which was
993 generated by GNU Autoconf 2.53.  Invocation command line was
994
995   $ $0 $@
996
997 _ACEOF
998 {
999 cat <<_ASUNAME
1000 ## --------- ##
1001 ## Platform. ##
1002 ## --------- ##
1003
1004 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1005 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1006 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1007 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1008 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1009
1010 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1011 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1012
1013 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1014 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1015 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1016 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1017 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1018 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1019 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1020
1021 _ASUNAME
1022
1023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1024 for as_dir in $PATH
1025 do
1026   IFS=$as_save_IFS
1027   test -z "$as_dir" && as_dir=.
1028   echo "PATH: $as_dir"
1029 done
1030
1031 } >&5
1032
1033 cat >&5 <<_ACEOF
1034
1035
1036 ## ----------- ##
1037 ## Core tests. ##
1038 ## ----------- ##
1039
1040 _ACEOF
1041
1042
1043 # Keep a trace of the command line.
1044 # Strip out --no-create and --no-recursion so they do not pile up.
1045 # Also quote any args containing shell meta-characters.
1046 ac_configure_args=
1047 ac_sep=
1048 for ac_arg
1049 do
1050   case $ac_arg in
1051   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1052   | --no-cr | --no-c | -n ) continue ;;
1053   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055     continue ;;
1056   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1058   esac
1059   case " $ac_configure_args " in
1060     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1061     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1062        ac_sep=" " ;;
1063   esac
1064   # Get rid of the leading space.
1065 done
1066
1067 # When interrupted or exit'd, cleanup temporary files, and complete
1068 # config.log.  We remove comments because anyway the quotes in there
1069 # would cause problems or look ugly.
1070 # WARNING: Be sure not to use single quotes in there, as some shells,
1071 # such as our DU 5.0 friend, will then `close' the trap.
1072 trap 'exit_status=$?
1073   # Save into config.log some information that might help in debugging.
1074   {
1075     echo
1076     cat <<\_ASBOX
1077 ## ---------------- ##
1078 ## Cache variables. ##
1079 ## ---------------- ##
1080 _ASBOX
1081     echo
1082     # The following way of writing the cache mishandles newlines in values,
1083 {
1084   (set) 2>&1 |
1085     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1086     *ac_space=\ *)
1087       sed -n \
1088         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1089           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1090       ;;
1091     *)
1092       sed -n \
1093         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1094       ;;
1095     esac;
1096 }
1097     echo
1098     if test -s confdefs.h; then
1099       cat <<\_ASBOX
1100 ## ----------- ##
1101 ## confdefs.h. ##
1102 ## ----------- ##
1103 _ASBOX
1104       echo
1105       sed "/^$/d" confdefs.h
1106       echo
1107     fi
1108     test "$ac_signal" != 0 &&
1109       echo "$as_me: caught signal $ac_signal"
1110     echo "$as_me: exit $exit_status"
1111   } >&5
1112   rm -f core core.* *.core &&
1113   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1114     exit $exit_status
1115      ' 0
1116 for ac_signal in 1 2 13 15; do
1117   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1118 done
1119 ac_signal=0
1120
1121 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1122 rm -rf conftest* confdefs.h
1123 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1124 echo >confdefs.h
1125
1126 # Predefined preprocessor variables.
1127
1128 cat >>confdefs.h <<_ACEOF
1129 #define PACKAGE_NAME "$PACKAGE_NAME"
1130 _ACEOF
1131
1132
1133 cat >>confdefs.h <<_ACEOF
1134 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1135 _ACEOF
1136
1137
1138 cat >>confdefs.h <<_ACEOF
1139 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1140 _ACEOF
1141
1142
1143 cat >>confdefs.h <<_ACEOF
1144 #define PACKAGE_STRING "$PACKAGE_STRING"
1145 _ACEOF
1146
1147
1148 cat >>confdefs.h <<_ACEOF
1149 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1150 _ACEOF
1151
1152
1153 # Let the site file select an alternate cache file if it wants to.
1154 # Prefer explicitly selected file to automatically selected ones.
1155 if test -z "$CONFIG_SITE"; then
1156   if test "x$prefix" != xNONE; then
1157     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1158   else
1159     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1160   fi
1161 fi
1162 for ac_site_file in $CONFIG_SITE; do
1163   if test -r "$ac_site_file"; then
1164     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1165 echo "$as_me: loading site script $ac_site_file" >&6;}
1166     sed 's/^/| /' "$ac_site_file" >&5
1167     . "$ac_site_file"
1168   fi
1169 done
1170
1171 if test -r "$cache_file"; then
1172   # Some versions of bash will fail to source /dev/null (special
1173   # files actually), so we avoid doing that.
1174   if test -f "$cache_file"; then
1175     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1176 echo "$as_me: loading cache $cache_file" >&6;}
1177     case $cache_file in
1178       [\\/]* | ?:[\\/]* ) . $cache_file;;
1179       *)                      . ./$cache_file;;
1180     esac
1181   fi
1182 else
1183   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1184 echo "$as_me: creating cache $cache_file" >&6;}
1185   >$cache_file
1186 fi
1187
1188 # Check that the precious variables saved in the cache have kept the same
1189 # value.
1190 ac_cache_corrupted=false
1191 for ac_var in `(set) 2>&1 |
1192                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1193   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1194   eval ac_new_set=\$ac_env_${ac_var}_set
1195   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1196   eval ac_new_val="\$ac_env_${ac_var}_value"
1197   case $ac_old_set,$ac_new_set in
1198     set,)
1199       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1200 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1201       ac_cache_corrupted=: ;;
1202     ,set)
1203       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1204 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1205       ac_cache_corrupted=: ;;
1206     ,);;
1207     *)
1208       if test "x$ac_old_val" != "x$ac_new_val"; then
1209         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1210 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1211         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1212 echo "$as_me:   former value:  $ac_old_val" >&2;}
1213         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1214 echo "$as_me:   current value: $ac_new_val" >&2;}
1215         ac_cache_corrupted=:
1216       fi;;
1217   esac
1218   # Pass precious variables to config.status.
1219   if test "$ac_new_set" = set; then
1220     case $ac_new_val in
1221     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1222       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1223     *) ac_arg=$ac_var=$ac_new_val ;;
1224     esac
1225     case " $ac_configure_args " in
1226       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1227       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1228     esac
1229   fi
1230 done
1231 if $ac_cache_corrupted; then
1232   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1233 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1234   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1235 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1236    { (exit 1); exit 1; }; }
1237 fi
1238
1239 ac_ext=c
1240 ac_cpp='$CPP $CPPFLAGS'
1241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262 ac_config_headers="$ac_config_headers include/defs.h"
1263
1264 ac_aux_dir=
1265 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1266   if test -f $ac_dir/install-sh; then
1267     ac_aux_dir=$ac_dir
1268     ac_install_sh="$ac_aux_dir/install-sh -c"
1269     break
1270   elif test -f $ac_dir/install.sh; then
1271     ac_aux_dir=$ac_dir
1272     ac_install_sh="$ac_aux_dir/install.sh -c"
1273     break
1274   elif test -f $ac_dir/shtool; then
1275     ac_aux_dir=$ac_dir
1276     ac_install_sh="$ac_aux_dir/shtool install -c"
1277     break
1278   fi
1279 done
1280 if test -z "$ac_aux_dir"; then
1281   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1282 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1283    { (exit 1); exit 1; }; }
1284 fi
1285 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1286 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1287 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1288
1289 # Make sure we can run config.sub.
1290 $ac_config_sub sun4 >/dev/null 2>&1 ||
1291   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1292 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1293    { (exit 1); exit 1; }; }
1294
1295 echo "$as_me:$LINENO: checking build system type" >&5
1296 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1297 if test "${ac_cv_build+set}" = set; then
1298   echo $ECHO_N "(cached) $ECHO_C" >&6
1299 else
1300   ac_cv_build_alias=$build_alias
1301 test -z "$ac_cv_build_alias" &&
1302   ac_cv_build_alias=`$ac_config_guess`
1303 test -z "$ac_cv_build_alias" &&
1304   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1305 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1306    { (exit 1); exit 1; }; }
1307 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1308   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1309 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1310    { (exit 1); exit 1; }; }
1311
1312 fi
1313 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1314 echo "${ECHO_T}$ac_cv_build" >&6
1315 build=$ac_cv_build
1316 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1317 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1318 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1319
1320
1321 echo "$as_me:$LINENO: checking host system type" >&5
1322 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1323 if test "${ac_cv_host+set}" = set; then
1324   echo $ECHO_N "(cached) $ECHO_C" >&6
1325 else
1326   ac_cv_host_alias=$host_alias
1327 test -z "$ac_cv_host_alias" &&
1328   ac_cv_host_alias=$ac_cv_build_alias
1329 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1330   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1331 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1332    { (exit 1); exit 1; }; }
1333
1334 fi
1335 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1336 echo "${ECHO_T}$ac_cv_host" >&6
1337 host=$ac_cv_host
1338 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1339 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1340 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1341
1342
1343 echo "$as_me:$LINENO: checking target system type" >&5
1344 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1345 if test "${ac_cv_target+set}" = set; then
1346   echo $ECHO_N "(cached) $ECHO_C" >&6
1347 else
1348   ac_cv_target_alias=$target_alias
1349 test "x$ac_cv_target_alias" = "x" &&
1350   ac_cv_target_alias=$ac_cv_host_alias
1351 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1352   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1353 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1354    { (exit 1); exit 1; }; }
1355
1356 fi
1357 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1358 echo "${ECHO_T}$ac_cv_target" >&6
1359 target=$ac_cv_target
1360 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1361 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1362 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1363
1364
1365 # The aliases save the names the user supplied, while $host etc.
1366 # will get canonicalized.
1367 test -n "$target_alias" &&
1368   test "$program_prefix$program_suffix$program_transform_name" = \
1369     NONENONEs,x,x, &&
1370   program_prefix=${target_alias}-
1371
1372 PACKAGE="vlc"
1373 VERSION=snapshot-20020517
1374 CODENAME=Ourumov
1375
1376 save_CFLAGS="${CFLAGS}"
1377 save_CPPFLAGS="${CPPFLAGS}"
1378 save_LDFLAGS="${LDFLAGS}"
1379
1380 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1381 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1382 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1383 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1384   echo $ECHO_N "(cached) $ECHO_C" >&6
1385 else
1386   cat >conftest.make <<\_ACEOF
1387 all:
1388         @echo 'ac_maketemp="${MAKE}"'
1389 _ACEOF
1390 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1391 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1392 if test -n "$ac_maketemp"; then
1393   eval ac_cv_prog_make_${ac_make}_set=yes
1394 else
1395   eval ac_cv_prog_make_${ac_make}_set=no
1396 fi
1397 rm -f conftest.make
1398 fi
1399 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1400   echo "$as_me:$LINENO: result: yes" >&5
1401 echo "${ECHO_T}yes" >&6
1402   SET_MAKE=
1403 else
1404   echo "$as_me:$LINENO: result: no" >&5
1405 echo "${ECHO_T}no" >&6
1406   SET_MAKE="MAKE=${MAKE-make}"
1407 fi
1408
1409 ac_ext=c
1410 ac_cpp='$CPP $CPPFLAGS'
1411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1414 if test -n "$ac_tool_prefix"; then
1415   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1416 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1417 echo "$as_me:$LINENO: checking for $ac_word" >&5
1418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1419 if test "${ac_cv_prog_CC+set}" = set; then
1420   echo $ECHO_N "(cached) $ECHO_C" >&6
1421 else
1422   if test -n "$CC"; then
1423   ac_cv_prog_CC="$CC" # Let the user override the test.
1424 else
1425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1426 for as_dir in $PATH
1427 do
1428   IFS=$as_save_IFS
1429   test -z "$as_dir" && as_dir=.
1430   for ac_exec_ext in '' $ac_executable_extensions; do
1431   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1432     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1434     break 2
1435   fi
1436 done
1437 done
1438
1439 fi
1440 fi
1441 CC=$ac_cv_prog_CC
1442 if test -n "$CC"; then
1443   echo "$as_me:$LINENO: result: $CC" >&5
1444 echo "${ECHO_T}$CC" >&6
1445 else
1446   echo "$as_me:$LINENO: result: no" >&5
1447 echo "${ECHO_T}no" >&6
1448 fi
1449
1450 fi
1451 if test -z "$ac_cv_prog_CC"; then
1452   ac_ct_CC=$CC
1453   # Extract the first word of "gcc", so it can be a program name with args.
1454 set dummy gcc; ac_word=$2
1455 echo "$as_me:$LINENO: checking for $ac_word" >&5
1456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1457 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1458   echo $ECHO_N "(cached) $ECHO_C" >&6
1459 else
1460   if test -n "$ac_ct_CC"; then
1461   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1462 else
1463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1464 for as_dir in $PATH
1465 do
1466   IFS=$as_save_IFS
1467   test -z "$as_dir" && as_dir=.
1468   for ac_exec_ext in '' $ac_executable_extensions; do
1469   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1470     ac_cv_prog_ac_ct_CC="gcc"
1471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1472     break 2
1473   fi
1474 done
1475 done
1476
1477 fi
1478 fi
1479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1480 if test -n "$ac_ct_CC"; then
1481   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1482 echo "${ECHO_T}$ac_ct_CC" >&6
1483 else
1484   echo "$as_me:$LINENO: result: no" >&5
1485 echo "${ECHO_T}no" >&6
1486 fi
1487
1488   CC=$ac_ct_CC
1489 else
1490   CC="$ac_cv_prog_CC"
1491 fi
1492
1493 if test -z "$CC"; then
1494   if test -n "$ac_tool_prefix"; then
1495   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1496 set dummy ${ac_tool_prefix}cc; ac_word=$2
1497 echo "$as_me:$LINENO: checking for $ac_word" >&5
1498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1499 if test "${ac_cv_prog_CC+set}" = set; then
1500   echo $ECHO_N "(cached) $ECHO_C" >&6
1501 else
1502   if test -n "$CC"; then
1503   ac_cv_prog_CC="$CC" # Let the user override the test.
1504 else
1505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1506 for as_dir in $PATH
1507 do
1508   IFS=$as_save_IFS
1509   test -z "$as_dir" && as_dir=.
1510   for ac_exec_ext in '' $ac_executable_extensions; do
1511   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1512     ac_cv_prog_CC="${ac_tool_prefix}cc"
1513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1514     break 2
1515   fi
1516 done
1517 done
1518
1519 fi
1520 fi
1521 CC=$ac_cv_prog_CC
1522 if test -n "$CC"; then
1523   echo "$as_me:$LINENO: result: $CC" >&5
1524 echo "${ECHO_T}$CC" >&6
1525 else
1526   echo "$as_me:$LINENO: result: no" >&5
1527 echo "${ECHO_T}no" >&6
1528 fi
1529
1530 fi
1531 if test -z "$ac_cv_prog_CC"; then
1532   ac_ct_CC=$CC
1533   # Extract the first word of "cc", so it can be a program name with args.
1534 set dummy cc; ac_word=$2
1535 echo "$as_me:$LINENO: checking for $ac_word" >&5
1536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1538   echo $ECHO_N "(cached) $ECHO_C" >&6
1539 else
1540   if test -n "$ac_ct_CC"; then
1541   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1542 else
1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544 for as_dir in $PATH
1545 do
1546   IFS=$as_save_IFS
1547   test -z "$as_dir" && as_dir=.
1548   for ac_exec_ext in '' $ac_executable_extensions; do
1549   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1550     ac_cv_prog_ac_ct_CC="cc"
1551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1552     break 2
1553   fi
1554 done
1555 done
1556
1557 fi
1558 fi
1559 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1560 if test -n "$ac_ct_CC"; then
1561   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1562 echo "${ECHO_T}$ac_ct_CC" >&6
1563 else
1564   echo "$as_me:$LINENO: result: no" >&5
1565 echo "${ECHO_T}no" >&6
1566 fi
1567
1568   CC=$ac_ct_CC
1569 else
1570   CC="$ac_cv_prog_CC"
1571 fi
1572
1573 fi
1574 if test -z "$CC"; then
1575   # Extract the first word of "cc", so it can be a program name with args.
1576 set dummy cc; ac_word=$2
1577 echo "$as_me:$LINENO: checking for $ac_word" >&5
1578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1579 if test "${ac_cv_prog_CC+set}" = set; then
1580   echo $ECHO_N "(cached) $ECHO_C" >&6
1581 else
1582   if test -n "$CC"; then
1583   ac_cv_prog_CC="$CC" # Let the user override the test.
1584 else
1585   ac_prog_rejected=no
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 for as_dir in $PATH
1588 do
1589   IFS=$as_save_IFS
1590   test -z "$as_dir" && as_dir=.
1591   for ac_exec_ext in '' $ac_executable_extensions; do
1592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1593     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1594        ac_prog_rejected=yes
1595        continue
1596      fi
1597     ac_cv_prog_CC="cc"
1598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1599     break 2
1600   fi
1601 done
1602 done
1603
1604 if test $ac_prog_rejected = yes; then
1605   # We found a bogon in the path, so make sure we never use it.
1606   set dummy $ac_cv_prog_CC
1607   shift
1608   if test $# != 0; then
1609     # We chose a different compiler from the bogus one.
1610     # However, it has the same basename, so the bogon will be chosen
1611     # first if we set CC to just the basename; use the full file name.
1612     shift
1613     set dummy "$as_dir/$ac_word" ${1+"$@"}
1614     shift
1615     ac_cv_prog_CC="$@"
1616   fi
1617 fi
1618 fi
1619 fi
1620 CC=$ac_cv_prog_CC
1621 if test -n "$CC"; then
1622   echo "$as_me:$LINENO: result: $CC" >&5
1623 echo "${ECHO_T}$CC" >&6
1624 else
1625   echo "$as_me:$LINENO: result: no" >&5
1626 echo "${ECHO_T}no" >&6
1627 fi
1628
1629 fi
1630 if test -z "$CC"; then
1631   if test -n "$ac_tool_prefix"; then
1632   for ac_prog in cl
1633   do
1634     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1635 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_CC+set}" = set; then
1639   echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641   if test -n "$CC"; then
1642   ac_cv_prog_CC="$CC" # Let the user override the test.
1643 else
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH
1646 do
1647   IFS=$as_save_IFS
1648   test -z "$as_dir" && as_dir=.
1649   for ac_exec_ext in '' $ac_executable_extensions; do
1650   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653     break 2
1654   fi
1655 done
1656 done
1657
1658 fi
1659 fi
1660 CC=$ac_cv_prog_CC
1661 if test -n "$CC"; then
1662   echo "$as_me:$LINENO: result: $CC" >&5
1663 echo "${ECHO_T}$CC" >&6
1664 else
1665   echo "$as_me:$LINENO: result: no" >&5
1666 echo "${ECHO_T}no" >&6
1667 fi
1668
1669     test -n "$CC" && break
1670   done
1671 fi
1672 if test -z "$CC"; then
1673   ac_ct_CC=$CC
1674   for ac_prog in cl
1675 do
1676   # Extract the first word of "$ac_prog", so it can be a program name with args.
1677 set dummy $ac_prog; ac_word=$2
1678 echo "$as_me:$LINENO: checking for $ac_word" >&5
1679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1681   echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683   if test -n "$ac_ct_CC"; then
1684   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1685 else
1686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 for as_dir in $PATH
1688 do
1689   IFS=$as_save_IFS
1690   test -z "$as_dir" && as_dir=.
1691   for ac_exec_ext in '' $ac_executable_extensions; do
1692   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1693     ac_cv_prog_ac_ct_CC="$ac_prog"
1694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1695     break 2
1696   fi
1697 done
1698 done
1699
1700 fi
1701 fi
1702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1703 if test -n "$ac_ct_CC"; then
1704   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1705 echo "${ECHO_T}$ac_ct_CC" >&6
1706 else
1707   echo "$as_me:$LINENO: result: no" >&5
1708 echo "${ECHO_T}no" >&6
1709 fi
1710
1711   test -n "$ac_ct_CC" && break
1712 done
1713
1714   CC=$ac_ct_CC
1715 fi
1716
1717 fi
1718
1719
1720 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1721 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1722    { (exit 1); exit 1; }; }
1723
1724 # Provide some information about the compiler.
1725 echo "$as_me:$LINENO:" \
1726      "checking for C compiler version" >&5
1727 ac_compiler=`set X $ac_compile; echo $2`
1728 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1729   (eval $ac_compiler --version </dev/null >&5) 2>&5
1730   ac_status=$?
1731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732   (exit $ac_status); }
1733 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1734   (eval $ac_compiler -v </dev/null >&5) 2>&5
1735   ac_status=$?
1736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1737   (exit $ac_status); }
1738 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1739   (eval $ac_compiler -V </dev/null >&5) 2>&5
1740   ac_status=$?
1741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1742   (exit $ac_status); }
1743
1744 cat >conftest.$ac_ext <<_ACEOF
1745 #line $LINENO "configure"
1746 #include "confdefs.h"
1747
1748 #ifdef F77_DUMMY_MAIN
1749 #  ifdef __cplusplus
1750      extern "C"
1751 #  endif
1752    int F77_DUMMY_MAIN() { return 1; }
1753 #endif
1754 int
1755 main ()
1756 {
1757
1758   ;
1759   return 0;
1760 }
1761 _ACEOF
1762 ac_clean_files_save=$ac_clean_files
1763 ac_clean_files="$ac_clean_files a.out a.exe"
1764 # Try to create an executable without -o first, disregard a.out.
1765 # It will help us diagnose broken compilers, and finding out an intuition
1766 # of exeext.
1767 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1768 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1769 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1770 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1771   (eval $ac_link_default) 2>&5
1772   ac_status=$?
1773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1774   (exit $ac_status); }; then
1775   # Find the output, starting from the most likely.  This scheme is
1776 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1777 # resort.
1778
1779 # Be careful to initialize this variable, since it used to be cached.
1780 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1781 ac_cv_exeext=
1782 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1783                 ls a.out conftest 2>/dev/null;
1784                 ls a.* conftest.* 2>/dev/null`; do
1785   case $ac_file in
1786     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1787     a.out ) # We found the default executable, but exeext='' is most
1788             # certainly right.
1789             break;;
1790     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1791           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1792           export ac_cv_exeext
1793           break;;
1794     * ) break;;
1795   esac
1796 done
1797 else
1798   echo "$as_me: failed program was:" >&5
1799 cat conftest.$ac_ext >&5
1800 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1801 echo "$as_me: error: C compiler cannot create executables" >&2;}
1802    { (exit 77); exit 77; }; }
1803 fi
1804
1805 ac_exeext=$ac_cv_exeext
1806 echo "$as_me:$LINENO: result: $ac_file" >&5
1807 echo "${ECHO_T}$ac_file" >&6
1808
1809 # Check the compiler produces executables we can run.  If not, either
1810 # the compiler is broken, or we cross compile.
1811 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1812 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1813 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1814 # If not cross compiling, check that we can run a simple program.
1815 if test "$cross_compiling" != yes; then
1816   if { ac_try='./$ac_file'
1817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1818   (eval $ac_try) 2>&5
1819   ac_status=$?
1820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1821   (exit $ac_status); }; }; then
1822     cross_compiling=no
1823   else
1824     if test "$cross_compiling" = maybe; then
1825         cross_compiling=yes
1826     else
1827         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1828 If you meant to cross compile, use \`--host'." >&5
1829 echo "$as_me: error: cannot run C compiled programs.
1830 If you meant to cross compile, use \`--host'." >&2;}
1831    { (exit 1); exit 1; }; }
1832     fi
1833   fi
1834 fi
1835 echo "$as_me:$LINENO: result: yes" >&5
1836 echo "${ECHO_T}yes" >&6
1837
1838 rm -f a.out a.exe conftest$ac_cv_exeext
1839 ac_clean_files=$ac_clean_files_save
1840 # Check the compiler produces executables we can run.  If not, either
1841 # the compiler is broken, or we cross compile.
1842 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1843 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1844 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1845 echo "${ECHO_T}$cross_compiling" >&6
1846
1847 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1848 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1850   (eval $ac_link) 2>&5
1851   ac_status=$?
1852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853   (exit $ac_status); }; then
1854   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1855 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1856 # work properly (i.e., refer to `conftest.exe'), while it won't with
1857 # `rm'.
1858 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1859   case $ac_file in
1860     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1861     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1862           export ac_cv_exeext
1863           break;;
1864     * ) break;;
1865   esac
1866 done
1867 else
1868   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1869 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1870    { (exit 1); exit 1; }; }
1871 fi
1872
1873 rm -f conftest$ac_cv_exeext
1874 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1875 echo "${ECHO_T}$ac_cv_exeext" >&6
1876
1877 rm -f conftest.$ac_ext
1878 EXEEXT=$ac_cv_exeext
1879 ac_exeext=$EXEEXT
1880 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1881 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1882 if test "${ac_cv_objext+set}" = set; then
1883   echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885   cat >conftest.$ac_ext <<_ACEOF
1886 #line $LINENO "configure"
1887 #include "confdefs.h"
1888
1889 #ifdef F77_DUMMY_MAIN
1890 #  ifdef __cplusplus
1891      extern "C"
1892 #  endif
1893    int F77_DUMMY_MAIN() { return 1; }
1894 #endif
1895 int
1896 main ()
1897 {
1898
1899   ;
1900   return 0;
1901 }
1902 _ACEOF
1903 rm -f conftest.o conftest.obj
1904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1905   (eval $ac_compile) 2>&5
1906   ac_status=$?
1907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1908   (exit $ac_status); }; then
1909   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1910   case $ac_file in
1911     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1912     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1913        break;;
1914   esac
1915 done
1916 else
1917   echo "$as_me: failed program was:" >&5
1918 cat conftest.$ac_ext >&5
1919 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1920 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1921    { (exit 1); exit 1; }; }
1922 fi
1923
1924 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1925 fi
1926 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1927 echo "${ECHO_T}$ac_cv_objext" >&6
1928 OBJEXT=$ac_cv_objext
1929 ac_objext=$OBJEXT
1930 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1931 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1932 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1933   echo $ECHO_N "(cached) $ECHO_C" >&6
1934 else
1935   cat >conftest.$ac_ext <<_ACEOF
1936 #line $LINENO "configure"
1937 #include "confdefs.h"
1938
1939 #ifdef F77_DUMMY_MAIN
1940 #  ifdef __cplusplus
1941      extern "C"
1942 #  endif
1943    int F77_DUMMY_MAIN() { return 1; }
1944 #endif
1945 int
1946 main ()
1947 {
1948 #ifndef __GNUC__
1949        choke me
1950 #endif
1951
1952   ;
1953   return 0;
1954 }
1955 _ACEOF
1956 rm -f conftest.$ac_objext
1957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1958   (eval $ac_compile) 2>&5
1959   ac_status=$?
1960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1961   (exit $ac_status); } &&
1962          { ac_try='test -s conftest.$ac_objext'
1963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1964   (eval $ac_try) 2>&5
1965   ac_status=$?
1966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967   (exit $ac_status); }; }; then
1968   ac_compiler_gnu=yes
1969 else
1970   echo "$as_me: failed program was:" >&5
1971 cat conftest.$ac_ext >&5
1972 ac_compiler_gnu=no
1973 fi
1974 rm -f conftest.$ac_objext conftest.$ac_ext
1975 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1976
1977 fi
1978 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1979 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1980 GCC=`test $ac_compiler_gnu = yes && echo yes`
1981 ac_test_CFLAGS=${CFLAGS+set}
1982 ac_save_CFLAGS=$CFLAGS
1983 CFLAGS="-g"
1984 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1985 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1986 if test "${ac_cv_prog_cc_g+set}" = set; then
1987   echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989   cat >conftest.$ac_ext <<_ACEOF
1990 #line $LINENO "configure"
1991 #include "confdefs.h"
1992
1993 #ifdef F77_DUMMY_MAIN
1994 #  ifdef __cplusplus
1995      extern "C"
1996 #  endif
1997    int F77_DUMMY_MAIN() { return 1; }
1998 #endif
1999 int
2000 main ()
2001 {
2002
2003   ;
2004   return 0;
2005 }
2006 _ACEOF
2007 rm -f conftest.$ac_objext
2008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2009   (eval $ac_compile) 2>&5
2010   ac_status=$?
2011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012   (exit $ac_status); } &&
2013          { ac_try='test -s conftest.$ac_objext'
2014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2015   (eval $ac_try) 2>&5
2016   ac_status=$?
2017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018   (exit $ac_status); }; }; then
2019   ac_cv_prog_cc_g=yes
2020 else
2021   echo "$as_me: failed program was:" >&5
2022 cat conftest.$ac_ext >&5
2023 ac_cv_prog_cc_g=no
2024 fi
2025 rm -f conftest.$ac_objext conftest.$ac_ext
2026 fi
2027 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2028 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2029 if test "$ac_test_CFLAGS" = set; then
2030   CFLAGS=$ac_save_CFLAGS
2031 elif test $ac_cv_prog_cc_g = yes; then
2032   if test "$GCC" = yes; then
2033     CFLAGS="-g -O2"
2034   else
2035     CFLAGS="-g"
2036   fi
2037 else
2038   if test "$GCC" = yes; then
2039     CFLAGS="-O2"
2040   else
2041     CFLAGS=
2042   fi
2043 fi
2044 # Some people use a C++ compiler to compile C.  Since we use `exit',
2045 # in C++ we need to declare it.  In case someone uses the same compiler
2046 # for both compiling C and C++ we need to have the C++ compiler decide
2047 # the declaration of exit, since it's the most demanding environment.
2048 cat >conftest.$ac_ext <<_ACEOF
2049 #ifndef __cplusplus
2050   choke me
2051 #endif
2052 _ACEOF
2053 rm -f conftest.$ac_objext
2054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2055   (eval $ac_compile) 2>&5
2056   ac_status=$?
2057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058   (exit $ac_status); } &&
2059          { ac_try='test -s conftest.$ac_objext'
2060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061   (eval $ac_try) 2>&5
2062   ac_status=$?
2063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064   (exit $ac_status); }; }; then
2065   for ac_declaration in \
2066    ''\
2067    '#include <stdlib.h>' \
2068    'extern "C" void std::exit (int) throw (); using std::exit;' \
2069    'extern "C" void std::exit (int); using std::exit;' \
2070    'extern "C" void exit (int) throw ();' \
2071    'extern "C" void exit (int);' \
2072    'void exit (int);'
2073 do
2074   cat >conftest.$ac_ext <<_ACEOF
2075 #line $LINENO "configure"
2076 #include "confdefs.h"
2077 #include <stdlib.h>
2078 $ac_declaration
2079 #ifdef F77_DUMMY_MAIN
2080 #  ifdef __cplusplus
2081      extern "C"
2082 #  endif
2083    int F77_DUMMY_MAIN() { return 1; }
2084 #endif
2085 int
2086 main ()
2087 {
2088 exit (42);
2089   ;
2090   return 0;
2091 }
2092 _ACEOF
2093 rm -f conftest.$ac_objext
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095   (eval $ac_compile) 2>&5
2096   ac_status=$?
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); } &&
2099          { ac_try='test -s conftest.$ac_objext'
2100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101   (eval $ac_try) 2>&5
2102   ac_status=$?
2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104   (exit $ac_status); }; }; then
2105   :
2106 else
2107   echo "$as_me: failed program was:" >&5
2108 cat conftest.$ac_ext >&5
2109 continue
2110 fi
2111 rm -f conftest.$ac_objext conftest.$ac_ext
2112   cat >conftest.$ac_ext <<_ACEOF
2113 #line $LINENO "configure"
2114 #include "confdefs.h"
2115 $ac_declaration
2116 #ifdef F77_DUMMY_MAIN
2117 #  ifdef __cplusplus
2118      extern "C"
2119 #  endif
2120    int F77_DUMMY_MAIN() { return 1; }
2121 #endif
2122 int
2123 main ()
2124 {
2125 exit (42);
2126   ;
2127   return 0;
2128 }
2129 _ACEOF
2130 rm -f conftest.$ac_objext
2131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2132   (eval $ac_compile) 2>&5
2133   ac_status=$?
2134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135   (exit $ac_status); } &&
2136          { ac_try='test -s conftest.$ac_objext'
2137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138   (eval $ac_try) 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }; }; then
2142   break
2143 else
2144   echo "$as_me: failed program was:" >&5
2145 cat conftest.$ac_ext >&5
2146 fi
2147 rm -f conftest.$ac_objext conftest.$ac_ext
2148 done
2149 rm -f conftest*
2150 if test -n "$ac_declaration"; then
2151   echo '#ifdef __cplusplus' >>confdefs.h
2152   echo $ac_declaration      >>confdefs.h
2153   echo '#endif'             >>confdefs.h
2154 fi
2155
2156 else
2157   echo "$as_me: failed program was:" >&5
2158 cat conftest.$ac_ext >&5
2159 fi
2160 rm -f conftest.$ac_objext conftest.$ac_ext
2161 ac_ext=c
2162 ac_cpp='$CPP $CPPFLAGS'
2163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2166
2167 ac_ext=c
2168 ac_cpp='$CPP $CPPFLAGS'
2169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2172 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2173 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2174 # On Suns, sometimes $CPP names a directory.
2175 if test -n "$CPP" && test -d "$CPP"; then
2176   CPP=
2177 fi
2178 if test -z "$CPP"; then
2179   if test "${ac_cv_prog_CPP+set}" = set; then
2180   echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182       # Double quotes because CPP needs to be expanded
2183     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2184     do
2185       ac_preproc_ok=false
2186 for ac_c_preproc_warn_flag in '' yes
2187 do
2188   # Use a header file that comes with gcc, so configuring glibc
2189   # with a fresh cross-compiler works.
2190   # On the NeXT, cc -E runs the code through the compiler's parser,
2191   # not just through cpp. "Syntax error" is here to catch this case.
2192   cat >conftest.$ac_ext <<_ACEOF
2193 #line $LINENO "configure"
2194 #include "confdefs.h"
2195 #include <assert.h>
2196                      Syntax error
2197 _ACEOF
2198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2199   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2200   ac_status=$?
2201   egrep -v '^ *\+' conftest.er1 >conftest.err
2202   rm -f conftest.er1
2203   cat conftest.err >&5
2204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205   (exit $ac_status); } >/dev/null; then
2206   if test -s conftest.err; then
2207     ac_cpp_err=$ac_c_preproc_warn_flag
2208   else
2209     ac_cpp_err=
2210   fi
2211 else
2212   ac_cpp_err=yes
2213 fi
2214 if test -z "$ac_cpp_err"; then
2215   :
2216 else
2217   echo "$as_me: failed program was:" >&5
2218   cat conftest.$ac_ext >&5
2219   # Broken: fails on valid input.
2220 continue
2221 fi
2222 rm -f conftest.err conftest.$ac_ext
2223
2224   # OK, works on sane cases.  Now check whether non-existent headers
2225   # can be detected and how.
2226   cat >conftest.$ac_ext <<_ACEOF
2227 #line $LINENO "configure"
2228 #include "confdefs.h"
2229 #include <ac_nonexistent.h>
2230 _ACEOF
2231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2232   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2233   ac_status=$?
2234   egrep -v '^ *\+' conftest.er1 >conftest.err
2235   rm -f conftest.er1
2236   cat conftest.err >&5
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); } >/dev/null; then
2239   if test -s conftest.err; then
2240     ac_cpp_err=$ac_c_preproc_warn_flag
2241   else
2242     ac_cpp_err=
2243   fi
2244 else
2245   ac_cpp_err=yes
2246 fi
2247 if test -z "$ac_cpp_err"; then
2248   # Broken: success on invalid input.
2249 continue
2250 else
2251   echo "$as_me: failed program was:" >&5
2252   cat conftest.$ac_ext >&5
2253   # Passes both tests.
2254 ac_preproc_ok=:
2255 break
2256 fi
2257 rm -f conftest.err conftest.$ac_ext
2258
2259 done
2260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2261 rm -f conftest.err conftest.$ac_ext
2262 if $ac_preproc_ok; then
2263   break
2264 fi
2265
2266     done
2267     ac_cv_prog_CPP=$CPP
2268
2269 fi
2270   CPP=$ac_cv_prog_CPP
2271 else
2272   ac_cv_prog_CPP=$CPP
2273 fi
2274 echo "$as_me:$LINENO: result: $CPP" >&5
2275 echo "${ECHO_T}$CPP" >&6
2276 ac_preproc_ok=false
2277 for ac_c_preproc_warn_flag in '' yes
2278 do
2279   # Use a header file that comes with gcc, so configuring glibc
2280   # with a fresh cross-compiler works.
2281   # On the NeXT, cc -E runs the code through the compiler's parser,
2282   # not just through cpp. "Syntax error" is here to catch this case.
2283   cat >conftest.$ac_ext <<_ACEOF
2284 #line $LINENO "configure"
2285 #include "confdefs.h"
2286 #include <assert.h>
2287                      Syntax error
2288 _ACEOF
2289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2290   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2291   ac_status=$?
2292   egrep -v '^ *\+' conftest.er1 >conftest.err
2293   rm -f conftest.er1
2294   cat conftest.err >&5
2295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296   (exit $ac_status); } >/dev/null; then
2297   if test -s conftest.err; then
2298     ac_cpp_err=$ac_c_preproc_warn_flag
2299   else
2300     ac_cpp_err=
2301   fi
2302 else
2303   ac_cpp_err=yes
2304 fi
2305 if test -z "$ac_cpp_err"; then
2306   :
2307 else
2308   echo "$as_me: failed program was:" >&5
2309   cat conftest.$ac_ext >&5
2310   # Broken: fails on valid input.
2311 continue
2312 fi
2313 rm -f conftest.err conftest.$ac_ext
2314
2315   # OK, works on sane cases.  Now check whether non-existent headers
2316   # can be detected and how.
2317   cat >conftest.$ac_ext <<_ACEOF
2318 #line $LINENO "configure"
2319 #include "confdefs.h"
2320 #include <ac_nonexistent.h>
2321 _ACEOF
2322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2323   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2324   ac_status=$?
2325   egrep -v '^ *\+' conftest.er1 >conftest.err
2326   rm -f conftest.er1
2327   cat conftest.err >&5
2328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329   (exit $ac_status); } >/dev/null; then
2330   if test -s conftest.err; then
2331     ac_cpp_err=$ac_c_preproc_warn_flag
2332   else
2333     ac_cpp_err=
2334   fi
2335 else
2336   ac_cpp_err=yes
2337 fi
2338 if test -z "$ac_cpp_err"; then
2339   # Broken: success on invalid input.
2340 continue
2341 else
2342   echo "$as_me: failed program was:" >&5
2343   cat conftest.$ac_ext >&5
2344   # Passes both tests.
2345 ac_preproc_ok=:
2346 break
2347 fi
2348 rm -f conftest.err conftest.$ac_ext
2349
2350 done
2351 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2352 rm -f conftest.err conftest.$ac_ext
2353 if $ac_preproc_ok; then
2354   :
2355 else
2356   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2357 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2358    { (exit 1); exit 1; }; }
2359 fi
2360
2361 ac_ext=c
2362 ac_cpp='$CPP $CPPFLAGS'
2363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2366
2367
2368 if test -n "$ac_tool_prefix"; then
2369   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2370 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2371 echo "$as_me:$LINENO: checking for $ac_word" >&5
2372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2373 if test "${ac_cv_prog_RANLIB+set}" = set; then
2374   echo $ECHO_N "(cached) $ECHO_C" >&6
2375 else
2376   if test -n "$RANLIB"; then
2377   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2378 else
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 for as_dir in $PATH
2381 do
2382   IFS=$as_save_IFS
2383   test -z "$as_dir" && as_dir=.
2384   for ac_exec_ext in '' $ac_executable_extensions; do
2385   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2386     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388     break 2
2389   fi
2390 done
2391 done
2392
2393 fi
2394 fi
2395 RANLIB=$ac_cv_prog_RANLIB
2396 if test -n "$RANLIB"; then
2397   echo "$as_me:$LINENO: result: $RANLIB" >&5
2398 echo "${ECHO_T}$RANLIB" >&6
2399 else
2400   echo "$as_me:$LINENO: result: no" >&5
2401 echo "${ECHO_T}no" >&6
2402 fi
2403
2404 fi
2405 if test -z "$ac_cv_prog_RANLIB"; then
2406   ac_ct_RANLIB=$RANLIB
2407   # Extract the first word of "ranlib", so it can be a program name with args.
2408 set dummy ranlib; ac_word=$2
2409 echo "$as_me:$LINENO: checking for $ac_word" >&5
2410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2411 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2412   echo $ECHO_N "(cached) $ECHO_C" >&6
2413 else
2414   if test -n "$ac_ct_RANLIB"; then
2415   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2416 else
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 for as_dir in $PATH
2419 do
2420   IFS=$as_save_IFS
2421   test -z "$as_dir" && as_dir=.
2422   for ac_exec_ext in '' $ac_executable_extensions; do
2423   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2424     ac_cv_prog_ac_ct_RANLIB="ranlib"
2425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426     break 2
2427   fi
2428 done
2429 done
2430
2431   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2432 fi
2433 fi
2434 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2435 if test -n "$ac_ct_RANLIB"; then
2436   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2437 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2438 else
2439   echo "$as_me:$LINENO: result: no" >&5
2440 echo "${ECHO_T}no" >&6
2441 fi
2442
2443   RANLIB=$ac_ct_RANLIB
2444 else
2445   RANLIB="$ac_cv_prog_RANLIB"
2446 fi
2447
2448 if test -n "$ac_tool_prefix"; then
2449   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2450 set dummy ${ac_tool_prefix}strip; ac_word=$2
2451 echo "$as_me:$LINENO: checking for $ac_word" >&5
2452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2453 if test "${ac_cv_prog_STRIP+set}" = set; then
2454   echo $ECHO_N "(cached) $ECHO_C" >&6
2455 else
2456   if test -n "$STRIP"; then
2457   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2458 else
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 for as_dir in $PATH
2461 do
2462   IFS=$as_save_IFS
2463   test -z "$as_dir" && as_dir=.
2464   for ac_exec_ext in '' $ac_executable_extensions; do
2465   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2466     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468     break 2
2469   fi
2470 done
2471 done
2472
2473 fi
2474 fi
2475 STRIP=$ac_cv_prog_STRIP
2476 if test -n "$STRIP"; then
2477   echo "$as_me:$LINENO: result: $STRIP" >&5
2478 echo "${ECHO_T}$STRIP" >&6
2479 else
2480   echo "$as_me:$LINENO: result: no" >&5
2481 echo "${ECHO_T}no" >&6
2482 fi
2483
2484 fi
2485 if test -z "$ac_cv_prog_STRIP"; then
2486   ac_ct_STRIP=$STRIP
2487   # Extract the first word of "strip", so it can be a program name with args.
2488 set dummy strip; ac_word=$2
2489 echo "$as_me:$LINENO: checking for $ac_word" >&5
2490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2491 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2492   echo $ECHO_N "(cached) $ECHO_C" >&6
2493 else
2494   if test -n "$ac_ct_STRIP"; then
2495   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2496 else
2497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 for as_dir in $PATH
2499 do
2500   IFS=$as_save_IFS
2501   test -z "$as_dir" && as_dir=.
2502   for ac_exec_ext in '' $ac_executable_extensions; do
2503   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2504     ac_cv_prog_ac_ct_STRIP="strip"
2505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506     break 2
2507   fi
2508 done
2509 done
2510
2511   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2512 fi
2513 fi
2514 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2515 if test -n "$ac_ct_STRIP"; then
2516   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2517 echo "${ECHO_T}$ac_ct_STRIP" >&6
2518 else
2519   echo "$as_me:$LINENO: result: no" >&5
2520 echo "${ECHO_T}no" >&6
2521 fi
2522
2523   STRIP=$ac_ct_STRIP
2524 else
2525   STRIP="$ac_cv_prog_STRIP"
2526 fi
2527
2528
2529 # Extract the first word of "gmake", so it can be a program name with args.
2530 set dummy gmake; ac_word=$2
2531 echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2533 if test "${ac_cv_path_GMAKE+set}" = set; then
2534   echo $ECHO_N "(cached) $ECHO_C" >&6
2535 else
2536   case $GMAKE in
2537   [\\/]* | ?:[\\/]*)
2538   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
2539   ;;
2540   *)
2541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH
2543 do
2544   IFS=$as_save_IFS
2545   test -z "$as_dir" && as_dir=.
2546   for ac_exec_ext in '' $ac_executable_extensions; do
2547   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2548     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
2549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2550     break 2
2551   fi
2552 done
2553 done
2554
2555   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="no"
2556   ;;
2557 esac
2558 fi
2559 GMAKE=$ac_cv_path_GMAKE
2560
2561 if test -n "$GMAKE"; then
2562   echo "$as_me:$LINENO: result: $GMAKE" >&5
2563 echo "${ECHO_T}$GMAKE" >&6
2564 else
2565   echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6
2567 fi
2568
2569 if test "x$GMAKE" = "xno"; then
2570   echo "$as_me:$LINENO: checking whether GNU make is installed" >&5
2571 echo $ECHO_N "checking whether GNU make is installed... $ECHO_C" >&6
2572 if test "${ac_cv_gmake+set}" = set; then
2573   echo $ECHO_N "(cached) $ECHO_C" >&6
2574 else
2575   if make --version | grep -q -i gnu; then
2576          ac_cv_gmake="yes"
2577        else
2578          echo "This software needs you to install GNU make to compile properly."
2579          echo "You can get it from http://www.gnu.org/."
2580          exit
2581        fi
2582 fi
2583 echo "$as_me:$LINENO: result: $ac_cv_gmake" >&5
2584 echo "${ECHO_T}$ac_cv_gmake" >&6
2585   VLC_MAKE="make"
2586 else
2587   VLC_MAKE="gmake"
2588 fi
2589
2590 ALL_LINGUAS="de en_GB fr ja no ru nl"
2591
2592
2593 cat >>confdefs.h <<_ACEOF
2594 #define VLC_PACKAGE "$PACKAGE"
2595 _ACEOF
2596
2597
2598 cat >>confdefs.h <<_ACEOF
2599 #define VLC_VERSION "$VERSION"
2600 _ACEOF
2601
2602 if test -n "$ac_tool_prefix"; then
2603   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2604 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2605 echo "$as_me:$LINENO: checking for $ac_word" >&5
2606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2607 if test "${ac_cv_prog_RANLIB+set}" = set; then
2608   echo $ECHO_N "(cached) $ECHO_C" >&6
2609 else
2610   if test -n "$RANLIB"; then
2611   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2612 else
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 for as_dir in $PATH
2615 do
2616   IFS=$as_save_IFS
2617   test -z "$as_dir" && as_dir=.
2618   for ac_exec_ext in '' $ac_executable_extensions; do
2619   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2620     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2622     break 2
2623   fi
2624 done
2625 done
2626
2627 fi
2628 fi
2629 RANLIB=$ac_cv_prog_RANLIB
2630 if test -n "$RANLIB"; then
2631   echo "$as_me:$LINENO: result: $RANLIB" >&5
2632 echo "${ECHO_T}$RANLIB" >&6
2633 else
2634   echo "$as_me:$LINENO: result: no" >&5
2635 echo "${ECHO_T}no" >&6
2636 fi
2637
2638 fi
2639 if test -z "$ac_cv_prog_RANLIB"; then
2640   ac_ct_RANLIB=$RANLIB
2641   # Extract the first word of "ranlib", so it can be a program name with args.
2642 set dummy ranlib; ac_word=$2
2643 echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2645 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2646   echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648   if test -n "$ac_ct_RANLIB"; then
2649   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2653 do
2654   IFS=$as_save_IFS
2655   test -z "$as_dir" && as_dir=.
2656   for ac_exec_ext in '' $ac_executable_extensions; do
2657   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658     ac_cv_prog_ac_ct_RANLIB="ranlib"
2659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660     break 2
2661   fi
2662 done
2663 done
2664
2665   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2666 fi
2667 fi
2668 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2669 if test -n "$ac_ct_RANLIB"; then
2670   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2671 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2672 else
2673   echo "$as_me:$LINENO: result: no" >&5
2674 echo "${ECHO_T}no" >&6
2675 fi
2676
2677   RANLIB=$ac_ct_RANLIB
2678 else
2679   RANLIB="$ac_cv_prog_RANLIB"
2680 fi
2681
2682
2683
2684         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2685 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2686 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2687   echo $ECHO_N "(cached) $ECHO_C" >&6
2688 else
2689   ac_check_lib_save_LIBS=$LIBS
2690 LIBS="-lcposix  $LIBS"
2691 cat >conftest.$ac_ext <<_ACEOF
2692 #line $LINENO "configure"
2693 #include "confdefs.h"
2694
2695 /* Override any gcc2 internal prototype to avoid an error.  */
2696 #ifdef __cplusplus
2697 extern "C"
2698 #endif
2699 /* We use char because int might match the return type of a gcc2
2700    builtin and then its argument prototype would still apply.  */
2701 char strerror ();
2702 #ifdef F77_DUMMY_MAIN
2703 #  ifdef __cplusplus
2704      extern "C"
2705 #  endif
2706    int F77_DUMMY_MAIN() { return 1; }
2707 #endif
2708 int
2709 main ()
2710 {
2711 strerror ();
2712   ;
2713   return 0;
2714 }
2715 _ACEOF
2716 rm -f conftest.$ac_objext conftest$ac_exeext
2717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2718   (eval $ac_link) 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); } &&
2722          { ac_try='test -s conftest$ac_exeext'
2723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724   (eval $ac_try) 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; }; then
2728   ac_cv_lib_cposix_strerror=yes
2729 else
2730   echo "$as_me: failed program was:" >&5
2731 cat conftest.$ac_ext >&5
2732 ac_cv_lib_cposix_strerror=no
2733 fi
2734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2735 LIBS=$ac_check_lib_save_LIBS
2736 fi
2737 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2738 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2739 if test $ac_cv_lib_cposix_strerror = yes; then
2740   LIBS="$LIBS -lcposix"
2741 fi
2742
2743
2744
2745
2746 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2747 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2748 if test "${ac_cv_header_stdc+set}" = set; then
2749   echo $ECHO_N "(cached) $ECHO_C" >&6
2750 else
2751   cat >conftest.$ac_ext <<_ACEOF
2752 #line $LINENO "configure"
2753 #include "confdefs.h"
2754 #include <stdlib.h>
2755 #include <stdarg.h>
2756 #include <string.h>
2757 #include <float.h>
2758
2759 _ACEOF
2760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2761   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2762   ac_status=$?
2763   egrep -v '^ *\+' conftest.er1 >conftest.err
2764   rm -f conftest.er1
2765   cat conftest.err >&5
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); } >/dev/null; then
2768   if test -s conftest.err; then
2769     ac_cpp_err=$ac_c_preproc_warn_flag
2770   else
2771     ac_cpp_err=
2772   fi
2773 else
2774   ac_cpp_err=yes
2775 fi
2776 if test -z "$ac_cpp_err"; then
2777   ac_cv_header_stdc=yes
2778 else
2779   echo "$as_me: failed program was:" >&5
2780   cat conftest.$ac_ext >&5
2781   ac_cv_header_stdc=no
2782 fi
2783 rm -f conftest.err conftest.$ac_ext
2784
2785 if test $ac_cv_header_stdc = yes; then
2786   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2787   cat >conftest.$ac_ext <<_ACEOF
2788 #line $LINENO "configure"
2789 #include "confdefs.h"
2790 #include <string.h>
2791
2792 _ACEOF
2793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2794   egrep "memchr" >/dev/null 2>&1; then
2795   :
2796 else
2797   ac_cv_header_stdc=no
2798 fi
2799 rm -f conftest*
2800
2801 fi
2802
2803 if test $ac_cv_header_stdc = yes; then
2804   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2805   cat >conftest.$ac_ext <<_ACEOF
2806 #line $LINENO "configure"
2807 #include "confdefs.h"
2808 #include <stdlib.h>
2809
2810 _ACEOF
2811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2812   egrep "free" >/dev/null 2>&1; then
2813   :
2814 else
2815   ac_cv_header_stdc=no
2816 fi
2817 rm -f conftest*
2818
2819 fi
2820
2821 if test $ac_cv_header_stdc = yes; then
2822   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2823   if test "$cross_compiling" = yes; then
2824   :
2825 else
2826   cat >conftest.$ac_ext <<_ACEOF
2827 #line $LINENO "configure"
2828 #include "confdefs.h"
2829 #include <ctype.h>
2830 #if ((' ' & 0x0FF) == 0x020)
2831 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2832 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2833 #else
2834 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2835                      || ('j' <= (c) && (c) <= 'r') \
2836                      || ('s' <= (c) && (c) <= 'z'))
2837 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2838 #endif
2839
2840 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2841 int
2842 main ()
2843 {
2844   int i;
2845   for (i = 0; i < 256; i++)
2846     if (XOR (islower (i), ISLOWER (i))
2847         || toupper (i) != TOUPPER (i))
2848       exit(2);
2849   exit (0);
2850 }
2851 _ACEOF
2852 rm -f conftest$ac_exeext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2854   (eval $ac_link) 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859   (eval $ac_try) 2>&5
2860   ac_status=$?
2861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862   (exit $ac_status); }; }; then
2863   :
2864 else
2865   echo "$as_me: program exited with status $ac_status" >&5
2866 echo "$as_me: failed program was:" >&5
2867 cat conftest.$ac_ext >&5
2868 ( exit $ac_status )
2869 ac_cv_header_stdc=no
2870 fi
2871 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2872 fi
2873 fi
2874 fi
2875 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2876 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2877 if test $ac_cv_header_stdc = yes; then
2878
2879 cat >>confdefs.h <<\_ACEOF
2880 #define STDC_HEADERS 1
2881 _ACEOF
2882
2883 fi
2884
2885 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2886 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2887 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2888   echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890   ac_cv_prog_cc_stdc=no
2891 ac_save_CC=$CC
2892 cat >conftest.$ac_ext <<_ACEOF
2893 #line $LINENO "configure"
2894 #include "confdefs.h"
2895 #include <stdarg.h>
2896 #include <stdio.h>
2897 #include <sys/types.h>
2898 #include <sys/stat.h>
2899 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2900 struct buf { int x; };
2901 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2902 static char *e (p, i)
2903      char **p;
2904      int i;
2905 {
2906   return p[i];
2907 }
2908 static char *f (char * (*g) (char **, int), char **p, ...)
2909 {
2910   char *s;
2911   va_list v;
2912   va_start (v,p);
2913   s = g (p, va_arg (v,int));
2914   va_end (v);
2915   return s;
2916 }
2917 int test (int i, double x);
2918 struct s1 {int (*f) (int a);};
2919 struct s2 {int (*f) (double a);};
2920 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2921 int argc;
2922 char **argv;
2923 #ifdef F77_DUMMY_MAIN
2924 #  ifdef __cplusplus
2925      extern "C"
2926 #  endif
2927    int F77_DUMMY_MAIN() { return 1; }
2928 #endif
2929 int
2930 main ()
2931 {
2932 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2933   ;
2934   return 0;
2935 }
2936 _ACEOF
2937 # Don't try gcc -ansi; that turns off useful extensions and
2938 # breaks some systems' header files.
2939 # AIX                   -qlanglvl=ansi
2940 # Ultrix and OSF/1      -std1
2941 # HP-UX 10.20 and later -Ae
2942 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2943 # SVR4                  -Xc -D__EXTENSIONS__
2944 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2945 do
2946   CC="$ac_save_CC $ac_arg"
2947   rm -f conftest.$ac_objext
2948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2949   (eval $ac_compile) 2>&5
2950   ac_status=$?
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); } &&
2953          { ac_try='test -s conftest.$ac_objext'
2954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955   (eval $ac_try) 2>&5
2956   ac_status=$?
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); }; }; then
2959   ac_cv_prog_cc_stdc=$ac_arg
2960 break
2961 else
2962   echo "$as_me: failed program was:" >&5
2963 cat conftest.$ac_ext >&5
2964 fi
2965 rm -f conftest.$ac_objext
2966 done
2967 rm -f conftest.$ac_ext conftest.$ac_objext
2968 CC=$ac_save_CC
2969
2970 fi
2971
2972 case "x$ac_cv_prog_cc_stdc" in
2973   x|xno)
2974     echo "$as_me:$LINENO: result: none needed" >&5
2975 echo "${ECHO_T}none needed" >&6 ;;
2976   *)
2977     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2978 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2979     CC="$CC $ac_cv_prog_cc_stdc" ;;
2980 esac
2981
2982 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2983 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2984 if test "${ac_cv_c_const+set}" = set; then
2985   echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987   cat >conftest.$ac_ext <<_ACEOF
2988 #line $LINENO "configure"
2989 #include "confdefs.h"
2990
2991 #ifdef F77_DUMMY_MAIN
2992 #  ifdef __cplusplus
2993      extern "C"
2994 #  endif
2995    int F77_DUMMY_MAIN() { return 1; }
2996 #endif
2997 int
2998 main ()
2999 {
3000 /* FIXME: Include the comments suggested by Paul. */
3001 #ifndef __cplusplus
3002   /* Ultrix mips cc rejects this.  */
3003   typedef int charset[2];
3004   const charset x;
3005   /* SunOS 4.1.1 cc rejects this.  */
3006   char const *const *ccp;
3007   char **p;
3008   /* NEC SVR4.0.2 mips cc rejects this.  */
3009   struct point {int x, y;};
3010   static struct point const zero = {0,0};
3011   /* AIX XL C 1.02.0.0 rejects this.
3012      It does not let you subtract one const X* pointer from another in
3013      an arm of an if-expression whose if-part is not a constant
3014      expression */
3015   const char *g = "string";
3016   ccp = &g + (g ? g-g : 0);
3017   /* HPUX 7.0 cc rejects these. */
3018   ++ccp;
3019   p = (char**) ccp;
3020   ccp = (char const *const *) p;
3021   { /* SCO 3.2v4 cc rejects this.  */
3022     char *t;
3023     char const *s = 0 ? (char *) 0 : (char const *) 0;
3024
3025     *t++ = 0;
3026   }
3027   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3028     int x[] = {25, 17};
3029     const int *foo = &x[0];
3030     ++foo;
3031   }
3032   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3033     typedef const int *iptr;
3034     iptr p = 0;
3035     ++p;
3036   }
3037   { /* AIX XL C 1.02.0.0 rejects this saying
3038        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3039     struct s { int j; const int *ap[3]; };
3040     struct s *b; b->j = 5;
3041   }
3042   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3043     const int foo = 10;
3044   }
3045 #endif
3046
3047   ;
3048   return 0;
3049 }
3050 _ACEOF
3051 rm -f conftest.$ac_objext
3052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3053   (eval $ac_compile) 2>&5
3054   ac_status=$?
3055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056   (exit $ac_status); } &&
3057          { ac_try='test -s conftest.$ac_objext'
3058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059   (eval $ac_try) 2>&5
3060   ac_status=$?
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); }; }; then
3063   ac_cv_c_const=yes
3064 else
3065   echo "$as_me: failed program was:" >&5
3066 cat conftest.$ac_ext >&5
3067 ac_cv_c_const=no
3068 fi
3069 rm -f conftest.$ac_objext conftest.$ac_ext
3070 fi
3071 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3072 echo "${ECHO_T}$ac_cv_c_const" >&6
3073 if test $ac_cv_c_const = no; then
3074
3075 cat >>confdefs.h <<\_ACEOF
3076 #define const
3077 _ACEOF
3078
3079 fi
3080
3081 echo "$as_me:$LINENO: checking for inline" >&5
3082 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3083 if test "${ac_cv_c_inline+set}" = set; then
3084   echo $ECHO_N "(cached) $ECHO_C" >&6
3085 else
3086   ac_cv_c_inline=no
3087 for ac_kw in inline __inline__ __inline; do
3088   cat >conftest.$ac_ext <<_ACEOF
3089 #line $LINENO "configure"
3090 #include "confdefs.h"
3091 #ifndef __cplusplus
3092 static $ac_kw int static_foo () {return 0; }
3093 $ac_kw int foo () {return 0; }
3094 #endif
3095
3096 _ACEOF
3097 rm -f conftest.$ac_objext
3098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3099   (eval $ac_compile) 2>&5
3100   ac_status=$?
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); } &&
3103          { ac_try='test -s conftest.$ac_objext'
3104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105   (eval $ac_try) 2>&5
3106   ac_status=$?
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); }; }; then
3109   ac_cv_c_inline=$ac_kw; break
3110 else
3111   echo "$as_me: failed program was:" >&5
3112 cat conftest.$ac_ext >&5
3113 fi
3114 rm -f conftest.$ac_objext conftest.$ac_ext
3115 done
3116
3117 fi
3118 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3119 echo "${ECHO_T}$ac_cv_c_inline" >&6
3120 case $ac_cv_c_inline in
3121   inline | yes) ;;
3122   no)
3123 cat >>confdefs.h <<\_ACEOF
3124 #define inline
3125 _ACEOF
3126  ;;
3127   *)  cat >>confdefs.h <<_ACEOF
3128 #define inline $ac_cv_c_inline
3129 _ACEOF
3130  ;;
3131 esac
3132
3133 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3144                   inttypes.h stdint.h unistd.h
3145 do
3146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3147 echo "$as_me:$LINENO: checking for $ac_header" >&5
3148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3150   echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152   cat >conftest.$ac_ext <<_ACEOF
3153 #line $LINENO "configure"
3154 #include "confdefs.h"
3155 $ac_includes_default
3156
3157 #include <$ac_header>
3158 _ACEOF
3159 rm -f conftest.$ac_objext
3160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3161   (eval $ac_compile) 2>&5
3162   ac_status=$?
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); } &&
3165          { ac_try='test -s conftest.$ac_objext'
3166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167   (eval $ac_try) 2>&5
3168   ac_status=$?
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); }; }; then
3171   eval "$as_ac_Header=yes"
3172 else
3173   echo "$as_me: failed program was:" >&5
3174 cat conftest.$ac_ext >&5
3175 eval "$as_ac_Header=no"
3176 fi
3177 rm -f conftest.$ac_objext conftest.$ac_ext
3178 fi
3179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3182   cat >>confdefs.h <<_ACEOF
3183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3184 _ACEOF
3185
3186 fi
3187
3188 done
3189
3190
3191 echo "$as_me:$LINENO: checking for off_t" >&5
3192 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3193 if test "${ac_cv_type_off_t+set}" = set; then
3194   echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196   cat >conftest.$ac_ext <<_ACEOF
3197 #line $LINENO "configure"
3198 #include "confdefs.h"
3199 $ac_includes_default
3200 #ifdef F77_DUMMY_MAIN
3201 #  ifdef __cplusplus
3202      extern "C"
3203 #  endif
3204    int F77_DUMMY_MAIN() { return 1; }
3205 #endif
3206 int
3207 main ()
3208 {
3209 if ((off_t *) 0)
3210   return 0;
3211 if (sizeof (off_t))
3212   return 0;
3213   ;
3214   return 0;
3215 }
3216 _ACEOF
3217 rm -f conftest.$ac_objext
3218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3219   (eval $ac_compile) 2>&5
3220   ac_status=$?
3221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222   (exit $ac_status); } &&
3223          { ac_try='test -s conftest.$ac_objext'
3224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225   (eval $ac_try) 2>&5
3226   ac_status=$?
3227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); }; }; then
3229   ac_cv_type_off_t=yes
3230 else
3231   echo "$as_me: failed program was:" >&5
3232 cat conftest.$ac_ext >&5
3233 ac_cv_type_off_t=no
3234 fi
3235 rm -f conftest.$ac_objext conftest.$ac_ext
3236 fi
3237 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3238 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3239 if test $ac_cv_type_off_t = yes; then
3240   :
3241 else
3242
3243 cat >>confdefs.h <<_ACEOF
3244 #define off_t long
3245 _ACEOF
3246
3247 fi
3248
3249 echo "$as_me:$LINENO: checking for size_t" >&5
3250 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3251 if test "${ac_cv_type_size_t+set}" = set; then
3252   echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254   cat >conftest.$ac_ext <<_ACEOF
3255 #line $LINENO "configure"
3256 #include "confdefs.h"
3257 $ac_includes_default
3258 #ifdef F77_DUMMY_MAIN
3259 #  ifdef __cplusplus
3260      extern "C"
3261 #  endif
3262    int F77_DUMMY_MAIN() { return 1; }
3263 #endif
3264 int
3265 main ()
3266 {
3267 if ((size_t *) 0)
3268   return 0;
3269 if (sizeof (size_t))
3270   return 0;
3271   ;
3272   return 0;
3273 }
3274 _ACEOF
3275 rm -f conftest.$ac_objext
3276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3277   (eval $ac_compile) 2>&5
3278   ac_status=$?
3279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280   (exit $ac_status); } &&
3281          { ac_try='test -s conftest.$ac_objext'
3282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283   (eval $ac_try) 2>&5
3284   ac_status=$?
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); }; }; then
3287   ac_cv_type_size_t=yes
3288 else
3289   echo "$as_me: failed program was:" >&5
3290 cat conftest.$ac_ext >&5
3291 ac_cv_type_size_t=no
3292 fi
3293 rm -f conftest.$ac_objext conftest.$ac_ext
3294 fi
3295 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3296 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3297 if test $ac_cv_type_size_t = yes; then
3298   :
3299 else
3300
3301 cat >>confdefs.h <<_ACEOF
3302 #define size_t unsigned
3303 _ACEOF
3304
3305 fi
3306
3307 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3308 # for constant arguments.  Useless!
3309 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3310 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3311 if test "${ac_cv_working_alloca_h+set}" = set; then
3312   echo $ECHO_N "(cached) $ECHO_C" >&6
3313 else
3314   cat >conftest.$ac_ext <<_ACEOF
3315 #line $LINENO "configure"
3316 #include "confdefs.h"
3317 #include <alloca.h>
3318 #ifdef F77_DUMMY_MAIN
3319 #  ifdef __cplusplus
3320      extern "C"
3321 #  endif
3322    int F77_DUMMY_MAIN() { return 1; }
3323 #endif
3324 int
3325 main ()
3326 {
3327 char *p = (char *) alloca (2 * sizeof (int));
3328   ;
3329   return 0;
3330 }
3331 _ACEOF
3332 rm -f conftest.$ac_objext conftest$ac_exeext
3333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3334   (eval $ac_link) 2>&5
3335   ac_status=$?
3336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337   (exit $ac_status); } &&
3338          { ac_try='test -s conftest$ac_exeext'
3339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340   (eval $ac_try) 2>&5
3341   ac_status=$?
3342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343   (exit $ac_status); }; }; then
3344   ac_cv_working_alloca_h=yes
3345 else
3346   echo "$as_me: failed program was:" >&5
3347 cat conftest.$ac_ext >&5
3348 ac_cv_working_alloca_h=no
3349 fi
3350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3351 fi
3352 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3353 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3354 if test $ac_cv_working_alloca_h = yes; then
3355
3356 cat >>confdefs.h <<\_ACEOF
3357 #define HAVE_ALLOCA_H 1
3358 _ACEOF
3359
3360 fi
3361
3362 echo "$as_me:$LINENO: checking for alloca" >&5
3363 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3364 if test "${ac_cv_func_alloca_works+set}" = set; then
3365   echo $ECHO_N "(cached) $ECHO_C" >&6
3366 else
3367   cat >conftest.$ac_ext <<_ACEOF
3368 #line $LINENO "configure"
3369 #include "confdefs.h"
3370 #ifdef __GNUC__
3371 # define alloca __builtin_alloca
3372 #else
3373 # ifdef _MSC_VER
3374 #  include <malloc.h>
3375 #  define alloca _alloca
3376 # else
3377 #  if HAVE_ALLOCA_H
3378 #   include <alloca.h>
3379 #  else
3380 #   ifdef _AIX
3381  #pragma alloca
3382 #   else
3383 #    ifndef alloca /* predefined by HP cc +Olibcalls */
3384 char *alloca ();
3385 #    endif
3386 #   endif
3387 #  endif
3388 # endif
3389 #endif
3390
3391 #ifdef F77_DUMMY_MAIN
3392 #  ifdef __cplusplus
3393      extern "C"
3394 #  endif
3395    int F77_DUMMY_MAIN() { return 1; }
3396 #endif
3397 int
3398 main ()
3399 {
3400 char *p = (char *) alloca (1);
3401   ;
3402   return 0;
3403 }
3404 _ACEOF
3405 rm -f conftest.$ac_objext conftest$ac_exeext
3406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3407   (eval $ac_link) 2>&5
3408   ac_status=$?
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); } &&
3411          { ac_try='test -s conftest$ac_exeext'
3412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413   (eval $ac_try) 2>&5
3414   ac_status=$?
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); }; }; then
3417   ac_cv_func_alloca_works=yes
3418 else
3419   echo "$as_me: failed program was:" >&5
3420 cat conftest.$ac_ext >&5
3421 ac_cv_func_alloca_works=no
3422 fi
3423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3424 fi
3425 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3426 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3427
3428 if test $ac_cv_func_alloca_works = yes; then
3429
3430 cat >>confdefs.h <<\_ACEOF
3431 #define HAVE_ALLOCA 1
3432 _ACEOF
3433
3434 else
3435   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3436 # that cause trouble.  Some versions do not even contain alloca or
3437 # contain a buggy version.  If you still want to use their alloca,
3438 # use ar to extract alloca.o from them instead of compiling alloca.c.
3439
3440 ALLOCA=alloca.$ac_objext
3441
3442 cat >>confdefs.h <<\_ACEOF
3443 #define C_ALLOCA 1
3444 _ACEOF
3445
3446
3447 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3448 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3449 if test "${ac_cv_os_cray+set}" = set; then
3450   echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452   cat >conftest.$ac_ext <<_ACEOF
3453 #line $LINENO "configure"
3454 #include "confdefs.h"
3455 #if defined(CRAY) && ! defined(CRAY2)
3456 webecray
3457 #else
3458 wenotbecray
3459 #endif
3460
3461 _ACEOF
3462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3463   egrep "webecray" >/dev/null 2>&1; then
3464   ac_cv_os_cray=yes
3465 else
3466   ac_cv_os_cray=no
3467 fi
3468 rm -f conftest*
3469
3470 fi
3471 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3472 echo "${ECHO_T}$ac_cv_os_cray" >&6
3473 if test $ac_cv_os_cray = yes; then
3474   for ac_func in _getb67 GETB67 getb67; do
3475     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3476 echo "$as_me:$LINENO: checking for $ac_func" >&5
3477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3478 if eval "test \"\${$as_ac_var+set}\" = set"; then
3479   echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481   cat >conftest.$ac_ext <<_ACEOF
3482 #line $LINENO "configure"
3483 #include "confdefs.h"
3484 /* System header to define __stub macros and hopefully few prototypes,
3485     which can conflict with char $ac_func (); below.  */
3486 #include <assert.h>
3487 /* Override any gcc2 internal prototype to avoid an error.  */
3488 #ifdef __cplusplus
3489 extern "C"
3490 #endif
3491 /* We use char because int might match the return type of a gcc2
3492    builtin and then its argument prototype would still apply.  */
3493 char $ac_func ();
3494 char (*f) ();
3495
3496 #ifdef F77_DUMMY_MAIN
3497 #  ifdef __cplusplus
3498      extern "C"
3499 #  endif
3500    int F77_DUMMY_MAIN() { return 1; }
3501 #endif
3502 int
3503 main ()
3504 {
3505 /* The GNU C library defines this for functions which it implements
3506     to always fail with ENOSYS.  Some functions are actually named
3507     something starting with __ and the normal name is an alias.  */
3508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3509 choke me
3510 #else
3511 f = $ac_func;
3512 #endif
3513
3514   ;
3515   return 0;
3516 }
3517 _ACEOF
3518 rm -f conftest.$ac_objext conftest$ac_exeext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3520   (eval $ac_link) 2>&5
3521   ac_status=$?
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); } &&
3524          { ac_try='test -s conftest$ac_exeext'
3525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526   (eval $ac_try) 2>&5
3527   ac_status=$?
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); }; }; then
3530   eval "$as_ac_var=yes"
3531 else
3532   echo "$as_me: failed program was:" >&5
3533 cat conftest.$ac_ext >&5
3534 eval "$as_ac_var=no"
3535 fi
3536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3537 fi
3538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3540 if test `eval echo '${'$as_ac_var'}'` = yes; then
3541
3542 cat >>confdefs.h <<_ACEOF
3543 #define CRAY_STACKSEG_END $ac_func
3544 _ACEOF
3545
3546     break
3547 fi
3548
3549   done
3550 fi
3551
3552 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3553 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3554 if test "${ac_cv_c_stack_direction+set}" = set; then
3555   echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557   if test "$cross_compiling" = yes; then
3558   ac_cv_c_stack_direction=0
3559 else
3560   cat >conftest.$ac_ext <<_ACEOF
3561 #line $LINENO "configure"
3562 #include "confdefs.h"
3563 int
3564 find_stack_direction ()
3565 {
3566   static char *addr = 0;
3567   auto char dummy;
3568   if (addr == 0)
3569     {
3570       addr = &dummy;
3571       return find_stack_direction ();
3572     }
3573   else
3574     return (&dummy > addr) ? 1 : -1;
3575 }
3576
3577 int
3578 main ()
3579 {
3580   exit (find_stack_direction () < 0);
3581 }
3582 _ACEOF
3583 rm -f conftest$ac_exeext
3584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3585   (eval $ac_link) 2>&5
3586   ac_status=$?
3587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590   (eval $ac_try) 2>&5
3591   ac_status=$?
3592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593   (exit $ac_status); }; }; then
3594   ac_cv_c_stack_direction=1
3595 else
3596   echo "$as_me: program exited with status $ac_status" >&5
3597 echo "$as_me: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3599 ( exit $ac_status )
3600 ac_cv_c_stack_direction=-1
3601 fi
3602 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3603 fi
3604 fi
3605 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3606 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3607
3608 cat >>confdefs.h <<_ACEOF
3609 #define STACK_DIRECTION $ac_cv_c_stack_direction
3610 _ACEOF
3611
3612
3613 fi
3614
3615
3616
3617 for ac_header in stdlib.h unistd.h
3618 do
3619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3621   echo "$as_me:$LINENO: checking for $ac_header" >&5
3622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 fi
3626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3628 else
3629   # Is the header compilable?
3630 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3632 cat >conftest.$ac_ext <<_ACEOF
3633 #line $LINENO "configure"
3634 #include "confdefs.h"
3635 $ac_includes_default
3636 #include <$ac_header>
3637 _ACEOF
3638 rm -f conftest.$ac_objext
3639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3640   (eval $ac_compile) 2>&5
3641   ac_status=$?
3642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643   (exit $ac_status); } &&
3644          { ac_try='test -s conftest.$ac_objext'
3645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646   (eval $ac_try) 2>&5
3647   ac_status=$?
3648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649   (exit $ac_status); }; }; then
3650   ac_header_compiler=yes
3651 else
3652   echo "$as_me: failed program was:" >&5
3653 cat conftest.$ac_ext >&5
3654 ac_header_compiler=no
3655 fi
3656 rm -f conftest.$ac_objext conftest.$ac_ext
3657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3658 echo "${ECHO_T}$ac_header_compiler" >&6
3659
3660 # Is the header present?
3661 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3663 cat >conftest.$ac_ext <<_ACEOF
3664 #line $LINENO "configure"
3665 #include "confdefs.h"
3666 #include <$ac_header>
3667 _ACEOF
3668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3669   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3670   ac_status=$?
3671   egrep -v '^ *\+' conftest.er1 >conftest.err
3672   rm -f conftest.er1
3673   cat conftest.err >&5
3674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675   (exit $ac_status); } >/dev/null; then
3676   if test -s conftest.err; then
3677     ac_cpp_err=$ac_c_preproc_warn_flag
3678   else
3679     ac_cpp_err=
3680   fi
3681 else
3682   ac_cpp_err=yes
3683 fi
3684 if test -z "$ac_cpp_err"; then
3685   ac_header_preproc=yes
3686 else
3687   echo "$as_me: failed program was:" >&5
3688   cat conftest.$ac_ext >&5
3689   ac_header_preproc=no
3690 fi
3691 rm -f conftest.err conftest.$ac_ext
3692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3693 echo "${ECHO_T}$ac_header_preproc" >&6
3694
3695 # So?  What about this header?
3696 case $ac_header_compiler:$ac_header_preproc in
3697   yes:no )
3698     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3700     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3702   no:yes )
3703     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3704 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3705     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3706 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3707     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3709 esac
3710 echo "$as_me:$LINENO: checking for $ac_header" >&5
3711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3713   echo $ECHO_N "(cached) $ECHO_C" >&6
3714 else
3715   eval "$as_ac_Header=$ac_header_preproc"
3716 fi
3717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3719
3720 fi
3721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3722   cat >>confdefs.h <<_ACEOF
3723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3724 _ACEOF
3725
3726 fi
3727
3728 done
3729
3730
3731 for ac_func in getpagesize
3732 do
3733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3734 echo "$as_me:$LINENO: checking for $ac_func" >&5
3735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3736 if eval "test \"\${$as_ac_var+set}\" = set"; then
3737   echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739   cat >conftest.$ac_ext <<_ACEOF
3740 #line $LINENO "configure"
3741 #include "confdefs.h"
3742 /* System header to define __stub macros and hopefully few prototypes,
3743     which can conflict with char $ac_func (); below.  */
3744 #include <assert.h>
3745 /* Override any gcc2 internal prototype to avoid an error.  */
3746 #ifdef __cplusplus
3747 extern "C"
3748 #endif
3749 /* We use char because int might match the return type of a gcc2
3750    builtin and then its argument prototype would still apply.  */
3751 char $ac_func ();
3752 char (*f) ();
3753
3754 #ifdef F77_DUMMY_MAIN
3755 #  ifdef __cplusplus
3756      extern "C"
3757 #  endif
3758    int F77_DUMMY_MAIN() { return 1; }
3759 #endif
3760 int
3761 main ()
3762 {
3763 /* The GNU C library defines this for functions which it implements
3764     to always fail with ENOSYS.  Some functions are actually named
3765     something starting with __ and the normal name is an alias.  */
3766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3767 choke me
3768 #else
3769 f = $ac_func;
3770 #endif
3771
3772   ;
3773   return 0;
3774 }
3775 _ACEOF
3776 rm -f conftest.$ac_objext conftest$ac_exeext
3777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3778   (eval $ac_link) 2>&5
3779   ac_status=$?
3780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781   (exit $ac_status); } &&
3782          { ac_try='test -s conftest$ac_exeext'
3783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784   (eval $ac_try) 2>&5
3785   ac_status=$?
3786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787   (exit $ac_status); }; }; then
3788   eval "$as_ac_var=yes"
3789 else
3790   echo "$as_me: failed program was:" >&5
3791 cat conftest.$ac_ext >&5
3792 eval "$as_ac_var=no"
3793 fi
3794 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3795 fi
3796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3798 if test `eval echo '${'$as_ac_var'}'` = yes; then
3799   cat >>confdefs.h <<_ACEOF
3800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3801 _ACEOF
3802
3803 fi
3804 done
3805
3806 echo "$as_me:$LINENO: checking for working mmap" >&5
3807 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
3808 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3809   echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811   if test "$cross_compiling" = yes; then
3812   ac_cv_func_mmap_fixed_mapped=no
3813 else
3814   cat >conftest.$ac_ext <<_ACEOF
3815 #line $LINENO "configure"
3816 #include "confdefs.h"
3817 $ac_includes_default
3818 /* malloc might have been renamed as rpl_malloc. */
3819 #undef malloc
3820
3821 /* Thanks to Mike Haertel and Jim Avera for this test.
3822    Here is a matrix of mmap possibilities:
3823         mmap private not fixed
3824         mmap private fixed at somewhere currently unmapped
3825         mmap private fixed at somewhere already mapped
3826         mmap shared not fixed
3827         mmap shared fixed at somewhere currently unmapped
3828         mmap shared fixed at somewhere already mapped
3829    For private mappings, we should verify that changes cannot be read()
3830    back from the file, nor mmap's back from the file at a different
3831    address.  (There have been systems where private was not correctly
3832    implemented like the infamous i386 svr4.0, and systems where the
3833    VM page cache was not coherent with the file system buffer cache
3834    like early versions of FreeBSD and possibly contemporary NetBSD.)
3835    For shared mappings, we should conversely verify that changes get
3836    propagated back to all the places they're supposed to be.
3837
3838    Grep wants private fixed already mapped.
3839    The main things grep needs to know about mmap are:
3840    * does it exist and is it safe to write into the mmap'd area
3841    * how to use it (BSD variants)  */
3842
3843 #include <fcntl.h>
3844 #include <sys/mman.h>
3845
3846 #if !STDC_HEADERS && !HAVE_STDLIB_H
3847 char *malloc ();
3848 #endif
3849
3850 /* This mess was copied from the GNU getpagesize.h.  */
3851 #if !HAVE_GETPAGESIZE
3852 /* Assume that all systems that can run configure have sys/param.h.  */
3853 # if !HAVE_SYS_PARAM_H
3854 #  define HAVE_SYS_PARAM_H 1
3855 # endif
3856
3857 # ifdef _SC_PAGESIZE
3858 #  define getpagesize() sysconf(_SC_PAGESIZE)
3859 # else /* no _SC_PAGESIZE */
3860 #  if HAVE_SYS_PARAM_H
3861 #   include <sys/param.h>
3862 #   ifdef EXEC_PAGESIZE
3863 #    define getpagesize() EXEC_PAGESIZE
3864 #   else /* no EXEC_PAGESIZE */
3865 #    ifdef NBPG
3866 #     define getpagesize() NBPG * CLSIZE
3867 #     ifndef CLSIZE
3868 #      define CLSIZE 1
3869 #     endif /* no CLSIZE */
3870 #    else /* no NBPG */
3871 #     ifdef NBPC
3872 #      define getpagesize() NBPC
3873 #     else /* no NBPC */
3874 #      ifdef PAGESIZE
3875 #       define getpagesize() PAGESIZE
3876 #      endif /* PAGESIZE */
3877 #     endif /* no NBPC */
3878 #    endif /* no NBPG */
3879 #   endif /* no EXEC_PAGESIZE */
3880 #  else /* no HAVE_SYS_PARAM_H */
3881 #   define getpagesize() 8192   /* punt totally */
3882 #  endif /* no HAVE_SYS_PARAM_H */
3883 # endif /* no _SC_PAGESIZE */
3884
3885 #endif /* no HAVE_GETPAGESIZE */
3886
3887 int
3888 main ()
3889 {
3890   char *data, *data2, *data3;
3891   int i, pagesize;
3892   int fd;
3893
3894   pagesize = getpagesize ();
3895
3896   /* First, make a file with some known garbage in it. */
3897   data = (char *) malloc (pagesize);
3898   if (!data)
3899     exit (1);
3900   for (i = 0; i < pagesize; ++i)
3901     *(data + i) = rand ();
3902   umask (0);
3903   fd = creat ("conftest.mmap", 0600);
3904   if (fd < 0)
3905     exit (1);
3906   if (write (fd, data, pagesize) != pagesize)
3907     exit (1);
3908   close (fd);
3909
3910   /* Next, try to mmap the file at a fixed address which already has
3911      something else allocated at it.  If we can, also make sure that
3912      we see the same garbage.  */
3913   fd = open ("conftest.mmap", O_RDWR);
3914   if (fd < 0)
3915     exit (1);
3916   data2 = (char *) malloc (2 * pagesize);
3917   if (!data2)
3918     exit (1);
3919   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3920   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3921                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
3922     exit (1);
3923   for (i = 0; i < pagesize; ++i)
3924     if (*(data + i) != *(data2 + i))
3925       exit (1);
3926
3927   /* Finally, make sure that changes to the mapped area do not
3928      percolate back to the file as seen by read().  (This is a bug on
3929      some variants of i386 svr4.0.)  */
3930   for (i = 0; i < pagesize; ++i)
3931     *(data2 + i) = *(data2 + i) + 1;
3932   data3 = (char *) malloc (pagesize);
3933   if (!data3)
3934     exit (1);
3935   if (read (fd, data3, pagesize) != pagesize)
3936     exit (1);
3937   for (i = 0; i < pagesize; ++i)
3938     if (*(data + i) != *(data3 + i))
3939       exit (1);
3940   close (fd);
3941   exit (0);
3942 }
3943 _ACEOF
3944 rm -f conftest$ac_exeext
3945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3946   (eval $ac_link) 2>&5
3947   ac_status=$?
3948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951   (eval $ac_try) 2>&5
3952   ac_status=$?
3953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954   (exit $ac_status); }; }; then
3955   ac_cv_func_mmap_fixed_mapped=yes
3956 else
3957   echo "$as_me: program exited with status $ac_status" >&5
3958 echo "$as_me: failed program was:" >&5
3959 cat conftest.$ac_ext >&5
3960 ( exit $ac_status )
3961 ac_cv_func_mmap_fixed_mapped=no
3962 fi
3963 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3964 fi
3965 fi
3966 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
3967 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3968 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3969
3970 cat >>confdefs.h <<\_ACEOF
3971 #define HAVE_MMAP 1
3972 _ACEOF
3973
3974 fi
3975 rm -f conftest.mmap
3976
3977
3978     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
3979 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
3980 if test "${ac_cv_gnu_library_2_1+set}" = set; then
3981   echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983   cat >conftest.$ac_ext <<_ACEOF
3984 #line $LINENO "configure"
3985 #include "confdefs.h"
3986
3987 #include <features.h>
3988 #ifdef __GNU_LIBRARY__
3989  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
3990   Lucky GNU user
3991  #endif
3992 #endif
3993
3994 _ACEOF
3995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3996   egrep "Lucky GNU user" >/dev/null 2>&1; then
3997   ac_cv_gnu_library_2_1=yes
3998 else
3999   ac_cv_gnu_library_2_1=no
4000 fi
4001 rm -f conftest*
4002
4003
4004
4005 fi
4006 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
4007 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
4008
4009     GLIBC21="$ac_cv_gnu_library_2_1"
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
4024 stdlib.h string.h unistd.h sys/param.h
4025 do
4026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4028   echo "$as_me:$LINENO: checking for $ac_header" >&5
4029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4031   echo $ECHO_N "(cached) $ECHO_C" >&6
4032 fi
4033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4035 else
4036   # Is the header compilable?
4037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4039 cat >conftest.$ac_ext <<_ACEOF
4040 #line $LINENO "configure"
4041 #include "confdefs.h"
4042 $ac_includes_default
4043 #include <$ac_header>
4044 _ACEOF
4045 rm -f conftest.$ac_objext
4046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4047   (eval $ac_compile) 2>&5
4048   ac_status=$?
4049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050   (exit $ac_status); } &&
4051          { ac_try='test -s conftest.$ac_objext'
4052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4053   (eval $ac_try) 2>&5
4054   ac_status=$?
4055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056   (exit $ac_status); }; }; then
4057   ac_header_compiler=yes
4058 else
4059   echo "$as_me: failed program was:" >&5
4060 cat conftest.$ac_ext >&5
4061 ac_header_compiler=no
4062 fi
4063 rm -f conftest.$ac_objext conftest.$ac_ext
4064 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4065 echo "${ECHO_T}$ac_header_compiler" >&6
4066
4067 # Is the header present?
4068 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4070 cat >conftest.$ac_ext <<_ACEOF
4071 #line $LINENO "configure"
4072 #include "confdefs.h"
4073 #include <$ac_header>
4074 _ACEOF
4075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4076   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4077   ac_status=$?
4078   egrep -v '^ *\+' conftest.er1 >conftest.err
4079   rm -f conftest.er1
4080   cat conftest.err >&5
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); } >/dev/null; then
4083   if test -s conftest.err; then
4084     ac_cpp_err=$ac_c_preproc_warn_flag
4085   else
4086     ac_cpp_err=
4087   fi
4088 else
4089   ac_cpp_err=yes
4090 fi
4091 if test -z "$ac_cpp_err"; then
4092   ac_header_preproc=yes
4093 else
4094   echo "$as_me: failed program was:" >&5
4095   cat conftest.$ac_ext >&5
4096   ac_header_preproc=no
4097 fi
4098 rm -f conftest.err conftest.$ac_ext
4099 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4100 echo "${ECHO_T}$ac_header_preproc" >&6
4101
4102 # So?  What about this header?
4103 case $ac_header_compiler:$ac_header_preproc in
4104   yes:no )
4105     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4107     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4109   no:yes )
4110     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4112     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4116 esac
4117 echo "$as_me:$LINENO: checking for $ac_header" >&5
4118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4120   echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122   eval "$as_ac_Header=$ac_header_preproc"
4123 fi
4124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4126
4127 fi
4128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4129   cat >>confdefs.h <<_ACEOF
4130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4131 _ACEOF
4132
4133 fi
4134
4135 done
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
4159 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
4160 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
4161 do
4162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4163 echo "$as_me:$LINENO: checking for $ac_func" >&5
4164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4165 if eval "test \"\${$as_ac_var+set}\" = set"; then
4166   echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168   cat >conftest.$ac_ext <<_ACEOF
4169 #line $LINENO "configure"
4170 #include "confdefs.h"
4171 /* System header to define __stub macros and hopefully few prototypes,
4172     which can conflict with char $ac_func (); below.  */
4173 #include <assert.h>
4174 /* Override any gcc2 internal prototype to avoid an error.  */
4175 #ifdef __cplusplus
4176 extern "C"
4177 #endif
4178 /* We use char because int might match the return type of a gcc2
4179    builtin and then its argument prototype would still apply.  */
4180 char $ac_func ();
4181 char (*f) ();
4182
4183 #ifdef F77_DUMMY_MAIN
4184 #  ifdef __cplusplus
4185      extern "C"
4186 #  endif
4187    int F77_DUMMY_MAIN() { return 1; }
4188 #endif
4189 int
4190 main ()
4191 {
4192 /* The GNU C library defines this for functions which it implements
4193     to always fail with ENOSYS.  Some functions are actually named
4194     something starting with __ and the normal name is an alias.  */
4195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4196 choke me
4197 #else
4198 f = $ac_func;
4199 #endif
4200
4201   ;
4202   return 0;
4203 }
4204 _ACEOF
4205 rm -f conftest.$ac_objext conftest$ac_exeext
4206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4207   (eval $ac_link) 2>&5
4208   ac_status=$?
4209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210   (exit $ac_status); } &&
4211          { ac_try='test -s conftest$ac_exeext'
4212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213   (eval $ac_try) 2>&5
4214   ac_status=$?
4215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216   (exit $ac_status); }; }; then
4217   eval "$as_ac_var=yes"
4218 else
4219   echo "$as_me: failed program was:" >&5
4220 cat conftest.$ac_ext >&5
4221 eval "$as_ac_var=no"
4222 fi
4223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4224 fi
4225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4227 if test `eval echo '${'$as_ac_var'}'` = yes; then
4228   cat >>confdefs.h <<_ACEOF
4229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4230 _ACEOF
4231
4232 fi
4233 done
4234
4235
4236
4237
4238
4239 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4240 if test "${with_libiconv_prefix+set}" = set; then
4241   withval="$with_libiconv_prefix"
4242
4243     for dir in `echo "$withval" | tr : ' '`; do
4244       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
4245       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
4246     done
4247
4248 fi;
4249
4250   echo "$as_me:$LINENO: checking for iconv" >&5
4251 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
4252 if test "${am_cv_func_iconv+set}" = set; then
4253   echo $ECHO_N "(cached) $ECHO_C" >&6
4254 else
4255
4256     am_cv_func_iconv="no, consider installing GNU libiconv"
4257     am_cv_lib_iconv=no
4258     cat >conftest.$ac_ext <<_ACEOF
4259 #line $LINENO "configure"
4260 #include "confdefs.h"
4261 #include <stdlib.h>
4262 #include <iconv.h>
4263 #ifdef F77_DUMMY_MAIN
4264 #  ifdef __cplusplus
4265      extern "C"
4266 #  endif
4267    int F77_DUMMY_MAIN() { return 1; }
4268 #endif
4269 int
4270 main ()
4271 {
4272 iconv_t cd = iconv_open("","");
4273        iconv(cd,NULL,NULL,NULL,NULL);
4274        iconv_close(cd);
4275   ;
4276   return 0;
4277 }
4278 _ACEOF
4279 rm -f conftest.$ac_objext conftest$ac_exeext
4280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4281   (eval $ac_link) 2>&5
4282   ac_status=$?
4283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284   (exit $ac_status); } &&
4285          { ac_try='test -s conftest$ac_exeext'
4286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4287   (eval $ac_try) 2>&5
4288   ac_status=$?
4289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290   (exit $ac_status); }; }; then
4291   am_cv_func_iconv=yes
4292 else
4293   echo "$as_me: failed program was:" >&5
4294 cat conftest.$ac_ext >&5
4295 fi
4296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4297     if test "$am_cv_func_iconv" != yes; then
4298       am_save_LIBS="$LIBS"
4299       LIBS="$LIBS -liconv"
4300       cat >conftest.$ac_ext <<_ACEOF
4301 #line $LINENO "configure"
4302 #include "confdefs.h"
4303 #include <stdlib.h>
4304 #include <iconv.h>
4305 #ifdef F77_DUMMY_MAIN
4306 #  ifdef __cplusplus
4307      extern "C"
4308 #  endif
4309    int F77_DUMMY_MAIN() { return 1; }
4310 #endif
4311 int
4312 main ()
4313 {
4314 iconv_t cd = iconv_open("","");
4315          iconv(cd,NULL,NULL,NULL,NULL);
4316          iconv_close(cd);
4317   ;
4318   return 0;
4319 }
4320 _ACEOF
4321 rm -f conftest.$ac_objext conftest$ac_exeext
4322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4323   (eval $ac_link) 2>&5
4324   ac_status=$?
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); } &&
4327          { ac_try='test -s conftest$ac_exeext'
4328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329   (eval $ac_try) 2>&5
4330   ac_status=$?
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); }; }; then
4333   am_cv_lib_iconv=yes
4334         am_cv_func_iconv=yes
4335 else
4336   echo "$as_me: failed program was:" >&5
4337 cat conftest.$ac_ext >&5
4338 fi
4339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4340       LIBS="$am_save_LIBS"
4341     fi
4342
4343 fi
4344 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
4345 echo "${ECHO_T}$am_cv_func_iconv" >&6
4346   if test "$am_cv_func_iconv" = yes; then
4347
4348 cat >>confdefs.h <<\_ACEOF
4349 #define HAVE_ICONV 1
4350 _ACEOF
4351
4352     echo "$as_me:$LINENO: checking for iconv declaration" >&5
4353 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
4354     if test "${am_cv_proto_iconv+set}" = set; then
4355   echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357
4358       cat >conftest.$ac_ext <<_ACEOF
4359 #line $LINENO "configure"
4360 #include "confdefs.h"
4361
4362 #include <stdlib.h>
4363 #include <iconv.h>
4364 extern
4365 #ifdef __cplusplus
4366 "C"
4367 #endif
4368 #if defined(__STDC__) || defined(__cplusplus)
4369 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4370 #else
4371 size_t iconv();
4372 #endif
4373
4374 #ifdef F77_DUMMY_MAIN
4375 #  ifdef __cplusplus
4376      extern "C"
4377 #  endif
4378    int F77_DUMMY_MAIN() { return 1; }
4379 #endif
4380 int
4381 main ()
4382 {
4383
4384   ;
4385   return 0;
4386 }
4387 _ACEOF
4388 rm -f conftest.$ac_objext
4389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4390   (eval $ac_compile) 2>&5
4391   ac_status=$?
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); } &&
4394          { ac_try='test -s conftest.$ac_objext'
4395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396   (eval $ac_try) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }; }; then
4400   am_cv_proto_iconv_arg1=""
4401 else
4402   echo "$as_me: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4404 am_cv_proto_iconv_arg1="const"
4405 fi
4406 rm -f conftest.$ac_objext conftest.$ac_ext
4407       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);"
4408 fi
4409
4410     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4411     echo "$as_me:$LINENO: result: ${ac_t:-
4412          }$am_cv_proto_iconv" >&5
4413 echo "${ECHO_T}${ac_t:-
4414          }$am_cv_proto_iconv" >&6
4415
4416 cat >>confdefs.h <<_ACEOF
4417 #define ICONV_CONST $am_cv_proto_iconv_arg1
4418 _ACEOF
4419
4420   fi
4421   LIBICONV=
4422   if test "$am_cv_lib_iconv" = yes; then
4423     LIBICONV="-liconv"
4424   fi
4425
4426
4427
4428   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
4429 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
4430 if test "${am_cv_langinfo_codeset+set}" = set; then
4431   echo $ECHO_N "(cached) $ECHO_C" >&6
4432 else
4433   cat >conftest.$ac_ext <<_ACEOF
4434 #line $LINENO "configure"
4435 #include "confdefs.h"
4436 #include <langinfo.h>
4437 #ifdef F77_DUMMY_MAIN
4438 #  ifdef __cplusplus
4439      extern "C"
4440 #  endif
4441    int F77_DUMMY_MAIN() { return 1; }
4442 #endif
4443 int
4444 main ()
4445 {
4446 char* cs = nl_langinfo(CODESET);
4447   ;
4448   return 0;
4449 }
4450 _ACEOF
4451 rm -f conftest.$ac_objext conftest$ac_exeext
4452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4453   (eval $ac_link) 2>&5
4454   ac_status=$?
4455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456   (exit $ac_status); } &&
4457          { ac_try='test -s conftest$ac_exeext'
4458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459   (eval $ac_try) 2>&5
4460   ac_status=$?
4461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462   (exit $ac_status); }; }; then
4463   am_cv_langinfo_codeset=yes
4464 else
4465   echo "$as_me: failed program was:" >&5
4466 cat conftest.$ac_ext >&5
4467 am_cv_langinfo_codeset=no
4468 fi
4469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4470
4471 fi
4472 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
4473 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
4474   if test $am_cv_langinfo_codeset = yes; then
4475
4476 cat >>confdefs.h <<\_ACEOF
4477 #define HAVE_LANGINFO_CODESET 1
4478 _ACEOF
4479
4480   fi
4481
4482    if test $ac_cv_header_locale_h = yes; then
4483     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4484 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4485 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4486   echo $ECHO_N "(cached) $ECHO_C" >&6
4487 else
4488   cat >conftest.$ac_ext <<_ACEOF
4489 #line $LINENO "configure"
4490 #include "confdefs.h"
4491 #include <locale.h>
4492 #ifdef F77_DUMMY_MAIN
4493 #  ifdef __cplusplus
4494      extern "C"
4495 #  endif
4496    int F77_DUMMY_MAIN() { return 1; }
4497 #endif
4498 int
4499 main ()
4500 {
4501 return LC_MESSAGES
4502   ;
4503   return 0;
4504 }
4505 _ACEOF
4506 rm -f conftest.$ac_objext conftest$ac_exeext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4508   (eval $ac_link) 2>&5
4509   ac_status=$?
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); } &&
4512          { ac_try='test -s conftest$ac_exeext'
4513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514   (eval $ac_try) 2>&5
4515   ac_status=$?
4516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517   (exit $ac_status); }; }; then
4518   am_cv_val_LC_MESSAGES=yes
4519 else
4520   echo "$as_me: failed program was:" >&5
4521 cat conftest.$ac_ext >&5
4522 am_cv_val_LC_MESSAGES=no
4523 fi
4524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4525 fi
4526 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4527 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4528     if test $am_cv_val_LC_MESSAGES = yes; then
4529
4530 cat >>confdefs.h <<\_ACEOF
4531 #define HAVE_LC_MESSAGES 1
4532 _ACEOF
4533
4534     fi
4535   fi
4536    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4537 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4538         # Check whether --enable-nls or --disable-nls was given.
4539 if test "${enable_nls+set}" = set; then
4540   enableval="$enable_nls"
4541   USE_NLS=$enableval
4542 else
4543   USE_NLS=yes
4544 fi;
4545     echo "$as_me:$LINENO: result: $USE_NLS" >&5
4546 echo "${ECHO_T}$USE_NLS" >&6
4547
4548
4549     BUILD_INCLUDED_LIBINTL=no
4550     USE_INCLUDED_LIBINTL=no
4551     INTLLIBS=
4552
4553         if test "$USE_NLS" = "yes"; then
4554
4555 cat >>confdefs.h <<\_ACEOF
4556 #define ENABLE_NLS 1
4557 _ACEOF
4558
4559       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4560 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4561
4562 # Check whether --with-included-gettext or --without-included-gettext was given.
4563 if test "${with_included_gettext+set}" = set; then
4564   withval="$with_included_gettext"
4565   nls_cv_force_use_gnu_gettext=$withval
4566 else
4567   nls_cv_force_use_gnu_gettext=no
4568 fi;
4569       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4570 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4571
4572       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4573       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4574                                 CATOBJEXT=NONE
4575
4576
4577
4578
4579         if test "${ac_cv_header_libintl_h+set}" = set; then
4580   echo "$as_me:$LINENO: checking for libintl.h" >&5
4581 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4582 if test "${ac_cv_header_libintl_h+set}" = set; then
4583   echo $ECHO_N "(cached) $ECHO_C" >&6
4584 fi
4585 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4586 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4587 else
4588   # Is the header compilable?
4589 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4590 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4591 cat >conftest.$ac_ext <<_ACEOF
4592 #line $LINENO "configure"
4593 #include "confdefs.h"
4594 $ac_includes_default
4595 #include <libintl.h>
4596 _ACEOF
4597 rm -f conftest.$ac_objext
4598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4599   (eval $ac_compile) 2>&5
4600   ac_status=$?
4601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602   (exit $ac_status); } &&
4603          { ac_try='test -s conftest.$ac_objext'
4604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605   (eval $ac_try) 2>&5
4606   ac_status=$?
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); }; }; then
4609   ac_header_compiler=yes
4610 else
4611   echo "$as_me: failed program was:" >&5
4612 cat conftest.$ac_ext >&5
4613 ac_header_compiler=no
4614 fi
4615 rm -f conftest.$ac_objext conftest.$ac_ext
4616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4617 echo "${ECHO_T}$ac_header_compiler" >&6
4618
4619 # Is the header present?
4620 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4621 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4622 cat >conftest.$ac_ext <<_ACEOF
4623 #line $LINENO "configure"
4624 #include "confdefs.h"
4625 #include <libintl.h>
4626 _ACEOF
4627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4628   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4629   ac_status=$?
4630   egrep -v '^ *\+' conftest.er1 >conftest.err
4631   rm -f conftest.er1
4632   cat conftest.err >&5
4633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634   (exit $ac_status); } >/dev/null; then
4635   if test -s conftest.err; then
4636     ac_cpp_err=$ac_c_preproc_warn_flag
4637   else
4638     ac_cpp_err=
4639   fi
4640 else
4641   ac_cpp_err=yes
4642 fi
4643 if test -z "$ac_cpp_err"; then
4644   ac_header_preproc=yes
4645 else
4646   echo "$as_me: failed program was:" >&5
4647   cat conftest.$ac_ext >&5
4648   ac_header_preproc=no
4649 fi
4650 rm -f conftest.err conftest.$ac_ext
4651 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4652 echo "${ECHO_T}$ac_header_preproc" >&6
4653
4654 # So?  What about this header?
4655 case $ac_header_compiler:$ac_header_preproc in
4656   yes:no )
4657     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4658 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4659     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4660 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
4661   no:yes )
4662     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4663 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4664     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4665 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4666     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4667 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
4668 esac
4669 echo "$as_me:$LINENO: checking for libintl.h" >&5
4670 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4671 if test "${ac_cv_header_libintl_h+set}" = set; then
4672   echo $ECHO_N "(cached) $ECHO_C" >&6
4673 else
4674   ac_cv_header_libintl_h=$ac_header_preproc
4675 fi
4676 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4677 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4678
4679 fi
4680 if test $ac_cv_header_libintl_h = yes; then
4681   echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
4682 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
4683 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
4684   echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686   cat >conftest.$ac_ext <<_ACEOF
4687 #line $LINENO "configure"
4688 #include "confdefs.h"
4689 #include <libintl.h>
4690 extern int _nl_msg_cat_cntr;
4691 #ifdef F77_DUMMY_MAIN
4692 #  ifdef __cplusplus
4693      extern "C"
4694 #  endif
4695    int F77_DUMMY_MAIN() { return 1; }
4696 #endif
4697 int
4698 main ()
4699 {
4700 bindtextdomain ("", "");
4701 return (int) gettext ("") + _nl_msg_cat_cntr
4702   ;
4703   return 0;
4704 }
4705 _ACEOF
4706 rm -f conftest.$ac_objext conftest$ac_exeext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4708   (eval $ac_link) 2>&5
4709   ac_status=$?
4710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711   (exit $ac_status); } &&
4712          { ac_try='test -s conftest$ac_exeext'
4713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714   (eval $ac_try) 2>&5
4715   ac_status=$?
4716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717   (exit $ac_status); }; }; then
4718   gt_cv_func_gnugettext1_libc=yes
4719 else
4720   echo "$as_me: failed program was:" >&5
4721 cat conftest.$ac_ext >&5
4722 gt_cv_func_gnugettext1_libc=no
4723 fi
4724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4725 fi
4726 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
4727 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
4728
4729            if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
4730              echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
4731 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
4732 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
4733   echo $ECHO_N "(cached) $ECHO_C" >&6
4734 else
4735   gt_save_LIBS="$LIBS"
4736                 LIBS="$LIBS -lintl $LIBICONV"
4737                 cat >conftest.$ac_ext <<_ACEOF
4738 #line $LINENO "configure"
4739 #include "confdefs.h"
4740 #include <libintl.h>
4741 extern int _nl_msg_cat_cntr;
4742 #ifdef F77_DUMMY_MAIN
4743 #  ifdef __cplusplus
4744      extern "C"
4745 #  endif
4746    int F77_DUMMY_MAIN() { return 1; }
4747 #endif
4748 int
4749 main ()
4750 {
4751 bindtextdomain ("", "");
4752 return (int) gettext ("") + _nl_msg_cat_cntr
4753   ;
4754   return 0;
4755 }
4756 _ACEOF
4757 rm -f conftest.$ac_objext conftest$ac_exeext
4758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4759   (eval $ac_link) 2>&5
4760   ac_status=$?
4761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762   (exit $ac_status); } &&
4763          { ac_try='test -s conftest$ac_exeext'
4764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765   (eval $ac_try) 2>&5
4766   ac_status=$?
4767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768   (exit $ac_status); }; }; then
4769   gt_cv_func_gnugettext1_libintl=yes
4770 else
4771   echo "$as_me: failed program was:" >&5
4772 cat conftest.$ac_ext >&5
4773 gt_cv_func_gnugettext1_libintl=no
4774 fi
4775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4776                 LIBS="$gt_save_LIBS"
4777 fi
4778 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
4779 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
4780            fi
4781
4782                                            if test "$gt_cv_func_gnugettext1_libc" = "yes" \
4783               || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
4784                    && test "$PACKAGE" != gettext; }; then
4785
4786 cat >>confdefs.h <<\_ACEOF
4787 #define HAVE_GETTEXT 1
4788 _ACEOF
4789
4790
4791              if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
4792                                        INTLLIBS="-lintl $LIBICONV"
4793              fi
4794
4795              gt_save_LIBS="$LIBS"
4796              LIBS="$LIBS $INTLLIBS"
4797
4798 for ac_func in dcgettext
4799 do
4800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4801 echo "$as_me:$LINENO: checking for $ac_func" >&5
4802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4803 if eval "test \"\${$as_ac_var+set}\" = set"; then
4804   echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806   cat >conftest.$ac_ext <<_ACEOF
4807 #line $LINENO "configure"
4808 #include "confdefs.h"
4809 /* System header to define __stub macros and hopefully few prototypes,
4810     which can conflict with char $ac_func (); below.  */
4811 #include <assert.h>
4812 /* Override any gcc2 internal prototype to avoid an error.  */
4813 #ifdef __cplusplus
4814 extern "C"
4815 #endif
4816 /* We use char because int might match the return type of a gcc2
4817    builtin and then its argument prototype would still apply.  */
4818 char $ac_func ();
4819 char (*f) ();
4820
4821 #ifdef F77_DUMMY_MAIN
4822 #  ifdef __cplusplus
4823      extern "C"
4824 #  endif
4825    int F77_DUMMY_MAIN() { return 1; }
4826 #endif
4827 int
4828 main ()
4829 {
4830 /* The GNU C library defines this for functions which it implements
4831     to always fail with ENOSYS.  Some functions are actually named
4832     something starting with __ and the normal name is an alias.  */
4833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4834 choke me
4835 #else
4836 f = $ac_func;
4837 #endif
4838
4839   ;
4840   return 0;
4841 }
4842 _ACEOF
4843 rm -f conftest.$ac_objext conftest$ac_exeext
4844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4845   (eval $ac_link) 2>&5
4846   ac_status=$?
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); } &&
4849          { ac_try='test -s conftest$ac_exeext'
4850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851   (eval $ac_try) 2>&5
4852   ac_status=$?
4853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854   (exit $ac_status); }; }; then
4855   eval "$as_ac_var=yes"
4856 else
4857   echo "$as_me: failed program was:" >&5
4858 cat conftest.$ac_ext >&5
4859 eval "$as_ac_var=no"
4860 fi
4861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4862 fi
4863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4865 if test `eval echo '${'$as_ac_var'}'` = yes; then
4866   cat >>confdefs.h <<_ACEOF
4867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4868 _ACEOF
4869
4870 fi
4871 done
4872
4873              LIBS="$gt_save_LIBS"
4874
4875                      # Extract the first word of "msgfmt", so it can be a program name with args.
4876 set dummy msgfmt; ac_word=$2
4877 echo "$as_me:$LINENO: checking for $ac_word" >&5
4878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4879 if test "${ac_cv_path_MSGFMT+set}" = set; then
4880   echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882   case "$MSGFMT" in
4883   /*)
4884   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4885   ;;
4886   *)
4887   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4888   for ac_dir in $PATH; do
4889     test -z "$ac_dir" && ac_dir=.
4890     if test -f $ac_dir/$ac_word; then
4891       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
4892         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4893         break
4894       fi
4895     fi
4896   done
4897   IFS="$ac_save_ifs"
4898   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4899   ;;
4900 esac
4901 fi
4902 MSGFMT="$ac_cv_path_MSGFMT"
4903 if test "$MSGFMT" != ":"; then
4904   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4905 echo "${ECHO_T}$MSGFMT" >&6
4906 else
4907   echo "$as_me:$LINENO: result: no" >&5
4908 echo "${ECHO_T}no" >&6
4909 fi
4910
4911              # Extract the first word of "gmsgfmt", so it can be a program name with args.
4912 set dummy gmsgfmt; ac_word=$2
4913 echo "$as_me:$LINENO: checking for $ac_word" >&5
4914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4915 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4916   echo $ECHO_N "(cached) $ECHO_C" >&6
4917 else
4918   case $GMSGFMT in
4919   [\\/]* | ?:[\\/]*)
4920   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4921   ;;
4922   *)
4923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH
4925 do
4926   IFS=$as_save_IFS
4927   test -z "$as_dir" && as_dir=.
4928   for ac_exec_ext in '' $ac_executable_extensions; do
4929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4930     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4932     break 2
4933   fi
4934 done
4935 done
4936
4937   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4938   ;;
4939 esac
4940 fi
4941 GMSGFMT=$ac_cv_path_GMSGFMT
4942
4943 if test -n "$GMSGFMT"; then
4944   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4945 echo "${ECHO_T}$GMSGFMT" >&6
4946 else
4947   echo "$as_me:$LINENO: result: no" >&5
4948 echo "${ECHO_T}no" >&6
4949 fi
4950
4951
4952                      # Extract the first word of "xgettext", so it can be a program name with args.
4953 set dummy xgettext; ac_word=$2
4954 echo "$as_me:$LINENO: checking for $ac_word" >&5
4955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4956 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4957   echo $ECHO_N "(cached) $ECHO_C" >&6
4958 else
4959   case "$XGETTEXT" in
4960   /*)
4961   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4962   ;;
4963   *)
4964   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4965   for ac_dir in $PATH; do
4966     test -z "$ac_dir" && ac_dir=.
4967     if test -f $ac_dir/$ac_word; then
4968       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
4969         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4970         break
4971       fi
4972     fi
4973   done
4974   IFS="$ac_save_ifs"
4975   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4976   ;;
4977 esac
4978 fi
4979 XGETTEXT="$ac_cv_path_XGETTEXT"
4980 if test "$XGETTEXT" != ":"; then
4981   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4982 echo "${ECHO_T}$XGETTEXT" >&6
4983 else
4984   echo "$as_me:$LINENO: result: no" >&5
4985 echo "${ECHO_T}no" >&6
4986 fi
4987
4988
4989              CATOBJEXT=.gmo
4990            fi
4991
4992 fi
4993
4994
4995
4996         if test "$CATOBJEXT" = "NONE"; then
4997                           nls_cv_use_gnu_gettext=yes
4998         fi
4999       fi
5000
5001       if test "$nls_cv_use_gnu_gettext" = "yes"; then
5002                 INTLOBJS="\$(GETTOBJS)"
5003         # Extract the first word of "msgfmt", so it can be a program name with args.
5004 set dummy msgfmt; ac_word=$2
5005 echo "$as_me:$LINENO: checking for $ac_word" >&5
5006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5007 if test "${ac_cv_path_MSGFMT+set}" = set; then
5008   echo $ECHO_N "(cached) $ECHO_C" >&6
5009 else
5010   case "$MSGFMT" in
5011   /*)
5012   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5013   ;;
5014   *)
5015   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5016   for ac_dir in $PATH; do
5017     test -z "$ac_dir" && ac_dir=.
5018     if test -f $ac_dir/$ac_word; then
5019       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
5020         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5021         break
5022       fi
5023     fi
5024   done
5025   IFS="$ac_save_ifs"
5026   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5027   ;;
5028 esac
5029 fi
5030 MSGFMT="$ac_cv_path_MSGFMT"
5031 if test "$MSGFMT" != ":"; then
5032   echo "$as_me:$LINENO: result: $MSGFMT" >&5
5033 echo "${ECHO_T}$MSGFMT" >&6
5034 else
5035   echo "$as_me:$LINENO: result: no" >&5
5036 echo "${ECHO_T}no" >&6
5037 fi
5038
5039         # Extract the first word of "gmsgfmt", so it can be a program name with args.
5040 set dummy gmsgfmt; ac_word=$2
5041 echo "$as_me:$LINENO: checking for $ac_word" >&5
5042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5043 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5044   echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046   case $GMSGFMT in
5047   [\\/]* | ?:[\\/]*)
5048   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5049   ;;
5050   *)
5051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5053 do
5054   IFS=$as_save_IFS
5055   test -z "$as_dir" && as_dir=.
5056   for ac_exec_ext in '' $ac_executable_extensions; do
5057   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5060     break 2
5061   fi
5062 done
5063 done
5064
5065   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5066   ;;
5067 esac
5068 fi
5069 GMSGFMT=$ac_cv_path_GMSGFMT
5070
5071 if test -n "$GMSGFMT"; then
5072   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5073 echo "${ECHO_T}$GMSGFMT" >&6
5074 else
5075   echo "$as_me:$LINENO: result: no" >&5
5076 echo "${ECHO_T}no" >&6
5077 fi
5078
5079         # Extract the first word of "xgettext", so it can be a program name with args.
5080 set dummy xgettext; ac_word=$2
5081 echo "$as_me:$LINENO: checking for $ac_word" >&5
5082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5083 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5084   echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086   case "$XGETTEXT" in
5087   /*)
5088   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5089   ;;
5090   *)
5091   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5092   for ac_dir in $PATH; do
5093     test -z "$ac_dir" && ac_dir=.
5094     if test -f $ac_dir/$ac_word; then
5095       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
5096         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5097         break
5098       fi
5099     fi
5100   done
5101   IFS="$ac_save_ifs"
5102   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5103   ;;
5104 esac
5105 fi
5106 XGETTEXT="$ac_cv_path_XGETTEXT"
5107 if test "$XGETTEXT" != ":"; then
5108   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5109 echo "${ECHO_T}$XGETTEXT" >&6
5110 else
5111   echo "$as_me:$LINENO: result: no" >&5
5112 echo "${ECHO_T}no" >&6
5113 fi
5114
5115
5116         BUILD_INCLUDED_LIBINTL=yes
5117         USE_INCLUDED_LIBINTL=yes
5118         CATOBJEXT=.gmo
5119         INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
5120         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
5121       fi
5122
5123                   if test "$GMSGFMT" != ":"; then
5124                         if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
5125           : ;
5126         else
5127           echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
5128 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
5129           GMSGFMT=":"
5130         fi
5131       fi
5132
5133                   if test "$XGETTEXT" != ":"; then
5134                         if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
5135           : ;
5136         else
5137           echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5138 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5139           XGETTEXT=":"
5140         fi
5141       fi
5142
5143             POSUB=po
5144     fi
5145     ac_config_commands="$ac_config_commands default-1"
5146
5147
5148
5149             if test "$PACKAGE" = gettext; then
5150       BUILD_INCLUDED_LIBINTL=yes
5151     fi
5152
5153                                             for ac_prog in bison
5154 do
5155   # Extract the first word of "$ac_prog", so it can be a program name with args.
5156 set dummy $ac_prog; ac_word=$2
5157 echo "$as_me:$LINENO: checking for $ac_word" >&5
5158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5159 if test "${ac_cv_prog_INTLBISON+set}" = set; then
5160   echo $ECHO_N "(cached) $ECHO_C" >&6
5161 else
5162   if test -n "$INTLBISON"; then
5163   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
5164 else
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5167 do
5168   IFS=$as_save_IFS
5169   test -z "$as_dir" && as_dir=.
5170   for ac_exec_ext in '' $ac_executable_extensions; do
5171   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172     ac_cv_prog_INTLBISON="$ac_prog"
5173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5174     break 2
5175   fi
5176 done
5177 done
5178
5179 fi
5180 fi
5181 INTLBISON=$ac_cv_prog_INTLBISON
5182 if test -n "$INTLBISON"; then
5183   echo "$as_me:$LINENO: result: $INTLBISON" >&5
5184 echo "${ECHO_T}$INTLBISON" >&6
5185 else
5186   echo "$as_me:$LINENO: result: no" >&5
5187 echo "${ECHO_T}no" >&6
5188 fi
5189
5190   test -n "$INTLBISON" && break
5191 done
5192
5193     if test -z "$INTLBISON"; then
5194       ac_verc_fail=yes
5195     else
5196             echo "$as_me:$LINENO: checking version of bison" >&5
5197 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
5198       ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5199       case $ac_prog_version in
5200         '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5201         1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
5202            ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5203         *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5204       esac
5205       echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5206 echo "${ECHO_T}$ac_prog_version" >&6
5207     fi
5208     if test $ac_verc_fail = yes; then
5209       INTLBISON=:
5210     fi
5211
5212                 for lang in $ALL_LINGUAS; do
5213       GMOFILES="$GMOFILES $lang.gmo"
5214       POFILES="$POFILES $lang.po"
5215     done
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227         nls_cv_header_intl=
5228     nls_cv_header_libgt=
5229
5230         DATADIRNAME=share
5231
5232
5233         INSTOBJEXT=.mo
5234
5235
5236         GENCAT=gencat
5237
5238
5239
5240    if test "x$CATOBJEXT" != "x"; then
5241      if test "x$ALL_LINGUAS" = "x"; then
5242        LINGUAS=
5243      else
5244        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5245 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5246        NEW_LINGUAS=
5247        for presentlang in $ALL_LINGUAS; do
5248          useit=no
5249          for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
5250            # Use the presentlang catalog if desiredlang is
5251            #   a. equal to presentlang, or
5252            #   b. a variant of presentlang (because in this case,
5253            #      presentlang can be used as a fallback for messages
5254            #      which are not translated in the desiredlang catalog).
5255            case "$desiredlang" in
5256              "$presentlang"*) useit=yes;;
5257            esac
5258          done
5259          if test $useit = yes; then
5260            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
5261          fi
5262        done
5263        LINGUAS=$NEW_LINGUAS
5264        echo "$as_me:$LINENO: result: $LINGUAS" >&5
5265 echo "${ECHO_T}$LINGUAS" >&6
5266      fi
5267
5268           if test -n "$LINGUAS"; then
5269        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5270      fi
5271    fi
5272
5273             MKINSTALLDIRS=
5274    if test -n "$ac_aux_dir"; then
5275      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5276    fi
5277    if test -z "$MKINSTALLDIRS"; then
5278      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5279    fi
5280
5281
5282       INTL_LIBTOOL_SUFFIX_PREFIX=
5283
5284
5285
5286 # Find a good install program.  We prefer a C program (faster),
5287 # so one script is as good as another.  But avoid the broken or
5288 # incompatible versions:
5289 # SysV /etc/install, /usr/sbin/install
5290 # SunOS /usr/etc/install
5291 # IRIX /sbin/install
5292 # AIX /bin/install
5293 # AmigaOS /C/install, which installs bootblocks on floppy discs
5294 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5295 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5296 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5297 # ./install, which can be erroneously created by make from ./install.sh.
5298 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5299 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5300 if test -z "$INSTALL"; then
5301 if test "${ac_cv_path_install+set}" = set; then
5302   echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH
5306 do
5307   IFS=$as_save_IFS
5308   test -z "$as_dir" && as_dir=.
5309   # Account for people who put trailing slashes in PATH elements.
5310 case $as_dir/ in
5311   ./ | .// | /cC/* | \
5312   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5313   /usr/ucb/* ) ;;
5314   *)
5315     # OSF1 and SCO ODT 3.0 have their own names for install.
5316     # Don't use installbsd from OSF since it installs stuff as root
5317     # by default.
5318     for ac_prog in ginstall scoinst install; do
5319       for ac_exec_ext in '' $ac_executable_extensions; do
5320         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5321           if test $ac_prog = install &&
5322             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5323             # AIX install.  It has an incompatible calling convention.
5324             :
5325           elif test $ac_prog = install &&
5326             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5327             # program-specific install script used by HP pwplus--don't use.
5328             :
5329           else
5330             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5331             break 3
5332           fi
5333         fi
5334       done
5335     done
5336     ;;
5337 esac
5338 done
5339
5340
5341 fi
5342   if test "${ac_cv_path_install+set}" = set; then
5343     INSTALL=$ac_cv_path_install
5344   else
5345     # As a last resort, use the slow shell script.  We don't cache a
5346     # path for INSTALL within a source directory, because that will
5347     # break other packages using the cache if that directory is
5348     # removed, or if the path is relative.
5349     INSTALL=$ac_install_sh
5350   fi
5351 fi
5352 echo "$as_me:$LINENO: result: $INSTALL" >&5
5353 echo "${ECHO_T}$INSTALL" >&6
5354
5355 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5356 # It thinks the first close brace ends the variable substitution.
5357 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5358
5359 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5360
5361 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5362
5363
5364 case x"${target_os}" in
5365   x)
5366     SYS=unknown
5367     ;;
5368   xlinux*)
5369     SYS=linux
5370     ;;
5371   xbsdi*)
5372     SYS=bsdi
5373     save_CFLAGS="${save_CFLAGS} -pthread"
5374     dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
5375     vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
5376     ;;
5377   x*bsd*)
5378     SYS="${target_os}"
5379     save_CFLAGS="${save_CFLAGS} -pthread"
5380     ;;
5381   xdarwin*)
5382     SYS=darwin
5383     save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
5384     ;;
5385   x*mingw32*)
5386     SYS=mingw32
5387     if test -n "$ac_tool_prefix"; then
5388   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5389 set dummy ${ac_tool_prefix}windres; ac_word=$2
5390 echo "$as_me:$LINENO: checking for $ac_word" >&5
5391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5392 if test "${ac_cv_prog_WINDRES+set}" = set; then
5393   echo $ECHO_N "(cached) $ECHO_C" >&6
5394 else
5395   if test -n "$WINDRES"; then
5396   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5397 else
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 for as_dir in $PATH
5400 do
5401   IFS=$as_save_IFS
5402   test -z "$as_dir" && as_dir=.
5403   for ac_exec_ext in '' $ac_executable_extensions; do
5404   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5407     break 2
5408   fi
5409 done
5410 done
5411
5412 fi
5413 fi
5414 WINDRES=$ac_cv_prog_WINDRES
5415 if test -n "$WINDRES"; then
5416   echo "$as_me:$LINENO: result: $WINDRES" >&5
5417 echo "${ECHO_T}$WINDRES" >&6
5418 else
5419   echo "$as_me:$LINENO: result: no" >&5
5420 echo "${ECHO_T}no" >&6
5421 fi
5422
5423 fi
5424 if test -z "$ac_cv_prog_WINDRES"; then
5425   ac_ct_WINDRES=$WINDRES
5426   # Extract the first word of "windres", so it can be a program name with args.
5427 set dummy windres; ac_word=$2
5428 echo "$as_me:$LINENO: checking for $ac_word" >&5
5429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5430 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5431   echo $ECHO_N "(cached) $ECHO_C" >&6
5432 else
5433   if test -n "$ac_ct_WINDRES"; then
5434   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5435 else
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5438 do
5439   IFS=$as_save_IFS
5440   test -z "$as_dir" && as_dir=.
5441   for ac_exec_ext in '' $ac_executable_extensions; do
5442   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5443     ac_cv_prog_ac_ct_WINDRES="windres"
5444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5445     break 2
5446   fi
5447 done
5448 done
5449
5450   test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES=":"
5451 fi
5452 fi
5453 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5454 if test -n "$ac_ct_WINDRES"; then
5455   echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5456 echo "${ECHO_T}$ac_ct_WINDRES" >&6
5457 else
5458   echo "$as_me:$LINENO: result: no" >&5
5459 echo "${ECHO_T}no" >&6
5460 fi
5461
5462   WINDRES=$ac_ct_WINDRES
5463 else
5464   WINDRES="$ac_cv_prog_WINDRES"
5465 fi
5466
5467     save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"
5468     vlc_LDFLAGS="${vlc_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
5469     vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
5470     ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
5471     rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
5472     ;;
5473   x*nto*)
5474     SYS=nto
5475     x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
5476     xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
5477     ;;
5478   xbeos)
5479     SYS=beos
5480     save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
5481     vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
5482     plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
5483     beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
5484     ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
5485     ;;
5486   x*)
5487     SYS="${target_os}"
5488     ;;
5489 esac
5490
5491 if test x"${SYS}" = xmingw32
5492 then
5493   plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
5494 else
5495   plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
5496 fi
5497
5498 save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcdefghijklmnopqrstuvwxyz.' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`"
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513 for ac_func in gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2
5514 do
5515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5516 echo "$as_me:$LINENO: checking for $ac_func" >&5
5517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5518 if eval "test \"\${$as_ac_var+set}\" = set"; then
5519   echo $ECHO_N "(cached) $ECHO_C" >&6
5520 else
5521   cat >conftest.$ac_ext <<_ACEOF
5522 #line $LINENO "configure"
5523 #include "confdefs.h"
5524 /* System header to define __stub macros and hopefully few prototypes,
5525     which can conflict with char $ac_func (); below.  */
5526 #include <assert.h>
5527 /* Override any gcc2 internal prototype to avoid an error.  */
5528 #ifdef __cplusplus
5529 extern "C"
5530 #endif
5531 /* We use char because int might match the return type of a gcc2
5532    builtin and then its argument prototype would still apply.  */
5533 char $ac_func ();
5534 char (*f) ();
5535
5536 #ifdef F77_DUMMY_MAIN
5537 #  ifdef __cplusplus
5538      extern "C"
5539 #  endif
5540    int F77_DUMMY_MAIN() { return 1; }
5541 #endif
5542 int
5543 main ()
5544 {
5545 /* The GNU C library defines this for functions which it implements
5546     to always fail with ENOSYS.  Some functions are actually named
5547     something starting with __ and the normal name is an alias.  */
5548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5549 choke me
5550 #else
5551 f = $ac_func;
5552 #endif
5553
5554   ;
5555   return 0;
5556 }
5557 _ACEOF
5558 rm -f conftest.$ac_objext conftest$ac_exeext
5559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5560   (eval $ac_link) 2>&5
5561   ac_status=$?
5562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563   (exit $ac_status); } &&
5564          { ac_try='test -s conftest$ac_exeext'
5565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5566   (eval $ac_try) 2>&5
5567   ac_status=$?
5568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569   (exit $ac_status); }; }; then
5570   eval "$as_ac_var=yes"
5571 else
5572   echo "$as_me: failed program was:" >&5
5573 cat conftest.$ac_ext >&5
5574 eval "$as_ac_var=no"
5575 fi
5576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5577 fi
5578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5580 if test `eval echo '${'$as_ac_var'}'` = yes; then
5581   cat >>confdefs.h <<_ACEOF
5582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5583 _ACEOF
5584
5585 fi
5586 done
5587
5588
5589 echo "$as_me:$LINENO: checking for connect" >&5
5590 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5591 if test "${ac_cv_func_connect+set}" = set; then
5592   echo $ECHO_N "(cached) $ECHO_C" >&6
5593 else
5594   cat >conftest.$ac_ext <<_ACEOF
5595 #line $LINENO "configure"
5596 #include "confdefs.h"
5597 /* System header to define __stub macros and hopefully few prototypes,
5598     which can conflict with char connect (); below.  */
5599 #include <assert.h>
5600 /* Override any gcc2 internal prototype to avoid an error.  */
5601 #ifdef __cplusplus
5602 extern "C"
5603 #endif
5604 /* We use char because int might match the return type of a gcc2
5605    builtin and then its argument prototype would still apply.  */
5606 char connect ();
5607 char (*f) ();
5608
5609 #ifdef F77_DUMMY_MAIN
5610 #  ifdef __cplusplus
5611      extern "C"
5612 #  endif
5613    int F77_DUMMY_MAIN() { return 1; }
5614 #endif
5615 int
5616 main ()
5617 {
5618 /* The GNU C library defines this for functions which it implements
5619     to always fail with ENOSYS.  Some functions are actually named
5620     something starting with __ and the normal name is an alias.  */
5621 #if defined (__stub_connect) || defined (__stub___connect)
5622 choke me
5623 #else
5624 f = connect;
5625 #endif
5626
5627   ;
5628   return 0;
5629 }
5630 _ACEOF
5631 rm -f conftest.$ac_objext conftest$ac_exeext
5632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5633   (eval $ac_link) 2>&5
5634   ac_status=$?
5635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636   (exit $ac_status); } &&
5637          { ac_try='test -s conftest$ac_exeext'
5638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639   (eval $ac_try) 2>&5
5640   ac_status=$?
5641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642   (exit $ac_status); }; }; then
5643   ac_cv_func_connect=yes
5644 else
5645   echo "$as_me: failed program was:" >&5
5646 cat conftest.$ac_ext >&5
5647 ac_cv_func_connect=no
5648 fi
5649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5650 fi
5651 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5652 echo "${ECHO_T}$ac_cv_func_connect" >&6
5653 if test $ac_cv_func_connect = yes; then
5654   :
5655 else
5656
5657   echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5658 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5659 if test "${ac_cv_lib_socket_connect+set}" = set; then
5660   echo $ECHO_N "(cached) $ECHO_C" >&6
5661 else
5662   ac_check_lib_save_LIBS=$LIBS
5663 LIBS="-lsocket  $LIBS"
5664 cat >conftest.$ac_ext <<_ACEOF
5665 #line $LINENO "configure"
5666 #include "confdefs.h"
5667
5668 /* Override any gcc2 internal prototype to avoid an error.  */
5669 #ifdef __cplusplus
5670 extern "C"
5671 #endif
5672 /* We use char because int might match the return type of a gcc2
5673    builtin and then its argument prototype would still apply.  */
5674 char connect ();
5675 #ifdef F77_DUMMY_MAIN
5676 #  ifdef __cplusplus
5677      extern "C"
5678 #  endif
5679    int F77_DUMMY_MAIN() { return 1; }
5680 #endif
5681 int
5682 main ()
5683 {
5684 connect ();
5685   ;
5686   return 0;
5687 }
5688 _ACEOF
5689 rm -f conftest.$ac_objext conftest$ac_exeext
5690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5691   (eval $ac_link) 2>&5
5692   ac_status=$?
5693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); } &&
5695          { ac_try='test -s conftest$ac_exeext'
5696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697   (eval $ac_try) 2>&5
5698   ac_status=$?
5699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700   (exit $ac_status); }; }; then
5701   ac_cv_lib_socket_connect=yes
5702 else
5703   echo "$as_me: failed program was:" >&5
5704 cat conftest.$ac_ext >&5
5705 ac_cv_lib_socket_connect=no
5706 fi
5707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5708 LIBS=$ac_check_lib_save_LIBS
5709 fi
5710 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5711 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5712 if test $ac_cv_lib_socket_connect = yes; then
5713   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
5714     vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
5715
5716 fi
5717
5718 fi
5719
5720 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5721 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5722 if test "${ac_cv_func_gethostbyname+set}" = set; then
5723   echo $ECHO_N "(cached) $ECHO_C" >&6
5724 else
5725   cat >conftest.$ac_ext <<_ACEOF
5726 #line $LINENO "configure"
5727 #include "confdefs.h"
5728 /* System header to define __stub macros and hopefully few prototypes,
5729     which can conflict with char gethostbyname (); below.  */
5730 #include <assert.h>
5731 /* Override any gcc2 internal prototype to avoid an error.  */
5732 #ifdef __cplusplus
5733 extern "C"
5734 #endif
5735 /* We use char because int might match the return type of a gcc2
5736    builtin and then its argument prototype would still apply.  */
5737 char gethostbyname ();
5738 char (*f) ();
5739
5740 #ifdef F77_DUMMY_MAIN
5741 #  ifdef __cplusplus
5742      extern "C"
5743 #  endif
5744    int F77_DUMMY_MAIN() { return 1; }
5745 #endif
5746 int
5747 main ()
5748 {
5749 /* The GNU C library defines this for functions which it implements
5750     to always fail with ENOSYS.  Some functions are actually named
5751     something starting with __ and the normal name is an alias.  */
5752 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5753 choke me
5754 #else
5755 f = gethostbyname;
5756 #endif
5757
5758   ;
5759   return 0;
5760 }
5761 _ACEOF
5762 rm -f conftest.$ac_objext conftest$ac_exeext
5763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5764   (eval $ac_link) 2>&5
5765   ac_status=$?
5766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767   (exit $ac_status); } &&
5768          { ac_try='test -s conftest$ac_exeext'
5769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770   (eval $ac_try) 2>&5
5771   ac_status=$?
5772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773   (exit $ac_status); }; }; then
5774   ac_cv_func_gethostbyname=yes
5775 else
5776   echo "$as_me: failed program was:" >&5
5777 cat conftest.$ac_ext >&5
5778 ac_cv_func_gethostbyname=no
5779 fi
5780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5781 fi
5782 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5783 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5784 if test $ac_cv_func_gethostbyname = yes; then
5785   :
5786 else
5787
5788   echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5789 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5790 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5791   echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793   ac_check_lib_save_LIBS=$LIBS
5794 LIBS="-lnsl  $LIBS"
5795 cat >conftest.$ac_ext <<_ACEOF
5796 #line $LINENO "configure"
5797 #include "confdefs.h"
5798
5799 /* Override any gcc2 internal prototype to avoid an error.  */
5800 #ifdef __cplusplus
5801 extern "C"
5802 #endif
5803 /* We use char because int might match the return type of a gcc2
5804    builtin and then its argument prototype would still apply.  */
5805 char gethostbyname ();
5806 #ifdef F77_DUMMY_MAIN
5807 #  ifdef __cplusplus
5808      extern "C"
5809 #  endif
5810    int F77_DUMMY_MAIN() { return 1; }
5811 #endif
5812 int
5813 main ()
5814 {
5815 gethostbyname ();
5816   ;
5817   return 0;
5818 }
5819 _ACEOF
5820 rm -f conftest.$ac_objext conftest$ac_exeext
5821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5822   (eval $ac_link) 2>&5
5823   ac_status=$?
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); } &&
5826          { ac_try='test -s conftest$ac_exeext'
5827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828   (eval $ac_try) 2>&5
5829   ac_status=$?
5830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831   (exit $ac_status); }; }; then
5832   ac_cv_lib_nsl_gethostbyname=yes
5833 else
5834   echo "$as_me: failed program was:" >&5
5835 cat conftest.$ac_ext >&5
5836 ac_cv_lib_nsl_gethostbyname=no
5837 fi
5838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5839 LIBS=$ac_check_lib_save_LIBS
5840 fi
5841 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5842 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5843 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5844   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl"
5845 fi
5846
5847
5848 fi
5849
5850 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5851 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5852 if test "${ac_cv_func_gethostbyname+set}" = set; then
5853   echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855   cat >conftest.$ac_ext <<_ACEOF
5856 #line $LINENO "configure"
5857 #include "confdefs.h"
5858 /* System header to define __stub macros and hopefully few prototypes,
5859     which can conflict with char gethostbyname (); below.  */
5860 #include <assert.h>
5861 /* Override any gcc2 internal prototype to avoid an error.  */
5862 #ifdef __cplusplus
5863 extern "C"
5864 #endif
5865 /* We use char because int might match the return type of a gcc2
5866    builtin and then its argument prototype would still apply.  */
5867 char gethostbyname ();
5868 char (*f) ();
5869
5870 #ifdef F77_DUMMY_MAIN
5871 #  ifdef __cplusplus
5872      extern "C"
5873 #  endif
5874    int F77_DUMMY_MAIN() { return 1; }
5875 #endif
5876 int
5877 main ()
5878 {
5879 /* The GNU C library defines this for functions which it implements
5880     to always fail with ENOSYS.  Some functions are actually named
5881     something starting with __ and the normal name is an alias.  */
5882 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5883 choke me
5884 #else
5885 f = gethostbyname;
5886 #endif
5887
5888   ;
5889   return 0;
5890 }
5891 _ACEOF
5892 rm -f conftest.$ac_objext conftest$ac_exeext
5893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5894   (eval $ac_link) 2>&5
5895   ac_status=$?
5896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897   (exit $ac_status); } &&
5898          { ac_try='test -s conftest$ac_exeext'
5899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900   (eval $ac_try) 2>&5
5901   ac_status=$?
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); }; }; then
5904   ac_cv_func_gethostbyname=yes
5905 else
5906   echo "$as_me: failed program was:" >&5
5907 cat conftest.$ac_ext >&5
5908 ac_cv_func_gethostbyname=no
5909 fi
5910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5911 fi
5912 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5913 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5914 if test $ac_cv_func_gethostbyname = yes; then
5915   :
5916 else
5917
5918   echo "$as_me:$LINENO: checking for gethostbyname in -lbind" >&5
5919 echo $ECHO_N "checking for gethostbyname in -lbind... $ECHO_C" >&6
5920 if test "${ac_cv_lib_bind_gethostbyname+set}" = set; then
5921   echo $ECHO_N "(cached) $ECHO_C" >&6
5922 else
5923   ac_check_lib_save_LIBS=$LIBS
5924 LIBS="-lbind  $LIBS"
5925 cat >conftest.$ac_ext <<_ACEOF
5926 #line $LINENO "configure"
5927 #include "confdefs.h"
5928
5929 /* Override any gcc2 internal prototype to avoid an error.  */
5930 #ifdef __cplusplus
5931 extern "C"
5932 #endif
5933 /* We use char because int might match the return type of a gcc2
5934    builtin and then its argument prototype would still apply.  */
5935 char gethostbyname ();
5936 #ifdef F77_DUMMY_MAIN
5937 #  ifdef __cplusplus
5938      extern "C"
5939 #  endif
5940    int F77_DUMMY_MAIN() { return 1; }
5941 #endif
5942 int
5943 main ()
5944 {
5945 gethostbyname ();
5946   ;
5947   return 0;
5948 }
5949 _ACEOF
5950 rm -f conftest.$ac_objext conftest$ac_exeext
5951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5952   (eval $ac_link) 2>&5
5953   ac_status=$?
5954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955   (exit $ac_status); } &&
5956          { ac_try='test -s conftest$ac_exeext'
5957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958   (eval $ac_try) 2>&5
5959   ac_status=$?
5960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961   (exit $ac_status); }; }; then
5962   ac_cv_lib_bind_gethostbyname=yes
5963 else
5964   echo "$as_me: failed program was:" >&5
5965 cat conftest.$ac_ext >&5
5966 ac_cv_lib_bind_gethostbyname=no
5967 fi
5968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5969 LIBS=$ac_check_lib_save_LIBS
5970 fi
5971 echo "$as_me:$LINENO: result: $ac_cv_lib_bind_gethostbyname" >&5
5972 echo "${ECHO_T}$ac_cv_lib_bind_gethostbyname" >&6
5973 if test $ac_cv_lib_bind_gethostbyname = yes; then
5974   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
5975 fi
5976
5977
5978 fi
5979
5980
5981 for ac_func in nanosleep
5982 do
5983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5984 echo "$as_me:$LINENO: checking for $ac_func" >&5
5985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5986 if eval "test \"\${$as_ac_var+set}\" = set"; then
5987   echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989   cat >conftest.$ac_ext <<_ACEOF
5990 #line $LINENO "configure"
5991 #include "confdefs.h"
5992 /* System header to define __stub macros and hopefully few prototypes,
5993     which can conflict with char $ac_func (); below.  */
5994 #include <assert.h>
5995 /* Override any gcc2 internal prototype to avoid an error.  */
5996 #ifdef __cplusplus
5997 extern "C"
5998 #endif
5999 /* We use char because int might match the return type of a gcc2
6000    builtin and then its argument prototype would still apply.  */
6001 char $ac_func ();
6002 char (*f) ();
6003
6004 #ifdef F77_DUMMY_MAIN
6005 #  ifdef __cplusplus
6006      extern "C"
6007 #  endif
6008    int F77_DUMMY_MAIN() { return 1; }
6009 #endif
6010 int
6011 main ()
6012 {
6013 /* The GNU C library defines this for functions which it implements
6014     to always fail with ENOSYS.  Some functions are actually named
6015     something starting with __ and the normal name is an alias.  */
6016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6017 choke me
6018 #else
6019 f = $ac_func;
6020 #endif
6021
6022   ;
6023   return 0;
6024 }
6025 _ACEOF
6026 rm -f conftest.$ac_objext conftest$ac_exeext
6027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6028   (eval $ac_link) 2>&5
6029   ac_status=$?
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); } &&
6032          { ac_try='test -s conftest$ac_exeext'
6033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034   (eval $ac_try) 2>&5
6035   ac_status=$?
6036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037   (exit $ac_status); }; }; then
6038   eval "$as_ac_var=yes"
6039 else
6040   echo "$as_me: failed program was:" >&5
6041 cat conftest.$ac_ext >&5
6042 eval "$as_ac_var=no"
6043 fi
6044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6045 fi
6046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6047 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6048 if test `eval echo '${'$as_ac_var'}'` = yes; then
6049   cat >>confdefs.h <<_ACEOF
6050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6051 _ACEOF
6052
6053 else
6054
6055   echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
6056 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6
6057 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
6058   echo $ECHO_N "(cached) $ECHO_C" >&6
6059 else
6060   ac_check_lib_save_LIBS=$LIBS
6061 LIBS="-lrt  $LIBS"
6062 cat >conftest.$ac_ext <<_ACEOF
6063 #line $LINENO "configure"
6064 #include "confdefs.h"
6065
6066 /* Override any gcc2 internal prototype to avoid an error.  */
6067 #ifdef __cplusplus
6068 extern "C"
6069 #endif
6070 /* We use char because int might match the return type of a gcc2
6071    builtin and then its argument prototype would still apply.  */
6072 char nanosleep ();
6073 #ifdef F77_DUMMY_MAIN
6074 #  ifdef __cplusplus
6075      extern "C"
6076 #  endif
6077    int F77_DUMMY_MAIN() { return 1; }
6078 #endif
6079 int
6080 main ()
6081 {
6082 nanosleep ();
6083   ;
6084   return 0;
6085 }
6086 _ACEOF
6087 rm -f conftest.$ac_objext conftest$ac_exeext
6088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6089   (eval $ac_link) 2>&5
6090   ac_status=$?
6091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092   (exit $ac_status); } &&
6093          { ac_try='test -s conftest$ac_exeext'
6094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095   (eval $ac_try) 2>&5
6096   ac_status=$?
6097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098   (exit $ac_status); }; }; then
6099   ac_cv_lib_rt_nanosleep=yes
6100 else
6101   echo "$as_me: failed program was:" >&5
6102 cat conftest.$ac_ext >&5
6103 ac_cv_lib_rt_nanosleep=no
6104 fi
6105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6106 LIBS=$ac_check_lib_save_LIBS
6107 fi
6108 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
6109 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6
6110 if test $ac_cv_lib_rt_nanosleep = yes; then
6111   vlc_LDFLAGS="${vlc_LDFLAGS} -lrt"
6112 else
6113   echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
6114 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
6115 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
6116   echo $ECHO_N "(cached) $ECHO_C" >&6
6117 else
6118   ac_check_lib_save_LIBS=$LIBS
6119 LIBS="-lposix4  $LIBS"
6120 cat >conftest.$ac_ext <<_ACEOF
6121 #line $LINENO "configure"
6122 #include "confdefs.h"
6123
6124 /* Override any gcc2 internal prototype to avoid an error.  */
6125 #ifdef __cplusplus
6126 extern "C"
6127 #endif
6128 /* We use char because int might match the return type of a gcc2
6129    builtin and then its argument prototype would still apply.  */
6130 char nanosleep ();
6131 #ifdef F77_DUMMY_MAIN
6132 #  ifdef __cplusplus
6133      extern "C"
6134 #  endif
6135    int F77_DUMMY_MAIN() { return 1; }
6136 #endif
6137 int
6138 main ()
6139 {
6140 nanosleep ();
6141   ;
6142   return 0;
6143 }
6144 _ACEOF
6145 rm -f conftest.$ac_objext conftest$ac_exeext
6146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6147   (eval $ac_link) 2>&5
6148   ac_status=$?
6149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150   (exit $ac_status); } &&
6151          { ac_try='test -s conftest$ac_exeext'
6152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153   (eval $ac_try) 2>&5
6154   ac_status=$?
6155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156   (exit $ac_status); }; }; then
6157   ac_cv_lib_posix4_nanosleep=yes
6158 else
6159   echo "$as_me: failed program was:" >&5
6160 cat conftest.$ac_ext >&5
6161 ac_cv_lib_posix4_nanosleep=no
6162 fi
6163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6164 LIBS=$ac_check_lib_save_LIBS
6165 fi
6166 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
6167 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
6168 if test $ac_cv_lib_posix4_nanosleep = yes; then
6169   vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4"
6170 fi
6171
6172
6173 fi
6174
6175
6176 fi
6177 done
6178
6179 echo "$as_me:$LINENO: checking for inet_aton" >&5
6180 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
6181 if test "${ac_cv_func_inet_aton+set}" = set; then
6182   echo $ECHO_N "(cached) $ECHO_C" >&6
6183 else
6184   cat >conftest.$ac_ext <<_ACEOF
6185 #line $LINENO "configure"
6186 #include "confdefs.h"
6187 /* System header to define __stub macros and hopefully few prototypes,
6188     which can conflict with char inet_aton (); below.  */
6189 #include <assert.h>
6190 /* Override any gcc2 internal prototype to avoid an error.  */
6191 #ifdef __cplusplus
6192 extern "C"
6193 #endif
6194 /* We use char because int might match the return type of a gcc2
6195    builtin and then its argument prototype would still apply.  */
6196 char inet_aton ();
6197 char (*f) ();
6198
6199 #ifdef F77_DUMMY_MAIN
6200 #  ifdef __cplusplus
6201      extern "C"
6202 #  endif
6203    int F77_DUMMY_MAIN() { return 1; }
6204 #endif
6205 int
6206 main ()
6207 {
6208 /* The GNU C library defines this for functions which it implements
6209     to always fail with ENOSYS.  Some functions are actually named
6210     something starting with __ and the normal name is an alias.  */
6211 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
6212 choke me
6213 #else
6214 f = inet_aton;
6215 #endif
6216
6217   ;
6218   return 0;
6219 }
6220 _ACEOF
6221 rm -f conftest.$ac_objext conftest$ac_exeext
6222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6223   (eval $ac_link) 2>&5
6224   ac_status=$?
6225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); } &&
6227          { ac_try='test -s conftest$ac_exeext'
6228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229   (eval $ac_try) 2>&5
6230   ac_status=$?
6231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232   (exit $ac_status); }; }; then
6233   ac_cv_func_inet_aton=yes
6234 else
6235   echo "$as_me: failed program was:" >&5
6236 cat conftest.$ac_ext >&5
6237 ac_cv_func_inet_aton=no
6238 fi
6239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6240 fi
6241 echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
6242 echo "${ECHO_T}$ac_cv_func_inet_aton" >&6
6243 if test $ac_cv_func_inet_aton = yes; then
6244   :
6245 else
6246
6247   echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6248 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6249 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6250   echo $ECHO_N "(cached) $ECHO_C" >&6
6251 else
6252   ac_check_lib_save_LIBS=$LIBS
6253 LIBS="-lresolv  $LIBS"
6254 cat >conftest.$ac_ext <<_ACEOF
6255 #line $LINENO "configure"
6256 #include "confdefs.h"
6257
6258 /* Override any gcc2 internal prototype to avoid an error.  */
6259 #ifdef __cplusplus
6260 extern "C"
6261 #endif
6262 /* We use char because int might match the return type of a gcc2
6263    builtin and then its argument prototype would still apply.  */
6264 char inet_aton ();
6265 #ifdef F77_DUMMY_MAIN
6266 #  ifdef __cplusplus
6267      extern "C"
6268 #  endif
6269    int F77_DUMMY_MAIN() { return 1; }
6270 #endif
6271 int
6272 main ()
6273 {
6274 inet_aton ();
6275   ;
6276   return 0;
6277 }
6278 _ACEOF
6279 rm -f conftest.$ac_objext conftest$ac_exeext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6281   (eval $ac_link) 2>&5
6282   ac_status=$?
6283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284   (exit $ac_status); } &&
6285          { ac_try='test -s conftest$ac_exeext'
6286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287   (eval $ac_try) 2>&5
6288   ac_status=$?
6289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290   (exit $ac_status); }; }; then
6291   ac_cv_lib_resolv_inet_aton=yes
6292 else
6293   echo "$as_me: failed program was:" >&5
6294 cat conftest.$ac_ext >&5
6295 ac_cv_lib_resolv_inet_aton=no
6296 fi
6297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6298 LIBS=$ac_check_lib_save_LIBS
6299 fi
6300 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6301 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6302 if test $ac_cv_lib_resolv_inet_aton = yes; then
6303   ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv"
6304 fi
6305
6306
6307 fi
6308
6309 echo "$as_me:$LINENO: checking for textdomain" >&5
6310 echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
6311 if test "${ac_cv_func_textdomain+set}" = set; then
6312   echo $ECHO_N "(cached) $ECHO_C" >&6
6313 else
6314   cat >conftest.$ac_ext <<_ACEOF
6315 #line $LINENO "configure"
6316 #include "confdefs.h"
6317 /* System header to define __stub macros and hopefully few prototypes,
6318     which can conflict with char textdomain (); below.  */
6319 #include <assert.h>
6320 /* Override any gcc2 internal prototype to avoid an error.  */
6321 #ifdef __cplusplus
6322 extern "C"
6323 #endif
6324 /* We use char because int might match the return type of a gcc2
6325    builtin and then its argument prototype would still apply.  */
6326 char textdomain ();
6327 char (*f) ();
6328
6329 #ifdef F77_DUMMY_MAIN
6330 #  ifdef __cplusplus
6331      extern "C"
6332 #  endif
6333    int F77_DUMMY_MAIN() { return 1; }
6334 #endif
6335 int
6336 main ()
6337 {
6338 /* The GNU C library defines this for functions which it implements
6339     to always fail with ENOSYS.  Some functions are actually named
6340     something starting with __ and the normal name is an alias.  */
6341 #if defined (__stub_textdomain) || defined (__stub___textdomain)
6342 choke me
6343 #else
6344 f = textdomain;
6345 #endif
6346
6347   ;
6348   return 0;
6349 }
6350 _ACEOF
6351 rm -f conftest.$ac_objext conftest$ac_exeext
6352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6353   (eval $ac_link) 2>&5
6354   ac_status=$?
6355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356   (exit $ac_status); } &&
6357          { ac_try='test -s conftest$ac_exeext'
6358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359   (eval $ac_try) 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); }; }; then
6363   ac_cv_func_textdomain=yes
6364 else
6365   echo "$as_me: failed program was:" >&5
6366 cat conftest.$ac_ext >&5
6367 ac_cv_func_textdomain=no
6368 fi
6369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6370 fi
6371 echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
6372 echo "${ECHO_T}$ac_cv_func_textdomain" >&6
6373 if test $ac_cv_func_textdomain = yes; then
6374   :
6375 else
6376
6377   echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
6378 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6
6379 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
6380   echo $ECHO_N "(cached) $ECHO_C" >&6
6381 else
6382   ac_check_lib_save_LIBS=$LIBS
6383 LIBS="-lintl  $LIBS"
6384 cat >conftest.$ac_ext <<_ACEOF
6385 #line $LINENO "configure"
6386 #include "confdefs.h"
6387
6388 /* Override any gcc2 internal prototype to avoid an error.  */
6389 #ifdef __cplusplus
6390 extern "C"
6391 #endif
6392 /* We use char because int might match the return type of a gcc2
6393    builtin and then its argument prototype would still apply.  */
6394 char textdomain ();
6395 #ifdef F77_DUMMY_MAIN
6396 #  ifdef __cplusplus
6397      extern "C"
6398 #  endif
6399    int F77_DUMMY_MAIN() { return 1; }
6400 #endif
6401 int
6402 main ()
6403 {
6404 textdomain ();
6405   ;
6406   return 0;
6407 }
6408 _ACEOF
6409 rm -f conftest.$ac_objext conftest$ac_exeext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6411   (eval $ac_link) 2>&5
6412   ac_status=$?
6413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414   (exit $ac_status); } &&
6415          { ac_try='test -s conftest$ac_exeext'
6416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417   (eval $ac_try) 2>&5
6418   ac_status=$?
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); }; }; then
6421   ac_cv_lib_intl_textdomain=yes
6422 else
6423   echo "$as_me: failed program was:" >&5
6424 cat conftest.$ac_ext >&5
6425 ac_cv_lib_intl_textdomain=no
6426 fi
6427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6428 LIBS=$ac_check_lib_save_LIBS
6429 fi
6430 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
6431 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6
6432 if test $ac_cv_lib_intl_textdomain = yes; then
6433   save_LDFLAGS="${save_LDFLAGS} -lintl"
6434 fi
6435
6436
6437 fi
6438
6439
6440 NEED_GETOPT=0
6441 echo "$as_me:$LINENO: checking for getopt_long" >&5
6442 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
6443 if test "${ac_cv_func_getopt_long+set}" = set; then
6444   echo $ECHO_N "(cached) $ECHO_C" >&6
6445 else
6446   cat >conftest.$ac_ext <<_ACEOF
6447 #line $LINENO "configure"
6448 #include "confdefs.h"
6449 /* System header to define __stub macros and hopefully few prototypes,
6450     which can conflict with char getopt_long (); below.  */
6451 #include <assert.h>
6452 /* Override any gcc2 internal prototype to avoid an error.  */
6453 #ifdef __cplusplus
6454 extern "C"
6455 #endif
6456 /* We use char because int might match the return type of a gcc2
6457    builtin and then its argument prototype would still apply.  */
6458 char getopt_long ();
6459 char (*f) ();
6460
6461 #ifdef F77_DUMMY_MAIN
6462 #  ifdef __cplusplus
6463      extern "C"
6464 #  endif
6465    int F77_DUMMY_MAIN() { return 1; }
6466 #endif
6467 int
6468 main ()
6469 {
6470 /* The GNU C library defines this for functions which it implements
6471     to always fail with ENOSYS.  Some functions are actually named
6472     something starting with __ and the normal name is an alias.  */
6473 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
6474 choke me
6475 #else
6476 f = getopt_long;
6477 #endif
6478
6479   ;
6480   return 0;
6481 }
6482 _ACEOF
6483 rm -f conftest.$ac_objext conftest$ac_exeext
6484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6485   (eval $ac_link) 2>&5
6486   ac_status=$?
6487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488   (exit $ac_status); } &&
6489          { ac_try='test -s conftest$ac_exeext'
6490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491   (eval $ac_try) 2>&5
6492   ac_status=$?
6493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494   (exit $ac_status); }; }; then
6495   ac_cv_func_getopt_long=yes
6496 else
6497   echo "$as_me: failed program was:" >&5
6498 cat conftest.$ac_ext >&5
6499 ac_cv_func_getopt_long=no
6500 fi
6501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6502 fi
6503 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
6504 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
6505 if test $ac_cv_func_getopt_long = yes; then
6506
6507 cat >>confdefs.h <<\_ACEOF
6508 #define HAVE_GETOPT_LONG 1
6509 _ACEOF
6510
6511 else
6512    # FreeBSD has a gnugetopt library for this:
6513   echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
6514 echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
6515 if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
6516   echo $ECHO_N "(cached) $ECHO_C" >&6
6517 else
6518   ac_check_lib_save_LIBS=$LIBS
6519 LIBS="-lgnugetopt  $LIBS"
6520 cat >conftest.$ac_ext <<_ACEOF
6521 #line $LINENO "configure"
6522 #include "confdefs.h"
6523
6524 /* Override any gcc2 internal prototype to avoid an error.  */
6525 #ifdef __cplusplus
6526 extern "C"
6527 #endif
6528 /* We use char because int might match the return type of a gcc2
6529    builtin and then its argument prototype would still apply.  */
6530 char getopt_long ();
6531 #ifdef F77_DUMMY_MAIN
6532 #  ifdef __cplusplus
6533      extern "C"
6534 #  endif
6535    int F77_DUMMY_MAIN() { return 1; }
6536 #endif
6537 int
6538 main ()
6539 {
6540 getopt_long ();
6541   ;
6542   return 0;
6543 }
6544 _ACEOF
6545 rm -f conftest.$ac_objext conftest$ac_exeext
6546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6547   (eval $ac_link) 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); } &&
6551          { ac_try='test -s conftest$ac_exeext'
6552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553   (eval $ac_try) 2>&5
6554   ac_status=$?
6555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556   (exit $ac_status); }; }; then
6557   ac_cv_lib_gnugetopt_getopt_long=yes
6558 else
6559   echo "$as_me: failed program was:" >&5
6560 cat conftest.$ac_ext >&5
6561 ac_cv_lib_gnugetopt_getopt_long=no
6562 fi
6563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6564 LIBS=$ac_check_lib_save_LIBS
6565 fi
6566 echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
6567 echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
6568 if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
6569
6570 cat >>confdefs.h <<\_ACEOF
6571 #define HAVE_GETOPT_LONG 1
6572 _ACEOF
6573  vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"
6574 else
6575   NEED_GETOPT=1
6576 fi
6577
6578 fi
6579
6580
6581 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6582 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6583 if test "${ac_cv_type_signal+set}" = set; then
6584   echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586   cat >conftest.$ac_ext <<_ACEOF
6587 #line $LINENO "configure"
6588 #include "confdefs.h"
6589 #include <sys/types.h>
6590 #include <signal.h>
6591 #ifdef signal
6592 # undef signal
6593 #endif
6594 #ifdef __cplusplus
6595 extern "C" void (*signal (int, void (*)(int)))(int);
6596 #else
6597 void (*signal ()) ();
6598 #endif
6599
6600 #ifdef F77_DUMMY_MAIN
6601 #  ifdef __cplusplus
6602      extern "C"
6603 #  endif
6604    int F77_DUMMY_MAIN() { return 1; }
6605 #endif
6606 int
6607 main ()
6608 {
6609 int i;
6610   ;
6611   return 0;
6612 }
6613 _ACEOF
6614 rm -f conftest.$ac_objext
6615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6616   (eval $ac_compile) 2>&5
6617   ac_status=$?
6618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619   (exit $ac_status); } &&
6620          { ac_try='test -s conftest.$ac_objext'
6621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622   (eval $ac_try) 2>&5
6623   ac_status=$?
6624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625   (exit $ac_status); }; }; then
6626   ac_cv_type_signal=void
6627 else
6628   echo "$as_me: failed program was:" >&5
6629 cat conftest.$ac_ext >&5
6630 ac_cv_type_signal=int
6631 fi
6632 rm -f conftest.$ac_objext conftest.$ac_ext
6633 fi
6634 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6635 echo "${ECHO_T}$ac_cv_type_signal" >&6
6636
6637 cat >>confdefs.h <<_ACEOF
6638 #define RETSIGTYPE $ac_cv_type_signal
6639 _ACEOF
6640
6641
6642 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6643 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6644 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6645   echo $ECHO_N "(cached) $ECHO_C" >&6
6646 else
6647   ac_check_lib_save_LIBS=$LIBS
6648 LIBS="-ldl  $LIBS"
6649 cat >conftest.$ac_ext <<_ACEOF
6650 #line $LINENO "configure"
6651 #include "confdefs.h"
6652
6653 /* Override any gcc2 internal prototype to avoid an error.  */
6654 #ifdef __cplusplus
6655 extern "C"
6656 #endif
6657 /* We use char because int might match the return type of a gcc2
6658    builtin and then its argument prototype would still apply.  */
6659 char dlopen ();
6660 #ifdef F77_DUMMY_MAIN
6661 #  ifdef __cplusplus
6662      extern "C"
6663 #  endif
6664    int F77_DUMMY_MAIN() { return 1; }
6665 #endif
6666 int
6667 main ()
6668 {
6669 dlopen ();
6670   ;
6671   return 0;
6672 }
6673 _ACEOF
6674 rm -f conftest.$ac_objext conftest$ac_exeext
6675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6676   (eval $ac_link) 2>&5
6677   ac_status=$?
6678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679   (exit $ac_status); } &&
6680          { ac_try='test -s conftest$ac_exeext'
6681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682   (eval $ac_try) 2>&5
6683   ac_status=$?
6684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685   (exit $ac_status); }; }; then
6686   ac_cv_lib_dl_dlopen=yes
6687 else
6688   echo "$as_me: failed program was:" >&5
6689 cat conftest.$ac_ext >&5
6690 ac_cv_lib_dl_dlopen=no
6691 fi
6692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6693 LIBS=$ac_check_lib_save_LIBS
6694 fi
6695 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6696 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6697 if test $ac_cv_lib_dl_dlopen = yes; then
6698   vlc_LDFLAGS="${vlc_LDFLAGS} -ldl"
6699 fi
6700
6701 echo "$as_me:$LINENO: checking for cos in -lm" >&5
6702 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
6703 if test "${ac_cv_lib_m_cos+set}" = set; then
6704   echo $ECHO_N "(cached) $ECHO_C" >&6
6705 else
6706   ac_check_lib_save_LIBS=$LIBS
6707 LIBS="-lm  $LIBS"
6708 cat >conftest.$ac_ext <<_ACEOF
6709 #line $LINENO "configure"
6710 #include "confdefs.h"
6711
6712 /* Override any gcc2 internal prototype to avoid an error.  */
6713 #ifdef __cplusplus
6714 extern "C"
6715 #endif
6716 /* We use char because int might match the return type of a gcc2
6717    builtin and then its argument prototype would still apply.  */
6718 char cos ();
6719 #ifdef F77_DUMMY_MAIN
6720 #  ifdef __cplusplus
6721      extern "C"
6722 #  endif
6723    int F77_DUMMY_MAIN() { return 1; }
6724 #endif
6725 int
6726 main ()
6727 {
6728 cos ();
6729   ;
6730   return 0;
6731 }
6732 _ACEOF
6733 rm -f conftest.$ac_objext conftest$ac_exeext
6734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6735   (eval $ac_link) 2>&5
6736   ac_status=$?
6737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738   (exit $ac_status); } &&
6739          { ac_try='test -s conftest$ac_exeext'
6740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741   (eval $ac_try) 2>&5
6742   ac_status=$?
6743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744   (exit $ac_status); }; }; then
6745   ac_cv_lib_m_cos=yes
6746 else
6747   echo "$as_me: failed program was:" >&5
6748 cat conftest.$ac_ext >&5
6749 ac_cv_lib_m_cos=no
6750 fi
6751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6752 LIBS=$ac_check_lib_save_LIBS
6753 fi
6754 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
6755 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
6756 if test $ac_cv_lib_m_cos = yes; then
6757   imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
6758   filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm"
6759 fi
6760
6761 echo "$as_me:$LINENO: checking for pow in -lm" >&5
6762 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
6763 if test "${ac_cv_lib_m_pow+set}" = set; then
6764   echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766   ac_check_lib_save_LIBS=$LIBS
6767 LIBS="-lm  $LIBS"
6768 cat >conftest.$ac_ext <<_ACEOF
6769 #line $LINENO "configure"
6770 #include "confdefs.h"
6771
6772 /* Override any gcc2 internal prototype to avoid an error.  */
6773 #ifdef __cplusplus
6774 extern "C"
6775 #endif
6776 /* We use char because int might match the return type of a gcc2
6777    builtin and then its argument prototype would still apply.  */
6778 char pow ();
6779 #ifdef F77_DUMMY_MAIN
6780 #  ifdef __cplusplus
6781      extern "C"
6782 #  endif
6783    int F77_DUMMY_MAIN() { return 1; }
6784 #endif
6785 int
6786 main ()
6787 {
6788 pow ();
6789   ;
6790   return 0;
6791 }
6792 _ACEOF
6793 rm -f conftest.$ac_objext conftest$ac_exeext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6795   (eval $ac_link) 2>&5
6796   ac_status=$?
6797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798   (exit $ac_status); } &&
6799          { ac_try='test -s conftest$ac_exeext'
6800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801   (eval $ac_try) 2>&5
6802   ac_status=$?
6803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804   (exit $ac_status); }; }; then
6805   ac_cv_lib_m_pow=yes
6806 else
6807   echo "$as_me: failed program was:" >&5
6808 cat conftest.$ac_ext >&5
6809 ac_cv_lib_m_pow=no
6810 fi
6811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6812 LIBS=$ac_check_lib_save_LIBS
6813 fi
6814 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
6815 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
6816 if test $ac_cv_lib_m_pow = yes; then
6817   imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
6818   imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
6819   imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
6820   chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
6821
6822 fi
6823
6824
6825 THREAD_LIB=error
6826 if test "x${THREAD_LIB}" = xerror; then
6827   echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthread" >&5
6828 echo $ECHO_N "checking for pthread_attr_init in -lpthread... $ECHO_C" >&6
6829 if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then
6830   echo $ECHO_N "(cached) $ECHO_C" >&6
6831 else
6832   ac_check_lib_save_LIBS=$LIBS
6833 LIBS="-lpthread  $LIBS"
6834 cat >conftest.$ac_ext <<_ACEOF
6835 #line $LINENO "configure"
6836 #include "confdefs.h"
6837
6838 /* Override any gcc2 internal prototype to avoid an error.  */
6839 #ifdef __cplusplus
6840 extern "C"
6841 #endif
6842 /* We use char because int might match the return type of a gcc2
6843    builtin and then its argument prototype would still apply.  */
6844 char pthread_attr_init ();
6845 #ifdef F77_DUMMY_MAIN
6846 #  ifdef __cplusplus
6847      extern "C"
6848 #  endif
6849    int F77_DUMMY_MAIN() { return 1; }
6850 #endif
6851 int
6852 main ()
6853 {
6854 pthread_attr_init ();
6855   ;
6856   return 0;
6857 }
6858 _ACEOF
6859 rm -f conftest.$ac_objext conftest$ac_exeext
6860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6861   (eval $ac_link) 2>&5
6862   ac_status=$?
6863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864   (exit $ac_status); } &&
6865          { ac_try='test -s conftest$ac_exeext'
6866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867   (eval $ac_try) 2>&5
6868   ac_status=$?
6869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870   (exit $ac_status); }; }; then
6871   ac_cv_lib_pthread_pthread_attr_init=yes
6872 else
6873   echo "$as_me: failed program was:" >&5
6874 cat conftest.$ac_ext >&5
6875 ac_cv_lib_pthread_pthread_attr_init=no
6876 fi
6877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6878 LIBS=$ac_check_lib_save_LIBS
6879 fi
6880 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
6881 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_attr_init" >&6
6882 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
6883   THREAD_LIB="-lpthread"
6884 fi
6885
6886 fi
6887 if test "x${THREAD_LIB}" = xerror; then
6888   echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthreads" >&5
6889 echo $ECHO_N "checking for pthread_attr_init in -lpthreads... $ECHO_C" >&6
6890 if test "${ac_cv_lib_pthreads_pthread_attr_init+set}" = set; then
6891   echo $ECHO_N "(cached) $ECHO_C" >&6
6892 else
6893   ac_check_lib_save_LIBS=$LIBS
6894 LIBS="-lpthreads  $LIBS"
6895 cat >conftest.$ac_ext <<_ACEOF
6896 #line $LINENO "configure"
6897 #include "confdefs.h"
6898
6899 /* Override any gcc2 internal prototype to avoid an error.  */
6900 #ifdef __cplusplus
6901 extern "C"
6902 #endif
6903 /* We use char because int might match the return type of a gcc2
6904    builtin and then its argument prototype would still apply.  */
6905 char pthread_attr_init ();
6906 #ifdef F77_DUMMY_MAIN
6907 #  ifdef __cplusplus
6908      extern "C"
6909 #  endif
6910    int F77_DUMMY_MAIN() { return 1; }
6911 #endif
6912 int
6913 main ()
6914 {
6915 pthread_attr_init ();
6916   ;
6917   return 0;
6918 }
6919 _ACEOF
6920 rm -f conftest.$ac_objext conftest$ac_exeext
6921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6922   (eval $ac_link) 2>&5
6923   ac_status=$?
6924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925   (exit $ac_status); } &&
6926          { ac_try='test -s conftest$ac_exeext'
6927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928   (eval $ac_try) 2>&5
6929   ac_status=$?
6930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931   (exit $ac_status); }; }; then
6932   ac_cv_lib_pthreads_pthread_attr_init=yes
6933 else
6934   echo "$as_me: failed program was:" >&5
6935 cat conftest.$ac_ext >&5
6936 ac_cv_lib_pthreads_pthread_attr_init=no
6937 fi
6938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6939 LIBS=$ac_check_lib_save_LIBS
6940 fi
6941 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_attr_init" >&5
6942 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_attr_init" >&6
6943 if test $ac_cv_lib_pthreads_pthread_attr_init = yes; then
6944   THREAD_LIB="-lpthreads"
6945 fi
6946
6947 fi
6948 if test "x${THREAD_LIB}" = xerror; then
6949   echo "$as_me:$LINENO: checking for pthread_attr_init in -lc_r" >&5
6950 echo $ECHO_N "checking for pthread_attr_init in -lc_r... $ECHO_C" >&6
6951 if test "${ac_cv_lib_c_r_pthread_attr_init+set}" = set; then
6952   echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954   ac_check_lib_save_LIBS=$LIBS
6955 LIBS="-lc_r  $LIBS"
6956 cat >conftest.$ac_ext <<_ACEOF
6957 #line $LINENO "configure"
6958 #include "confdefs.h"
6959
6960 /* Override any gcc2 internal prototype to avoid an error.  */
6961 #ifdef __cplusplus
6962 extern "C"
6963 #endif
6964 /* We use char because int might match the return type of a gcc2
6965    builtin and then its argument prototype would still apply.  */
6966 char pthread_attr_init ();
6967 #ifdef F77_DUMMY_MAIN
6968 #  ifdef __cplusplus
6969      extern "C"
6970 #  endif
6971    int F77_DUMMY_MAIN() { return 1; }
6972 #endif
6973 int
6974 main ()
6975 {
6976 pthread_attr_init ();
6977   ;
6978   return 0;
6979 }
6980 _ACEOF
6981 rm -f conftest.$ac_objext conftest$ac_exeext
6982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6983   (eval $ac_link) 2>&5
6984   ac_status=$?
6985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986   (exit $ac_status); } &&
6987          { ac_try='test -s conftest$ac_exeext'
6988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989   (eval $ac_try) 2>&5
6990   ac_status=$?
6991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992   (exit $ac_status); }; }; then
6993   ac_cv_lib_c_r_pthread_attr_init=yes
6994 else
6995   echo "$as_me: failed program was:" >&5
6996 cat conftest.$ac_ext >&5
6997 ac_cv_lib_c_r_pthread_attr_init=no
6998 fi
6999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7000 LIBS=$ac_check_lib_save_LIBS
7001 fi
7002 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_attr_init" >&5
7003 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_attr_init" >&6
7004 if test $ac_cv_lib_c_r_pthread_attr_init = yes; then
7005   THREAD_LIB="-lc_r"
7006 fi
7007
7008 fi
7009 if test "x${THREAD_LIB}" = xerror; then
7010   echo "$as_me:$LINENO: checking for pthread_attr_init" >&5
7011 echo $ECHO_N "checking for pthread_attr_init... $ECHO_C" >&6
7012 if test "${ac_cv_func_pthread_attr_init+set}" = set; then
7013   echo $ECHO_N "(cached) $ECHO_C" >&6
7014 else
7015   cat >conftest.$ac_ext <<_ACEOF
7016 #line $LINENO "configure"
7017 #include "confdefs.h"
7018 /* System header to define __stub macros and hopefully few prototypes,
7019     which can conflict with char pthread_attr_init (); below.  */
7020 #include <assert.h>
7021 /* Override any gcc2 internal prototype to avoid an error.  */
7022 #ifdef __cplusplus
7023 extern "C"
7024 #endif
7025 /* We use char because int might match the return type of a gcc2
7026    builtin and then its argument prototype would still apply.  */
7027 char pthread_attr_init ();
7028 char (*f) ();
7029
7030 #ifdef F77_DUMMY_MAIN
7031 #  ifdef __cplusplus
7032      extern "C"
7033 #  endif
7034    int F77_DUMMY_MAIN() { return 1; }
7035 #endif
7036 int
7037 main ()
7038 {
7039 /* The GNU C library defines this for functions which it implements
7040     to always fail with ENOSYS.  Some functions are actually named
7041     something starting with __ and the normal name is an alias.  */
7042 #if defined (__stub_pthread_attr_init) || defined (__stub___pthread_attr_init)
7043 choke me
7044 #else
7045 f = pthread_attr_init;
7046 #endif
7047
7048   ;
7049   return 0;
7050 }
7051 _ACEOF
7052 rm -f conftest.$ac_objext conftest$ac_exeext
7053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7054   (eval $ac_link) 2>&5
7055   ac_status=$?
7056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057   (exit $ac_status); } &&
7058          { ac_try='test -s conftest$ac_exeext'
7059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060   (eval $ac_try) 2>&5
7061   ac_status=$?
7062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063   (exit $ac_status); }; }; then
7064   ac_cv_func_pthread_attr_init=yes
7065 else
7066   echo "$as_me: failed program was:" >&5
7067 cat conftest.$ac_ext >&5
7068 ac_cv_func_pthread_attr_init=no
7069 fi
7070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7071 fi
7072 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_init" >&5
7073 echo "${ECHO_T}$ac_cv_func_pthread_attr_init" >&6
7074
7075   THREAD_LIB=""
7076 fi
7077
7078 echo "$as_me:$LINENO: checking for cthread_fork in -lthreads" >&5
7079 echo $ECHO_N "checking for cthread_fork in -lthreads... $ECHO_C" >&6
7080 if test "${ac_cv_lib_threads_cthread_fork+set}" = set; then
7081   echo $ECHO_N "(cached) $ECHO_C" >&6
7082 else
7083   ac_check_lib_save_LIBS=$LIBS
7084 LIBS="-lthreads  $LIBS"
7085 cat >conftest.$ac_ext <<_ACEOF
7086 #line $LINENO "configure"
7087 #include "confdefs.h"
7088
7089 /* Override any gcc2 internal prototype to avoid an error.  */
7090 #ifdef __cplusplus
7091 extern "C"
7092 #endif
7093 /* We use char because int might match the return type of a gcc2
7094    builtin and then its argument prototype would still apply.  */
7095 char cthread_fork ();
7096 #ifdef F77_DUMMY_MAIN
7097 #  ifdef __cplusplus
7098      extern "C"
7099 #  endif
7100    int F77_DUMMY_MAIN() { return 1; }
7101 #endif
7102 int
7103 main ()
7104 {
7105 cthread_fork ();
7106   ;
7107   return 0;
7108 }
7109 _ACEOF
7110 rm -f conftest.$ac_objext conftest$ac_exeext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7112   (eval $ac_link) 2>&5
7113   ac_status=$?
7114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115   (exit $ac_status); } &&
7116          { ac_try='test -s conftest$ac_exeext'
7117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118   (eval $ac_try) 2>&5
7119   ac_status=$?
7120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121   (exit $ac_status); }; }; then
7122   ac_cv_lib_threads_cthread_fork=yes
7123 else
7124   echo "$as_me: failed program was:" >&5
7125 cat conftest.$ac_ext >&5
7126 ac_cv_lib_threads_cthread_fork=no
7127 fi
7128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7129 LIBS=$ac_check_lib_save_LIBS
7130 fi
7131 echo "$as_me:$LINENO: result: $ac_cv_lib_threads_cthread_fork" >&5
7132 echo "${ECHO_T}$ac_cv_lib_threads_cthread_fork" >&6
7133 if test $ac_cv_lib_threads_cthread_fork = yes; then
7134   THREAD_LIB="-lthreads"
7135 fi
7136
7137
7138 cat >conftest.$ac_ext <<_ACEOF
7139 #line $LINENO "configure"
7140 #include "confdefs.h"
7141 #include <pthread.h>
7142
7143 _ACEOF
7144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7145   egrep "pthread_cond_t" >/dev/null 2>&1; then
7146
7147
7148 cat >>confdefs.h <<\_ACEOF
7149 #define PTHREAD_COND_T_IN_PTHREAD_H 1
7150 _ACEOF
7151
7152 fi
7153 rm -f conftest*
7154
7155 cat >conftest.$ac_ext <<_ACEOF
7156 #line $LINENO "configure"
7157 #include "confdefs.h"
7158 #include <strings.h>
7159
7160 _ACEOF
7161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7162   egrep "strncasecmp" >/dev/null 2>&1; then
7163
7164
7165 cat >>confdefs.h <<\_ACEOF
7166 #define STRNCASECMP_IN_STRINGS_H 1
7167 _ACEOF
7168
7169 fi
7170 rm -f conftest*
7171
7172
7173
7174
7175 for ac_header in getopt.h strings.h
7176 do
7177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7179   echo "$as_me:$LINENO: checking for $ac_header" >&5
7180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7182   echo $ECHO_N "(cached) $ECHO_C" >&6
7183 fi
7184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7186 else
7187   # Is the header compilable?
7188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7190 cat >conftest.$ac_ext <<_ACEOF
7191 #line $LINENO "configure"
7192 #include "confdefs.h"
7193 $ac_includes_default
7194 #include <$ac_header>
7195 _ACEOF
7196 rm -f conftest.$ac_objext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198   (eval $ac_compile) 2>&5
7199   ac_status=$?
7200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201   (exit $ac_status); } &&
7202          { ac_try='test -s conftest.$ac_objext'
7203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204   (eval $ac_try) 2>&5
7205   ac_status=$?
7206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207   (exit $ac_status); }; }; then
7208   ac_header_compiler=yes
7209 else
7210   echo "$as_me: failed program was:" >&5
7211 cat conftest.$ac_ext >&5
7212 ac_header_compiler=no
7213 fi
7214 rm -f conftest.$ac_objext conftest.$ac_ext
7215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7216 echo "${ECHO_T}$ac_header_compiler" >&6
7217
7218 # Is the header present?
7219 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7221 cat >conftest.$ac_ext <<_ACEOF
7222 #line $LINENO "configure"
7223 #include "confdefs.h"
7224 #include <$ac_header>
7225 _ACEOF
7226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7227   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7228   ac_status=$?
7229   egrep -v '^ *\+' conftest.er1 >conftest.err
7230   rm -f conftest.er1
7231   cat conftest.err >&5
7232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233   (exit $ac_status); } >/dev/null; then
7234   if test -s conftest.err; then
7235     ac_cpp_err=$ac_c_preproc_warn_flag
7236   else
7237     ac_cpp_err=
7238   fi
7239 else
7240   ac_cpp_err=yes
7241 fi
7242 if test -z "$ac_cpp_err"; then
7243   ac_header_preproc=yes
7244 else
7245   echo "$as_me: failed program was:" >&5
7246   cat conftest.$ac_ext >&5
7247   ac_header_preproc=no
7248 fi
7249 rm -f conftest.err conftest.$ac_ext
7250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7251 echo "${ECHO_T}$ac_header_preproc" >&6
7252
7253 # So?  What about this header?
7254 case $ac_header_compiler:$ac_header_preproc in
7255   yes:no )
7256     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7260   no:yes )
7261     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7263     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7264 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7265     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7267 esac
7268 echo "$as_me:$LINENO: checking for $ac_header" >&5
7269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7271   echo $ECHO_N "(cached) $ECHO_C" >&6
7272 else
7273   eval "$as_ac_Header=$ac_header_preproc"
7274 fi
7275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7277
7278 fi
7279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7280   cat >>confdefs.h <<_ACEOF
7281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7282 _ACEOF
7283
7284 fi
7285
7286 done
7287
7288
7289
7290
7291
7292
7293 for ac_header in sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h
7294 do
7295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7297   echo "$as_me:$LINENO: checking for $ac_header" >&5
7298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7300   echo $ECHO_N "(cached) $ECHO_C" >&6
7301 fi
7302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7304 else
7305   # Is the header compilable?
7306 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7308 cat >conftest.$ac_ext <<_ACEOF
7309 #line $LINENO "configure"
7310 #include "confdefs.h"
7311 $ac_includes_default
7312 #include <$ac_header>
7313 _ACEOF
7314 rm -f conftest.$ac_objext
7315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7316   (eval $ac_compile) 2>&5
7317   ac_status=$?
7318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319   (exit $ac_status); } &&
7320          { ac_try='test -s conftest.$ac_objext'
7321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322   (eval $ac_try) 2>&5
7323   ac_status=$?
7324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325   (exit $ac_status); }; }; then
7326   ac_header_compiler=yes
7327 else
7328   echo "$as_me: failed program was:" >&5
7329 cat conftest.$ac_ext >&5
7330 ac_header_compiler=no
7331 fi
7332 rm -f conftest.$ac_objext conftest.$ac_ext
7333 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7334 echo "${ECHO_T}$ac_header_compiler" >&6
7335
7336 # Is the header present?
7337 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7339 cat >conftest.$ac_ext <<_ACEOF
7340 #line $LINENO "configure"
7341 #include "confdefs.h"
7342 #include <$ac_header>
7343 _ACEOF
7344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7345   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7346   ac_status=$?
7347   egrep -v '^ *\+' conftest.er1 >conftest.err
7348   rm -f conftest.er1
7349   cat conftest.err >&5
7350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351   (exit $ac_status); } >/dev/null; then
7352   if test -s conftest.err; then
7353     ac_cpp_err=$ac_c_preproc_warn_flag
7354   else
7355     ac_cpp_err=
7356   fi
7357 else
7358   ac_cpp_err=yes
7359 fi
7360 if test -z "$ac_cpp_err"; then
7361   ac_header_preproc=yes
7362 else
7363   echo "$as_me: failed program was:" >&5
7364   cat conftest.$ac_ext >&5
7365   ac_header_preproc=no
7366 fi
7367 rm -f conftest.err conftest.$ac_ext
7368 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7369 echo "${ECHO_T}$ac_header_preproc" >&6
7370
7371 # So?  What about this header?
7372 case $ac_header_compiler:$ac_header_preproc in
7373   yes:no )
7374     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7376     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7378   no:yes )
7379     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7380 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7381     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7382 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7383     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7385 esac
7386 echo "$as_me:$LINENO: checking for $ac_header" >&5
7387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7389   echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391   eval "$as_ac_Header=$ac_header_preproc"
7392 fi
7393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7395
7396 fi
7397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7398   cat >>confdefs.h <<_ACEOF
7399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7400 _ACEOF
7401
7402 fi
7403
7404 done
7405
7406
7407
7408 for ac_header in dlfcn.h image.h
7409 do
7410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7412   echo "$as_me:$LINENO: checking for $ac_header" >&5
7413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7415   echo $ECHO_N "(cached) $ECHO_C" >&6
7416 fi
7417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7419 else
7420   # Is the header compilable?
7421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7423 cat >conftest.$ac_ext <<_ACEOF
7424 #line $LINENO "configure"
7425 #include "confdefs.h"
7426 $ac_includes_default
7427 #include <$ac_header>
7428 _ACEOF
7429 rm -f conftest.$ac_objext
7430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7431   (eval $ac_compile) 2>&5
7432   ac_status=$?
7433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434   (exit $ac_status); } &&
7435          { ac_try='test -s conftest.$ac_objext'
7436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437   (eval $ac_try) 2>&5
7438   ac_status=$?
7439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440   (exit $ac_status); }; }; then
7441   ac_header_compiler=yes
7442 else
7443   echo "$as_me: failed program was:" >&5
7444 cat conftest.$ac_ext >&5
7445 ac_header_compiler=no
7446 fi
7447 rm -f conftest.$ac_objext conftest.$ac_ext
7448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7449 echo "${ECHO_T}$ac_header_compiler" >&6
7450
7451 # Is the header present?
7452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7454 cat >conftest.$ac_ext <<_ACEOF
7455 #line $LINENO "configure"
7456 #include "confdefs.h"
7457 #include <$ac_header>
7458 _ACEOF
7459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7460   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7461   ac_status=$?
7462   egrep -v '^ *\+' conftest.er1 >conftest.err
7463   rm -f conftest.er1
7464   cat conftest.err >&5
7465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466   (exit $ac_status); } >/dev/null; then
7467   if test -s conftest.err; then
7468     ac_cpp_err=$ac_c_preproc_warn_flag
7469   else
7470     ac_cpp_err=
7471   fi
7472 else
7473   ac_cpp_err=yes
7474 fi
7475 if test -z "$ac_cpp_err"; then
7476   ac_header_preproc=yes
7477 else
7478   echo "$as_me: failed program was:" >&5
7479   cat conftest.$ac_ext >&5
7480   ac_header_preproc=no
7481 fi
7482 rm -f conftest.err conftest.$ac_ext
7483 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7484 echo "${ECHO_T}$ac_header_preproc" >&6
7485
7486 # So?  What about this header?
7487 case $ac_header_compiler:$ac_header_preproc in
7488   yes:no )
7489     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7491     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7493   no:yes )
7494     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7496     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7500 esac
7501 echo "$as_me:$LINENO: checking for $ac_header" >&5
7502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7504   echo $ECHO_N "(cached) $ECHO_C" >&6
7505 else
7506   eval "$as_ac_Header=$ac_header_preproc"
7507 fi
7508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7510
7511 fi
7512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7513   cat >>confdefs.h <<_ACEOF
7514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7515 _ACEOF
7516
7517 fi
7518
7519 done
7520
7521
7522
7523
7524
7525 for ac_header in arpa/inet.h net/if.h netinet/in.h sys/socket.h
7526 do
7527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7529   echo "$as_me:$LINENO: checking for $ac_header" >&5
7530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7532   echo $ECHO_N "(cached) $ECHO_C" >&6
7533 fi
7534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7536 else
7537   # Is the header compilable?
7538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7540 cat >conftest.$ac_ext <<_ACEOF
7541 #line $LINENO "configure"
7542 #include "confdefs.h"
7543 $ac_includes_default
7544 #include <$ac_header>
7545 _ACEOF
7546 rm -f conftest.$ac_objext
7547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7548   (eval $ac_compile) 2>&5
7549   ac_status=$?
7550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551   (exit $ac_status); } &&
7552          { ac_try='test -s conftest.$ac_objext'
7553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554   (eval $ac_try) 2>&5
7555   ac_status=$?
7556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557   (exit $ac_status); }; }; then
7558   ac_header_compiler=yes
7559 else
7560   echo "$as_me: failed program was:" >&5
7561 cat conftest.$ac_ext >&5
7562 ac_header_compiler=no
7563 fi
7564 rm -f conftest.$ac_objext conftest.$ac_ext
7565 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7566 echo "${ECHO_T}$ac_header_compiler" >&6
7567
7568 # Is the header present?
7569 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7571 cat >conftest.$ac_ext <<_ACEOF
7572 #line $LINENO "configure"
7573 #include "confdefs.h"
7574 #include <$ac_header>
7575 _ACEOF
7576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7577   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7578   ac_status=$?
7579   egrep -v '^ *\+' conftest.er1 >conftest.err
7580   rm -f conftest.er1
7581   cat conftest.err >&5
7582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583   (exit $ac_status); } >/dev/null; then
7584   if test -s conftest.err; then
7585     ac_cpp_err=$ac_c_preproc_warn_flag
7586   else
7587     ac_cpp_err=
7588   fi
7589 else
7590   ac_cpp_err=yes
7591 fi
7592 if test -z "$ac_cpp_err"; then
7593   ac_header_preproc=yes
7594 else
7595   echo "$as_me: failed program was:" >&5
7596   cat conftest.$ac_ext >&5
7597   ac_header_preproc=no
7598 fi
7599 rm -f conftest.err conftest.$ac_ext
7600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7601 echo "${ECHO_T}$ac_header_preproc" >&6
7602
7603 # So?  What about this header?
7604 case $ac_header_compiler:$ac_header_preproc in
7605   yes:no )
7606     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7610   no:yes )
7611     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7613     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7614 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7615     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7617 esac
7618 echo "$as_me:$LINENO: checking for $ac_header" >&5
7619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7621   echo $ECHO_N "(cached) $ECHO_C" >&6
7622 else
7623   eval "$as_ac_Header=$ac_header_preproc"
7624 fi
7625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7627
7628 fi
7629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7630   cat >>confdefs.h <<_ACEOF
7631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7632 _ACEOF
7633
7634 fi
7635
7636 done
7637
7638
7639
7640 for ac_header in machine/param.h sys/shm.h
7641 do
7642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7644   echo "$as_me:$LINENO: checking for $ac_header" >&5
7645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7647   echo $ECHO_N "(cached) $ECHO_C" >&6
7648 fi
7649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7651 else
7652   # Is the header compilable?
7653 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7655 cat >conftest.$ac_ext <<_ACEOF
7656 #line $LINENO "configure"
7657 #include "confdefs.h"
7658 $ac_includes_default
7659 #include <$ac_header>
7660 _ACEOF
7661 rm -f conftest.$ac_objext
7662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7663   (eval $ac_compile) 2>&5
7664   ac_status=$?
7665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666   (exit $ac_status); } &&
7667          { ac_try='test -s conftest.$ac_objext'
7668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669   (eval $ac_try) 2>&5
7670   ac_status=$?
7671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672   (exit $ac_status); }; }; then
7673   ac_header_compiler=yes
7674 else
7675   echo "$as_me: failed program was:" >&5
7676 cat conftest.$ac_ext >&5
7677 ac_header_compiler=no
7678 fi
7679 rm -f conftest.$ac_objext conftest.$ac_ext
7680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7681 echo "${ECHO_T}$ac_header_compiler" >&6
7682
7683 # Is the header present?
7684 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7686 cat >conftest.$ac_ext <<_ACEOF
7687 #line $LINENO "configure"
7688 #include "confdefs.h"
7689 #include <$ac_header>
7690 _ACEOF
7691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7692   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7693   ac_status=$?
7694   egrep -v '^ *\+' conftest.er1 >conftest.err
7695   rm -f conftest.er1
7696   cat conftest.err >&5
7697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698   (exit $ac_status); } >/dev/null; then
7699   if test -s conftest.err; then
7700     ac_cpp_err=$ac_c_preproc_warn_flag
7701   else
7702     ac_cpp_err=
7703   fi
7704 else
7705   ac_cpp_err=yes
7706 fi
7707 if test -z "$ac_cpp_err"; then
7708   ac_header_preproc=yes
7709 else
7710   echo "$as_me: failed program was:" >&5
7711   cat conftest.$ac_ext >&5
7712   ac_header_preproc=no
7713 fi
7714 rm -f conftest.err conftest.$ac_ext
7715 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7716 echo "${ECHO_T}$ac_header_preproc" >&6
7717
7718 # So?  What about this header?
7719 case $ac_header_compiler:$ac_header_preproc in
7720   yes:no )
7721     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7723     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7725   no:yes )
7726     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7728     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7730     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7732 esac
7733 echo "$as_me:$LINENO: checking for $ac_header" >&5
7734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7736   echo $ECHO_N "(cached) $ECHO_C" >&6
7737 else
7738   eval "$as_ac_Header=$ac_header_preproc"
7739 fi
7740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7742
7743 fi
7744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7745   cat >>confdefs.h <<_ACEOF
7746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7747 _ACEOF
7748
7749 fi
7750
7751 done
7752
7753
7754 for ac_header in linux/version.h
7755 do
7756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7758   echo "$as_me:$LINENO: checking for $ac_header" >&5
7759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7761   echo $ECHO_N "(cached) $ECHO_C" >&6
7762 fi
7763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7765 else
7766   # Is the header compilable?
7767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7769 cat >conftest.$ac_ext <<_ACEOF
7770 #line $LINENO "configure"
7771 #include "confdefs.h"
7772 $ac_includes_default
7773 #include <$ac_header>
7774 _ACEOF
7775 rm -f conftest.$ac_objext
7776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7777   (eval $ac_compile) 2>&5
7778   ac_status=$?
7779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780   (exit $ac_status); } &&
7781          { ac_try='test -s conftest.$ac_objext'
7782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783   (eval $ac_try) 2>&5
7784   ac_status=$?
7785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786   (exit $ac_status); }; }; then
7787   ac_header_compiler=yes
7788 else
7789   echo "$as_me: failed program was:" >&5
7790 cat conftest.$ac_ext >&5
7791 ac_header_compiler=no
7792 fi
7793 rm -f conftest.$ac_objext conftest.$ac_ext
7794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7795 echo "${ECHO_T}$ac_header_compiler" >&6
7796
7797 # Is the header present?
7798 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7800 cat >conftest.$ac_ext <<_ACEOF
7801 #line $LINENO "configure"
7802 #include "confdefs.h"
7803 #include <$ac_header>
7804 _ACEOF
7805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7806   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7807   ac_status=$?
7808   egrep -v '^ *\+' conftest.er1 >conftest.err
7809   rm -f conftest.er1
7810   cat conftest.err >&5
7811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812   (exit $ac_status); } >/dev/null; then
7813   if test -s conftest.err; then
7814     ac_cpp_err=$ac_c_preproc_warn_flag
7815   else
7816     ac_cpp_err=
7817   fi
7818 else
7819   ac_cpp_err=yes
7820 fi
7821 if test -z "$ac_cpp_err"; then
7822   ac_header_preproc=yes
7823 else
7824   echo "$as_me: failed program was:" >&5
7825   cat conftest.$ac_ext >&5
7826   ac_header_preproc=no
7827 fi
7828 rm -f conftest.err conftest.$ac_ext
7829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7830 echo "${ECHO_T}$ac_header_preproc" >&6
7831
7832 # So?  What about this header?
7833 case $ac_header_compiler:$ac_header_preproc in
7834   yes:no )
7835     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7839   no:yes )
7840     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7842     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7844     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7846 esac
7847 echo "$as_me:$LINENO: checking for $ac_header" >&5
7848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7850   echo $ECHO_N "(cached) $ECHO_C" >&6
7851 else
7852   eval "$as_ac_Header=$ac_header_preproc"
7853 fi
7854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7856
7857 fi
7858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7859   cat >>confdefs.h <<_ACEOF
7860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7861 _ACEOF
7862
7863 fi
7864
7865 done
7866
7867
7868 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7869 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7870 if test "${ac_cv_header_time+set}" = set; then
7871   echo $ECHO_N "(cached) $ECHO_C" >&6
7872 else
7873   cat >conftest.$ac_ext <<_ACEOF
7874 #line $LINENO "configure"
7875 #include "confdefs.h"
7876 #include <sys/types.h>
7877 #include <sys/time.h>
7878 #include <time.h>
7879
7880 #ifdef F77_DUMMY_MAIN
7881 #  ifdef __cplusplus
7882      extern "C"
7883 #  endif
7884    int F77_DUMMY_MAIN() { return 1; }
7885 #endif
7886 int
7887 main ()
7888 {
7889 if ((struct tm *) 0)
7890 return 0;
7891   ;
7892   return 0;
7893 }
7894 _ACEOF
7895 rm -f conftest.$ac_objext
7896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7897   (eval $ac_compile) 2>&5
7898   ac_status=$?
7899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900   (exit $ac_status); } &&
7901          { ac_try='test -s conftest.$ac_objext'
7902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903   (eval $ac_try) 2>&5
7904   ac_status=$?
7905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906   (exit $ac_status); }; }; then
7907   ac_cv_header_time=yes
7908 else
7909   echo "$as_me: failed program was:" >&5
7910 cat conftest.$ac_ext >&5
7911 ac_cv_header_time=no
7912 fi
7913 rm -f conftest.$ac_objext conftest.$ac_ext
7914 fi
7915 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7916 echo "${ECHO_T}$ac_cv_header_time" >&6
7917 if test $ac_cv_header_time = yes; then
7918
7919 cat >>confdefs.h <<\_ACEOF
7920 #define TIME_WITH_SYS_TIME 1
7921 _ACEOF
7922
7923 fi
7924
7925
7926 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
7927 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
7928 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
7929   echo $ECHO_N "(cached) $ECHO_C" >&6
7930 else
7931   cat >conftest.$ac_ext <<_ACEOF
7932 #line $LINENO "configure"
7933 #include "confdefs.h"
7934 $ac_includes_default
7935 #ifdef F77_DUMMY_MAIN
7936 #  ifdef __cplusplus
7937      extern "C"
7938 #  endif
7939    int F77_DUMMY_MAIN() { return 1; }
7940 #endif
7941 int
7942 main ()
7943 {
7944 #ifndef nanosleep
7945   char *p = (char *) nanosleep;
7946 #endif
7947
7948   ;
7949   return 0;
7950 }
7951 _ACEOF
7952 rm -f conftest.$ac_objext
7953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7954   (eval $ac_compile) 2>&5
7955   ac_status=$?
7956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957   (exit $ac_status); } &&
7958          { ac_try='test -s conftest.$ac_objext'
7959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960   (eval $ac_try) 2>&5
7961   ac_status=$?
7962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963   (exit $ac_status); }; }; then
7964   ac_cv_have_decl_nanosleep=yes
7965 else
7966   echo "$as_me: failed program was:" >&5
7967 cat conftest.$ac_ext >&5
7968 ac_cv_have_decl_nanosleep=no
7969 fi
7970 rm -f conftest.$ac_objext conftest.$ac_ext
7971 fi
7972 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
7973 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
7974 if test $ac_cv_have_decl_nanosleep = yes; then
7975
7976 cat >>confdefs.h <<_ACEOF
7977 #define HAVE_DECL_NANOSLEEP 1
7978 _ACEOF
7979
7980
7981 else
7982   cat >>confdefs.h <<_ACEOF
7983 #define HAVE_DECL_NANOSLEEP 0
7984 _ACEOF
7985
7986
7987 fi
7988
7989
7990
7991 echo "$as_me:$LINENO: checking for struct timespec" >&5
7992 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
7993 if test "${ac_cv_type_struct_timespec+set}" = set; then
7994   echo $ECHO_N "(cached) $ECHO_C" >&6
7995 else
7996   cat >conftest.$ac_ext <<_ACEOF
7997 #line $LINENO "configure"
7998 #include "confdefs.h"
7999 $ac_includes_default
8000 #ifdef F77_DUMMY_MAIN
8001 #  ifdef __cplusplus
8002      extern "C"
8003 #  endif
8004    int F77_DUMMY_MAIN() { return 1; }
8005 #endif
8006 int
8007 main ()
8008 {
8009 if ((struct timespec *) 0)
8010   return 0;
8011 if (sizeof (struct timespec))
8012   return 0;
8013   ;
8014   return 0;
8015 }
8016 _ACEOF
8017 rm -f conftest.$ac_objext
8018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8019   (eval $ac_compile) 2>&5
8020   ac_status=$?
8021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022   (exit $ac_status); } &&
8023          { ac_try='test -s conftest.$ac_objext'
8024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8025   (eval $ac_try) 2>&5
8026   ac_status=$?
8027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028   (exit $ac_status); }; }; then
8029   ac_cv_type_struct_timespec=yes
8030 else
8031   echo "$as_me: failed program was:" >&5
8032 cat conftest.$ac_ext >&5
8033 ac_cv_type_struct_timespec=no
8034 fi
8035 rm -f conftest.$ac_objext conftest.$ac_ext
8036 fi
8037 echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
8038 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6
8039 if test $ac_cv_type_struct_timespec = yes; then
8040
8041 cat >>confdefs.h <<_ACEOF
8042 #define HAVE_STRUCT_TIMESPEC 1
8043 _ACEOF
8044
8045
8046 fi
8047
8048
8049
8050
8051
8052
8053 for ac_header in cthreads.h pthread.h kernel/scheduler.h kernel/OS.h
8054 do
8055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8057   echo "$as_me:$LINENO: checking for $ac_header" >&5
8058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8060   echo $ECHO_N "(cached) $ECHO_C" >&6
8061 fi
8062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8064 else
8065   # Is the header compilable?
8066 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8068 cat >conftest.$ac_ext <<_ACEOF
8069 #line $LINENO "configure"
8070 #include "confdefs.h"
8071 $ac_includes_default
8072 #include <$ac_header>
8073 _ACEOF
8074 rm -f conftest.$ac_objext
8075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8076   (eval $ac_compile) 2>&5
8077   ac_status=$?
8078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079   (exit $ac_status); } &&
8080          { ac_try='test -s conftest.$ac_objext'
8081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082   (eval $ac_try) 2>&5
8083   ac_status=$?
8084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085   (exit $ac_status); }; }; then
8086   ac_header_compiler=yes
8087 else
8088   echo "$as_me: failed program was:" >&5
8089 cat conftest.$ac_ext >&5
8090 ac_header_compiler=no
8091 fi
8092 rm -f conftest.$ac_objext conftest.$ac_ext
8093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8094 echo "${ECHO_T}$ac_header_compiler" >&6
8095
8096 # Is the header present?
8097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8099 cat >conftest.$ac_ext <<_ACEOF
8100 #line $LINENO "configure"
8101 #include "confdefs.h"
8102 #include <$ac_header>
8103 _ACEOF
8104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8105   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8106   ac_status=$?
8107   egrep -v '^ *\+' conftest.er1 >conftest.err
8108   rm -f conftest.er1
8109   cat conftest.err >&5
8110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111   (exit $ac_status); } >/dev/null; then
8112   if test -s conftest.err; then
8113     ac_cpp_err=$ac_c_preproc_warn_flag
8114   else
8115     ac_cpp_err=
8116   fi
8117 else
8118   ac_cpp_err=yes
8119 fi
8120 if test -z "$ac_cpp_err"; then
8121   ac_header_preproc=yes
8122 else
8123   echo "$as_me: failed program was:" >&5
8124   cat conftest.$ac_ext >&5
8125   ac_header_preproc=no
8126 fi
8127 rm -f conftest.err conftest.$ac_ext
8128 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8129 echo "${ECHO_T}$ac_header_preproc" >&6
8130
8131 # So?  What about this header?
8132 case $ac_header_compiler:$ac_header_preproc in
8133   yes:no )
8134     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8136     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8138   no:yes )
8139     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8141     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8145 esac
8146 echo "$as_me:$LINENO: checking for $ac_header" >&5
8147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8149   echo $ECHO_N "(cached) $ECHO_C" >&6
8150 else
8151   eval "$as_ac_Header=$ac_header_preproc"
8152 fi
8153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8155
8156 fi
8157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8158   cat >>confdefs.h <<_ACEOF
8159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8160 _ACEOF
8161
8162 fi
8163
8164 done
8165
8166
8167 if test x$SYS != xmingw32
8168 then
8169   if test x$x_includes = xNONE; then
8170     x_includes=/usr/X11R6/include
8171   fi
8172   if test x$x_libraries = xNONE; then
8173     x_libraries=/usr/X11R6/lib
8174   fi
8175   CPPFLAGS="$save_CPPFLAGS -I$x_includes"
8176
8177 for ac_header in X11/extensions/dpms.h
8178 do
8179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8181   echo "$as_me:$LINENO: checking for $ac_header" >&5
8182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8184   echo $ECHO_N "(cached) $ECHO_C" >&6
8185 fi
8186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8188 else
8189   # Is the header compilable?
8190 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8192 cat >conftest.$ac_ext <<_ACEOF
8193 #line $LINENO "configure"
8194 #include "confdefs.h"
8195 $ac_includes_default
8196 #include <$ac_header>
8197 _ACEOF
8198 rm -f conftest.$ac_objext
8199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8200   (eval $ac_compile) 2>&5
8201   ac_status=$?
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); } &&
8204          { ac_try='test -s conftest.$ac_objext'
8205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206   (eval $ac_try) 2>&5
8207   ac_status=$?
8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); }; }; then
8210   ac_header_compiler=yes
8211 else
8212   echo "$as_me: failed program was:" >&5
8213 cat conftest.$ac_ext >&5
8214 ac_header_compiler=no
8215 fi
8216 rm -f conftest.$ac_objext conftest.$ac_ext
8217 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8218 echo "${ECHO_T}$ac_header_compiler" >&6
8219
8220 # Is the header present?
8221 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8222 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8223 cat >conftest.$ac_ext <<_ACEOF
8224 #line $LINENO "configure"
8225 #include "confdefs.h"
8226 #include <$ac_header>
8227 _ACEOF
8228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8229   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8230   ac_status=$?
8231   egrep -v '^ *\+' conftest.er1 >conftest.err
8232   rm -f conftest.er1
8233   cat conftest.err >&5
8234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235   (exit $ac_status); } >/dev/null; then
8236   if test -s conftest.err; then
8237     ac_cpp_err=$ac_c_preproc_warn_flag
8238   else
8239     ac_cpp_err=
8240   fi
8241 else
8242   ac_cpp_err=yes
8243 fi
8244 if test -z "$ac_cpp_err"; then
8245   ac_header_preproc=yes
8246 else
8247   echo "$as_me: failed program was:" >&5
8248   cat conftest.$ac_ext >&5
8249   ac_header_preproc=no
8250 fi
8251 rm -f conftest.err conftest.$ac_ext
8252 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8253 echo "${ECHO_T}$ac_header_preproc" >&6
8254
8255 # So?  What about this header?
8256 case $ac_header_compiler:$ac_header_preproc in
8257   yes:no )
8258     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8262   no:yes )
8263     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8265     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8267     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8269 esac
8270 echo "$as_me:$LINENO: checking for $ac_header" >&5
8271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8273   echo $ECHO_N "(cached) $ECHO_C" >&6
8274 else
8275   eval "$as_ac_Header=$ac_header_preproc"
8276 fi
8277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8279
8280 fi
8281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8282   cat >>confdefs.h <<_ACEOF
8283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8284 _ACEOF
8285
8286     cat >conftest.$ac_ext <<_ACEOF
8287 #line $LINENO "configure"
8288 #include "confdefs.h"
8289 #include <X11/extensions/dpms.h>
8290
8291 _ACEOF
8292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8293   egrep "DPMSInfo" >/dev/null 2>&1; then
8294
8295
8296 cat >>confdefs.h <<\_ACEOF
8297 #define DPMSINFO_IN_DPMS_H 1
8298 _ACEOF
8299
8300
8301 fi
8302 rm -f conftest*
8303
8304
8305 fi
8306
8307 done
8308
8309   CPPFLAGS="$save_CPPFLAGS"
8310 fi
8311
8312 echo "$as_me:$LINENO: checking for ntohl in sys/param.h" >&5
8313 echo $ECHO_N "checking for ntohl in sys/param.h... $ECHO_C" >&6
8314 if test "${ac_cv_c_ntohl_sys_param_h+set}" = set; then
8315   echo $ECHO_N "(cached) $ECHO_C" >&6
8316 else
8317   CFLAGS="${save_CFLAGS} -Wall -Werror"
8318      cat >conftest.$ac_ext <<_ACEOF
8319 #line $LINENO "configure"
8320 #include "confdefs.h"
8321 #include <sys/param.h>
8322 #ifdef F77_DUMMY_MAIN
8323 #  ifdef __cplusplus
8324      extern "C"
8325 #  endif
8326    int F77_DUMMY_MAIN() { return 1; }
8327 #endif
8328 int
8329 main ()
8330 {
8331 void foo() { int meuh; ntohl(meuh); }
8332   ;
8333   return 0;
8334 }
8335 _ACEOF
8336 rm -f conftest.$ac_objext
8337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8338   (eval $ac_compile) 2>&5
8339   ac_status=$?
8340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341   (exit $ac_status); } &&
8342          { ac_try='test -s conftest.$ac_objext'
8343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344   (eval $ac_try) 2>&5
8345   ac_status=$?
8346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347   (exit $ac_status); }; }; then
8348   ac_cv_c_ntohl_sys_param_h=yes
8349 else
8350   echo "$as_me: failed program was:" >&5
8351 cat conftest.$ac_ext >&5
8352 ac_cv_c_ntohl_sys_param_h=no
8353 fi
8354 rm -f conftest.$ac_objext conftest.$ac_ext
8355 fi
8356 echo "$as_me:$LINENO: result: $ac_cv_c_ntohl_sys_param_h" >&5
8357 echo "${ECHO_T}$ac_cv_c_ntohl_sys_param_h" >&6
8358 if test x"$ac_cv_c_ntohl_sys_param_h" != x"no"; then
8359
8360 cat >>confdefs.h <<\_ACEOF
8361 #define NTOHL_IN_SYS_PARAM_H 1
8362 _ACEOF
8363
8364 fi
8365
8366 echo "$as_me:$LINENO: checking if \$CC accepts -finline-limit" >&5
8367 echo $ECHO_N "checking if \$CC accepts -finline-limit... $ECHO_C" >&6
8368 if test "${ac_cv_c_inline_limit+set}" = set; then
8369   echo $ECHO_N "(cached) $ECHO_C" >&6
8370 else
8371   CFLAGS="${save_CFLAGS} -finline-limit-30000"
8372      cat >conftest.$ac_ext <<_ACEOF
8373 #line $LINENO "configure"
8374 #include "confdefs.h"
8375
8376 #ifdef F77_DUMMY_MAIN
8377 #  ifdef __cplusplus
8378      extern "C"
8379 #  endif
8380    int F77_DUMMY_MAIN() { return 1; }
8381 #endif
8382 int
8383 main ()
8384 {
8385
8386   ;
8387   return 0;
8388 }
8389 _ACEOF
8390 rm -f conftest.$ac_objext
8391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8392   (eval $ac_compile) 2>&5
8393   ac_status=$?
8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395   (exit $ac_status); } &&
8396          { ac_try='test -s conftest.$ac_objext'
8397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398   (eval $ac_try) 2>&5
8399   ac_status=$?
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); }; }; then
8402   ac_cv_c_inline_limit=yes
8403 else
8404   echo "$as_me: failed program was:" >&5
8405 cat conftest.$ac_ext >&5
8406 ac_cv_c_inline_limit=no
8407 fi
8408 rm -f conftest.$ac_objext conftest.$ac_ext
8409 fi
8410 echo "$as_me:$LINENO: result: $ac_cv_c_inline_limit" >&5
8411 echo "${ECHO_T}$ac_cv_c_inline_limit" >&6
8412 if test x"$ac_cv_c_inline_limit" != x"no"; then
8413     save_CFLAGS="${save_CFLAGS} -finline-limit-30000"
8414 fi
8415
8416 echo "$as_me:$LINENO: checking if \$CC accepts -Wall -Winline" >&5
8417 echo $ECHO_N "checking if \$CC accepts -Wall -Winline... $ECHO_C" >&6
8418 if test "${ac_cv_c_Wall_Winline+set}" = set; then
8419   echo $ECHO_N "(cached) $ECHO_C" >&6
8420 else
8421   CFLAGS="${save_CFLAGS} -Wall -Winline"
8422      cat >conftest.$ac_ext <<_ACEOF
8423 #line $LINENO "configure"
8424 #include "confdefs.h"
8425
8426 #ifdef F77_DUMMY_MAIN
8427 #  ifdef __cplusplus
8428      extern "C"
8429 #  endif
8430    int F77_DUMMY_MAIN() { return 1; }
8431 #endif
8432 int
8433 main ()
8434 {
8435
8436   ;
8437   return 0;
8438 }
8439 _ACEOF
8440 rm -f conftest.$ac_objext
8441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8442   (eval $ac_compile) 2>&5
8443   ac_status=$?
8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445   (exit $ac_status); } &&
8446          { ac_try='test -s conftest.$ac_objext'
8447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8448   (eval $ac_try) 2>&5
8449   ac_status=$?
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); }; }; then
8452   ac_cv_c_Wall_Winline=yes
8453 else
8454   echo "$as_me: failed program was:" >&5
8455 cat conftest.$ac_ext >&5
8456 ac_cv_c_Wall_Winline=no
8457 fi
8458 rm -f conftest.$ac_objext conftest.$ac_ext
8459 fi
8460 echo "$as_me:$LINENO: result: $ac_cv_c_Wall_Winline" >&5
8461 echo "${ECHO_T}$ac_cv_c_Wall_Winline" >&6
8462 if test x"$ac_cv_c_Wall_Winline" != x"no"; then
8463     save_CFLAGS="${save_CFLAGS} -Wall -Winline"
8464 else
8465     echo "$as_me:$LINENO: checking if \$CC accepts -wall -winline" >&5
8466 echo $ECHO_N "checking if \$CC accepts -wall -winline... $ECHO_C" >&6
8467 if test "${ac_cv_c_wall_winline+set}" = set; then
8468   echo $ECHO_N "(cached) $ECHO_C" >&6
8469 else
8470   CFLAGS="${save_CFLAGS} -wall -winline"
8471          cat >conftest.$ac_ext <<_ACEOF
8472 #line $LINENO "configure"
8473 #include "confdefs.h"
8474
8475 #ifdef F77_DUMMY_MAIN
8476 #  ifdef __cplusplus
8477      extern "C"
8478 #  endif
8479    int F77_DUMMY_MAIN() { return 1; }
8480 #endif
8481 int
8482 main ()
8483 {
8484
8485   ;
8486   return 0;
8487 }
8488 _ACEOF
8489 rm -f conftest.$ac_objext
8490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8491   (eval $ac_compile) 2>&5
8492   ac_status=$?
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); } &&
8495          { ac_try='test -s conftest.$ac_objext'
8496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497   (eval $ac_try) 2>&5
8498   ac_status=$?
8499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); }; }; then
8501   ac_cv_c_wall_winline=yes
8502 else
8503   echo "$as_me: failed program was:" >&5
8504 cat conftest.$ac_ext >&5
8505 ac_cv_c_wall_winline=no
8506 fi
8507 rm -f conftest.$ac_objext conftest.$ac_ext
8508 fi
8509 echo "$as_me:$LINENO: result: $ac_cv_c_wall_winline" >&5
8510 echo "${ECHO_T}$ac_cv_c_wall_winline" >&6
8511     if test x"$ac_cv_c_wall_winline" != x"no"; then
8512         save_CFLAGS="${save_CFLAGS} -wall -winline"
8513     fi
8514 fi
8515
8516 echo "$as_me:$LINENO: checking if \$CC accepts -pipe" >&5
8517 echo $ECHO_N "checking if \$CC accepts -pipe... $ECHO_C" >&6
8518 if test "${ac_cv_c_pipe+set}" = set; then
8519   echo $ECHO_N "(cached) $ECHO_C" >&6
8520 else
8521   CFLAGS="${save_CFLAGS} -pipe"
8522      cat >conftest.$ac_ext <<_ACEOF
8523 #line $LINENO "configure"
8524 #include "confdefs.h"
8525
8526 #ifdef F77_DUMMY_MAIN
8527 #  ifdef __cplusplus
8528      extern "C"
8529 #  endif
8530    int F77_DUMMY_MAIN() { return 1; }
8531 #endif
8532 int
8533 main ()
8534 {
8535
8536   ;
8537   return 0;
8538 }
8539 _ACEOF
8540 rm -f conftest.$ac_objext
8541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8542   (eval $ac_compile) 2>&5
8543   ac_status=$?
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); } &&
8546          { ac_try='test -s conftest.$ac_objext'
8547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548   (eval $ac_try) 2>&5
8549   ac_status=$?
8550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551   (exit $ac_status); }; }; then
8552   ac_cv_c_pipe=yes
8553 else
8554   echo "$as_me: failed program was:" >&5
8555 cat conftest.$ac_ext >&5
8556 ac_cv_c_pipe=no
8557 fi
8558 rm -f conftest.$ac_objext conftest.$ac_ext
8559 fi
8560 echo "$as_me:$LINENO: result: $ac_cv_c_pipe" >&5
8561 echo "${ECHO_T}$ac_cv_c_pipe" >&6
8562 if test x"$ac_cv_c_pipe" != x"no"; then
8563     save_CFLAGS="${save_CFLAGS} -pipe"
8564 fi
8565
8566 echo "$as_me:$LINENO: checking if \$CC accepts -O3" >&5
8567 echo $ECHO_N "checking if \$CC accepts -O3... $ECHO_C" >&6
8568 if test "${ac_cv_c_o3+set}" = set; then
8569   echo $ECHO_N "(cached) $ECHO_C" >&6
8570 else
8571   CFLAGS="${save_CFLAGS} -O3"
8572      cat >conftest.$ac_ext <<_ACEOF
8573 #line $LINENO "configure"
8574 #include "confdefs.h"
8575
8576 #ifdef F77_DUMMY_MAIN
8577 #  ifdef __cplusplus
8578      extern "C"
8579 #  endif
8580    int F77_DUMMY_MAIN() { return 1; }
8581 #endif
8582 int
8583 main ()
8584 {
8585
8586   ;
8587   return 0;
8588 }
8589 _ACEOF
8590 rm -f conftest.$ac_objext
8591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8592   (eval $ac_compile) 2>&5
8593   ac_status=$?
8594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595   (exit $ac_status); } &&
8596          { ac_try='test -s conftest.$ac_objext'
8597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598   (eval $ac_try) 2>&5
8599   ac_status=$?
8600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601   (exit $ac_status); }; }; then
8602   ac_cv_c_o3=yes
8603 else
8604   echo "$as_me: failed program was:" >&5
8605 cat conftest.$ac_ext >&5
8606 ac_cv_c_o3=no
8607 fi
8608 rm -f conftest.$ac_objext conftest.$ac_ext
8609 fi
8610 echo "$as_me:$LINENO: result: $ac_cv_c_o3" >&5
8611 echo "${ECHO_T}$ac_cv_c_o3" >&6
8612 if test x"$ac_cv_c_o3" != x"no"; then
8613     CFLAGS_OPTIM="${CFLAGS_OPTIM} -O3"
8614 else
8615     echo "$as_me:$LINENO: checking if \$CC accepts -O2" >&5
8616 echo $ECHO_N "checking if \$CC accepts -O2... $ECHO_C" >&6
8617 if test "${ac_cv_c_o2+set}" = set; then
8618   echo $ECHO_N "(cached) $ECHO_C" >&6
8619 else
8620   CFLAGS="${save_CFLAGS} -O2"
8621          cat >conftest.$ac_ext <<_ACEOF
8622 #line $LINENO "configure"
8623 #include "confdefs.h"
8624
8625 #ifdef F77_DUMMY_MAIN
8626 #  ifdef __cplusplus
8627      extern "C"
8628 #  endif
8629    int F77_DUMMY_MAIN() { return 1; }
8630 #endif
8631 int
8632 main ()
8633 {
8634
8635   ;
8636   return 0;
8637 }
8638 _ACEOF
8639 rm -f conftest.$ac_objext
8640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8641   (eval $ac_compile) 2>&5
8642   ac_status=$?
8643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644   (exit $ac_status); } &&
8645          { ac_try='test -s conftest.$ac_objext'
8646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647   (eval $ac_try) 2>&5
8648   ac_status=$?
8649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650   (exit $ac_status); }; }; then
8651   ac_cv_c_o2=yes
8652 else
8653   echo "$as_me: failed program was:" >&5
8654 cat conftest.$ac_ext >&5
8655 ac_cv_c_o2=no
8656 fi
8657 rm -f conftest.$ac_objext conftest.$ac_ext
8658 fi
8659 echo "$as_me:$LINENO: result: $ac_cv_c_o2" >&5
8660 echo "${ECHO_T}$ac_cv_c_o2" >&6
8661     if test x"$ac_cv_c_o2" != x"no"; then
8662         CFLAGS_OPTIM="${CFLAGS_OPTIM} -O2"
8663     else
8664         echo "$as_me:$LINENO: checking if \$CC accepts -O" >&5
8665 echo $ECHO_N "checking if \$CC accepts -O... $ECHO_C" >&6
8666 if test "${ac_cv_c_o+set}" = set; then
8667   echo $ECHO_N "(cached) $ECHO_C" >&6
8668 else
8669   CFLAGS="${save_CFLAGS} -O"
8670              cat >conftest.$ac_ext <<_ACEOF
8671 #line $LINENO "configure"
8672 #include "confdefs.h"
8673
8674 #ifdef F77_DUMMY_MAIN
8675 #  ifdef __cplusplus
8676      extern "C"
8677 #  endif
8678    int F77_DUMMY_MAIN() { return 1; }
8679 #endif
8680 int
8681 main ()
8682 {
8683
8684   ;
8685   return 0;
8686 }
8687 _ACEOF
8688 rm -f conftest.$ac_objext
8689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8690   (eval $ac_compile) 2>&5
8691   ac_status=$?
8692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693   (exit $ac_status); } &&
8694          { ac_try='test -s conftest.$ac_objext'
8695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696   (eval $ac_try) 2>&5
8697   ac_status=$?
8698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699   (exit $ac_status); }; }; then
8700   ac_cv_c_o=yes
8701 else
8702   echo "$as_me: failed program was:" >&5
8703 cat conftest.$ac_ext >&5
8704 ac_cv_c_o=no
8705 fi
8706 rm -f conftest.$ac_objext conftest.$ac_ext
8707 fi
8708 echo "$as_me:$LINENO: result: $ac_cv_c_o" >&5
8709 echo "${ECHO_T}$ac_cv_c_o" >&6
8710         if test x"$ac_cv_c_o" != x"no"; then
8711             CFLAGS_OPTIM="${CFLAGS_OPTIM} -O"
8712         fi
8713     fi
8714 fi
8715
8716 echo "$as_me:$LINENO: checking if \$CC accepts -ffast-math" >&5
8717 echo $ECHO_N "checking if \$CC accepts -ffast-math... $ECHO_C" >&6
8718 if test "${ac_cv_c_fast_math+set}" = set; then
8719   echo $ECHO_N "(cached) $ECHO_C" >&6
8720 else
8721   CFLAGS="${save_CFLAGS} -ffast-math"
8722      cat >conftest.$ac_ext <<_ACEOF
8723 #line $LINENO "configure"
8724 #include "confdefs.h"
8725
8726 #ifdef F77_DUMMY_MAIN
8727 #  ifdef __cplusplus
8728      extern "C"
8729 #  endif
8730    int F77_DUMMY_MAIN() { return 1; }
8731 #endif
8732 int
8733 main ()
8734 {
8735
8736   ;
8737   return 0;
8738 }
8739 _ACEOF
8740 rm -f conftest.$ac_objext
8741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8742   (eval $ac_compile) 2>&5
8743   ac_status=$?
8744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745   (exit $ac_status); } &&
8746          { ac_try='test -s conftest.$ac_objext'
8747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8748   (eval $ac_try) 2>&5
8749   ac_status=$?
8750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751   (exit $ac_status); }; }; then
8752   ac_cv_c_fast_math=yes
8753 else
8754   echo "$as_me: failed program was:" >&5
8755 cat conftest.$ac_ext >&5
8756 ac_cv_c_fast_math=no
8757 fi
8758 rm -f conftest.$ac_objext conftest.$ac_ext
8759 fi
8760 echo "$as_me:$LINENO: result: $ac_cv_c_fast_math" >&5
8761 echo "${ECHO_T}$ac_cv_c_fast_math" >&6
8762 if test x"$ac_cv_c_fast_math" != x"no"; then
8763     CFLAGS_OPTIM="${CFLAGS_OPTIM} -ffast-math"
8764 fi
8765
8766 echo "$as_me:$LINENO: checking if \$CC accepts -funroll-loops" >&5
8767 echo $ECHO_N "checking if \$CC accepts -funroll-loops... $ECHO_C" >&6
8768 if test "${ac_cv_c_unroll_loops+set}" = set; then
8769   echo $ECHO_N "(cached) $ECHO_C" >&6
8770 else
8771   CFLAGS="${save_CFLAGS} -funroll-loops"
8772      cat >conftest.$ac_ext <<_ACEOF
8773 #line $LINENO "configure"
8774 #include "confdefs.h"
8775
8776 #ifdef F77_DUMMY_MAIN
8777 #  ifdef __cplusplus
8778      extern "C"
8779 #  endif
8780    int F77_DUMMY_MAIN() { return 1; }
8781 #endif
8782 int
8783 main ()
8784 {
8785
8786   ;
8787   return 0;
8788 }
8789 _ACEOF
8790 rm -f conftest.$ac_objext
8791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8792   (eval $ac_compile) 2>&5
8793   ac_status=$?
8794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795   (exit $ac_status); } &&
8796          { ac_try='test -s conftest.$ac_objext'
8797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798   (eval $ac_try) 2>&5
8799   ac_status=$?
8800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801   (exit $ac_status); }; }; then
8802   ac_cv_c_unroll_loops=yes
8803 else
8804   echo "$as_me: failed program was:" >&5
8805 cat conftest.$ac_ext >&5
8806 ac_cv_c_unroll_loops=no
8807 fi
8808 rm -f conftest.$ac_objext conftest.$ac_ext
8809 fi
8810 echo "$as_me:$LINENO: result: $ac_cv_c_unroll_loops" >&5
8811 echo "${ECHO_T}$ac_cv_c_unroll_loops" >&6
8812 if test x"$ac_cv_c_unroll_loops" != x"no"; then
8813     CFLAGS_OPTIM="${CFLAGS_OPTIM} -funroll-loops"
8814 fi
8815
8816 echo "$as_me:$LINENO: checking if \$CC accepts -fomit-frame-pointer" >&5
8817 echo $ECHO_N "checking if \$CC accepts -fomit-frame-pointer... $ECHO_C" >&6
8818 if test "${ac_cv_c_omit_frame_pointer+set}" = set; then
8819   echo $ECHO_N "(cached) $ECHO_C" >&6
8820 else
8821   CFLAGS="${save_CFLAGS} -fomit-frame-pointer"
8822      cat >conftest.$ac_ext <<_ACEOF
8823 #line $LINENO "configure"
8824 #include "confdefs.h"
8825
8826 #ifdef F77_DUMMY_MAIN
8827 #  ifdef __cplusplus
8828      extern "C"
8829 #  endif
8830    int F77_DUMMY_MAIN() { return 1; }
8831 #endif
8832 int
8833 main ()
8834 {
8835
8836   ;
8837   return 0;
8838 }
8839 _ACEOF
8840 rm -f conftest.$ac_objext
8841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8842   (eval $ac_compile) 2>&5
8843   ac_status=$?
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); } &&
8846          { ac_try='test -s conftest.$ac_objext'
8847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848   (eval $ac_try) 2>&5
8849   ac_status=$?
8850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851   (exit $ac_status); }; }; then
8852   ac_cv_c_omit_frame_pointer=yes
8853 else
8854   echo "$as_me: failed program was:" >&5
8855 cat conftest.$ac_ext >&5
8856 ac_cv_c_omit_frame_pointer=no
8857 fi
8858 rm -f conftest.$ac_objext conftest.$ac_ext
8859 fi
8860 echo "$as_me:$LINENO: result: $ac_cv_c_omit_frame_pointer" >&5
8861 echo "${ECHO_T}$ac_cv_c_omit_frame_pointer" >&6
8862 if test x"$ac_cv_c_omit_frame_pointer" != x"no"; then
8863     CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
8864 fi
8865
8866 echo "$as_me:$LINENO: checking if \$CC accepts -bundle -undefined error -lcc_dynamic" >&5
8867 echo $ECHO_N "checking if \$CC accepts -bundle -undefined error -lcc_dynamic... $ECHO_C" >&6
8868 if test "${ac_cv_ld_darwin+set}" = set; then
8869   echo $ECHO_N "(cached) $ECHO_C" >&6
8870 else
8871   CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
8872      cat >conftest.$ac_ext <<_ACEOF
8873 #line $LINENO "configure"
8874 #include "confdefs.h"
8875
8876 #ifdef F77_DUMMY_MAIN
8877 #  ifdef __cplusplus
8878      extern "C"
8879 #  endif
8880    int F77_DUMMY_MAIN() { return 1; }
8881 #endif
8882 int
8883 main ()
8884 {
8885
8886   ;
8887   return 0;
8888 }
8889 _ACEOF
8890 rm -f conftest.$ac_objext
8891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8892   (eval $ac_compile) 2>&5
8893   ac_status=$?
8894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895   (exit $ac_status); } &&
8896          { ac_try='test -s conftest.$ac_objext'
8897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898   (eval $ac_try) 2>&5
8899   ac_status=$?
8900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901   (exit $ac_status); }; }; then
8902   ac_cv_ld_darwin=yes
8903 else
8904   echo "$as_me: failed program was:" >&5
8905 cat conftest.$ac_ext >&5
8906 ac_cv_ld_darwin=no
8907 fi
8908 rm -f conftest.$ac_objext conftest.$ac_ext
8909 fi
8910 echo "$as_me:$LINENO: result: $ac_cv_ld_darwin" >&5
8911 echo "${ECHO_T}$ac_cv_ld_darwin" >&6
8912 if test x"$ac_cv_ld_darwin" != x"no"; then
8913     plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
8914 fi
8915
8916 echo "$as_me:$LINENO: checking if \$CC accepts -shared" >&5
8917 echo $ECHO_N "checking if \$CC accepts -shared... $ECHO_C" >&6
8918 if test "${ac_cv_ld_plugins+set}" = set; then
8919   echo $ECHO_N "(cached) $ECHO_C" >&6
8920 else
8921   CFLAGS="${save_CFLAGS} -shared"
8922      cat >conftest.$ac_ext <<_ACEOF
8923 #line $LINENO "configure"
8924 #include "confdefs.h"
8925
8926 #ifdef F77_DUMMY_MAIN
8927 #  ifdef __cplusplus
8928      extern "C"
8929 #  endif
8930    int F77_DUMMY_MAIN() { return 1; }
8931 #endif
8932 int
8933 main ()
8934 {
8935
8936   ;
8937   return 0;
8938 }
8939 _ACEOF
8940 rm -f conftest.$ac_objext
8941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8942   (eval $ac_compile) 2>&5
8943   ac_status=$?
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   (exit $ac_status); } &&
8946          { ac_try='test -s conftest.$ac_objext'
8947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948   (eval $ac_try) 2>&5
8949   ac_status=$?
8950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951   (exit $ac_status); }; }; then
8952   ac_cv_ld_plugins=yes
8953 else
8954   echo "$as_me: failed program was:" >&5
8955 cat conftest.$ac_ext >&5
8956 ac_cv_ld_plugins=no
8957 fi
8958 rm -f conftest.$ac_objext conftest.$ac_ext
8959 fi
8960 echo "$as_me:$LINENO: result: $ac_cv_ld_plugins" >&5
8961 echo "${ECHO_T}$ac_cv_ld_plugins" >&6
8962 if test x"$ac_cv_ld_plugins" != x"no"; then
8963     plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
8964 fi
8965
8966 echo "$as_me:$LINENO: checking for variadic cpp macros" >&5
8967 echo $ECHO_N "checking for variadic cpp macros... $ECHO_C" >&6
8968 if test "${ac_cv_cpp_variadic_macros+set}" = set; then
8969   echo $ECHO_N "(cached) $ECHO_C" >&6
8970 else
8971   CFLAGS="${save_CFLAGS}"
8972      cat >conftest.$ac_ext <<_ACEOF
8973 #line $LINENO "configure"
8974 #include "confdefs.h"
8975 #include <stdio.h>
8976           #define a(b,c...) printf(b,##c)
8977 #ifdef F77_DUMMY_MAIN
8978 #  ifdef __cplusplus
8979      extern "C"
8980 #  endif
8981    int F77_DUMMY_MAIN() { return 1; }
8982 #endif
8983 int
8984 main ()
8985 {
8986 a("foo");a("%s","bar");a("%s%s","baz","quux");
8987   ;
8988   return 0;
8989 }
8990 _ACEOF
8991 rm -f conftest.$ac_objext
8992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8993   (eval $ac_compile) 2>&5
8994   ac_status=$?
8995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996   (exit $ac_status); } &&
8997          { ac_try='test -s conftest.$ac_objext'
8998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999   (eval $ac_try) 2>&5
9000   ac_status=$?
9001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002   (exit $ac_status); }; }; then
9003   ac_cv_cpp_variadic_macros=yes
9004 else
9005   echo "$as_me: failed program was:" >&5
9006 cat conftest.$ac_ext >&5
9007 ac_cv_cpp_variadic_macros=no
9008 fi
9009 rm -f conftest.$ac_objext conftest.$ac_ext
9010 fi
9011 echo "$as_me:$LINENO: result: $ac_cv_cpp_variadic_macros" >&5
9012 echo "${ECHO_T}$ac_cv_cpp_variadic_macros" >&6
9013 if test x"$ac_cv_cpp_variadic_macros" != x"no"; then
9014
9015 cat >>confdefs.h <<\_ACEOF
9016 #define HAVE_VARIADIC_MACROS 1
9017 _ACEOF
9018
9019 fi
9020
9021 echo "$as_me:$LINENO: checking __attribute__ ((aligned ())) support" >&5
9022 echo $ECHO_N "checking __attribute__ ((aligned ())) support... $ECHO_C" >&6
9023 if test "${ac_cv_c_attribute_aligned+set}" = set; then
9024   echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026   ac_cv_c_attribute_aligned=0
9027         CFLAGS="${save_CFLAGS} -Werror"
9028     for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
9029         cat >conftest.$ac_ext <<_ACEOF
9030 #line $LINENO "configure"
9031 #include "confdefs.h"
9032
9033 #ifdef F77_DUMMY_MAIN
9034 #  ifdef __cplusplus
9035      extern "C"
9036 #  endif
9037    int F77_DUMMY_MAIN() { return 1; }
9038 #endif
9039 int
9040 main ()
9041 {
9042 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
9043   ;
9044   return 0;
9045 }
9046 _ACEOF
9047 rm -f conftest.$ac_objext
9048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9049   (eval $ac_compile) 2>&5
9050   ac_status=$?
9051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052   (exit $ac_status); } &&
9053          { ac_try='test -s conftest.$ac_objext'
9054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055   (eval $ac_try) 2>&5
9056   ac_status=$?
9057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058   (exit $ac_status); }; }; then
9059   ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
9060 else
9061   echo "$as_me: failed program was:" >&5
9062 cat conftest.$ac_ext >&5
9063 fi
9064 rm -f conftest.$ac_objext conftest.$ac_ext
9065     done
9066 fi
9067 echo "$as_me:$LINENO: result: $ac_cv_c_attribute_aligned" >&5
9068 echo "${ECHO_T}$ac_cv_c_attribute_aligned" >&6
9069 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
9070
9071 cat >>confdefs.h <<_ACEOF
9072 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
9073 _ACEOF
9074
9075 fi
9076
9077 CFLAGS="${save_CFLAGS}"
9078 CPPFLAGS="${save_CPPFLAGS}"
9079 LDFLAGS="${save_LDFLAGS}"
9080
9081 echo "$as_me:$LINENO: checking for boolean_t in sys/types.h" >&5
9082 echo $ECHO_N "checking for boolean_t in sys/types.h... $ECHO_C" >&6
9083 if test "${ac_cv_c_boolean_t_sys_types_h+set}" = set; then
9084   echo $ECHO_N "(cached) $ECHO_C" >&6
9085 else
9086   cat >conftest.$ac_ext <<_ACEOF
9087 #line $LINENO "configure"
9088 #include "confdefs.h"
9089 #include <sys/types.h>
9090 #ifdef F77_DUMMY_MAIN
9091 #  ifdef __cplusplus
9092      extern "C"
9093 #  endif
9094    int F77_DUMMY_MAIN() { return 1; }
9095 #endif
9096 int
9097 main ()
9098 {
9099 boolean_t foo;
9100   ;
9101   return 0;
9102 }
9103 _ACEOF
9104 rm -f conftest.$ac_objext
9105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9106   (eval $ac_compile) 2>&5
9107   ac_status=$?
9108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109   (exit $ac_status); } &&
9110          { ac_try='test -s conftest.$ac_objext'
9111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112   (eval $ac_try) 2>&5
9113   ac_status=$?
9114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115   (exit $ac_status); }; }; then
9116   ac_cv_c_boolean_t_sys_types_h=yes
9117 else
9118   echo "$as_me: failed program was:" >&5
9119 cat conftest.$ac_ext >&5
9120 ac_cv_c_boolean_t_sys_types_h=no
9121 fi
9122 rm -f conftest.$ac_objext conftest.$ac_ext
9123 fi
9124 echo "$as_me:$LINENO: result: $ac_cv_c_boolean_t_sys_types_h" >&5
9125 echo "${ECHO_T}$ac_cv_c_boolean_t_sys_types_h" >&6
9126 if test x"$ac_cv_c_boolean_t_sys_types_h" != x"no"; then
9127
9128 cat >>confdefs.h <<\_ACEOF
9129 #define BOOLEAN_T_IN_SYS_TYPES_H 1
9130 _ACEOF
9131
9132 fi
9133
9134 echo "$as_me:$LINENO: checking for boolean_t in pthread.h" >&5
9135 echo $ECHO_N "checking for boolean_t in pthread.h... $ECHO_C" >&6
9136 if test "${ac_cv_c_boolean_t_pthread_h+set}" = set; then
9137   echo $ECHO_N "(cached) $ECHO_C" >&6
9138 else
9139   cat >conftest.$ac_ext <<_ACEOF
9140 #line $LINENO "configure"
9141 #include "confdefs.h"
9142 #include <pthread.h>
9143 #ifdef F77_DUMMY_MAIN
9144 #  ifdef __cplusplus
9145      extern "C"
9146 #  endif
9147    int F77_DUMMY_MAIN() { return 1; }
9148 #endif
9149 int
9150 main ()
9151 {
9152 boolean_t foo;
9153   ;
9154   return 0;
9155 }
9156 _ACEOF
9157 rm -f conftest.$ac_objext
9158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9159   (eval $ac_compile) 2>&5
9160   ac_status=$?
9161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162   (exit $ac_status); } &&
9163          { ac_try='test -s conftest.$ac_objext'
9164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165   (eval $ac_try) 2>&5
9166   ac_status=$?
9167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168   (exit $ac_status); }; }; then
9169   ac_cv_c_boolean_t_pthread_h=yes
9170 else
9171   echo "$as_me: failed program was:" >&5
9172 cat conftest.$ac_ext >&5
9173 ac_cv_c_boolean_t_pthread_h=no
9174 fi
9175 rm -f conftest.$ac_objext conftest.$ac_ext
9176 fi
9177 echo "$as_me:$LINENO: result: $ac_cv_c_boolean_t_pthread_h" >&5
9178 echo "${ECHO_T}$ac_cv_c_boolean_t_pthread_h" >&6
9179 if test x"$ac_cv_c_boolean_t_pthread_h" != x"no"; then
9180
9181 cat >>confdefs.h <<\_ACEOF
9182 #define BOOLEAN_T_IN_PTHREAD_H 1
9183 _ACEOF
9184
9185 fi
9186
9187 echo "$as_me:$LINENO: checking for boolean_t in cthreads.h" >&5
9188 echo $ECHO_N "checking for boolean_t in cthreads.h... $ECHO_C" >&6
9189 if test "${ac_cv_c_boolean_t_cthreads_h+set}" = set; then
9190   echo $ECHO_N "(cached) $ECHO_C" >&6
9191 else
9192   cat >conftest.$ac_ext <<_ACEOF
9193 #line $LINENO "configure"
9194 #include "confdefs.h"
9195 #include <cthreads.h>
9196 #ifdef F77_DUMMY_MAIN
9197 #  ifdef __cplusplus
9198      extern "C"
9199 #  endif
9200    int F77_DUMMY_MAIN() { return 1; }
9201 #endif
9202 int
9203 main ()
9204 {
9205 boolean_t foo;
9206   ;
9207   return 0;
9208 }
9209 _ACEOF
9210 rm -f conftest.$ac_objext
9211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9212   (eval $ac_compile) 2>&5
9213   ac_status=$?
9214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215   (exit $ac_status); } &&
9216          { ac_try='test -s conftest.$ac_objext'
9217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9218   (eval $ac_try) 2>&5
9219   ac_status=$?
9220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221   (exit $ac_status); }; }; then
9222   ac_cv_c_boolean_t_cthreads_h=yes
9223 else
9224   echo "$as_me: failed program was:" >&5
9225 cat conftest.$ac_ext >&5
9226 ac_cv_c_boolean_t_cthreads_h=no
9227 fi
9228 rm -f conftest.$ac_objext conftest.$ac_ext
9229 fi
9230 echo "$as_me:$LINENO: result: $ac_cv_c_boolean_t_cthreads_h" >&5
9231 echo "${ECHO_T}$ac_cv_c_boolean_t_cthreads_h" >&6
9232 if test x"$ac_cv_c_boolean_t_cthreads_h" != x"no"; then
9233
9234 cat >>confdefs.h <<\_ACEOF
9235 #define BOOLEAN_T_IN_CTHREADS_H 1
9236 _ACEOF
9237
9238 fi
9239
9240 case x"${target_cpu}" in
9241   x)
9242     ARCH=unknown
9243     ;;
9244   *)
9245     ARCH="${target_cpu}"
9246     ;;
9247 esac
9248
9249 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"
9250 PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_ps mpeg_ts mpeg_audio file udp http ipv4 memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort filter_clone fx_scope"
9251
9252 MMX_MODULES="memcpymmx idctmmx motionmmx chroma_i420_rgb_mmx chroma_i420_yuy2_mmx chroma_i422_yuy2_mmx chroma_i420_ymga_mmx"
9253 MMXEXT_MODULES="memcpymmxext idctmmxext motionmmxext"
9254 THREEDNOW_MODULES="memcpy3dn imdct3dn downmix3dn"
9255 SSE_MODULES="imdctsse downmixsse"
9256 ALTIVEC_MODULES="idctaltivec motionaltivec memcpyaltivec"
9257
9258 echo "$as_me:$LINENO: checking if \$CC groks MMX inline assembly" >&5
9259 echo $ECHO_N "checking if \$CC groks MMX inline assembly... $ECHO_C" >&6
9260 if test "${ac_cv_mmx_inline+set}" = set; then
9261   echo $ECHO_N "(cached) $ECHO_C" >&6
9262 else
9263   cat >conftest.$ac_ext <<_ACEOF
9264 #line $LINENO "configure"
9265 #include "confdefs.h"
9266
9267 #ifdef F77_DUMMY_MAIN
9268 #  ifdef __cplusplus
9269      extern "C"
9270 #  endif
9271    int F77_DUMMY_MAIN() { return 1; }
9272 #endif
9273 int
9274 main ()
9275 {
9276 void *p;asm volatile("packuswb %%mm1,%%mm2"::"r"(p));
9277   ;
9278   return 0;
9279 }
9280 _ACEOF
9281 rm -f conftest.$ac_objext
9282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9283   (eval $ac_compile) 2>&5
9284   ac_status=$?
9285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286   (exit $ac_status); } &&
9287          { ac_try='test -s conftest.$ac_objext'
9288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289   (eval $ac_try) 2>&5
9290   ac_status=$?
9291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292   (exit $ac_status); }; }; then
9293   ac_cv_mmx_inline=yes
9294 else
9295   echo "$as_me: failed program was:" >&5
9296 cat conftest.$ac_ext >&5
9297 ac_cv_mmx_inline=no
9298 fi
9299 rm -f conftest.$ac_objext conftest.$ac_ext
9300 fi
9301 echo "$as_me:$LINENO: result: $ac_cv_mmx_inline" >&5
9302 echo "${ECHO_T}$ac_cv_mmx_inline" >&6
9303 if test x"$ac_cv_mmx_inline" != x"no"; then
9304   ACCEL_MODULES="${ACCEL_MODULES} ${MMX_MODULES}"
9305 fi
9306
9307 echo "$as_me:$LINENO: checking if \$CC groks MMX EXT inline assembly" >&5
9308 echo $ECHO_N "checking if \$CC groks MMX EXT inline assembly... $ECHO_C" >&6
9309 if test "${ac_cv_mmxext_inline+set}" = set; then
9310   echo $ECHO_N "(cached) $ECHO_C" >&6
9311 else
9312   cat >conftest.$ac_ext <<_ACEOF
9313 #line $LINENO "configure"
9314 #include "confdefs.h"
9315
9316 #ifdef F77_DUMMY_MAIN
9317 #  ifdef __cplusplus
9318      extern "C"
9319 #  endif
9320    int F77_DUMMY_MAIN() { return 1; }
9321 #endif
9322 int
9323 main ()
9324 {
9325 void *p;asm volatile("maskmovq %%mm1,%%mm2"::"r"(p));
9326   ;
9327   return 0;
9328 }
9329 _ACEOF
9330 rm -f conftest.$ac_objext
9331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9332   (eval $ac_compile) 2>&5
9333   ac_status=$?
9334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335   (exit $ac_status); } &&
9336          { ac_try='test -s conftest.$ac_objext'
9337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338   (eval $ac_try) 2>&5
9339   ac_status=$?
9340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341   (exit $ac_status); }; }; then
9342   ac_cv_mmxext_inline=yes
9343 else
9344   echo "$as_me: failed program was:" >&5
9345 cat conftest.$ac_ext >&5
9346 ac_cv_mmxext_inline=no
9347 fi
9348 rm -f conftest.$ac_objext conftest.$ac_ext
9349 fi
9350 echo "$as_me:$LINENO: result: $ac_cv_mmxext_inline" >&5
9351 echo "${ECHO_T}$ac_cv_mmxext_inline" >&6
9352 if test x"$ac_cv_mmxext_inline" != x"no"; then
9353   ACCEL_MODULES="${ACCEL_MODULES} ${MMXEXT_MODULES}"
9354 fi
9355
9356 echo "$as_me:$LINENO: checking if \$CC groks 3D Now! inline assembly" >&5
9357 echo $ECHO_N "checking if \$CC groks 3D Now! inline assembly... $ECHO_C" >&6
9358 if test "${ac_cv_3dnow_inline+set}" = set; then
9359   echo $ECHO_N "(cached) $ECHO_C" >&6
9360 else
9361   cat >conftest.$ac_ext <<_ACEOF
9362 #line $LINENO "configure"
9363 #include "confdefs.h"
9364
9365 #ifdef F77_DUMMY_MAIN
9366 #  ifdef __cplusplus
9367      extern "C"
9368 #  endif
9369    int F77_DUMMY_MAIN() { return 1; }
9370 #endif
9371 int
9372 main ()
9373 {
9374 void *p;asm volatile("pfadd %%mm1,%%mm2"::"r"(p));
9375   ;
9376   return 0;
9377 }
9378 _ACEOF
9379 rm -f conftest.$ac_objext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9381   (eval $ac_compile) 2>&5
9382   ac_status=$?
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); } &&
9385          { ac_try='test -s conftest.$ac_objext'
9386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387   (eval $ac_try) 2>&5
9388   ac_status=$?
9389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390   (exit $ac_status); }; }; then
9391   ac_cv_3dnow_inline=yes
9392 else
9393   echo "$as_me: failed program was:" >&5
9394 cat conftest.$ac_ext >&5
9395 ac_cv_3dnow_inline=no
9396 fi
9397 rm -f conftest.$ac_objext conftest.$ac_ext
9398 fi
9399 echo "$as_me:$LINENO: result: $ac_cv_3dnow_inline" >&5
9400 echo "${ECHO_T}$ac_cv_3dnow_inline" >&6
9401 if test x"$ac_cv_3dnow_inline" != x"no"; then
9402
9403 cat >>confdefs.h <<\_ACEOF
9404 #define CAN_COMPILE_3DNOW 1
9405 _ACEOF
9406
9407   ACCEL_MODULES="${ACCEL_MODULES} ${THREEDNOW_MODULES}"
9408 fi
9409
9410 echo "$as_me:$LINENO: checking if \$CC groks SSE inline assembly" >&5
9411 echo $ECHO_N "checking if \$CC groks SSE inline assembly... $ECHO_C" >&6
9412 if test "${ac_cv_sse_inline+set}" = set; then
9413   echo $ECHO_N "(cached) $ECHO_C" >&6
9414 else
9415   cat >conftest.$ac_ext <<_ACEOF
9416 #line $LINENO "configure"
9417 #include "confdefs.h"
9418
9419 #ifdef F77_DUMMY_MAIN
9420 #  ifdef __cplusplus
9421      extern "C"
9422 #  endif
9423    int F77_DUMMY_MAIN() { return 1; }
9424 #endif
9425 int
9426 main ()
9427 {
9428 void *p;asm volatile("xorps %%xmm1,%%xmm2"::"r"(p));
9429   ;
9430   return 0;
9431 }
9432 _ACEOF
9433 rm -f conftest.$ac_objext
9434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9435   (eval $ac_compile) 2>&5
9436   ac_status=$?
9437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438   (exit $ac_status); } &&
9439          { ac_try='test -s conftest.$ac_objext'
9440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441   (eval $ac_try) 2>&5
9442   ac_status=$?
9443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444   (exit $ac_status); }; }; then
9445   ac_cv_sse_inline=yes
9446 else
9447   echo "$as_me: failed program was:" >&5
9448 cat conftest.$ac_ext >&5
9449 ac_cv_sse_inline=no
9450 fi
9451 rm -f conftest.$ac_objext conftest.$ac_ext
9452 fi
9453 echo "$as_me:$LINENO: result: $ac_cv_sse_inline" >&5
9454 echo "${ECHO_T}$ac_cv_sse_inline" >&6
9455 if test x"$ac_cv_sse_inline" != x"no" -a x$SYS != xmingw32; then
9456
9457 cat >>confdefs.h <<\_ACEOF
9458 #define CAN_COMPILE_SSE 1
9459 _ACEOF
9460
9461   ACCEL_MODULES="${ACCEL_MODULES} ${SSE_MODULES}"
9462 fi
9463
9464 # don't try to grok altivec with native mingw32 it doesn't work right now
9465 # we should be able to remove this test with future versions of mingw32
9466 if test x$SYS != xmingw32; then
9467 echo "$as_me:$LINENO: checking if \$CC groks Altivec inline assembly" >&5
9468 echo $ECHO_N "checking if \$CC groks Altivec inline assembly... $ECHO_C" >&6
9469 if test "${ac_cv_altivec_inline+set}" = set; then
9470   echo $ECHO_N "(cached) $ECHO_C" >&6
9471 else
9472   cat >conftest.$ac_ext <<_ACEOF
9473 #line $LINENO "configure"
9474 #include "confdefs.h"
9475
9476 #ifdef F77_DUMMY_MAIN
9477 #  ifdef __cplusplus
9478      extern "C"
9479 #  endif
9480    int F77_DUMMY_MAIN() { return 1; }
9481 #endif
9482 int
9483 main ()
9484 {
9485 asm volatile("vperm 0,1,2,3");
9486   ;
9487   return 0;
9488 }
9489 _ACEOF
9490 rm -f conftest.$ac_objext
9491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9492   (eval $ac_compile) 2>&5
9493   ac_status=$?
9494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495   (exit $ac_status); } &&
9496          { ac_try='test -s conftest.$ac_objext'
9497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498   (eval $ac_try) 2>&5
9499   ac_status=$?
9500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501   (exit $ac_status); }; }; then
9502   ac_cv_altivec_inline=yes
9503 else
9504   echo "$as_me: failed program was:" >&5
9505 cat conftest.$ac_ext >&5
9506 save_CFLAGS=$CFLAGS
9507           CFLAGS="$CFLAGS -Wa,-m7400"
9508           cat >conftest.$ac_ext <<_ACEOF
9509 #line $LINENO "configure"
9510 #include "confdefs.h"
9511
9512 #ifdef F77_DUMMY_MAIN
9513 #  ifdef __cplusplus
9514      extern "C"
9515 #  endif
9516    int F77_DUMMY_MAIN() { return 1; }
9517 #endif
9518 int
9519 main ()
9520 {
9521 asm volatile("vperm 0,1,2,3");
9522   ;
9523   return 0;
9524 }
9525 _ACEOF
9526 rm -f conftest.$ac_objext
9527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9528   (eval $ac_compile) 2>&5
9529   ac_status=$?
9530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531   (exit $ac_status); } &&
9532          { ac_try='test -s conftest.$ac_objext'
9533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9534   (eval $ac_try) 2>&5
9535   ac_status=$?
9536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537   (exit $ac_status); }; }; then
9538   ac_cv_altivec_inline="-Wa,-m7400"
9539 else
9540   echo "$as_me: failed program was:" >&5
9541 cat conftest.$ac_ext >&5
9542 ac_cv_altivec_inline=no
9543 fi
9544 rm -f conftest.$ac_objext conftest.$ac_ext
9545           CFLAGS=$save_CFLAGS
9546
9547 fi
9548 rm -f conftest.$ac_objext conftest.$ac_ext
9549 fi
9550 echo "$as_me:$LINENO: result: $ac_cv_altivec_inline" >&5
9551 echo "${ECHO_T}$ac_cv_altivec_inline" >&6
9552 if test x"$ac_cv_altivec_inline" != x"no"; then
9553
9554 cat >>confdefs.h <<\_ACEOF
9555 #define CAN_COMPILE_ALTIVEC 1
9556 _ACEOF
9557
9558   if test x"$ac_cv_altivec_inline" != x"yes"; then
9559     idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
9560     motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
9561     memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
9562     vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
9563   fi
9564   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
9565 fi
9566
9567 echo "$as_me:$LINENO: checking if \$CC groks Altivec C extensions" >&5
9568 echo $ECHO_N "checking if \$CC groks Altivec C extensions... $ECHO_C" >&6
9569 if test "${ac_cv_c_altivec+set}" = set; then
9570   echo $ECHO_N "(cached) $ECHO_C" >&6
9571 else
9572   save_CFLAGS=$CFLAGS
9573      CFLAGS="$CFLAGS -faltivec"
9574      # Darwin test
9575      cat >conftest.$ac_ext <<_ACEOF
9576 #line $LINENO "configure"
9577 #include "confdefs.h"
9578
9579 #ifdef F77_DUMMY_MAIN
9580 #  ifdef __cplusplus
9581      extern "C"
9582 #  endif
9583    int F77_DUMMY_MAIN() { return 1; }
9584 #endif
9585 int
9586 main ()
9587 {
9588 vec_mtvscr((vector unsigned int)(0));
9589   ;
9590   return 0;
9591 }
9592 _ACEOF
9593 rm -f conftest.$ac_objext
9594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9595   (eval $ac_compile) 2>&5
9596   ac_status=$?
9597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598   (exit $ac_status); } &&
9599          { ac_try='test -s conftest.$ac_objext'
9600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601   (eval $ac_try) 2>&5
9602   ac_status=$?
9603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604   (exit $ac_status); }; }; then
9605   ac_cv_c_altivec=-faltivec
9606 else
9607   echo "$as_me: failed program was:" >&5
9608 cat conftest.$ac_ext >&5
9609
9610         # Linux/PPC test
9611         CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
9612         cat >conftest.$ac_ext <<_ACEOF
9613 #line $LINENO "configure"
9614 #include "confdefs.h"
9615
9616 #ifdef F77_DUMMY_MAIN
9617 #  ifdef __cplusplus
9618      extern "C"
9619 #  endif
9620    int F77_DUMMY_MAIN() { return 1; }
9621 #endif
9622 int
9623 main ()
9624 {
9625 vec_mtvscr((vector unsigned int)(0));
9626   ;
9627   return 0;
9628 }
9629 _ACEOF
9630 rm -f conftest.$ac_objext
9631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9632   (eval $ac_compile) 2>&5
9633   ac_status=$?
9634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635   (exit $ac_status); } &&
9636          { ac_try='test -s conftest.$ac_objext'
9637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638   (eval $ac_try) 2>&5
9639   ac_status=$?
9640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641   (exit $ac_status); }; }; then
9642   ac_cv_c_altivec="-fvec"
9643 else
9644   echo "$as_me: failed program was:" >&5
9645 cat conftest.$ac_ext >&5
9646 ac_cv_c_altivec=no
9647 fi
9648 rm -f conftest.$ac_objext conftest.$ac_ext
9649
9650 fi
9651 rm -f conftest.$ac_objext conftest.$ac_ext
9652      CFLAGS=$save_CFLAGS
9653
9654 fi
9655 echo "$as_me:$LINENO: result: $ac_cv_c_altivec" >&5
9656 echo "${ECHO_T}$ac_cv_c_altivec" >&6
9657 if test x"$ac_cv_c_altivec" != x"no"; then
9658
9659 cat >>confdefs.h <<\_ACEOF
9660 #define CAN_COMPILE_C_ALTIVEC 1
9661 _ACEOF
9662
9663   idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
9664   motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
9665   memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
9666   vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
9667   ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
9668 fi
9669
9670 echo "$as_me:$LINENO: checking if linker needs -framework vecLib" >&5
9671 echo $ECHO_N "checking if linker needs -framework vecLib... $ECHO_C" >&6
9672 if test "${ac_cv_ld_altivec+set}" = set; then
9673   echo $ECHO_N "(cached) $ECHO_C" >&6
9674 else
9675   save_LDFLAGS=$LDFLAGS
9676      LDFLAGS="$LDFLAGS -framework vecLib"
9677      cat >conftest.$ac_ext <<_ACEOF
9678 #line $LINENO "configure"
9679 #include "confdefs.h"
9680
9681 #ifdef F77_DUMMY_MAIN
9682 #  ifdef __cplusplus
9683      extern "C"
9684 #  endif
9685    int F77_DUMMY_MAIN() { return 1; }
9686 #endif
9687 int
9688 main ()
9689 {
9690
9691   ;
9692   return 0;
9693 }
9694 _ACEOF
9695 rm -f conftest.$ac_objext conftest$ac_exeext
9696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9697   (eval $ac_link) 2>&5
9698   ac_status=$?
9699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700   (exit $ac_status); } &&
9701          { ac_try='test -s conftest$ac_exeext'
9702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703   (eval $ac_try) 2>&5
9704   ac_status=$?
9705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706   (exit $ac_status); }; }; then
9707   ac_cv_ld_altivec=yes
9708 else
9709   echo "$as_me: failed program was:" >&5
9710 cat conftest.$ac_ext >&5
9711 ac_cv_ld_altivec=no
9712 fi
9713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9714      LDFLAGS=$save_LDFLAGS
9715
9716 fi
9717 echo "$as_me:$LINENO: result: $ac_cv_ld_altivec" >&5
9718 echo "${ECHO_T}$ac_cv_ld_altivec" >&6
9719 if test x"$ac_cv_ld_altivec" != x"no"; then
9720   idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
9721   motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
9722   memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
9723   vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
9724 fi
9725 fi # end if mingw32
9726
9727
9728
9729 # Check whether --with- or --without- was given.
9730 if test "${with_+set}" = set; then
9731   withval="$with_"
9732
9733 fi;
9734
9735 # Check whether --with- or --without- was given.
9736 if test "${with_+set}" = set; then
9737   withval="$with_"
9738
9739 fi;
9740
9741
9742 # Check whether --with-tuning or --without-tuning was given.
9743 if test "${with_tuning+set}" = set; then
9744   withval="$with_tuning"
9745
9746 fi;
9747 if test "x$with_tuning" != "x"; then
9748     TUNING="$with_tuning"
9749 else
9750     if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
9751     else
9752         if test x${target_cpu} = xpowerpc; then TUNING="750"; fi
9753     fi
9754 fi
9755
9756 if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xx86 -o x${target_cpu} = xi386
9757 then
9758     ARCH="${ARCH} mmx"
9759     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
9760 fi
9761
9762 # Check whether --enable-optimizations or --disable-optimizations was given.
9763 if test "${enable_optimizations+set}" = set; then
9764   enableval="$enable_optimizations"
9765    if test x$enable_optimizations = xno; then OPTIMS=0; fi
9766 else
9767    OPTIMS=1
9768 fi;
9769
9770 # Check whether --enable-altivec or --disable-altivec was given.
9771 if test "${enable_altivec+set}" = set; then
9772   enableval="$enable_altivec"
9773    if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
9774     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
9775 else
9776    if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
9777     BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
9778 fi;
9779
9780 DEBUG=0
9781 # Check whether --enable-debug or --disable-debug was given.
9782 if test "${enable_debug+set}" = set; then
9783   enableval="$enable_debug"
9784    if test x$enable_debug = xyes; then DEBUG=1; fi
9785 fi;
9786
9787 RELEASE=0
9788 # Check whether --enable-release or --disable-release was given.
9789 if test "${enable_release+set}" = set; then
9790   enableval="$enable_release"
9791    if test x$enable_release = xyes; then RELEASE=1; fi
9792 else
9793    VERSION="${VERSION}_`date +%Y-%m-%d`"
9794 fi;
9795
9796
9797
9798 # Check whether --with- or --without- was given.
9799 if test "${with_+set}" = set; then
9800   withval="$with_"
9801
9802 fi;
9803
9804 # Check whether --enable-dvd or --disable-dvd was given.
9805 if test "${enable_dvd+set}" = set; then
9806   enableval="$enable_dvd"
9807
9808 fi;
9809 if test "x$enable_dvd" != "xno"
9810 then
9811
9812 # Check whether --with-dvdcss or --without-dvdcss was given.
9813 if test "${with_dvdcss+set}" = set; then
9814   withval="$with_dvdcss"
9815
9816 fi;
9817
9818 # Check whether --with-dvdcss-tree or --without-dvdcss-tree was given.
9819 if test "${with_dvdcss_tree+set}" = set; then
9820   withval="$with_dvdcss_tree"
9821
9822 fi;
9823   case "x$with_dvdcss" in
9824   x|xyes)
9825     if test "x$with_dvdcss_tree" = x
9826     then
9827
9828 for ac_header in dvdcss/dvdcss.h
9829 do
9830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9832   echo "$as_me:$LINENO: checking for $ac_header" >&5
9833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9835   echo $ECHO_N "(cached) $ECHO_C" >&6
9836 fi
9837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9839 else
9840   # Is the header compilable?
9841 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9843 cat >conftest.$ac_ext <<_ACEOF
9844 #line $LINENO "configure"
9845 #include "confdefs.h"
9846 $ac_includes_default
9847 #include <$ac_header>
9848 _ACEOF
9849 rm -f conftest.$ac_objext
9850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9851   (eval $ac_compile) 2>&5
9852   ac_status=$?
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); } &&
9855          { ac_try='test -s conftest.$ac_objext'
9856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857   (eval $ac_try) 2>&5
9858   ac_status=$?
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   (exit $ac_status); }; }; then
9861   ac_header_compiler=yes
9862 else
9863   echo "$as_me: failed program was:" >&5
9864 cat conftest.$ac_ext >&5
9865 ac_header_compiler=no
9866 fi
9867 rm -f conftest.$ac_objext conftest.$ac_ext
9868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9869 echo "${ECHO_T}$ac_header_compiler" >&6
9870
9871 # Is the header present?
9872 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9874 cat >conftest.$ac_ext <<_ACEOF
9875 #line $LINENO "configure"
9876 #include "confdefs.h"
9877 #include <$ac_header>
9878 _ACEOF
9879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9880   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9881   ac_status=$?
9882   egrep -v '^ *\+' conftest.er1 >conftest.err
9883   rm -f conftest.er1
9884   cat conftest.err >&5
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); } >/dev/null; then
9887   if test -s conftest.err; then
9888     ac_cpp_err=$ac_c_preproc_warn_flag
9889   else
9890     ac_cpp_err=
9891   fi
9892 else
9893   ac_cpp_err=yes
9894 fi
9895 if test -z "$ac_cpp_err"; then
9896   ac_header_preproc=yes
9897 else
9898   echo "$as_me: failed program was:" >&5
9899   cat conftest.$ac_ext >&5
9900   ac_header_preproc=no
9901 fi
9902 rm -f conftest.err conftest.$ac_ext
9903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9904 echo "${ECHO_T}$ac_header_preproc" >&6
9905
9906 # So?  What about this header?
9907 case $ac_header_compiler:$ac_header_preproc in
9908   yes:no )
9909     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9913   no:yes )
9914     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9916     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9920 esac
9921 echo "$as_me:$LINENO: checking for $ac_header" >&5
9922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9924   echo $ECHO_N "(cached) $ECHO_C" >&6
9925 else
9926   eval "$as_ac_Header=$ac_header_preproc"
9927 fi
9928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9930
9931 fi
9932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9933   cat >>confdefs.h <<_ACEOF
9934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9935 _ACEOF
9936   PLUGINS="${PLUGINS} dvd"
9937           dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss"
9938 else
9939    { echo "$as_me:$LINENO: 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
9940 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;}
9941           { { echo "$as_me:$LINENO: error: cannot find libdvdcss headers" >&5
9942 echo "$as_me: error: cannot find libdvdcss headers" >&2;}
9943    { (exit 1); exit 1; }; }
9944 fi
9945
9946 done
9947
9948     else
9949       echo "$as_me:$LINENO: checking for libdvdcss.a in ${with_dvdcss_tree}" >&5
9950 echo $ECHO_N "checking for libdvdcss.a in ${with_dvdcss_tree}... $ECHO_C" >&6
9951       real_dvdcss_tree="`cd ${with_dvdcss_tree} 2>/dev/null && pwd`"
9952       if test "x$real_dvdcss_tree" = x
9953       then
9954                 echo "$as_me:$LINENO: result: no" >&5
9955 echo "${ECHO_T}no" >&6
9956         { { echo "$as_me:$LINENO: error: cannot cd to ${with_dvdcss_tree}" >&5
9957 echo "$as_me: error: cannot cd to ${with_dvdcss_tree}" >&2;}
9958    { (exit 1); exit 1; }; }
9959       fi
9960       if test -f "${real_dvdcss_tree}/src/.libs/libdvdcss.a"
9961       then
9962                 echo "$as_me:$LINENO: result: ${real_dvdcss_tree}/src/.libs/libdvdcss.a" >&5
9963 echo "${ECHO_T}${real_dvdcss_tree}/src/.libs/libdvdcss.a" >&6
9964         BUILTINS="${BUILTINS} dvd"
9965         dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
9966         dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
9967       else
9968                 echo "$as_me:$LINENO: result: no" >&5
9969 echo "${ECHO_T}no" >&6
9970         { { echo "$as_me:$LINENO: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" >&5
9971 echo "$as_me: error: cannot find ${real_dvdcss_tree}/src/.libs/libdvdcss.a, make sure you compiled libdvdcss in ${with_dvdcss_tree}" >&2;}
9972    { (exit 1); exit 1; }; }
9973       fi
9974     fi
9975   ;;
9976   xno)
9977         PLUGINS="${PLUGINS} dvd"
9978     dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
9979     dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
9980   ;;
9981   *)
9982     echo "$as_me:$LINENO: checking for dvdcss headers in ${with_dvdcss}" >&5
9983 echo $ECHO_N "checking for dvdcss headers in ${with_dvdcss}... $ECHO_C" >&6
9984     if test -f ${with_dvdcss}/include/dvdcss/dvdcss.h
9985     then
9986             echo "$as_me:$LINENO: result: yes" >&5
9987 echo "${ECHO_T}yes" >&6
9988       PLUGINS="${PLUGINS} dvd"
9989       dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
9990       dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
9991     else
9992             echo "$as_me:$LINENO: result: no" >&5
9993 echo "${ECHO_T}no" >&6
9994       { { echo "$as_me:$LINENO: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" >&5
9995 echo "$as_me: error: cannot find ${with_dvdcss}/include/dvdcss/dvdcss.h" >&2;}
9996    { (exit 1); exit 1; }; }
9997     fi
9998   ;;
9999   esac
10000 fi
10001
10002 # Check whether --enable-dvdread or --disable-dvdread was given.
10003 if test "${enable_dvdread+set}" = set; then
10004   enableval="$enable_dvdread"
10005
10006 fi;
10007 if test "x$enable_dvdread" != "xno"
10008 then
10009
10010 # Check whether --with-dvdread or --without-dvdread was given.
10011 if test "${with_dvdread+set}" = set; then
10012   withval="$with_dvdread"
10013
10014 fi;
10015   if test "x$with_dvdread" = x
10016   then
10017     test_LDFLAGS=""
10018     test_CFLAGS=""
10019   else
10020     test_LDFLAGS="-L${with_dvdread}/lib"
10021     test_CFLAGS="-I${with_dvdread}/include"
10022   fi
10023   CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
10024
10025 for ac_header in dvdread/dvd_reader.h
10026 do
10027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10029   echo "$as_me:$LINENO: checking for $ac_header" >&5
10030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10032   echo $ECHO_N "(cached) $ECHO_C" >&6
10033 fi
10034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10036 else
10037   # Is the header compilable?
10038 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10040 cat >conftest.$ac_ext <<_ACEOF
10041 #line $LINENO "configure"
10042 #include "confdefs.h"
10043 $ac_includes_default
10044 #include <$ac_header>
10045 _ACEOF
10046 rm -f conftest.$ac_objext
10047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10048   (eval $ac_compile) 2>&5
10049   ac_status=$?
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); } &&
10052          { ac_try='test -s conftest.$ac_objext'
10053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054   (eval $ac_try) 2>&5
10055   ac_status=$?
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); }; }; then
10058   ac_header_compiler=yes
10059 else
10060   echo "$as_me: failed program was:" >&5
10061 cat conftest.$ac_ext >&5
10062 ac_header_compiler=no
10063 fi
10064 rm -f conftest.$ac_objext conftest.$ac_ext
10065 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10066 echo "${ECHO_T}$ac_header_compiler" >&6
10067
10068 # Is the header present?
10069 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10071 cat >conftest.$ac_ext <<_ACEOF
10072 #line $LINENO "configure"
10073 #include "confdefs.h"
10074 #include <$ac_header>
10075 _ACEOF
10076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10077   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10078   ac_status=$?
10079   egrep -v '^ *\+' conftest.er1 >conftest.err
10080   rm -f conftest.er1
10081   cat conftest.err >&5
10082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083   (exit $ac_status); } >/dev/null; then
10084   if test -s conftest.err; then
10085     ac_cpp_err=$ac_c_preproc_warn_flag
10086   else
10087     ac_cpp_err=
10088   fi
10089 else
10090   ac_cpp_err=yes
10091 fi
10092 if test -z "$ac_cpp_err"; then
10093   ac_header_preproc=yes
10094 else
10095   echo "$as_me: failed program was:" >&5
10096   cat conftest.$ac_ext >&5
10097   ac_header_preproc=no
10098 fi
10099 rm -f conftest.err conftest.$ac_ext
10100 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10101 echo "${ECHO_T}$ac_header_preproc" >&6
10102
10103 # So?  What about this header?
10104 case $ac_header_compiler:$ac_header_preproc in
10105   yes:no )
10106     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10108     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10110   no:yes )
10111     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10112 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10113     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10114 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10115     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10117 esac
10118 echo "$as_me:$LINENO: checking for $ac_header" >&5
10119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10121   echo $ECHO_N "(cached) $ECHO_C" >&6
10122 else
10123   eval "$as_ac_Header=$ac_header_preproc"
10124 fi
10125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10127
10128 fi
10129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10130   cat >>confdefs.h <<_ACEOF
10131 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10132 _ACEOF
10133
10134      cat >conftest.$ac_ext <<_ACEOF
10135 #line $LINENO "configure"
10136 #include "confdefs.h"
10137 #include <dvdread/dvd_reader.h>
10138 #ifdef F77_DUMMY_MAIN
10139 #  ifdef __cplusplus
10140      extern "C"
10141 #  endif
10142    int F77_DUMMY_MAIN() { return 1; }
10143 #endif
10144 int
10145 main ()
10146 {
10147 void foo() { int i=DVD_VIDEO_LB_LEN; }
10148   ;
10149   return 0;
10150 }
10151 _ACEOF
10152 rm -f conftest.$ac_objext
10153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10154   (eval $ac_compile) 2>&5
10155   ac_status=$?
10156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157   (exit $ac_status); } &&
10158          { ac_try='test -s conftest.$ac_objext'
10159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160   (eval $ac_try) 2>&5
10161   ac_status=$?
10162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163   (exit $ac_status); }; }; then
10164
10165           PLUGINS="${PLUGINS} dvdread"
10166           dvdread_LDFLAGS="${dvdread_LDFLAGS} ${test_LDFLAGS} -ldvdread"
10167           dvdread_CFLAGS="${dvdread_CFLAGS} ${test_CFLAGS}"
10168
10169 else
10170   echo "$as_me: failed program was:" >&5
10171 cat conftest.$ac_ext >&5
10172
10173           if test "x$enable_dvdread" != x
10174           then
10175             { { echo "$as_me:$LINENO: error: Cannot find DVD_VIDEO_LB_LEN in dvdread/dvd_reader.h, please install libdvdread version 0.9.2 or later" >&5
10176 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;}
10177    { (exit 1); exit 1; }; }
10178           fi
10179
10180 fi
10181 rm -f conftest.$ac_objext conftest.$ac_ext
10182
10183 else
10184
10185     if test "x$enable_dvdread" != x
10186     then
10187       if test "x$with_dvdread" != x
10188       then
10189         { { echo "$as_me:$LINENO: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" >&5
10190 echo "$as_me: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" >&2;}
10191    { (exit 1); exit 1; }; }
10192       else
10193         { { echo "$as_me:$LINENO: error: Cannot find dvdread/dvd_reader.h" >&5
10194 echo "$as_me: error: Cannot find dvdread/dvd_reader.h" >&2;}
10195    { (exit 1); exit 1; }; }
10196       fi
10197     fi
10198
10199 fi
10200
10201 done
10202
10203   CPPFLAGS="$save_CPPFLAGS"
10204 fi
10205
10206 # Check whether --enable-dvbpsi or --disable-dvbpsi was given.
10207 if test "${enable_dvbpsi+set}" = set; then
10208   enableval="$enable_dvbpsi"
10209
10210 fi;
10211 if test "x$enable_dvbpsi" != "xno"
10212 then
10213
10214 # Check whether --with-dvbpsi or --without-dvbpsi was given.
10215 if test "${with_dvbpsi+set}" = set; then
10216   withval="$with_dvbpsi"
10217
10218 fi;
10219   if test "x$with_dvbpsi" = x
10220   then
10221     test_LDFLAGS=""
10222     test_CFLAGS=""
10223   else
10224     test_LDFLAGS="-L${with_dvbpsi}/lib"
10225     test_CFLAGS="-I${with_dvbpsi}/include"
10226   fi
10227   CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
10228   if test "${ac_cv_header_dvbpsi_dr_h+set}" = set; then
10229   echo "$as_me:$LINENO: checking for dvbpsi/dr.h" >&5
10230 echo $ECHO_N "checking for dvbpsi/dr.h... $ECHO_C" >&6
10231 if test "${ac_cv_header_dvbpsi_dr_h+set}" = set; then
10232   echo $ECHO_N "(cached) $ECHO_C" >&6
10233 fi
10234 echo "$as_me:$LINENO: result: $ac_cv_header_dvbpsi_dr_h" >&5
10235 echo "${ECHO_T}$ac_cv_header_dvbpsi_dr_h" >&6
10236 else
10237   # Is the header compilable?
10238 echo "$as_me:$LINENO: checking dvbpsi/dr.h usability" >&5
10239 echo $ECHO_N "checking dvbpsi/dr.h usability... $ECHO_C" >&6
10240 cat >conftest.$ac_ext <<_ACEOF
10241 #line $LINENO "configure"
10242 #include "confdefs.h"
10243 $ac_includes_default
10244 #include <dvbpsi/dr.h>
10245 _ACEOF
10246 rm -f conftest.$ac_objext
10247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10248   (eval $ac_compile) 2>&5
10249   ac_status=$?
10250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251   (exit $ac_status); } &&
10252          { ac_try='test -s conftest.$ac_objext'
10253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10254   (eval $ac_try) 2>&5
10255   ac_status=$?
10256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257   (exit $ac_status); }; }; then
10258   ac_header_compiler=yes
10259 else
10260   echo "$as_me: failed program was:" >&5
10261 cat conftest.$ac_ext >&5
10262 ac_header_compiler=no
10263 fi
10264 rm -f conftest.$ac_objext conftest.$ac_ext
10265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10266 echo "${ECHO_T}$ac_header_compiler" >&6
10267
10268 # Is the header present?
10269 echo "$as_me:$LINENO: checking dvbpsi/dr.h presence" >&5
10270 echo $ECHO_N "checking dvbpsi/dr.h presence... $ECHO_C" >&6
10271 cat >conftest.$ac_ext <<_ACEOF
10272 #line $LINENO "configure"
10273 #include "confdefs.h"
10274 #include <dvbpsi/dr.h>
10275 _ACEOF
10276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10277   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10278   ac_status=$?
10279   egrep -v '^ *\+' conftest.er1 >conftest.err
10280   rm -f conftest.er1
10281   cat conftest.err >&5
10282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283   (exit $ac_status); } >/dev/null; then
10284   if test -s conftest.err; then
10285     ac_cpp_err=$ac_c_preproc_warn_flag
10286   else
10287     ac_cpp_err=
10288   fi
10289 else
10290   ac_cpp_err=yes
10291 fi
10292 if test -z "$ac_cpp_err"; then
10293   ac_header_preproc=yes
10294 else
10295   echo "$as_me: failed program was:" >&5
10296   cat conftest.$ac_ext >&5
10297   ac_header_preproc=no
10298 fi
10299 rm -f conftest.err conftest.$ac_ext
10300 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10301 echo "${ECHO_T}$ac_header_preproc" >&6
10302
10303 # So?  What about this header?
10304 case $ac_header_compiler:$ac_header_preproc in
10305   yes:no )
10306     { echo "$as_me:$LINENO: WARNING: dvbpsi/dr.h: accepted by the compiler, rejected by the preprocessor!" >&5
10307 echo "$as_me: WARNING: dvbpsi/dr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10308     { echo "$as_me:$LINENO: WARNING: dvbpsi/dr.h: proceeding with the preprocessor's result" >&5
10309 echo "$as_me: WARNING: dvbpsi/dr.h: proceeding with the preprocessor's result" >&2;};;
10310   no:yes )
10311     { echo "$as_me:$LINENO: WARNING: dvbpsi/dr.h: present but cannot be compiled" >&5
10312 echo "$as_me: WARNING: dvbpsi/dr.h: present but cannot be compiled" >&2;}
10313     { echo "$as_me:$LINENO: WARNING: dvbpsi/dr.h: check for missing prerequisite headers?" >&5
10314 echo "$as_me: WARNING: dvbpsi/dr.h: check for missing prerequisite headers?" >&2;}
10315     { echo "$as_me:$LINENO: WARNING: dvbpsi/dr.h: proceeding with the preprocessor's result" >&5
10316 echo "$as_me: WARNING: dvbpsi/dr.h: proceeding with the preprocessor's result" >&2;};;
10317 esac
10318 echo "$as_me:$LINENO: checking for dvbpsi/dr.h" >&5
10319 echo $ECHO_N "checking for dvbpsi/dr.h... $ECHO_C" >&6
10320 if test "${ac_cv_header_dvbpsi_dr_h+set}" = set; then
10321   echo $ECHO_N "(cached) $ECHO_C" >&6
10322 else
10323   ac_cv_header_dvbpsi_dr_h=$ac_header_preproc
10324 fi
10325 echo "$as_me:$LINENO: result: $ac_cv_header_dvbpsi_dr_h" >&5
10326 echo "${ECHO_T}$ac_cv_header_dvbpsi_dr_h" >&6
10327
10328 fi
10329 if test $ac_cv_header_dvbpsi_dr_h = yes; then
10330
10331     PLUGINS="${PLUGINS} mpeg_ts_dvbpsi"
10332     mpeg_ts_dvbpsi_LDFLAGS="${mpeg_ts_dvbpsi_LDFLAGS} ${test_LDFLAGS} -ldvbpsi"
10333     mpeg_ts_dvbpsi_CFLAGS="${mpeg_ts_dvbpsi_CFLAGS} ${test_CFLAGS}"
10334
10335 else
10336
10337     if test "x$enable_dvbpsi" != x
10338     then
10339       { { echo "$as_me:$LINENO: 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
10340 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;}
10341    { (exit 1); exit 1; }; }
10342     fi
10343
10344 fi
10345
10346
10347   CPPFLAGS="$save_CPPFLAGS"
10348 fi
10349
10350 # Check whether --enable-vcd or --disable-vcd was given.
10351 if test "${enable_vcd+set}" = set; then
10352   enableval="$enable_vcd"
10353
10354 fi;
10355
10356 if test x$enable_vcd != xno
10357 then
10358   cat >conftest.$ac_ext <<_ACEOF
10359 #line $LINENO "configure"
10360 #include "confdefs.h"
10361 #include <linux/cdrom.h>
10362
10363 _ACEOF
10364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10365   egrep "cdrom_msf0" >/dev/null 2>&1; then
10366
10367     PLUGINS="${PLUGINS} vcd"
10368
10369 fi
10370 rm -f conftest*
10371
10372
10373   cat >conftest.$ac_ext <<_ACEOF
10374 #line $LINENO "configure"
10375 #include "confdefs.h"
10376 #include <sys/cdio.h>
10377
10378 _ACEOF
10379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10380   egrep "ioc_toc_header " >/dev/null 2>&1; then
10381
10382     PLUGINS="${PLUGINS} vcd"
10383
10384 cat >>confdefs.h <<\_ACEOF
10385 #define HAVE_IOC_TOC_HEADER_IN_SYS_CDIO_H 1
10386 _ACEOF
10387
10388
10389 fi
10390 rm -f conftest*
10391
10392
10393   if test "x${SYS}" = "xbsdi"
10394   then
10395     PLUGINS="${PLUGINS} vcd"
10396   fi
10397
10398   if test "x${SYS}" = "xdarwin"
10399   then
10400     # No need to add vcd to PLUGINS, Darwin is already based on FreeBSD
10401     vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
10402   fi
10403 fi
10404
10405 # Check whether --enable-satellite or --disable-satellite was given.
10406 if test "${enable_satellite+set}" = set; then
10407   enableval="$enable_satellite"
10408    if test x$enable_satellite = xyes
10409     then
10410       PLUGINS="${PLUGINS} satellite"
10411     fi
10412 fi;
10413
10414 if test x$SYS != xnto
10415 then
10416   echo "$as_me:$LINENO: checking for inet_pton" >&5
10417 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
10418 if test "${ac_cv_func_inet_pton+set}" = set; then
10419   echo $ECHO_N "(cached) $ECHO_C" >&6
10420 else
10421   cat >conftest.$ac_ext <<_ACEOF
10422 #line $LINENO "configure"
10423 #include "confdefs.h"
10424 /* System header to define __stub macros and hopefully few prototypes,
10425     which can conflict with char inet_pton (); below.  */
10426 #include <assert.h>
10427 /* Override any gcc2 internal prototype to avoid an error.  */
10428 #ifdef __cplusplus
10429 extern "C"
10430 #endif
10431 /* We use char because int might match the return type of a gcc2
10432    builtin and then its argument prototype would still apply.  */
10433 char inet_pton ();
10434 char (*f) ();
10435
10436 #ifdef F77_DUMMY_MAIN
10437 #  ifdef __cplusplus
10438      extern "C"
10439 #  endif
10440    int F77_DUMMY_MAIN() { return 1; }
10441 #endif
10442 int
10443 main ()
10444 {
10445 /* The GNU C library defines this for functions which it implements
10446     to always fail with ENOSYS.  Some functions are actually named
10447     something starting with __ and the normal name is an alias.  */
10448 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
10449 choke me
10450 #else
10451 f = inet_pton;
10452 #endif
10453
10454   ;
10455   return 0;
10456 }
10457 _ACEOF
10458 rm -f conftest.$ac_objext conftest$ac_exeext
10459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10460   (eval $ac_link) 2>&5
10461   ac_status=$?
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); } &&
10464          { ac_try='test -s conftest$ac_exeext'
10465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466   (eval $ac_try) 2>&5
10467   ac_status=$?
10468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469   (exit $ac_status); }; }; then
10470   ac_cv_func_inet_pton=yes
10471 else
10472   echo "$as_me: failed program was:" >&5
10473 cat conftest.$ac_ext >&5
10474 ac_cv_func_inet_pton=no
10475 fi
10476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10477 fi
10478 echo "$as_me:$LINENO: result: $ac_cv_func_inet_pton" >&5
10479 echo "${ECHO_T}$ac_cv_func_inet_pton" >&6
10480 if test $ac_cv_func_inet_pton = yes; then
10481   PLUGINS="${PLUGINS} ipv6"
10482 fi
10483
10484 fi
10485
10486 # Check whether --enable-avi or --disable-avi was given.
10487 if test "${enable_avi+set}" = set; then
10488   enableval="$enable_avi"
10489
10490 fi;
10491 if test x$enable_avi != xno
10492 then
10493   PLUGINS="${PLUGINS} avi"
10494 fi
10495
10496
10497
10498 # Check whether --with- or --without- was given.
10499 if test "${with_+set}" = set; then
10500   withval="$with_"
10501
10502 fi;
10503
10504 # Check whether --enable-mad or --disable-mad was given.
10505 if test "${enable_mad+set}" = set; then
10506   enableval="$enable_mad"
10507
10508 fi;
10509 if test x$enable_mad = xyes
10510 then
10511
10512 # Check whether --with-mad or --without-mad was given.
10513 if test "${with_mad+set}" = set; then
10514   withval="$with_mad"
10515
10516 fi;
10517   if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
10518   then
10519     mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
10520     mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
10521   fi
10522
10523
10524 # Check whether --with-mad-tree or --without-mad-tree was given.
10525 if test "${with_mad_tree+set}" = set; then
10526   withval="$with_mad_tree"
10527
10528 fi;
10529   if test "x$with_mad_tree" != "xno" -a "x$with_mad_tree" != "x"
10530   then
10531     real_mad_tree="`cd ${with_mad_tree} 2>/dev/null && pwd`"
10532     if test "x$real_mad_tree" = x
10533     then
10534             echo "$as_me:$LINENO: result: no" >&5
10535 echo "${ECHO_T}no" >&6
10536       { { echo "$as_me:$LINENO: error: ${with_mad_tree} directory doesn't exist" >&5
10537 echo "$as_me: error: ${with_mad_tree} directory doesn't exist" >&2;}
10538    { (exit 1); exit 1; }; }
10539     fi
10540         echo "$as_me:$LINENO: checking for mad.h in ${real_mad_tree}/libmad" >&5
10541 echo $ECHO_N "checking for mad.h in ${real_mad_tree}/libmad... $ECHO_C" >&6
10542     if test -f ${real_mad_tree}/libmad/mad.h
10543     then
10544       echo "$as_me:$LINENO: result: yes" >&5
10545 echo "${ECHO_T}yes" >&6
10546       mad_CFLAGS="${mad_CFLAGS} -I${real_mad_tree}/libmad"
10547       mad_LDFLAGS="${mad_LDFLAGS} -L${real_mad_tree}/libmad/.libs"
10548       save_LDFLAGS=$LDFLAGS
10549       LDFLAGS=$mad_LDFLAGS
10550       echo "$as_me:$LINENO: checking for mad_bit_init in -lmad" >&5
10551 echo $ECHO_N "checking for mad_bit_init in -lmad... $ECHO_C" >&6
10552 if test "${ac_cv_lib_mad_mad_bit_init+set}" = set; then
10553   echo $ECHO_N "(cached) $ECHO_C" >&6
10554 else
10555   ac_check_lib_save_LIBS=$LIBS
10556 LIBS="-lmad  $LIBS"
10557 cat >conftest.$ac_ext <<_ACEOF
10558 #line $LINENO "configure"
10559 #include "confdefs.h"
10560
10561 /* Override any gcc2 internal prototype to avoid an error.  */
10562 #ifdef __cplusplus
10563 extern "C"
10564 #endif
10565 /* We use char because int might match the return type of a gcc2
10566    builtin and then its argument prototype would still apply.  */
10567 char mad_bit_init ();
10568 #ifdef F77_DUMMY_MAIN
10569 #  ifdef __cplusplus
10570      extern "C"
10571 #  endif
10572    int F77_DUMMY_MAIN() { return 1; }
10573 #endif
10574 int
10575 main ()
10576 {
10577 mad_bit_init ();
10578   ;
10579   return 0;
10580 }
10581 _ACEOF
10582 rm -f conftest.$ac_objext conftest$ac_exeext
10583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10584   (eval $ac_link) 2>&5
10585   ac_status=$?
10586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587   (exit $ac_status); } &&
10588          { ac_try='test -s conftest$ac_exeext'
10589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590   (eval $ac_try) 2>&5
10591   ac_status=$?
10592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593   (exit $ac_status); }; }; then
10594   ac_cv_lib_mad_mad_bit_init=yes
10595 else
10596   echo "$as_me: failed program was:" >&5
10597 cat conftest.$ac_ext >&5
10598 ac_cv_lib_mad_mad_bit_init=no
10599 fi
10600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10601 LIBS=$ac_check_lib_save_LIBS
10602 fi
10603 echo "$as_me:$LINENO: result: $ac_cv_lib_mad_mad_bit_init" >&5
10604 echo "${ECHO_T}$ac_cv_lib_mad_mad_bit_init" >&6
10605 if test $ac_cv_lib_mad_mad_bit_init = yes; then
10606
10607         BUILTINS="${BUILTINS} mad"
10608         mad_LDFLAGS="${mad_LDFLAGS} -lmad"
10609
10610 else
10611    { { echo "$as_me:$LINENO: error: the specified tree hasn't been compiled " >&5
10612 echo "$as_me: error: the specified tree hasn't been compiled " >&2;}
10613    { (exit 1); exit 1; }; }
10614
10615 fi
10616
10617       LDFLAGS=$save_LDFLAGS
10618     else
10619       echo "$as_me:$LINENO: result: no" >&5
10620 echo "${ECHO_T}no" >&6
10621       { { echo "$as_me:$LINENO: error: the specified tree doesn't have mad.h" >&5
10622 echo "$as_me: error: the specified tree doesn't have mad.h" >&2;}
10623    { (exit 1); exit 1; }; }
10624     fi
10625   else
10626     save_CFLAGS=$CFLAGS
10627     save_LDFLAGS=$LDFLAGS
10628     CFLAGS="$CFLAGS $mad_CFLAGS"
10629     LDFLAGS="$LDFLAGS $mad_LDFLAGS"
10630
10631 for ac_header in mad.h
10632 do
10633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10635   echo "$as_me:$LINENO: checking for $ac_header" >&5
10636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10638   echo $ECHO_N "(cached) $ECHO_C" >&6
10639 fi
10640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10642 else
10643   # Is the header compilable?
10644 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10646 cat >conftest.$ac_ext <<_ACEOF
10647 #line $LINENO "configure"
10648 #include "confdefs.h"
10649 $ac_includes_default
10650 #include <$ac_header>
10651 _ACEOF
10652 rm -f conftest.$ac_objext
10653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10654   (eval $ac_compile) 2>&5
10655   ac_status=$?
10656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657   (exit $ac_status); } &&
10658          { ac_try='test -s conftest.$ac_objext'
10659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660   (eval $ac_try) 2>&5
10661   ac_status=$?
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); }; }; then
10664   ac_header_compiler=yes
10665 else
10666   echo "$as_me: failed program was:" >&5
10667 cat conftest.$ac_ext >&5
10668 ac_header_compiler=no
10669 fi
10670 rm -f conftest.$ac_objext conftest.$ac_ext
10671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10672 echo "${ECHO_T}$ac_header_compiler" >&6
10673
10674 # Is the header present?
10675 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10677 cat >conftest.$ac_ext <<_ACEOF
10678 #line $LINENO "configure"
10679 #include "confdefs.h"
10680 #include <$ac_header>
10681 _ACEOF
10682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10683   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10684   ac_status=$?
10685   egrep -v '^ *\+' conftest.er1 >conftest.err
10686   rm -f conftest.er1
10687   cat conftest.err >&5
10688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689   (exit $ac_status); } >/dev/null; then
10690   if test -s conftest.err; then
10691     ac_cpp_err=$ac_c_preproc_warn_flag
10692   else
10693     ac_cpp_err=
10694   fi
10695 else
10696   ac_cpp_err=yes
10697 fi
10698 if test -z "$ac_cpp_err"; then
10699   ac_header_preproc=yes
10700 else
10701   echo "$as_me: failed program was:" >&5
10702   cat conftest.$ac_ext >&5
10703   ac_header_preproc=no
10704 fi
10705 rm -f conftest.err conftest.$ac_ext
10706 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10707 echo "${ECHO_T}$ac_header_preproc" >&6
10708
10709 # So?  What about this header?
10710 case $ac_header_compiler:$ac_header_preproc in
10711   yes:no )
10712     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10714     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10716   no:yes )
10717     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10719     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10721     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10723 esac
10724 echo "$as_me:$LINENO: checking for $ac_header" >&5
10725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10727   echo $ECHO_N "(cached) $ECHO_C" >&6
10728 else
10729   eval "$as_ac_Header=$ac_header_preproc"
10730 fi
10731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10733
10734 fi
10735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10736   cat >>confdefs.h <<_ACEOF
10737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10738 _ACEOF
10739
10740 else
10741    { { echo "$as_me:$LINENO: error: Cannot find development headers for libmad..." >&5
10742 echo "$as_me: error: Cannot find development headers for libmad..." >&2;}
10743    { (exit 1); exit 1; }; }
10744 fi
10745
10746 done
10747
10748     echo "$as_me:$LINENO: checking for mad_bit_init in -lmad" >&5
10749 echo $ECHO_N "checking for mad_bit_init in -lmad... $ECHO_C" >&6
10750 if test "${ac_cv_lib_mad_mad_bit_init+set}" = set; then
10751   echo $ECHO_N "(cached) $ECHO_C" >&6
10752 else
10753   ac_check_lib_save_LIBS=$LIBS
10754 LIBS="-lmad  $LIBS"
10755 cat >conftest.$ac_ext <<_ACEOF
10756 #line $LINENO "configure"
10757 #include "confdefs.h"
10758
10759 /* Override any gcc2 internal prototype to avoid an error.  */
10760 #ifdef __cplusplus
10761 extern "C"
10762 #endif
10763 /* We use char because int might match the return type of a gcc2
10764    builtin and then its argument prototype would still apply.  */
10765 char mad_bit_init ();
10766 #ifdef F77_DUMMY_MAIN
10767 #  ifdef __cplusplus
10768      extern "C"
10769 #  endif
10770    int F77_DUMMY_MAIN() { return 1; }
10771 #endif
10772 int
10773 main ()
10774 {
10775 mad_bit_init ();
10776   ;
10777   return 0;
10778 }
10779 _ACEOF
10780 rm -f conftest.$ac_objext conftest$ac_exeext
10781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10782   (eval $ac_link) 2>&5
10783   ac_status=$?
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); } &&
10786          { ac_try='test -s conftest$ac_exeext'
10787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788   (eval $ac_try) 2>&5
10789   ac_status=$?
10790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791   (exit $ac_status); }; }; then
10792   ac_cv_lib_mad_mad_bit_init=yes
10793 else
10794   echo "$as_me: failed program was:" >&5
10795 cat conftest.$ac_ext >&5
10796 ac_cv_lib_mad_mad_bit_init=no
10797 fi
10798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10799 LIBS=$ac_check_lib_save_LIBS
10800 fi
10801 echo "$as_me:$LINENO: result: $ac_cv_lib_mad_mad_bit_init" >&5
10802 echo "${ECHO_T}$ac_cv_lib_mad_mad_bit_init" >&6
10803 if test $ac_cv_lib_mad_mad_bit_init = yes; then
10804   PLUGINS="${PLUGINS} mad"
10805       mad_LDFLAGS="${mad_LDFLAGS} -lmad"
10806 else
10807    { { echo "$as_me:$LINENO: error: Cannot find libmad library..." >&5
10808 echo "$as_me: error: Cannot find libmad library..." >&2;}
10809    { (exit 1); exit 1; }; }
10810 fi
10811
10812     CFLAGS=$save_CFLAGS
10813     LDFLAGS=$save_LDFLAGS
10814   fi
10815 fi
10816
10817 # Check whether --enable-ffmpeg or --disable-ffmpeg was given.
10818 if test "${enable_ffmpeg+set}" = set; then
10819   enableval="$enable_ffmpeg"
10820
10821 fi;
10822 if test "x$enable_ffmpeg" = "xyes"
10823 then
10824
10825 # Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
10826 if test "${with_ffmpeg_tree+set}" = set; then
10827   withval="$with_ffmpeg_tree"
10828
10829 fi;
10830   if test "x$with_ffmpeg_tree" = x
10831   then
10832     { { echo "$as_me:$LINENO: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a" >&5
10833 echo "$as_me: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a" >&2;}
10834    { (exit 1); exit 1; }; }
10835   else
10836     echo "$as_me:$LINENO: checking for libavcodec.a in ${with_ffmpeg_tree}" >&5
10837 echo $ECHO_N "checking for libavcodec.a in ${with_ffmpeg_tree}... $ECHO_C" >&6
10838     real_ffmpeg_tree="`cd ${with_ffmpeg_tree} 2>/dev/null && pwd`"
10839     if test "x$real_ffmpeg_tree" = x
10840     then
10841             echo "$as_me:$LINENO: result: no" >&5
10842 echo "${ECHO_T}no" >&6
10843       { { echo "$as_me:$LINENO: error: cannot cd to ${with_ffmpeg_tree}" >&5
10844 echo "$as_me: error: cannot cd to ${with_ffmpeg_tree}" >&2;}
10845    { (exit 1); exit 1; }; }
10846     fi
10847     if test -f "${real_ffmpeg_tree}/libavcodec/libavcodec.a"
10848     then
10849             echo "$as_me:$LINENO: result: ${real_ffmpeg_tree}/libavcodec/libavcodec.a" >&5
10850 echo "${ECHO_T}${real_ffmpeg_tree}/libavcodec/libavcodec.a" >&6
10851       BUILTINS="${BUILTINS} ffmpeg"
10852       ffmpeg_LDFLAGS="${ffmpeg_LDFLAGS} ${real_ffmpeg_tree}/libavcodec/libavcodec.a"
10853       ffmpeg_CFLAGS="${ffmpeg_CFLAGS} -I${real_ffmpeg_tree}/libavcodec"
10854     else
10855             echo "$as_me:$LINENO: result: no" >&5
10856 echo "${ECHO_T}no" >&6
10857       { { echo "$as_me:$LINENO: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" >&5
10858 echo "$as_me: error: cannot find ${real_ffmpeg_tree}/libavcodec/libavcodec.a, make sure you compiled libavcodec in ${with_ffmpeg_tree}" >&2;}
10859    { (exit 1); exit 1; }; }
10860     fi
10861   fi
10862 fi
10863
10864
10865 if test x$SYS = xbeos
10866 then
10867     PLUGINS="${PLUGINS} beos"
10868 fi
10869
10870 # Check whether --enable-a52 or --disable-a52 was given.
10871 if test "${enable_a52+set}" = set; then
10872   enableval="$enable_a52"
10873
10874 fi;
10875 if test "x$enable_a52" != "xno"
10876 then
10877
10878 # Check whether --with-a52-tree or --without-a52-tree was given.
10879 if test "${with_a52_tree+set}" = set; then
10880   withval="$with_a52_tree"
10881
10882 fi;
10883   if test "x$with_a52_tree" != "xno" -a "x$with_a52_tree" != "x"
10884   then
10885     real_a52_tree="`cd ${with_a52_tree} 2>/dev/null && pwd`"
10886     if test "x$real_a52_tree" = x
10887     then
10888             echo "$as_me:$LINENO: result: no" >&5
10889 echo "${ECHO_T}no" >&6
10890       { { echo "$as_me:$LINENO: error: ${with_a52_tree} directory doesn't exist" >&5
10891 echo "$as_me: error: ${with_a52_tree} directory doesn't exist" >&2;}
10892    { (exit 1); exit 1; }; }
10893     fi
10894         echo "$as_me:$LINENO: checking for a52.h in ${real_a52_tree}/include" >&5
10895 echo $ECHO_N "checking for a52.h in ${real_a52_tree}/include... $ECHO_C" >&6
10896     if test -f ${real_a52_tree}/include/a52.h
10897     then
10898       echo "$as_me:$LINENO: result: yes" >&5
10899 echo "${ECHO_T}yes" >&6
10900       a52_CFLAGS="${a52_CFLAGS} -I${real_a52_tree}"
10901       a52_LDFLAGS="${a52_LDFLAGS} -L${real_a52_tree}/liba52/.libs"
10902       save_LDFLAGS=$LDFLAGS
10903       LDFLAGS="$a52_LDFLAGS $LDFLAGS"
10904       echo "$as_me:$LINENO: checking for a52_free in -la52" >&5
10905 echo $ECHO_N "checking for a52_free in -la52... $ECHO_C" >&6
10906 if test "${ac_cv_lib_a52_a52_free+set}" = set; then
10907   echo $ECHO_N "(cached) $ECHO_C" >&6
10908 else
10909   ac_check_lib_save_LIBS=$LIBS
10910 LIBS="-la52 -lm $LIBS"
10911 cat >conftest.$ac_ext <<_ACEOF
10912 #line $LINENO "configure"
10913 #include "confdefs.h"
10914
10915 /* Override any gcc2 internal prototype to avoid an error.  */
10916 #ifdef __cplusplus
10917 extern "C"
10918 #endif
10919 /* We use char because int might match the return type of a gcc2
10920    builtin and then its argument prototype would still apply.  */
10921 char a52_free ();
10922 #ifdef F77_DUMMY_MAIN
10923 #  ifdef __cplusplus
10924      extern "C"
10925 #  endif
10926    int F77_DUMMY_MAIN() { return 1; }
10927 #endif
10928 int
10929 main ()
10930 {
10931 a52_free ();
10932   ;
10933   return 0;
10934 }
10935 _ACEOF
10936 rm -f conftest.$ac_objext conftest$ac_exeext
10937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10938   (eval $ac_link) 2>&5
10939   ac_status=$?
10940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941   (exit $ac_status); } &&
10942          { ac_try='test -s conftest$ac_exeext'
10943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944   (eval $ac_try) 2>&5
10945   ac_status=$?
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); }; }; then
10948   ac_cv_lib_a52_a52_free=yes
10949 else
10950   echo "$as_me: failed program was:" >&5
10951 cat conftest.$ac_ext >&5
10952 ac_cv_lib_a52_a52_free=no
10953 fi
10954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10955 LIBS=$ac_check_lib_save_LIBS
10956 fi
10957 echo "$as_me:$LINENO: result: $ac_cv_lib_a52_a52_free" >&5
10958 echo "${ECHO_T}$ac_cv_lib_a52_a52_free" >&6
10959 if test $ac_cv_lib_a52_a52_free = yes; then
10960
10961         BUILTINS="${BUILTINS} a52"
10962         a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
10963         a52_CFLAGS="${a52_CFLAGS} -DUSE_A52DEC_TREE"
10964
10965 else
10966
10967         if test -f ${real_a52_tree}/liba52/.libs/liba52.a
10968         then
10969           { { echo "$as_me:$LINENO: error: make sure you have at least a52dec-0.7.3" >&5
10970 echo "$as_me: error: make sure you have at least a52dec-0.7.3" >&2;}
10971    { (exit 1); exit 1; }; }
10972         else
10973           { { echo "$as_me:$LINENO: error: the specified tree hasn't been compiled" >&5
10974 echo "$as_me: error: the specified tree hasn't been compiled" >&2;}
10975    { (exit 1); exit 1; }; }
10976         fi
10977
10978 fi
10979
10980       LDFLAGS=$save_LDFLAGS
10981     else
10982       echo "$as_me:$LINENO: result: no" >&5
10983 echo "${ECHO_T}no" >&6
10984       { { echo "$as_me:$LINENO: error: the specified tree doesn't have a52.h" >&5
10985 echo "$as_me: error: the specified tree doesn't have a52.h" >&2;}
10986    { (exit 1); exit 1; }; }
10987     fi
10988   else
10989 for ac_header in a52dec/a52.h
10990 do
10991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10993   echo "$as_me:$LINENO: checking for $ac_header" >&5
10994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10996   echo $ECHO_N "(cached) $ECHO_C" >&6
10997 fi
10998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11000 else
11001   # Is the header compilable?
11002 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11004 cat >conftest.$ac_ext <<_ACEOF
11005 #line $LINENO "configure"
11006 #include "confdefs.h"
11007 $ac_includes_default
11008 #include <$ac_header>
11009 _ACEOF
11010 rm -f conftest.$ac_objext
11011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11012   (eval $ac_compile) 2>&5
11013   ac_status=$?
11014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015   (exit $ac_status); } &&
11016          { ac_try='test -s conftest.$ac_objext'
11017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018   (eval $ac_try) 2>&5
11019   ac_status=$?
11020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021   (exit $ac_status); }; }; then
11022   ac_header_compiler=yes
11023 else
11024   echo "$as_me: failed program was:" >&5
11025 cat conftest.$ac_ext >&5
11026 ac_header_compiler=no
11027 fi
11028 rm -f conftest.$ac_objext conftest.$ac_ext
11029 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11030 echo "${ECHO_T}$ac_header_compiler" >&6
11031
11032 # Is the header present?
11033 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11035 cat >conftest.$ac_ext <<_ACEOF
11036 #line $LINENO "configure"
11037 #include "confdefs.h"
11038 #include <$ac_header>
11039 _ACEOF
11040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11041   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11042   ac_status=$?
11043   egrep -v '^ *\+' conftest.er1 >conftest.err
11044   rm -f conftest.er1
11045   cat conftest.err >&5
11046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047   (exit $ac_status); } >/dev/null; then
11048   if test -s conftest.err; then
11049     ac_cpp_err=$ac_c_preproc_warn_flag
11050   else
11051     ac_cpp_err=
11052   fi
11053 else
11054   ac_cpp_err=yes
11055 fi
11056 if test -z "$ac_cpp_err"; then
11057   ac_header_preproc=yes
11058 else
11059   echo "$as_me: failed program was:" >&5
11060   cat conftest.$ac_ext >&5
11061   ac_header_preproc=no
11062 fi
11063 rm -f conftest.err conftest.$ac_ext
11064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11065 echo "${ECHO_T}$ac_header_preproc" >&6
11066
11067 # So?  What about this header?
11068 case $ac_header_compiler:$ac_header_preproc in
11069   yes:no )
11070     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11074   no:yes )
11075     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11077     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11078 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11079     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11081 esac
11082 echo "$as_me:$LINENO: checking for $ac_header" >&5
11083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11085   echo $ECHO_N "(cached) $ECHO_C" >&6
11086 else
11087   eval "$as_ac_Header=$ac_header_preproc"
11088 fi
11089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11091
11092 fi
11093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11094   cat >>confdefs.h <<_ACEOF
11095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11096 _ACEOF
11097
11098       echo "$as_me:$LINENO: checking for a52_free in -la52" >&5
11099 echo $ECHO_N "checking for a52_free in -la52... $ECHO_C" >&6
11100 if test "${ac_cv_lib_a52_a52_free+set}" = set; then
11101   echo $ECHO_N "(cached) $ECHO_C" >&6
11102 else
11103   ac_check_lib_save_LIBS=$LIBS
11104 LIBS="-la52 -lm $LIBS"
11105 cat >conftest.$ac_ext <<_ACEOF
11106 #line $LINENO "configure"
11107 #include "confdefs.h"
11108
11109 /* Override any gcc2 internal prototype to avoid an error.  */
11110 #ifdef __cplusplus
11111 extern "C"
11112 #endif
11113 /* We use char because int might match the return type of a gcc2
11114    builtin and then its argument prototype would still apply.  */
11115 char a52_free ();
11116 #ifdef F77_DUMMY_MAIN
11117 #  ifdef __cplusplus
11118      extern "C"
11119 #  endif
11120    int F77_DUMMY_MAIN() { return 1; }
11121 #endif
11122 int
11123 main ()
11124 {
11125 a52_free ();
11126   ;
11127   return 0;
11128 }
11129 _ACEOF
11130 rm -f conftest.$ac_objext conftest$ac_exeext
11131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11132   (eval $ac_link) 2>&5
11133   ac_status=$?
11134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135   (exit $ac_status); } &&
11136          { ac_try='test -s conftest$ac_exeext'
11137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138   (eval $ac_try) 2>&5
11139   ac_status=$?
11140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141   (exit $ac_status); }; }; then
11142   ac_cv_lib_a52_a52_free=yes
11143 else
11144   echo "$as_me: failed program was:" >&5
11145 cat conftest.$ac_ext >&5
11146 ac_cv_lib_a52_a52_free=no
11147 fi
11148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11149 LIBS=$ac_check_lib_save_LIBS
11150 fi
11151 echo "$as_me:$LINENO: result: $ac_cv_lib_a52_a52_free" >&5
11152 echo "${ECHO_T}$ac_cv_lib_a52_a52_free" >&6
11153 if test $ac_cv_lib_a52_a52_free = yes; then
11154
11155         BUILTINS="${BUILTINS} a52"
11156         a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
11157         a52_CFLAGS="${a52_CFLAGS}"
11158
11159 fi
11160
11161
11162 fi
11163
11164 done
11165
11166   fi
11167 fi
11168
11169 # Check whether --enable-vorbis or --disable-vorbis was given.
11170 if test "${enable_vorbis+set}" = set; then
11171   enableval="$enable_vorbis"
11172
11173 fi;
11174 if test "x$enable_vorbis" != "xno"
11175 then
11176
11177 for ac_header in ogg/ogg.h
11178 do
11179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11181   echo "$as_me:$LINENO: checking for $ac_header" >&5
11182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11184   echo $ECHO_N "(cached) $ECHO_C" >&6
11185 fi
11186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11188 else
11189   # Is the header compilable?
11190 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11192 cat >conftest.$ac_ext <<_ACEOF
11193 #line $LINENO "configure"
11194 #include "confdefs.h"
11195 $ac_includes_default
11196 #include <$ac_header>
11197 _ACEOF
11198 rm -f conftest.$ac_objext
11199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11200   (eval $ac_compile) 2>&5
11201   ac_status=$?
11202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203   (exit $ac_status); } &&
11204          { ac_try='test -s conftest.$ac_objext'
11205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206   (eval $ac_try) 2>&5
11207   ac_status=$?
11208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209   (exit $ac_status); }; }; then
11210   ac_header_compiler=yes
11211 else
11212   echo "$as_me: failed program was:" >&5
11213 cat conftest.$ac_ext >&5
11214 ac_header_compiler=no
11215 fi
11216 rm -f conftest.$ac_objext conftest.$ac_ext
11217 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11218 echo "${ECHO_T}$ac_header_compiler" >&6
11219
11220 # Is the header present?
11221 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11222 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11223 cat >conftest.$ac_ext <<_ACEOF
11224 #line $LINENO "configure"
11225 #include "confdefs.h"
11226 #include <$ac_header>
11227 _ACEOF
11228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11229   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11230   ac_status=$?
11231   egrep -v '^ *\+' conftest.er1 >conftest.err
11232   rm -f conftest.er1
11233   cat conftest.err >&5
11234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235   (exit $ac_status); } >/dev/null; then
11236   if test -s conftest.err; then
11237     ac_cpp_err=$ac_c_preproc_warn_flag
11238   else
11239     ac_cpp_err=
11240   fi
11241 else
11242   ac_cpp_err=yes
11243 fi
11244 if test -z "$ac_cpp_err"; then
11245   ac_header_preproc=yes
11246 else
11247   echo "$as_me: failed program was:" >&5
11248   cat conftest.$ac_ext >&5
11249   ac_header_preproc=no
11250 fi
11251 rm -f conftest.err conftest.$ac_ext
11252 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11253 echo "${ECHO_T}$ac_header_preproc" >&6
11254
11255 # So?  What about this header?
11256 case $ac_header_compiler:$ac_header_preproc in
11257   yes:no )
11258     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11262   no:yes )
11263     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11265     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11267     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11269 esac
11270 echo "$as_me:$LINENO: checking for $ac_header" >&5
11271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11273   echo $ECHO_N "(cached) $ECHO_C" >&6
11274 else
11275   eval "$as_ac_Header=$ac_header_preproc"
11276 fi
11277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11279
11280 fi
11281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11282   cat >>confdefs.h <<_ACEOF
11283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11284 _ACEOF
11285
11286         #PLUGINS="${PLUGINS} vorbis"
11287     vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
11288
11289 fi
11290
11291 done
11292
11293 fi
11294
11295
11296
11297 # Check whether --with- or --without- was given.
11298 if test "${with_+set}" = set; then
11299   withval="$with_"
11300
11301 fi;
11302
11303 # Check whether --enable-x11 or --disable-x11 was given.
11304 if test "${enable_x11+set}" = set; then
11305   enableval="$enable_x11"
11306
11307 fi;
11308 if test x$enable_x11 != xno &&
11309   (test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
11310   if test x$x_includes = xNONE; then
11311     x_includes=/usr/X11R6/include
11312   fi
11313   if test x$x_libraries = xNONE; then
11314     x_libraries=/usr/X11R6/lib
11315   fi
11316   CPPFLAGS="$save_CPPFLAGS -I$x_includes"
11317
11318 for ac_header in X11/Xlib.h
11319 do
11320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11322   echo "$as_me:$LINENO: checking for $ac_header" >&5
11323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11325   echo $ECHO_N "(cached) $ECHO_C" >&6
11326 fi
11327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11329 else
11330   # Is the header compilable?
11331 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11333 cat >conftest.$ac_ext <<_ACEOF
11334 #line $LINENO "configure"
11335 #include "confdefs.h"
11336 $ac_includes_default
11337 #include <$ac_header>
11338 _ACEOF
11339 rm -f conftest.$ac_objext
11340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11341   (eval $ac_compile) 2>&5
11342   ac_status=$?
11343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344   (exit $ac_status); } &&
11345          { ac_try='test -s conftest.$ac_objext'
11346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347   (eval $ac_try) 2>&5
11348   ac_status=$?
11349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350   (exit $ac_status); }; }; then
11351   ac_header_compiler=yes
11352 else
11353   echo "$as_me: failed program was:" >&5
11354 cat conftest.$ac_ext >&5
11355 ac_header_compiler=no
11356 fi
11357 rm -f conftest.$ac_objext conftest.$ac_ext
11358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11359 echo "${ECHO_T}$ac_header_compiler" >&6
11360
11361 # Is the header present?
11362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11364 cat >conftest.$ac_ext <<_ACEOF
11365 #line $LINENO "configure"
11366 #include "confdefs.h"
11367 #include <$ac_header>
11368 _ACEOF
11369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11370   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11371   ac_status=$?
11372   egrep -v '^ *\+' conftest.er1 >conftest.err
11373   rm -f conftest.er1
11374   cat conftest.err >&5
11375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376   (exit $ac_status); } >/dev/null; then
11377   if test -s conftest.err; then
11378     ac_cpp_err=$ac_c_preproc_warn_flag
11379   else
11380     ac_cpp_err=
11381   fi
11382 else
11383   ac_cpp_err=yes
11384 fi
11385 if test -z "$ac_cpp_err"; then
11386   ac_header_preproc=yes
11387 else
11388   echo "$as_me: failed program was:" >&5
11389   cat conftest.$ac_ext >&5
11390   ac_header_preproc=no
11391 fi
11392 rm -f conftest.err conftest.$ac_ext
11393 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11394 echo "${ECHO_T}$ac_header_preproc" >&6
11395
11396 # So?  What about this header?
11397 case $ac_header_compiler:$ac_header_preproc in
11398   yes:no )
11399     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11403   no:yes )
11404     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11406     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11408     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11410 esac
11411 echo "$as_me:$LINENO: checking for $ac_header" >&5
11412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11414   echo $ECHO_N "(cached) $ECHO_C" >&6
11415 else
11416   eval "$as_ac_Header=$ac_header_preproc"
11417 fi
11418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11420
11421 fi
11422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11423   cat >>confdefs.h <<_ACEOF
11424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11425 _ACEOF
11426
11427     PLUGINS="${PLUGINS} x11"
11428     x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
11429     x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
11430
11431 fi
11432
11433 done
11434
11435   CPPFLAGS="$save_CPPFLAGS"
11436 fi
11437
11438 # Check whether --enable-xvideo or --disable-xvideo was given.
11439 if test "${enable_xvideo+set}" = set; then
11440   enableval="$enable_xvideo"
11441
11442 fi;
11443 if test x$enable_xvideo != xno &&
11444   (test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
11445   if test x$x_includes = xNONE; then
11446     x_includes=/usr/X11R6/include
11447   fi
11448   if test x$x_libraries = xNONE; then
11449     x_libraries=/usr/X11R6/lib
11450   fi
11451   save_CPPFLAGS=$CPPFLAGS
11452   CPPFLAGS="$save_CPPFLAGS -I$x_includes"
11453
11454 for ac_header in X11/extensions/Xv.h
11455 do
11456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11458   echo "$as_me:$LINENO: checking for $ac_header" >&5
11459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11461   echo $ECHO_N "(cached) $ECHO_C" >&6
11462 fi
11463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11465 else
11466   # Is the header compilable?
11467 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11469 cat >conftest.$ac_ext <<_ACEOF
11470 #line $LINENO "configure"
11471 #include "confdefs.h"
11472 $ac_includes_default
11473 #include <$ac_header>
11474 _ACEOF
11475 rm -f conftest.$ac_objext
11476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11477   (eval $ac_compile) 2>&5
11478   ac_status=$?
11479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480   (exit $ac_status); } &&
11481          { ac_try='test -s conftest.$ac_objext'
11482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11483   (eval $ac_try) 2>&5
11484   ac_status=$?
11485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486   (exit $ac_status); }; }; then
11487   ac_header_compiler=yes
11488 else
11489   echo "$as_me: failed program was:" >&5
11490 cat conftest.$ac_ext >&5
11491 ac_header_compiler=no
11492 fi
11493 rm -f conftest.$ac_objext conftest.$ac_ext
11494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11495 echo "${ECHO_T}$ac_header_compiler" >&6
11496
11497 # Is the header present?
11498 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11500 cat >conftest.$ac_ext <<_ACEOF
11501 #line $LINENO "configure"
11502 #include "confdefs.h"
11503 #include <$ac_header>
11504 _ACEOF
11505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11506   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11507   ac_status=$?
11508   egrep -v '^ *\+' conftest.er1 >conftest.err
11509   rm -f conftest.er1
11510   cat conftest.err >&5
11511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512   (exit $ac_status); } >/dev/null; then
11513   if test -s conftest.err; then
11514     ac_cpp_err=$ac_c_preproc_warn_flag
11515   else
11516     ac_cpp_err=
11517   fi
11518 else
11519   ac_cpp_err=yes
11520 fi
11521 if test -z "$ac_cpp_err"; then
11522   ac_header_preproc=yes
11523 else
11524   echo "$as_me: failed program was:" >&5
11525   cat conftest.$ac_ext >&5
11526   ac_header_preproc=no
11527 fi
11528 rm -f conftest.err conftest.$ac_ext
11529 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11530 echo "${ECHO_T}$ac_header_preproc" >&6
11531
11532 # So?  What about this header?
11533 case $ac_header_compiler:$ac_header_preproc in
11534   yes:no )
11535     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11536 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11537     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11539   no:yes )
11540     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11542     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11543 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11544     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11546 esac
11547 echo "$as_me:$LINENO: checking for $ac_header" >&5
11548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11550   echo $ECHO_N "(cached) $ECHO_C" >&6
11551 else
11552   eval "$as_ac_Header=$ac_header_preproc"
11553 fi
11554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11556
11557 fi
11558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11559   cat >>confdefs.h <<_ACEOF
11560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11561 _ACEOF
11562
11563     save_CFLAGS=$CFLAGS
11564     CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
11565     echo "$as_me:$LINENO: checking for XvSetPortAttribute in -lXv_pic" >&5
11566 echo $ECHO_N "checking for XvSetPortAttribute in -lXv_pic... $ECHO_C" >&6
11567 if test "${ac_cv_lib_Xv_pic_XvSetPortAttribute+set}" = set; then
11568   echo $ECHO_N "(cached) $ECHO_C" >&6
11569 else
11570   ac_check_lib_save_LIBS=$LIBS
11571 LIBS="-lXv_pic  $LIBS"
11572 cat >conftest.$ac_ext <<_ACEOF
11573 #line $LINENO "configure"
11574 #include "confdefs.h"
11575
11576 /* Override any gcc2 internal prototype to avoid an error.  */
11577 #ifdef __cplusplus
11578 extern "C"
11579 #endif
11580 /* We use char because int might match the return type of a gcc2
11581    builtin and then its argument prototype would still apply.  */
11582 char XvSetPortAttribute ();
11583 #ifdef F77_DUMMY_MAIN
11584 #  ifdef __cplusplus
11585      extern "C"
11586 #  endif
11587    int F77_DUMMY_MAIN() { return 1; }
11588 #endif
11589 int
11590 main ()
11591 {
11592 XvSetPortAttribute ();
11593   ;
11594   return 0;
11595 }
11596 _ACEOF
11597 rm -f conftest.$ac_objext conftest$ac_exeext
11598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11599   (eval $ac_link) 2>&5
11600   ac_status=$?
11601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602   (exit $ac_status); } &&
11603          { ac_try='test -s conftest$ac_exeext'
11604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605   (eval $ac_try) 2>&5
11606   ac_status=$?
11607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608   (exit $ac_status); }; }; then
11609   ac_cv_lib_Xv_pic_XvSetPortAttribute=yes
11610 else
11611   echo "$as_me: failed program was:" >&5
11612 cat conftest.$ac_ext >&5
11613 ac_cv_lib_Xv_pic_XvSetPortAttribute=no
11614 fi
11615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11616 LIBS=$ac_check_lib_save_LIBS
11617 fi
11618 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_pic_XvSetPortAttribute" >&5
11619 echo "${ECHO_T}$ac_cv_lib_Xv_pic_XvSetPortAttribute" >&6
11620 if test $ac_cv_lib_Xv_pic_XvSetPortAttribute = yes; then
11621   # We have Xv_pic, that's good, we can build an xvideo.so plugin !
11622       PLUGINS="${PLUGINS} xvideo"
11623       xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
11624       xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
11625 else
11626   # We don't have Xv_pic, let's make xvideo.a as builtin
11627       BUILTINS="${BUILTINS} xvideo"
11628       xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
11629       xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes"
11630 fi
11631
11632     CFLAGS="$save_CFLAGS"
11633
11634   CPPFLAGS="$save_CPPFLAGS"
11635 fi
11636
11637 done
11638
11639 fi
11640
11641 # Check whether --enable-sdl or --disable-sdl was given.
11642 if test "${enable_sdl+set}" = set; then
11643   enableval="$enable_sdl"
11644
11645 fi;
11646 if test "x$enable_sdl" != "xno"
11647 then
11648   SDL_PATH=$PATH
11649
11650 # Check whether --with-sdl-config-path or --without-sdl-config-path was given.
11651 if test "${with_sdl_config_path+set}" = set; then
11652   withval="$with_sdl_config_path"
11653    if test "x$with_sdl_config_path" != "xno"
11654       then
11655         SDL_PATH="$with_sdl_config_path:$PATH"
11656       fi
11657 fi;
11658   # Extract the first word of "sdl12-config", so it can be a program name with args.
11659 set dummy sdl12-config; ac_word=$2
11660 echo "$as_me:$LINENO: checking for $ac_word" >&5
11661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11662 if test "${ac_cv_path_SDL12_CONFIG+set}" = set; then
11663   echo $ECHO_N "(cached) $ECHO_C" >&6
11664 else
11665   case $SDL12_CONFIG in
11666   [\\/]* | ?:[\\/]*)
11667   ac_cv_path_SDL12_CONFIG="$SDL12_CONFIG" # Let the user override the test with a path.
11668   ;;
11669   *)
11670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11671 for as_dir in $SDL_PATH
11672 do
11673   IFS=$as_save_IFS
11674   test -z "$as_dir" && as_dir=.
11675   for ac_exec_ext in '' $ac_executable_extensions; do
11676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11677     ac_cv_path_SDL12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11679     break 2
11680   fi
11681 done
11682 done
11683
11684   test -z "$ac_cv_path_SDL12_CONFIG" && ac_cv_path_SDL12_CONFIG="no"
11685   ;;
11686 esac
11687 fi
11688 SDL12_CONFIG=$ac_cv_path_SDL12_CONFIG
11689
11690 if test -n "$SDL12_CONFIG"; then
11691   echo "$as_me:$LINENO: result: $SDL12_CONFIG" >&5
11692 echo "${ECHO_T}$SDL12_CONFIG" >&6
11693 else
11694   echo "$as_me:$LINENO: result: no" >&5
11695 echo "${ECHO_T}no" >&6
11696 fi
11697
11698   SDL_CONFIG=${SDL12_CONFIG}
11699   SDL_HEADER="SDL12/SDL.h"
11700   if test x${SDL_CONFIG} = xno
11701   then
11702     # Extract the first word of "sdl11-config", so it can be a program name with args.
11703 set dummy sdl11-config; ac_word=$2
11704 echo "$as_me:$LINENO: checking for $ac_word" >&5
11705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11706 if test "${ac_cv_path_SDL11_CONFIG+set}" = set; then
11707   echo $ECHO_N "(cached) $ECHO_C" >&6
11708 else
11709   case $SDL11_CONFIG in
11710   [\\/]* | ?:[\\/]*)
11711   ac_cv_path_SDL11_CONFIG="$SDL11_CONFIG" # Let the user override the test with a path.
11712   ;;
11713   *)
11714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11715 for as_dir in $SDL_PATH
11716 do
11717   IFS=$as_save_IFS
11718   test -z "$as_dir" && as_dir=.
11719   for ac_exec_ext in '' $ac_executable_extensions; do
11720   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11721     ac_cv_path_SDL11_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11723     break 2
11724   fi
11725 done
11726 done
11727
11728   test -z "$ac_cv_path_SDL11_CONFIG" && ac_cv_path_SDL11_CONFIG="no"
11729   ;;
11730 esac
11731 fi
11732 SDL11_CONFIG=$ac_cv_path_SDL11_CONFIG
11733
11734 if test -n "$SDL11_CONFIG"; then
11735   echo "$as_me:$LINENO: result: $SDL11_CONFIG" >&5
11736 echo "${ECHO_T}$SDL11_CONFIG" >&6
11737 else
11738   echo "$as_me:$LINENO: result: no" >&5
11739 echo "${ECHO_T}no" >&6
11740 fi
11741
11742     SDL_CONFIG=${SDL11_CONFIG}
11743     SDL_HEADER="SDL11/SDL.h"
11744   fi
11745   if test x${SDL_CONFIG} = xno
11746   then
11747     # Extract the first word of "sdl-config", so it can be a program name with args.
11748 set dummy sdl-config; ac_word=$2
11749 echo "$as_me:$LINENO: checking for $ac_word" >&5
11750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11751 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
11752   echo $ECHO_N "(cached) $ECHO_C" >&6
11753 else
11754   case $SDL_CONFIG in
11755   [\\/]* | ?:[\\/]*)
11756   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
11757   ;;
11758   *)
11759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11760 for as_dir in $SDL_PATH
11761 do
11762   IFS=$as_save_IFS
11763   test -z "$as_dir" && as_dir=.
11764   for ac_exec_ext in '' $ac_executable_extensions; do
11765   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11766     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11768     break 2
11769   fi
11770 done
11771 done
11772
11773   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
11774   ;;
11775 esac
11776 fi
11777 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
11778
11779 if test -n "$SDL_CONFIG"; then
11780   echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
11781 echo "${ECHO_T}$SDL_CONFIG" >&6
11782 else
11783   echo "$as_me:$LINENO: result: no" >&5
11784 echo "${ECHO_T}no" >&6
11785 fi
11786
11787     SDL_HEADER="SDL/SDL.h"
11788   fi
11789   if test x${SDL_CONFIG} != xno
11790   then
11791     PLUGINS="${PLUGINS} sdl"
11792     sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
11793     sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
11794     CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
11795
11796 for ac_header in ${SDL_HEADER}
11797 do
11798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11800   echo "$as_me:$LINENO: checking for $ac_header" >&5
11801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11803   echo $ECHO_N "(cached) $ECHO_C" >&6
11804 fi
11805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11807 else
11808   # Is the header compilable?
11809 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11811 cat >conftest.$ac_ext <<_ACEOF
11812 #line $LINENO "configure"
11813 #include "confdefs.h"
11814 $ac_includes_default
11815 #include <$ac_header>
11816 _ACEOF
11817 rm -f conftest.$ac_objext
11818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11819   (eval $ac_compile) 2>&5
11820   ac_status=$?
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); } &&
11823          { ac_try='test -s conftest.$ac_objext'
11824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825   (eval $ac_try) 2>&5
11826   ac_status=$?
11827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828   (exit $ac_status); }; }; then
11829   ac_header_compiler=yes
11830 else
11831   echo "$as_me: failed program was:" >&5
11832 cat conftest.$ac_ext >&5
11833 ac_header_compiler=no
11834 fi
11835 rm -f conftest.$ac_objext conftest.$ac_ext
11836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11837 echo "${ECHO_T}$ac_header_compiler" >&6
11838
11839 # Is the header present?
11840 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11842 cat >conftest.$ac_ext <<_ACEOF
11843 #line $LINENO "configure"
11844 #include "confdefs.h"
11845 #include <$ac_header>
11846 _ACEOF
11847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11848   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11849   ac_status=$?
11850   egrep -v '^ *\+' conftest.er1 >conftest.err
11851   rm -f conftest.er1
11852   cat conftest.err >&5
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); } >/dev/null; then
11855   if test -s conftest.err; then
11856     ac_cpp_err=$ac_c_preproc_warn_flag
11857   else
11858     ac_cpp_err=
11859   fi
11860 else
11861   ac_cpp_err=yes
11862 fi
11863 if test -z "$ac_cpp_err"; then
11864   ac_header_preproc=yes
11865 else
11866   echo "$as_me: failed program was:" >&5
11867   cat conftest.$ac_ext >&5
11868   ac_header_preproc=no
11869 fi
11870 rm -f conftest.err conftest.$ac_ext
11871 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11872 echo "${ECHO_T}$ac_header_preproc" >&6
11873
11874 # So?  What about this header?
11875 case $ac_header_compiler:$ac_header_preproc in
11876   yes:no )
11877     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11879     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11881   no:yes )
11882     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11884     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11886     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11888 esac
11889 echo "$as_me:$LINENO: checking for $ac_header" >&5
11890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11892   echo $ECHO_N "(cached) $ECHO_C" >&6
11893 else
11894   eval "$as_ac_Header=$ac_header_preproc"
11895 fi
11896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11898
11899 fi
11900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11901   cat >>confdefs.h <<_ACEOF
11902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11903 _ACEOF
11904
11905 cat >>confdefs.h <<_ACEOF
11906 #define SDL_INCLUDE_FILE <${SDL_HEADER}>
11907 _ACEOF
11908
11909 else
11910    { { echo "$as_me:$LINENO: error: The development package for SDL is not installed.
11911 Please install it and try again. Alternatively you can also configure with
11912 --disable-sdl." >&5
11913 echo "$as_me: error: The development package for SDL is not installed.
11914 Please install it and try again. Alternatively you can also configure with
11915 --disable-sdl." >&2;}
11916    { (exit 1); exit 1; }; }
11917
11918 fi
11919
11920 done
11921
11922     CPPFLAGS="$save_CPPFLAGS"
11923     if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
11924     then
11925       { { echo "$as_me:$LINENO: error: The development package for SDL is not installed.
11926 Please install it and try again. Alternatively you can also configure with
11927 --disable-sdl." >&5
11928 echo "$as_me: error: The development package for SDL is not installed.
11929 Please install it and try again. Alternatively you can also configure with
11930 --disable-sdl." >&2;}
11931    { (exit 1); exit 1; }; }
11932     fi
11933   elif test "x$enable_sdl" =  "xyes"
11934   then
11935     { { echo "$as_me:$LINENO: error: I couldn't find the SDL package. You can download libSDL
11936 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
11937     " >&5
11938 echo "$as_me: error: I couldn't find the SDL package. You can download libSDL
11939 from http://www.libsdl.org/, or configure with --disable-sdl. Have a nice day.
11940     " >&2;}
11941    { (exit 1); exit 1; }; }
11942   fi
11943 fi
11944
11945 # Check whether --enable-directx or --disable-directx was given.
11946 if test "${enable_directx+set}" = set; then
11947   enableval="$enable_directx"
11948
11949 fi;
11950 if test "x$enable_directx" != "xno"
11951 then
11952   if test x$SYS = xmingw32
11953   then
11954
11955 # Check whether --with-directx or --without-directx was given.
11956 if test "${with_directx+set}" = set; then
11957   withval="$with_directx"
11958
11959 fi;
11960     if test "x$with_directx" = "x"
11961     then
11962
11963 for ac_header in ddraw.h
11964 do
11965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11967   echo "$as_me:$LINENO: checking for $ac_header" >&5
11968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11970   echo $ECHO_N "(cached) $ECHO_C" >&6
11971 fi
11972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11974 else
11975   # Is the header compilable?
11976 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11978 cat >conftest.$ac_ext <<_ACEOF
11979 #line $LINENO "configure"
11980 #include "confdefs.h"
11981 $ac_includes_default
11982 #include <$ac_header>
11983 _ACEOF
11984 rm -f conftest.$ac_objext
11985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11986   (eval $ac_compile) 2>&5
11987   ac_status=$?
11988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989   (exit $ac_status); } &&
11990          { ac_try='test -s conftest.$ac_objext'
11991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992   (eval $ac_try) 2>&5
11993   ac_status=$?
11994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995   (exit $ac_status); }; }; then
11996   ac_header_compiler=yes
11997 else
11998   echo "$as_me: failed program was:" >&5
11999 cat conftest.$ac_ext >&5
12000 ac_header_compiler=no
12001 fi
12002 rm -f conftest.$ac_objext conftest.$ac_ext
12003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12004 echo "${ECHO_T}$ac_header_compiler" >&6
12005
12006 # Is the header present?
12007 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12009 cat >conftest.$ac_ext <<_ACEOF
12010 #line $LINENO "configure"
12011 #include "confdefs.h"
12012 #include <$ac_header>
12013 _ACEOF
12014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12015   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12016   ac_status=$?
12017   egrep -v '^ *\+' conftest.er1 >conftest.err
12018   rm -f conftest.er1
12019   cat conftest.err >&5
12020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021   (exit $ac_status); } >/dev/null; then
12022   if test -s conftest.err; then
12023     ac_cpp_err=$ac_c_preproc_warn_flag
12024   else
12025     ac_cpp_err=
12026   fi
12027 else
12028   ac_cpp_err=yes
12029 fi
12030 if test -z "$ac_cpp_err"; then
12031   ac_header_preproc=yes
12032 else
12033   echo "$as_me: failed program was:" >&5
12034   cat conftest.$ac_ext >&5
12035   ac_header_preproc=no
12036 fi
12037 rm -f conftest.err conftest.$ac_ext
12038 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12039 echo "${ECHO_T}$ac_header_preproc" >&6
12040
12041 # So?  What about this header?
12042 case $ac_header_compiler:$ac_header_preproc in
12043   yes:no )
12044     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12045 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12046     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12048   no:yes )
12049     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12051     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12052 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12053     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12055 esac
12056 echo "$as_me:$LINENO: checking for $ac_header" >&5
12057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12059   echo $ECHO_N "(cached) $ECHO_C" >&6
12060 else
12061   eval "$as_ac_Header=$ac_header_preproc"
12062 fi
12063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12065
12066 fi
12067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12068   cat >>confdefs.h <<_ACEOF
12069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12070 _ACEOF
12071   PLUGINS="${PLUGINS} directx"
12072         directx_LDFLAGS="${directx_LDFLAGS} -lgdi32"
12073 fi
12074
12075 done
12076
12077     else
12078       echo "$as_me:$LINENO: checking for directX headers in ${with_directx}" >&5
12079 echo $ECHO_N "checking for directX headers in ${with_directx}... $ECHO_C" >&6
12080       if test -f ${with_directx}/ddraw.h
12081       then
12082         PLUGINS="${PLUGINS} directx"
12083         directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
12084         directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
12085         echo "$as_me:$LINENO: result: yes" >&5
12086 echo "${ECHO_T}yes" >&6
12087       else
12088         echo "$as_me:$LINENO: result: no" >&5
12089 echo "${ECHO_T}no" >&6
12090         { { echo "$as_me:$LINENO: error: Cannot find ${with_directx}/ddraw.h!" >&5
12091 echo "$as_me: error: Cannot find ${with_directx}/ddraw.h!" >&2;}
12092    { (exit 1); exit 1; }; }
12093       fi
12094     fi
12095   fi
12096 fi
12097
12098 # Check whether --enable-fb or --disable-fb was given.
12099 if test "${enable_fb+set}" = set; then
12100   enableval="$enable_fb"
12101
12102 fi;
12103     if test x$enable_fb != xno
12104     then
12105
12106 for ac_header in linux/fb.h
12107 do
12108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12110   echo "$as_me:$LINENO: checking for $ac_header" >&5
12111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12113   echo $ECHO_N "(cached) $ECHO_C" >&6
12114 fi
12115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12117 else
12118   # Is the header compilable?
12119 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12121 cat >conftest.$ac_ext <<_ACEOF
12122 #line $LINENO "configure"
12123 #include "confdefs.h"
12124 $ac_includes_default
12125 #include <$ac_header>
12126 _ACEOF
12127 rm -f conftest.$ac_objext
12128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12129   (eval $ac_compile) 2>&5
12130   ac_status=$?
12131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132   (exit $ac_status); } &&
12133          { ac_try='test -s conftest.$ac_objext'
12134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12135   (eval $ac_try) 2>&5
12136   ac_status=$?
12137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138   (exit $ac_status); }; }; then
12139   ac_header_compiler=yes
12140 else
12141   echo "$as_me: failed program was:" >&5
12142 cat conftest.$ac_ext >&5
12143 ac_header_compiler=no
12144 fi
12145 rm -f conftest.$ac_objext conftest.$ac_ext
12146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12147 echo "${ECHO_T}$ac_header_compiler" >&6
12148
12149 # Is the header present?
12150 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12152 cat >conftest.$ac_ext <<_ACEOF
12153 #line $LINENO "configure"
12154 #include "confdefs.h"
12155 #include <$ac_header>
12156 _ACEOF
12157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12158   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12159   ac_status=$?
12160   egrep -v '^ *\+' conftest.er1 >conftest.err
12161   rm -f conftest.er1
12162   cat conftest.err >&5
12163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); } >/dev/null; then
12165   if test -s conftest.err; then
12166     ac_cpp_err=$ac_c_preproc_warn_flag
12167   else
12168     ac_cpp_err=
12169   fi
12170 else
12171   ac_cpp_err=yes
12172 fi
12173 if test -z "$ac_cpp_err"; then
12174   ac_header_preproc=yes
12175 else
12176   echo "$as_me: failed program was:" >&5
12177   cat conftest.$ac_ext >&5
12178   ac_header_preproc=no
12179 fi
12180 rm -f conftest.err conftest.$ac_ext
12181 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12182 echo "${ECHO_T}$ac_header_preproc" >&6
12183
12184 # So?  What about this header?
12185 case $ac_header_compiler:$ac_header_preproc in
12186   yes:no )
12187     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12189     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12191   no:yes )
12192     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12194     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12196     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12198 esac
12199 echo "$as_me:$LINENO: checking for $ac_header" >&5
12200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12202   echo $ECHO_N "(cached) $ECHO_C" >&6
12203 else
12204   eval "$as_ac_Header=$ac_header_preproc"
12205 fi
12206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12208
12209 fi
12210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12211   cat >>confdefs.h <<_ACEOF
12212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12213 _ACEOF
12214
12215         PLUGINS="${PLUGINS} fb"
12216
12217 fi
12218
12219 done
12220
12221     fi
12222
12223 # Check whether --enable-mga or --disable-mga was given.
12224 if test "${enable_mga+set}" = set; then
12225   enableval="$enable_mga"
12226    if test x$enable_mga = xyes
12227     then
12228       PLUGINS="${PLUGINS} mga xmga"
12229     fi
12230 fi;
12231
12232 # Check whether --enable-ggi or --disable-ggi was given.
12233 if test "${enable_ggi+set}" = set; then
12234   enableval="$enable_ggi"
12235
12236 fi;
12237 if test x$enable_ggi = xyes
12238 then
12239   PLUGINS="${PLUGINS} ggi"
12240   ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
12241
12242 # Check whether --with-ggi or --without-ggi was given.
12243 if test "${with_ggi+set}" = set; then
12244   withval="$with_ggi"
12245    if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
12246       then
12247         CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
12248         ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
12249       fi
12250 fi;
12251 fi
12252
12253 # Check whether --enable-glide or --disable-glide was given.
12254 if test "${enable_glide+set}" = set; then
12255   enableval="$enable_glide"
12256
12257 fi;
12258 if test x$enable_glide = xyes
12259 then
12260   PLUGINS="${PLUGINS} glide"
12261   glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
12262   glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
12263
12264 # Check whether --with-glide or --without-glide was given.
12265 if test "${with_glide+set}" = set; then
12266   withval="$with_glide"
12267    if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
12268       then
12269         glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
12270         glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
12271       fi
12272 fi;
12273 fi
12274
12275 # Check whether --enable-aa or --disable-aa was given.
12276 if test "${enable_aa+set}" = set; then
12277   enableval="$enable_aa"
12278
12279 fi;
12280 if test x$enable_aa = xyes
12281 then
12282   if test "${ac_cv_header_aalib_h+set}" = set; then
12283   echo "$as_me:$LINENO: checking for aalib.h" >&5
12284 echo $ECHO_N "checking for aalib.h... $ECHO_C" >&6
12285 if test "${ac_cv_header_aalib_h+set}" = set; then
12286   echo $ECHO_N "(cached) $ECHO_C" >&6
12287 fi
12288 echo "$as_me:$LINENO: result: $ac_cv_header_aalib_h" >&5
12289 echo "${ECHO_T}$ac_cv_header_aalib_h" >&6
12290 else
12291   # Is the header compilable?
12292 echo "$as_me:$LINENO: checking aalib.h usability" >&5
12293 echo $ECHO_N "checking aalib.h usability... $ECHO_C" >&6
12294 cat >conftest.$ac_ext <<_ACEOF
12295 #line $LINENO "configure"
12296 #include "confdefs.h"
12297 $ac_includes_default
12298 #include <aalib.h>
12299 _ACEOF
12300 rm -f conftest.$ac_objext
12301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12302   (eval $ac_compile) 2>&5
12303   ac_status=$?
12304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305   (exit $ac_status); } &&
12306          { ac_try='test -s conftest.$ac_objext'
12307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308   (eval $ac_try) 2>&5
12309   ac_status=$?
12310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311   (exit $ac_status); }; }; then
12312   ac_header_compiler=yes
12313 else
12314   echo "$as_me: failed program was:" >&5
12315 cat conftest.$ac_ext >&5
12316 ac_header_compiler=no
12317 fi
12318 rm -f conftest.$ac_objext conftest.$ac_ext
12319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12320 echo "${ECHO_T}$ac_header_compiler" >&6
12321
12322 # Is the header present?
12323 echo "$as_me:$LINENO: checking aalib.h presence" >&5
12324 echo $ECHO_N "checking aalib.h presence... $ECHO_C" >&6
12325 cat >conftest.$ac_ext <<_ACEOF
12326 #line $LINENO "configure"
12327 #include "confdefs.h"
12328 #include <aalib.h>
12329 _ACEOF
12330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12331   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12332   ac_status=$?
12333   egrep -v '^ *\+' conftest.er1 >conftest.err
12334   rm -f conftest.er1
12335   cat conftest.err >&5
12336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337   (exit $ac_status); } >/dev/null; then
12338   if test -s conftest.err; then
12339     ac_cpp_err=$ac_c_preproc_warn_flag
12340   else
12341     ac_cpp_err=
12342   fi
12343 else
12344   ac_cpp_err=yes
12345 fi
12346 if test -z "$ac_cpp_err"; then
12347   ac_header_preproc=yes
12348 else
12349   echo "$as_me: failed program was:" >&5
12350   cat conftest.$ac_ext >&5
12351   ac_header_preproc=no
12352 fi
12353 rm -f conftest.err conftest.$ac_ext
12354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12355 echo "${ECHO_T}$ac_header_preproc" >&6
12356
12357 # So?  What about this header?
12358 case $ac_header_compiler:$ac_header_preproc in
12359   yes:no )
12360     { echo "$as_me:$LINENO: WARNING: aalib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12361 echo "$as_me: WARNING: aalib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12362     { echo "$as_me:$LINENO: WARNING: aalib.h: proceeding with the preprocessor's result" >&5
12363 echo "$as_me: WARNING: aalib.h: proceeding with the preprocessor's result" >&2;};;
12364   no:yes )
12365     { echo "$as_me:$LINENO: WARNING: aalib.h: present but cannot be compiled" >&5
12366 echo "$as_me: WARNING: aalib.h: present but cannot be compiled" >&2;}
12367     { echo "$as_me:$LINENO: WARNING: aalib.h: check for missing prerequisite headers?" >&5
12368 echo "$as_me: WARNING: aalib.h: check for missing prerequisite headers?" >&2;}
12369     { echo "$as_me:$LINENO: WARNING: aalib.h: proceeding with the preprocessor's result" >&5
12370 echo "$as_me: WARNING: aalib.h: proceeding with the preprocessor's result" >&2;};;
12371 esac
12372 echo "$as_me:$LINENO: checking for aalib.h" >&5
12373 echo $ECHO_N "checking for aalib.h... $ECHO_C" >&6
12374 if test "${ac_cv_header_aalib_h+set}" = set; then
12375   echo $ECHO_N "(cached) $ECHO_C" >&6
12376 else
12377   ac_cv_header_aalib_h=$ac_header_preproc
12378 fi
12379 echo "$as_me:$LINENO: result: $ac_cv_header_aalib_h" >&5
12380 echo "${ECHO_T}$ac_cv_header_aalib_h" >&6
12381
12382 fi
12383 if test $ac_cv_header_aalib_h = yes; then
12384   have_aa="true"
12385 else
12386   have_aa="false"
12387 fi
12388
12389
12390   if test x$have_aa = xtrue
12391   then
12392     PLUGINS="${PLUGINS} aa"
12393     aa_LDFLAGS="${aa_LDFLAGS} -laa"
12394   fi
12395 fi
12396
12397
12398
12399 # Check whether --with- or --without- was given.
12400 if test "${with_+set}" = set; then
12401   withval="$with_"
12402
12403 fi;
12404
12405 # Check whether --enable-dsp or --disable-dsp was given.
12406 if test "${enable_dsp+set}" = set; then
12407   enableval="$enable_dsp"
12408
12409 fi;
12410
12411 if test x$enable_dsp != xno &&
12412   (test x$SYS != xmingw32 || test x$enable_dsp = xyes)
12413 then
12414
12415
12416
12417 for ac_header in soundcard.h sys/soundcard.h machine/soundcard.h
12418 do
12419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12421   echo "$as_me:$LINENO: checking for $ac_header" >&5
12422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12424   echo $ECHO_N "(cached) $ECHO_C" >&6
12425 fi
12426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12428 else
12429   # Is the header compilable?
12430 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12432 cat >conftest.$ac_ext <<_ACEOF
12433 #line $LINENO "configure"
12434 #include "confdefs.h"
12435 $ac_includes_default
12436 #include <$ac_header>
12437 _ACEOF
12438 rm -f conftest.$ac_objext
12439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12440   (eval $ac_compile) 2>&5
12441   ac_status=$?
12442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443   (exit $ac_status); } &&
12444          { ac_try='test -s conftest.$ac_objext'
12445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446   (eval $ac_try) 2>&5
12447   ac_status=$?
12448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449   (exit $ac_status); }; }; then
12450   ac_header_compiler=yes
12451 else
12452   echo "$as_me: failed program was:" >&5
12453 cat conftest.$ac_ext >&5
12454 ac_header_compiler=no
12455 fi
12456 rm -f conftest.$ac_objext conftest.$ac_ext
12457 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12458 echo "${ECHO_T}$ac_header_compiler" >&6
12459
12460 # Is the header present?
12461 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12463 cat >conftest.$ac_ext <<_ACEOF
12464 #line $LINENO "configure"
12465 #include "confdefs.h"
12466 #include <$ac_header>
12467 _ACEOF
12468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12469   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12470   ac_status=$?
12471   egrep -v '^ *\+' conftest.er1 >conftest.err
12472   rm -f conftest.er1
12473   cat conftest.err >&5
12474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475   (exit $ac_status); } >/dev/null; then
12476   if test -s conftest.err; then
12477     ac_cpp_err=$ac_c_preproc_warn_flag
12478   else
12479     ac_cpp_err=
12480   fi
12481 else
12482   ac_cpp_err=yes
12483 fi
12484 if test -z "$ac_cpp_err"; then
12485   ac_header_preproc=yes
12486 else
12487   echo "$as_me: failed program was:" >&5
12488   cat conftest.$ac_ext >&5
12489   ac_header_preproc=no
12490 fi
12491 rm -f conftest.err conftest.$ac_ext
12492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12493 echo "${ECHO_T}$ac_header_preproc" >&6
12494
12495 # So?  What about this header?
12496 case $ac_header_compiler:$ac_header_preproc in
12497   yes:no )
12498     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12500     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12502   no:yes )
12503     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12505     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12506 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12507     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12509 esac
12510 echo "$as_me:$LINENO: checking for $ac_header" >&5
12511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12513   echo $ECHO_N "(cached) $ECHO_C" >&6
12514 else
12515   eval "$as_ac_Header=$ac_header_preproc"
12516 fi
12517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12519
12520 fi
12521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12522   cat >>confdefs.h <<_ACEOF
12523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12524 _ACEOF
12525
12526     PLUGINS="${PLUGINS} dsp"
12527     echo "$as_me:$LINENO: checking for main in -lossaudio" >&5
12528 echo $ECHO_N "checking for main in -lossaudio... $ECHO_C" >&6
12529 if test "${ac_cv_lib_ossaudio_main+set}" = set; then
12530   echo $ECHO_N "(cached) $ECHO_C" >&6
12531 else
12532   ac_check_lib_save_LIBS=$LIBS
12533 LIBS="-lossaudio  $LIBS"
12534 cat >conftest.$ac_ext <<_ACEOF
12535 #line $LINENO "configure"
12536 #include "confdefs.h"
12537
12538
12539 #ifdef F77_DUMMY_MAIN
12540 #  ifdef __cplusplus
12541      extern "C"
12542 #  endif
12543    int F77_DUMMY_MAIN() { return 1; }
12544 #endif
12545 int
12546 main ()
12547 {
12548 main ();
12549   ;
12550   return 0;
12551 }
12552 _ACEOF
12553 rm -f conftest.$ac_objext conftest$ac_exeext
12554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12555   (eval $ac_link) 2>&5
12556   ac_status=$?
12557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558   (exit $ac_status); } &&
12559          { ac_try='test -s conftest$ac_exeext'
12560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561   (eval $ac_try) 2>&5
12562   ac_status=$?
12563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564   (exit $ac_status); }; }; then
12565   ac_cv_lib_ossaudio_main=yes
12566 else
12567   echo "$as_me: failed program was:" >&5
12568 cat conftest.$ac_ext >&5
12569 ac_cv_lib_ossaudio_main=no
12570 fi
12571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12572 LIBS=$ac_check_lib_save_LIBS
12573 fi
12574 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_main" >&5
12575 echo "${ECHO_T}$ac_cv_lib_ossaudio_main" >&6
12576 if test $ac_cv_lib_ossaudio_main = yes; then
12577   dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio"
12578 fi
12579
12580
12581 fi
12582
12583 done
12584
12585 fi
12586
12587 # Check whether --enable-esd or --disable-esd was given.
12588 if test "${enable_esd+set}" = set; then
12589   enableval="$enable_esd"
12590   if test x$enable_esd = xyes
12591    then
12592      # Extract the first word of "esd-config", so it can be a program name with args.
12593 set dummy esd-config; ac_word=$2
12594 echo "$as_me:$LINENO: checking for $ac_word" >&5
12595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12596 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
12597   echo $ECHO_N "(cached) $ECHO_C" >&6
12598 else
12599   case $ESD_CONFIG in
12600   [\\/]* | ?:[\\/]*)
12601   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
12602   ;;
12603   *)
12604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12605 for as_dir in $PATH
12606 do
12607   IFS=$as_save_IFS
12608   test -z "$as_dir" && as_dir=.
12609   for ac_exec_ext in '' $ac_executable_extensions; do
12610   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12611     ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12613     break 2
12614   fi
12615 done
12616 done
12617
12618   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
12619   ;;
12620 esac
12621 fi
12622 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
12623
12624 if test -n "$ESD_CONFIG"; then
12625   echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
12626 echo "${ECHO_T}$ESD_CONFIG" >&6
12627 else
12628   echo "$as_me:$LINENO: result: no" >&5
12629 echo "${ECHO_T}no" >&6
12630 fi
12631
12632      if test x${ESD_CONFIG} != xno
12633      then
12634        PLUGINS="${PLUGINS} esd"
12635        esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
12636        esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
12637      fi
12638    fi
12639 fi;
12640
12641 # Check whether --enable-arts or --disable-arts was given.
12642 if test "${enable_arts+set}" = set; then
12643   enableval="$enable_arts"
12644   if test x$enable_arts = xyes
12645    then
12646      # Extract the first word of "artsc-config", so it can be a program name with args.
12647 set dummy artsc-config; ac_word=$2
12648 echo "$as_me:$LINENO: checking for $ac_word" >&5
12649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12650 if test "${ac_cv_path_ARTS_CONFIG+set}" = set; then
12651   echo $ECHO_N "(cached) $ECHO_C" >&6
12652 else
12653   case $ARTS_CONFIG in
12654   [\\/]* | ?:[\\/]*)
12655   ac_cv_path_ARTS_CONFIG="$ARTS_CONFIG" # Let the user override the test with a path.
12656   ;;
12657   *)
12658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12659 for as_dir in $PATH
12660 do
12661   IFS=$as_save_IFS
12662   test -z "$as_dir" && as_dir=.
12663   for ac_exec_ext in '' $ac_executable_extensions; do
12664   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12665     ac_cv_path_ARTS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12667     break 2
12668   fi
12669 done
12670 done
12671
12672   test -z "$ac_cv_path_ARTS_CONFIG" && ac_cv_path_ARTS_CONFIG="no"
12673   ;;
12674 esac
12675 fi
12676 ARTS_CONFIG=$ac_cv_path_ARTS_CONFIG
12677
12678 if test -n "$ARTS_CONFIG"; then
12679   echo "$as_me:$LINENO: result: $ARTS_CONFIG" >&5
12680 echo "${ECHO_T}$ARTS_CONFIG" >&6
12681 else
12682   echo "$as_me:$LINENO: result: no" >&5
12683 echo "${ECHO_T}no" >&6
12684 fi
12685
12686      if test x${ARTS_CONFIG} != xno
12687      then
12688        PLUGINS="${PLUGINS} arts"
12689        arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
12690        arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
12691      fi
12692    fi
12693 fi;
12694
12695 # Check whether --enable-alsa or --disable-alsa was given.
12696 if test "${enable_alsa+set}" = set; then
12697   enableval="$enable_alsa"
12698   if test x$enable_alsa = xyes
12699    then
12700      if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
12701   echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
12702 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
12703 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
12704   echo $ECHO_N "(cached) $ECHO_C" >&6
12705 fi
12706 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
12707 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
12708 else
12709   # Is the header compilable?
12710 echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
12711 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6
12712 cat >conftest.$ac_ext <<_ACEOF
12713 #line $LINENO "configure"
12714 #include "confdefs.h"
12715 $ac_includes_default
12716 #include <alsa/asoundlib.h>
12717 _ACEOF
12718 rm -f conftest.$ac_objext
12719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12720   (eval $ac_compile) 2>&5
12721   ac_status=$?
12722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723   (exit $ac_status); } &&
12724          { ac_try='test -s conftest.$ac_objext'
12725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12726   (eval $ac_try) 2>&5
12727   ac_status=$?
12728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729   (exit $ac_status); }; }; then
12730   ac_header_compiler=yes
12731 else
12732   echo "$as_me: failed program was:" >&5
12733 cat conftest.$ac_ext >&5
12734 ac_header_compiler=no
12735 fi
12736 rm -f conftest.$ac_objext conftest.$ac_ext
12737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12738 echo "${ECHO_T}$ac_header_compiler" >&6
12739
12740 # Is the header present?
12741 echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
12742 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6
12743 cat >conftest.$ac_ext <<_ACEOF
12744 #line $LINENO "configure"
12745 #include "confdefs.h"
12746 #include <alsa/asoundlib.h>
12747 _ACEOF
12748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12749   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12750   ac_status=$?
12751   egrep -v '^ *\+' conftest.er1 >conftest.err
12752   rm -f conftest.er1
12753   cat conftest.err >&5
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); } >/dev/null; then
12756   if test -s conftest.err; then
12757     ac_cpp_err=$ac_c_preproc_warn_flag
12758   else
12759     ac_cpp_err=
12760   fi
12761 else
12762   ac_cpp_err=yes
12763 fi
12764 if test -z "$ac_cpp_err"; then
12765   ac_header_preproc=yes
12766 else
12767   echo "$as_me: failed program was:" >&5
12768   cat conftest.$ac_ext >&5
12769   ac_header_preproc=no
12770 fi
12771 rm -f conftest.err conftest.$ac_ext
12772 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12773 echo "${ECHO_T}$ac_header_preproc" >&6
12774
12775 # So?  What about this header?
12776 case $ac_header_compiler:$ac_header_preproc in
12777   yes:no )
12778     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12779 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12780     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
12781 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;};;
12782   no:yes )
12783     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
12784 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
12785     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
12786 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
12787     { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
12788 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;};;
12789 esac
12790 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
12791 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
12792 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
12793   echo $ECHO_N "(cached) $ECHO_C" >&6
12794 else
12795   ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
12796 fi
12797 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
12798 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
12799
12800 fi
12801 if test $ac_cv_header_alsa_asoundlib_h = yes; then
12802   echo "$as_me:$LINENO: checking for main in -lasound" >&5
12803 echo $ECHO_N "checking for main in -lasound... $ECHO_C" >&6
12804 if test "${ac_cv_lib_asound_main+set}" = set; then
12805   echo $ECHO_N "(cached) $ECHO_C" >&6
12806 else
12807   ac_check_lib_save_LIBS=$LIBS
12808 LIBS="-lasound  $LIBS"
12809 cat >conftest.$ac_ext <<_ACEOF
12810 #line $LINENO "configure"
12811 #include "confdefs.h"
12812
12813
12814 #ifdef F77_DUMMY_MAIN
12815 #  ifdef __cplusplus
12816      extern "C"
12817 #  endif
12818    int F77_DUMMY_MAIN() { return 1; }
12819 #endif
12820 int
12821 main ()
12822 {
12823 main ();
12824   ;
12825   return 0;
12826 }
12827 _ACEOF
12828 rm -f conftest.$ac_objext conftest$ac_exeext
12829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12830   (eval $ac_link) 2>&5
12831   ac_status=$?
12832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833   (exit $ac_status); } &&
12834          { ac_try='test -s conftest$ac_exeext'
12835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836   (eval $ac_try) 2>&5
12837   ac_status=$?
12838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839   (exit $ac_status); }; }; then
12840   ac_cv_lib_asound_main=yes
12841 else
12842   echo "$as_me: failed program was:" >&5
12843 cat conftest.$ac_ext >&5
12844 ac_cv_lib_asound_main=no
12845 fi
12846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12847 LIBS=$ac_check_lib_save_LIBS
12848 fi
12849 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_main" >&5
12850 echo "${ECHO_T}$ac_cv_lib_asound_main" >&6
12851 if test $ac_cv_lib_asound_main = yes; then
12852   have_alsa="true"
12853 else
12854   have_alsa="false"
12855 fi
12856
12857 else
12858   have_alsa="false"
12859 fi
12860
12861
12862      if test x$have_alsa = xtrue
12863      then
12864        PLUGINS="${PLUGINS} alsa"
12865        alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
12866      fi
12867    fi
12868 fi;
12869
12870 # Check whether --enable-waveout or --disable-waveout was given.
12871 if test "${enable_waveout+set}" = set; then
12872   enableval="$enable_waveout"
12873
12874 fi;
12875 if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
12876   then
12877     PLUGINS="${PLUGINS} waveout"
12878     waveout_LDFLAGS="-lwinmm"
12879 fi
12880
12881
12882
12883 # Check whether --with- or --without- was given.
12884 if test "${with_+set}" = set; then
12885   withval="$with_"
12886
12887 fi;
12888
12889 # Check whether --enable-gtk or --disable-gtk was given.
12890 if test "${enable_gtk+set}" = set; then
12891   enableval="$enable_gtk"
12892
12893 fi;
12894 if test x$enable_gtk != xno
12895 then
12896   GTK_PATH=$PATH
12897
12898 # Check whether --with-gtk-config-path or --without-gtk-config-path was given.
12899 if test "${with_gtk_config_path+set}" = set; then
12900   withval="$with_gtk_config_path"
12901    if test "x$with_gtk_config_path" != "xno"
12902       then
12903         GTK_PATH="$with_gtk_config_path:$PATH"
12904       fi
12905 fi;
12906   # look for gtk-config
12907   # Extract the first word of "gtk12-config", so it can be a program name with args.
12908 set dummy gtk12-config; ac_word=$2
12909 echo "$as_me:$LINENO: checking for $ac_word" >&5
12910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12911 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
12912   echo $ECHO_N "(cached) $ECHO_C" >&6
12913 else
12914   case $GTK12_CONFIG in
12915   [\\/]* | ?:[\\/]*)
12916   ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
12917   ;;
12918   *)
12919   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12920 for as_dir in $GTK_PATH
12921 do
12922   IFS=$as_save_IFS
12923   test -z "$as_dir" && as_dir=.
12924   for ac_exec_ext in '' $ac_executable_extensions; do
12925   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12926     ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12928     break 2
12929   fi
12930 done
12931 done
12932
12933   test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
12934   ;;
12935 esac
12936 fi
12937 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
12938
12939 if test -n "$GTK12_CONFIG"; then
12940   echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
12941 echo "${ECHO_T}$GTK12_CONFIG" >&6
12942 else
12943   echo "$as_me:$LINENO: result: no" >&5
12944 echo "${ECHO_T}no" >&6
12945 fi
12946
12947   GTK_CONFIG=${GTK12_CONFIG}
12948   if test x${GTK_CONFIG} = xno
12949   then
12950     # Extract the first word of "gtk-config", so it can be a program name with args.
12951 set dummy gtk-config; ac_word=$2
12952 echo "$as_me:$LINENO: checking for $ac_word" >&5
12953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12954 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
12955   echo $ECHO_N "(cached) $ECHO_C" >&6
12956 else
12957   case $GTK_CONFIG in
12958   [\\/]* | ?:[\\/]*)
12959   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12960   ;;
12961   *)
12962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963 for as_dir in $GTK_PATH
12964 do
12965   IFS=$as_save_IFS
12966   test -z "$as_dir" && as_dir=.
12967   for ac_exec_ext in '' $ac_executable_extensions; do
12968   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12969     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12971     break 2
12972   fi
12973 done
12974 done
12975
12976   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12977   ;;
12978 esac
12979 fi
12980 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
12981
12982 if test -n "$GTK_CONFIG"; then
12983   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
12984 echo "${ECHO_T}$GTK_CONFIG" >&6
12985 else
12986   echo "$as_me:$LINENO: result: no" >&5
12987 echo "${ECHO_T}no" >&6
12988 fi
12989
12990   fi
12991   if test x${GTK_CONFIG} != xno
12992   then
12993     if expr 1.2.0 \> `$GTK_CONFIG --version` >/dev/null
12994     then
12995       { { echo "$as_me:$LINENO: 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
12996 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;}
12997    { (exit 1); exit 1; }; }
12998     fi
12999     gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
13000     gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
13001     # now look for the gtk.h header
13002     CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
13003     ac_cv_gtk_headers=yes
13004
13005
13006
13007 for ac_header in gtk/gtk.h glib.h gdk/gdk.h
13008 do
13009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13011   echo "$as_me:$LINENO: checking for $ac_header" >&5
13012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13014   echo $ECHO_N "(cached) $ECHO_C" >&6
13015 fi
13016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13018 else
13019   # Is the header compilable?
13020 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13022 cat >conftest.$ac_ext <<_ACEOF
13023 #line $LINENO "configure"
13024 #include "confdefs.h"
13025 $ac_includes_default
13026 #include <$ac_header>
13027 _ACEOF
13028 rm -f conftest.$ac_objext
13029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13030   (eval $ac_compile) 2>&5
13031   ac_status=$?
13032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033   (exit $ac_status); } &&
13034          { ac_try='test -s conftest.$ac_objext'
13035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13036   (eval $ac_try) 2>&5
13037   ac_status=$?
13038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039   (exit $ac_status); }; }; then
13040   ac_header_compiler=yes
13041 else
13042   echo "$as_me: failed program was:" >&5
13043 cat conftest.$ac_ext >&5
13044 ac_header_compiler=no
13045 fi
13046 rm -f conftest.$ac_objext conftest.$ac_ext
13047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13048 echo "${ECHO_T}$ac_header_compiler" >&6
13049
13050 # Is the header present?
13051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13053 cat >conftest.$ac_ext <<_ACEOF
13054 #line $LINENO "configure"
13055 #include "confdefs.h"
13056 #include <$ac_header>
13057 _ACEOF
13058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13059   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13060   ac_status=$?
13061   egrep -v '^ *\+' conftest.er1 >conftest.err
13062   rm -f conftest.er1
13063   cat conftest.err >&5
13064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065   (exit $ac_status); } >/dev/null; then
13066   if test -s conftest.err; then
13067     ac_cpp_err=$ac_c_preproc_warn_flag
13068   else
13069     ac_cpp_err=
13070   fi
13071 else
13072   ac_cpp_err=yes
13073 fi
13074 if test -z "$ac_cpp_err"; then
13075   ac_header_preproc=yes
13076 else
13077   echo "$as_me: failed program was:" >&5
13078   cat conftest.$ac_ext >&5
13079   ac_header_preproc=no
13080 fi
13081 rm -f conftest.err conftest.$ac_ext
13082 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13083 echo "${ECHO_T}$ac_header_preproc" >&6
13084
13085 # So?  What about this header?
13086 case $ac_header_compiler:$ac_header_preproc in
13087   yes:no )
13088     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13090     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13092   no:yes )
13093     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13095     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13096 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13097     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13099 esac
13100 echo "$as_me:$LINENO: checking for $ac_header" >&5
13101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13103   echo $ECHO_N "(cached) $ECHO_C" >&6
13104 else
13105   eval "$as_ac_Header=$ac_header_preproc"
13106 fi
13107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13109
13110 fi
13111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13112   cat >>confdefs.h <<_ACEOF
13113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13114 _ACEOF
13115
13116 else
13117
13118       ac_cv_gtk_headers=no
13119       echo "Cannot find gtk development headers."
13120
13121 fi
13122
13123 done
13124
13125     if test "x$ac_cv_gtk_headers" = xyes
13126     then
13127       PLUGINS="${PLUGINS} gtk"
13128       ALIASES="${ALIASES} gvlc"
13129     fi
13130     CPPFLAGS="$save_CPPFLAGS"
13131   fi
13132 fi
13133
13134 # Check whether --enable-gnome or --disable-gnome was given.
13135 if test "${enable_gnome+set}" = set; then
13136   enableval="$enable_gnome"
13137   if test x$enable_gnome = xyes; then
13138     # look for gnome-config
13139     # Extract the first word of "gnome-config", so it can be a program name with args.
13140 set dummy gnome-config; ac_word=$2
13141 echo "$as_me:$LINENO: checking for $ac_word" >&5
13142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13143 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
13144   echo $ECHO_N "(cached) $ECHO_C" >&6
13145 else
13146   case $GNOME_CONFIG in
13147   [\\/]* | ?:[\\/]*)
13148   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
13149   ;;
13150   *)
13151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13152 for as_dir in $PATH
13153 do
13154   IFS=$as_save_IFS
13155   test -z "$as_dir" && as_dir=.
13156   for ac_exec_ext in '' $ac_executable_extensions; do
13157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13158     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13160     break 2
13161   fi
13162 done
13163 done
13164
13165   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
13166   ;;
13167 esac
13168 fi
13169 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
13170
13171 if test -n "$GNOME_CONFIG"; then
13172   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
13173 echo "${ECHO_T}$GNOME_CONFIG" >&6
13174 else
13175   echo "$as_me:$LINENO: result: no" >&5
13176 echo "${ECHO_T}no" >&6
13177 fi
13178
13179     if test -x ${GNOME_CONFIG}
13180     then
13181        gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
13182        gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
13183     fi
13184     # now look for the gnome.h header
13185     CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
13186
13187 for ac_header in gnome.h
13188 do
13189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13191   echo "$as_me:$LINENO: checking for $ac_header" >&5
13192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13194   echo $ECHO_N "(cached) $ECHO_C" >&6
13195 fi
13196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13198 else
13199   # Is the header compilable?
13200 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13202 cat >conftest.$ac_ext <<_ACEOF
13203 #line $LINENO "configure"
13204 #include "confdefs.h"
13205 $ac_includes_default
13206 #include <$ac_header>
13207 _ACEOF
13208 rm -f conftest.$ac_objext
13209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13210   (eval $ac_compile) 2>&5
13211   ac_status=$?
13212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213   (exit $ac_status); } &&
13214          { ac_try='test -s conftest.$ac_objext'
13215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216   (eval $ac_try) 2>&5
13217   ac_status=$?
13218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219   (exit $ac_status); }; }; then
13220   ac_header_compiler=yes
13221 else
13222   echo "$as_me: failed program was:" >&5
13223 cat conftest.$ac_ext >&5
13224 ac_header_compiler=no
13225 fi
13226 rm -f conftest.$ac_objext conftest.$ac_ext
13227 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13228 echo "${ECHO_T}$ac_header_compiler" >&6
13229
13230 # Is the header present?
13231 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13233 cat >conftest.$ac_ext <<_ACEOF
13234 #line $LINENO "configure"
13235 #include "confdefs.h"
13236 #include <$ac_header>
13237 _ACEOF
13238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13239   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13240   ac_status=$?
13241   egrep -v '^ *\+' conftest.er1 >conftest.err
13242   rm -f conftest.er1
13243   cat conftest.err >&5
13244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245   (exit $ac_status); } >/dev/null; then
13246   if test -s conftest.err; then
13247     ac_cpp_err=$ac_c_preproc_warn_flag
13248   else
13249     ac_cpp_err=
13250   fi
13251 else
13252   ac_cpp_err=yes
13253 fi
13254 if test -z "$ac_cpp_err"; then
13255   ac_header_preproc=yes
13256 else
13257   echo "$as_me: failed program was:" >&5
13258   cat conftest.$ac_ext >&5
13259   ac_header_preproc=no
13260 fi
13261 rm -f conftest.err conftest.$ac_ext
13262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13263 echo "${ECHO_T}$ac_header_preproc" >&6
13264
13265 # So?  What about this header?
13266 case $ac_header_compiler:$ac_header_preproc in
13267   yes:no )
13268     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13272   no:yes )
13273     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13275     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13277     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13278 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13279 esac
13280 echo "$as_me:$LINENO: checking for $ac_header" >&5
13281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13283   echo $ECHO_N "(cached) $ECHO_C" >&6
13284 else
13285   eval "$as_ac_Header=$ac_header_preproc"
13286 fi
13287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13288 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13289
13290 fi
13291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13292   cat >>confdefs.h <<_ACEOF
13293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13294 _ACEOF
13295
13296       PLUGINS="${PLUGINS} gnome"
13297       ALIASES="${ALIASES} gnome-vlc"
13298
13299 else
13300
13301       { { echo "$as_me:$LINENO: error: Can't find gnome headers. Please install the gnome
13302 developement tools or remove the --enable-gnome option" >&5
13303 echo "$as_me: error: Can't find gnome headers. Please install the gnome
13304 developement tools or remove the --enable-gnome option" >&2;}
13305    { (exit 1); exit 1; }; }
13306
13307 fi
13308
13309 done
13310
13311     CPPFLAGS="$save_CPPFLAGS"
13312   fi
13313 fi;
13314
13315 # Check whether --enable-qt or --disable-qt was given.
13316 if test "${enable_qt+set}" = set; then
13317   enableval="$enable_qt"
13318   if test x$enable_qt = xyes; then
13319      PLUGINS="${PLUGINS} qt"
13320      ALIASES="${ALIASES} qvlc"
13321      qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
13322      qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
13323      if test -x ${QTDIR}/bin/moc
13324      then
13325        MOC=${QTDIR}/bin/moc
13326      else
13327        MOC=moc
13328      fi
13329    fi
13330 fi;
13331
13332 # Check whether --enable-kde or --disable-kde was given.
13333 if test "${enable_kde+set}" = set; then
13334   enableval="$enable_kde"
13335   if test x$enable_kde = xyes; then
13336      PLUGINS="${PLUGINS} kde"
13337      ALIASES="${ALIASES} kvlc"
13338      kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
13339      kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
13340      kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
13341      if test -x ${QTDIR}/bin/moc
13342      then
13343        MOC=${QTDIR}/bin/moc
13344      else
13345        MOC=moc
13346      fi
13347    fi
13348 fi;
13349
13350 # Check whether --enable-macosx or --disable-macosx was given.
13351 if test "${enable_macosx+set}" = set; then
13352   enableval="$enable_macosx"
13353   if test x$enable_macosx = xyes
13354    then
13355      BUILTINS="${BUILTINS} macosx"
13356      macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
13357    fi
13358 else
13359
13360 for ac_header in Cocoa/Cocoa.h
13361 do
13362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13364   echo "$as_me:$LINENO: checking for $ac_header" >&5
13365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13367   echo $ECHO_N "(cached) $ECHO_C" >&6
13368 fi
13369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13371 else
13372   # Is the header compilable?
13373 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13375 cat >conftest.$ac_ext <<_ACEOF
13376 #line $LINENO "configure"
13377 #include "confdefs.h"
13378 $ac_includes_default
13379 #include <$ac_header>
13380 _ACEOF
13381 rm -f conftest.$ac_objext
13382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13383   (eval $ac_compile) 2>&5
13384   ac_status=$?
13385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386   (exit $ac_status); } &&
13387          { ac_try='test -s conftest.$ac_objext'
13388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389   (eval $ac_try) 2>&5
13390   ac_status=$?
13391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392   (exit $ac_status); }; }; then
13393   ac_header_compiler=yes
13394 else
13395   echo "$as_me: failed program was:" >&5
13396 cat conftest.$ac_ext >&5
13397 ac_header_compiler=no
13398 fi
13399 rm -f conftest.$ac_objext conftest.$ac_ext
13400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13401 echo "${ECHO_T}$ac_header_compiler" >&6
13402
13403 # Is the header present?
13404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13406 cat >conftest.$ac_ext <<_ACEOF
13407 #line $LINENO "configure"
13408 #include "confdefs.h"
13409 #include <$ac_header>
13410 _ACEOF
13411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13412   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13413   ac_status=$?
13414   egrep -v '^ *\+' conftest.er1 >conftest.err
13415   rm -f conftest.er1
13416   cat conftest.err >&5
13417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418   (exit $ac_status); } >/dev/null; then
13419   if test -s conftest.err; then
13420     ac_cpp_err=$ac_c_preproc_warn_flag
13421   else
13422     ac_cpp_err=
13423   fi
13424 else
13425   ac_cpp_err=yes
13426 fi
13427 if test -z "$ac_cpp_err"; then
13428   ac_header_preproc=yes
13429 else
13430   echo "$as_me: failed program was:" >&5
13431   cat conftest.$ac_ext >&5
13432   ac_header_preproc=no
13433 fi
13434 rm -f conftest.err conftest.$ac_ext
13435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13436 echo "${ECHO_T}$ac_header_preproc" >&6
13437
13438 # So?  What about this header?
13439 case $ac_header_compiler:$ac_header_preproc in
13440   yes:no )
13441     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13443     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13445   no:yes )
13446     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13448     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13449 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13452 esac
13453 echo "$as_me:$LINENO: checking for $ac_header" >&5
13454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13456   echo $ECHO_N "(cached) $ECHO_C" >&6
13457 else
13458   eval "$as_ac_Header=$ac_header_preproc"
13459 fi
13460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13462
13463 fi
13464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13465   cat >>confdefs.h <<_ACEOF
13466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13467 _ACEOF
13468  BUILTINS="${BUILTINS} macosx"
13469      macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework IOKit -framework Cocoa -framework AGL -framework QuickTime -lobjc -ObjC"
13470
13471 fi
13472
13473 done
13474
13475 fi;
13476
13477 # Check whether --enable-qnx or --disable-qnx was given.
13478 if test "${enable_qnx+set}" = set; then
13479   enableval="$enable_qnx"
13480
13481 fi;
13482     if test x$enable_qnx != xno
13483     then
13484
13485 for ac_header in Ph.h
13486 do
13487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13489   echo "$as_me:$LINENO: checking for $ac_header" >&5
13490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13492   echo $ECHO_N "(cached) $ECHO_C" >&6
13493 fi
13494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13496 else
13497   # Is the header compilable?
13498 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13500 cat >conftest.$ac_ext <<_ACEOF
13501 #line $LINENO "configure"
13502 #include "confdefs.h"
13503 $ac_includes_default
13504 #include <$ac_header>
13505 _ACEOF
13506 rm -f conftest.$ac_objext
13507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13508   (eval $ac_compile) 2>&5
13509   ac_status=$?
13510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511   (exit $ac_status); } &&
13512          { ac_try='test -s conftest.$ac_objext'
13513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514   (eval $ac_try) 2>&5
13515   ac_status=$?
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); }; }; then
13518   ac_header_compiler=yes
13519 else
13520   echo "$as_me: failed program was:" >&5
13521 cat conftest.$ac_ext >&5
13522 ac_header_compiler=no
13523 fi
13524 rm -f conftest.$ac_objext conftest.$ac_ext
13525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13526 echo "${ECHO_T}$ac_header_compiler" >&6
13527
13528 # Is the header present?
13529 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13531 cat >conftest.$ac_ext <<_ACEOF
13532 #line $LINENO "configure"
13533 #include "confdefs.h"
13534 #include <$ac_header>
13535 _ACEOF
13536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13537   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13538   ac_status=$?
13539   egrep -v '^ *\+' conftest.er1 >conftest.err
13540   rm -f conftest.er1
13541   cat conftest.err >&5
13542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543   (exit $ac_status); } >/dev/null; then
13544   if test -s conftest.err; then
13545     ac_cpp_err=$ac_c_preproc_warn_flag
13546   else
13547     ac_cpp_err=
13548   fi
13549 else
13550   ac_cpp_err=yes
13551 fi
13552 if test -z "$ac_cpp_err"; then
13553   ac_header_preproc=yes
13554 else
13555   echo "$as_me: failed program was:" >&5
13556   cat conftest.$ac_ext >&5
13557   ac_header_preproc=no
13558 fi
13559 rm -f conftest.err conftest.$ac_ext
13560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13561 echo "${ECHO_T}$ac_header_preproc" >&6
13562
13563 # So?  What about this header?
13564 case $ac_header_compiler:$ac_header_preproc in
13565   yes:no )
13566     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13568     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13570   no:yes )
13571     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13573     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13575     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13577 esac
13578 echo "$as_me:$LINENO: checking for $ac_header" >&5
13579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13581   echo $ECHO_N "(cached) $ECHO_C" >&6
13582 else
13583   eval "$as_ac_Header=$ac_header_preproc"
13584 fi
13585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13587
13588 fi
13589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13590   cat >>confdefs.h <<_ACEOF
13591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13592 _ACEOF
13593
13594         PLUGINS="${PLUGINS} qnx"
13595         qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
13596
13597 fi
13598
13599 done
13600
13601     fi
13602
13603 # Check whether --enable-intfwin or --disable-intfwin was given.
13604 if test "${enable_intfwin+set}" = set; then
13605   enableval="$enable_intfwin"
13606    if test "x$enable_intfwin" != "xno"
13607   then
13608
13609 # Check whether --with-bcbuilder or --without-bcbuilder was given.
13610 if test "${with_bcbuilder+set}" = set; then
13611   withval="$with_bcbuilder"
13612
13613 fi;
13614     if test "x$with_bcbuilder" != "x"
13615     then
13616       BCBUILDER="$with_bcbuilder"
13617     fi
13618     PLUGINS="${PLUGINS} intfwin"
13619   fi
13620 fi;
13621
13622 # Check whether --enable-ncurses or --disable-ncurses was given.
13623 if test "${enable_ncurses+set}" = set; then
13624   enableval="$enable_ncurses"
13625   if test x$enable_ncurses = xyes; then
13626      PLUGINS="${PLUGINS} ncurses"
13627      ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
13628    fi
13629 fi;
13630
13631 # Check whether --enable-lirc or --disable-lirc was given.
13632 if test "${enable_lirc+set}" = set; then
13633   enableval="$enable_lirc"
13634
13635 fi;
13636 if test x$enable_lirc = xyes
13637 then
13638   if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
13639   echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
13640 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6
13641 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
13642   echo $ECHO_N "(cached) $ECHO_C" >&6
13643 fi
13644 echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
13645 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6
13646 else
13647   # Is the header compilable?
13648 echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
13649 echo $ECHO_N "checking lirc/lirc_client.h usability... $ECHO_C" >&6
13650 cat >conftest.$ac_ext <<_ACEOF
13651 #line $LINENO "configure"
13652 #include "confdefs.h"
13653 $ac_includes_default
13654 #include <lirc/lirc_client.h>
13655 _ACEOF
13656 rm -f conftest.$ac_objext
13657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13658   (eval $ac_compile) 2>&5
13659   ac_status=$?
13660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661   (exit $ac_status); } &&
13662          { ac_try='test -s conftest.$ac_objext'
13663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13664   (eval $ac_try) 2>&5
13665   ac_status=$?
13666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667   (exit $ac_status); }; }; then
13668   ac_header_compiler=yes
13669 else
13670   echo "$as_me: failed program was:" >&5
13671 cat conftest.$ac_ext >&5
13672 ac_header_compiler=no
13673 fi
13674 rm -f conftest.$ac_objext conftest.$ac_ext
13675 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13676 echo "${ECHO_T}$ac_header_compiler" >&6
13677
13678 # Is the header present?
13679 echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
13680 echo $ECHO_N "checking lirc/lirc_client.h presence... $ECHO_C" >&6
13681 cat >conftest.$ac_ext <<_ACEOF
13682 #line $LINENO "configure"
13683 #include "confdefs.h"
13684 #include <lirc/lirc_client.h>
13685 _ACEOF
13686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13687   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13688   ac_status=$?
13689   egrep -v '^ *\+' conftest.er1 >conftest.err
13690   rm -f conftest.er1
13691   cat conftest.err >&5
13692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693   (exit $ac_status); } >/dev/null; then
13694   if test -s conftest.err; then
13695     ac_cpp_err=$ac_c_preproc_warn_flag
13696   else
13697     ac_cpp_err=
13698   fi
13699 else
13700   ac_cpp_err=yes
13701 fi
13702 if test -z "$ac_cpp_err"; then
13703   ac_header_preproc=yes
13704 else
13705   echo "$as_me: failed program was:" >&5
13706   cat conftest.$ac_ext >&5
13707   ac_header_preproc=no
13708 fi
13709 rm -f conftest.err conftest.$ac_ext
13710 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13711 echo "${ECHO_T}$ac_header_preproc" >&6
13712
13713 # So?  What about this header?
13714 case $ac_header_compiler:$ac_header_preproc in
13715   yes:no )
13716     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
13717 echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13718     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
13719 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;};;
13720   no:yes )
13721     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
13722 echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
13723     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&5
13724 echo "$as_me: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&2;}
13725     { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
13726 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;};;
13727 esac
13728 echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
13729 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6
13730 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
13731   echo $ECHO_N "(cached) $ECHO_C" >&6
13732 else
13733   ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
13734 fi
13735 echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
13736 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6
13737
13738 fi
13739 if test $ac_cv_header_lirc_lirc_client_h = yes; then
13740   echo "$as_me:$LINENO: checking for lirc_init in -llirc_client" >&5
13741 echo $ECHO_N "checking for lirc_init in -llirc_client... $ECHO_C" >&6
13742 if test "${ac_cv_lib_lirc_client_lirc_init+set}" = set; then
13743   echo $ECHO_N "(cached) $ECHO_C" >&6
13744 else
13745   ac_check_lib_save_LIBS=$LIBS
13746 LIBS="-llirc_client  $LIBS"
13747 cat >conftest.$ac_ext <<_ACEOF
13748 #line $LINENO "configure"
13749 #include "confdefs.h"
13750
13751 /* Override any gcc2 internal prototype to avoid an error.  */
13752 #ifdef __cplusplus
13753 extern "C"
13754 #endif
13755 /* We use char because int might match the return type of a gcc2
13756    builtin and then its argument prototype would still apply.  */
13757 char lirc_init ();
13758 #ifdef F77_DUMMY_MAIN
13759 #  ifdef __cplusplus
13760      extern "C"
13761 #  endif
13762    int F77_DUMMY_MAIN() { return 1; }
13763 #endif
13764 int
13765 main ()
13766 {
13767 lirc_init ();
13768   ;
13769   return 0;
13770 }
13771 _ACEOF
13772 rm -f conftest.$ac_objext conftest$ac_exeext
13773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13774   (eval $ac_link) 2>&5
13775   ac_status=$?
13776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777   (exit $ac_status); } &&
13778          { ac_try='test -s conftest$ac_exeext'
13779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780   (eval $ac_try) 2>&5
13781   ac_status=$?
13782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   (exit $ac_status); }; }; then
13784   ac_cv_lib_lirc_client_lirc_init=yes
13785 else
13786   echo "$as_me: failed program was:" >&5
13787 cat conftest.$ac_ext >&5
13788 ac_cv_lib_lirc_client_lirc_init=no
13789 fi
13790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13791 LIBS=$ac_check_lib_save_LIBS
13792 fi
13793 echo "$as_me:$LINENO: result: $ac_cv_lib_lirc_client_lirc_init" >&5
13794 echo "${ECHO_T}$ac_cv_lib_lirc_client_lirc_init" >&6
13795 if test $ac_cv_lib_lirc_client_lirc_init = yes; then
13796   have_lirc="true"
13797 else
13798   have_lirc="false"
13799 fi
13800
13801 else
13802   have_lirc="false"
13803 fi
13804
13805
13806   if test x$have_lirc = xtrue
13807   then
13808     PLUGINS="${PLUGINS} lirc"
13809     lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
13810   fi
13811 fi
13812
13813
13814 # Check whether --with- or --without- was given.
13815 if test "${with_+set}" = set; then
13816   withval="$with_"
13817
13818 fi;
13819
13820
13821 # Check whether --with-words or --without-words was given.
13822 if test "${with_words+set}" = set; then
13823   withval="$with_words"
13824
13825 fi;
13826   case "x$with_words" in
13827     xbig)
13828       ac_cv_c_bigendian=yes
13829       ;;
13830     xlittle)
13831       ac_cv_c_bigendian=no
13832       ;;
13833     *)
13834                   echo "$as_me:$LINENO: checking whether the byte order is big-endian" >&5
13835 echo $ECHO_N "checking whether the byte order is big-endian... $ECHO_C" >&6
13836 if test "${ac_cv_c_bigendian+set}" = set; then
13837   echo $ECHO_N "(cached) $ECHO_C" >&6
13838 else
13839   ac_cv_c_bigendian=unknown
13840         cat >conftest.c <<EOF
13841         short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
13842         short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
13843         void _a(void) { char*s = (char*)am; s = (char *)ai; }
13844         short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
13845         short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
13846         void _e(void) { char*s = (char*)em; s = (char*)ei; }
13847         int main(void) { _a(); _e(); return 0; }
13848 EOF
13849
13850         if test -f conftest.c
13851         then
13852           if ${CC-cc} -c conftest.c -o conftest.o >config.log 2>&1 \
13853               && test -f conftest.o
13854           then
13855             if test "`strings conftest.o | grep BIGenDianSyS`"
13856             then
13857               ac_cv_c_bigendian=yes
13858             fi
13859             if test "`strings conftest.o | grep LiTTleEnDian`"
13860             then
13861               ac_cv_c_bigendian=no
13862             fi
13863           fi
13864         fi
13865
13866 fi
13867 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13868 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13869       if test x$ac_cv_c_bigendian = xunknown
13870       then
13871         { { echo "$as_me:$LINENO: error: Could not guess endianness, please use --with-words" >&5
13872 echo "$as_me: error: Could not guess endianness, please use --with-words" >&2;}
13873    { (exit 1); exit 1; }; }
13874       fi
13875       ;;
13876   esac
13877 if test $ac_cv_c_bigendian = yes
13878 then
13879
13880 cat >>confdefs.h <<\_ACEOF
13881 #define WORDS_BIGENDIAN 1
13882 _ACEOF
13883
13884 fi
13885
13886 GPROF=0
13887 # Check whether --enable-gprof or --disable-gprof was given.
13888 if test "${enable_gprof+set}" = set; then
13889   enableval="$enable_gprof"
13890    if test "x$enable_gprof" = "xyes"; then GPROF=1; fi
13891 fi;
13892
13893 CPROF=0
13894 # Check whether --enable-cprof or --disable-cprof was given.
13895 if test "${enable_cprof+set}" = set; then
13896   enableval="$enable_cprof"
13897    if test "x$enable_cprof" = "xyes";
13898   then
13899     LDFLAGS="${LDFLAGS} -lcprof"
13900     CPROF=1
13901   fi
13902
13903 fi;
13904
13905 # Check whether --enable-pth or --disable-pth was given.
13906 if test "${enable_pth+set}" = set; then
13907   enableval="$enable_pth"
13908    if test "x$enable_pth" = "xyes"; then
13909
13910 echo "$as_me:$LINENO: checking for pth_init in -lpth" >&5
13911 echo $ECHO_N "checking for pth_init in -lpth... $ECHO_C" >&6
13912 if test "${ac_cv_lib_pth_pth_init+set}" = set; then
13913   echo $ECHO_N "(cached) $ECHO_C" >&6
13914 else
13915   ac_check_lib_save_LIBS=$LIBS
13916 LIBS="-lpth  $LIBS"
13917 cat >conftest.$ac_ext <<_ACEOF
13918 #line $LINENO "configure"
13919 #include "confdefs.h"
13920
13921 /* Override any gcc2 internal prototype to avoid an error.  */
13922 #ifdef __cplusplus
13923 extern "C"
13924 #endif
13925 /* We use char because int might match the return type of a gcc2
13926    builtin and then its argument prototype would still apply.  */
13927 char pth_init ();
13928 #ifdef F77_DUMMY_MAIN
13929 #  ifdef __cplusplus
13930      extern "C"
13931 #  endif
13932    int F77_DUMMY_MAIN() { return 1; }
13933 #endif
13934 int
13935 main ()
13936 {
13937 pth_init ();
13938   ;
13939   return 0;
13940 }
13941 _ACEOF
13942 rm -f conftest.$ac_objext conftest$ac_exeext
13943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13944   (eval $ac_link) 2>&5
13945   ac_status=$?
13946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947   (exit $ac_status); } &&
13948          { ac_try='test -s conftest$ac_exeext'
13949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950   (eval $ac_try) 2>&5
13951   ac_status=$?
13952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953   (exit $ac_status); }; }; then
13954   ac_cv_lib_pth_pth_init=yes
13955 else
13956   echo "$as_me: failed program was:" >&5
13957 cat conftest.$ac_ext >&5
13958 ac_cv_lib_pth_pth_init=no
13959 fi
13960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13961 LIBS=$ac_check_lib_save_LIBS
13962 fi
13963 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_init" >&5
13964 echo "${ECHO_T}$ac_cv_lib_pth_pth_init" >&6
13965 if test $ac_cv_lib_pth_pth_init = yes; then
13966   cat >>confdefs.h <<_ACEOF
13967 #define HAVE_LIBPTH 1
13968 _ACEOF
13969
13970   LIBS="-lpth $LIBS"
13971
13972 fi
13973
13974     cat >conftest.$ac_ext <<_ACEOF
13975 #line $LINENO "configure"
13976 #include "confdefs.h"
13977 #include <pth.h>
13978
13979 _ACEOF
13980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13981   egrep "pth_init" >/dev/null 2>&1; then
13982
13983
13984 cat >>confdefs.h <<\_ACEOF
13985 #define PTH_INIT_IN_PTH_H 1
13986 _ACEOF
13987
13988     THREAD_LIB="-lpth"
13989     fi
13990 fi
13991 rm -f conftest*
13992
13993
13994 fi;
13995
13996 # Check whether --enable-st or --disable-st was given.
13997 if test "${enable_st+set}" = set; then
13998   enableval="$enable_st"
13999    if test "x$enable_st" = "xyes"; then
14000
14001 echo "$as_me:$LINENO: checking for st_init in -lst" >&5
14002 echo $ECHO_N "checking for st_init in -lst... $ECHO_C" >&6
14003 if test "${ac_cv_lib_st_st_init+set}" = set; then
14004   echo $ECHO_N "(cached) $ECHO_C" >&6
14005 else
14006   ac_check_lib_save_LIBS=$LIBS
14007 LIBS="-lst  $LIBS"
14008 cat >conftest.$ac_ext <<_ACEOF
14009 #line $LINENO "configure"
14010 #include "confdefs.h"
14011
14012 /* Override any gcc2 internal prototype to avoid an error.  */
14013 #ifdef __cplusplus
14014 extern "C"
14015 #endif
14016 /* We use char because int might match the return type of a gcc2
14017    builtin and then its argument prototype would still apply.  */
14018 char st_init ();
14019 #ifdef F77_DUMMY_MAIN
14020 #  ifdef __cplusplus
14021      extern "C"
14022 #  endif
14023    int F77_DUMMY_MAIN() { return 1; }
14024 #endif
14025 int
14026 main ()
14027 {
14028 st_init ();
14029   ;
14030   return 0;
14031 }
14032 _ACEOF
14033 rm -f conftest.$ac_objext conftest$ac_exeext
14034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14035   (eval $ac_link) 2>&5
14036   ac_status=$?
14037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038   (exit $ac_status); } &&
14039          { ac_try='test -s conftest$ac_exeext'
14040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041   (eval $ac_try) 2>&5
14042   ac_status=$?
14043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044   (exit $ac_status); }; }; then
14045   ac_cv_lib_st_st_init=yes
14046 else
14047   echo "$as_me: failed program was:" >&5
14048 cat conftest.$ac_ext >&5
14049 ac_cv_lib_st_st_init=no
14050 fi
14051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14052 LIBS=$ac_check_lib_save_LIBS
14053 fi
14054 echo "$as_me:$LINENO: result: $ac_cv_lib_st_st_init" >&5
14055 echo "${ECHO_T}$ac_cv_lib_st_st_init" >&6
14056 if test $ac_cv_lib_st_st_init = yes; then
14057   cat >>confdefs.h <<_ACEOF
14058 #define HAVE_LIBST 1
14059 _ACEOF
14060
14061   LIBS="-lst $LIBS"
14062
14063 fi
14064
14065     cat >conftest.$ac_ext <<_ACEOF
14066 #line $LINENO "configure"
14067 #include "confdefs.h"
14068 #include <st.h>
14069
14070 _ACEOF
14071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14072   egrep "st_init" >/dev/null 2>&1; then
14073
14074
14075 cat >>confdefs.h <<\_ACEOF
14076 #define ST_INIT_IN_ST_H 1
14077 _ACEOF
14078
14079     THREAD_LIB="-lst"
14080     fi
14081 fi
14082 rm -f conftest*
14083
14084
14085 fi;
14086
14087 LDFLAGS="${LDFLAGS} ${THREAD_LIB}"
14088
14089 # Check whether --enable-plugins or --disable-plugins was given.
14090 if test "${enable_plugins+set}" = set; then
14091   enableval="$enable_plugins"
14092   if test x$enable_plugins = xno
14093    then
14094      BUILTINS="${BUILTINS} ${PLUGINS}"
14095      PLUGINS=
14096    fi
14097 fi;
14098
14099 if test x$ac_cv_header_dlfcn_h = xno -a x$ac_cv_header_image_h = xno -a x$SYS != xmingw32
14100 then
14101   echo "*** Your system doesn't have plug-in support. All plug-ins will be compiled"
14102   echo "as built-in"
14103   BUILTINS="${BUILTINS} ${PLUGINS}"
14104   PLUGINS=
14105 fi
14106
14107
14108 cat >>confdefs.h <<_ACEOF
14109 #define VERSION_MESSAGE "vlc $VERSION $CODENAME Copyright 1996-2002 VideoLAN"
14110 _ACEOF
14111
14112
14113 cat >>confdefs.h <<_ACEOF
14114 #define COPYRIGHT_MESSAGE "VideoLAN Client - version $VERSION $CODENAME - (c) 1996-2002 VideoLAN"
14115 _ACEOF
14116
14117
14118 VLC_SYMBOL="`echo ${VERSION} | tr .- __`"
14119
14120 cat >>confdefs.h <<_ACEOF
14121 #define MODULE_SUFFIX "__MODULE_$VLC_SYMBOL"
14122 _ACEOF
14123
14124
14125 cat >>confdefs.h <<_ACEOF
14126 #define MODULE_SYMBOL $VLC_SYMBOL
14127 _ACEOF
14128
14129
14130 DATA_PATH="${ac_tool_prefix}/share/videolan"
14131
14132 PLUGIN_PATH="${ac_tool_prefix}/share/videolan"
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228 ac_config_files="$ac_config_files Makefile.opts po/Makefile.in"
14229 cat >confcache <<\_ACEOF
14230 # This file is a shell script that caches the results of configure
14231 # tests run on this system so they can be shared between configure
14232 # scripts and configure runs, see configure's option --config-cache.
14233 # It is not useful on other systems.  If it contains results you don't
14234 # want to keep, you may remove or edit it.
14235 #
14236 # config.status only pays attention to the cache file if you give it
14237 # the --recheck option to rerun configure.
14238 #
14239 # `ac_cv_env_foo' variables (set or unset) will be overriden when
14240 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14241 # following values.
14242
14243 _ACEOF
14244
14245 # The following way of writing the cache mishandles newlines in values,
14246 # but we know of no workaround that is simple, portable, and efficient.
14247 # So, don't put newlines in cache variables' values.
14248 # Ultrix sh set writes to stderr and can't be redirected directly,
14249 # and sets the high bit in the cache file unless we assign to the vars.
14250 {
14251   (set) 2>&1 |
14252     case `(ac_space=' '; set | grep ac_space) 2>&1` in
14253     *ac_space=\ *)
14254       # `set' does not quote correctly, so add quotes (double-quote
14255       # substitution turns \\\\ into \\, and sed turns \\ into \).
14256       sed -n \
14257         "s/'/'\\\\''/g;
14258           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14259       ;;
14260     *)
14261       # `set' quotes correctly as required by POSIX, so do not add quotes.
14262       sed -n \
14263         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14264       ;;
14265     esac;
14266 } |
14267   sed '
14268      t clear
14269      : clear
14270      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14271      t end
14272      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14273      : end' >>confcache
14274 if cmp -s $cache_file confcache; then :; else
14275   if test -w $cache_file; then
14276     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14277     cat confcache >$cache_file
14278   else
14279     echo "not updating unwritable cache $cache_file"
14280   fi
14281 fi
14282 rm -f confcache
14283
14284 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14285 # Let make expand exec_prefix.
14286 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14287
14288 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14289 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14290 # trailing colons and then remove the whole line if VPATH becomes empty
14291 # (actually we leave an empty line to preserve line numbers).
14292 if test "x$srcdir" = x.; then
14293   ac_vpsub='/^[         ]*VPATH[        ]*=/{
14294 s/:*\$(srcdir):*/:/;
14295 s/:*\${srcdir}:*/:/;
14296 s/:*@srcdir@:*/:/;
14297 s/^\([^=]*=[    ]*\):*/\1/;
14298 s/:*$//;
14299 s/^[^=]*=[      ]*$//;
14300 }'
14301 fi
14302
14303 DEFS=-DHAVE_CONFIG_H
14304
14305
14306 : ${CONFIG_STATUS=./config.status}
14307 ac_clean_files_save=$ac_clean_files
14308 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14309 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14310 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14311 cat >$CONFIG_STATUS <<_ACEOF
14312 #! $SHELL
14313 # Generated by $as_me.
14314 # Run this file to recreate the current configuration.
14315 # Compiler output produced by configure, useful for debugging
14316 # configure, is in config.log if it exists.
14317
14318 debug=false
14319 SHELL=\${CONFIG_SHELL-$SHELL}
14320 _ACEOF
14321
14322 cat >>$CONFIG_STATUS <<\_ACEOF
14323
14324 ## --------------------- ##
14325 ## M4sh Initialization.  ##
14326 ## --------------------- ##
14327
14328 # Be Bourne compatible
14329 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14330   emulate sh
14331   NULLCMD=:
14332 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14333   set -o posix
14334 fi
14335
14336 # NLS nuisances.
14337 # Support unset when possible.
14338 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
14339   as_unset=unset
14340 else
14341   as_unset=false
14342 fi
14343
14344 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
14345     { $as_unset LANG || test "${LANG+set}" != set; } ||
14346       { LANG=C; export LANG; }
14347 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
14348     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
14349       { LC_ALL=C; export LC_ALL; }
14350 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
14351     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
14352       { LC_TIME=C; export LC_TIME; }
14353 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
14354     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
14355       { LC_CTYPE=C; export LC_CTYPE; }
14356 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
14357     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
14358       { LANGUAGE=C; export LANGUAGE; }
14359 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
14360     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
14361       { LC_COLLATE=C; export LC_COLLATE; }
14362 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
14363     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
14364       { LC_NUMERIC=C; export LC_NUMERIC; }
14365 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
14366     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
14367       { LC_MESSAGES=C; export LC_MESSAGES; }
14368
14369
14370 # Name of the executable.
14371 as_me=`(basename "$0") 2>/dev/null ||
14372 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14373          X"$0" : 'X\(//\)$' \| \
14374          X"$0" : 'X\(/\)$' \| \
14375          .     : '\(.\)' 2>/dev/null ||
14376 echo X/"$0" |
14377     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14378           /^X\/\(\/\/\)$/{ s//\1/; q; }
14379           /^X\/\(\/\).*/{ s//\1/; q; }
14380           s/.*/./; q'`
14381
14382 # PATH needs CR, and LINENO needs CR and PATH.
14383 # Avoid depending upon Character Ranges.
14384 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14385 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14386 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14387 as_cr_digits='0123456789'
14388 as_cr_alnum=$as_cr_Letters$as_cr_digits
14389
14390 # The user is always right.
14391 if test "${PATH_SEPARATOR+set}" != set; then
14392   echo "#! /bin/sh" >conftest.sh
14393   echo  "exit 0"   >>conftest.sh
14394   chmod +x conftest.sh
14395   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
14396     PATH_SEPARATOR=';'
14397   else
14398     PATH_SEPARATOR=:
14399   fi
14400   rm -f conftest.sh
14401 fi
14402
14403
14404   as_lineno_1=$LINENO
14405   as_lineno_2=$LINENO
14406   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14407   test "x$as_lineno_1" != "x$as_lineno_2" &&
14408   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
14409   # Find who we are.  Look in the path if we contain no path at all
14410   # relative or not.
14411   case $0 in
14412     *[\\/]* ) as_myself=$0 ;;
14413     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14414 for as_dir in $PATH
14415 do
14416   IFS=$as_save_IFS
14417   test -z "$as_dir" && as_dir=.
14418   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14419 done
14420
14421        ;;
14422   esac
14423   # We did not find ourselves, most probably we were run as `sh COMMAND'
14424   # in which case we are not to be found in the path.
14425   if test "x$as_myself" = x; then
14426     as_myself=$0
14427   fi
14428   if test ! -f "$as_myself"; then
14429     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14430 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14431    { (exit 1); exit 1; }; }
14432   fi
14433   case $CONFIG_SHELL in
14434   '')
14435     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14436 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14437 do
14438   IFS=$as_save_IFS
14439   test -z "$as_dir" && as_dir=.
14440   for as_base in sh bash ksh sh5; do
14441          case $as_dir in
14442          /*)
14443            if ("$as_dir/$as_base" -c '
14444   as_lineno_1=$LINENO
14445   as_lineno_2=$LINENO
14446   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14447   test "x$as_lineno_1" != "x$as_lineno_2" &&
14448   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
14449              CONFIG_SHELL=$as_dir/$as_base
14450              export CONFIG_SHELL
14451              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14452            fi;;
14453          esac
14454        done
14455 done
14456 ;;
14457   esac
14458
14459   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14460   # uniformly replaced by the line number.  The first 'sed' inserts a
14461   # line-number line before each line; the second 'sed' does the real
14462   # work.  The second script uses 'N' to pair each line-number line
14463   # with the numbered line, and appends trailing '-' during
14464   # substitution so that $LINENO is not a special case at line end.
14465   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14466   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
14467   sed '=' <$as_myself |
14468     sed '
14469       N
14470       s,$,-,
14471       : loop
14472       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14473       t loop
14474       s,-$,,
14475       s,^['$as_cr_digits']*\n,,
14476     ' >$as_me.lineno &&
14477   chmod +x $as_me.lineno ||
14478     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14479 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14480    { (exit 1); exit 1; }; }
14481
14482   # Don't try to exec as it changes $[0], causing all sort of problems
14483   # (the dirname of $[0] is not the place where we might find the
14484   # original and so on.  Autoconf is especially sensible to this).
14485   . ./$as_me.lineno
14486   # Exit status is that of the last command.
14487   exit
14488 }
14489
14490
14491 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14492   *c*,-n*) ECHO_N= ECHO_C='
14493 ' ECHO_T='      ' ;;
14494   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14495   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
14496 esac
14497
14498 if expr a : '\(a\)' >/dev/null 2>&1; then
14499   as_expr=expr
14500 else
14501   as_expr=false
14502 fi
14503
14504 rm -f conf$$ conf$$.exe conf$$.file
14505 echo >conf$$.file
14506 if ln -s conf$$.file conf$$ 2>/dev/null; then
14507   # We could just check for DJGPP; but this test a) works b) is more generic
14508   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14509   if test -f conf$$.exe; then
14510     # Don't use ln at all; we don't have any links
14511     as_ln_s='cp -p'
14512   else
14513     as_ln_s='ln -s'
14514   fi
14515 elif ln conf$$.file conf$$ 2>/dev/null; then
14516   as_ln_s=ln
14517 else
14518   as_ln_s='cp -p'
14519 fi
14520 rm -f conf$$ conf$$.exe conf$$.file
14521
14522 as_executable_p="test -f"
14523
14524 # Sed expression to map a string onto a valid CPP name.
14525 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
14526
14527 # Sed expression to map a string onto a valid variable name.
14528 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
14529
14530
14531 # IFS
14532 # We need space, tab and new line, in precisely that order.
14533 as_nl='
14534 '
14535 IFS="   $as_nl"
14536
14537 # CDPATH.
14538 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
14539
14540 exec 6>&1
14541
14542 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14543 # report actual input values of CONFIG_FILES etc. instead of their
14544 # values after options handling.  Logging --version etc. is OK.
14545 exec 5>>config.log
14546 {
14547   echo
14548   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14549 ## Running $as_me. ##
14550 _ASBOX
14551 } >&5
14552 cat >&5 <<_CSEOF
14553
14554 This file was extended by $as_me, which was
14555 generated by GNU Autoconf 2.53.  Invocation command line was
14556
14557   CONFIG_FILES    = $CONFIG_FILES
14558   CONFIG_HEADERS  = $CONFIG_HEADERS
14559   CONFIG_LINKS    = $CONFIG_LINKS
14560   CONFIG_COMMANDS = $CONFIG_COMMANDS
14561   $ $0 $@
14562
14563 _CSEOF
14564 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14565 echo >&5
14566 _ACEOF
14567
14568 # Files that config.status was made for.
14569 if test -n "$ac_config_files"; then
14570   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14571 fi
14572
14573 if test -n "$ac_config_headers"; then
14574   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14575 fi
14576
14577 if test -n "$ac_config_links"; then
14578   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14579 fi
14580
14581 if test -n "$ac_config_commands"; then
14582   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14583 fi
14584
14585 cat >>$CONFIG_STATUS <<\_ACEOF
14586
14587 ac_cs_usage="\
14588 \`$as_me' instantiates files from templates according to the
14589 current configuration.
14590
14591 Usage: $0 [OPTIONS] [FILE]...
14592
14593   -h, --help       print this help, then exit
14594   -V, --version    print version number, then exit
14595   -d, --debug      don't remove temporary files
14596       --recheck    update $as_me by reconfiguring in the same conditions
14597   --file=FILE[:TEMPLATE]
14598                    instantiate the configuration file FILE
14599   --header=FILE[:TEMPLATE]
14600                    instantiate the configuration header FILE
14601
14602 Configuration files:
14603 $config_files
14604
14605 Configuration headers:
14606 $config_headers
14607
14608 Configuration commands:
14609 $config_commands
14610
14611 Report bugs to <bug-autoconf@gnu.org>."
14612 _ACEOF
14613
14614 cat >>$CONFIG_STATUS <<_ACEOF
14615 ac_cs_version="\\
14616 config.status
14617 configured by $0, generated by GNU Autoconf 2.53,
14618   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14619
14620 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14621 Free Software Foundation, Inc.
14622 This config.status script is free software; the Free Software Foundation
14623 gives unlimited permission to copy, distribute and modify it."
14624 srcdir=$srcdir
14625 INSTALL="$INSTALL"
14626 _ACEOF
14627
14628 cat >>$CONFIG_STATUS <<\_ACEOF
14629 # If no file are specified by the user, then we need to provide default
14630 # value.  By we need to know if files were specified by the user.
14631 ac_need_defaults=:
14632 while test $# != 0
14633 do
14634   case $1 in
14635   --*=*)
14636     ac_option=`expr "x$1" : 'x\([^=]*\)='`
14637     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14638     shift
14639     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
14640     shift
14641     ;;
14642   -*);;
14643   *) # This is not an option, so the user has probably given explicit
14644      # arguments.
14645      ac_need_defaults=false;;
14646   esac
14647
14648   case $1 in
14649   # Handling of the options.
14650 _ACEOF
14651 cat >>$CONFIG_STATUS <<_ACEOF
14652   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14653     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
14654     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
14655 _ACEOF
14656 cat >>$CONFIG_STATUS <<\_ACEOF
14657   --version | --vers* | -V )
14658     echo "$ac_cs_version"; exit 0 ;;
14659   --he | --h)
14660     # Conflict between --help and --header
14661     { { echo "$as_me:$LINENO: error: ambiguous option: $1
14662 Try \`$0 --help' for more information." >&5
14663 echo "$as_me: error: ambiguous option: $1
14664 Try \`$0 --help' for more information." >&2;}
14665    { (exit 1); exit 1; }; };;
14666   --help | --hel | -h )
14667     echo "$ac_cs_usage"; exit 0 ;;
14668   --debug | --d* | -d )
14669     debug=: ;;
14670   --file | --fil | --fi | --f )
14671     shift
14672     CONFIG_FILES="$CONFIG_FILES $1"
14673     ac_need_defaults=false;;
14674   --header | --heade | --head | --hea )
14675     shift
14676     CONFIG_HEADERS="$CONFIG_HEADERS $1"
14677     ac_need_defaults=false;;
14678
14679   # This is an error.
14680   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14681 Try \`$0 --help' for more information." >&5
14682 echo "$as_me: error: unrecognized option: $1
14683 Try \`$0 --help' for more information." >&2;}
14684    { (exit 1); exit 1; }; } ;;
14685
14686   *) ac_config_targets="$ac_config_targets $1" ;;
14687
14688   esac
14689   shift
14690 done
14691
14692 _ACEOF
14693
14694 cat >>$CONFIG_STATUS <<_ACEOF
14695 #
14696 # INIT-COMMANDS section.
14697 #
14698
14699
14700
14701 _ACEOF
14702
14703
14704
14705 cat >>$CONFIG_STATUS <<\_ACEOF
14706 for ac_config_target in $ac_config_targets
14707 do
14708   case "$ac_config_target" in
14709   # Handling of arguments.
14710   "Makefile.opts" ) CONFIG_FILES="$CONFIG_FILES Makefile.opts" ;;
14711   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14712   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14713   "include/defs.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/defs.h" ;;
14714   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14715 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14716    { (exit 1); exit 1; }; };;
14717   esac
14718 done
14719
14720 # If the user did not use the arguments to specify the items to instantiate,
14721 # then the envvar interface is used.  Set only those that are not.
14722 # We use the long form for the default assignment because of an extremely
14723 # bizarre bug on SunOS 4.1.3.
14724 if $ac_need_defaults; then
14725   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14726   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14727   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14728 fi
14729
14730 # Create a temporary directory, and hook for its removal unless debugging.
14731 $debug ||
14732 {
14733   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14734   trap '{ (exit 1); exit 1; }' 1 2 13 15
14735 }
14736
14737 # Create a (secure) tmp directory for tmp files.
14738 : ${TMPDIR=/tmp}
14739 {
14740   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14741   test -n "$tmp" && test -d "$tmp"
14742 }  ||
14743 {
14744   tmp=$TMPDIR/cs$$-$RANDOM
14745   (umask 077 && mkdir $tmp)
14746 } ||
14747 {
14748    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14749    { (exit 1); exit 1; }
14750 }
14751
14752 _ACEOF
14753
14754 cat >>$CONFIG_STATUS <<_ACEOF
14755
14756 #
14757 # CONFIG_FILES section.
14758 #
14759
14760 # No need to generate the scripts if there are no CONFIG_FILES.
14761 # This happens for instance when ./config.status config.h
14762 if test -n "\$CONFIG_FILES"; then
14763   # Protect against being on the right side of a sed subst in config.status.
14764   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14765    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14766 s,@SHELL@,$SHELL,;t t
14767 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14768 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14769 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14770 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14771 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14772 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14773 s,@exec_prefix@,$exec_prefix,;t t
14774 s,@prefix@,$prefix,;t t
14775 s,@program_transform_name@,$program_transform_name,;t t
14776 s,@bindir@,$bindir,;t t
14777 s,@sbindir@,$sbindir,;t t
14778 s,@libexecdir@,$libexecdir,;t t
14779 s,@datadir@,$datadir,;t t
14780 s,@sysconfdir@,$sysconfdir,;t t
14781 s,@sharedstatedir@,$sharedstatedir,;t t
14782 s,@localstatedir@,$localstatedir,;t t
14783 s,@libdir@,$libdir,;t t
14784 s,@includedir@,$includedir,;t t
14785 s,@oldincludedir@,$oldincludedir,;t t
14786 s,@infodir@,$infodir,;t t
14787 s,@mandir@,$mandir,;t t
14788 s,@build_alias@,$build_alias,;t t
14789 s,@host_alias@,$host_alias,;t t
14790 s,@target_alias@,$target_alias,;t t
14791 s,@DEFS@,$DEFS,;t t
14792 s,@ECHO_C@,$ECHO_C,;t t
14793 s,@ECHO_N@,$ECHO_N,;t t
14794 s,@ECHO_T@,$ECHO_T,;t t
14795 s,@LIBS@,$LIBS,;t t
14796 s,@build@,$build,;t t
14797 s,@build_cpu@,$build_cpu,;t t
14798 s,@build_vendor@,$build_vendor,;t t
14799 s,@build_os@,$build_os,;t t
14800 s,@host@,$host,;t t
14801 s,@host_cpu@,$host_cpu,;t t
14802 s,@host_vendor@,$host_vendor,;t t
14803 s,@host_os@,$host_os,;t t
14804 s,@target@,$target,;t t
14805 s,@target_cpu@,$target_cpu,;t t
14806 s,@target_vendor@,$target_vendor,;t t
14807 s,@target_os@,$target_os,;t t
14808 s,@SET_MAKE@,$SET_MAKE,;t t
14809 s,@CC@,$CC,;t t
14810 s,@CFLAGS@,$CFLAGS,;t t
14811 s,@LDFLAGS@,$LDFLAGS,;t t
14812 s,@CPPFLAGS@,$CPPFLAGS,;t t
14813 s,@ac_ct_CC@,$ac_ct_CC,;t t
14814 s,@EXEEXT@,$EXEEXT,;t t
14815 s,@OBJEXT@,$OBJEXT,;t t
14816 s,@CPP@,$CPP,;t t
14817 s,@RANLIB@,$RANLIB,;t t
14818 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14819 s,@STRIP@,$STRIP,;t t
14820 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14821 s,@GMAKE@,$GMAKE,;t t
14822 s,@ALLOCA@,$ALLOCA,;t t
14823 s,@GLIBC21@,$GLIBC21,;t t
14824 s,@LIBICONV@,$LIBICONV,;t t
14825 s,@USE_NLS@,$USE_NLS,;t t
14826 s,@MSGFMT@,$MSGFMT,;t t
14827 s,@GMSGFMT@,$GMSGFMT,;t t
14828 s,@XGETTEXT@,$XGETTEXT,;t t
14829 s,@INTLBISON@,$INTLBISON,;t t
14830 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
14831 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
14832 s,@CATALOGS@,$CATALOGS,;t t
14833 s,@CATOBJEXT@,$CATOBJEXT,;t t
14834 s,@GMOFILES@,$GMOFILES,;t t
14835 s,@INTLLIBS@,$INTLLIBS,;t t
14836 s,@INTLOBJS@,$INTLOBJS,;t t
14837 s,@POFILES@,$POFILES,;t t
14838 s,@POSUB@,$POSUB,;t t
14839 s,@DATADIRNAME@,$DATADIRNAME,;t t
14840 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
14841 s,@GENCAT@,$GENCAT,;t t
14842 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14843 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
14844 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14845 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14846 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14847 s,@WINDRES@,$WINDRES,;t t
14848 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
14849 s,@SDL12_CONFIG@,$SDL12_CONFIG,;t t
14850 s,@SDL11_CONFIG@,$SDL11_CONFIG,;t t
14851 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
14852 s,@ESD_CONFIG@,$ESD_CONFIG,;t t
14853 s,@ARTS_CONFIG@,$ARTS_CONFIG,;t t
14854 s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
14855 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
14856 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
14857 s,@DATA_PATH@,$DATA_PATH,;t t
14858 s,@PLUGIN_PATH@,$PLUGIN_PATH,;t t
14859 s,@SYS@,$SYS,;t t
14860 s,@ARCH@,$ARCH,;t t
14861 s,@PLUGINS@,$PLUGINS,;t t
14862 s,@BUILTINS@,$BUILTINS,;t t
14863 s,@ALIASES@,$ALIASES,;t t
14864 s,@DEBUG@,$DEBUG,;t t
14865 s,@ASM@,$ASM,;t t
14866 s,@CPROF@,$CPROF,;t t
14867 s,@GPROF@,$GPROF,;t t
14868 s,@OPTIMS@,$OPTIMS,;t t
14869 s,@TUNING@,$TUNING,;t t
14870 s,@RELEASE@,$RELEASE,;t t
14871 s,@MOC@,$MOC,;t t
14872 s,@BCBUILDER@,$BCBUILDER,;t t
14873 s,@PACKAGE@,$PACKAGE,;t t
14874 s,@VERSION@,$VERSION,;t t
14875 s,@NEED_GETOPT@,$NEED_GETOPT,;t t
14876 s,@CFLAGS_OPTIM@,$CFLAGS_OPTIM,;t t
14877 s,@CFLAGS_OPTIM_NODEBUG@,$CFLAGS_OPTIM_NODEBUG,;t t
14878 s,@vlc_CFLAGS@,$vlc_CFLAGS,;t t
14879 s,@plugins_CFLAGS@,$plugins_CFLAGS,;t t
14880 s,@builtins_CFLAGS@,$builtins_CFLAGS,;t t
14881 s,@a52_CFLAGS@,$a52_CFLAGS,;t t
14882 s,@arts_CFLAGS@,$arts_CFLAGS,;t t
14883 s,@dvd_CFLAGS@,$dvd_CFLAGS,;t t
14884 s,@dvdread_CFLAGS@,$dvdread_CFLAGS,;t t
14885 s,@mpeg_ts_dvbpsi_CFLAGS@,$mpeg_ts_dvbpsi_CFLAGS,;t t
14886 s,@directx_CFLAGS@,$directx_CFLAGS,;t t
14887 s,@esd_CFLAGS@,$esd_CFLAGS,;t t
14888 s,@ffmpeg_CFLAGS@,$ffmpeg_CFLAGS,;t t
14889 s,@glide_CFLAGS@,$glide_CFLAGS,;t t
14890 s,@gnome_CFLAGS@,$gnome_CFLAGS,;t t
14891 s,@gtk_CFLAGS@,$gtk_CFLAGS,;t t
14892 s,@kde_CFLAGS@,$kde_CFLAGS,;t t
14893 s,@idctaltivec_CFLAGS@,$idctaltivec_CFLAGS,;t t
14894 s,@macosx_CFLAGS@,$macosx_CFLAGS,;t t
14895 s,@mad_CFLAGS@,$mad_CFLAGS,;t t
14896 s,@memcpyaltivec_CFLAGS@,$memcpyaltivec_CFLAGS,;t t
14897 s,@motionaltivec_CFLAGS@,$motionaltivec_CFLAGS,;t t
14898 s,@qt_CFLAGS@,$qt_CFLAGS,;t t
14899 s,@sdl_CFLAGS@,$sdl_CFLAGS,;t t
14900 s,@x11_CFLAGS@,$x11_CFLAGS,;t t
14901 s,@xvideo_CFLAGS@,$xvideo_CFLAGS,;t t
14902 s,@vlc_LDFLAGS@,$vlc_LDFLAGS,;t t
14903 s,@plugins_LDFLAGS@,$plugins_LDFLAGS,;t t
14904 s,@builtins_LDFLAGS@,$builtins_LDFLAGS,;t t
14905 s,@a52_LDFLAGS@,$a52_LDFLAGS,;t t
14906 s,@aa_LDFLAGS@,$aa_LDFLAGS,;t t
14907 s,@alsa_LDFLAGS@,$alsa_LDFLAGS,;t t
14908 s,@arts_LDFLAGS@,$arts_LDFLAGS,;t t
14909 s,@beos_LDFLAGS@,$beos_LDFLAGS,;t t
14910 s,@chroma_i420_rgb_LDFLAGS@,$chroma_i420_rgb_LDFLAGS,;t t
14911 s,@directx_LDFLAGS@,$directx_LDFLAGS,;t t
14912 s,@dsp_LDFLAGS@,$dsp_LDFLAGS,;t t
14913 s,@dvd_LDFLAGS@,$dvd_LDFLAGS,;t t
14914 s,@dvdread_LDFLAGS@,$dvdread_LDFLAGS,;t t
14915 s,@mpeg_ts_dvbpsi_LDFLAGS@,$mpeg_ts_dvbpsi_LDFLAGS,;t t
14916 s,@esd_LDFLAGS@,$esd_LDFLAGS,;t t
14917 s,@filter_distort_LDFLAGS@,$filter_distort_LDFLAGS,;t t
14918 s,@ffmpeg_LDFLAGS@,$ffmpeg_LDFLAGS,;t t
14919 s,@ggi_LDFLAGS@,$ggi_LDFLAGS,;t t
14920 s,@glide_LDFLAGS@,$glide_LDFLAGS,;t t
14921 s,@gnome_LDFLAGS@,$gnome_LDFLAGS,;t t
14922 s,@gtk_LDFLAGS@,$gtk_LDFLAGS,;t t
14923 s,@idctaltivec_LDFLAGS@,$idctaltivec_LDFLAGS,;t t
14924 s,@imdct_LDFLAGS@,$imdct_LDFLAGS,;t t
14925 s,@imdct3dn_LDFLAGS@,$imdct3dn_LDFLAGS,;t t
14926 s,@imdctsse_LDFLAGS@,$imdctsse_LDFLAGS,;t t
14927 s,@ipv4_LDFLAGS@,$ipv4_LDFLAGS,;t t
14928 s,@kde_LDFLAGS@,$kde_LDFLAGS,;t t
14929 s,@lirc_LDFLAGS@,$lirc_LDFLAGS,;t t
14930 s,@macosx_LDFLAGS@,$macosx_LDFLAGS,;t t
14931 s,@mad_LDFLAGS@,$mad_LDFLAGS,;t t
14932 s,@memcpyaltivec_LDFLAGS@,$memcpyaltivec_LDFLAGS,;t t
14933 s,@motionaltivec_LDFLAGS@,$motionaltivec_LDFLAGS,;t t
14934 s,@ncurses_LDFLAGS@,$ncurses_LDFLAGS,;t t
14935 s,@qnx_LDFLAGS@,$qnx_LDFLAGS,;t t
14936 s,@qt_LDFLAGS@,$qt_LDFLAGS,;t t
14937 s,@rc_LDFLAGS@,$rc_LDFLAGS,;t t
14938 s,@sdl_LDFLAGS@,$sdl_LDFLAGS,;t t
14939 s,@vcd_LDFLAGS@,$vcd_LDFLAGS,;t t
14940 s,@vorbis_LDFLAGS@,$vorbis_LDFLAGS,;t t
14941 s,@waveout_LDFLAGS@,$waveout_LDFLAGS,;t t
14942 s,@x11_LDFLAGS@,$x11_LDFLAGS,;t t
14943 s,@xvideo_LDFLAGS@,$xvideo_LDFLAGS,;t t
14944 CEOF
14945
14946 _ACEOF
14947
14948   cat >>$CONFIG_STATUS <<\_ACEOF
14949   # Split the substitutions into bite-sized pieces for seds with
14950   # small command number limits, like on Digital OSF/1 and HP-UX.
14951   ac_max_sed_lines=48
14952   ac_sed_frag=1 # Number of current file.
14953   ac_beg=1 # First line for current file.
14954   ac_end=$ac_max_sed_lines # Line after last line for current file.
14955   ac_more_lines=:
14956   ac_sed_cmds=
14957   while $ac_more_lines; do
14958     if test $ac_beg -gt 1; then
14959       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14960     else
14961       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14962     fi
14963     if test ! -s $tmp/subs.frag; then
14964       ac_more_lines=false
14965     else
14966       # The purpose of the label and of the branching condition is to
14967       # speed up the sed processing (if there are no `@' at all, there
14968       # is no need to browse any of the substitutions).
14969       # These are the two extra sed commands mentioned above.
14970       (echo ':t
14971   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14972       if test -z "$ac_sed_cmds"; then
14973         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14974       else
14975         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14976       fi
14977       ac_sed_frag=`expr $ac_sed_frag + 1`
14978       ac_beg=$ac_end
14979       ac_end=`expr $ac_end + $ac_max_sed_lines`
14980     fi
14981   done
14982   if test -z "$ac_sed_cmds"; then
14983     ac_sed_cmds=cat
14984   fi
14985 fi # test -n "$CONFIG_FILES"
14986
14987 _ACEOF
14988 cat >>$CONFIG_STATUS <<\_ACEOF
14989 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14990   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14991   case $ac_file in
14992   - | *:- | *:-:* ) # input from stdin
14993         cat >$tmp/stdin
14994         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14995         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14996   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14997         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14998   * )   ac_file_in=$ac_file.in ;;
14999   esac
15000
15001   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15002   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15003 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15004          X"$ac_file" : 'X\(//\)[^/]' \| \
15005          X"$ac_file" : 'X\(//\)$' \| \
15006          X"$ac_file" : 'X\(/\)' \| \
15007          .     : '\(.\)' 2>/dev/null ||
15008 echo X"$ac_file" |
15009     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15010           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15011           /^X\(\/\/\)$/{ s//\1/; q; }
15012           /^X\(\/\).*/{ s//\1/; q; }
15013           s/.*/./; q'`
15014   { case "$ac_dir" in
15015   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15016   *)                      as_incr_dir=.;;
15017 esac
15018 as_dummy="$ac_dir"
15019 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15020   case $as_mkdir_dir in
15021     # Skip DOS drivespec
15022     ?:) as_incr_dir=$as_mkdir_dir ;;
15023     *)
15024       as_incr_dir=$as_incr_dir/$as_mkdir_dir
15025       test -d "$as_incr_dir" ||
15026         mkdir "$as_incr_dir" ||
15027         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
15028 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
15029    { (exit 1); exit 1; }; }
15030     ;;
15031   esac
15032 done; }
15033
15034   ac_builddir=.
15035
15036 if test "$ac_dir" != .; then
15037   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15038   # A "../" for each directory in $ac_dir_suffix.
15039   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15040 else
15041   ac_dir_suffix= ac_top_builddir=
15042 fi
15043
15044 case $srcdir in
15045   .)  # No --srcdir option.  We are building in place.
15046     ac_srcdir=.
15047     if test -z "$ac_top_builddir"; then
15048        ac_top_srcdir=.
15049     else
15050        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15051     fi ;;
15052   [\\/]* | ?:[\\/]* )  # Absolute path.
15053     ac_srcdir=$srcdir$ac_dir_suffix;
15054     ac_top_srcdir=$srcdir ;;
15055   *) # Relative path.
15056     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15057     ac_top_srcdir=$ac_top_builddir$srcdir ;;
15058 esac
15059 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15060 # absolute.
15061 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15062 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
15063 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15064 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15065
15066
15067   case $INSTALL in
15068   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15069   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15070   esac
15071
15072   if test x"$ac_file" != x-; then
15073     { echo "$as_me:$LINENO: creating $ac_file" >&5
15074 echo "$as_me: creating $ac_file" >&6;}
15075     rm -f "$ac_file"
15076   fi
15077   # Let's still pretend it is `configure' which instantiates (i.e., don't
15078   # use $as_me), people would be surprised to read:
15079   #    /* config.h.  Generated by config.status.  */
15080   if test x"$ac_file" = x-; then
15081     configure_input=
15082   else
15083     configure_input="$ac_file.  "
15084   fi
15085   configure_input=$configure_input"Generated from `echo $ac_file_in |
15086                                      sed 's,.*/,,'` by configure."
15087
15088   # First look for the input files in the build tree, otherwise in the
15089   # src tree.
15090   ac_file_inputs=`IFS=:
15091     for f in $ac_file_in; do
15092       case $f in
15093       -) echo $tmp/stdin ;;
15094       [\\/$]*)
15095          # Absolute (can't be DOS-style, as IFS=:)
15096          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15097 echo "$as_me: error: cannot find input file: $f" >&2;}
15098    { (exit 1); exit 1; }; }
15099          echo $f;;
15100       *) # Relative
15101          if test -f "$f"; then
15102            # Build tree
15103            echo $f
15104          elif test -f "$srcdir/$f"; then
15105            # Source tree
15106            echo $srcdir/$f
15107          else
15108            # /dev/null tree
15109            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15110 echo "$as_me: error: cannot find input file: $f" >&2;}
15111    { (exit 1); exit 1; }; }
15112          fi;;
15113       esac
15114     done` || { (exit 1); exit 1; }
15115 _ACEOF
15116 cat >>$CONFIG_STATUS <<_ACEOF
15117   sed "$ac_vpsub
15118 $extrasub
15119 _ACEOF
15120 cat >>$CONFIG_STATUS <<\_ACEOF
15121 :t
15122 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15123 s,@configure_input@,$configure_input,;t t
15124 s,@srcdir@,$ac_srcdir,;t t
15125 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15126 s,@top_srcdir@,$ac_top_srcdir,;t t
15127 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15128 s,@builddir@,$ac_builddir,;t t
15129 s,@abs_builddir@,$ac_abs_builddir,;t t
15130 s,@top_builddir@,$ac_top_builddir,;t t
15131 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15132 s,@INSTALL@,$ac_INSTALL,;t t
15133 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15134   rm -f $tmp/stdin
15135   if test x"$ac_file" != x-; then
15136     mv $tmp/out $ac_file
15137   else
15138     cat $tmp/out
15139     rm -f $tmp/out
15140   fi
15141
15142 done
15143 _ACEOF
15144 cat >>$CONFIG_STATUS <<\_ACEOF
15145
15146 #
15147 # CONFIG_HEADER section.
15148 #
15149
15150 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15151 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15152 #
15153 # ac_d sets the value in "#define NAME VALUE" lines.
15154 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
15155 ac_dB='[        ].*$,\1#\2'
15156 ac_dC=' '
15157 ac_dD=',;t'
15158 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15159 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
15160 ac_uB='$,\1#\2define\3'
15161 ac_uC=' '
15162 ac_uD=',;t'
15163
15164 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15165   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15166   case $ac_file in
15167   - | *:- | *:-:* ) # input from stdin
15168         cat >$tmp/stdin
15169         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15170         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15171   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15172         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15173   * )   ac_file_in=$ac_file.in ;;
15174   esac
15175
15176   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15177 echo "$as_me: creating $ac_file" >&6;}
15178
15179   # First look for the input files in the build tree, otherwise in the
15180   # src tree.
15181   ac_file_inputs=`IFS=:
15182     for f in $ac_file_in; do
15183       case $f in
15184       -) echo $tmp/stdin ;;
15185       [\\/$]*)
15186          # Absolute (can't be DOS-style, as IFS=:)
15187          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15188 echo "$as_me: error: cannot find input file: $f" >&2;}
15189    { (exit 1); exit 1; }; }
15190          echo $f;;
15191       *) # Relative
15192          if test -f "$f"; then
15193            # Build tree
15194            echo $f
15195          elif test -f "$srcdir/$f"; then
15196            # Source tree
15197            echo $srcdir/$f
15198          else
15199            # /dev/null tree
15200            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15201 echo "$as_me: error: cannot find input file: $f" >&2;}
15202    { (exit 1); exit 1; }; }
15203          fi;;
15204       esac
15205     done` || { (exit 1); exit 1; }
15206   # Remove the trailing spaces.
15207   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
15208
15209 _ACEOF
15210
15211 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15212 # `conftest.undefs', that substitutes the proper values into
15213 # config.h.in to produce config.h.  The first handles `#define'
15214 # templates, and the second `#undef' templates.
15215 # And first: Protect against being on the right side of a sed subst in
15216 # config.status.  Protect against being in an unquoted here document
15217 # in config.status.
15218 rm -f conftest.defines conftest.undefs
15219 # Using a here document instead of a string reduces the quoting nightmare.
15220 # Putting comments in sed scripts is not portable.
15221 #
15222 # `end' is used to avoid that the second main sed command (meant for
15223 # 0-ary CPP macros) applies to n-ary macro definitions.
15224 # See the Autoconf documentation for `clear'.
15225 cat >confdef2sed.sed <<\_ACEOF
15226 s/[\\&,]/\\&/g
15227 s,[\\$`],\\&,g
15228 t clear
15229 : clear
15230 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15231 t end
15232 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15233 : end
15234 _ACEOF
15235 # If some macros were called several times there might be several times
15236 # the same #defines, which is useless.  Nevertheless, we may not want to
15237 # sort them, since we want the *last* AC-DEFINE to be honored.
15238 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15239 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15240 rm -f confdef2sed.sed
15241
15242 # This sed command replaces #undef with comments.  This is necessary, for
15243 # example, in the case of _POSIX_SOURCE, which is predefined and required
15244 # on some systems where configure will not decide to define it.
15245 cat >>conftest.undefs <<\_ACEOF
15246 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15247 _ACEOF
15248
15249 # Break up conftest.defines because some shells have a limit on the size
15250 # of here documents, and old seds have small limits too (100 cmds).
15251 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15252 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15253 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15254 echo '  :' >>$CONFIG_STATUS
15255 rm -f conftest.tail
15256 while grep . conftest.defines >/dev/null
15257 do
15258   # Write a limited-size here document to $tmp/defines.sed.
15259   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15260   # Speed up: don't consider the non `#define' lines.
15261   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
15262   # Work around the forget-to-reset-the-flag bug.
15263   echo 't clr' >>$CONFIG_STATUS
15264   echo ': clr' >>$CONFIG_STATUS
15265   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15266   echo 'CEOF
15267   sed -f $tmp/defines.sed $tmp/in >$tmp/out
15268   rm -f $tmp/in
15269   mv $tmp/out $tmp/in
15270 ' >>$CONFIG_STATUS
15271   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15272   rm -f conftest.defines
15273   mv conftest.tail conftest.defines
15274 done
15275 rm -f conftest.defines
15276 echo '  fi # egrep' >>$CONFIG_STATUS
15277 echo >>$CONFIG_STATUS
15278
15279 # Break up conftest.undefs because some shells have a limit on the size
15280 # of here documents, and old seds have small limits too (100 cmds).
15281 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
15282 rm -f conftest.tail
15283 while grep . conftest.undefs >/dev/null
15284 do
15285   # Write a limited-size here document to $tmp/undefs.sed.
15286   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15287   # Speed up: don't consider the non `#undef'
15288   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
15289   # Work around the forget-to-reset-the-flag bug.
15290   echo 't clr' >>$CONFIG_STATUS
15291   echo ': clr' >>$CONFIG_STATUS
15292   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15293   echo 'CEOF
15294   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15295   rm -f $tmp/in
15296   mv $tmp/out $tmp/in
15297 ' >>$CONFIG_STATUS
15298   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15299   rm -f conftest.undefs
15300   mv conftest.tail conftest.undefs
15301 done
15302 rm -f conftest.undefs
15303
15304 cat >>$CONFIG_STATUS <<\_ACEOF
15305   # Let's still pretend it is `configure' which instantiates (i.e., don't
15306   # use $as_me), people would be surprised to read:
15307   #    /* config.h.  Generated by config.status.  */
15308   if test x"$ac_file" = x-; then
15309     echo "/* Generated by configure.  */" >$tmp/config.h
15310   else
15311     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
15312   fi
15313   cat $tmp/in >>$tmp/config.h
15314   rm -f $tmp/in
15315   if test x"$ac_file" != x-; then
15316     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
15317       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15318 echo "$as_me: $ac_file is unchanged" >&6;}
15319     else
15320       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15321 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15322          X"$ac_file" : 'X\(//\)[^/]' \| \
15323          X"$ac_file" : 'X\(//\)$' \| \
15324          X"$ac_file" : 'X\(/\)' \| \
15325          .     : '\(.\)' 2>/dev/null ||
15326 echo X"$ac_file" |
15327     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15328           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15329           /^X\(\/\/\)$/{ s//\1/; q; }
15330           /^X\(\/\).*/{ s//\1/; q; }
15331           s/.*/./; q'`
15332       { case "$ac_dir" in
15333   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15334   *)                      as_incr_dir=.;;
15335 esac
15336 as_dummy="$ac_dir"
15337 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15338   case $as_mkdir_dir in
15339     # Skip DOS drivespec
15340     ?:) as_incr_dir=$as_mkdir_dir ;;
15341     *)
15342       as_incr_dir=$as_incr_dir/$as_mkdir_dir
15343       test -d "$as_incr_dir" ||
15344         mkdir "$as_incr_dir" ||
15345         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
15346 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
15347    { (exit 1); exit 1; }; }
15348     ;;
15349   esac
15350 done; }
15351
15352       rm -f $ac_file
15353       mv $tmp/config.h $ac_file
15354     fi
15355   else
15356     cat $tmp/config.h
15357     rm -f $tmp/config.h
15358   fi
15359 done
15360 _ACEOF
15361 cat >>$CONFIG_STATUS <<\_ACEOF
15362
15363 #
15364 # CONFIG_COMMANDS section.
15365 #
15366 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15367   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15368   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15369   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15370 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15371          X"$ac_dest" : 'X\(//\)[^/]' \| \
15372          X"$ac_dest" : 'X\(//\)$' \| \
15373          X"$ac_dest" : 'X\(/\)' \| \
15374          .     : '\(.\)' 2>/dev/null ||
15375 echo X"$ac_dest" |
15376     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15377           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15378           /^X\(\/\/\)$/{ s//\1/; q; }
15379           /^X\(\/\).*/{ s//\1/; q; }
15380           s/.*/./; q'`
15381   ac_builddir=.
15382
15383 if test "$ac_dir" != .; then
15384   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15385   # A "../" for each directory in $ac_dir_suffix.
15386   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15387 else
15388   ac_dir_suffix= ac_top_builddir=
15389 fi
15390
15391 case $srcdir in
15392   .)  # No --srcdir option.  We are building in place.
15393     ac_srcdir=.
15394     if test -z "$ac_top_builddir"; then
15395        ac_top_srcdir=.
15396     else
15397        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15398     fi ;;
15399   [\\/]* | ?:[\\/]* )  # Absolute path.
15400     ac_srcdir=$srcdir$ac_dir_suffix;
15401     ac_top_srcdir=$srcdir ;;
15402   *) # Relative path.
15403     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15404     ac_top_srcdir=$ac_top_builddir$srcdir ;;
15405 esac
15406 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15407 # absolute.
15408 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15409 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
15410 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15411 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15412
15413
15414   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15415 echo "$as_me: executing $ac_dest commands" >&6;}
15416   case $ac_dest in
15417     default-1 ) for ac_file in $CONFIG_FILES; do
15418         # Support "outfile[:infile[:infile...]]"
15419         case "$ac_file" in
15420           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15421         esac
15422         # PO directories have a Makefile.in generated from Makefile.in.in.
15423         case "$ac_file" in */Makefile.in)
15424           # Adjust a relative srcdir.
15425           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15426           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15427           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15428           # In autoconf-2.13 it is called $ac_given_srcdir.
15429           # In autoconf-2.50 it is called $srcdir.
15430           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15431           case "$ac_given_srcdir" in
15432             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15433             /*) top_srcdir="$ac_given_srcdir" ;;
15434             *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15435           esac
15436           if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15437             rm -f "$ac_dir/POTFILES"
15438             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15439             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
15440             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15441             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15442           fi
15443           ;;
15444         esac
15445       done ;;
15446   esac
15447 done
15448 _ACEOF
15449
15450 cat >>$CONFIG_STATUS <<\_ACEOF
15451
15452 { (exit 0); exit 0; }
15453 _ACEOF
15454 chmod +x $CONFIG_STATUS
15455 ac_clean_files=$ac_clean_files_save
15456
15457
15458 # configure is writing to config.log, and then calls config.status.
15459 # config.status does its own redirection, appending to config.log.
15460 # Unfortunately, on DOS this fails, as config.log is still kept open
15461 # by configure, so config.status won't be able to write to it; its
15462 # output is simply discarded.  So we exec the FD to /dev/null,
15463 # effectively closing config.log, so it can be properly (re)opened and
15464 # appended to by config.status.  When coming back to configure, we
15465 # need to make the FD available again.
15466 if test "$no_create" != yes; then
15467   ac_cs_success=:
15468   exec 5>/dev/null
15469   $SHELL $CONFIG_STATUS || ac_cs_success=false
15470   exec 5>>config.log
15471   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15472   # would make configure fail if this is the last instruction.
15473   $ac_cs_success || { (exit 1); exit 1; }
15474 fi
15475
15476
15477 echo "
15478 vlc configuration
15479 --------------------
15480 vlc version           : ${VERSION}
15481 system                : ${SYS}
15482 architecture          : ${ARCH}
15483 optimizations         : ${OPTIMS}
15484 tuning                : ${TUNING}
15485 debug mode            : ${DEBUG}
15486 release               : ${RELEASE}
15487 cprof/gprof support   : ${CPROF}/${GPROF}
15488 need builtin getopt   : ${NEED_GETOPT}
15489 built-in modules      :${BUILTINS}
15490 plug-in modules       :${PLUGINS}
15491 vlc aliases           :${ALIASES}
15492
15493 You may now tune Makefile.opts at your convenience, for instance to choose
15494 which modules get compiled as plugins.
15495
15496 To build vlc and its plugins, type \`$VLC_MAKE'.
15497 "
15498