Fixed DevStudio 2003 build with memory check code.
[pwlib.git] / plugins / configure
blob98cebdf2356df3ca0166de6148a15654a8704a14
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="../include/ptlib.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT PWLIBDIR PWINSTDIR INSTALLPREFIX LIBDIR CC CFLAGS ac_ct_CC CPP EGREP HAS_ALSA HAS_ESD HAS_OSS HAS_SUNAUDIO HAS_V4L HAS_V4L2 HAS_BSDVIDEOCAP HAS_AVC1394 HAS_DC1394 DC_CFLAGS LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CXX_set=${CXX+set}
754 ac_env_CXX_value=$CXX
755 ac_cv_env_CXX_set=${CXX+set}
756 ac_cv_env_CXX_value=$CXX
757 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
758 ac_env_CXXFLAGS_value=$CXXFLAGS
759 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
760 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CC_set=${CC+set}
770 ac_env_CC_value=$CC
771 ac_cv_env_CC_set=${CC+set}
772 ac_cv_env_CC_value=$CC
773 ac_env_CFLAGS_set=${CFLAGS+set}
774 ac_env_CFLAGS_value=$CFLAGS
775 ac_cv_env_CFLAGS_set=${CFLAGS+set}
776 ac_cv_env_CFLAGS_value=$CFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
798 Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
809 _ACEOF
811 cat <<_ACEOF
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838 _ACEOF
840 cat <<\_ACEOF
841 _ACEOF
844 if test -n "$ac_init_help"; then
846 cat <<\_ACEOF
848 Optional Features:
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 disable plugin support]
852 --disable-audio disable audio support
853 --enable-alsa enable ALSA audio support
854 --enable-esd enable ESD audio support
855 --enable-oss enable OSS audio support
856 --enable-sunaudio enable Sun audio support
857 --disable-video disable video device support in PWLIB
858 --enable-v4l enable V4L video support
859 --enable-v4l2 enable V4L2 video support
860 --enable-bsdvideo enable BSD video support
861 --enable-avc enable IEEE1394/AVC video support
862 --enable-dc enable IEEE1394/DC video support
864 Some influential environment variables:
865 CXX C++ compiler command
866 CXXFLAGS C++ compiler flags
867 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
868 nonstandard directory <lib dir>
869 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
870 headers in a nonstandard directory <include dir>
871 CC C compiler command
872 CFLAGS C compiler flags
873 CPP C preprocessor
875 Use these variables to override the choices made by `configure' or to help
876 it to find libraries and programs with nonstandard names/locations.
878 _ACEOF
881 if test "$ac_init_help" = "recursive"; then
882 # If there are subdirs, report their specific --help.
883 ac_popdir=`pwd`
884 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
885 test -d $ac_dir || continue
886 ac_builddir=.
888 if test "$ac_dir" != .; then
889 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
890 # A "../" for each directory in $ac_dir_suffix.
891 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
892 else
893 ac_dir_suffix= ac_top_builddir=
896 case $srcdir in
897 .) # No --srcdir option. We are building in place.
898 ac_srcdir=.
899 if test -z "$ac_top_builddir"; then
900 ac_top_srcdir=.
901 else
902 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
903 fi ;;
904 [\\/]* | ?:[\\/]* ) # Absolute path.
905 ac_srcdir=$srcdir$ac_dir_suffix;
906 ac_top_srcdir=$srcdir ;;
907 *) # Relative path.
908 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
909 ac_top_srcdir=$ac_top_builddir$srcdir ;;
910 esac
912 # Do not use `cd foo && pwd` to compute absolute paths, because
913 # the directories may not exist.
914 case `pwd` in
915 .) ac_abs_builddir="$ac_dir";;
917 case "$ac_dir" in
918 .) ac_abs_builddir=`pwd`;;
919 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
920 *) ac_abs_builddir=`pwd`/"$ac_dir";;
921 esac;;
922 esac
923 case $ac_abs_builddir in
924 .) ac_abs_top_builddir=${ac_top_builddir}.;;
926 case ${ac_top_builddir}. in
927 .) ac_abs_top_builddir=$ac_abs_builddir;;
928 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
929 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
930 esac;;
931 esac
932 case $ac_abs_builddir in
933 .) ac_abs_srcdir=$ac_srcdir;;
935 case $ac_srcdir in
936 .) ac_abs_srcdir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
938 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
939 esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_top_srcdir=$ac_top_srcdir;;
944 case $ac_top_srcdir in
945 .) ac_abs_top_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
947 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
948 esac;;
949 esac
951 cd $ac_dir
952 # Check for guested configure; otherwise get Cygnus style configure.
953 if test -f $ac_srcdir/configure.gnu; then
954 echo
955 $SHELL $ac_srcdir/configure.gnu --help=recursive
956 elif test -f $ac_srcdir/configure; then
957 echo
958 $SHELL $ac_srcdir/configure --help=recursive
959 elif test -f $ac_srcdir/configure.ac ||
960 test -f $ac_srcdir/configure.in; then
961 echo
962 $ac_configure --help
963 else
964 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
966 cd $ac_popdir
967 done
970 test -n "$ac_init_help" && exit 0
971 if $ac_init_version; then
972 cat <<\_ACEOF
974 Copyright (C) 2003 Free Software Foundation, Inc.
975 This configure script is free software; the Free Software Foundation
976 gives unlimited permission to copy, distribute and modify it.
977 _ACEOF
978 exit 0
980 exec 5>config.log
981 cat >&5 <<_ACEOF
982 This file contains any messages produced by compilers while
983 running configure, to aid debugging if configure makes a mistake.
985 It was created by $as_me, which was
986 generated by GNU Autoconf 2.59. Invocation command line was
988 $ $0 $@
990 _ACEOF
992 cat <<_ASUNAME
993 ## --------- ##
994 ## Platform. ##
995 ## --------- ##
997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1009 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1014 _ASUNAME
1016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1017 for as_dir in $PATH
1019 IFS=$as_save_IFS
1020 test -z "$as_dir" && as_dir=.
1021 echo "PATH: $as_dir"
1022 done
1024 } >&5
1026 cat >&5 <<_ACEOF
1029 ## ----------- ##
1030 ## Core tests. ##
1031 ## ----------- ##
1033 _ACEOF
1036 # Keep a trace of the command line.
1037 # Strip out --no-create and --no-recursion so they do not pile up.
1038 # Strip out --silent because we don't want to record it for future runs.
1039 # Also quote any args containing shell meta-characters.
1040 # Make two passes to allow for proper duplicate-argument suppression.
1041 ac_configure_args=
1042 ac_configure_args0=
1043 ac_configure_args1=
1044 ac_sep=
1045 ac_must_keep_next=false
1046 for ac_pass in 1 2
1048 for ac_arg
1050 case $ac_arg in
1051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1054 continue ;;
1055 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1056 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1057 esac
1058 case $ac_pass in
1059 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1061 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1062 if test $ac_must_keep_next = true; then
1063 ac_must_keep_next=false # Got value, back to normal.
1064 else
1065 case $ac_arg in
1066 *=* | --config-cache | -C | -disable-* | --disable-* \
1067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1069 | -with-* | --with-* | -without-* | --without-* | --x)
1070 case "$ac_configure_args0 " in
1071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1072 esac
1074 -* ) ac_must_keep_next=true ;;
1075 esac
1077 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1078 # Get rid of the leading space.
1079 ac_sep=" "
1081 esac
1082 done
1083 done
1084 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1085 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1087 # When interrupted or exit'd, cleanup temporary files, and complete
1088 # config.log. We remove comments because anyway the quotes in there
1089 # would cause problems or look ugly.
1090 # WARNING: Be sure not to use single quotes in there, as some shells,
1091 # such as our DU 5.0 friend, will then `close' the trap.
1092 trap 'exit_status=$?
1093 # Save into config.log some information that might help in debugging.
1095 echo
1097 cat <<\_ASBOX
1098 ## ---------------- ##
1099 ## Cache variables. ##
1100 ## ---------------- ##
1101 _ASBOX
1102 echo
1103 # The following way of writing the cache mishandles newlines in values,
1105 (set) 2>&1 |
1106 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1107 *ac_space=\ *)
1108 sed -n \
1109 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1113 sed -n \
1114 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1116 esac;
1118 echo
1120 cat <<\_ASBOX
1121 ## ----------------- ##
1122 ## Output variables. ##
1123 ## ----------------- ##
1124 _ASBOX
1125 echo
1126 for ac_var in $ac_subst_vars
1128 eval ac_val=$`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1130 done | sort
1131 echo
1133 if test -n "$ac_subst_files"; then
1134 cat <<\_ASBOX
1135 ## ------------- ##
1136 ## Output files. ##
1137 ## ------------- ##
1138 _ASBOX
1139 echo
1140 for ac_var in $ac_subst_files
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1144 done | sort
1145 echo
1148 if test -s confdefs.h; then
1149 cat <<\_ASBOX
1150 ## ----------- ##
1151 ## confdefs.h. ##
1152 ## ----------- ##
1153 _ASBOX
1154 echo
1155 sed "/^$/d" confdefs.h | sort
1156 echo
1158 test "$ac_signal" != 0 &&
1159 echo "$as_me: caught signal $ac_signal"
1160 echo "$as_me: exit $exit_status"
1161 } >&5
1162 rm -f core *.core &&
1163 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1164 exit $exit_status
1166 for ac_signal in 1 2 13 15; do
1167 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1168 done
1169 ac_signal=0
1171 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1172 rm -rf conftest* confdefs.h
1173 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1174 echo >confdefs.h
1176 # Predefined preprocessor variables.
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_NAME "$PACKAGE_NAME"
1180 _ACEOF
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1185 _ACEOF
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1190 _ACEOF
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_STRING "$PACKAGE_STRING"
1195 _ACEOF
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1200 _ACEOF
1203 # Let the site file select an alternate cache file if it wants to.
1204 # Prefer explicitly selected file to automatically selected ones.
1205 if test -z "$CONFIG_SITE"; then
1206 if test "x$prefix" != xNONE; then
1207 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1208 else
1209 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1212 for ac_site_file in $CONFIG_SITE; do
1213 if test -r "$ac_site_file"; then
1214 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1215 echo "$as_me: loading site script $ac_site_file" >&6;}
1216 sed 's/^/| /' "$ac_site_file" >&5
1217 . "$ac_site_file"
1219 done
1221 if test -r "$cache_file"; then
1222 # Some versions of bash will fail to source /dev/null (special
1223 # files actually), so we avoid doing that.
1224 if test -f "$cache_file"; then
1225 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1226 echo "$as_me: loading cache $cache_file" >&6;}
1227 case $cache_file in
1228 [\\/]* | ?:[\\/]* ) . $cache_file;;
1229 *) . ./$cache_file;;
1230 esac
1232 else
1233 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1234 echo "$as_me: creating cache $cache_file" >&6;}
1235 >$cache_file
1238 # Check that the precious variables saved in the cache have kept the same
1239 # value.
1240 ac_cache_corrupted=false
1241 for ac_var in `(set) 2>&1 |
1242 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1243 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1244 eval ac_new_set=\$ac_env_${ac_var}_set
1245 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1246 eval ac_new_val="\$ac_env_${ac_var}_value"
1247 case $ac_old_set,$ac_new_set in
1248 set,)
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1252 ,set)
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1255 ac_cache_corrupted=: ;;
1256 ,);;
1258 if test "x$ac_old_val" != "x$ac_new_val"; then
1259 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1260 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1261 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1262 echo "$as_me: former value: $ac_old_val" >&2;}
1263 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1264 echo "$as_me: current value: $ac_new_val" >&2;}
1265 ac_cache_corrupted=:
1266 fi;;
1267 esac
1268 # Pass precious variables to config.status.
1269 if test "$ac_new_set" = set; then
1270 case $ac_new_val in
1271 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1273 *) ac_arg=$ac_var=$ac_new_val ;;
1274 esac
1275 case " $ac_configure_args " in
1276 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1277 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1278 esac
1280 done
1281 if $ac_cache_corrupted; then
1282 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1283 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1284 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1285 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1286 { (exit 1); exit 1; }; }
1289 ac_ext=c
1290 ac_cpp='$CPP $CPPFLAGS'
1291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1314 ac_ext=cc
1315 ac_cpp='$CXXCPP $CPPFLAGS'
1316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1319 if test -n "$ac_tool_prefix"; then
1320 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1322 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1323 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1324 echo "$as_me:$LINENO: checking for $ac_word" >&5
1325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1326 if test "${ac_cv_prog_CXX+set}" = set; then
1327 echo $ECHO_N "(cached) $ECHO_C" >&6
1328 else
1329 if test -n "$CXX"; then
1330 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1331 else
1332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1333 for as_dir in $PATH
1335 IFS=$as_save_IFS
1336 test -z "$as_dir" && as_dir=.
1337 for ac_exec_ext in '' $ac_executable_extensions; do
1338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1339 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1341 break 2
1343 done
1344 done
1348 CXX=$ac_cv_prog_CXX
1349 if test -n "$CXX"; then
1350 echo "$as_me:$LINENO: result: $CXX" >&5
1351 echo "${ECHO_T}$CXX" >&6
1352 else
1353 echo "$as_me:$LINENO: result: no" >&5
1354 echo "${ECHO_T}no" >&6
1357 test -n "$CXX" && break
1358 done
1360 if test -z "$CXX"; then
1361 ac_ct_CXX=$CXX
1362 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1364 # Extract the first word of "$ac_prog", so it can be a program name with args.
1365 set dummy $ac_prog; ac_word=$2
1366 echo "$as_me:$LINENO: checking for $ac_word" >&5
1367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1368 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1369 echo $ECHO_N "(cached) $ECHO_C" >&6
1370 else
1371 if test -n "$ac_ct_CXX"; then
1372 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1373 else
1374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1375 for as_dir in $PATH
1377 IFS=$as_save_IFS
1378 test -z "$as_dir" && as_dir=.
1379 for ac_exec_ext in '' $ac_executable_extensions; do
1380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1381 ac_cv_prog_ac_ct_CXX="$ac_prog"
1382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1383 break 2
1385 done
1386 done
1390 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1391 if test -n "$ac_ct_CXX"; then
1392 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1393 echo "${ECHO_T}$ac_ct_CXX" >&6
1394 else
1395 echo "$as_me:$LINENO: result: no" >&5
1396 echo "${ECHO_T}no" >&6
1399 test -n "$ac_ct_CXX" && break
1400 done
1401 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1403 CXX=$ac_ct_CXX
1407 # Provide some information about the compiler.
1408 echo "$as_me:$LINENO:" \
1409 "checking for C++ compiler version" >&5
1410 ac_compiler=`set X $ac_compile; echo $2`
1411 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1412 (eval $ac_compiler --version </dev/null >&5) 2>&5
1413 ac_status=$?
1414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1415 (exit $ac_status); }
1416 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1417 (eval $ac_compiler -v </dev/null >&5) 2>&5
1418 ac_status=$?
1419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1420 (exit $ac_status); }
1421 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1422 (eval $ac_compiler -V </dev/null >&5) 2>&5
1423 ac_status=$?
1424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1425 (exit $ac_status); }
1427 cat >conftest.$ac_ext <<_ACEOF
1428 /* confdefs.h. */
1429 _ACEOF
1430 cat confdefs.h >>conftest.$ac_ext
1431 cat >>conftest.$ac_ext <<_ACEOF
1432 /* end confdefs.h. */
1435 main ()
1439 return 0;
1441 _ACEOF
1442 ac_clean_files_save=$ac_clean_files
1443 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1444 # Try to create an executable without -o first, disregard a.out.
1445 # It will help us diagnose broken compilers, and finding out an intuition
1446 # of exeext.
1447 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1448 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1449 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1450 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1451 (eval $ac_link_default) 2>&5
1452 ac_status=$?
1453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1454 (exit $ac_status); }; then
1455 # Find the output, starting from the most likely. This scheme is
1456 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1457 # resort.
1459 # Be careful to initialize this variable, since it used to be cached.
1460 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1461 ac_cv_exeext=
1462 # b.out is created by i960 compilers.
1463 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1465 test -f "$ac_file" || continue
1466 case $ac_file in
1467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1469 conftest.$ac_ext )
1470 # This is the source file.
1472 [ab].out )
1473 # We found the default executable, but exeext='' is most
1474 # certainly right.
1475 break;;
1476 *.* )
1477 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1478 # FIXME: I believe we export ac_cv_exeext for Libtool,
1479 # but it would be cool to find out if it's true. Does anybody
1480 # maintain Libtool? --akim.
1481 export ac_cv_exeext
1482 break;;
1484 break;;
1485 esac
1486 done
1487 else
1488 echo "$as_me: failed program was:" >&5
1489 sed 's/^/| /' conftest.$ac_ext >&5
1491 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1492 See \`config.log' for more details." >&5
1493 echo "$as_me: error: C++ compiler cannot create executables
1494 See \`config.log' for more details." >&2;}
1495 { (exit 77); exit 77; }; }
1498 ac_exeext=$ac_cv_exeext
1499 echo "$as_me:$LINENO: result: $ac_file" >&5
1500 echo "${ECHO_T}$ac_file" >&6
1502 # Check the compiler produces executables we can run. If not, either
1503 # the compiler is broken, or we cross compile.
1504 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1505 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1506 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1507 # If not cross compiling, check that we can run a simple program.
1508 if test "$cross_compiling" != yes; then
1509 if { ac_try='./$ac_file'
1510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1511 (eval $ac_try) 2>&5
1512 ac_status=$?
1513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1514 (exit $ac_status); }; }; then
1515 cross_compiling=no
1516 else
1517 if test "$cross_compiling" = maybe; then
1518 cross_compiling=yes
1519 else
1520 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1521 If you meant to cross compile, use \`--host'.
1522 See \`config.log' for more details." >&5
1523 echo "$as_me: error: cannot run C++ compiled programs.
1524 If you meant to cross compile, use \`--host'.
1525 See \`config.log' for more details." >&2;}
1526 { (exit 1); exit 1; }; }
1530 echo "$as_me:$LINENO: result: yes" >&5
1531 echo "${ECHO_T}yes" >&6
1533 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1534 ac_clean_files=$ac_clean_files_save
1535 # Check the compiler produces executables we can run. If not, either
1536 # the compiler is broken, or we cross compile.
1537 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1538 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1539 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1540 echo "${ECHO_T}$cross_compiling" >&6
1542 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1543 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1545 (eval $ac_link) 2>&5
1546 ac_status=$?
1547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1548 (exit $ac_status); }; then
1549 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1550 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1551 # work properly (i.e., refer to `conftest.exe'), while it won't with
1552 # `rm'.
1553 for ac_file in conftest.exe conftest conftest.*; do
1554 test -f "$ac_file" || continue
1555 case $ac_file in
1556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1557 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1558 export ac_cv_exeext
1559 break;;
1560 * ) break;;
1561 esac
1562 done
1563 else
1564 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1565 See \`config.log' for more details." >&5
1566 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1567 See \`config.log' for more details." >&2;}
1568 { (exit 1); exit 1; }; }
1571 rm -f conftest$ac_cv_exeext
1572 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1573 echo "${ECHO_T}$ac_cv_exeext" >&6
1575 rm -f conftest.$ac_ext
1576 EXEEXT=$ac_cv_exeext
1577 ac_exeext=$EXEEXT
1578 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1579 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1580 if test "${ac_cv_objext+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1582 else
1583 cat >conftest.$ac_ext <<_ACEOF
1584 /* confdefs.h. */
1585 _ACEOF
1586 cat confdefs.h >>conftest.$ac_ext
1587 cat >>conftest.$ac_ext <<_ACEOF
1588 /* end confdefs.h. */
1591 main ()
1595 return 0;
1597 _ACEOF
1598 rm -f conftest.o conftest.obj
1599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1600 (eval $ac_compile) 2>&5
1601 ac_status=$?
1602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1603 (exit $ac_status); }; then
1604 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1605 case $ac_file in
1606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1607 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1608 break;;
1609 esac
1610 done
1611 else
1612 echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1615 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1616 See \`config.log' for more details." >&5
1617 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1618 See \`config.log' for more details." >&2;}
1619 { (exit 1); exit 1; }; }
1622 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1624 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1625 echo "${ECHO_T}$ac_cv_objext" >&6
1626 OBJEXT=$ac_cv_objext
1627 ac_objext=$OBJEXT
1628 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1629 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1630 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1632 else
1633 cat >conftest.$ac_ext <<_ACEOF
1634 /* confdefs.h. */
1635 _ACEOF
1636 cat confdefs.h >>conftest.$ac_ext
1637 cat >>conftest.$ac_ext <<_ACEOF
1638 /* end confdefs.h. */
1641 main ()
1643 #ifndef __GNUC__
1644 choke me
1645 #endif
1648 return 0;
1650 _ACEOF
1651 rm -f conftest.$ac_objext
1652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1653 (eval $ac_compile) 2>conftest.er1
1654 ac_status=$?
1655 grep -v '^ *+' conftest.er1 >conftest.err
1656 rm -f conftest.er1
1657 cat conftest.err >&5
1658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1659 (exit $ac_status); } &&
1660 { ac_try='test -z "$ac_cxx_werror_flag"
1661 || test ! -s conftest.err'
1662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1663 (eval $ac_try) 2>&5
1664 ac_status=$?
1665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1666 (exit $ac_status); }; } &&
1667 { ac_try='test -s conftest.$ac_objext'
1668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1669 (eval $ac_try) 2>&5
1670 ac_status=$?
1671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1672 (exit $ac_status); }; }; then
1673 ac_compiler_gnu=yes
1674 else
1675 echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1678 ac_compiler_gnu=no
1680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1681 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1684 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1685 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1686 GXX=`test $ac_compiler_gnu = yes && echo yes`
1687 ac_test_CXXFLAGS=${CXXFLAGS+set}
1688 ac_save_CXXFLAGS=$CXXFLAGS
1689 CXXFLAGS="-g"
1690 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1691 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1692 if test "${ac_cv_prog_cxx_g+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1694 else
1695 cat >conftest.$ac_ext <<_ACEOF
1696 /* confdefs.h. */
1697 _ACEOF
1698 cat confdefs.h >>conftest.$ac_ext
1699 cat >>conftest.$ac_ext <<_ACEOF
1700 /* end confdefs.h. */
1703 main ()
1707 return 0;
1709 _ACEOF
1710 rm -f conftest.$ac_objext
1711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1712 (eval $ac_compile) 2>conftest.er1
1713 ac_status=$?
1714 grep -v '^ *+' conftest.er1 >conftest.err
1715 rm -f conftest.er1
1716 cat conftest.err >&5
1717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1718 (exit $ac_status); } &&
1719 { ac_try='test -z "$ac_cxx_werror_flag"
1720 || test ! -s conftest.err'
1721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1722 (eval $ac_try) 2>&5
1723 ac_status=$?
1724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1725 (exit $ac_status); }; } &&
1726 { ac_try='test -s conftest.$ac_objext'
1727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1728 (eval $ac_try) 2>&5
1729 ac_status=$?
1730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1731 (exit $ac_status); }; }; then
1732 ac_cv_prog_cxx_g=yes
1733 else
1734 echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1737 ac_cv_prog_cxx_g=no
1739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1741 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1742 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1743 if test "$ac_test_CXXFLAGS" = set; then
1744 CXXFLAGS=$ac_save_CXXFLAGS
1745 elif test $ac_cv_prog_cxx_g = yes; then
1746 if test "$GXX" = yes; then
1747 CXXFLAGS="-g -O2"
1748 else
1749 CXXFLAGS="-g"
1751 else
1752 if test "$GXX" = yes; then
1753 CXXFLAGS="-O2"
1754 else
1755 CXXFLAGS=
1758 for ac_declaration in \
1759 '' \
1760 'extern "C" void std::exit (int) throw (); using std::exit;' \
1761 'extern "C" void std::exit (int); using std::exit;' \
1762 'extern "C" void exit (int) throw ();' \
1763 'extern "C" void exit (int);' \
1764 'void exit (int);'
1766 cat >conftest.$ac_ext <<_ACEOF
1767 /* confdefs.h. */
1768 _ACEOF
1769 cat confdefs.h >>conftest.$ac_ext
1770 cat >>conftest.$ac_ext <<_ACEOF
1771 /* end confdefs.h. */
1772 $ac_declaration
1773 #include <stdlib.h>
1775 main ()
1777 exit (42);
1779 return 0;
1781 _ACEOF
1782 rm -f conftest.$ac_objext
1783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1784 (eval $ac_compile) 2>conftest.er1
1785 ac_status=$?
1786 grep -v '^ *+' conftest.er1 >conftest.err
1787 rm -f conftest.er1
1788 cat conftest.err >&5
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); } &&
1791 { ac_try='test -z "$ac_cxx_werror_flag"
1792 || test ! -s conftest.err'
1793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1794 (eval $ac_try) 2>&5
1795 ac_status=$?
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }; } &&
1798 { ac_try='test -s conftest.$ac_objext'
1799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1800 (eval $ac_try) 2>&5
1801 ac_status=$?
1802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1803 (exit $ac_status); }; }; then
1805 else
1806 echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1809 continue
1811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1812 cat >conftest.$ac_ext <<_ACEOF
1813 /* confdefs.h. */
1814 _ACEOF
1815 cat confdefs.h >>conftest.$ac_ext
1816 cat >>conftest.$ac_ext <<_ACEOF
1817 /* end confdefs.h. */
1818 $ac_declaration
1820 main ()
1822 exit (42);
1824 return 0;
1826 _ACEOF
1827 rm -f conftest.$ac_objext
1828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1829 (eval $ac_compile) 2>conftest.er1
1830 ac_status=$?
1831 grep -v '^ *+' conftest.er1 >conftest.err
1832 rm -f conftest.er1
1833 cat conftest.err >&5
1834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835 (exit $ac_status); } &&
1836 { ac_try='test -z "$ac_cxx_werror_flag"
1837 || test ! -s conftest.err'
1838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1839 (eval $ac_try) 2>&5
1840 ac_status=$?
1841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842 (exit $ac_status); }; } &&
1843 { ac_try='test -s conftest.$ac_objext'
1844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1845 (eval $ac_try) 2>&5
1846 ac_status=$?
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }; }; then
1849 break
1850 else
1851 echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1856 done
1857 rm -f conftest*
1858 if test -n "$ac_declaration"; then
1859 echo '#ifdef __cplusplus' >>confdefs.h
1860 echo $ac_declaration >>confdefs.h
1861 echo '#endif' >>confdefs.h
1864 ac_ext=c
1865 ac_cpp='$CPP $CPPFLAGS'
1866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1872 PWLIBDIR=`pwd`
1873 echo "Plugin source directory is $PWLIBDIR";
1877 if test "x$prefix" = "xNONE"; then
1878 INSTALLPREFIX="/usr/local"
1879 else
1880 INSTALLPREFIX="${prefix}"
1885 LIBDIR="${libdir}"
1888 # Check whether --enable-plugins or --disable-plugins was given.
1889 if test "${enable_plugins+set}" = set; then
1890 enableval="$enable_plugins"
1893 if test "${enable_plugins}z" = "z" ; then
1894 enable_plugins=yes
1896 if test "$enable_plugins" = "no" ; then
1897 { echo "$as_me:$LINENO: Plugins disabled" >&5
1898 echo "$as_me: Plugins disabled" >&6;}
1899 else
1902 # Check whether --enable-audio or --disable-audio was given.
1903 if test "${enable_audio+set}" = set; then
1904 enableval="$enable_audio"
1907 if test "${enable_audio}z" = "z" ; then
1908 enable_audio=yes
1911 if test "${enable_audio}" = "yes" ; then
1914 # Check whether --enable-alsa or --disable-alsa was given.
1915 if test "${enable_alsa+set}" = set; then
1916 enableval="$enable_alsa"
1918 else
1919 enable_alsa=yes
1922 if test "${enable_alsa}z" = "yesz" ; then
1923 ac_ext=c
1924 ac_cpp='$CPP $CPPFLAGS'
1925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1928 if test -n "$ac_tool_prefix"; then
1929 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1930 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1931 echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933 if test "${ac_cv_prog_CC+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 else
1936 if test -n "$CC"; then
1937 ac_cv_prog_CC="$CC" # Let the user override the test.
1938 else
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940 for as_dir in $PATH
1942 IFS=$as_save_IFS
1943 test -z "$as_dir" && as_dir=.
1944 for ac_exec_ext in '' $ac_executable_extensions; do
1945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1946 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1948 break 2
1950 done
1951 done
1955 CC=$ac_cv_prog_CC
1956 if test -n "$CC"; then
1957 echo "$as_me:$LINENO: result: $CC" >&5
1958 echo "${ECHO_T}$CC" >&6
1959 else
1960 echo "$as_me:$LINENO: result: no" >&5
1961 echo "${ECHO_T}no" >&6
1965 if test -z "$ac_cv_prog_CC"; then
1966 ac_ct_CC=$CC
1967 # Extract the first word of "gcc", so it can be a program name with args.
1968 set dummy gcc; ac_word=$2
1969 echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1971 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974 if test -n "$ac_ct_CC"; then
1975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1976 else
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1980 IFS=$as_save_IFS
1981 test -z "$as_dir" && as_dir=.
1982 for ac_exec_ext in '' $ac_executable_extensions; do
1983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1984 ac_cv_prog_ac_ct_CC="gcc"
1985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986 break 2
1988 done
1989 done
1993 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1994 if test -n "$ac_ct_CC"; then
1995 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1996 echo "${ECHO_T}$ac_ct_CC" >&6
1997 else
1998 echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6
2002 CC=$ac_ct_CC
2003 else
2004 CC="$ac_cv_prog_CC"
2007 if test -z "$CC"; then
2008 if test -n "$ac_tool_prefix"; then
2009 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2010 set dummy ${ac_tool_prefix}cc; ac_word=$2
2011 echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013 if test "${ac_cv_prog_CC+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016 if test -n "$CC"; then
2017 ac_cv_prog_CC="$CC" # Let the user override the test.
2018 else
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2022 IFS=$as_save_IFS
2023 test -z "$as_dir" && as_dir=.
2024 for ac_exec_ext in '' $ac_executable_extensions; do
2025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026 ac_cv_prog_CC="${ac_tool_prefix}cc"
2027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028 break 2
2030 done
2031 done
2035 CC=$ac_cv_prog_CC
2036 if test -n "$CC"; then
2037 echo "$as_me:$LINENO: result: $CC" >&5
2038 echo "${ECHO_T}$CC" >&6
2039 else
2040 echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2045 if test -z "$ac_cv_prog_CC"; then
2046 ac_ct_CC=$CC
2047 # Extract the first word of "cc", so it can be a program name with args.
2048 set dummy cc; ac_word=$2
2049 echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054 if test -n "$ac_ct_CC"; then
2055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2056 else
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2060 IFS=$as_save_IFS
2061 test -z "$as_dir" && as_dir=.
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064 ac_cv_prog_ac_ct_CC="cc"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 break 2
2068 done
2069 done
2073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2074 if test -n "$ac_ct_CC"; then
2075 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2076 echo "${ECHO_T}$ac_ct_CC" >&6
2077 else
2078 echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2082 CC=$ac_ct_CC
2083 else
2084 CC="$ac_cv_prog_CC"
2088 if test -z "$CC"; then
2089 # Extract the first word of "cc", so it can be a program name with args.
2090 set dummy cc; ac_word=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_CC+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096 if test -n "$CC"; then
2097 ac_cv_prog_CC="$CC" # Let the user override the test.
2098 else
2099 ac_prog_rejected=no
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 for as_dir in $PATH
2103 IFS=$as_save_IFS
2104 test -z "$as_dir" && as_dir=.
2105 for ac_exec_ext in '' $ac_executable_extensions; do
2106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2107 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2108 ac_prog_rejected=yes
2109 continue
2111 ac_cv_prog_CC="cc"
2112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113 break 2
2115 done
2116 done
2118 if test $ac_prog_rejected = yes; then
2119 # We found a bogon in the path, so make sure we never use it.
2120 set dummy $ac_cv_prog_CC
2121 shift
2122 if test $# != 0; then
2123 # We chose a different compiler from the bogus one.
2124 # However, it has the same basename, so the bogon will be chosen
2125 # first if we set CC to just the basename; use the full file name.
2126 shift
2127 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2132 CC=$ac_cv_prog_CC
2133 if test -n "$CC"; then
2134 echo "$as_me:$LINENO: result: $CC" >&5
2135 echo "${ECHO_T}$CC" >&6
2136 else
2137 echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6
2142 if test -z "$CC"; then
2143 if test -n "$ac_tool_prefix"; then
2144 for ac_prog in cl
2146 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2147 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2148 echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2150 if test "${ac_cv_prog_CC+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153 if test -n "$CC"; then
2154 ac_cv_prog_CC="$CC" # Let the user override the test.
2155 else
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2159 IFS=$as_save_IFS
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2163 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165 break 2
2167 done
2168 done
2172 CC=$ac_cv_prog_CC
2173 if test -n "$CC"; then
2174 echo "$as_me:$LINENO: result: $CC" >&5
2175 echo "${ECHO_T}$CC" >&6
2176 else
2177 echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6
2181 test -n "$CC" && break
2182 done
2184 if test -z "$CC"; then
2185 ac_ct_CC=$CC
2186 for ac_prog in cl
2188 # Extract the first word of "$ac_prog", so it can be a program name with args.
2189 set dummy $ac_prog; ac_word=$2
2190 echo "$as_me:$LINENO: checking for $ac_word" >&5
2191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2192 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2194 else
2195 if test -n "$ac_ct_CC"; then
2196 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2197 else
2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199 for as_dir in $PATH
2201 IFS=$as_save_IFS
2202 test -z "$as_dir" && as_dir=.
2203 for ac_exec_ext in '' $ac_executable_extensions; do
2204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2205 ac_cv_prog_ac_ct_CC="$ac_prog"
2206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2207 break 2
2209 done
2210 done
2214 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2215 if test -n "$ac_ct_CC"; then
2216 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2217 echo "${ECHO_T}$ac_ct_CC" >&6
2218 else
2219 echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6
2223 test -n "$ac_ct_CC" && break
2224 done
2226 CC=$ac_ct_CC
2232 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2233 See \`config.log' for more details." >&5
2234 echo "$as_me: error: no acceptable C compiler found in \$PATH
2235 See \`config.log' for more details." >&2;}
2236 { (exit 1); exit 1; }; }
2238 # Provide some information about the compiler.
2239 echo "$as_me:$LINENO:" \
2240 "checking for C compiler version" >&5
2241 ac_compiler=`set X $ac_compile; echo $2`
2242 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2243 (eval $ac_compiler --version </dev/null >&5) 2>&5
2244 ac_status=$?
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }
2247 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2248 (eval $ac_compiler -v </dev/null >&5) 2>&5
2249 ac_status=$?
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }
2252 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2253 (eval $ac_compiler -V </dev/null >&5) 2>&5
2254 ac_status=$?
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }
2258 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2259 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2260 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 else
2263 cat >conftest.$ac_ext <<_ACEOF
2264 /* confdefs.h. */
2265 _ACEOF
2266 cat confdefs.h >>conftest.$ac_ext
2267 cat >>conftest.$ac_ext <<_ACEOF
2268 /* end confdefs.h. */
2271 main ()
2273 #ifndef __GNUC__
2274 choke me
2275 #endif
2278 return 0;
2280 _ACEOF
2281 rm -f conftest.$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283 (eval $ac_compile) 2>conftest.er1
2284 ac_status=$?
2285 grep -v '^ *+' conftest.er1 >conftest.err
2286 rm -f conftest.er1
2287 cat conftest.err >&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); } &&
2290 { ac_try='test -z "$ac_c_werror_flag"
2291 || test ! -s conftest.err'
2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 (eval $ac_try) 2>&5
2294 ac_status=$?
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; } &&
2297 { ac_try='test -s conftest.$ac_objext'
2298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 (eval $ac_try) 2>&5
2300 ac_status=$?
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; }; then
2303 ac_compiler_gnu=yes
2304 else
2305 echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2308 ac_compiler_gnu=no
2310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2311 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2314 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2315 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2316 GCC=`test $ac_compiler_gnu = yes && echo yes`
2317 ac_test_CFLAGS=${CFLAGS+set}
2318 ac_save_CFLAGS=$CFLAGS
2319 CFLAGS="-g"
2320 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2321 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2322 if test "${ac_cv_prog_cc_g+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 else
2325 cat >conftest.$ac_ext <<_ACEOF
2326 /* confdefs.h. */
2327 _ACEOF
2328 cat confdefs.h >>conftest.$ac_ext
2329 cat >>conftest.$ac_ext <<_ACEOF
2330 /* end confdefs.h. */
2333 main ()
2337 return 0;
2339 _ACEOF
2340 rm -f conftest.$ac_objext
2341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2342 (eval $ac_compile) 2>conftest.er1
2343 ac_status=$?
2344 grep -v '^ *+' conftest.er1 >conftest.err
2345 rm -f conftest.er1
2346 cat conftest.err >&5
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); } &&
2349 { ac_try='test -z "$ac_c_werror_flag"
2350 || test ! -s conftest.err'
2351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2352 (eval $ac_try) 2>&5
2353 ac_status=$?
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; } &&
2356 { ac_try='test -s conftest.$ac_objext'
2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 (eval $ac_try) 2>&5
2359 ac_status=$?
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; }; then
2362 ac_cv_prog_cc_g=yes
2363 else
2364 echo "$as_me: failed program was:" >&5
2365 sed 's/^/| /' conftest.$ac_ext >&5
2367 ac_cv_prog_cc_g=no
2369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2372 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2373 if test "$ac_test_CFLAGS" = set; then
2374 CFLAGS=$ac_save_CFLAGS
2375 elif test $ac_cv_prog_cc_g = yes; then
2376 if test "$GCC" = yes; then
2377 CFLAGS="-g -O2"
2378 else
2379 CFLAGS="-g"
2381 else
2382 if test "$GCC" = yes; then
2383 CFLAGS="-O2"
2384 else
2385 CFLAGS=
2388 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2389 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2390 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393 ac_cv_prog_cc_stdc=no
2394 ac_save_CC=$CC
2395 cat >conftest.$ac_ext <<_ACEOF
2396 /* confdefs.h. */
2397 _ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h. */
2401 #include <stdarg.h>
2402 #include <stdio.h>
2403 #include <sys/types.h>
2404 #include <sys/stat.h>
2405 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2406 struct buf { int x; };
2407 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2408 static char *e (p, i)
2409 char **p;
2410 int i;
2412 return p[i];
2414 static char *f (char * (*g) (char **, int), char **p, ...)
2416 char *s;
2417 va_list v;
2418 va_start (v,p);
2419 s = g (p, va_arg (v,int));
2420 va_end (v);
2421 return s;
2424 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2425 function prototypes and stuff, but not '\xHH' hex character constants.
2426 These don't provoke an error unfortunately, instead are silently treated
2427 as 'x'. The following induces an error, until -std1 is added to get
2428 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2429 array size at least. It's necessary to write '\x00'==0 to get something
2430 that's true only with -std1. */
2431 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2433 int test (int i, double x);
2434 struct s1 {int (*f) (int a);};
2435 struct s2 {int (*f) (double a);};
2436 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2437 int argc;
2438 char **argv;
2440 main ()
2442 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2444 return 0;
2446 _ACEOF
2447 # Don't try gcc -ansi; that turns off useful extensions and
2448 # breaks some systems' header files.
2449 # AIX -qlanglvl=ansi
2450 # Ultrix and OSF/1 -std1
2451 # HP-UX 10.20 and later -Ae
2452 # HP-UX older versions -Aa -D_HPUX_SOURCE
2453 # SVR4 -Xc -D__EXTENSIONS__
2454 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2456 CC="$ac_save_CC $ac_arg"
2457 rm -f conftest.$ac_objext
2458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2459 (eval $ac_compile) 2>conftest.er1
2460 ac_status=$?
2461 grep -v '^ *+' conftest.er1 >conftest.err
2462 rm -f conftest.er1
2463 cat conftest.err >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); } &&
2466 { ac_try='test -z "$ac_c_werror_flag"
2467 || test ! -s conftest.err'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 (eval $ac_try) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; } &&
2473 { ac_try='test -s conftest.$ac_objext'
2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 (eval $ac_try) 2>&5
2476 ac_status=$?
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; }; then
2479 ac_cv_prog_cc_stdc=$ac_arg
2480 break
2481 else
2482 echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2486 rm -f conftest.err conftest.$ac_objext
2487 done
2488 rm -f conftest.$ac_ext conftest.$ac_objext
2489 CC=$ac_save_CC
2493 case "x$ac_cv_prog_cc_stdc" in
2494 x|xno)
2495 echo "$as_me:$LINENO: result: none needed" >&5
2496 echo "${ECHO_T}none needed" >&6 ;;
2498 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2499 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2500 CC="$CC $ac_cv_prog_cc_stdc" ;;
2501 esac
2503 # Some people use a C++ compiler to compile C. Since we use `exit',
2504 # in C++ we need to declare it. In case someone uses the same compiler
2505 # for both compiling C and C++ we need to have the C++ compiler decide
2506 # the declaration of exit, since it's the most demanding environment.
2507 cat >conftest.$ac_ext <<_ACEOF
2508 #ifndef __cplusplus
2509 choke me
2510 #endif
2511 _ACEOF
2512 rm -f conftest.$ac_objext
2513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2514 (eval $ac_compile) 2>conftest.er1
2515 ac_status=$?
2516 grep -v '^ *+' conftest.er1 >conftest.err
2517 rm -f conftest.er1
2518 cat conftest.err >&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); } &&
2521 { ac_try='test -z "$ac_c_werror_flag"
2522 || test ! -s conftest.err'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 (eval $ac_try) 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; } &&
2528 { ac_try='test -s conftest.$ac_objext'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 (eval $ac_try) 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; }; then
2534 for ac_declaration in \
2535 '' \
2536 'extern "C" void std::exit (int) throw (); using std::exit;' \
2537 'extern "C" void std::exit (int); using std::exit;' \
2538 'extern "C" void exit (int) throw ();' \
2539 'extern "C" void exit (int);' \
2540 'void exit (int);'
2542 cat >conftest.$ac_ext <<_ACEOF
2543 /* confdefs.h. */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h. */
2548 $ac_declaration
2549 #include <stdlib.h>
2551 main ()
2553 exit (42);
2555 return 0;
2557 _ACEOF
2558 rm -f conftest.$ac_objext
2559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2560 (eval $ac_compile) 2>conftest.er1
2561 ac_status=$?
2562 grep -v '^ *+' conftest.er1 >conftest.err
2563 rm -f conftest.er1
2564 cat conftest.err >&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); } &&
2567 { ac_try='test -z "$ac_c_werror_flag"
2568 || test ! -s conftest.err'
2569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 (eval $ac_try) 2>&5
2571 ac_status=$?
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; } &&
2574 { ac_try='test -s conftest.$ac_objext'
2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 (eval $ac_try) 2>&5
2577 ac_status=$?
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; }; then
2581 else
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2585 continue
2587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2588 cat >conftest.$ac_ext <<_ACEOF
2589 /* confdefs.h. */
2590 _ACEOF
2591 cat confdefs.h >>conftest.$ac_ext
2592 cat >>conftest.$ac_ext <<_ACEOF
2593 /* end confdefs.h. */
2594 $ac_declaration
2596 main ()
2598 exit (42);
2600 return 0;
2602 _ACEOF
2603 rm -f conftest.$ac_objext
2604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2605 (eval $ac_compile) 2>conftest.er1
2606 ac_status=$?
2607 grep -v '^ *+' conftest.er1 >conftest.err
2608 rm -f conftest.er1
2609 cat conftest.err >&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); } &&
2612 { ac_try='test -z "$ac_c_werror_flag"
2613 || test ! -s conftest.err'
2614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 (eval $ac_try) 2>&5
2616 ac_status=$?
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; } &&
2619 { ac_try='test -s conftest.$ac_objext'
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 (eval $ac_try) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; }; then
2625 break
2626 else
2627 echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2632 done
2633 rm -f conftest*
2634 if test -n "$ac_declaration"; then
2635 echo '#ifdef __cplusplus' >>confdefs.h
2636 echo $ac_declaration >>confdefs.h
2637 echo '#endif' >>confdefs.h
2640 else
2641 echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2646 ac_ext=c
2647 ac_cpp='$CPP $CPPFLAGS'
2648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2653 ac_ext=c
2654 ac_cpp='$CPP $CPPFLAGS'
2655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2658 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2659 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2660 # On Suns, sometimes $CPP names a directory.
2661 if test -n "$CPP" && test -d "$CPP"; then
2662 CPP=
2664 if test -z "$CPP"; then
2665 if test "${ac_cv_prog_CPP+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668 # Double quotes because CPP needs to be expanded
2669 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2671 ac_preproc_ok=false
2672 for ac_c_preproc_warn_flag in '' yes
2674 # Use a header file that comes with gcc, so configuring glibc
2675 # with a fresh cross-compiler works.
2676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2677 # <limits.h> exists even on freestanding compilers.
2678 # On the NeXT, cc -E runs the code through the compiler's parser,
2679 # not just through cpp. "Syntax error" is here to catch this case.
2680 cat >conftest.$ac_ext <<_ACEOF
2681 /* confdefs.h. */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2686 #ifdef __STDC__
2687 # include <limits.h>
2688 #else
2689 # include <assert.h>
2690 #endif
2691 Syntax error
2692 _ACEOF
2693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2695 ac_status=$?
2696 grep -v '^ *+' conftest.er1 >conftest.err
2697 rm -f conftest.er1
2698 cat conftest.err >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } >/dev/null; then
2701 if test -s conftest.err; then
2702 ac_cpp_err=$ac_c_preproc_warn_flag
2703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2704 else
2705 ac_cpp_err=
2707 else
2708 ac_cpp_err=yes
2710 if test -z "$ac_cpp_err"; then
2712 else
2713 echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2716 # Broken: fails on valid input.
2717 continue
2719 rm -f conftest.err conftest.$ac_ext
2721 # OK, works on sane cases. Now check whether non-existent headers
2722 # can be detected and how.
2723 cat >conftest.$ac_ext <<_ACEOF
2724 /* confdefs.h. */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2729 #include <ac_nonexistent.h>
2730 _ACEOF
2731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2733 ac_status=$?
2734 grep -v '^ *+' conftest.er1 >conftest.err
2735 rm -f conftest.er1
2736 cat conftest.err >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); } >/dev/null; then
2739 if test -s conftest.err; then
2740 ac_cpp_err=$ac_c_preproc_warn_flag
2741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2742 else
2743 ac_cpp_err=
2745 else
2746 ac_cpp_err=yes
2748 if test -z "$ac_cpp_err"; then
2749 # Broken: success on invalid input.
2750 continue
2751 else
2752 echo "$as_me: failed program was:" >&5
2753 sed 's/^/| /' conftest.$ac_ext >&5
2755 # Passes both tests.
2756 ac_preproc_ok=:
2757 break
2759 rm -f conftest.err conftest.$ac_ext
2761 done
2762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2763 rm -f conftest.err conftest.$ac_ext
2764 if $ac_preproc_ok; then
2765 break
2768 done
2769 ac_cv_prog_CPP=$CPP
2772 CPP=$ac_cv_prog_CPP
2773 else
2774 ac_cv_prog_CPP=$CPP
2776 echo "$as_me:$LINENO: result: $CPP" >&5
2777 echo "${ECHO_T}$CPP" >&6
2778 ac_preproc_ok=false
2779 for ac_c_preproc_warn_flag in '' yes
2781 # Use a header file that comes with gcc, so configuring glibc
2782 # with a fresh cross-compiler works.
2783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2784 # <limits.h> exists even on freestanding compilers.
2785 # On the NeXT, cc -E runs the code through the compiler's parser,
2786 # not just through cpp. "Syntax error" is here to catch this case.
2787 cat >conftest.$ac_ext <<_ACEOF
2788 /* confdefs.h. */
2789 _ACEOF
2790 cat confdefs.h >>conftest.$ac_ext
2791 cat >>conftest.$ac_ext <<_ACEOF
2792 /* end confdefs.h. */
2793 #ifdef __STDC__
2794 # include <limits.h>
2795 #else
2796 # include <assert.h>
2797 #endif
2798 Syntax error
2799 _ACEOF
2800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2802 ac_status=$?
2803 grep -v '^ *+' conftest.er1 >conftest.err
2804 rm -f conftest.er1
2805 cat conftest.err >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } >/dev/null; then
2808 if test -s conftest.err; then
2809 ac_cpp_err=$ac_c_preproc_warn_flag
2810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2811 else
2812 ac_cpp_err=
2814 else
2815 ac_cpp_err=yes
2817 if test -z "$ac_cpp_err"; then
2819 else
2820 echo "$as_me: failed program was:" >&5
2821 sed 's/^/| /' conftest.$ac_ext >&5
2823 # Broken: fails on valid input.
2824 continue
2826 rm -f conftest.err conftest.$ac_ext
2828 # OK, works on sane cases. Now check whether non-existent headers
2829 # can be detected and how.
2830 cat >conftest.$ac_ext <<_ACEOF
2831 /* confdefs.h. */
2832 _ACEOF
2833 cat confdefs.h >>conftest.$ac_ext
2834 cat >>conftest.$ac_ext <<_ACEOF
2835 /* end confdefs.h. */
2836 #include <ac_nonexistent.h>
2837 _ACEOF
2838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2840 ac_status=$?
2841 grep -v '^ *+' conftest.er1 >conftest.err
2842 rm -f conftest.er1
2843 cat conftest.err >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } >/dev/null; then
2846 if test -s conftest.err; then
2847 ac_cpp_err=$ac_c_preproc_warn_flag
2848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2849 else
2850 ac_cpp_err=
2852 else
2853 ac_cpp_err=yes
2855 if test -z "$ac_cpp_err"; then
2856 # Broken: success on invalid input.
2857 continue
2858 else
2859 echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2862 # Passes both tests.
2863 ac_preproc_ok=:
2864 break
2866 rm -f conftest.err conftest.$ac_ext
2868 done
2869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2870 rm -f conftest.err conftest.$ac_ext
2871 if $ac_preproc_ok; then
2873 else
2874 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2875 See \`config.log' for more details." >&5
2876 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2877 See \`config.log' for more details." >&2;}
2878 { (exit 1); exit 1; }; }
2881 ac_ext=c
2882 ac_cpp='$CPP $CPPFLAGS'
2883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2888 echo "$as_me:$LINENO: checking for egrep" >&5
2889 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2890 if test "${ac_cv_prog_egrep+set}" = set; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2892 else
2893 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2894 then ac_cv_prog_egrep='grep -E'
2895 else ac_cv_prog_egrep='egrep'
2898 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2899 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2900 EGREP=$ac_cv_prog_egrep
2903 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2904 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2905 if test "${ac_cv_header_stdc+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908 cat >conftest.$ac_ext <<_ACEOF
2909 /* confdefs.h. */
2910 _ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2914 #include <stdlib.h>
2915 #include <stdarg.h>
2916 #include <string.h>
2917 #include <float.h>
2920 main ()
2924 return 0;
2926 _ACEOF
2927 rm -f conftest.$ac_objext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2929 (eval $ac_compile) 2>conftest.er1
2930 ac_status=$?
2931 grep -v '^ *+' conftest.er1 >conftest.err
2932 rm -f conftest.er1
2933 cat conftest.err >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } &&
2936 { ac_try='test -z "$ac_c_werror_flag"
2937 || test ! -s conftest.err'
2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939 (eval $ac_try) 2>&5
2940 ac_status=$?
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; } &&
2943 { ac_try='test -s conftest.$ac_objext'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945 (eval $ac_try) 2>&5
2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; }; then
2949 ac_cv_header_stdc=yes
2950 else
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2954 ac_cv_header_stdc=no
2956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2958 if test $ac_cv_header_stdc = yes; then
2959 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2960 cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h. */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2966 #include <string.h>
2968 _ACEOF
2969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2970 $EGREP "memchr" >/dev/null 2>&1; then
2972 else
2973 ac_cv_header_stdc=no
2975 rm -f conftest*
2979 if test $ac_cv_header_stdc = yes; then
2980 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2981 cat >conftest.$ac_ext <<_ACEOF
2982 /* confdefs.h. */
2983 _ACEOF
2984 cat confdefs.h >>conftest.$ac_ext
2985 cat >>conftest.$ac_ext <<_ACEOF
2986 /* end confdefs.h. */
2987 #include <stdlib.h>
2989 _ACEOF
2990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2991 $EGREP "free" >/dev/null 2>&1; then
2993 else
2994 ac_cv_header_stdc=no
2996 rm -f conftest*
3000 if test $ac_cv_header_stdc = yes; then
3001 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3002 if test "$cross_compiling" = yes; then
3004 else
3005 cat >conftest.$ac_ext <<_ACEOF
3006 /* confdefs.h. */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3011 #include <ctype.h>
3012 #if ((' ' & 0x0FF) == 0x020)
3013 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3014 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3015 #else
3016 # define ISLOWER(c) \
3017 (('a' <= (c) && (c) <= 'i') \
3018 || ('j' <= (c) && (c) <= 'r') \
3019 || ('s' <= (c) && (c) <= 'z'))
3020 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3021 #endif
3023 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3025 main ()
3027 int i;
3028 for (i = 0; i < 256; i++)
3029 if (XOR (islower (i), ISLOWER (i))
3030 || toupper (i) != TOUPPER (i))
3031 exit(2);
3032 exit (0);
3034 _ACEOF
3035 rm -f conftest$ac_exeext
3036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3037 (eval $ac_link) 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042 (eval $ac_try) 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; }; then
3047 else
3048 echo "$as_me: program exited with status $ac_status" >&5
3049 echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3052 ( exit $ac_status )
3053 ac_cv_header_stdc=no
3055 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3059 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3060 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3061 if test $ac_cv_header_stdc = yes; then
3063 cat >>confdefs.h <<\_ACEOF
3064 #define STDC_HEADERS 1
3065 _ACEOF
3069 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3079 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3080 inttypes.h stdint.h unistd.h
3082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3083 echo "$as_me:$LINENO: checking for $ac_header" >&5
3084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3086 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 else
3088 cat >conftest.$ac_ext <<_ACEOF
3089 /* confdefs.h. */
3090 _ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h. */
3094 $ac_includes_default
3096 #include <$ac_header>
3097 _ACEOF
3098 rm -f conftest.$ac_objext
3099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3100 (eval $ac_compile) 2>conftest.er1
3101 ac_status=$?
3102 grep -v '^ *+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } &&
3107 { ac_try='test -z "$ac_c_werror_flag"
3108 || test ! -s conftest.err'
3109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110 (eval $ac_try) 2>&5
3111 ac_status=$?
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; } &&
3114 { ac_try='test -s conftest.$ac_objext'
3115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116 (eval $ac_try) 2>&5
3117 ac_status=$?
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; }; then
3120 eval "$as_ac_Header=yes"
3121 else
3122 echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3125 eval "$as_ac_Header=no"
3127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3132 cat >>confdefs.h <<_ACEOF
3133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3134 _ACEOF
3138 done
3141 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
3142 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
3143 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
3144 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
3148 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
3149 else
3150 # Is the header compilable?
3151 echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
3152 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6
3153 cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h. */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3159 $ac_includes_default
3160 #include <alsa/asoundlib.h>
3161 _ACEOF
3162 rm -f conftest.$ac_objext
3163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3164 (eval $ac_compile) 2>conftest.er1
3165 ac_status=$?
3166 grep -v '^ *+' conftest.er1 >conftest.err
3167 rm -f conftest.er1
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } &&
3171 { ac_try='test -z "$ac_c_werror_flag"
3172 || test ! -s conftest.err'
3173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174 (eval $ac_try) 2>&5
3175 ac_status=$?
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; } &&
3178 { ac_try='test -s conftest.$ac_objext'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180 (eval $ac_try) 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3184 ac_header_compiler=yes
3185 else
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3189 ac_header_compiler=no
3191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3193 echo "${ECHO_T}$ac_header_compiler" >&6
3195 # Is the header present?
3196 echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
3197 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6
3198 cat >conftest.$ac_ext <<_ACEOF
3199 /* confdefs.h. */
3200 _ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h. */
3204 #include <alsa/asoundlib.h>
3205 _ACEOF
3206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3208 ac_status=$?
3209 grep -v '^ *+' conftest.er1 >conftest.err
3210 rm -f conftest.er1
3211 cat conftest.err >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); } >/dev/null; then
3214 if test -s conftest.err; then
3215 ac_cpp_err=$ac_c_preproc_warn_flag
3216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3217 else
3218 ac_cpp_err=
3220 else
3221 ac_cpp_err=yes
3223 if test -z "$ac_cpp_err"; then
3224 ac_header_preproc=yes
3225 else
3226 echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3229 ac_header_preproc=no
3231 rm -f conftest.err conftest.$ac_ext
3232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3233 echo "${ECHO_T}$ac_header_preproc" >&6
3235 # So? What about this header?
3236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3237 yes:no: )
3238 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
3239 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3240 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
3241 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
3242 ac_header_preproc=yes
3244 no:yes:* )
3245 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
3246 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
3247 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
3248 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
3249 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
3250 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
3251 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
3252 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
3253 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
3254 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
3255 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
3256 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
3258 cat <<\_ASBOX
3259 ## ------------------------------------------ ##
3260 ## Report this to the AC_PACKAGE_NAME lists. ##
3261 ## ------------------------------------------ ##
3262 _ASBOX
3264 sed "s/^/$as_me: WARNING: /" >&2
3266 esac
3267 echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
3268 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6
3269 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
3274 echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
3275 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6
3278 if test $ac_cv_header_alsa_asoundlib_h = yes; then
3279 ALSAHDR=1
3283 echo "$as_me:$LINENO: checking for ALSA sound support" >&5
3284 echo $ECHO_N "checking for ALSA sound support... $ECHO_C" >&6
3285 if test "${ALSAHDR}z" != "z"; then
3286 HAS_ALSA=1
3288 echo "$as_me:$LINENO: result: yes" >&5
3289 echo "${ECHO_T}yes" >&6
3290 else
3291 echo "$as_me:$LINENO: result: no" >&5
3292 echo "${ECHO_T}no" >&6
3297 # Check whether --enable-esd or --disable-esd was given.
3298 if test "${enable_esd+set}" = set; then
3299 enableval="$enable_esd"
3301 else
3302 enable_esd=no
3305 if test "${enable_esd}z" = "yesz" ; then
3306 if test "${ac_cv_header_esd_h+set}" = set; then
3307 echo "$as_me:$LINENO: checking for esd.h" >&5
3308 echo $ECHO_N "checking for esd.h... $ECHO_C" >&6
3309 if test "${ac_cv_header_esd_h+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5
3313 echo "${ECHO_T}$ac_cv_header_esd_h" >&6
3314 else
3315 # Is the header compilable?
3316 echo "$as_me:$LINENO: checking esd.h usability" >&5
3317 echo $ECHO_N "checking esd.h usability... $ECHO_C" >&6
3318 cat >conftest.$ac_ext <<_ACEOF
3319 /* confdefs.h. */
3320 _ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3324 $ac_includes_default
3325 #include <esd.h>
3326 _ACEOF
3327 rm -f conftest.$ac_objext
3328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3329 (eval $ac_compile) 2>conftest.er1
3330 ac_status=$?
3331 grep -v '^ *+' conftest.er1 >conftest.err
3332 rm -f conftest.er1
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } &&
3336 { ac_try='test -z "$ac_c_werror_flag"
3337 || test ! -s conftest.err'
3338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339 (eval $ac_try) 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; } &&
3343 { ac_try='test -s conftest.$ac_objext'
3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 (eval $ac_try) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; }; then
3349 ac_header_compiler=yes
3350 else
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3354 ac_header_compiler=no
3356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3358 echo "${ECHO_T}$ac_header_compiler" >&6
3360 # Is the header present?
3361 echo "$as_me:$LINENO: checking esd.h presence" >&5
3362 echo $ECHO_N "checking esd.h presence... $ECHO_C" >&6
3363 cat >conftest.$ac_ext <<_ACEOF
3364 /* confdefs.h. */
3365 _ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3369 #include <esd.h>
3370 _ACEOF
3371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3373 ac_status=$?
3374 grep -v '^ *+' conftest.er1 >conftest.err
3375 rm -f conftest.er1
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } >/dev/null; then
3379 if test -s conftest.err; then
3380 ac_cpp_err=$ac_c_preproc_warn_flag
3381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3382 else
3383 ac_cpp_err=
3385 else
3386 ac_cpp_err=yes
3388 if test -z "$ac_cpp_err"; then
3389 ac_header_preproc=yes
3390 else
3391 echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3394 ac_header_preproc=no
3396 rm -f conftest.err conftest.$ac_ext
3397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3398 echo "${ECHO_T}$ac_header_preproc" >&6
3400 # So? What about this header?
3401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3402 yes:no: )
3403 { echo "$as_me:$LINENO: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&5
3404 echo "$as_me: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3405 { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the compiler's result" >&5
3406 echo "$as_me: WARNING: esd.h: proceeding with the compiler's result" >&2;}
3407 ac_header_preproc=yes
3409 no:yes:* )
3410 { echo "$as_me:$LINENO: WARNING: esd.h: present but cannot be compiled" >&5
3411 echo "$as_me: WARNING: esd.h: present but cannot be compiled" >&2;}
3412 { echo "$as_me:$LINENO: WARNING: esd.h: check for missing prerequisite headers?" >&5
3413 echo "$as_me: WARNING: esd.h: check for missing prerequisite headers?" >&2;}
3414 { echo "$as_me:$LINENO: WARNING: esd.h: see the Autoconf documentation" >&5
3415 echo "$as_me: WARNING: esd.h: see the Autoconf documentation" >&2;}
3416 { echo "$as_me:$LINENO: WARNING: esd.h: section \"Present But Cannot Be Compiled\"" >&5
3417 echo "$as_me: WARNING: esd.h: section \"Present But Cannot Be Compiled\"" >&2;}
3418 { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5
3419 echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;}
3420 { echo "$as_me:$LINENO: WARNING: esd.h: in the future, the compiler will take precedence" >&5
3421 echo "$as_me: WARNING: esd.h: in the future, the compiler will take precedence" >&2;}
3423 cat <<\_ASBOX
3424 ## ------------------------------------------ ##
3425 ## Report this to the AC_PACKAGE_NAME lists. ##
3426 ## ------------------------------------------ ##
3427 _ASBOX
3429 sed "s/^/$as_me: WARNING: /" >&2
3431 esac
3432 echo "$as_me:$LINENO: checking for esd.h" >&5
3433 echo $ECHO_N "checking for esd.h... $ECHO_C" >&6
3434 if test "${ac_cv_header_esd_h+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437 ac_cv_header_esd_h=$ac_header_preproc
3439 echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5
3440 echo "${ECHO_T}$ac_cv_header_esd_h" >&6
3443 if test $ac_cv_header_esd_h = yes; then
3444 ESDHDR=1
3448 echo "$as_me:$LINENO: checking for ESD sound support" >&5
3449 echo $ECHO_N "checking for ESD sound support... $ECHO_C" >&6
3450 if test "${ESDHDR}z" != "z"; then
3451 HAS_ESD=1
3453 echo "$as_me:$LINENO: result: yes" >&5
3454 echo "${ECHO_T}yes" >&6
3455 else
3456 echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6
3462 # Check whether --enable-oss or --disable-oss was given.
3463 if test "${enable_oss+set}" = set; then
3464 enableval="$enable_oss"
3466 else
3467 enable_oss=no
3470 if test "${enable_oss}z" = "yesz" ; then
3471 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
3472 echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
3473 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
3474 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
3478 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
3479 else
3480 # Is the header compilable?
3481 echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
3482 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6
3483 cat >conftest.$ac_ext <<_ACEOF
3484 /* confdefs.h. */
3485 _ACEOF
3486 cat confdefs.h >>conftest.$ac_ext
3487 cat >>conftest.$ac_ext <<_ACEOF
3488 /* end confdefs.h. */
3489 $ac_includes_default
3490 #include <sys/soundcard.h>
3491 _ACEOF
3492 rm -f conftest.$ac_objext
3493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3494 (eval $ac_compile) 2>conftest.er1
3495 ac_status=$?
3496 grep -v '^ *+' conftest.er1 >conftest.err
3497 rm -f conftest.er1
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } &&
3501 { ac_try='test -z "$ac_c_werror_flag"
3502 || test ! -s conftest.err'
3503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504 (eval $ac_try) 2>&5
3505 ac_status=$?
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; } &&
3508 { ac_try='test -s conftest.$ac_objext'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 (eval $ac_try) 2>&5
3511 ac_status=$?
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; }; then
3514 ac_header_compiler=yes
3515 else
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3519 ac_header_compiler=no
3521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3522 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3523 echo "${ECHO_T}$ac_header_compiler" >&6
3525 # Is the header present?
3526 echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
3527 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6
3528 cat >conftest.$ac_ext <<_ACEOF
3529 /* confdefs.h. */
3530 _ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3534 #include <sys/soundcard.h>
3535 _ACEOF
3536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3538 ac_status=$?
3539 grep -v '^ *+' conftest.er1 >conftest.err
3540 rm -f conftest.er1
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } >/dev/null; then
3544 if test -s conftest.err; then
3545 ac_cpp_err=$ac_c_preproc_warn_flag
3546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3547 else
3548 ac_cpp_err=
3550 else
3551 ac_cpp_err=yes
3553 if test -z "$ac_cpp_err"; then
3554 ac_header_preproc=yes
3555 else
3556 echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3559 ac_header_preproc=no
3561 rm -f conftest.err conftest.$ac_ext
3562 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3563 echo "${ECHO_T}$ac_header_preproc" >&6
3565 # So? What about this header?
3566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3567 yes:no: )
3568 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
3569 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3570 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
3571 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
3572 ac_header_preproc=yes
3574 no:yes:* )
3575 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
3576 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
3577 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
3578 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
3579 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
3580 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
3581 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
3582 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
3583 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
3584 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
3585 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
3586 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
3588 cat <<\_ASBOX
3589 ## ------------------------------------------ ##
3590 ## Report this to the AC_PACKAGE_NAME lists. ##
3591 ## ------------------------------------------ ##
3592 _ASBOX
3594 sed "s/^/$as_me: WARNING: /" >&2
3596 esac
3597 echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
3598 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
3599 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
3600 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 else
3602 ac_cv_header_sys_soundcard_h=$ac_header_preproc
3604 echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
3605 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
3608 if test $ac_cv_header_sys_soundcard_h = yes; then
3609 SNDCARDHDR=1
3613 echo "$as_me:$LINENO: checking for OSS sound support" >&5
3614 echo $ECHO_N "checking for OSS sound support... $ECHO_C" >&6
3615 if test "${SNDCARDHDR}z" != "z"; then
3616 HAS_OSS=1
3618 echo "$as_me:$LINENO: result: yes" >&5
3619 echo "${ECHO_T}yes" >&6
3620 else
3621 echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6
3627 # Check whether --enable-sunaudio or --disable-sunaudio was given.
3628 if test "${enable_sunaudio+set}" = set; then
3629 enableval="$enable_sunaudio"
3631 else
3632 enable_sunaudio=no
3635 if test "${enable_sunaudio}z" = "yesz" ; then
3636 if test "${ac_cv_header_sys_conf_h+set}" = set; then
3637 echo "$as_me:$LINENO: checking for sys/conf.h" >&5
3638 echo $ECHO_N "checking for sys/conf.h... $ECHO_C" >&6
3639 if test "${ac_cv_header_sys_conf_h+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3642 echo "$as_me:$LINENO: result: $ac_cv_header_sys_conf_h" >&5
3643 echo "${ECHO_T}$ac_cv_header_sys_conf_h" >&6
3644 else
3645 # Is the header compilable?
3646 echo "$as_me:$LINENO: checking sys/conf.h usability" >&5
3647 echo $ECHO_N "checking sys/conf.h usability... $ECHO_C" >&6
3648 cat >conftest.$ac_ext <<_ACEOF
3649 /* confdefs.h. */
3650 _ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h. */
3654 $ac_includes_default
3655 #include <sys/conf.h>
3656 _ACEOF
3657 rm -f conftest.$ac_objext
3658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659 (eval $ac_compile) 2>conftest.er1
3660 ac_status=$?
3661 grep -v '^ *+' conftest.er1 >conftest.err
3662 rm -f conftest.er1
3663 cat conftest.err >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
3666 { ac_try='test -z "$ac_c_werror_flag"
3667 || test ! -s conftest.err'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; } &&
3673 { ac_try='test -s conftest.$ac_objext'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 (eval $ac_try) 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3679 ac_header_compiler=yes
3680 else
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3684 ac_header_compiler=no
3686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3688 echo "${ECHO_T}$ac_header_compiler" >&6
3690 # Is the header present?
3691 echo "$as_me:$LINENO: checking sys/conf.h presence" >&5
3692 echo $ECHO_N "checking sys/conf.h presence... $ECHO_C" >&6
3693 cat >conftest.$ac_ext <<_ACEOF
3694 /* confdefs.h. */
3695 _ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h. */
3699 #include <sys/conf.h>
3700 _ACEOF
3701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3703 ac_status=$?
3704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } >/dev/null; then
3709 if test -s conftest.err; then
3710 ac_cpp_err=$ac_c_preproc_warn_flag
3711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3712 else
3713 ac_cpp_err=
3715 else
3716 ac_cpp_err=yes
3718 if test -z "$ac_cpp_err"; then
3719 ac_header_preproc=yes
3720 else
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3724 ac_header_preproc=no
3726 rm -f conftest.err conftest.$ac_ext
3727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3728 echo "${ECHO_T}$ac_header_preproc" >&6
3730 # So? What about this header?
3731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3732 yes:no: )
3733 { echo "$as_me:$LINENO: WARNING: sys/conf.h: accepted by the compiler, rejected by the preprocessor!" >&5
3734 echo "$as_me: WARNING: sys/conf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3735 { echo "$as_me:$LINENO: WARNING: sys/conf.h: proceeding with the compiler's result" >&5
3736 echo "$as_me: WARNING: sys/conf.h: proceeding with the compiler's result" >&2;}
3737 ac_header_preproc=yes
3739 no:yes:* )
3740 { echo "$as_me:$LINENO: WARNING: sys/conf.h: present but cannot be compiled" >&5
3741 echo "$as_me: WARNING: sys/conf.h: present but cannot be compiled" >&2;}
3742 { echo "$as_me:$LINENO: WARNING: sys/conf.h: check for missing prerequisite headers?" >&5
3743 echo "$as_me: WARNING: sys/conf.h: check for missing prerequisite headers?" >&2;}
3744 { echo "$as_me:$LINENO: WARNING: sys/conf.h: see the Autoconf documentation" >&5
3745 echo "$as_me: WARNING: sys/conf.h: see the Autoconf documentation" >&2;}
3746 { echo "$as_me:$LINENO: WARNING: sys/conf.h: section \"Present But Cannot Be Compiled\"" >&5
3747 echo "$as_me: WARNING: sys/conf.h: section \"Present But Cannot Be Compiled\"" >&2;}
3748 { echo "$as_me:$LINENO: WARNING: sys/conf.h: proceeding with the preprocessor's result" >&5
3749 echo "$as_me: WARNING: sys/conf.h: proceeding with the preprocessor's result" >&2;}
3750 { echo "$as_me:$LINENO: WARNING: sys/conf.h: in the future, the compiler will take precedence" >&5
3751 echo "$as_me: WARNING: sys/conf.h: in the future, the compiler will take precedence" >&2;}
3753 cat <<\_ASBOX
3754 ## ------------------------------------------ ##
3755 ## Report this to the AC_PACKAGE_NAME lists. ##
3756 ## ------------------------------------------ ##
3757 _ASBOX
3759 sed "s/^/$as_me: WARNING: /" >&2
3761 esac
3762 echo "$as_me:$LINENO: checking for sys/conf.h" >&5
3763 echo $ECHO_N "checking for sys/conf.h... $ECHO_C" >&6
3764 if test "${ac_cv_header_sys_conf_h+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 else
3767 ac_cv_header_sys_conf_h=$ac_header_preproc
3769 echo "$as_me:$LINENO: result: $ac_cv_header_sys_conf_h" >&5
3770 echo "${ECHO_T}$ac_cv_header_sys_conf_h" >&6
3773 if test $ac_cv_header_sys_conf_h = yes; then
3774 SNDCARDHDR=1
3778 echo "$as_me:$LINENO: checking for Sun audio sound support" >&5
3779 echo $ECHO_N "checking for Sun audio sound support... $ECHO_C" >&6
3780 if test "${SNDCARDHDR}z" != "z"; then
3781 HAS_SUNAUDIO=1
3783 echo "$as_me:$LINENO: result: yes" >&5
3784 echo "${ECHO_T}yes" >&6
3785 else
3786 echo "$as_me:$LINENO: result: no" >&5
3787 echo "${ECHO_T}no" >&6
3790 fi # enable_audio
3792 # Check whether --enable-video or --disable-video was given.
3793 if test "${enable_video+set}" = set; then
3794 enableval="$enable_video"
3798 if test "${enable_video}z" = "z" ; then
3799 enable_video=yes
3802 if test "$enable_video" = "yes" ; then
3805 # Check whether --enable-v4l or --disable-v4l was given.
3806 if test "${enable_v4l+set}" = set; then
3807 enableval="$enable_v4l"
3809 else
3810 enable_v4l=yes
3813 if test "${enable_v4l}z" = "yesz" ; then
3814 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
3815 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
3816 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
3817 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
3821 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
3822 else
3823 # Is the header compilable?
3824 echo "$as_me:$LINENO: checking linux/videodev.h usability" >&5
3825 echo $ECHO_N "checking linux/videodev.h usability... $ECHO_C" >&6
3826 cat >conftest.$ac_ext <<_ACEOF
3827 /* confdefs.h. */
3828 _ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3832 $ac_includes_default
3833 #include <linux/videodev.h>
3834 _ACEOF
3835 rm -f conftest.$ac_objext
3836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3837 (eval $ac_compile) 2>conftest.er1
3838 ac_status=$?
3839 grep -v '^ *+' conftest.er1 >conftest.err
3840 rm -f conftest.er1
3841 cat conftest.err >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); } &&
3844 { ac_try='test -z "$ac_c_werror_flag"
3845 || test ! -s conftest.err'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 (eval $ac_try) 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; } &&
3851 { ac_try='test -s conftest.$ac_objext'
3852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853 (eval $ac_try) 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; }; then
3857 ac_header_compiler=yes
3858 else
3859 echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3862 ac_header_compiler=no
3864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3866 echo "${ECHO_T}$ac_header_compiler" >&6
3868 # Is the header present?
3869 echo "$as_me:$LINENO: checking linux/videodev.h presence" >&5
3870 echo $ECHO_N "checking linux/videodev.h presence... $ECHO_C" >&6
3871 cat >conftest.$ac_ext <<_ACEOF
3872 /* confdefs.h. */
3873 _ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3877 #include <linux/videodev.h>
3878 _ACEOF
3879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3881 ac_status=$?
3882 grep -v '^ *+' conftest.er1 >conftest.err
3883 rm -f conftest.er1
3884 cat conftest.err >&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); } >/dev/null; then
3887 if test -s conftest.err; then
3888 ac_cpp_err=$ac_c_preproc_warn_flag
3889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3890 else
3891 ac_cpp_err=
3893 else
3894 ac_cpp_err=yes
3896 if test -z "$ac_cpp_err"; then
3897 ac_header_preproc=yes
3898 else
3899 echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3902 ac_header_preproc=no
3904 rm -f conftest.err conftest.$ac_ext
3905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3906 echo "${ECHO_T}$ac_header_preproc" >&6
3908 # So? What about this header?
3909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3910 yes:no: )
3911 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&5
3912 echo "$as_me: WARNING: linux/videodev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3913 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the compiler's result" >&5
3914 echo "$as_me: WARNING: linux/videodev.h: proceeding with the compiler's result" >&2;}
3915 ac_header_preproc=yes
3917 no:yes:* )
3918 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: present but cannot be compiled" >&5
3919 echo "$as_me: WARNING: linux/videodev.h: present but cannot be compiled" >&2;}
3920 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&5
3921 echo "$as_me: WARNING: linux/videodev.h: check for missing prerequisite headers?" >&2;}
3922 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: see the Autoconf documentation" >&5
3923 echo "$as_me: WARNING: linux/videodev.h: see the Autoconf documentation" >&2;}
3924 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&5
3925 echo "$as_me: WARNING: linux/videodev.h: section \"Present But Cannot Be Compiled\"" >&2;}
3926 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&5
3927 echo "$as_me: WARNING: linux/videodev.h: proceeding with the preprocessor's result" >&2;}
3928 { echo "$as_me:$LINENO: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&5
3929 echo "$as_me: WARNING: linux/videodev.h: in the future, the compiler will take precedence" >&2;}
3931 cat <<\_ASBOX
3932 ## ------------------------------------------ ##
3933 ## Report this to the AC_PACKAGE_NAME lists. ##
3934 ## ------------------------------------------ ##
3935 _ASBOX
3937 sed "s/^/$as_me: WARNING: /" >&2
3939 esac
3940 echo "$as_me:$LINENO: checking for linux/videodev.h" >&5
3941 echo $ECHO_N "checking for linux/videodev.h... $ECHO_C" >&6
3942 if test "${ac_cv_header_linux_videodev_h+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945 ac_cv_header_linux_videodev_h=$ac_header_preproc
3947 echo "$as_me:$LINENO: result: $ac_cv_header_linux_videodev_h" >&5
3948 echo "${ECHO_T}$ac_cv_header_linux_videodev_h" >&6
3951 if test $ac_cv_header_linux_videodev_h = yes; then
3952 V4LHDR=1
3956 echo "$as_me:$LINENO: checking for V4L video support" >&5
3957 echo $ECHO_N "checking for V4L video support... $ECHO_C" >&6
3958 if test "${V4LHDR}z" != "z"; then
3959 HAS_V4L=1
3961 echo "$as_me:$LINENO: result: yes" >&5
3962 echo "${ECHO_T}yes" >&6
3963 else
3964 echo "$as_me:$LINENO: result: no" >&5
3965 echo "${ECHO_T}no" >&6
3970 # Check whether --enable-v4l2 or --disable-v4l2 was given.
3971 if test "${enable_v4l2+set}" = set; then
3972 enableval="$enable_v4l2"
3974 else
3975 enable_v4l2=yes
3978 if test "${enable_v4l2}z" = "yesz" ; then
3979 if test "${OSTYPE}z" = "solaris2.11z"; then
3980 VIDEODEV="sys/videodev2.h"
3981 else
3982 VIDEODEV="linux/videodev2.h"
3984 as_ac_Header=`echo "ac_cv_header_$VIDEODEV" | $as_tr_sh`
3985 echo "$as_me:$LINENO: checking for $VIDEODEV" >&5
3986 echo $ECHO_N "checking for $VIDEODEV... $ECHO_C" >&6
3987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 else
3990 cat >conftest.$ac_ext <<_ACEOF
3991 /* confdefs.h. */
3992 _ACEOF
3993 cat confdefs.h >>conftest.$ac_ext
3994 cat >>conftest.$ac_ext <<_ACEOF
3995 /* end confdefs.h. */
3997 #ifdef __linux__
3998 #include <linux/types.h>
3999 #endif
4002 #include <$VIDEODEV>
4003 _ACEOF
4004 rm -f conftest.$ac_objext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4006 (eval $ac_compile) 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
4013 { ac_try='test -z "$ac_c_werror_flag"
4014 || test ! -s conftest.err'
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016 (eval $ac_try) 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; } &&
4020 { ac_try='test -s conftest.$ac_objext'
4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022 (eval $ac_try) 2>&5
4023 ac_status=$?
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; }; then
4026 eval "$as_ac_Header=yes"
4027 else
4028 echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4031 eval "$as_ac_Header=no"
4033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4038 V4L2HDR=1
4039 else
4041 # We can't use AC_CHECK_HEADER again because
4042 # the value is cached, perhaps we have another
4043 # method to do this more cleanly ?
4044 echo "$as_me:$LINENO: checking for $VIDEODEV with sys/types.h" >&5
4045 echo $ECHO_N "checking for $VIDEODEV with sys/types.h... $ECHO_C" >&6
4046 cat >conftest.$ac_ext <<_ACEOF
4047 /* confdefs.h. */
4048 _ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4053 #ifdef __linux__
4054 #include <sys/types.h>
4055 #include <linux/types.h>
4056 #else
4057 #ifdef __sun
4058 #include <sys/types.h>
4059 #include <sys/time.h>
4060 #else
4061 #error "not supported"
4062 #endif
4063 #endif
4066 main ()
4069 return 0;
4072 return 0;
4074 _ACEOF
4075 rm -f conftest.$ac_objext
4076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4077 (eval $ac_compile) 2>conftest.er1
4078 ac_status=$?
4079 grep -v '^ *+' conftest.er1 >conftest.err
4080 rm -f conftest.er1
4081 cat conftest.err >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } &&
4084 { ac_try='test -z "$ac_c_werror_flag"
4085 || test ! -s conftest.err'
4086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 (eval $ac_try) 2>&5
4088 ac_status=$?
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; } &&
4091 { ac_try='test -s conftest.$ac_objext'
4092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093 (eval $ac_try) 2>&5
4094 ac_status=$?
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; }; then
4098 V4L2HDR=1
4099 echo "$as_me:$LINENO: result: yes" >&5
4100 echo "${ECHO_T}yes" >&6
4102 else
4103 echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4107 echo "$as_me:$LINENO: result: no" >&5
4108 echo "${ECHO_T}no" >&6
4111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4116 echo "$as_me:$LINENO: checking for V4L2 video support" >&5
4117 echo $ECHO_N "checking for V4L2 video support... $ECHO_C" >&6
4118 if test "${V4L2HDR}z" != "z"; then
4119 HAS_V4L2=1
4121 echo "$as_me:$LINENO: result: yes" >&5
4122 echo "${ECHO_T}yes" >&6
4123 else
4124 echo "$as_me:$LINENO: result: no" >&5
4125 echo "${ECHO_T}no" >&6
4130 # Check whether --enable-bsdvideo or --disable-bsdvideo was given.
4131 if test "${enable_bsdvideo+set}" = set; then
4132 enableval="$enable_bsdvideo"
4134 else
4135 enable_bsdvideo=yes
4138 if test "${enable_bsdvideo}z" = "yesz" ; then
4139 if test "${ac_cv_header_machine_ioctl_meteor_h+set}" = set; then
4140 echo "$as_me:$LINENO: checking for machine/ioctl_meteor.h" >&5
4141 echo $ECHO_N "checking for machine/ioctl_meteor.h... $ECHO_C" >&6
4142 if test "${ac_cv_header_machine_ioctl_meteor_h+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 echo "$as_me:$LINENO: result: $ac_cv_header_machine_ioctl_meteor_h" >&5
4146 echo "${ECHO_T}$ac_cv_header_machine_ioctl_meteor_h" >&6
4147 else
4148 # Is the header compilable?
4149 echo "$as_me:$LINENO: checking machine/ioctl_meteor.h usability" >&5
4150 echo $ECHO_N "checking machine/ioctl_meteor.h usability... $ECHO_C" >&6
4151 cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h. */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4157 $ac_includes_default
4158 #include <machine/ioctl_meteor.h>
4159 _ACEOF
4160 rm -f conftest.$ac_objext
4161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4162 (eval $ac_compile) 2>conftest.er1
4163 ac_status=$?
4164 grep -v '^ *+' conftest.er1 >conftest.err
4165 rm -f conftest.er1
4166 cat conftest.err >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); } &&
4169 { ac_try='test -z "$ac_c_werror_flag"
4170 || test ! -s conftest.err'
4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 (eval $ac_try) 2>&5
4173 ac_status=$?
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); }; } &&
4176 { ac_try='test -s conftest.$ac_objext'
4177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178 (eval $ac_try) 2>&5
4179 ac_status=$?
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; }; then
4182 ac_header_compiler=yes
4183 else
4184 echo "$as_me: failed program was:" >&5
4185 sed 's/^/| /' conftest.$ac_ext >&5
4187 ac_header_compiler=no
4189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4191 echo "${ECHO_T}$ac_header_compiler" >&6
4193 # Is the header present?
4194 echo "$as_me:$LINENO: checking machine/ioctl_meteor.h presence" >&5
4195 echo $ECHO_N "checking machine/ioctl_meteor.h presence... $ECHO_C" >&6
4196 cat >conftest.$ac_ext <<_ACEOF
4197 /* confdefs.h. */
4198 _ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4202 #include <machine/ioctl_meteor.h>
4203 _ACEOF
4204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4206 ac_status=$?
4207 grep -v '^ *+' conftest.er1 >conftest.err
4208 rm -f conftest.er1
4209 cat conftest.err >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } >/dev/null; then
4212 if test -s conftest.err; then
4213 ac_cpp_err=$ac_c_preproc_warn_flag
4214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4215 else
4216 ac_cpp_err=
4218 else
4219 ac_cpp_err=yes
4221 if test -z "$ac_cpp_err"; then
4222 ac_header_preproc=yes
4223 else
4224 echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4227 ac_header_preproc=no
4229 rm -f conftest.err conftest.$ac_ext
4230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4231 echo "${ECHO_T}$ac_header_preproc" >&6
4233 # So? What about this header?
4234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4235 yes:no: )
4236 { echo "$as_me:$LINENO: WARNING: machine/ioctl_meteor.h: accepted by the compiler, rejected by the preprocessor!" >&5
4237 echo "$as_me: WARNING: machine/ioctl_meteor.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4238 { echo "$as_me:$LINENO: WARNING: machine/ioctl_meteor.h: proceeding with the compiler's result" >&5
4239 echo "$as_me: WARNING: machine/ioctl_meteor.h: proceeding with the compiler's result" >&2;}
4240 ac_header_preproc=yes
4242 no:yes:* )
4243 { echo "$as_me:$LINENO: WARNING: machine/ioctl_meteor.h: present but cannot be compiled" >&5
4244 echo "$as_me: WARNING: machine/ioctl_meteor.h: present but cannot be compiled" >&2;}
4245 { echo "$as_me:$LINENO: WARNING: machine/ioctl_meteor.h: check for missing prerequisite headers?" >&5
4246 echo "$as_me: WARNING: machine/ioctl_meteor.h: check for missing prerequisite headers?" >&2;}
4247 { echo "$as_me:$LINENO: WARNING: machine/ioctl_meteor.h: see the Autoconf documentation" >&5
4248 echo "$as_me: WARNING: machine/ioctl_meteor.h: see the Autoconf documentation" >&2;}
4249 { echo "$as_me:$LINENO: WARNING: machine/ioctl_meteor.h: section \"Present But Cannot Be Compiled\"" >&5
4250 echo "$as_me: WARNING: machine/ioctl_meteor.h: section \"Present But Cannot Be Compiled\"" >&2;}
4251 { echo "$as_me:$LINENO: WARNING: machine/ioctl_meteor.h: proceeding with the preprocessor's result" >&5
4252 echo "$as_me: WARNING: machine/ioctl_meteor.h: proceeding with the preprocessor's result" >&2;}
4253 { echo "$as_me:$LINENO: WARNING: machine/ioctl_meteor.h: in the future, the compiler will take precedence" >&5
4254 echo "$as_me: WARNING: machine/ioctl_meteor.h: in the future, the compiler will take precedence" >&2;}
4256 cat <<\_ASBOX
4257 ## ------------------------------------------ ##
4258 ## Report this to the AC_PACKAGE_NAME lists. ##
4259 ## ------------------------------------------ ##
4260 _ASBOX
4262 sed "s/^/$as_me: WARNING: /" >&2
4264 esac
4265 echo "$as_me:$LINENO: checking for machine/ioctl_meteor.h" >&5
4266 echo $ECHO_N "checking for machine/ioctl_meteor.h... $ECHO_C" >&6
4267 if test "${ac_cv_header_machine_ioctl_meteor_h+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270 ac_cv_header_machine_ioctl_meteor_h=$ac_header_preproc
4272 echo "$as_me:$LINENO: result: $ac_cv_header_machine_ioctl_meteor_h" >&5
4273 echo "${ECHO_T}$ac_cv_header_machine_ioctl_meteor_h" >&6
4276 if test $ac_cv_header_machine_ioctl_meteor_h = yes; then
4277 BSDVIDEOHDR=1
4281 if test "${ac_cv_header_i386_ioctl_meteor_h+set}" = set; then
4282 echo "$as_me:$LINENO: checking for i386/ioctl_meteor.h" >&5
4283 echo $ECHO_N "checking for i386/ioctl_meteor.h... $ECHO_C" >&6
4284 if test "${ac_cv_header_i386_ioctl_meteor_h+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 echo "$as_me:$LINENO: result: $ac_cv_header_i386_ioctl_meteor_h" >&5
4288 echo "${ECHO_T}$ac_cv_header_i386_ioctl_meteor_h" >&6
4289 else
4290 # Is the header compilable?
4291 echo "$as_me:$LINENO: checking i386/ioctl_meteor.h usability" >&5
4292 echo $ECHO_N "checking i386/ioctl_meteor.h usability... $ECHO_C" >&6
4293 cat >conftest.$ac_ext <<_ACEOF
4294 /* confdefs.h. */
4295 _ACEOF
4296 cat confdefs.h >>conftest.$ac_ext
4297 cat >>conftest.$ac_ext <<_ACEOF
4298 /* end confdefs.h. */
4299 $ac_includes_default
4300 #include <i386/ioctl_meteor.h>
4301 _ACEOF
4302 rm -f conftest.$ac_objext
4303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4304 (eval $ac_compile) 2>conftest.er1
4305 ac_status=$?
4306 grep -v '^ *+' conftest.er1 >conftest.err
4307 rm -f conftest.er1
4308 cat conftest.err >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } &&
4311 { ac_try='test -z "$ac_c_werror_flag"
4312 || test ! -s conftest.err'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314 (eval $ac_try) 2>&5
4315 ac_status=$?
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; } &&
4318 { ac_try='test -s conftest.$ac_objext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320 (eval $ac_try) 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 ac_header_compiler=yes
4325 else
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4329 ac_header_compiler=no
4331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4332 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4333 echo "${ECHO_T}$ac_header_compiler" >&6
4335 # Is the header present?
4336 echo "$as_me:$LINENO: checking i386/ioctl_meteor.h presence" >&5
4337 echo $ECHO_N "checking i386/ioctl_meteor.h presence... $ECHO_C" >&6
4338 cat >conftest.$ac_ext <<_ACEOF
4339 /* confdefs.h. */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4344 #include <i386/ioctl_meteor.h>
4345 _ACEOF
4346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4348 ac_status=$?
4349 grep -v '^ *+' conftest.er1 >conftest.err
4350 rm -f conftest.er1
4351 cat conftest.err >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } >/dev/null; then
4354 if test -s conftest.err; then
4355 ac_cpp_err=$ac_c_preproc_warn_flag
4356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4357 else
4358 ac_cpp_err=
4360 else
4361 ac_cpp_err=yes
4363 if test -z "$ac_cpp_err"; then
4364 ac_header_preproc=yes
4365 else
4366 echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4369 ac_header_preproc=no
4371 rm -f conftest.err conftest.$ac_ext
4372 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4373 echo "${ECHO_T}$ac_header_preproc" >&6
4375 # So? What about this header?
4376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4377 yes:no: )
4378 { echo "$as_me:$LINENO: WARNING: i386/ioctl_meteor.h: accepted by the compiler, rejected by the preprocessor!" >&5
4379 echo "$as_me: WARNING: i386/ioctl_meteor.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4380 { echo "$as_me:$LINENO: WARNING: i386/ioctl_meteor.h: proceeding with the compiler's result" >&5
4381 echo "$as_me: WARNING: i386/ioctl_meteor.h: proceeding with the compiler's result" >&2;}
4382 ac_header_preproc=yes
4384 no:yes:* )
4385 { echo "$as_me:$LINENO: WARNING: i386/ioctl_meteor.h: present but cannot be compiled" >&5
4386 echo "$as_me: WARNING: i386/ioctl_meteor.h: present but cannot be compiled" >&2;}
4387 { echo "$as_me:$LINENO: WARNING: i386/ioctl_meteor.h: check for missing prerequisite headers?" >&5
4388 echo "$as_me: WARNING: i386/ioctl_meteor.h: check for missing prerequisite headers?" >&2;}
4389 { echo "$as_me:$LINENO: WARNING: i386/ioctl_meteor.h: see the Autoconf documentation" >&5
4390 echo "$as_me: WARNING: i386/ioctl_meteor.h: see the Autoconf documentation" >&2;}
4391 { echo "$as_me:$LINENO: WARNING: i386/ioctl_meteor.h: section \"Present But Cannot Be Compiled\"" >&5
4392 echo "$as_me: WARNING: i386/ioctl_meteor.h: section \"Present But Cannot Be Compiled\"" >&2;}
4393 { echo "$as_me:$LINENO: WARNING: i386/ioctl_meteor.h: proceeding with the preprocessor's result" >&5
4394 echo "$as_me: WARNING: i386/ioctl_meteor.h: proceeding with the preprocessor's result" >&2;}
4395 { echo "$as_me:$LINENO: WARNING: i386/ioctl_meteor.h: in the future, the compiler will take precedence" >&5
4396 echo "$as_me: WARNING: i386/ioctl_meteor.h: in the future, the compiler will take precedence" >&2;}
4398 cat <<\_ASBOX
4399 ## ------------------------------------------ ##
4400 ## Report this to the AC_PACKAGE_NAME lists. ##
4401 ## ------------------------------------------ ##
4402 _ASBOX
4404 sed "s/^/$as_me: WARNING: /" >&2
4406 esac
4407 echo "$as_me:$LINENO: checking for i386/ioctl_meteor.h" >&5
4408 echo $ECHO_N "checking for i386/ioctl_meteor.h... $ECHO_C" >&6
4409 if test "${ac_cv_header_i386_ioctl_meteor_h+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412 ac_cv_header_i386_ioctl_meteor_h=$ac_header_preproc
4414 echo "$as_me:$LINENO: result: $ac_cv_header_i386_ioctl_meteor_h" >&5
4415 echo "${ECHO_T}$ac_cv_header_i386_ioctl_meteor_h" >&6
4418 if test $ac_cv_header_i386_ioctl_meteor_h = yes; then
4419 BSDVIDEOHDR=1
4423 if test "${ac_cv_header_dev_ic_bt8xx_h+set}" = set; then
4424 echo "$as_me:$LINENO: checking for dev/ic/bt8xx.h" >&5
4425 echo $ECHO_N "checking for dev/ic/bt8xx.h... $ECHO_C" >&6
4426 if test "${ac_cv_header_dev_ic_bt8xx_h+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 echo "$as_me:$LINENO: result: $ac_cv_header_dev_ic_bt8xx_h" >&5
4430 echo "${ECHO_T}$ac_cv_header_dev_ic_bt8xx_h" >&6
4431 else
4432 # Is the header compilable?
4433 echo "$as_me:$LINENO: checking dev/ic/bt8xx.h usability" >&5
4434 echo $ECHO_N "checking dev/ic/bt8xx.h usability... $ECHO_C" >&6
4435 cat >conftest.$ac_ext <<_ACEOF
4436 /* confdefs.h. */
4437 _ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h. */
4441 $ac_includes_default
4442 #include <dev/ic/bt8xx.h>
4443 _ACEOF
4444 rm -f conftest.$ac_objext
4445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4446 (eval $ac_compile) 2>conftest.er1
4447 ac_status=$?
4448 grep -v '^ *+' conftest.er1 >conftest.err
4449 rm -f conftest.er1
4450 cat conftest.err >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); } &&
4453 { ac_try='test -z "$ac_c_werror_flag"
4454 || test ! -s conftest.err'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 (eval $ac_try) 2>&5
4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; } &&
4460 { ac_try='test -s conftest.$ac_objext'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 (eval $ac_try) 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; }; then
4466 ac_header_compiler=yes
4467 else
4468 echo "$as_me: failed program was:" >&5
4469 sed 's/^/| /' conftest.$ac_ext >&5
4471 ac_header_compiler=no
4473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4475 echo "${ECHO_T}$ac_header_compiler" >&6
4477 # Is the header present?
4478 echo "$as_me:$LINENO: checking dev/ic/bt8xx.h presence" >&5
4479 echo $ECHO_N "checking dev/ic/bt8xx.h presence... $ECHO_C" >&6
4480 cat >conftest.$ac_ext <<_ACEOF
4481 /* confdefs.h. */
4482 _ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4486 #include <dev/ic/bt8xx.h>
4487 _ACEOF
4488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4490 ac_status=$?
4491 grep -v '^ *+' conftest.er1 >conftest.err
4492 rm -f conftest.er1
4493 cat conftest.err >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } >/dev/null; then
4496 if test -s conftest.err; then
4497 ac_cpp_err=$ac_c_preproc_warn_flag
4498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4499 else
4500 ac_cpp_err=
4502 else
4503 ac_cpp_err=yes
4505 if test -z "$ac_cpp_err"; then
4506 ac_header_preproc=yes
4507 else
4508 echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4511 ac_header_preproc=no
4513 rm -f conftest.err conftest.$ac_ext
4514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4515 echo "${ECHO_T}$ac_header_preproc" >&6
4517 # So? What about this header?
4518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4519 yes:no: )
4520 { echo "$as_me:$LINENO: WARNING: dev/ic/bt8xx.h: accepted by the compiler, rejected by the preprocessor!" >&5
4521 echo "$as_me: WARNING: dev/ic/bt8xx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4522 { echo "$as_me:$LINENO: WARNING: dev/ic/bt8xx.h: proceeding with the compiler's result" >&5
4523 echo "$as_me: WARNING: dev/ic/bt8xx.h: proceeding with the compiler's result" >&2;}
4524 ac_header_preproc=yes
4526 no:yes:* )
4527 { echo "$as_me:$LINENO: WARNING: dev/ic/bt8xx.h: present but cannot be compiled" >&5
4528 echo "$as_me: WARNING: dev/ic/bt8xx.h: present but cannot be compiled" >&2;}
4529 { echo "$as_me:$LINENO: WARNING: dev/ic/bt8xx.h: check for missing prerequisite headers?" >&5
4530 echo "$as_me: WARNING: dev/ic/bt8xx.h: check for missing prerequisite headers?" >&2;}
4531 { echo "$as_me:$LINENO: WARNING: dev/ic/bt8xx.h: see the Autoconf documentation" >&5
4532 echo "$as_me: WARNING: dev/ic/bt8xx.h: see the Autoconf documentation" >&2;}
4533 { echo "$as_me:$LINENO: WARNING: dev/ic/bt8xx.h: section \"Present But Cannot Be Compiled\"" >&5
4534 echo "$as_me: WARNING: dev/ic/bt8xx.h: section \"Present But Cannot Be Compiled\"" >&2;}
4535 { echo "$as_me:$LINENO: WARNING: dev/ic/bt8xx.h: proceeding with the preprocessor's result" >&5
4536 echo "$as_me: WARNING: dev/ic/bt8xx.h: proceeding with the preprocessor's result" >&2;}
4537 { echo "$as_me:$LINENO: WARNING: dev/ic/bt8xx.h: in the future, the compiler will take precedence" >&5
4538 echo "$as_me: WARNING: dev/ic/bt8xx.h: in the future, the compiler will take precedence" >&2;}
4540 cat <<\_ASBOX
4541 ## ------------------------------------------ ##
4542 ## Report this to the AC_PACKAGE_NAME lists. ##
4543 ## ------------------------------------------ ##
4544 _ASBOX
4546 sed "s/^/$as_me: WARNING: /" >&2
4548 esac
4549 echo "$as_me:$LINENO: checking for dev/ic/bt8xx.h" >&5
4550 echo $ECHO_N "checking for dev/ic/bt8xx.h... $ECHO_C" >&6
4551 if test "${ac_cv_header_dev_ic_bt8xx_h+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554 ac_cv_header_dev_ic_bt8xx_h=$ac_header_preproc
4556 echo "$as_me:$LINENO: result: $ac_cv_header_dev_ic_bt8xx_h" >&5
4557 echo "${ECHO_T}$ac_cv_header_dev_ic_bt8xx_h" >&6
4560 if test $ac_cv_header_dev_ic_bt8xx_h = yes; then
4561 BSDVIDEOHDR=1
4565 echo "$as_me:$LINENO: checking for BSD video support" >&5
4566 echo $ECHO_N "checking for BSD video support... $ECHO_C" >&6
4567 if test "${BSDVIDEOHDR}z" != "z"; then
4568 HAS_BSDVIDEOCAP=1
4570 echo "$as_me:$LINENO: result: yes" >&5
4571 echo "${ECHO_T}yes" >&6
4572 else
4573 echo "$as_me:$LINENO: result: no" >&5
4574 echo "${ECHO_T}no" >&6
4579 # Check whether --enable-avc or --disable-avc was given.
4580 if test "${enable_avc+set}" = set; then
4581 enableval="$enable_avc"
4583 else
4584 enable_avc=yes
4587 if test "${enable_avc}z" = "yesz" ; then
4588 if test "${ac_cv_header_libavc1394_avc1394_h+set}" = set; then
4589 echo "$as_me:$LINENO: checking for libavc1394/avc1394.h" >&5
4590 echo $ECHO_N "checking for libavc1394/avc1394.h... $ECHO_C" >&6
4591 if test "${ac_cv_header_libavc1394_avc1394_h+set}" = set; then
4592 echo $ECHO_N "(cached) $ECHO_C" >&6
4594 echo "$as_me:$LINENO: result: $ac_cv_header_libavc1394_avc1394_h" >&5
4595 echo "${ECHO_T}$ac_cv_header_libavc1394_avc1394_h" >&6
4596 else
4597 # Is the header compilable?
4598 echo "$as_me:$LINENO: checking libavc1394/avc1394.h usability" >&5
4599 echo $ECHO_N "checking libavc1394/avc1394.h usability... $ECHO_C" >&6
4600 cat >conftest.$ac_ext <<_ACEOF
4601 /* confdefs.h. */
4602 _ACEOF
4603 cat confdefs.h >>conftest.$ac_ext
4604 cat >>conftest.$ac_ext <<_ACEOF
4605 /* end confdefs.h. */
4606 $ac_includes_default
4607 #include <libavc1394/avc1394.h>
4608 _ACEOF
4609 rm -f conftest.$ac_objext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611 (eval $ac_compile) 2>conftest.er1
4612 ac_status=$?
4613 grep -v '^ *+' conftest.er1 >conftest.err
4614 rm -f conftest.er1
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
4618 { ac_try='test -z "$ac_c_werror_flag"
4619 || test ! -s conftest.err'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 (eval $ac_try) 2>&5
4622 ac_status=$?
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; } &&
4625 { ac_try='test -s conftest.$ac_objext'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 (eval $ac_try) 2>&5
4628 ac_status=$?
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 ac_header_compiler=yes
4632 else
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4636 ac_header_compiler=no
4638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4640 echo "${ECHO_T}$ac_header_compiler" >&6
4642 # Is the header present?
4643 echo "$as_me:$LINENO: checking libavc1394/avc1394.h presence" >&5
4644 echo $ECHO_N "checking libavc1394/avc1394.h presence... $ECHO_C" >&6
4645 cat >conftest.$ac_ext <<_ACEOF
4646 /* confdefs.h. */
4647 _ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4651 #include <libavc1394/avc1394.h>
4652 _ACEOF
4653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4655 ac_status=$?
4656 grep -v '^ *+' conftest.er1 >conftest.err
4657 rm -f conftest.er1
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } >/dev/null; then
4661 if test -s conftest.err; then
4662 ac_cpp_err=$ac_c_preproc_warn_flag
4663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4664 else
4665 ac_cpp_err=
4667 else
4668 ac_cpp_err=yes
4670 if test -z "$ac_cpp_err"; then
4671 ac_header_preproc=yes
4672 else
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4676 ac_header_preproc=no
4678 rm -f conftest.err conftest.$ac_ext
4679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4680 echo "${ECHO_T}$ac_header_preproc" >&6
4682 # So? What about this header?
4683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4684 yes:no: )
4685 { echo "$as_me:$LINENO: WARNING: libavc1394/avc1394.h: accepted by the compiler, rejected by the preprocessor!" >&5
4686 echo "$as_me: WARNING: libavc1394/avc1394.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4687 { echo "$as_me:$LINENO: WARNING: libavc1394/avc1394.h: proceeding with the compiler's result" >&5
4688 echo "$as_me: WARNING: libavc1394/avc1394.h: proceeding with the compiler's result" >&2;}
4689 ac_header_preproc=yes
4691 no:yes:* )
4692 { echo "$as_me:$LINENO: WARNING: libavc1394/avc1394.h: present but cannot be compiled" >&5
4693 echo "$as_me: WARNING: libavc1394/avc1394.h: present but cannot be compiled" >&2;}
4694 { echo "$as_me:$LINENO: WARNING: libavc1394/avc1394.h: check for missing prerequisite headers?" >&5
4695 echo "$as_me: WARNING: libavc1394/avc1394.h: check for missing prerequisite headers?" >&2;}
4696 { echo "$as_me:$LINENO: WARNING: libavc1394/avc1394.h: see the Autoconf documentation" >&5
4697 echo "$as_me: WARNING: libavc1394/avc1394.h: see the Autoconf documentation" >&2;}
4698 { echo "$as_me:$LINENO: WARNING: libavc1394/avc1394.h: section \"Present But Cannot Be Compiled\"" >&5
4699 echo "$as_me: WARNING: libavc1394/avc1394.h: section \"Present But Cannot Be Compiled\"" >&2;}
4700 { echo "$as_me:$LINENO: WARNING: libavc1394/avc1394.h: proceeding with the preprocessor's result" >&5
4701 echo "$as_me: WARNING: libavc1394/avc1394.h: proceeding with the preprocessor's result" >&2;}
4702 { echo "$as_me:$LINENO: WARNING: libavc1394/avc1394.h: in the future, the compiler will take precedence" >&5
4703 echo "$as_me: WARNING: libavc1394/avc1394.h: in the future, the compiler will take precedence" >&2;}
4705 cat <<\_ASBOX
4706 ## ------------------------------------------ ##
4707 ## Report this to the AC_PACKAGE_NAME lists. ##
4708 ## ------------------------------------------ ##
4709 _ASBOX
4711 sed "s/^/$as_me: WARNING: /" >&2
4713 esac
4714 echo "$as_me:$LINENO: checking for libavc1394/avc1394.h" >&5
4715 echo $ECHO_N "checking for libavc1394/avc1394.h... $ECHO_C" >&6
4716 if test "${ac_cv_header_libavc1394_avc1394_h+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 else
4719 ac_cv_header_libavc1394_avc1394_h=$ac_header_preproc
4721 echo "$as_me:$LINENO: result: $ac_cv_header_libavc1394_avc1394_h" >&5
4722 echo "${ECHO_T}$ac_cv_header_libavc1394_avc1394_h" >&6
4725 if test $ac_cv_header_libavc1394_avc1394_h = yes; then
4726 AVC1394HDR=1
4730 if test "${ac_cv_header_libdv_dv_h+set}" = set; then
4731 echo "$as_me:$LINENO: checking for libdv/dv.h" >&5
4732 echo $ECHO_N "checking for libdv/dv.h... $ECHO_C" >&6
4733 if test "${ac_cv_header_libdv_dv_h+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 echo "$as_me:$LINENO: result: $ac_cv_header_libdv_dv_h" >&5
4737 echo "${ECHO_T}$ac_cv_header_libdv_dv_h" >&6
4738 else
4739 # Is the header compilable?
4740 echo "$as_me:$LINENO: checking libdv/dv.h usability" >&5
4741 echo $ECHO_N "checking libdv/dv.h usability... $ECHO_C" >&6
4742 cat >conftest.$ac_ext <<_ACEOF
4743 /* confdefs.h. */
4744 _ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4748 $ac_includes_default
4749 #include <libdv/dv.h>
4750 _ACEOF
4751 rm -f conftest.$ac_objext
4752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753 (eval $ac_compile) 2>conftest.er1
4754 ac_status=$?
4755 grep -v '^ *+' conftest.er1 >conftest.err
4756 rm -f conftest.er1
4757 cat conftest.err >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } &&
4760 { ac_try='test -z "$ac_c_werror_flag"
4761 || test ! -s conftest.err'
4762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763 (eval $ac_try) 2>&5
4764 ac_status=$?
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }; } &&
4767 { ac_try='test -s conftest.$ac_objext'
4768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769 (eval $ac_try) 2>&5
4770 ac_status=$?
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }; }; then
4773 ac_header_compiler=yes
4774 else
4775 echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.$ac_ext >&5
4778 ac_header_compiler=no
4780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4782 echo "${ECHO_T}$ac_header_compiler" >&6
4784 # Is the header present?
4785 echo "$as_me:$LINENO: checking libdv/dv.h presence" >&5
4786 echo $ECHO_N "checking libdv/dv.h presence... $ECHO_C" >&6
4787 cat >conftest.$ac_ext <<_ACEOF
4788 /* confdefs.h. */
4789 _ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 #include <libdv/dv.h>
4794 _ACEOF
4795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4797 ac_status=$?
4798 grep -v '^ *+' conftest.er1 >conftest.err
4799 rm -f conftest.er1
4800 cat conftest.err >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } >/dev/null; then
4803 if test -s conftest.err; then
4804 ac_cpp_err=$ac_c_preproc_warn_flag
4805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4806 else
4807 ac_cpp_err=
4809 else
4810 ac_cpp_err=yes
4812 if test -z "$ac_cpp_err"; then
4813 ac_header_preproc=yes
4814 else
4815 echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.$ac_ext >&5
4818 ac_header_preproc=no
4820 rm -f conftest.err conftest.$ac_ext
4821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4822 echo "${ECHO_T}$ac_header_preproc" >&6
4824 # So? What about this header?
4825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4826 yes:no: )
4827 { echo "$as_me:$LINENO: WARNING: libdv/dv.h: accepted by the compiler, rejected by the preprocessor!" >&5
4828 echo "$as_me: WARNING: libdv/dv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4829 { echo "$as_me:$LINENO: WARNING: libdv/dv.h: proceeding with the compiler's result" >&5
4830 echo "$as_me: WARNING: libdv/dv.h: proceeding with the compiler's result" >&2;}
4831 ac_header_preproc=yes
4833 no:yes:* )
4834 { echo "$as_me:$LINENO: WARNING: libdv/dv.h: present but cannot be compiled" >&5
4835 echo "$as_me: WARNING: libdv/dv.h: present but cannot be compiled" >&2;}
4836 { echo "$as_me:$LINENO: WARNING: libdv/dv.h: check for missing prerequisite headers?" >&5
4837 echo "$as_me: WARNING: libdv/dv.h: check for missing prerequisite headers?" >&2;}
4838 { echo "$as_me:$LINENO: WARNING: libdv/dv.h: see the Autoconf documentation" >&5
4839 echo "$as_me: WARNING: libdv/dv.h: see the Autoconf documentation" >&2;}
4840 { echo "$as_me:$LINENO: WARNING: libdv/dv.h: section \"Present But Cannot Be Compiled\"" >&5
4841 echo "$as_me: WARNING: libdv/dv.h: section \"Present But Cannot Be Compiled\"" >&2;}
4842 { echo "$as_me:$LINENO: WARNING: libdv/dv.h: proceeding with the preprocessor's result" >&5
4843 echo "$as_me: WARNING: libdv/dv.h: proceeding with the preprocessor's result" >&2;}
4844 { echo "$as_me:$LINENO: WARNING: libdv/dv.h: in the future, the compiler will take precedence" >&5
4845 echo "$as_me: WARNING: libdv/dv.h: in the future, the compiler will take precedence" >&2;}
4847 cat <<\_ASBOX
4848 ## ------------------------------------------ ##
4849 ## Report this to the AC_PACKAGE_NAME lists. ##
4850 ## ------------------------------------------ ##
4851 _ASBOX
4853 sed "s/^/$as_me: WARNING: /" >&2
4855 esac
4856 echo "$as_me:$LINENO: checking for libdv/dv.h" >&5
4857 echo $ECHO_N "checking for libdv/dv.h... $ECHO_C" >&6
4858 if test "${ac_cv_header_libdv_dv_h+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 else
4861 ac_cv_header_libdv_dv_h=$ac_header_preproc
4863 echo "$as_me:$LINENO: result: $ac_cv_header_libdv_dv_h" >&5
4864 echo "${ECHO_T}$ac_cv_header_libdv_dv_h" >&6
4867 if test $ac_cv_header_libdv_dv_h = yes; then
4868 DVHDR=1
4872 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
4873 echo "$as_me:$LINENO: checking for libraw1394/raw1394.h" >&5
4874 echo $ECHO_N "checking for libraw1394/raw1394.h... $ECHO_C" >&6
4875 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 echo "$as_me:$LINENO: result: $ac_cv_header_libraw1394_raw1394_h" >&5
4879 echo "${ECHO_T}$ac_cv_header_libraw1394_raw1394_h" >&6
4880 else
4881 # Is the header compilable?
4882 echo "$as_me:$LINENO: checking libraw1394/raw1394.h usability" >&5
4883 echo $ECHO_N "checking libraw1394/raw1394.h usability... $ECHO_C" >&6
4884 cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h. */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4890 $ac_includes_default
4891 #include <libraw1394/raw1394.h>
4892 _ACEOF
4893 rm -f conftest.$ac_objext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4895 (eval $ac_compile) 2>conftest.er1
4896 ac_status=$?
4897 grep -v '^ *+' conftest.er1 >conftest.err
4898 rm -f conftest.er1
4899 cat conftest.err >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } &&
4902 { ac_try='test -z "$ac_c_werror_flag"
4903 || test ! -s conftest.err'
4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905 (eval $ac_try) 2>&5
4906 ac_status=$?
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; } &&
4909 { ac_try='test -s conftest.$ac_objext'
4910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911 (eval $ac_try) 2>&5
4912 ac_status=$?
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; }; then
4915 ac_header_compiler=yes
4916 else
4917 echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4920 ac_header_compiler=no
4922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4923 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4924 echo "${ECHO_T}$ac_header_compiler" >&6
4926 # Is the header present?
4927 echo "$as_me:$LINENO: checking libraw1394/raw1394.h presence" >&5
4928 echo $ECHO_N "checking libraw1394/raw1394.h presence... $ECHO_C" >&6
4929 cat >conftest.$ac_ext <<_ACEOF
4930 /* confdefs.h. */
4931 _ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h. */
4935 #include <libraw1394/raw1394.h>
4936 _ACEOF
4937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4939 ac_status=$?
4940 grep -v '^ *+' conftest.er1 >conftest.err
4941 rm -f conftest.er1
4942 cat conftest.err >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } >/dev/null; then
4945 if test -s conftest.err; then
4946 ac_cpp_err=$ac_c_preproc_warn_flag
4947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4948 else
4949 ac_cpp_err=
4951 else
4952 ac_cpp_err=yes
4954 if test -z "$ac_cpp_err"; then
4955 ac_header_preproc=yes
4956 else
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4960 ac_header_preproc=no
4962 rm -f conftest.err conftest.$ac_ext
4963 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4964 echo "${ECHO_T}$ac_header_preproc" >&6
4966 # So? What about this header?
4967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4968 yes:no: )
4969 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: accepted by the compiler, rejected by the preprocessor!" >&5
4970 echo "$as_me: WARNING: libraw1394/raw1394.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4971 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: proceeding with the compiler's result" >&5
4972 echo "$as_me: WARNING: libraw1394/raw1394.h: proceeding with the compiler's result" >&2;}
4973 ac_header_preproc=yes
4975 no:yes:* )
4976 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: present but cannot be compiled" >&5
4977 echo "$as_me: WARNING: libraw1394/raw1394.h: present but cannot be compiled" >&2;}
4978 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: check for missing prerequisite headers?" >&5
4979 echo "$as_me: WARNING: libraw1394/raw1394.h: check for missing prerequisite headers?" >&2;}
4980 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: see the Autoconf documentation" >&5
4981 echo "$as_me: WARNING: libraw1394/raw1394.h: see the Autoconf documentation" >&2;}
4982 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: section \"Present But Cannot Be Compiled\"" >&5
4983 echo "$as_me: WARNING: libraw1394/raw1394.h: section \"Present But Cannot Be Compiled\"" >&2;}
4984 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: proceeding with the preprocessor's result" >&5
4985 echo "$as_me: WARNING: libraw1394/raw1394.h: proceeding with the preprocessor's result" >&2;}
4986 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: in the future, the compiler will take precedence" >&5
4987 echo "$as_me: WARNING: libraw1394/raw1394.h: in the future, the compiler will take precedence" >&2;}
4989 cat <<\_ASBOX
4990 ## ------------------------------------------ ##
4991 ## Report this to the AC_PACKAGE_NAME lists. ##
4992 ## ------------------------------------------ ##
4993 _ASBOX
4995 sed "s/^/$as_me: WARNING: /" >&2
4997 esac
4998 echo "$as_me:$LINENO: checking for libraw1394/raw1394.h" >&5
4999 echo $ECHO_N "checking for libraw1394/raw1394.h... $ECHO_C" >&6
5000 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5002 else
5003 ac_cv_header_libraw1394_raw1394_h=$ac_header_preproc
5005 echo "$as_me:$LINENO: result: $ac_cv_header_libraw1394_raw1394_h" >&5
5006 echo "${ECHO_T}$ac_cv_header_libraw1394_raw1394_h" >&6
5009 if test $ac_cv_header_libraw1394_raw1394_h = yes; then
5010 RAW1394HDR=1
5014 echo "$as_me:$LINENO: checking for IEEE1394/AVC video support" >&5
5015 echo $ECHO_N "checking for IEEE1394/AVC video support... $ECHO_C" >&6
5016 if test "${AVC1394HDR}z" != "z" -a "${DVHDR}z" != "z" -a "${RAW1394HDR}z" != "z"; then
5017 HAS_AVC1394=1
5019 echo "$as_me:$LINENO: result: yes" >&5
5020 echo "${ECHO_T}yes" >&6
5021 else
5022 echo "$as_me:$LINENO: result: no" >&5
5023 echo "${ECHO_T}no" >&6
5028 # Check whether --enable-dc or --disable-dc was given.
5029 if test "${enable_dc+set}" = set; then
5030 enableval="$enable_dc"
5032 else
5033 enable_dc=yes
5036 if test "${enable_dc}z" = "yesz" ; then
5037 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
5038 echo "$as_me:$LINENO: checking for libdc1394/dc1394_control.h" >&5
5039 echo $ECHO_N "checking for libdc1394/dc1394_control.h... $ECHO_C" >&6
5040 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 echo "$as_me:$LINENO: result: $ac_cv_header_libdc1394_dc1394_control_h" >&5
5044 echo "${ECHO_T}$ac_cv_header_libdc1394_dc1394_control_h" >&6
5045 else
5046 # Is the header compilable?
5047 echo "$as_me:$LINENO: checking libdc1394/dc1394_control.h usability" >&5
5048 echo $ECHO_N "checking libdc1394/dc1394_control.h usability... $ECHO_C" >&6
5049 cat >conftest.$ac_ext <<_ACEOF
5050 /* confdefs.h. */
5051 _ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h. */
5055 $ac_includes_default
5056 #include <libdc1394/dc1394_control.h>
5057 _ACEOF
5058 rm -f conftest.$ac_objext
5059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5060 (eval $ac_compile) 2>conftest.er1
5061 ac_status=$?
5062 grep -v '^ *+' conftest.er1 >conftest.err
5063 rm -f conftest.er1
5064 cat conftest.err >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } &&
5067 { ac_try='test -z "$ac_c_werror_flag"
5068 || test ! -s conftest.err'
5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070 (eval $ac_try) 2>&5
5071 ac_status=$?
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; } &&
5074 { ac_try='test -s conftest.$ac_objext'
5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076 (eval $ac_try) 2>&5
5077 ac_status=$?
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; }; then
5080 ac_header_compiler=yes
5081 else
5082 echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5085 ac_header_compiler=no
5087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5088 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5089 echo "${ECHO_T}$ac_header_compiler" >&6
5091 # Is the header present?
5092 echo "$as_me:$LINENO: checking libdc1394/dc1394_control.h presence" >&5
5093 echo $ECHO_N "checking libdc1394/dc1394_control.h presence... $ECHO_C" >&6
5094 cat >conftest.$ac_ext <<_ACEOF
5095 /* confdefs.h. */
5096 _ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h. */
5100 #include <libdc1394/dc1394_control.h>
5101 _ACEOF
5102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5104 ac_status=$?
5105 grep -v '^ *+' conftest.er1 >conftest.err
5106 rm -f conftest.er1
5107 cat conftest.err >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } >/dev/null; then
5110 if test -s conftest.err; then
5111 ac_cpp_err=$ac_c_preproc_warn_flag
5112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5113 else
5114 ac_cpp_err=
5116 else
5117 ac_cpp_err=yes
5119 if test -z "$ac_cpp_err"; then
5120 ac_header_preproc=yes
5121 else
5122 echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5125 ac_header_preproc=no
5127 rm -f conftest.err conftest.$ac_ext
5128 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5129 echo "${ECHO_T}$ac_header_preproc" >&6
5131 # So? What about this header?
5132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5133 yes:no: )
5134 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: accepted by the compiler, rejected by the preprocessor!" >&5
5135 echo "$as_me: WARNING: libdc1394/dc1394_control.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5136 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: proceeding with the compiler's result" >&5
5137 echo "$as_me: WARNING: libdc1394/dc1394_control.h: proceeding with the compiler's result" >&2;}
5138 ac_header_preproc=yes
5140 no:yes:* )
5141 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: present but cannot be compiled" >&5
5142 echo "$as_me: WARNING: libdc1394/dc1394_control.h: present but cannot be compiled" >&2;}
5143 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: check for missing prerequisite headers?" >&5
5144 echo "$as_me: WARNING: libdc1394/dc1394_control.h: check for missing prerequisite headers?" >&2;}
5145 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: see the Autoconf documentation" >&5
5146 echo "$as_me: WARNING: libdc1394/dc1394_control.h: see the Autoconf documentation" >&2;}
5147 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: section \"Present But Cannot Be Compiled\"" >&5
5148 echo "$as_me: WARNING: libdc1394/dc1394_control.h: section \"Present But Cannot Be Compiled\"" >&2;}
5149 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: proceeding with the preprocessor's result" >&5
5150 echo "$as_me: WARNING: libdc1394/dc1394_control.h: proceeding with the preprocessor's result" >&2;}
5151 { echo "$as_me:$LINENO: WARNING: libdc1394/dc1394_control.h: in the future, the compiler will take precedence" >&5
5152 echo "$as_me: WARNING: libdc1394/dc1394_control.h: in the future, the compiler will take precedence" >&2;}
5154 cat <<\_ASBOX
5155 ## ------------------------------------------ ##
5156 ## Report this to the AC_PACKAGE_NAME lists. ##
5157 ## ------------------------------------------ ##
5158 _ASBOX
5160 sed "s/^/$as_me: WARNING: /" >&2
5162 esac
5163 echo "$as_me:$LINENO: checking for libdc1394/dc1394_control.h" >&5
5164 echo $ECHO_N "checking for libdc1394/dc1394_control.h... $ECHO_C" >&6
5165 if test "${ac_cv_header_libdc1394_dc1394_control_h+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168 ac_cv_header_libdc1394_dc1394_control_h=$ac_header_preproc
5170 echo "$as_me:$LINENO: result: $ac_cv_header_libdc1394_dc1394_control_h" >&5
5171 echo "${ECHO_T}$ac_cv_header_libdc1394_dc1394_control_h" >&6
5174 if test $ac_cv_header_libdc1394_dc1394_control_h = yes; then
5175 DC1394HDR=1
5179 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
5180 echo "$as_me:$LINENO: checking for libraw1394/raw1394.h" >&5
5181 echo $ECHO_N "checking for libraw1394/raw1394.h... $ECHO_C" >&6
5182 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 echo "$as_me:$LINENO: result: $ac_cv_header_libraw1394_raw1394_h" >&5
5186 echo "${ECHO_T}$ac_cv_header_libraw1394_raw1394_h" >&6
5187 else
5188 # Is the header compilable?
5189 echo "$as_me:$LINENO: checking libraw1394/raw1394.h usability" >&5
5190 echo $ECHO_N "checking libraw1394/raw1394.h usability... $ECHO_C" >&6
5191 cat >conftest.$ac_ext <<_ACEOF
5192 /* confdefs.h. */
5193 _ACEOF
5194 cat confdefs.h >>conftest.$ac_ext
5195 cat >>conftest.$ac_ext <<_ACEOF
5196 /* end confdefs.h. */
5197 $ac_includes_default
5198 #include <libraw1394/raw1394.h>
5199 _ACEOF
5200 rm -f conftest.$ac_objext
5201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5202 (eval $ac_compile) 2>conftest.er1
5203 ac_status=$?
5204 grep -v '^ *+' conftest.er1 >conftest.err
5205 rm -f conftest.er1
5206 cat conftest.err >&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } &&
5209 { ac_try='test -z "$ac_c_werror_flag"
5210 || test ! -s conftest.err'
5211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212 (eval $ac_try) 2>&5
5213 ac_status=$?
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; } &&
5216 { ac_try='test -s conftest.$ac_objext'
5217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 (eval $ac_try) 2>&5
5219 ac_status=$?
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; }; then
5222 ac_header_compiler=yes
5223 else
5224 echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5227 ac_header_compiler=no
5229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5230 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5231 echo "${ECHO_T}$ac_header_compiler" >&6
5233 # Is the header present?
5234 echo "$as_me:$LINENO: checking libraw1394/raw1394.h presence" >&5
5235 echo $ECHO_N "checking libraw1394/raw1394.h presence... $ECHO_C" >&6
5236 cat >conftest.$ac_ext <<_ACEOF
5237 /* confdefs.h. */
5238 _ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5242 #include <libraw1394/raw1394.h>
5243 _ACEOF
5244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5246 ac_status=$?
5247 grep -v '^ *+' conftest.er1 >conftest.err
5248 rm -f conftest.er1
5249 cat conftest.err >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } >/dev/null; then
5252 if test -s conftest.err; then
5253 ac_cpp_err=$ac_c_preproc_warn_flag
5254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5255 else
5256 ac_cpp_err=
5258 else
5259 ac_cpp_err=yes
5261 if test -z "$ac_cpp_err"; then
5262 ac_header_preproc=yes
5263 else
5264 echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5267 ac_header_preproc=no
5269 rm -f conftest.err conftest.$ac_ext
5270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5271 echo "${ECHO_T}$ac_header_preproc" >&6
5273 # So? What about this header?
5274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5275 yes:no: )
5276 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: accepted by the compiler, rejected by the preprocessor!" >&5
5277 echo "$as_me: WARNING: libraw1394/raw1394.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5278 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: proceeding with the compiler's result" >&5
5279 echo "$as_me: WARNING: libraw1394/raw1394.h: proceeding with the compiler's result" >&2;}
5280 ac_header_preproc=yes
5282 no:yes:* )
5283 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: present but cannot be compiled" >&5
5284 echo "$as_me: WARNING: libraw1394/raw1394.h: present but cannot be compiled" >&2;}
5285 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: check for missing prerequisite headers?" >&5
5286 echo "$as_me: WARNING: libraw1394/raw1394.h: check for missing prerequisite headers?" >&2;}
5287 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: see the Autoconf documentation" >&5
5288 echo "$as_me: WARNING: libraw1394/raw1394.h: see the Autoconf documentation" >&2;}
5289 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: section \"Present But Cannot Be Compiled\"" >&5
5290 echo "$as_me: WARNING: libraw1394/raw1394.h: section \"Present But Cannot Be Compiled\"" >&2;}
5291 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: proceeding with the preprocessor's result" >&5
5292 echo "$as_me: WARNING: libraw1394/raw1394.h: proceeding with the preprocessor's result" >&2;}
5293 { echo "$as_me:$LINENO: WARNING: libraw1394/raw1394.h: in the future, the compiler will take precedence" >&5
5294 echo "$as_me: WARNING: libraw1394/raw1394.h: in the future, the compiler will take precedence" >&2;}
5296 cat <<\_ASBOX
5297 ## ------------------------------------------ ##
5298 ## Report this to the AC_PACKAGE_NAME lists. ##
5299 ## ------------------------------------------ ##
5300 _ASBOX
5302 sed "s/^/$as_me: WARNING: /" >&2
5304 esac
5305 echo "$as_me:$LINENO: checking for libraw1394/raw1394.h" >&5
5306 echo $ECHO_N "checking for libraw1394/raw1394.h... $ECHO_C" >&6
5307 if test "${ac_cv_header_libraw1394_raw1394_h+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5309 else
5310 ac_cv_header_libraw1394_raw1394_h=$ac_header_preproc
5312 echo "$as_me:$LINENO: result: $ac_cv_header_libraw1394_raw1394_h" >&5
5313 echo "${ECHO_T}$ac_cv_header_libraw1394_raw1394_h" >&6
5316 if test $ac_cv_header_libraw1394_raw1394_h = yes; then
5317 RAW1394HDR=1
5321 echo "$as_me:$LINENO: checking for IEEE1394/DC video support" >&5
5322 echo $ECHO_N "checking for IEEE1394/DC video support... $ECHO_C" >&6
5323 if test "${DC1394HDR}z" != "z" -a "${RAW1394HDR}z" != "z"; then
5324 HAS_DC1394=1
5326 echo "$as_me:$LINENO: result: yes" >&5
5327 echo "${ECHO_T}yes" >&6
5328 echo "$as_me:$LINENO: checking if dc1394_dma_setup_capture has 12 parms" >&5
5329 echo $ECHO_N "checking if dc1394_dma_setup_capture has 12 parms... $ECHO_C" >&6
5330 cat >conftest.$ac_ext <<_ACEOF
5332 #include "libdc1394/dc1394_control.h"
5333 int main(int ac,char **av)
5335 raw1394handle_t handle;
5336 nodeid_t node;
5337 int channel;
5338 int format;
5339 int mode;
5340 int speed;
5341 int frame_rate;
5342 int num_dma_buffers;
5343 int do_extra_buffering;
5344 int drop_frames;
5345 const char *dma_device_file;
5346 dc1394_cameracapture *camera;
5347 dc1394_dma_setup_capture(handle, node, channel, format, mode, speed, frame_rate, num_dma_buffers,
5348 do_extra_buffering, drop_frames, dma_device_file, camera);
5349 return 0;
5352 _ACEOF
5353 rm -f conftest.$ac_objext
5354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5355 (eval $ac_compile) 2>conftest.er1
5356 ac_status=$?
5357 grep -v '^ *+' conftest.er1 >conftest.err
5358 rm -f conftest.er1
5359 cat conftest.err >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); } &&
5362 { ac_try='test -z "$ac_c_werror_flag"
5363 || test ! -s conftest.err'
5364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365 (eval $ac_try) 2>&5
5366 ac_status=$?
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; } &&
5369 { ac_try='test -s conftest.$ac_objext'
5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 (eval $ac_try) 2>&5
5372 ac_status=$?
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; }; then
5375 NEW_DC_API=1
5376 else
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5380 NEW_DC_API=0
5382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5383 if test "$NEW_DC_API" = "1" ; then
5384 DC_CFLAGS=-DNEW_DC_API
5386 echo "$as_me:$LINENO: result: yes" >&5
5387 echo "${ECHO_T}yes" >&6
5388 else
5390 echo "$as_me:$LINENO: result: no" >&5
5391 echo "${ECHO_T}no" >&6
5393 else
5394 echo "$as_me:$LINENO: result: no" >&5
5395 echo "${ECHO_T}no" >&6
5401 fi # enable_plugins
5404 ac_config_files="$ac_config_files Makefile"
5406 ac_config_files="$ac_config_files vidinput_dc/Makefile"
5409 cat >confcache <<\_ACEOF
5410 # This file is a shell script that caches the results of configure
5411 # tests run on this system so they can be shared between configure
5412 # scripts and configure runs, see configure's option --config-cache.
5413 # It is not useful on other systems. If it contains results you don't
5414 # want to keep, you may remove or edit it.
5416 # config.status only pays attention to the cache file if you give it
5417 # the --recheck option to rerun configure.
5419 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5420 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5421 # following values.
5423 _ACEOF
5425 # The following way of writing the cache mishandles newlines in values,
5426 # but we know of no workaround that is simple, portable, and efficient.
5427 # So, don't put newlines in cache variables' values.
5428 # Ultrix sh set writes to stderr and can't be redirected directly,
5429 # and sets the high bit in the cache file unless we assign to the vars.
5431 (set) 2>&1 |
5432 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5433 *ac_space=\ *)
5434 # `set' does not quote correctly, so add quotes (double-quote
5435 # substitution turns \\\\ into \\, and sed turns \\ into \).
5436 sed -n \
5437 "s/'/'\\\\''/g;
5438 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5441 # `set' quotes correctly as required by POSIX, so do not add quotes.
5442 sed -n \
5443 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5445 esac;
5447 sed '
5448 t clear
5449 : clear
5450 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5451 t end
5452 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5453 : end' >>confcache
5454 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5455 if test -w $cache_file; then
5456 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5457 cat confcache >$cache_file
5458 else
5459 echo "not updating unwritable cache $cache_file"
5462 rm -f confcache
5464 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5465 # Let make expand exec_prefix.
5466 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5468 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5469 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5470 # trailing colons and then remove the whole line if VPATH becomes empty
5471 # (actually we leave an empty line to preserve line numbers).
5472 if test "x$srcdir" = x.; then
5473 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5474 s/:*\$(srcdir):*/:/;
5475 s/:*\${srcdir}:*/:/;
5476 s/:*@srcdir@:*/:/;
5477 s/^\([^=]*=[ ]*\):*/\1/;
5478 s/:*$//;
5479 s/^[^=]*=[ ]*$//;
5483 # Transform confdefs.h into DEFS.
5484 # Protect against shell expansion while executing Makefile rules.
5485 # Protect against Makefile macro expansion.
5487 # If the first sed substitution is executed (which looks for macros that
5488 # take arguments), then we branch to the quote section. Otherwise,
5489 # look for a macro that doesn't take arguments.
5490 cat >confdef2opt.sed <<\_ACEOF
5491 t clear
5492 : clear
5493 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5494 t quote
5495 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5496 t quote
5498 : quote
5499 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
5500 s,\[,\\&,g
5501 s,\],\\&,g
5502 s,\$,$$,g
5504 _ACEOF
5505 # We use echo to avoid assuming a particular line-breaking character.
5506 # The extra dot is to prevent the shell from consuming trailing
5507 # line-breaks from the sub-command output. A line-break within
5508 # single-quotes doesn't work because, if this script is created in a
5509 # platform that uses two characters for line-breaks (e.g., DOS), tr
5510 # would break.
5511 ac_LF_and_DOT=`echo; echo .`
5512 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5513 rm -f confdef2opt.sed
5516 ac_libobjs=
5517 ac_ltlibobjs=
5518 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5519 # 1. Remove the extension, and $U if already installed.
5520 ac_i=`echo "$ac_i" |
5521 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5522 # 2. Add them.
5523 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5524 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5525 done
5526 LIBOBJS=$ac_libobjs
5528 LTLIBOBJS=$ac_ltlibobjs
5532 : ${CONFIG_STATUS=./config.status}
5533 ac_clean_files_save=$ac_clean_files
5534 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5535 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5536 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5537 cat >$CONFIG_STATUS <<_ACEOF
5538 #! $SHELL
5539 # Generated by $as_me.
5540 # Run this file to recreate the current configuration.
5541 # Compiler output produced by configure, useful for debugging
5542 # configure, is in config.log if it exists.
5544 debug=false
5545 ac_cs_recheck=false
5546 ac_cs_silent=false
5547 SHELL=\${CONFIG_SHELL-$SHELL}
5548 _ACEOF
5550 cat >>$CONFIG_STATUS <<\_ACEOF
5551 ## --------------------- ##
5552 ## M4sh Initialization. ##
5553 ## --------------------- ##
5555 # Be Bourne compatible
5556 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5557 emulate sh
5558 NULLCMD=:
5559 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5560 # is contrary to our usage. Disable this feature.
5561 alias -g '${1+"$@"}'='"$@"'
5562 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5563 set -o posix
5565 DUALCASE=1; export DUALCASE # for MKS sh
5567 # Support unset when possible.
5568 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5569 as_unset=unset
5570 else
5571 as_unset=false
5575 # Work around bugs in pre-3.0 UWIN ksh.
5576 $as_unset ENV MAIL MAILPATH
5577 PS1='$ '
5578 PS2='> '
5579 PS4='+ '
5581 # NLS nuisances.
5582 for as_var in \
5583 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5584 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5585 LC_TELEPHONE LC_TIME
5587 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5588 eval $as_var=C; export $as_var
5589 else
5590 $as_unset $as_var
5592 done
5594 # Required to use basename.
5595 if expr a : '\(a\)' >/dev/null 2>&1; then
5596 as_expr=expr
5597 else
5598 as_expr=false
5601 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5602 as_basename=basename
5603 else
5604 as_basename=false
5608 # Name of the executable.
5609 as_me=`$as_basename "$0" ||
5610 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5611 X"$0" : 'X\(//\)$' \| \
5612 X"$0" : 'X\(/\)$' \| \
5613 . : '\(.\)' 2>/dev/null ||
5614 echo X/"$0" |
5615 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5616 /^X\/\(\/\/\)$/{ s//\1/; q; }
5617 /^X\/\(\/\).*/{ s//\1/; q; }
5618 s/.*/./; q'`
5621 # PATH needs CR, and LINENO needs CR and PATH.
5622 # Avoid depending upon Character Ranges.
5623 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5624 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5625 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5626 as_cr_digits='0123456789'
5627 as_cr_alnum=$as_cr_Letters$as_cr_digits
5629 # The user is always right.
5630 if test "${PATH_SEPARATOR+set}" != set; then
5631 echo "#! /bin/sh" >conf$$.sh
5632 echo "exit 0" >>conf$$.sh
5633 chmod +x conf$$.sh
5634 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5635 PATH_SEPARATOR=';'
5636 else
5637 PATH_SEPARATOR=:
5639 rm -f conf$$.sh
5643 as_lineno_1=$LINENO
5644 as_lineno_2=$LINENO
5645 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5646 test "x$as_lineno_1" != "x$as_lineno_2" &&
5647 test "x$as_lineno_3" = "x$as_lineno_2" || {
5648 # Find who we are. Look in the path if we contain no path at all
5649 # relative or not.
5650 case $0 in
5651 *[\\/]* ) as_myself=$0 ;;
5652 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
5657 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5658 done
5661 esac
5662 # We did not find ourselves, most probably we were run as `sh COMMAND'
5663 # in which case we are not to be found in the path.
5664 if test "x$as_myself" = x; then
5665 as_myself=$0
5667 if test ! -f "$as_myself"; then
5668 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5669 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5670 { (exit 1); exit 1; }; }
5672 case $CONFIG_SHELL in
5674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5677 IFS=$as_save_IFS
5678 test -z "$as_dir" && as_dir=.
5679 for as_base in sh bash ksh sh5; do
5680 case $as_dir in
5682 if ("$as_dir/$as_base" -c '
5683 as_lineno_1=$LINENO
5684 as_lineno_2=$LINENO
5685 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5686 test "x$as_lineno_1" != "x$as_lineno_2" &&
5687 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5688 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5689 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5690 CONFIG_SHELL=$as_dir/$as_base
5691 export CONFIG_SHELL
5692 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5693 fi;;
5694 esac
5695 done
5696 done
5698 esac
5700 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5701 # uniformly replaced by the line number. The first 'sed' inserts a
5702 # line-number line before each line; the second 'sed' does the real
5703 # work. The second script uses 'N' to pair each line-number line
5704 # with the numbered line, and appends trailing '-' during
5705 # substitution so that $LINENO is not a special case at line end.
5706 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5707 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5708 sed '=' <$as_myself |
5709 sed '
5711 s,$,-,
5712 : loop
5713 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5714 t loop
5715 s,-$,,
5716 s,^['$as_cr_digits']*\n,,
5717 ' >$as_me.lineno &&
5718 chmod +x $as_me.lineno ||
5719 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5720 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5721 { (exit 1); exit 1; }; }
5723 # Don't try to exec as it changes $[0], causing all sort of problems
5724 # (the dirname of $[0] is not the place where we might find the
5725 # original and so on. Autoconf is especially sensible to this).
5726 . ./$as_me.lineno
5727 # Exit status is that of the last command.
5728 exit
5732 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5733 *c*,-n*) ECHO_N= ECHO_C='
5734 ' ECHO_T=' ' ;;
5735 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5736 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5737 esac
5739 if expr a : '\(a\)' >/dev/null 2>&1; then
5740 as_expr=expr
5741 else
5742 as_expr=false
5745 rm -f conf$$ conf$$.exe conf$$.file
5746 echo >conf$$.file
5747 if ln -s conf$$.file conf$$ 2>/dev/null; then
5748 # We could just check for DJGPP; but this test a) works b) is more generic
5749 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5750 if test -f conf$$.exe; then
5751 # Don't use ln at all; we don't have any links
5752 as_ln_s='cp -p'
5753 else
5754 as_ln_s='ln -s'
5756 elif ln conf$$.file conf$$ 2>/dev/null; then
5757 as_ln_s=ln
5758 else
5759 as_ln_s='cp -p'
5761 rm -f conf$$ conf$$.exe conf$$.file
5763 if mkdir -p . 2>/dev/null; then
5764 as_mkdir_p=:
5765 else
5766 test -d ./-p && rmdir ./-p
5767 as_mkdir_p=false
5770 as_executable_p="test -f"
5772 # Sed expression to map a string onto a valid CPP name.
5773 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5775 # Sed expression to map a string onto a valid variable name.
5776 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5779 # IFS
5780 # We need space, tab and new line, in precisely that order.
5781 as_nl='
5783 IFS=" $as_nl"
5785 # CDPATH.
5786 $as_unset CDPATH
5788 exec 6>&1
5790 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5791 # report actual input values of CONFIG_FILES etc. instead of their
5792 # values after options handling. Logging --version etc. is OK.
5793 exec 5>>config.log
5795 echo
5796 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5797 ## Running $as_me. ##
5798 _ASBOX
5799 } >&5
5800 cat >&5 <<_CSEOF
5802 This file was extended by $as_me, which was
5803 generated by GNU Autoconf 2.59. Invocation command line was
5805 CONFIG_FILES = $CONFIG_FILES
5806 CONFIG_HEADERS = $CONFIG_HEADERS
5807 CONFIG_LINKS = $CONFIG_LINKS
5808 CONFIG_COMMANDS = $CONFIG_COMMANDS
5809 $ $0 $@
5811 _CSEOF
5812 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5813 echo >&5
5814 _ACEOF
5816 # Files that config.status was made for.
5817 if test -n "$ac_config_files"; then
5818 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5821 if test -n "$ac_config_headers"; then
5822 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5825 if test -n "$ac_config_links"; then
5826 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5829 if test -n "$ac_config_commands"; then
5830 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5833 cat >>$CONFIG_STATUS <<\_ACEOF
5835 ac_cs_usage="\
5836 \`$as_me' instantiates files from templates according to the
5837 current configuration.
5839 Usage: $0 [OPTIONS] [FILE]...
5841 -h, --help print this help, then exit
5842 -V, --version print version number, then exit
5843 -q, --quiet do not print progress messages
5844 -d, --debug don't remove temporary files
5845 --recheck update $as_me by reconfiguring in the same conditions
5846 --file=FILE[:TEMPLATE]
5847 instantiate the configuration file FILE
5849 Configuration files:
5850 $config_files
5852 Report bugs to <bug-autoconf@gnu.org>."
5853 _ACEOF
5855 cat >>$CONFIG_STATUS <<_ACEOF
5856 ac_cs_version="\\
5857 config.status
5858 configured by $0, generated by GNU Autoconf 2.59,
5859 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5861 Copyright (C) 2003 Free Software Foundation, Inc.
5862 This config.status script is free software; the Free Software Foundation
5863 gives unlimited permission to copy, distribute and modify it."
5864 srcdir=$srcdir
5865 _ACEOF
5867 cat >>$CONFIG_STATUS <<\_ACEOF
5868 # If no file are specified by the user, then we need to provide default
5869 # value. By we need to know if files were specified by the user.
5870 ac_need_defaults=:
5871 while test $# != 0
5873 case $1 in
5874 --*=*)
5875 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5876 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5877 ac_shift=:
5880 ac_option=$1
5881 ac_optarg=$2
5882 ac_shift=shift
5884 *) # This is not an option, so the user has probably given explicit
5885 # arguments.
5886 ac_option=$1
5887 ac_need_defaults=false;;
5888 esac
5890 case $ac_option in
5891 # Handling of the options.
5892 _ACEOF
5893 cat >>$CONFIG_STATUS <<\_ACEOF
5894 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5895 ac_cs_recheck=: ;;
5896 --version | --vers* | -V )
5897 echo "$ac_cs_version"; exit 0 ;;
5898 --he | --h)
5899 # Conflict between --help and --header
5900 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5901 Try \`$0 --help' for more information." >&5
5902 echo "$as_me: error: ambiguous option: $1
5903 Try \`$0 --help' for more information." >&2;}
5904 { (exit 1); exit 1; }; };;
5905 --help | --hel | -h )
5906 echo "$ac_cs_usage"; exit 0 ;;
5907 --debug | --d* | -d )
5908 debug=: ;;
5909 --file | --fil | --fi | --f )
5910 $ac_shift
5911 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5912 ac_need_defaults=false;;
5913 --header | --heade | --head | --hea )
5914 $ac_shift
5915 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5916 ac_need_defaults=false;;
5917 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5918 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5919 ac_cs_silent=: ;;
5921 # This is an error.
5922 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5923 Try \`$0 --help' for more information." >&5
5924 echo "$as_me: error: unrecognized option: $1
5925 Try \`$0 --help' for more information." >&2;}
5926 { (exit 1); exit 1; }; } ;;
5928 *) ac_config_targets="$ac_config_targets $1" ;;
5930 esac
5931 shift
5932 done
5934 ac_configure_extra_args=
5936 if $ac_cs_silent; then
5937 exec 6>/dev/null
5938 ac_configure_extra_args="$ac_configure_extra_args --silent"
5941 _ACEOF
5942 cat >>$CONFIG_STATUS <<_ACEOF
5943 if \$ac_cs_recheck; then
5944 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5945 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5948 _ACEOF
5954 cat >>$CONFIG_STATUS <<\_ACEOF
5955 for ac_config_target in $ac_config_targets
5957 case "$ac_config_target" in
5958 # Handling of arguments.
5959 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5960 "vidinput_dc/Makefile" ) CONFIG_FILES="$CONFIG_FILES vidinput_dc/Makefile" ;;
5961 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5962 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5963 { (exit 1); exit 1; }; };;
5964 esac
5965 done
5967 # If the user did not use the arguments to specify the items to instantiate,
5968 # then the envvar interface is used. Set only those that are not.
5969 # We use the long form for the default assignment because of an extremely
5970 # bizarre bug on SunOS 4.1.3.
5971 if $ac_need_defaults; then
5972 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5975 # Have a temporary directory for convenience. Make it in the build tree
5976 # simply because there is no reason to put it here, and in addition,
5977 # creating and moving files from /tmp can sometimes cause problems.
5978 # Create a temporary directory, and hook for its removal unless debugging.
5979 $debug ||
5981 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5982 trap '{ (exit 1); exit 1; }' 1 2 13 15
5985 # Create a (secure) tmp directory for tmp files.
5988 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5989 test -n "$tmp" && test -d "$tmp"
5990 } ||
5992 tmp=./confstat$$-$RANDOM
5993 (umask 077 && mkdir $tmp)
5994 } ||
5996 echo "$me: cannot create a temporary directory in ." >&2
5997 { (exit 1); exit 1; }
6000 _ACEOF
6002 cat >>$CONFIG_STATUS <<_ACEOF
6005 # CONFIG_FILES section.
6008 # No need to generate the scripts if there are no CONFIG_FILES.
6009 # This happens for instance when ./config.status config.h
6010 if test -n "\$CONFIG_FILES"; then
6011 # Protect against being on the right side of a sed subst in config.status.
6012 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6013 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6014 s,@SHELL@,$SHELL,;t t
6015 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6016 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6017 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6018 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6019 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6020 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6021 s,@exec_prefix@,$exec_prefix,;t t
6022 s,@prefix@,$prefix,;t t
6023 s,@program_transform_name@,$program_transform_name,;t t
6024 s,@bindir@,$bindir,;t t
6025 s,@sbindir@,$sbindir,;t t
6026 s,@libexecdir@,$libexecdir,;t t
6027 s,@datadir@,$datadir,;t t
6028 s,@sysconfdir@,$sysconfdir,;t t
6029 s,@sharedstatedir@,$sharedstatedir,;t t
6030 s,@localstatedir@,$localstatedir,;t t
6031 s,@libdir@,$libdir,;t t
6032 s,@includedir@,$includedir,;t t
6033 s,@oldincludedir@,$oldincludedir,;t t
6034 s,@infodir@,$infodir,;t t
6035 s,@mandir@,$mandir,;t t
6036 s,@build_alias@,$build_alias,;t t
6037 s,@host_alias@,$host_alias,;t t
6038 s,@target_alias@,$target_alias,;t t
6039 s,@DEFS@,$DEFS,;t t
6040 s,@ECHO_C@,$ECHO_C,;t t
6041 s,@ECHO_N@,$ECHO_N,;t t
6042 s,@ECHO_T@,$ECHO_T,;t t
6043 s,@LIBS@,$LIBS,;t t
6044 s,@CXX@,$CXX,;t t
6045 s,@CXXFLAGS@,$CXXFLAGS,;t t
6046 s,@LDFLAGS@,$LDFLAGS,;t t
6047 s,@CPPFLAGS@,$CPPFLAGS,;t t
6048 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6049 s,@EXEEXT@,$EXEEXT,;t t
6050 s,@OBJEXT@,$OBJEXT,;t t
6051 s,@PWLIBDIR@,$PWLIBDIR,;t t
6052 s,@PWINSTDIR@,$PWINSTDIR,;t t
6053 s,@INSTALLPREFIX@,$INSTALLPREFIX,;t t
6054 s,@LIBDIR@,$LIBDIR,;t t
6055 s,@CC@,$CC,;t t
6056 s,@CFLAGS@,$CFLAGS,;t t
6057 s,@ac_ct_CC@,$ac_ct_CC,;t t
6058 s,@CPP@,$CPP,;t t
6059 s,@EGREP@,$EGREP,;t t
6060 s,@HAS_ALSA@,$HAS_ALSA,;t t
6061 s,@HAS_ESD@,$HAS_ESD,;t t
6062 s,@HAS_OSS@,$HAS_OSS,;t t
6063 s,@HAS_SUNAUDIO@,$HAS_SUNAUDIO,;t t
6064 s,@HAS_V4L@,$HAS_V4L,;t t
6065 s,@HAS_V4L2@,$HAS_V4L2,;t t
6066 s,@HAS_BSDVIDEOCAP@,$HAS_BSDVIDEOCAP,;t t
6067 s,@HAS_AVC1394@,$HAS_AVC1394,;t t
6068 s,@HAS_DC1394@,$HAS_DC1394,;t t
6069 s,@DC_CFLAGS@,$DC_CFLAGS,;t t
6070 s,@LIBOBJS@,$LIBOBJS,;t t
6071 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6072 CEOF
6074 _ACEOF
6076 cat >>$CONFIG_STATUS <<\_ACEOF
6077 # Split the substitutions into bite-sized pieces for seds with
6078 # small command number limits, like on Digital OSF/1 and HP-UX.
6079 ac_max_sed_lines=48
6080 ac_sed_frag=1 # Number of current file.
6081 ac_beg=1 # First line for current file.
6082 ac_end=$ac_max_sed_lines # Line after last line for current file.
6083 ac_more_lines=:
6084 ac_sed_cmds=
6085 while $ac_more_lines; do
6086 if test $ac_beg -gt 1; then
6087 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6088 else
6089 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6091 if test ! -s $tmp/subs.frag; then
6092 ac_more_lines=false
6093 else
6094 # The purpose of the label and of the branching condition is to
6095 # speed up the sed processing (if there are no `@' at all, there
6096 # is no need to browse any of the substitutions).
6097 # These are the two extra sed commands mentioned above.
6098 (echo ':t
6099 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6100 if test -z "$ac_sed_cmds"; then
6101 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6102 else
6103 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6105 ac_sed_frag=`expr $ac_sed_frag + 1`
6106 ac_beg=$ac_end
6107 ac_end=`expr $ac_end + $ac_max_sed_lines`
6109 done
6110 if test -z "$ac_sed_cmds"; then
6111 ac_sed_cmds=cat
6113 fi # test -n "$CONFIG_FILES"
6115 _ACEOF
6116 cat >>$CONFIG_STATUS <<\_ACEOF
6117 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6118 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6119 case $ac_file in
6120 - | *:- | *:-:* ) # input from stdin
6121 cat >$tmp/stdin
6122 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6123 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6124 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6125 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6126 * ) ac_file_in=$ac_file.in ;;
6127 esac
6129 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6130 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6131 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6132 X"$ac_file" : 'X\(//\)[^/]' \| \
6133 X"$ac_file" : 'X\(//\)$' \| \
6134 X"$ac_file" : 'X\(/\)' \| \
6135 . : '\(.\)' 2>/dev/null ||
6136 echo X"$ac_file" |
6137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6139 /^X\(\/\/\)$/{ s//\1/; q; }
6140 /^X\(\/\).*/{ s//\1/; q; }
6141 s/.*/./; q'`
6142 { if $as_mkdir_p; then
6143 mkdir -p "$ac_dir"
6144 else
6145 as_dir="$ac_dir"
6146 as_dirs=
6147 while test ! -d "$as_dir"; do
6148 as_dirs="$as_dir $as_dirs"
6149 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6150 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6151 X"$as_dir" : 'X\(//\)[^/]' \| \
6152 X"$as_dir" : 'X\(//\)$' \| \
6153 X"$as_dir" : 'X\(/\)' \| \
6154 . : '\(.\)' 2>/dev/null ||
6155 echo X"$as_dir" |
6156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6157 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6158 /^X\(\/\/\)$/{ s//\1/; q; }
6159 /^X\(\/\).*/{ s//\1/; q; }
6160 s/.*/./; q'`
6161 done
6162 test ! -n "$as_dirs" || mkdir $as_dirs
6163 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6164 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6165 { (exit 1); exit 1; }; }; }
6167 ac_builddir=.
6169 if test "$ac_dir" != .; then
6170 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6171 # A "../" for each directory in $ac_dir_suffix.
6172 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6173 else
6174 ac_dir_suffix= ac_top_builddir=
6177 case $srcdir in
6178 .) # No --srcdir option. We are building in place.
6179 ac_srcdir=.
6180 if test -z "$ac_top_builddir"; then
6181 ac_top_srcdir=.
6182 else
6183 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6184 fi ;;
6185 [\\/]* | ?:[\\/]* ) # Absolute path.
6186 ac_srcdir=$srcdir$ac_dir_suffix;
6187 ac_top_srcdir=$srcdir ;;
6188 *) # Relative path.
6189 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6190 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6191 esac
6193 # Do not use `cd foo && pwd` to compute absolute paths, because
6194 # the directories may not exist.
6195 case `pwd` in
6196 .) ac_abs_builddir="$ac_dir";;
6198 case "$ac_dir" in
6199 .) ac_abs_builddir=`pwd`;;
6200 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6201 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6202 esac;;
6203 esac
6204 case $ac_abs_builddir in
6205 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6207 case ${ac_top_builddir}. in
6208 .) ac_abs_top_builddir=$ac_abs_builddir;;
6209 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6210 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6211 esac;;
6212 esac
6213 case $ac_abs_builddir in
6214 .) ac_abs_srcdir=$ac_srcdir;;
6216 case $ac_srcdir in
6217 .) ac_abs_srcdir=$ac_abs_builddir;;
6218 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6219 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6220 esac;;
6221 esac
6222 case $ac_abs_builddir in
6223 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6225 case $ac_top_srcdir in
6226 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6227 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6228 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6229 esac;;
6230 esac
6234 if test x"$ac_file" != x-; then
6235 { echo "$as_me:$LINENO: creating $ac_file" >&5
6236 echo "$as_me: creating $ac_file" >&6;}
6237 rm -f "$ac_file"
6239 # Let's still pretend it is `configure' which instantiates (i.e., don't
6240 # use $as_me), people would be surprised to read:
6241 # /* config.h. Generated by config.status. */
6242 if test x"$ac_file" = x-; then
6243 configure_input=
6244 else
6245 configure_input="$ac_file. "
6247 configure_input=$configure_input"Generated from `echo $ac_file_in |
6248 sed 's,.*/,,'` by configure."
6250 # First look for the input files in the build tree, otherwise in the
6251 # src tree.
6252 ac_file_inputs=`IFS=:
6253 for f in $ac_file_in; do
6254 case $f in
6255 -) echo $tmp/stdin ;;
6256 [\\/$]*)
6257 # Absolute (can't be DOS-style, as IFS=:)
6258 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6259 echo "$as_me: error: cannot find input file: $f" >&2;}
6260 { (exit 1); exit 1; }; }
6261 echo "$f";;
6262 *) # Relative
6263 if test -f "$f"; then
6264 # Build tree
6265 echo "$f"
6266 elif test -f "$srcdir/$f"; then
6267 # Source tree
6268 echo "$srcdir/$f"
6269 else
6270 # /dev/null tree
6271 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6272 echo "$as_me: error: cannot find input file: $f" >&2;}
6273 { (exit 1); exit 1; }; }
6274 fi;;
6275 esac
6276 done` || { (exit 1); exit 1; }
6277 _ACEOF
6278 cat >>$CONFIG_STATUS <<_ACEOF
6279 sed "$ac_vpsub
6280 $extrasub
6281 _ACEOF
6282 cat >>$CONFIG_STATUS <<\_ACEOF
6284 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6285 s,@configure_input@,$configure_input,;t t
6286 s,@srcdir@,$ac_srcdir,;t t
6287 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6288 s,@top_srcdir@,$ac_top_srcdir,;t t
6289 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6290 s,@builddir@,$ac_builddir,;t t
6291 s,@abs_builddir@,$ac_abs_builddir,;t t
6292 s,@top_builddir@,$ac_top_builddir,;t t
6293 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6294 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6295 rm -f $tmp/stdin
6296 if test x"$ac_file" != x-; then
6297 mv $tmp/out $ac_file
6298 else
6299 cat $tmp/out
6300 rm -f $tmp/out
6303 done
6304 _ACEOF
6306 cat >>$CONFIG_STATUS <<\_ACEOF
6308 { (exit 0); exit 0; }
6309 _ACEOF
6310 chmod +x $CONFIG_STATUS
6311 ac_clean_files=$ac_clean_files_save
6314 # configure is writing to config.log, and then calls config.status.
6315 # config.status does its own redirection, appending to config.log.
6316 # Unfortunately, on DOS this fails, as config.log is still kept open
6317 # by configure, so config.status won't be able to write to it; its
6318 # output is simply discarded. So we exec the FD to /dev/null,
6319 # effectively closing config.log, so it can be properly (re)opened and
6320 # appended to by config.status. When coming back to configure, we
6321 # need to make the FD available again.
6322 if test "$no_create" != yes; then
6323 ac_cs_success=:
6324 ac_config_status_args=
6325 test "$silent" = yes &&
6326 ac_config_status_args="$ac_config_status_args --quiet"
6327 exec 5>/dev/null
6328 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6329 exec 5>>config.log
6330 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6331 # would make configure fail if this is the last instruction.
6332 $ac_cs_success || { (exit 1); exit 1; }