FPS option part 2
[fswebcam.git] / configure
blob75fa4bad48dd03ea33bdf4a6afadf431c7ee64e9
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for fswebcam 20091224.
5 # Report bugs to <phil@firestorm.cx>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 as_nl='
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
161 /^X\/\(\/\/\)$/{
162 s//\1/
165 /^X\/\(\/\).*/{
166 s//\1/
169 s/.*/./; q'`
171 # CDPATH.
172 $as_unset CDPATH
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
186 as_func_success () {
187 as_func_return 0
189 as_func_failure () {
190 as_func_return 1
192 as_func_ret_success () {
193 return 0
195 as_func_ret_failure () {
196 return 1
199 exitcode=0
200 if as_func_success; then
202 else
203 exitcode=1
204 echo as_func_success failed.
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 else
227 exitcode=1
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
298 (as_func_return () {
299 (exit $1)
301 as_func_success () {
302 as_func_return 0
304 as_func_failure () {
305 as_func_return 1
307 as_func_ret_success () {
308 return 0
310 as_func_ret_failure () {
311 return 1
314 exitcode=0
315 if as_func_success; then
317 else
318 exitcode=1
319 echo as_func_success failed.
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 else
342 exitcode=1
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354 _ASEOF
355 }; then
356 break
361 done
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
388 (exit \$1)
390 as_func_success () {
391 as_func_return 0
393 as_func_failure () {
394 as_func_return 1
396 as_func_ret_success () {
397 return 0
399 as_func_ret_failure () {
400 return 1
403 exitcode=0
404 if as_func_success; then
406 else
407 exitcode=1
408 echo as_func_success failed.
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 else
431 exitcode=1
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
468 :lineno
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
532 else
533 as_ln_s='cp -p'
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
576 exec 7<&0 </dev/null 6>&1
578 # Name of the host.
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 # Initializations.
586 ac_default_prefix=/usr/local
587 ac_clean_files=
588 ac_config_libobj_dir=.
589 LIBOBJS=
590 cross_compiling=no
591 subdirs=
592 MFLAGS=
593 MAKEFLAGS=
594 SHELL=${CONFIG_SHELL-/bin/sh}
596 # Identity of this package.
597 PACKAGE_NAME='fswebcam'
598 PACKAGE_TARNAME='fswebcam'
599 PACKAGE_VERSION='20091224'
600 PACKAGE_STRING='fswebcam 20091224'
601 PACKAGE_BUGREPORT='phil@firestorm.cx'
603 # Factoring default headers for most tests.
604 ac_includes_default="\
605 #include <stdio.h>
606 #ifdef HAVE_SYS_TYPES_H
607 # include <sys/types.h>
608 #endif
609 #ifdef HAVE_SYS_STAT_H
610 # include <sys/stat.h>
611 #endif
612 #ifdef STDC_HEADERS
613 # include <stdlib.h>
614 # include <stddef.h>
615 #else
616 # ifdef HAVE_STDLIB_H
617 # include <stdlib.h>
618 # endif
619 #endif
620 #ifdef HAVE_STRING_H
621 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 # include <memory.h>
623 # endif
624 # include <string.h>
625 #endif
626 #ifdef HAVE_STRINGS_H
627 # include <strings.h>
628 #endif
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
631 #endif
632 #ifdef HAVE_STDINT_H
633 # include <stdint.h>
634 #endif
635 #ifdef HAVE_UNISTD_H
636 # include <unistd.h>
637 #endif"
639 ac_subst_vars='LTLIBOBJS
640 LIBOBJS
641 EGREP
642 GREP
644 SRC_OBJS
645 OBJEXT
646 EXEEXT
647 ac_ct_CC
648 CPPFLAGS
649 LDFLAGS
650 CFLAGS
652 target_alias
653 host_alias
654 build_alias
655 LIBS
656 ECHO_T
657 ECHO_N
658 ECHO_C
659 DEFS
660 mandir
661 localedir
662 libdir
663 psdir
664 pdfdir
665 dvidir
666 htmldir
667 infodir
668 docdir
669 oldincludedir
670 includedir
671 localstatedir
672 sharedstatedir
673 sysconfdir
674 datadir
675 datarootdir
676 libexecdir
677 sbindir
678 bindir
679 program_transform_name
680 prefix
681 exec_prefix
682 PACKAGE_BUGREPORT
683 PACKAGE_STRING
684 PACKAGE_VERSION
685 PACKAGE_TARNAME
686 PACKAGE_NAME
687 PATH_SEPARATOR
688 SHELL'
689 ac_subst_files=''
690 ac_user_opts='
691 enable_option_checking
692 enable_32bit_buffer
693 enable_v4l1
694 enable_v4l2
696 ac_precious_vars='build_alias
697 host_alias
698 target_alias
700 CFLAGS
701 LDFLAGS
702 LIBS
703 CPPFLAGS
704 CPP'
707 # Initialize some variables set by options.
708 ac_init_help=
709 ac_init_version=false
710 ac_unrecognized_opts=
711 ac_unrecognized_sep=
712 # The variables have the same names as the options, with
713 # dashes changed to underlines.
714 cache_file=/dev/null
715 exec_prefix=NONE
716 no_create=
717 no_recursion=
718 prefix=NONE
719 program_prefix=NONE
720 program_suffix=NONE
721 program_transform_name=s,x,x,
722 silent=
723 site=
724 srcdir=
725 verbose=
726 x_includes=NONE
727 x_libraries=NONE
729 # Installation directory options.
730 # These are left unexpanded so users can "make install exec_prefix=/foo"
731 # and all the variables that are supposed to be based on exec_prefix
732 # by default will actually change.
733 # Use braces instead of parens because sh, perl, etc. also accept them.
734 # (The list follows the same order as the GNU Coding Standards.)
735 bindir='${exec_prefix}/bin'
736 sbindir='${exec_prefix}/sbin'
737 libexecdir='${exec_prefix}/libexec'
738 datarootdir='${prefix}/share'
739 datadir='${datarootdir}'
740 sysconfdir='${prefix}/etc'
741 sharedstatedir='${prefix}/com'
742 localstatedir='${prefix}/var'
743 includedir='${prefix}/include'
744 oldincludedir='/usr/include'
745 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
746 infodir='${datarootdir}/info'
747 htmldir='${docdir}'
748 dvidir='${docdir}'
749 pdfdir='${docdir}'
750 psdir='${docdir}'
751 libdir='${exec_prefix}/lib'
752 localedir='${datarootdir}/locale'
753 mandir='${datarootdir}/man'
755 ac_prev=
756 ac_dashdash=
757 for ac_option
759 # If the previous option needs an argument, assign it.
760 if test -n "$ac_prev"; then
761 eval $ac_prev=\$ac_option
762 ac_prev=
763 continue
766 case $ac_option in
767 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
768 *) ac_optarg=yes ;;
769 esac
771 # Accept the important Cygnus configure options, so we can diagnose typos.
773 case $ac_dashdash$ac_option in
775 ac_dashdash=yes ;;
777 -bindir | --bindir | --bindi | --bind | --bin | --bi)
778 ac_prev=bindir ;;
779 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
780 bindir=$ac_optarg ;;
782 -build | --build | --buil | --bui | --bu)
783 ac_prev=build_alias ;;
784 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
785 build_alias=$ac_optarg ;;
787 -cache-file | --cache-file | --cache-fil | --cache-fi \
788 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
789 ac_prev=cache_file ;;
790 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
791 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
792 cache_file=$ac_optarg ;;
794 --config-cache | -C)
795 cache_file=config.cache ;;
797 -datadir | --datadir | --datadi | --datad)
798 ac_prev=datadir ;;
799 -datadir=* | --datadir=* | --datadi=* | --datad=*)
800 datadir=$ac_optarg ;;
802 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
803 | --dataroo | --dataro | --datar)
804 ac_prev=datarootdir ;;
805 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
806 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
807 datarootdir=$ac_optarg ;;
809 -disable-* | --disable-*)
810 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
811 # Reject names that are not valid shell variable names.
812 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
813 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
814 { (exit 1); exit 1; }; }
815 ac_useropt_orig=$ac_useropt
816 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
817 case $ac_user_opts in
819 "enable_$ac_useropt"
820 "*) ;;
821 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
822 ac_unrecognized_sep=', ';;
823 esac
824 eval enable_$ac_useropt=no ;;
826 -docdir | --docdir | --docdi | --doc | --do)
827 ac_prev=docdir ;;
828 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
829 docdir=$ac_optarg ;;
831 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
832 ac_prev=dvidir ;;
833 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
834 dvidir=$ac_optarg ;;
836 -enable-* | --enable-*)
837 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
838 # Reject names that are not valid shell variable names.
839 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
840 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
841 { (exit 1); exit 1; }; }
842 ac_useropt_orig=$ac_useropt
843 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
844 case $ac_user_opts in
846 "enable_$ac_useropt"
847 "*) ;;
848 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
849 ac_unrecognized_sep=', ';;
850 esac
851 eval enable_$ac_useropt=\$ac_optarg ;;
853 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
854 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
855 | --exec | --exe | --ex)
856 ac_prev=exec_prefix ;;
857 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
858 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
859 | --exec=* | --exe=* | --ex=*)
860 exec_prefix=$ac_optarg ;;
862 -gas | --gas | --ga | --g)
863 # Obsolete; use --with-gas.
864 with_gas=yes ;;
866 -help | --help | --hel | --he | -h)
867 ac_init_help=long ;;
868 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
869 ac_init_help=recursive ;;
870 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
871 ac_init_help=short ;;
873 -host | --host | --hos | --ho)
874 ac_prev=host_alias ;;
875 -host=* | --host=* | --hos=* | --ho=*)
876 host_alias=$ac_optarg ;;
878 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
879 ac_prev=htmldir ;;
880 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
881 | --ht=*)
882 htmldir=$ac_optarg ;;
884 -includedir | --includedir | --includedi | --included | --include \
885 | --includ | --inclu | --incl | --inc)
886 ac_prev=includedir ;;
887 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
888 | --includ=* | --inclu=* | --incl=* | --inc=*)
889 includedir=$ac_optarg ;;
891 -infodir | --infodir | --infodi | --infod | --info | --inf)
892 ac_prev=infodir ;;
893 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
894 infodir=$ac_optarg ;;
896 -libdir | --libdir | --libdi | --libd)
897 ac_prev=libdir ;;
898 -libdir=* | --libdir=* | --libdi=* | --libd=*)
899 libdir=$ac_optarg ;;
901 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
902 | --libexe | --libex | --libe)
903 ac_prev=libexecdir ;;
904 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
905 | --libexe=* | --libex=* | --libe=*)
906 libexecdir=$ac_optarg ;;
908 -localedir | --localedir | --localedi | --localed | --locale)
909 ac_prev=localedir ;;
910 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
911 localedir=$ac_optarg ;;
913 -localstatedir | --localstatedir | --localstatedi | --localstated \
914 | --localstate | --localstat | --localsta | --localst | --locals)
915 ac_prev=localstatedir ;;
916 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
917 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
918 localstatedir=$ac_optarg ;;
920 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
921 ac_prev=mandir ;;
922 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
923 mandir=$ac_optarg ;;
925 -nfp | --nfp | --nf)
926 # Obsolete; use --without-fp.
927 with_fp=no ;;
929 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
930 | --no-cr | --no-c | -n)
931 no_create=yes ;;
933 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
934 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
935 no_recursion=yes ;;
937 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
938 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
939 | --oldin | --oldi | --old | --ol | --o)
940 ac_prev=oldincludedir ;;
941 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
942 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
943 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
944 oldincludedir=$ac_optarg ;;
946 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
947 ac_prev=prefix ;;
948 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
949 prefix=$ac_optarg ;;
951 -program-prefix | --program-prefix | --program-prefi | --program-pref \
952 | --program-pre | --program-pr | --program-p)
953 ac_prev=program_prefix ;;
954 -program-prefix=* | --program-prefix=* | --program-prefi=* \
955 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
956 program_prefix=$ac_optarg ;;
958 -program-suffix | --program-suffix | --program-suffi | --program-suff \
959 | --program-suf | --program-su | --program-s)
960 ac_prev=program_suffix ;;
961 -program-suffix=* | --program-suffix=* | --program-suffi=* \
962 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
963 program_suffix=$ac_optarg ;;
965 -program-transform-name | --program-transform-name \
966 | --program-transform-nam | --program-transform-na \
967 | --program-transform-n | --program-transform- \
968 | --program-transform | --program-transfor \
969 | --program-transfo | --program-transf \
970 | --program-trans | --program-tran \
971 | --progr-tra | --program-tr | --program-t)
972 ac_prev=program_transform_name ;;
973 -program-transform-name=* | --program-transform-name=* \
974 | --program-transform-nam=* | --program-transform-na=* \
975 | --program-transform-n=* | --program-transform-=* \
976 | --program-transform=* | --program-transfor=* \
977 | --program-transfo=* | --program-transf=* \
978 | --program-trans=* | --program-tran=* \
979 | --progr-tra=* | --program-tr=* | --program-t=*)
980 program_transform_name=$ac_optarg ;;
982 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
983 ac_prev=pdfdir ;;
984 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
985 pdfdir=$ac_optarg ;;
987 -psdir | --psdir | --psdi | --psd | --ps)
988 ac_prev=psdir ;;
989 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
990 psdir=$ac_optarg ;;
992 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
993 | -silent | --silent | --silen | --sile | --sil)
994 silent=yes ;;
996 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
997 ac_prev=sbindir ;;
998 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
999 | --sbi=* | --sb=*)
1000 sbindir=$ac_optarg ;;
1002 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1003 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1004 | --sharedst | --shareds | --shared | --share | --shar \
1005 | --sha | --sh)
1006 ac_prev=sharedstatedir ;;
1007 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1008 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1009 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1010 | --sha=* | --sh=*)
1011 sharedstatedir=$ac_optarg ;;
1013 -site | --site | --sit)
1014 ac_prev=site ;;
1015 -site=* | --site=* | --sit=*)
1016 site=$ac_optarg ;;
1018 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1019 ac_prev=srcdir ;;
1020 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1021 srcdir=$ac_optarg ;;
1023 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1024 | --syscon | --sysco | --sysc | --sys | --sy)
1025 ac_prev=sysconfdir ;;
1026 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1027 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1028 sysconfdir=$ac_optarg ;;
1030 -target | --target | --targe | --targ | --tar | --ta | --t)
1031 ac_prev=target_alias ;;
1032 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1033 target_alias=$ac_optarg ;;
1035 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1036 verbose=yes ;;
1038 -version | --version | --versio | --versi | --vers | -V)
1039 ac_init_version=: ;;
1041 -with-* | --with-*)
1042 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1046 { (exit 1); exit 1; }; }
1047 ac_useropt_orig=$ac_useropt
1048 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049 case $ac_user_opts in
1051 "with_$ac_useropt"
1052 "*) ;;
1053 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1054 ac_unrecognized_sep=', ';;
1055 esac
1056 eval with_$ac_useropt=\$ac_optarg ;;
1058 -without-* | --without-*)
1059 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1063 { (exit 1); exit 1; }; }
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1068 "with_$ac_useropt"
1069 "*) ;;
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1072 esac
1073 eval with_$ac_useropt=no ;;
1075 --x)
1076 # Obsolete; use --with-x.
1077 with_x=yes ;;
1079 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1080 | --x-incl | --x-inc | --x-in | --x-i)
1081 ac_prev=x_includes ;;
1082 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1083 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1084 x_includes=$ac_optarg ;;
1086 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1087 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1088 ac_prev=x_libraries ;;
1089 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1090 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1091 x_libraries=$ac_optarg ;;
1093 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1094 Try \`$0 --help' for more information." >&2
1095 { (exit 1); exit 1; }; }
1098 *=*)
1099 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1102 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1103 { (exit 1); exit 1; }; }
1104 eval $ac_envvar=\$ac_optarg
1105 export $ac_envvar ;;
1108 # FIXME: should be removed in autoconf 3.0.
1109 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1110 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1111 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1112 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1115 esac
1116 done
1118 if test -n "$ac_prev"; then
1119 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1120 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1121 { (exit 1); exit 1; }; }
1124 if test -n "$ac_unrecognized_opts"; then
1125 case $enable_option_checking in
1126 no) ;;
1127 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1128 { (exit 1); exit 1; }; } ;;
1129 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1130 esac
1133 # Check all directory arguments for consistency.
1134 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1135 datadir sysconfdir sharedstatedir localstatedir includedir \
1136 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1137 libdir localedir mandir
1139 eval ac_val=\$$ac_var
1140 # Remove trailing slashes.
1141 case $ac_val in
1142 */ )
1143 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1144 eval $ac_var=\$ac_val;;
1145 esac
1146 # Be sure to have absolute directory names.
1147 case $ac_val in
1148 [\\/$]* | ?:[\\/]* ) continue;;
1149 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1150 esac
1151 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1152 { (exit 1); exit 1; }; }
1153 done
1155 # There might be people who depend on the old broken behavior: `$host'
1156 # used to hold the argument of --host etc.
1157 # FIXME: To remove some day.
1158 build=$build_alias
1159 host=$host_alias
1160 target=$target_alias
1162 # FIXME: To remove some day.
1163 if test "x$host_alias" != x; then
1164 if test "x$build_alias" = x; then
1165 cross_compiling=maybe
1166 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1167 If a cross compiler is detected then cross compile mode will be used." >&2
1168 elif test "x$build_alias" != "x$host_alias"; then
1169 cross_compiling=yes
1173 ac_tool_prefix=
1174 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1176 test "$silent" = yes && exec 6>/dev/null
1179 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1180 ac_ls_di=`ls -di .` &&
1181 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1182 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1183 { (exit 1); exit 1; }; }
1184 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1185 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1186 { (exit 1); exit 1; }; }
1189 # Find the source files, if location was not specified.
1190 if test -z "$srcdir"; then
1191 ac_srcdir_defaulted=yes
1192 # Try the directory containing this script, then the parent directory.
1193 ac_confdir=`$as_dirname -- "$as_myself" ||
1194 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1195 X"$as_myself" : 'X\(//\)[^/]' \| \
1196 X"$as_myself" : 'X\(//\)$' \| \
1197 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1198 $as_echo X"$as_myself" |
1199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1200 s//\1/
1203 /^X\(\/\/\)[^/].*/{
1204 s//\1/
1207 /^X\(\/\/\)$/{
1208 s//\1/
1211 /^X\(\/\).*/{
1212 s//\1/
1215 s/.*/./; q'`
1216 srcdir=$ac_confdir
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 srcdir=..
1220 else
1221 ac_srcdir_defaulted=no
1223 if test ! -r "$srcdir/$ac_unique_file"; then
1224 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1225 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1226 { (exit 1); exit 1; }; }
1228 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1229 ac_abs_confdir=`(
1230 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1231 { (exit 1); exit 1; }; }
1232 pwd)`
1233 # When building in place, set srcdir=.
1234 if test "$ac_abs_confdir" = "$ac_pwd"; then
1235 srcdir=.
1237 # Remove unnecessary trailing slashes from srcdir.
1238 # Double slashes in file names in object file debugging info
1239 # mess up M-x gdb in Emacs.
1240 case $srcdir in
1241 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1242 esac
1243 for ac_var in $ac_precious_vars; do
1244 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1245 eval ac_env_${ac_var}_value=\$${ac_var}
1246 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1247 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1248 done
1251 # Report the --help message.
1253 if test "$ac_init_help" = "long"; then
1254 # Omit some internal or obsolete options to make the list less imposing.
1255 # This message is too long to be a string in the A/UX 3.1 sh.
1256 cat <<_ACEOF
1257 \`configure' configures fswebcam 20091224 to adapt to many kinds of systems.
1259 Usage: $0 [OPTION]... [VAR=VALUE]...
1261 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1262 VAR=VALUE. See below for descriptions of some of the useful variables.
1264 Defaults for the options are specified in brackets.
1266 Configuration:
1267 -h, --help display this help and exit
1268 --help=short display options specific to this package
1269 --help=recursive display the short help of all the included packages
1270 -V, --version display version information and exit
1271 -q, --quiet, --silent do not print \`checking...' messages
1272 --cache-file=FILE cache test results in FILE [disabled]
1273 -C, --config-cache alias for \`--cache-file=config.cache'
1274 -n, --no-create do not create output files
1275 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1277 Installation directories:
1278 --prefix=PREFIX install architecture-independent files in PREFIX
1279 [$ac_default_prefix]
1280 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1281 [PREFIX]
1283 By default, \`make install' will install all the files in
1284 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1285 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1286 for instance \`--prefix=\$HOME'.
1288 For better control, use the options below.
1290 Fine tuning of the installation directories:
1291 --bindir=DIR user executables [EPREFIX/bin]
1292 --sbindir=DIR system admin executables [EPREFIX/sbin]
1293 --libexecdir=DIR program executables [EPREFIX/libexec]
1294 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1295 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1296 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1297 --libdir=DIR object code libraries [EPREFIX/lib]
1298 --includedir=DIR C header files [PREFIX/include]
1299 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1300 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1301 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1302 --infodir=DIR info documentation [DATAROOTDIR/info]
1303 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1304 --mandir=DIR man documentation [DATAROOTDIR/man]
1305 --docdir=DIR documentation root [DATAROOTDIR/doc/fswebcam]
1306 --htmldir=DIR html documentation [DOCDIR]
1307 --dvidir=DIR dvi documentation [DOCDIR]
1308 --pdfdir=DIR pdf documentation [DOCDIR]
1309 --psdir=DIR ps documentation [DOCDIR]
1310 _ACEOF
1312 cat <<\_ACEOF
1313 _ACEOF
1316 if test -n "$ac_init_help"; then
1317 case $ac_init_help in
1318 short | recursive ) echo "Configuration of fswebcam 20091224:";;
1319 esac
1320 cat <<\_ACEOF
1322 Optional Features:
1323 --disable-option-checking ignore unrecognized --enable/--with options
1324 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1325 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1326 --enable-32bit-buffer allow capturing of 2^32 frames
1327 --disable-v4l1 disable V4L1 support
1328 --disable-v4l2 disable V4L2 support
1330 Some influential environment variables:
1331 CC C compiler command
1332 CFLAGS C compiler flags
1333 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1334 nonstandard directory <lib dir>
1335 LIBS libraries to pass to the linker, e.g. -l<library>
1336 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1337 you have headers in a nonstandard directory <include dir>
1338 CPP C preprocessor
1340 Use these variables to override the choices made by `configure' or to help
1341 it to find libraries and programs with nonstandard names/locations.
1343 Report bugs to <phil@firestorm.cx>.
1344 _ACEOF
1345 ac_status=$?
1348 if test "$ac_init_help" = "recursive"; then
1349 # If there are subdirs, report their specific --help.
1350 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1351 test -d "$ac_dir" ||
1352 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1353 continue
1354 ac_builddir=.
1356 case "$ac_dir" in
1357 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1359 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1360 # A ".." for each directory in $ac_dir_suffix.
1361 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1362 case $ac_top_builddir_sub in
1363 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1364 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1365 esac ;;
1366 esac
1367 ac_abs_top_builddir=$ac_pwd
1368 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1369 # for backward compatibility:
1370 ac_top_builddir=$ac_top_build_prefix
1372 case $srcdir in
1373 .) # We are building in place.
1374 ac_srcdir=.
1375 ac_top_srcdir=$ac_top_builddir_sub
1376 ac_abs_top_srcdir=$ac_pwd ;;
1377 [\\/]* | ?:[\\/]* ) # Absolute name.
1378 ac_srcdir=$srcdir$ac_dir_suffix;
1379 ac_top_srcdir=$srcdir
1380 ac_abs_top_srcdir=$srcdir ;;
1381 *) # Relative name.
1382 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1383 ac_top_srcdir=$ac_top_build_prefix$srcdir
1384 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1385 esac
1386 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1388 cd "$ac_dir" || { ac_status=$?; continue; }
1389 # Check for guested configure.
1390 if test -f "$ac_srcdir/configure.gnu"; then
1391 echo &&
1392 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1393 elif test -f "$ac_srcdir/configure"; then
1394 echo &&
1395 $SHELL "$ac_srcdir/configure" --help=recursive
1396 else
1397 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1398 fi || ac_status=$?
1399 cd "$ac_pwd" || { ac_status=$?; break; }
1400 done
1403 test -n "$ac_init_help" && exit $ac_status
1404 if $ac_init_version; then
1405 cat <<\_ACEOF
1406 fswebcam configure 20091224
1407 generated by GNU Autoconf 2.63
1409 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1410 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1411 This configure script is free software; the Free Software Foundation
1412 gives unlimited permission to copy, distribute and modify it.
1413 _ACEOF
1414 exit
1416 cat >config.log <<_ACEOF
1417 This file contains any messages produced by compilers while
1418 running configure, to aid debugging if configure makes a mistake.
1420 It was created by fswebcam $as_me 20091224, which was
1421 generated by GNU Autoconf 2.63. Invocation command line was
1423 $ $0 $@
1425 _ACEOF
1426 exec 5>>config.log
1428 cat <<_ASUNAME
1429 ## --------- ##
1430 ## Platform. ##
1431 ## --------- ##
1433 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1434 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1435 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1436 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1437 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1439 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1440 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1442 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1443 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1444 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1445 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1446 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1447 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1448 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1450 _ASUNAME
1452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453 for as_dir in $PATH
1455 IFS=$as_save_IFS
1456 test -z "$as_dir" && as_dir=.
1457 $as_echo "PATH: $as_dir"
1458 done
1459 IFS=$as_save_IFS
1461 } >&5
1463 cat >&5 <<_ACEOF
1466 ## ----------- ##
1467 ## Core tests. ##
1468 ## ----------- ##
1470 _ACEOF
1473 # Keep a trace of the command line.
1474 # Strip out --no-create and --no-recursion so they do not pile up.
1475 # Strip out --silent because we don't want to record it for future runs.
1476 # Also quote any args containing shell meta-characters.
1477 # Make two passes to allow for proper duplicate-argument suppression.
1478 ac_configure_args=
1479 ac_configure_args0=
1480 ac_configure_args1=
1481 ac_must_keep_next=false
1482 for ac_pass in 1 2
1484 for ac_arg
1486 case $ac_arg in
1487 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1488 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1489 | -silent | --silent | --silen | --sile | --sil)
1490 continue ;;
1491 *\'*)
1492 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1493 esac
1494 case $ac_pass in
1495 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1497 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1498 if test $ac_must_keep_next = true; then
1499 ac_must_keep_next=false # Got value, back to normal.
1500 else
1501 case $ac_arg in
1502 *=* | --config-cache | -C | -disable-* | --disable-* \
1503 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1504 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1505 | -with-* | --with-* | -without-* | --without-* | --x)
1506 case "$ac_configure_args0 " in
1507 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1508 esac
1510 -* ) ac_must_keep_next=true ;;
1511 esac
1513 ac_configure_args="$ac_configure_args '$ac_arg'"
1515 esac
1516 done
1517 done
1518 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1519 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1521 # When interrupted or exit'd, cleanup temporary files, and complete
1522 # config.log. We remove comments because anyway the quotes in there
1523 # would cause problems or look ugly.
1524 # WARNING: Use '\'' to represent an apostrophe within the trap.
1525 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1526 trap 'exit_status=$?
1527 # Save into config.log some information that might help in debugging.
1529 echo
1531 cat <<\_ASBOX
1532 ## ---------------- ##
1533 ## Cache variables. ##
1534 ## ---------------- ##
1535 _ASBOX
1536 echo
1537 # The following way of writing the cache mishandles newlines in values,
1539 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1540 eval ac_val=\$$ac_var
1541 case $ac_val in #(
1542 *${as_nl}*)
1543 case $ac_var in #(
1544 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1545 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1546 esac
1547 case $ac_var in #(
1548 _ | IFS | as_nl) ;; #(
1549 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1550 *) $as_unset $ac_var ;;
1551 esac ;;
1552 esac
1553 done
1554 (set) 2>&1 |
1555 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1556 *${as_nl}ac_space=\ *)
1557 sed -n \
1558 "s/'\''/'\''\\\\'\'''\''/g;
1559 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1560 ;; #(
1562 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1564 esac |
1565 sort
1567 echo
1569 cat <<\_ASBOX
1570 ## ----------------- ##
1571 ## Output variables. ##
1572 ## ----------------- ##
1573 _ASBOX
1574 echo
1575 for ac_var in $ac_subst_vars
1577 eval ac_val=\$$ac_var
1578 case $ac_val in
1579 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1580 esac
1581 $as_echo "$ac_var='\''$ac_val'\''"
1582 done | sort
1583 echo
1585 if test -n "$ac_subst_files"; then
1586 cat <<\_ASBOX
1587 ## ------------------- ##
1588 ## File substitutions. ##
1589 ## ------------------- ##
1590 _ASBOX
1591 echo
1592 for ac_var in $ac_subst_files
1594 eval ac_val=\$$ac_var
1595 case $ac_val in
1596 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1597 esac
1598 $as_echo "$ac_var='\''$ac_val'\''"
1599 done | sort
1600 echo
1603 if test -s confdefs.h; then
1604 cat <<\_ASBOX
1605 ## ----------- ##
1606 ## confdefs.h. ##
1607 ## ----------- ##
1608 _ASBOX
1609 echo
1610 cat confdefs.h
1611 echo
1613 test "$ac_signal" != 0 &&
1614 $as_echo "$as_me: caught signal $ac_signal"
1615 $as_echo "$as_me: exit $exit_status"
1616 } >&5
1617 rm -f core *.core core.conftest.* &&
1618 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1619 exit $exit_status
1621 for ac_signal in 1 2 13 15; do
1622 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1623 done
1624 ac_signal=0
1626 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1627 rm -f -r conftest* confdefs.h
1629 # Predefined preprocessor variables.
1631 cat >>confdefs.h <<_ACEOF
1632 #define PACKAGE_NAME "$PACKAGE_NAME"
1633 _ACEOF
1636 cat >>confdefs.h <<_ACEOF
1637 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1638 _ACEOF
1641 cat >>confdefs.h <<_ACEOF
1642 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1643 _ACEOF
1646 cat >>confdefs.h <<_ACEOF
1647 #define PACKAGE_STRING "$PACKAGE_STRING"
1648 _ACEOF
1651 cat >>confdefs.h <<_ACEOF
1652 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1653 _ACEOF
1656 # Let the site file select an alternate cache file if it wants to.
1657 # Prefer an explicitly selected file to automatically selected ones.
1658 ac_site_file1=NONE
1659 ac_site_file2=NONE
1660 if test -n "$CONFIG_SITE"; then
1661 ac_site_file1=$CONFIG_SITE
1662 elif test "x$prefix" != xNONE; then
1663 ac_site_file1=$prefix/share/config.site
1664 ac_site_file2=$prefix/etc/config.site
1665 else
1666 ac_site_file1=$ac_default_prefix/share/config.site
1667 ac_site_file2=$ac_default_prefix/etc/config.site
1669 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1671 test "x$ac_site_file" = xNONE && continue
1672 if test -r "$ac_site_file"; then
1673 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1674 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1675 sed 's/^/| /' "$ac_site_file" >&5
1676 . "$ac_site_file"
1678 done
1680 if test -r "$cache_file"; then
1681 # Some versions of bash will fail to source /dev/null (special
1682 # files actually), so we avoid doing that.
1683 if test -f "$cache_file"; then
1684 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1685 $as_echo "$as_me: loading cache $cache_file" >&6;}
1686 case $cache_file in
1687 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1688 *) . "./$cache_file";;
1689 esac
1691 else
1692 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1693 $as_echo "$as_me: creating cache $cache_file" >&6;}
1694 >$cache_file
1697 # Check that the precious variables saved in the cache have kept the same
1698 # value.
1699 ac_cache_corrupted=false
1700 for ac_var in $ac_precious_vars; do
1701 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1702 eval ac_new_set=\$ac_env_${ac_var}_set
1703 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1704 eval ac_new_val=\$ac_env_${ac_var}_value
1705 case $ac_old_set,$ac_new_set in
1706 set,)
1707 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1708 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1709 ac_cache_corrupted=: ;;
1710 ,set)
1711 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1712 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1713 ac_cache_corrupted=: ;;
1714 ,);;
1716 if test "x$ac_old_val" != "x$ac_new_val"; then
1717 # differences in whitespace do not lead to failure.
1718 ac_old_val_w=`echo x $ac_old_val`
1719 ac_new_val_w=`echo x $ac_new_val`
1720 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1721 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1722 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1723 ac_cache_corrupted=:
1724 else
1725 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1726 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1727 eval $ac_var=\$ac_old_val
1729 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1730 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1731 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1732 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1733 fi;;
1734 esac
1735 # Pass precious variables to config.status.
1736 if test "$ac_new_set" = set; then
1737 case $ac_new_val in
1738 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1739 *) ac_arg=$ac_var=$ac_new_val ;;
1740 esac
1741 case " $ac_configure_args " in
1742 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1743 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1744 esac
1746 done
1747 if $ac_cache_corrupted; then
1748 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1750 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1751 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1752 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1753 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1754 { (exit 1); exit 1; }; }
1781 ac_ext=c
1782 ac_cpp='$CPP $CPPFLAGS'
1783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1788 ac_ext=c
1789 ac_cpp='$CPP $CPPFLAGS'
1790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1793 if test -n "$ac_tool_prefix"; then
1794 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1795 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1796 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1797 $as_echo_n "checking for $ac_word... " >&6; }
1798 if test "${ac_cv_prog_CC+set}" = set; then
1799 $as_echo_n "(cached) " >&6
1800 else
1801 if test -n "$CC"; then
1802 ac_cv_prog_CC="$CC" # Let the user override the test.
1803 else
1804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1805 for as_dir in $PATH
1807 IFS=$as_save_IFS
1808 test -z "$as_dir" && as_dir=.
1809 for ac_exec_ext in '' $ac_executable_extensions; do
1810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1811 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1812 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1813 break 2
1815 done
1816 done
1817 IFS=$as_save_IFS
1821 CC=$ac_cv_prog_CC
1822 if test -n "$CC"; then
1823 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1824 $as_echo "$CC" >&6; }
1825 else
1826 { $as_echo "$as_me:$LINENO: result: no" >&5
1827 $as_echo "no" >&6; }
1832 if test -z "$ac_cv_prog_CC"; then
1833 ac_ct_CC=$CC
1834 # Extract the first word of "gcc", so it can be a program name with args.
1835 set dummy gcc; ac_word=$2
1836 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1837 $as_echo_n "checking for $ac_word... " >&6; }
1838 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1839 $as_echo_n "(cached) " >&6
1840 else
1841 if test -n "$ac_ct_CC"; then
1842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1843 else
1844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845 for as_dir in $PATH
1847 IFS=$as_save_IFS
1848 test -z "$as_dir" && as_dir=.
1849 for ac_exec_ext in '' $ac_executable_extensions; do
1850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1851 ac_cv_prog_ac_ct_CC="gcc"
1852 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 break 2
1855 done
1856 done
1857 IFS=$as_save_IFS
1861 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1862 if test -n "$ac_ct_CC"; then
1863 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1864 $as_echo "$ac_ct_CC" >&6; }
1865 else
1866 { $as_echo "$as_me:$LINENO: result: no" >&5
1867 $as_echo "no" >&6; }
1870 if test "x$ac_ct_CC" = x; then
1871 CC=""
1872 else
1873 case $cross_compiling:$ac_tool_warned in
1874 yes:)
1875 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1877 ac_tool_warned=yes ;;
1878 esac
1879 CC=$ac_ct_CC
1881 else
1882 CC="$ac_cv_prog_CC"
1885 if test -z "$CC"; then
1886 if test -n "$ac_tool_prefix"; then
1887 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1888 set dummy ${ac_tool_prefix}cc; ac_word=$2
1889 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1890 $as_echo_n "checking for $ac_word... " >&6; }
1891 if test "${ac_cv_prog_CC+set}" = set; then
1892 $as_echo_n "(cached) " >&6
1893 else
1894 if test -n "$CC"; then
1895 ac_cv_prog_CC="$CC" # Let the user override the test.
1896 else
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 for as_dir in $PATH
1900 IFS=$as_save_IFS
1901 test -z "$as_dir" && as_dir=.
1902 for ac_exec_ext in '' $ac_executable_extensions; do
1903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1904 ac_cv_prog_CC="${ac_tool_prefix}cc"
1905 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 break 2
1908 done
1909 done
1910 IFS=$as_save_IFS
1914 CC=$ac_cv_prog_CC
1915 if test -n "$CC"; then
1916 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1917 $as_echo "$CC" >&6; }
1918 else
1919 { $as_echo "$as_me:$LINENO: result: no" >&5
1920 $as_echo "no" >&6; }
1926 if test -z "$CC"; then
1927 # Extract the first word of "cc", so it can be a program name with args.
1928 set dummy cc; ac_word=$2
1929 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 $as_echo_n "checking for $ac_word... " >&6; }
1931 if test "${ac_cv_prog_CC+set}" = set; then
1932 $as_echo_n "(cached) " >&6
1933 else
1934 if test -n "$CC"; then
1935 ac_cv_prog_CC="$CC" # Let the user override the test.
1936 else
1937 ac_prog_rejected=no
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939 for as_dir in $PATH
1941 IFS=$as_save_IFS
1942 test -z "$as_dir" && as_dir=.
1943 for ac_exec_ext in '' $ac_executable_extensions; do
1944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1945 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1946 ac_prog_rejected=yes
1947 continue
1949 ac_cv_prog_CC="cc"
1950 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951 break 2
1953 done
1954 done
1955 IFS=$as_save_IFS
1957 if test $ac_prog_rejected = yes; then
1958 # We found a bogon in the path, so make sure we never use it.
1959 set dummy $ac_cv_prog_CC
1960 shift
1961 if test $# != 0; then
1962 # We chose a different compiler from the bogus one.
1963 # However, it has the same basename, so the bogon will be chosen
1964 # first if we set CC to just the basename; use the full file name.
1965 shift
1966 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1971 CC=$ac_cv_prog_CC
1972 if test -n "$CC"; then
1973 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1974 $as_echo "$CC" >&6; }
1975 else
1976 { $as_echo "$as_me:$LINENO: result: no" >&5
1977 $as_echo "no" >&6; }
1982 if test -z "$CC"; then
1983 if test -n "$ac_tool_prefix"; then
1984 for ac_prog in cl.exe
1986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1987 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1988 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 $as_echo_n "checking for $ac_word... " >&6; }
1990 if test "${ac_cv_prog_CC+set}" = set; then
1991 $as_echo_n "(cached) " >&6
1992 else
1993 if test -n "$CC"; then
1994 ac_cv_prog_CC="$CC" # Let the user override the test.
1995 else
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 for as_dir in $PATH
1999 IFS=$as_save_IFS
2000 test -z "$as_dir" && as_dir=.
2001 for ac_exec_ext in '' $ac_executable_extensions; do
2002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2003 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2004 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 break 2
2007 done
2008 done
2009 IFS=$as_save_IFS
2013 CC=$ac_cv_prog_CC
2014 if test -n "$CC"; then
2015 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2016 $as_echo "$CC" >&6; }
2017 else
2018 { $as_echo "$as_me:$LINENO: result: no" >&5
2019 $as_echo "no" >&6; }
2023 test -n "$CC" && break
2024 done
2026 if test -z "$CC"; then
2027 ac_ct_CC=$CC
2028 for ac_prog in cl.exe
2030 # Extract the first word of "$ac_prog", so it can be a program name with args.
2031 set dummy $ac_prog; ac_word=$2
2032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 $as_echo_n "checking for $ac_word... " >&6; }
2034 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2035 $as_echo_n "(cached) " >&6
2036 else
2037 if test -n "$ac_ct_CC"; then
2038 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2039 else
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 for as_dir in $PATH
2043 IFS=$as_save_IFS
2044 test -z "$as_dir" && as_dir=.
2045 for ac_exec_ext in '' $ac_executable_extensions; do
2046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2047 ac_cv_prog_ac_ct_CC="$ac_prog"
2048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 break 2
2051 done
2052 done
2053 IFS=$as_save_IFS
2057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2058 if test -n "$ac_ct_CC"; then
2059 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2060 $as_echo "$ac_ct_CC" >&6; }
2061 else
2062 { $as_echo "$as_me:$LINENO: result: no" >&5
2063 $as_echo "no" >&6; }
2067 test -n "$ac_ct_CC" && break
2068 done
2070 if test "x$ac_ct_CC" = x; then
2071 CC=""
2072 else
2073 case $cross_compiling:$ac_tool_warned in
2074 yes:)
2075 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2077 ac_tool_warned=yes ;;
2078 esac
2079 CC=$ac_ct_CC
2086 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2088 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2089 See \`config.log' for more details." >&5
2090 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2091 See \`config.log' for more details." >&2;}
2092 { (exit 1); exit 1; }; }; }
2094 # Provide some information about the compiler.
2095 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2096 set X $ac_compile
2097 ac_compiler=$2
2098 { (ac_try="$ac_compiler --version >&5"
2099 case "(($ac_try" in
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2102 esac
2103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2104 $as_echo "$ac_try_echo") >&5
2105 (eval "$ac_compiler --version >&5") 2>&5
2106 ac_status=$?
2107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }
2109 { (ac_try="$ac_compiler -v >&5"
2110 case "(($ac_try" in
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2113 esac
2114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2115 $as_echo "$ac_try_echo") >&5
2116 (eval "$ac_compiler -v >&5") 2>&5
2117 ac_status=$?
2118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
2120 { (ac_try="$ac_compiler -V >&5"
2121 case "(($ac_try" in
2122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123 *) ac_try_echo=$ac_try;;
2124 esac
2125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2126 $as_echo "$ac_try_echo") >&5
2127 (eval "$ac_compiler -V >&5") 2>&5
2128 ac_status=$?
2129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }
2132 cat >conftest.$ac_ext <<_ACEOF
2133 /* confdefs.h. */
2134 _ACEOF
2135 cat confdefs.h >>conftest.$ac_ext
2136 cat >>conftest.$ac_ext <<_ACEOF
2137 /* end confdefs.h. */
2140 main ()
2144 return 0;
2146 _ACEOF
2147 ac_clean_files_save=$ac_clean_files
2148 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2149 # Try to create an executable without -o first, disregard a.out.
2150 # It will help us diagnose broken compilers, and finding out an intuition
2151 # of exeext.
2152 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2153 $as_echo_n "checking for C compiler default output file name... " >&6; }
2154 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2156 # The possible output files:
2157 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2159 ac_rmfiles=
2160 for ac_file in $ac_files
2162 case $ac_file in
2163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2164 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2165 esac
2166 done
2167 rm -f $ac_rmfiles
2169 if { (ac_try="$ac_link_default"
2170 case "(($ac_try" in
2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172 *) ac_try_echo=$ac_try;;
2173 esac
2174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2175 $as_echo "$ac_try_echo") >&5
2176 (eval "$ac_link_default") 2>&5
2177 ac_status=$?
2178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; then
2180 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2181 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2182 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2183 # so that the user can short-circuit this test for compilers unknown to
2184 # Autoconf.
2185 for ac_file in $ac_files ''
2187 test -f "$ac_file" || continue
2188 case $ac_file in
2189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2191 [ab].out )
2192 # We found the default executable, but exeext='' is most
2193 # certainly right.
2194 break;;
2195 *.* )
2196 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2197 then :; else
2198 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200 # We set ac_cv_exeext here because the later test for it is not
2201 # safe: cross compilers may not add the suffix if given an `-o'
2202 # argument, so we may need to know it at that point already.
2203 # Even if this section looks crufty: it has the advantage of
2204 # actually working.
2205 break;;
2207 break;;
2208 esac
2209 done
2210 test "$ac_cv_exeext" = no && ac_cv_exeext=
2212 else
2213 ac_file=''
2216 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2217 $as_echo "$ac_file" >&6; }
2218 if test -z "$ac_file"; then
2219 $as_echo "$as_me: failed program was:" >&5
2220 sed 's/^/| /' conftest.$ac_ext >&5
2222 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2224 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2225 See \`config.log' for more details." >&5
2226 $as_echo "$as_me: error: C compiler cannot create executables
2227 See \`config.log' for more details." >&2;}
2228 { (exit 77); exit 77; }; }; }
2231 ac_exeext=$ac_cv_exeext
2233 # Check that the compiler produces executables we can run. If not, either
2234 # the compiler is broken, or we cross compile.
2235 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2236 $as_echo_n "checking whether the C compiler works... " >&6; }
2237 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2238 # If not cross compiling, check that we can run a simple program.
2239 if test "$cross_compiling" != yes; then
2240 if { ac_try='./$ac_file'
2241 { (case "(($ac_try" in
2242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2243 *) ac_try_echo=$ac_try;;
2244 esac
2245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2246 $as_echo "$ac_try_echo") >&5
2247 (eval "$ac_try") 2>&5
2248 ac_status=$?
2249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; }; then
2251 cross_compiling=no
2252 else
2253 if test "$cross_compiling" = maybe; then
2254 cross_compiling=yes
2255 else
2256 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2258 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2259 If you meant to cross compile, use \`--host'.
2260 See \`config.log' for more details." >&5
2261 $as_echo "$as_me: error: cannot run C compiled programs.
2262 If you meant to cross compile, use \`--host'.
2263 See \`config.log' for more details." >&2;}
2264 { (exit 1); exit 1; }; }; }
2268 { $as_echo "$as_me:$LINENO: result: yes" >&5
2269 $as_echo "yes" >&6; }
2271 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2272 ac_clean_files=$ac_clean_files_save
2273 # Check that the compiler produces executables we can run. If not, either
2274 # the compiler is broken, or we cross compile.
2275 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2276 $as_echo_n "checking whether we are cross compiling... " >&6; }
2277 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2278 $as_echo "$cross_compiling" >&6; }
2280 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2281 $as_echo_n "checking for suffix of executables... " >&6; }
2282 if { (ac_try="$ac_link"
2283 case "(($ac_try" in
2284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2285 *) ac_try_echo=$ac_try;;
2286 esac
2287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2288 $as_echo "$ac_try_echo") >&5
2289 (eval "$ac_link") 2>&5
2290 ac_status=$?
2291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; then
2293 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2294 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2295 # work properly (i.e., refer to `conftest.exe'), while it won't with
2296 # `rm'.
2297 for ac_file in conftest.exe conftest conftest.*; do
2298 test -f "$ac_file" || continue
2299 case $ac_file in
2300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2301 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2302 break;;
2303 * ) break;;
2304 esac
2305 done
2306 else
2307 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2309 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2310 See \`config.log' for more details." >&5
2311 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2312 See \`config.log' for more details." >&2;}
2313 { (exit 1); exit 1; }; }; }
2316 rm -f conftest$ac_cv_exeext
2317 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2318 $as_echo "$ac_cv_exeext" >&6; }
2320 rm -f conftest.$ac_ext
2321 EXEEXT=$ac_cv_exeext
2322 ac_exeext=$EXEEXT
2323 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2324 $as_echo_n "checking for suffix of object files... " >&6; }
2325 if test "${ac_cv_objext+set}" = set; then
2326 $as_echo_n "(cached) " >&6
2327 else
2328 cat >conftest.$ac_ext <<_ACEOF
2329 /* confdefs.h. */
2330 _ACEOF
2331 cat confdefs.h >>conftest.$ac_ext
2332 cat >>conftest.$ac_ext <<_ACEOF
2333 /* end confdefs.h. */
2336 main ()
2340 return 0;
2342 _ACEOF
2343 rm -f conftest.o conftest.obj
2344 if { (ac_try="$ac_compile"
2345 case "(($ac_try" in
2346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347 *) ac_try_echo=$ac_try;;
2348 esac
2349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2350 $as_echo "$ac_try_echo") >&5
2351 (eval "$ac_compile") 2>&5
2352 ac_status=$?
2353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; then
2355 for ac_file in conftest.o conftest.obj conftest.*; do
2356 test -f "$ac_file" || continue;
2357 case $ac_file in
2358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2359 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2360 break;;
2361 esac
2362 done
2363 else
2364 $as_echo "$as_me: failed program was:" >&5
2365 sed 's/^/| /' conftest.$ac_ext >&5
2367 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2369 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2370 See \`config.log' for more details." >&5
2371 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2372 See \`config.log' for more details." >&2;}
2373 { (exit 1); exit 1; }; }; }
2376 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2378 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2379 $as_echo "$ac_cv_objext" >&6; }
2380 OBJEXT=$ac_cv_objext
2381 ac_objext=$OBJEXT
2382 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2383 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2384 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2385 $as_echo_n "(cached) " >&6
2386 else
2387 cat >conftest.$ac_ext <<_ACEOF
2388 /* confdefs.h. */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h. */
2395 main ()
2397 #ifndef __GNUC__
2398 choke me
2399 #endif
2402 return 0;
2404 _ACEOF
2405 rm -f conftest.$ac_objext
2406 if { (ac_try="$ac_compile"
2407 case "(($ac_try" in
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2410 esac
2411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2412 $as_echo "$ac_try_echo") >&5
2413 (eval "$ac_compile") 2>conftest.er1
2414 ac_status=$?
2415 grep -v '^ *+' conftest.er1 >conftest.err
2416 rm -f conftest.er1
2417 cat conftest.err >&5
2418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); } && {
2420 test -z "$ac_c_werror_flag" ||
2421 test ! -s conftest.err
2422 } && test -s conftest.$ac_objext; then
2423 ac_compiler_gnu=yes
2424 else
2425 $as_echo "$as_me: failed program was:" >&5
2426 sed 's/^/| /' conftest.$ac_ext >&5
2428 ac_compiler_gnu=no
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2435 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2436 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2437 if test $ac_compiler_gnu = yes; then
2438 GCC=yes
2439 else
2440 GCC=
2442 ac_test_CFLAGS=${CFLAGS+set}
2443 ac_save_CFLAGS=$CFLAGS
2444 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2445 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2446 if test "${ac_cv_prog_cc_g+set}" = set; then
2447 $as_echo_n "(cached) " >&6
2448 else
2449 ac_save_c_werror_flag=$ac_c_werror_flag
2450 ac_c_werror_flag=yes
2451 ac_cv_prog_cc_g=no
2452 CFLAGS="-g"
2453 cat >conftest.$ac_ext <<_ACEOF
2454 /* confdefs.h. */
2455 _ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h. */
2461 main ()
2465 return 0;
2467 _ACEOF
2468 rm -f conftest.$ac_objext
2469 if { (ac_try="$ac_compile"
2470 case "(($ac_try" in
2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472 *) ac_try_echo=$ac_try;;
2473 esac
2474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2475 $as_echo "$ac_try_echo") >&5
2476 (eval "$ac_compile") 2>conftest.er1
2477 ac_status=$?
2478 grep -v '^ *+' conftest.er1 >conftest.err
2479 rm -f conftest.er1
2480 cat conftest.err >&5
2481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); } && {
2483 test -z "$ac_c_werror_flag" ||
2484 test ! -s conftest.err
2485 } && test -s conftest.$ac_objext; then
2486 ac_cv_prog_cc_g=yes
2487 else
2488 $as_echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2491 CFLAGS=""
2492 cat >conftest.$ac_ext <<_ACEOF
2493 /* confdefs.h. */
2494 _ACEOF
2495 cat confdefs.h >>conftest.$ac_ext
2496 cat >>conftest.$ac_ext <<_ACEOF
2497 /* end confdefs.h. */
2500 main ()
2504 return 0;
2506 _ACEOF
2507 rm -f conftest.$ac_objext
2508 if { (ac_try="$ac_compile"
2509 case "(($ac_try" in
2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2512 esac
2513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2514 $as_echo "$ac_try_echo") >&5
2515 (eval "$ac_compile") 2>conftest.er1
2516 ac_status=$?
2517 grep -v '^ *+' conftest.er1 >conftest.err
2518 rm -f conftest.er1
2519 cat conftest.err >&5
2520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); } && {
2522 test -z "$ac_c_werror_flag" ||
2523 test ! -s conftest.err
2524 } && test -s conftest.$ac_objext; then
2526 else
2527 $as_echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2530 ac_c_werror_flag=$ac_save_c_werror_flag
2531 CFLAGS="-g"
2532 cat >conftest.$ac_ext <<_ACEOF
2533 /* confdefs.h. */
2534 _ACEOF
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h. */
2540 main ()
2544 return 0;
2546 _ACEOF
2547 rm -f conftest.$ac_objext
2548 if { (ac_try="$ac_compile"
2549 case "(($ac_try" in
2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551 *) ac_try_echo=$ac_try;;
2552 esac
2553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2554 $as_echo "$ac_try_echo") >&5
2555 (eval "$ac_compile") 2>conftest.er1
2556 ac_status=$?
2557 grep -v '^ *+' conftest.er1 >conftest.err
2558 rm -f conftest.er1
2559 cat conftest.err >&5
2560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } && {
2562 test -z "$ac_c_werror_flag" ||
2563 test ! -s conftest.err
2564 } && test -s conftest.$ac_objext; then
2565 ac_cv_prog_cc_g=yes
2566 else
2567 $as_echo "$as_me: failed program was:" >&5
2568 sed 's/^/| /' conftest.$ac_ext >&5
2573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2580 ac_c_werror_flag=$ac_save_c_werror_flag
2582 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2583 $as_echo "$ac_cv_prog_cc_g" >&6; }
2584 if test "$ac_test_CFLAGS" = set; then
2585 CFLAGS=$ac_save_CFLAGS
2586 elif test $ac_cv_prog_cc_g = yes; then
2587 if test "$GCC" = yes; then
2588 CFLAGS="-g -O2"
2589 else
2590 CFLAGS="-g"
2592 else
2593 if test "$GCC" = yes; then
2594 CFLAGS="-O2"
2595 else
2596 CFLAGS=
2599 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2600 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2601 if test "${ac_cv_prog_cc_c89+set}" = set; then
2602 $as_echo_n "(cached) " >&6
2603 else
2604 ac_cv_prog_cc_c89=no
2605 ac_save_CC=$CC
2606 cat >conftest.$ac_ext <<_ACEOF
2607 /* confdefs.h. */
2608 _ACEOF
2609 cat confdefs.h >>conftest.$ac_ext
2610 cat >>conftest.$ac_ext <<_ACEOF
2611 /* end confdefs.h. */
2612 #include <stdarg.h>
2613 #include <stdio.h>
2614 #include <sys/types.h>
2615 #include <sys/stat.h>
2616 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2617 struct buf { int x; };
2618 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2619 static char *e (p, i)
2620 char **p;
2621 int i;
2623 return p[i];
2625 static char *f (char * (*g) (char **, int), char **p, ...)
2627 char *s;
2628 va_list v;
2629 va_start (v,p);
2630 s = g (p, va_arg (v,int));
2631 va_end (v);
2632 return s;
2635 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2636 function prototypes and stuff, but not '\xHH' hex character constants.
2637 These don't provoke an error unfortunately, instead are silently treated
2638 as 'x'. The following induces an error, until -std is added to get
2639 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2640 array size at least. It's necessary to write '\x00'==0 to get something
2641 that's true only with -std. */
2642 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2644 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2645 inside strings and character constants. */
2646 #define FOO(x) 'x'
2647 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2649 int test (int i, double x);
2650 struct s1 {int (*f) (int a);};
2651 struct s2 {int (*f) (double a);};
2652 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2653 int argc;
2654 char **argv;
2656 main ()
2658 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2660 return 0;
2662 _ACEOF
2663 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2664 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2666 CC="$ac_save_CC $ac_arg"
2667 rm -f conftest.$ac_objext
2668 if { (ac_try="$ac_compile"
2669 case "(($ac_try" in
2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671 *) ac_try_echo=$ac_try;;
2672 esac
2673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2674 $as_echo "$ac_try_echo") >&5
2675 (eval "$ac_compile") 2>conftest.er1
2676 ac_status=$?
2677 grep -v '^ *+' conftest.er1 >conftest.err
2678 rm -f conftest.er1
2679 cat conftest.err >&5
2680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); } && {
2682 test -z "$ac_c_werror_flag" ||
2683 test ! -s conftest.err
2684 } && test -s conftest.$ac_objext; then
2685 ac_cv_prog_cc_c89=$ac_arg
2686 else
2687 $as_echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2693 rm -f core conftest.err conftest.$ac_objext
2694 test "x$ac_cv_prog_cc_c89" != "xno" && break
2695 done
2696 rm -f conftest.$ac_ext
2697 CC=$ac_save_CC
2700 # AC_CACHE_VAL
2701 case "x$ac_cv_prog_cc_c89" in
2703 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2704 $as_echo "none needed" >&6; } ;;
2705 xno)
2706 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2707 $as_echo "unsupported" >&6; } ;;
2709 CC="$CC $ac_cv_prog_cc_c89"
2710 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2711 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2712 esac
2715 ac_ext=c
2716 ac_cpp='$CPP $CPPFLAGS'
2717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2722 # Check whether --enable-32bit-buffer was given.
2723 if test "${enable_32bit_buffer+set}" = set; then
2724 enableval=$enable_32bit_buffer; BUFFER_BITS="32"
2726 cat >>confdefs.h <<\_ACEOF
2727 #define USE_32BIT_BUFFER 1
2728 _ACEOF
2730 else
2731 BUFFER_BITS="16"
2735 SRC_OBJS="src_test.o src_raw.o src_file.o"
2737 # Check whether --enable-v4l1 was given.
2738 if test "${enable_v4l1+set}" = set; then
2739 enableval=$enable_v4l1; HAVE_V4L1="no"
2740 else
2742 cat >>confdefs.h <<\_ACEOF
2743 #define HAVE_V4L1 1
2744 _ACEOF
2746 SRC_OBJS="$SRC_OBJS src_v4l1.o"
2747 HAVE_V4L1="yes"
2753 # Check whether --enable-v4l2 was given.
2754 if test "${enable_v4l2+set}" = set; then
2755 enableval=$enable_v4l2; HAVE_V4L2="no"
2756 else
2758 cat >>confdefs.h <<\_ACEOF
2759 #define HAVE_V4L2 1
2760 _ACEOF
2762 SRC_OBJS="$SRC_OBJS src_v4l2.o"
2763 HAVE_V4L2="yes"
2771 ac_ext=c
2772 ac_cpp='$CPP $CPPFLAGS'
2773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2776 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2777 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2778 # On Suns, sometimes $CPP names a directory.
2779 if test -n "$CPP" && test -d "$CPP"; then
2780 CPP=
2782 if test -z "$CPP"; then
2783 if test "${ac_cv_prog_CPP+set}" = set; then
2784 $as_echo_n "(cached) " >&6
2785 else
2786 # Double quotes because CPP needs to be expanded
2787 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2789 ac_preproc_ok=false
2790 for ac_c_preproc_warn_flag in '' yes
2792 # Use a header file that comes with gcc, so configuring glibc
2793 # with a fresh cross-compiler works.
2794 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2795 # <limits.h> exists even on freestanding compilers.
2796 # On the NeXT, cc -E runs the code through the compiler's parser,
2797 # not just through cpp. "Syntax error" is here to catch this case.
2798 cat >conftest.$ac_ext <<_ACEOF
2799 /* confdefs.h. */
2800 _ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2804 #ifdef __STDC__
2805 # include <limits.h>
2806 #else
2807 # include <assert.h>
2808 #endif
2809 Syntax error
2810 _ACEOF
2811 if { (ac_try="$ac_cpp conftest.$ac_ext"
2812 case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815 esac
2816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2817 $as_echo "$ac_try_echo") >&5
2818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2819 ac_status=$?
2820 grep -v '^ *+' conftest.er1 >conftest.err
2821 rm -f conftest.er1
2822 cat conftest.err >&5
2823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); } >/dev/null && {
2825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2826 test ! -s conftest.err
2827 }; then
2829 else
2830 $as_echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2833 # Broken: fails on valid input.
2834 continue
2837 rm -f conftest.err conftest.$ac_ext
2839 # OK, works on sane cases. Now check whether nonexistent headers
2840 # can be detected and how.
2841 cat >conftest.$ac_ext <<_ACEOF
2842 /* confdefs.h. */
2843 _ACEOF
2844 cat confdefs.h >>conftest.$ac_ext
2845 cat >>conftest.$ac_ext <<_ACEOF
2846 /* end confdefs.h. */
2847 #include <ac_nonexistent.h>
2848 _ACEOF
2849 if { (ac_try="$ac_cpp conftest.$ac_ext"
2850 case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2853 esac
2854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2855 $as_echo "$ac_try_echo") >&5
2856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2857 ac_status=$?
2858 grep -v '^ *+' conftest.er1 >conftest.err
2859 rm -f conftest.er1
2860 cat conftest.err >&5
2861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); } >/dev/null && {
2863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2864 test ! -s conftest.err
2865 }; then
2866 # Broken: success on invalid input.
2867 continue
2868 else
2869 $as_echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2872 # Passes both tests.
2873 ac_preproc_ok=:
2874 break
2877 rm -f conftest.err conftest.$ac_ext
2879 done
2880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2881 rm -f conftest.err conftest.$ac_ext
2882 if $ac_preproc_ok; then
2883 break
2886 done
2887 ac_cv_prog_CPP=$CPP
2890 CPP=$ac_cv_prog_CPP
2891 else
2892 ac_cv_prog_CPP=$CPP
2894 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
2895 $as_echo "$CPP" >&6; }
2896 ac_preproc_ok=false
2897 for ac_c_preproc_warn_flag in '' yes
2899 # Use a header file that comes with gcc, so configuring glibc
2900 # with a fresh cross-compiler works.
2901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2902 # <limits.h> exists even on freestanding compilers.
2903 # On the NeXT, cc -E runs the code through the compiler's parser,
2904 # not just through cpp. "Syntax error" is here to catch this case.
2905 cat >conftest.$ac_ext <<_ACEOF
2906 /* confdefs.h. */
2907 _ACEOF
2908 cat confdefs.h >>conftest.$ac_ext
2909 cat >>conftest.$ac_ext <<_ACEOF
2910 /* end confdefs.h. */
2911 #ifdef __STDC__
2912 # include <limits.h>
2913 #else
2914 # include <assert.h>
2915 #endif
2916 Syntax error
2917 _ACEOF
2918 if { (ac_try="$ac_cpp conftest.$ac_ext"
2919 case "(($ac_try" in
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2922 esac
2923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2924 $as_echo "$ac_try_echo") >&5
2925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2926 ac_status=$?
2927 grep -v '^ *+' conftest.er1 >conftest.err
2928 rm -f conftest.er1
2929 cat conftest.err >&5
2930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } >/dev/null && {
2932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2933 test ! -s conftest.err
2934 }; then
2936 else
2937 $as_echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2940 # Broken: fails on valid input.
2941 continue
2944 rm -f conftest.err conftest.$ac_ext
2946 # OK, works on sane cases. Now check whether nonexistent headers
2947 # can be detected and how.
2948 cat >conftest.$ac_ext <<_ACEOF
2949 /* confdefs.h. */
2950 _ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h. */
2954 #include <ac_nonexistent.h>
2955 _ACEOF
2956 if { (ac_try="$ac_cpp conftest.$ac_ext"
2957 case "(($ac_try" in
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2960 esac
2961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2962 $as_echo "$ac_try_echo") >&5
2963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2964 ac_status=$?
2965 grep -v '^ *+' conftest.er1 >conftest.err
2966 rm -f conftest.er1
2967 cat conftest.err >&5
2968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); } >/dev/null && {
2970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2971 test ! -s conftest.err
2972 }; then
2973 # Broken: success on invalid input.
2974 continue
2975 else
2976 $as_echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2979 # Passes both tests.
2980 ac_preproc_ok=:
2981 break
2984 rm -f conftest.err conftest.$ac_ext
2986 done
2987 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2988 rm -f conftest.err conftest.$ac_ext
2989 if $ac_preproc_ok; then
2991 else
2992 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2994 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2995 See \`config.log' for more details." >&5
2996 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2997 See \`config.log' for more details." >&2;}
2998 { (exit 1); exit 1; }; }; }
3001 ac_ext=c
3002 ac_cpp='$CPP $CPPFLAGS'
3003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3008 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3009 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3010 if test "${ac_cv_path_GREP+set}" = set; then
3011 $as_echo_n "(cached) " >&6
3012 else
3013 if test -z "$GREP"; then
3014 ac_path_GREP_found=false
3015 # Loop through the user's path and test for each of PROGNAME-LIST
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 for ac_prog in grep ggrep; do
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3024 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3025 # Check for GNU ac_path_GREP and select it if it is found.
3026 # Check for GNU $ac_path_GREP
3027 case `"$ac_path_GREP" --version 2>&1` in
3028 *GNU*)
3029 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3031 ac_count=0
3032 $as_echo_n 0123456789 >"conftest.in"
3033 while :
3035 cat "conftest.in" "conftest.in" >"conftest.tmp"
3036 mv "conftest.tmp" "conftest.in"
3037 cp "conftest.in" "conftest.nl"
3038 $as_echo 'GREP' >> "conftest.nl"
3039 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3041 ac_count=`expr $ac_count + 1`
3042 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3043 # Best one so far, save it but keep looking for a better one
3044 ac_cv_path_GREP="$ac_path_GREP"
3045 ac_path_GREP_max=$ac_count
3047 # 10*(2^10) chars as input seems more than enough
3048 test $ac_count -gt 10 && break
3049 done
3050 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3051 esac
3053 $ac_path_GREP_found && break 3
3054 done
3055 done
3056 done
3057 IFS=$as_save_IFS
3058 if test -z "$ac_cv_path_GREP"; then
3059 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3060 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3061 { (exit 1); exit 1; }; }
3063 else
3064 ac_cv_path_GREP=$GREP
3068 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3069 $as_echo "$ac_cv_path_GREP" >&6; }
3070 GREP="$ac_cv_path_GREP"
3073 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3074 $as_echo_n "checking for egrep... " >&6; }
3075 if test "${ac_cv_path_EGREP+set}" = set; then
3076 $as_echo_n "(cached) " >&6
3077 else
3078 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3079 then ac_cv_path_EGREP="$GREP -E"
3080 else
3081 if test -z "$EGREP"; then
3082 ac_path_EGREP_found=false
3083 # Loop through the user's path and test for each of PROGNAME-LIST
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 for ac_prog in egrep; do
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3092 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3093 # Check for GNU ac_path_EGREP and select it if it is found.
3094 # Check for GNU $ac_path_EGREP
3095 case `"$ac_path_EGREP" --version 2>&1` in
3096 *GNU*)
3097 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3099 ac_count=0
3100 $as_echo_n 0123456789 >"conftest.in"
3101 while :
3103 cat "conftest.in" "conftest.in" >"conftest.tmp"
3104 mv "conftest.tmp" "conftest.in"
3105 cp "conftest.in" "conftest.nl"
3106 $as_echo 'EGREP' >> "conftest.nl"
3107 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3108 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3109 ac_count=`expr $ac_count + 1`
3110 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3111 # Best one so far, save it but keep looking for a better one
3112 ac_cv_path_EGREP="$ac_path_EGREP"
3113 ac_path_EGREP_max=$ac_count
3115 # 10*(2^10) chars as input seems more than enough
3116 test $ac_count -gt 10 && break
3117 done
3118 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3119 esac
3121 $ac_path_EGREP_found && break 3
3122 done
3123 done
3124 done
3125 IFS=$as_save_IFS
3126 if test -z "$ac_cv_path_EGREP"; then
3127 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3128 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3129 { (exit 1); exit 1; }; }
3131 else
3132 ac_cv_path_EGREP=$EGREP
3137 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3138 $as_echo "$ac_cv_path_EGREP" >&6; }
3139 EGREP="$ac_cv_path_EGREP"
3142 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3143 $as_echo_n "checking for ANSI C header files... " >&6; }
3144 if test "${ac_cv_header_stdc+set}" = set; then
3145 $as_echo_n "(cached) " >&6
3146 else
3147 cat >conftest.$ac_ext <<_ACEOF
3148 /* confdefs.h. */
3149 _ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3153 #include <stdlib.h>
3154 #include <stdarg.h>
3155 #include <string.h>
3156 #include <float.h>
3159 main ()
3163 return 0;
3165 _ACEOF
3166 rm -f conftest.$ac_objext
3167 if { (ac_try="$ac_compile"
3168 case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171 esac
3172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3173 $as_echo "$ac_try_echo") >&5
3174 (eval "$ac_compile") 2>conftest.er1
3175 ac_status=$?
3176 grep -v '^ *+' conftest.er1 >conftest.err
3177 rm -f conftest.er1
3178 cat conftest.err >&5
3179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } && {
3181 test -z "$ac_c_werror_flag" ||
3182 test ! -s conftest.err
3183 } && test -s conftest.$ac_objext; then
3184 ac_cv_header_stdc=yes
3185 else
3186 $as_echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3189 ac_cv_header_stdc=no
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 if test $ac_cv_header_stdc = yes; then
3195 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3196 cat >conftest.$ac_ext <<_ACEOF
3197 /* confdefs.h. */
3198 _ACEOF
3199 cat confdefs.h >>conftest.$ac_ext
3200 cat >>conftest.$ac_ext <<_ACEOF
3201 /* end confdefs.h. */
3202 #include <string.h>
3204 _ACEOF
3205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3206 $EGREP "memchr" >/dev/null 2>&1; then
3208 else
3209 ac_cv_header_stdc=no
3211 rm -f conftest*
3215 if test $ac_cv_header_stdc = yes; then
3216 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3217 cat >conftest.$ac_ext <<_ACEOF
3218 /* confdefs.h. */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3223 #include <stdlib.h>
3225 _ACEOF
3226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3227 $EGREP "free" >/dev/null 2>&1; then
3229 else
3230 ac_cv_header_stdc=no
3232 rm -f conftest*
3236 if test $ac_cv_header_stdc = yes; then
3237 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3238 if test "$cross_compiling" = yes; then
3240 else
3241 cat >conftest.$ac_ext <<_ACEOF
3242 /* confdefs.h. */
3243 _ACEOF
3244 cat confdefs.h >>conftest.$ac_ext
3245 cat >>conftest.$ac_ext <<_ACEOF
3246 /* end confdefs.h. */
3247 #include <ctype.h>
3248 #include <stdlib.h>
3249 #if ((' ' & 0x0FF) == 0x020)
3250 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3251 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3252 #else
3253 # define ISLOWER(c) \
3254 (('a' <= (c) && (c) <= 'i') \
3255 || ('j' <= (c) && (c) <= 'r') \
3256 || ('s' <= (c) && (c) <= 'z'))
3257 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3258 #endif
3260 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3262 main ()
3264 int i;
3265 for (i = 0; i < 256; i++)
3266 if (XOR (islower (i), ISLOWER (i))
3267 || toupper (i) != TOUPPER (i))
3268 return 2;
3269 return 0;
3271 _ACEOF
3272 rm -f conftest$ac_exeext
3273 if { (ac_try="$ac_link"
3274 case "(($ac_try" in
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3277 esac
3278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3279 $as_echo "$ac_try_echo") >&5
3280 (eval "$ac_link") 2>&5
3281 ac_status=$?
3282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3284 { (case "(($ac_try" in
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3287 esac
3288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3289 $as_echo "$ac_try_echo") >&5
3290 (eval "$ac_try") 2>&5
3291 ac_status=$?
3292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3295 else
3296 $as_echo "$as_me: program exited with status $ac_status" >&5
3297 $as_echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3300 ( exit $ac_status )
3301 ac_cv_header_stdc=no
3303 rm -rf conftest.dSYM
3304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3310 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3311 $as_echo "$ac_cv_header_stdc" >&6; }
3312 if test $ac_cv_header_stdc = yes; then
3314 cat >>confdefs.h <<\_ACEOF
3315 #define STDC_HEADERS 1
3316 _ACEOF
3320 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3330 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3331 inttypes.h stdint.h unistd.h
3333 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3334 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3335 $as_echo_n "checking for $ac_header... " >&6; }
3336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3337 $as_echo_n "(cached) " >&6
3338 else
3339 cat >conftest.$ac_ext <<_ACEOF
3340 /* confdefs.h. */
3341 _ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h. */
3345 $ac_includes_default
3347 #include <$ac_header>
3348 _ACEOF
3349 rm -f conftest.$ac_objext
3350 if { (ac_try="$ac_compile"
3351 case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354 esac
3355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3356 $as_echo "$ac_try_echo") >&5
3357 (eval "$ac_compile") 2>conftest.er1
3358 ac_status=$?
3359 grep -v '^ *+' conftest.er1 >conftest.err
3360 rm -f conftest.er1
3361 cat conftest.err >&5
3362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } && {
3364 test -z "$ac_c_werror_flag" ||
3365 test ! -s conftest.err
3366 } && test -s conftest.$ac_objext; then
3367 eval "$as_ac_Header=yes"
3368 else
3369 $as_echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3372 eval "$as_ac_Header=no"
3375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377 ac_res=`eval 'as_val=${'$as_ac_Header'}
3378 $as_echo "$as_val"'`
3379 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3380 $as_echo "$ac_res" >&6; }
3381 as_val=`eval 'as_val=${'$as_ac_Header'}
3382 $as_echo "$as_val"'`
3383 if test "x$as_val" = x""yes; then
3384 cat >>confdefs.h <<_ACEOF
3385 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3386 _ACEOF
3390 done
3395 for ac_header in stdlib.h unistd.h
3397 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3399 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3400 $as_echo_n "checking for $ac_header... " >&6; }
3401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3402 $as_echo_n "(cached) " >&6
3404 ac_res=`eval 'as_val=${'$as_ac_Header'}
3405 $as_echo "$as_val"'`
3406 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3407 $as_echo "$ac_res" >&6; }
3408 else
3409 # Is the header compilable?
3410 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
3411 $as_echo_n "checking $ac_header usability... " >&6; }
3412 cat >conftest.$ac_ext <<_ACEOF
3413 /* confdefs.h. */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3418 $ac_includes_default
3419 #include <$ac_header>
3420 _ACEOF
3421 rm -f conftest.$ac_objext
3422 if { (ac_try="$ac_compile"
3423 case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3426 esac
3427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3428 $as_echo "$ac_try_echo") >&5
3429 (eval "$ac_compile") 2>conftest.er1
3430 ac_status=$?
3431 grep -v '^ *+' conftest.er1 >conftest.err
3432 rm -f conftest.er1
3433 cat conftest.err >&5
3434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); } && {
3436 test -z "$ac_c_werror_flag" ||
3437 test ! -s conftest.err
3438 } && test -s conftest.$ac_objext; then
3439 ac_header_compiler=yes
3440 else
3441 $as_echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3444 ac_header_compiler=no
3447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3449 $as_echo "$ac_header_compiler" >&6; }
3451 # Is the header present?
3452 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
3453 $as_echo_n "checking $ac_header presence... " >&6; }
3454 cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h. */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3460 #include <$ac_header>
3461 _ACEOF
3462 if { (ac_try="$ac_cpp conftest.$ac_ext"
3463 case "(($ac_try" in
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3466 esac
3467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3468 $as_echo "$ac_try_echo") >&5
3469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3470 ac_status=$?
3471 grep -v '^ *+' conftest.er1 >conftest.err
3472 rm -f conftest.er1
3473 cat conftest.err >&5
3474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); } >/dev/null && {
3476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3477 test ! -s conftest.err
3478 }; then
3479 ac_header_preproc=yes
3480 else
3481 $as_echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3484 ac_header_preproc=no
3487 rm -f conftest.err conftest.$ac_ext
3488 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3489 $as_echo "$ac_header_preproc" >&6; }
3491 # So? What about this header?
3492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3493 yes:no: )
3494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3495 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3497 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3498 ac_header_preproc=yes
3500 no:yes:* )
3501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3502 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3504 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3505 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3506 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3507 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3508 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3509 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3510 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3511 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3512 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3513 ( cat <<\_ASBOX
3514 ## -------------------------------- ##
3515 ## Report this to phil@firestorm.cx ##
3516 ## -------------------------------- ##
3517 _ASBOX
3518 ) | sed "s/^/$as_me: WARNING: /" >&2
3520 esac
3521 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3522 $as_echo_n "checking for $ac_header... " >&6; }
3523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3524 $as_echo_n "(cached) " >&6
3525 else
3526 eval "$as_ac_Header=\$ac_header_preproc"
3528 ac_res=`eval 'as_val=${'$as_ac_Header'}
3529 $as_echo "$as_val"'`
3530 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3531 $as_echo "$ac_res" >&6; }
3534 as_val=`eval 'as_val=${'$as_ac_Header'}
3535 $as_echo "$as_val"'`
3536 if test "x$as_val" = x""yes; then
3537 cat >>confdefs.h <<_ACEOF
3538 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3539 _ACEOF
3543 done
3546 for ac_func in getpagesize
3548 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3549 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
3550 $as_echo_n "checking for $ac_func... " >&6; }
3551 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3552 $as_echo_n "(cached) " >&6
3553 else
3554 cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h. */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3562 #define $ac_func innocuous_$ac_func
3564 /* System header to define __stub macros and hopefully few prototypes,
3565 which can conflict with char $ac_func (); below.
3566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3567 <limits.h> exists even on freestanding compilers. */
3569 #ifdef __STDC__
3570 # include <limits.h>
3571 #else
3572 # include <assert.h>
3573 #endif
3575 #undef $ac_func
3577 /* Override any GCC internal prototype to avoid an error.
3578 Use char because int might match the return type of a GCC
3579 builtin and then its argument prototype would still apply. */
3580 #ifdef __cplusplus
3581 extern "C"
3582 #endif
3583 char $ac_func ();
3584 /* The GNU C library defines this for functions which it implements
3585 to always fail with ENOSYS. Some functions are actually named
3586 something starting with __ and the normal name is an alias. */
3587 #if defined __stub_$ac_func || defined __stub___$ac_func
3588 choke me
3589 #endif
3592 main ()
3594 return $ac_func ();
3596 return 0;
3598 _ACEOF
3599 rm -f conftest.$ac_objext conftest$ac_exeext
3600 if { (ac_try="$ac_link"
3601 case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604 esac
3605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3606 $as_echo "$ac_try_echo") >&5
3607 (eval "$ac_link") 2>conftest.er1
3608 ac_status=$?
3609 grep -v '^ *+' conftest.er1 >conftest.err
3610 rm -f conftest.er1
3611 cat conftest.err >&5
3612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } && {
3614 test -z "$ac_c_werror_flag" ||
3615 test ! -s conftest.err
3616 } && test -s conftest$ac_exeext && {
3617 test "$cross_compiling" = yes ||
3618 $as_test_x conftest$ac_exeext
3619 }; then
3620 eval "$as_ac_var=yes"
3621 else
3622 $as_echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3625 eval "$as_ac_var=no"
3628 rm -rf conftest.dSYM
3629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3630 conftest$ac_exeext conftest.$ac_ext
3632 ac_res=`eval 'as_val=${'$as_ac_var'}
3633 $as_echo "$as_val"'`
3634 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3635 $as_echo "$ac_res" >&6; }
3636 as_val=`eval 'as_val=${'$as_ac_var'}
3637 $as_echo "$as_val"'`
3638 if test "x$as_val" = x""yes; then
3639 cat >>confdefs.h <<_ACEOF
3640 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3641 _ACEOF
3644 done
3646 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
3647 $as_echo_n "checking for working mmap... " >&6; }
3648 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3649 $as_echo_n "(cached) " >&6
3650 else
3651 if test "$cross_compiling" = yes; then
3652 ac_cv_func_mmap_fixed_mapped=no
3653 else
3654 cat >conftest.$ac_ext <<_ACEOF
3655 /* confdefs.h. */
3656 _ACEOF
3657 cat confdefs.h >>conftest.$ac_ext
3658 cat >>conftest.$ac_ext <<_ACEOF
3659 /* end confdefs.h. */
3660 $ac_includes_default
3661 /* malloc might have been renamed as rpl_malloc. */
3662 #undef malloc
3664 /* Thanks to Mike Haertel and Jim Avera for this test.
3665 Here is a matrix of mmap possibilities:
3666 mmap private not fixed
3667 mmap private fixed at somewhere currently unmapped
3668 mmap private fixed at somewhere already mapped
3669 mmap shared not fixed
3670 mmap shared fixed at somewhere currently unmapped
3671 mmap shared fixed at somewhere already mapped
3672 For private mappings, we should verify that changes cannot be read()
3673 back from the file, nor mmap's back from the file at a different
3674 address. (There have been systems where private was not correctly
3675 implemented like the infamous i386 svr4.0, and systems where the
3676 VM page cache was not coherent with the file system buffer cache
3677 like early versions of FreeBSD and possibly contemporary NetBSD.)
3678 For shared mappings, we should conversely verify that changes get
3679 propagated back to all the places they're supposed to be.
3681 Grep wants private fixed already mapped.
3682 The main things grep needs to know about mmap are:
3683 * does it exist and is it safe to write into the mmap'd area
3684 * how to use it (BSD variants) */
3686 #include <fcntl.h>
3687 #include <sys/mman.h>
3689 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
3690 char *malloc ();
3691 #endif
3693 /* This mess was copied from the GNU getpagesize.h. */
3694 #ifndef HAVE_GETPAGESIZE
3695 /* Assume that all systems that can run configure have sys/param.h. */
3696 # ifndef HAVE_SYS_PARAM_H
3697 # define HAVE_SYS_PARAM_H 1
3698 # endif
3700 # ifdef _SC_PAGESIZE
3701 # define getpagesize() sysconf(_SC_PAGESIZE)
3702 # else /* no _SC_PAGESIZE */
3703 # ifdef HAVE_SYS_PARAM_H
3704 # include <sys/param.h>
3705 # ifdef EXEC_PAGESIZE
3706 # define getpagesize() EXEC_PAGESIZE
3707 # else /* no EXEC_PAGESIZE */
3708 # ifdef NBPG
3709 # define getpagesize() NBPG * CLSIZE
3710 # ifndef CLSIZE
3711 # define CLSIZE 1
3712 # endif /* no CLSIZE */
3713 # else /* no NBPG */
3714 # ifdef NBPC
3715 # define getpagesize() NBPC
3716 # else /* no NBPC */
3717 # ifdef PAGESIZE
3718 # define getpagesize() PAGESIZE
3719 # endif /* PAGESIZE */
3720 # endif /* no NBPC */
3721 # endif /* no NBPG */
3722 # endif /* no EXEC_PAGESIZE */
3723 # else /* no HAVE_SYS_PARAM_H */
3724 # define getpagesize() 8192 /* punt totally */
3725 # endif /* no HAVE_SYS_PARAM_H */
3726 # endif /* no _SC_PAGESIZE */
3728 #endif /* no HAVE_GETPAGESIZE */
3731 main ()
3733 char *data, *data2, *data3;
3734 int i, pagesize;
3735 int fd;
3737 pagesize = getpagesize ();
3739 /* First, make a file with some known garbage in it. */
3740 data = (char *) malloc (pagesize);
3741 if (!data)
3742 return 1;
3743 for (i = 0; i < pagesize; ++i)
3744 *(data + i) = rand ();
3745 umask (0);
3746 fd = creat ("conftest.mmap", 0600);
3747 if (fd < 0)
3748 return 1;
3749 if (write (fd, data, pagesize) != pagesize)
3750 return 1;
3751 close (fd);
3753 /* Next, try to mmap the file at a fixed address which already has
3754 something else allocated at it. If we can, also make sure that
3755 we see the same garbage. */
3756 fd = open ("conftest.mmap", O_RDWR);
3757 if (fd < 0)
3758 return 1;
3759 data2 = (char *) malloc (2 * pagesize);
3760 if (!data2)
3761 return 1;
3762 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
3763 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3764 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3765 return 1;
3766 for (i = 0; i < pagesize; ++i)
3767 if (*(data + i) != *(data2 + i))
3768 return 1;
3770 /* Finally, make sure that changes to the mapped area do not
3771 percolate back to the file as seen by read(). (This is a bug on
3772 some variants of i386 svr4.0.) */
3773 for (i = 0; i < pagesize; ++i)
3774 *(data2 + i) = *(data2 + i) + 1;
3775 data3 = (char *) malloc (pagesize);
3776 if (!data3)
3777 return 1;
3778 if (read (fd, data3, pagesize) != pagesize)
3779 return 1;
3780 for (i = 0; i < pagesize; ++i)
3781 if (*(data + i) != *(data3 + i))
3782 return 1;
3783 close (fd);
3784 return 0;
3786 _ACEOF
3787 rm -f conftest$ac_exeext
3788 if { (ac_try="$ac_link"
3789 case "(($ac_try" in
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3792 esac
3793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3794 $as_echo "$ac_try_echo") >&5
3795 (eval "$ac_link") 2>&5
3796 ac_status=$?
3797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3799 { (case "(($ac_try" in
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3802 esac
3803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3804 $as_echo "$ac_try_echo") >&5
3805 (eval "$ac_try") 2>&5
3806 ac_status=$?
3807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); }; }; then
3809 ac_cv_func_mmap_fixed_mapped=yes
3810 else
3811 $as_echo "$as_me: program exited with status $ac_status" >&5
3812 $as_echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3815 ( exit $ac_status )
3816 ac_cv_func_mmap_fixed_mapped=no
3818 rm -rf conftest.dSYM
3819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3824 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
3825 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
3826 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3828 cat >>confdefs.h <<\_ACEOF
3829 #define HAVE_MMAP 1
3830 _ACEOF
3833 rm -f conftest.mmap
3836 { $as_echo "$as_me:$LINENO: checking for gdImageCreateTrueColor in -lgd" >&5
3837 $as_echo_n "checking for gdImageCreateTrueColor in -lgd... " >&6; }
3838 if test "${ac_cv_lib_gd_gdImageCreateTrueColor+set}" = set; then
3839 $as_echo_n "(cached) " >&6
3840 else
3841 ac_check_lib_save_LIBS=$LIBS
3842 LIBS="-lgd $LIBS"
3843 cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h. */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3850 /* Override any GCC internal prototype to avoid an error.
3851 Use char because int might match the return type of a GCC
3852 builtin and then its argument prototype would still apply. */
3853 #ifdef __cplusplus
3854 extern "C"
3855 #endif
3856 char gdImageCreateTrueColor ();
3858 main ()
3860 return gdImageCreateTrueColor ();
3862 return 0;
3864 _ACEOF
3865 rm -f conftest.$ac_objext conftest$ac_exeext
3866 if { (ac_try="$ac_link"
3867 case "(($ac_try" in
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3870 esac
3871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3872 $as_echo "$ac_try_echo") >&5
3873 (eval "$ac_link") 2>conftest.er1
3874 ac_status=$?
3875 grep -v '^ *+' conftest.er1 >conftest.err
3876 rm -f conftest.er1
3877 cat conftest.err >&5
3878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } && {
3880 test -z "$ac_c_werror_flag" ||
3881 test ! -s conftest.err
3882 } && test -s conftest$ac_exeext && {
3883 test "$cross_compiling" = yes ||
3884 $as_test_x conftest$ac_exeext
3885 }; then
3886 ac_cv_lib_gd_gdImageCreateTrueColor=yes
3887 else
3888 $as_echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3891 ac_cv_lib_gd_gdImageCreateTrueColor=no
3894 rm -rf conftest.dSYM
3895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3896 conftest$ac_exeext conftest.$ac_ext
3897 LIBS=$ac_check_lib_save_LIBS
3899 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageCreateTrueColor" >&5
3900 $as_echo "$ac_cv_lib_gd_gdImageCreateTrueColor" >&6; }
3901 if test "x$ac_cv_lib_gd_gdImageCreateTrueColor" = x""yes; then
3902 HAVE_GD="yes"
3905 if test "$HAVE_GD" != "yes"; then
3906 { { $as_echo "$as_me:$LINENO: error: GD graphics library not found" >&5
3907 $as_echo "$as_me: error: GD graphics library not found" >&2;}
3908 { (exit 1); exit 1; }; }
3909 else
3910 LDFLAGS="-lgd $LDFLAGS"
3913 { $as_echo "$as_me:$LINENO: checking for gdImageStringFT in -lgd" >&5
3914 $as_echo_n "checking for gdImageStringFT in -lgd... " >&6; }
3915 if test "${ac_cv_lib_gd_gdImageStringFT+set}" = set; then
3916 $as_echo_n "(cached) " >&6
3917 else
3918 ac_check_lib_save_LIBS=$LIBS
3919 LIBS="-lgd $LIBS"
3920 cat >conftest.$ac_ext <<_ACEOF
3921 /* confdefs.h. */
3922 _ACEOF
3923 cat confdefs.h >>conftest.$ac_ext
3924 cat >>conftest.$ac_ext <<_ACEOF
3925 /* end confdefs.h. */
3927 /* Override any GCC internal prototype to avoid an error.
3928 Use char because int might match the return type of a GCC
3929 builtin and then its argument prototype would still apply. */
3930 #ifdef __cplusplus
3931 extern "C"
3932 #endif
3933 char gdImageStringFT ();
3935 main ()
3937 return gdImageStringFT ();
3939 return 0;
3941 _ACEOF
3942 rm -f conftest.$ac_objext conftest$ac_exeext
3943 if { (ac_try="$ac_link"
3944 case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3947 esac
3948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3949 $as_echo "$ac_try_echo") >&5
3950 (eval "$ac_link") 2>conftest.er1
3951 ac_status=$?
3952 grep -v '^ *+' conftest.er1 >conftest.err
3953 rm -f conftest.er1
3954 cat conftest.err >&5
3955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); } && {
3957 test -z "$ac_c_werror_flag" ||
3958 test ! -s conftest.err
3959 } && test -s conftest$ac_exeext && {
3960 test "$cross_compiling" = yes ||
3961 $as_test_x conftest$ac_exeext
3962 }; then
3963 ac_cv_lib_gd_gdImageStringFT=yes
3964 else
3965 $as_echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3968 ac_cv_lib_gd_gdImageStringFT=no
3971 rm -rf conftest.dSYM
3972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3973 conftest$ac_exeext conftest.$ac_ext
3974 LIBS=$ac_check_lib_save_LIBS
3976 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageStringFT" >&5
3977 $as_echo "$ac_cv_lib_gd_gdImageStringFT" >&6; }
3978 if test "x$ac_cv_lib_gd_gdImageStringFT" = x""yes; then
3979 HAVE_FT2="yes"
3982 if test "$HAVE_FT2" != "yes"; then
3983 { { $as_echo "$as_me:$LINENO: error: GD does not have FreeType2 font support!" >&5
3984 $as_echo "$as_me: error: GD does not have FreeType2 font support!" >&2;}
3985 { (exit 1); exit 1; }; }
3988 { $as_echo "$as_me:$LINENO: checking for gdImageJpeg in -lgd" >&5
3989 $as_echo_n "checking for gdImageJpeg in -lgd... " >&6; }
3990 if test "${ac_cv_lib_gd_gdImageJpeg+set}" = set; then
3991 $as_echo_n "(cached) " >&6
3992 else
3993 ac_check_lib_save_LIBS=$LIBS
3994 LIBS="-lgd $LIBS"
3995 cat >conftest.$ac_ext <<_ACEOF
3996 /* confdefs.h. */
3997 _ACEOF
3998 cat confdefs.h >>conftest.$ac_ext
3999 cat >>conftest.$ac_ext <<_ACEOF
4000 /* end confdefs.h. */
4002 /* Override any GCC internal prototype to avoid an error.
4003 Use char because int might match the return type of a GCC
4004 builtin and then its argument prototype would still apply. */
4005 #ifdef __cplusplus
4006 extern "C"
4007 #endif
4008 char gdImageJpeg ();
4010 main ()
4012 return gdImageJpeg ();
4014 return 0;
4016 _ACEOF
4017 rm -f conftest.$ac_objext conftest$ac_exeext
4018 if { (ac_try="$ac_link"
4019 case "(($ac_try" in
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4022 esac
4023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4024 $as_echo "$ac_try_echo") >&5
4025 (eval "$ac_link") 2>conftest.er1
4026 ac_status=$?
4027 grep -v '^ *+' conftest.er1 >conftest.err
4028 rm -f conftest.er1
4029 cat conftest.err >&5
4030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } && {
4032 test -z "$ac_c_werror_flag" ||
4033 test ! -s conftest.err
4034 } && test -s conftest$ac_exeext && {
4035 test "$cross_compiling" = yes ||
4036 $as_test_x conftest$ac_exeext
4037 }; then
4038 ac_cv_lib_gd_gdImageJpeg=yes
4039 else
4040 $as_echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4043 ac_cv_lib_gd_gdImageJpeg=no
4046 rm -rf conftest.dSYM
4047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4048 conftest$ac_exeext conftest.$ac_ext
4049 LIBS=$ac_check_lib_save_LIBS
4051 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageJpeg" >&5
4052 $as_echo "$ac_cv_lib_gd_gdImageJpeg" >&6; }
4053 if test "x$ac_cv_lib_gd_gdImageJpeg" = x""yes; then
4054 HAVE_JPEG="yes"
4057 if test "$HAVE_JPEG" != "yes"; then
4058 { { $as_echo "$as_me:$LINENO: error: GD does not have JPEG support!" >&5
4059 $as_echo "$as_me: error: GD does not have JPEG support!" >&2;}
4060 { (exit 1); exit 1; }; }
4063 { $as_echo "$as_me:$LINENO: checking for gdImagePngEx in -lgd" >&5
4064 $as_echo_n "checking for gdImagePngEx in -lgd... " >&6; }
4065 if test "${ac_cv_lib_gd_gdImagePngEx+set}" = set; then
4066 $as_echo_n "(cached) " >&6
4067 else
4068 ac_check_lib_save_LIBS=$LIBS
4069 LIBS="-lgd $LIBS"
4070 cat >conftest.$ac_ext <<_ACEOF
4071 /* confdefs.h. */
4072 _ACEOF
4073 cat confdefs.h >>conftest.$ac_ext
4074 cat >>conftest.$ac_ext <<_ACEOF
4075 /* end confdefs.h. */
4077 /* Override any GCC internal prototype to avoid an error.
4078 Use char because int might match the return type of a GCC
4079 builtin and then its argument prototype would still apply. */
4080 #ifdef __cplusplus
4081 extern "C"
4082 #endif
4083 char gdImagePngEx ();
4085 main ()
4087 return gdImagePngEx ();
4089 return 0;
4091 _ACEOF
4092 rm -f conftest.$ac_objext conftest$ac_exeext
4093 if { (ac_try="$ac_link"
4094 case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097 esac
4098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4099 $as_echo "$ac_try_echo") >&5
4100 (eval "$ac_link") 2>conftest.er1
4101 ac_status=$?
4102 grep -v '^ *+' conftest.er1 >conftest.err
4103 rm -f conftest.er1
4104 cat conftest.err >&5
4105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); } && {
4107 test -z "$ac_c_werror_flag" ||
4108 test ! -s conftest.err
4109 } && test -s conftest$ac_exeext && {
4110 test "$cross_compiling" = yes ||
4111 $as_test_x conftest$ac_exeext
4112 }; then
4113 ac_cv_lib_gd_gdImagePngEx=yes
4114 else
4115 $as_echo "$as_me: failed program was:" >&5
4116 sed 's/^/| /' conftest.$ac_ext >&5
4118 ac_cv_lib_gd_gdImagePngEx=no
4121 rm -rf conftest.dSYM
4122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4123 conftest$ac_exeext conftest.$ac_ext
4124 LIBS=$ac_check_lib_save_LIBS
4126 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImagePngEx" >&5
4127 $as_echo "$ac_cv_lib_gd_gdImagePngEx" >&6; }
4128 if test "x$ac_cv_lib_gd_gdImagePngEx" = x""yes; then
4129 HAVE_PNG="yes"
4132 if test "$HAVE_PNG" != "yes"; then
4133 { { $as_echo "$as_me:$LINENO: error: GD does not have PNG support!" >&5
4134 $as_echo "$as_me: error: GD does not have PNG support!" >&2;}
4135 { (exit 1); exit 1; }; }
4138 # The V4Lx headers are now included along with the source.
4140 #AC_CHECK_HEADER(linux/videodev.h, HAVE_V4L1="yes",,)
4141 #if test "$HAVE_V4L1" == "yes"; then
4142 # AC_DEFINE([HAVE_V4L1], [1], [V4L1 source support.])
4145 #AC_CHECK_HEADERS([linux/videodev2.h], HAVE_V4L2="yes",,[
4146 ##include <sys/types.h>
4147 ##include <sys/time.h>
4148 ##include <linux/videodev.h>
4150 #if test "$HAVE_V4L2" == "yes"; then
4151 # AC_DEFINE([HAVE_V4L2], [1], [V4L2 source support.])
4154 { $as_echo "$as_me:$LINENO: result:
4155 Buffer type ........... $BUFFER_BITS bit
4156 PNG support ........... $HAVE_PNG
4157 JPEG support .......... $HAVE_JPEG
4158 Freetype 2.x support .. $HAVE_FT2
4159 V4L1 support .......... $HAVE_V4L1
4160 V4L2 support .......... $HAVE_V4L2
4161 " >&5
4162 $as_echo "
4163 Buffer type ........... $BUFFER_BITS bit
4164 PNG support ........... $HAVE_PNG
4165 JPEG support .......... $HAVE_JPEG
4166 Freetype 2.x support .. $HAVE_FT2
4167 V4L1 support .......... $HAVE_V4L1
4168 V4L2 support .......... $HAVE_V4L2
4169 " >&6; }
4171 ac_config_files="$ac_config_files Makefile"
4173 ac_config_headers="$ac_config_headers config.h"
4175 cat >confcache <<\_ACEOF
4176 # This file is a shell script that caches the results of configure
4177 # tests run on this system so they can be shared between configure
4178 # scripts and configure runs, see configure's option --config-cache.
4179 # It is not useful on other systems. If it contains results you don't
4180 # want to keep, you may remove or edit it.
4182 # config.status only pays attention to the cache file if you give it
4183 # the --recheck option to rerun configure.
4185 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4186 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4187 # following values.
4189 _ACEOF
4191 # The following way of writing the cache mishandles newlines in values,
4192 # but we know of no workaround that is simple, portable, and efficient.
4193 # So, we kill variables containing newlines.
4194 # Ultrix sh set writes to stderr and can't be redirected directly,
4195 # and sets the high bit in the cache file unless we assign to the vars.
4197 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4198 eval ac_val=\$$ac_var
4199 case $ac_val in #(
4200 *${as_nl}*)
4201 case $ac_var in #(
4202 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
4203 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4204 esac
4205 case $ac_var in #(
4206 _ | IFS | as_nl) ;; #(
4207 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4208 *) $as_unset $ac_var ;;
4209 esac ;;
4210 esac
4211 done
4213 (set) 2>&1 |
4214 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4215 *${as_nl}ac_space=\ *)
4216 # `set' does not quote correctly, so add quotes (double-quote
4217 # substitution turns \\\\ into \\, and sed turns \\ into \).
4218 sed -n \
4219 "s/'/'\\\\''/g;
4220 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4221 ;; #(
4223 # `set' quotes correctly as required by POSIX, so do not add quotes.
4224 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4226 esac |
4227 sort
4229 sed '
4230 /^ac_cv_env_/b end
4231 t clear
4232 :clear
4233 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4234 t end
4235 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4236 :end' >>confcache
4237 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4238 if test -w "$cache_file"; then
4239 test "x$cache_file" != "x/dev/null" &&
4240 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
4241 $as_echo "$as_me: updating cache $cache_file" >&6;}
4242 cat confcache >$cache_file
4243 else
4244 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4245 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4248 rm -f confcache
4250 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4251 # Let make expand exec_prefix.
4252 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4254 DEFS=-DHAVE_CONFIG_H
4256 ac_libobjs=
4257 ac_ltlibobjs=
4258 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4259 # 1. Remove the extension, and $U if already installed.
4260 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4261 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4262 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4263 # will be set to the directory where LIBOBJS objects are built.
4264 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4265 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
4266 done
4267 LIBOBJS=$ac_libobjs
4269 LTLIBOBJS=$ac_ltlibobjs
4273 : ${CONFIG_STATUS=./config.status}
4274 ac_write_fail=0
4275 ac_clean_files_save=$ac_clean_files
4276 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4277 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4278 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4279 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4280 #! $SHELL
4281 # Generated by $as_me.
4282 # Run this file to recreate the current configuration.
4283 # Compiler output produced by configure, useful for debugging
4284 # configure, is in config.log if it exists.
4286 debug=false
4287 ac_cs_recheck=false
4288 ac_cs_silent=false
4289 SHELL=\${CONFIG_SHELL-$SHELL}
4290 _ACEOF
4292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4293 ## --------------------- ##
4294 ## M4sh Initialization. ##
4295 ## --------------------- ##
4297 # Be more Bourne compatible
4298 DUALCASE=1; export DUALCASE # for MKS sh
4299 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4300 emulate sh
4301 NULLCMD=:
4302 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4303 # is contrary to our usage. Disable this feature.
4304 alias -g '${1+"$@"}'='"$@"'
4305 setopt NO_GLOB_SUBST
4306 else
4307 case `(set -o) 2>/dev/null` in
4308 *posix*) set -o posix ;;
4309 esac
4316 # PATH needs CR
4317 # Avoid depending upon Character Ranges.
4318 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4319 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4320 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4321 as_cr_digits='0123456789'
4322 as_cr_alnum=$as_cr_Letters$as_cr_digits
4324 as_nl='
4326 export as_nl
4327 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4328 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4329 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4330 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4331 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4332 as_echo='printf %s\n'
4333 as_echo_n='printf %s'
4334 else
4335 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4336 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4337 as_echo_n='/usr/ucb/echo -n'
4338 else
4339 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4340 as_echo_n_body='eval
4341 arg=$1;
4342 case $arg in
4343 *"$as_nl"*)
4344 expr "X$arg" : "X\\(.*\\)$as_nl";
4345 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4346 esac;
4347 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4349 export as_echo_n_body
4350 as_echo_n='sh -c $as_echo_n_body as_echo'
4352 export as_echo_body
4353 as_echo='sh -c $as_echo_body as_echo'
4356 # The user is always right.
4357 if test "${PATH_SEPARATOR+set}" != set; then
4358 PATH_SEPARATOR=:
4359 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4360 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4361 PATH_SEPARATOR=';'
4365 # Support unset when possible.
4366 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4367 as_unset=unset
4368 else
4369 as_unset=false
4373 # IFS
4374 # We need space, tab and new line, in precisely that order. Quoting is
4375 # there to prevent editors from complaining about space-tab.
4376 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4377 # splitting by setting IFS to empty value.)
4378 IFS=" "" $as_nl"
4380 # Find who we are. Look in the path if we contain no directory separator.
4381 case $0 in
4382 *[\\/]* ) as_myself=$0 ;;
4383 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
4388 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4389 done
4390 IFS=$as_save_IFS
4393 esac
4394 # We did not find ourselves, most probably we were run as `sh COMMAND'
4395 # in which case we are not to be found in the path.
4396 if test "x$as_myself" = x; then
4397 as_myself=$0
4399 if test ! -f "$as_myself"; then
4400 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4401 { (exit 1); exit 1; }
4404 # Work around bugs in pre-3.0 UWIN ksh.
4405 for as_var in ENV MAIL MAILPATH
4406 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4407 done
4408 PS1='$ '
4409 PS2='> '
4410 PS4='+ '
4412 # NLS nuisances.
4413 LC_ALL=C
4414 export LC_ALL
4415 LANGUAGE=C
4416 export LANGUAGE
4418 # Required to use basename.
4419 if expr a : '\(a\)' >/dev/null 2>&1 &&
4420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4421 as_expr=expr
4422 else
4423 as_expr=false
4426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4427 as_basename=basename
4428 else
4429 as_basename=false
4433 # Name of the executable.
4434 as_me=`$as_basename -- "$0" ||
4435 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4436 X"$0" : 'X\(//\)$' \| \
4437 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4438 $as_echo X/"$0" |
4439 sed '/^.*\/\([^/][^/]*\)\/*$/{
4440 s//\1/
4443 /^X\/\(\/\/\)$/{
4444 s//\1/
4447 /^X\/\(\/\).*/{
4448 s//\1/
4451 s/.*/./; q'`
4453 # CDPATH.
4454 $as_unset CDPATH
4458 as_lineno_1=$LINENO
4459 as_lineno_2=$LINENO
4460 test "x$as_lineno_1" != "x$as_lineno_2" &&
4461 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
4463 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4464 # uniformly replaced by the line number. The first 'sed' inserts a
4465 # line-number line after each line using $LINENO; the second 'sed'
4466 # does the real work. The second script uses 'N' to pair each
4467 # line-number line with the line containing $LINENO, and appends
4468 # trailing '-' during substitution so that $LINENO is not a special
4469 # case at line end.
4470 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4471 # scripts with optimization help from Paolo Bonzini. Blame Lee
4472 # E. McMahon (1931-1989) for sed's syntax. :-)
4473 sed -n '
4475 /[$]LINENO/=
4476 ' <$as_myself |
4477 sed '
4478 s/[$]LINENO.*/&-/
4479 t lineno
4481 :lineno
4483 :loop
4484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4485 t loop
4486 s/-\n.*//
4487 ' >$as_me.lineno &&
4488 chmod +x "$as_me.lineno" ||
4489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4490 { (exit 1); exit 1; }; }
4492 # Don't try to exec as it changes $[0], causing all sort of problems
4493 # (the dirname of $[0] is not the place where we might find the
4494 # original and so on. Autoconf is especially sensitive to this).
4495 . "./$as_me.lineno"
4496 # Exit status is that of the last command.
4497 exit
4501 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4502 as_dirname=dirname
4503 else
4504 as_dirname=false
4507 ECHO_C= ECHO_N= ECHO_T=
4508 case `echo -n x` in
4509 -n*)
4510 case `echo 'x\c'` in
4511 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4512 *) ECHO_C='\c';;
4513 esac;;
4515 ECHO_N='-n';;
4516 esac
4517 if expr a : '\(a\)' >/dev/null 2>&1 &&
4518 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4519 as_expr=expr
4520 else
4521 as_expr=false
4524 rm -f conf$$ conf$$.exe conf$$.file
4525 if test -d conf$$.dir; then
4526 rm -f conf$$.dir/conf$$.file
4527 else
4528 rm -f conf$$.dir
4529 mkdir conf$$.dir 2>/dev/null
4531 if (echo >conf$$.file) 2>/dev/null; then
4532 if ln -s conf$$.file conf$$ 2>/dev/null; then
4533 as_ln_s='ln -s'
4534 # ... but there are two gotchas:
4535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4537 # In both cases, we have to default to `cp -p'.
4538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4539 as_ln_s='cp -p'
4540 elif ln conf$$.file conf$$ 2>/dev/null; then
4541 as_ln_s=ln
4542 else
4543 as_ln_s='cp -p'
4545 else
4546 as_ln_s='cp -p'
4548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4549 rmdir conf$$.dir 2>/dev/null
4551 if mkdir -p . 2>/dev/null; then
4552 as_mkdir_p=:
4553 else
4554 test -d ./-p && rmdir ./-p
4555 as_mkdir_p=false
4558 if test -x / >/dev/null 2>&1; then
4559 as_test_x='test -x'
4560 else
4561 if ls -dL / >/dev/null 2>&1; then
4562 as_ls_L_option=L
4563 else
4564 as_ls_L_option=
4566 as_test_x='
4567 eval sh -c '\''
4568 if test -d "$1"; then
4569 test -d "$1/.";
4570 else
4571 case $1 in
4572 -*)set "./$1";;
4573 esac;
4574 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
4575 ???[sx]*):;;*)false;;esac;fi
4576 '\'' sh
4579 as_executable_p=$as_test_x
4581 # Sed expression to map a string onto a valid CPP name.
4582 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4584 # Sed expression to map a string onto a valid variable name.
4585 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4588 exec 6>&1
4590 # Save the log message, to keep $[0] and so on meaningful, and to
4591 # report actual input values of CONFIG_FILES etc. instead of their
4592 # values after options handling.
4593 ac_log="
4594 This file was extended by fswebcam $as_me 20091224, which was
4595 generated by GNU Autoconf 2.63. Invocation command line was
4597 CONFIG_FILES = $CONFIG_FILES
4598 CONFIG_HEADERS = $CONFIG_HEADERS
4599 CONFIG_LINKS = $CONFIG_LINKS
4600 CONFIG_COMMANDS = $CONFIG_COMMANDS
4601 $ $0 $@
4603 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4606 _ACEOF
4608 case $ac_config_files in *"
4609 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4610 esac
4612 case $ac_config_headers in *"
4613 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4614 esac
4617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4618 # Files that config.status was made for.
4619 config_files="$ac_config_files"
4620 config_headers="$ac_config_headers"
4622 _ACEOF
4624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4625 ac_cs_usage="\
4626 \`$as_me' instantiates files from templates according to the
4627 current configuration.
4629 Usage: $0 [OPTION]... [FILE]...
4631 -h, --help print this help, then exit
4632 -V, --version print version number and configuration settings, then exit
4633 -q, --quiet, --silent
4634 do not print progress messages
4635 -d, --debug don't remove temporary files
4636 --recheck update $as_me by reconfiguring in the same conditions
4637 --file=FILE[:TEMPLATE]
4638 instantiate the configuration file FILE
4639 --header=FILE[:TEMPLATE]
4640 instantiate the configuration header FILE
4642 Configuration files:
4643 $config_files
4645 Configuration headers:
4646 $config_headers
4648 Report bugs to <bug-autoconf@gnu.org>."
4650 _ACEOF
4651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4652 ac_cs_version="\\
4653 fswebcam config.status 20091224
4654 configured by $0, generated by GNU Autoconf 2.63,
4655 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4657 Copyright (C) 2008 Free Software Foundation, Inc.
4658 This config.status script is free software; the Free Software Foundation
4659 gives unlimited permission to copy, distribute and modify it."
4661 ac_pwd='$ac_pwd'
4662 srcdir='$srcdir'
4663 test -n "\$AWK" || AWK=awk
4664 _ACEOF
4666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4667 # The default lists apply if the user does not specify any file.
4668 ac_need_defaults=:
4669 while test $# != 0
4671 case $1 in
4672 --*=*)
4673 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4674 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4675 ac_shift=:
4678 ac_option=$1
4679 ac_optarg=$2
4680 ac_shift=shift
4682 esac
4684 case $ac_option in
4685 # Handling of the options.
4686 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4687 ac_cs_recheck=: ;;
4688 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4689 $as_echo "$ac_cs_version"; exit ;;
4690 --debug | --debu | --deb | --de | --d | -d )
4691 debug=: ;;
4692 --file | --fil | --fi | --f )
4693 $ac_shift
4694 case $ac_optarg in
4695 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4696 esac
4697 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
4698 ac_need_defaults=false;;
4699 --header | --heade | --head | --hea )
4700 $ac_shift
4701 case $ac_optarg in
4702 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4703 esac
4704 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
4705 ac_need_defaults=false;;
4706 --he | --h)
4707 # Conflict between --help and --header
4708 { $as_echo "$as_me: error: ambiguous option: $1
4709 Try \`$0 --help' for more information." >&2
4710 { (exit 1); exit 1; }; };;
4711 --help | --hel | -h )
4712 $as_echo "$ac_cs_usage"; exit ;;
4713 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4714 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4715 ac_cs_silent=: ;;
4717 # This is an error.
4718 -*) { $as_echo "$as_me: error: unrecognized option: $1
4719 Try \`$0 --help' for more information." >&2
4720 { (exit 1); exit 1; }; } ;;
4722 *) ac_config_targets="$ac_config_targets $1"
4723 ac_need_defaults=false ;;
4725 esac
4726 shift
4727 done
4729 ac_configure_extra_args=
4731 if $ac_cs_silent; then
4732 exec 6>/dev/null
4733 ac_configure_extra_args="$ac_configure_extra_args --silent"
4736 _ACEOF
4737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4738 if \$ac_cs_recheck; then
4739 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4740 shift
4741 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4742 CONFIG_SHELL='$SHELL'
4743 export CONFIG_SHELL
4744 exec "\$@"
4747 _ACEOF
4748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4749 exec 5>>config.log
4751 echo
4752 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4753 ## Running $as_me. ##
4754 _ASBOX
4755 $as_echo "$ac_log"
4756 } >&5
4758 _ACEOF
4759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4760 _ACEOF
4762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4764 # Handling of arguments.
4765 for ac_config_target in $ac_config_targets
4767 case $ac_config_target in
4768 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4769 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4771 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4772 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4773 { (exit 1); exit 1; }; };;
4774 esac
4775 done
4778 # If the user did not use the arguments to specify the items to instantiate,
4779 # then the envvar interface is used. Set only those that are not.
4780 # We use the long form for the default assignment because of an extremely
4781 # bizarre bug on SunOS 4.1.3.
4782 if $ac_need_defaults; then
4783 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4784 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4787 # Have a temporary directory for convenience. Make it in the build tree
4788 # simply because there is no reason against having it here, and in addition,
4789 # creating and moving files from /tmp can sometimes cause problems.
4790 # Hook for its removal unless debugging.
4791 # Note that there is a small window in which the directory will not be cleaned:
4792 # after its creation but before its name has been assigned to `$tmp'.
4793 $debug ||
4795 tmp=
4796 trap 'exit_status=$?
4797 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4799 trap '{ (exit 1); exit 1; }' 1 2 13 15
4801 # Create a (secure) tmp directory for tmp files.
4804 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4805 test -n "$tmp" && test -d "$tmp"
4806 } ||
4808 tmp=./conf$$-$RANDOM
4809 (umask 077 && mkdir "$tmp")
4810 } ||
4812 $as_echo "$as_me: cannot create a temporary directory in ." >&2
4813 { (exit 1); exit 1; }
4816 # Set up the scripts for CONFIG_FILES section.
4817 # No need to generate them if there are no CONFIG_FILES.
4818 # This happens for instance with `./config.status config.h'.
4819 if test -n "$CONFIG_FILES"; then
4822 ac_cr=' '
4823 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4824 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4825 ac_cs_awk_cr='\\r'
4826 else
4827 ac_cs_awk_cr=$ac_cr
4830 echo 'BEGIN {' >"$tmp/subs1.awk" &&
4831 _ACEOF
4835 echo "cat >conf$$subs.awk <<_ACEOF" &&
4836 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4837 echo "_ACEOF"
4838 } >conf$$subs.sh ||
4839 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4840 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4841 { (exit 1); exit 1; }; }
4842 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
4843 ac_delim='%!_!# '
4844 for ac_last_try in false false false false false :; do
4845 . ./conf$$subs.sh ||
4846 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4847 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4848 { (exit 1); exit 1; }; }
4850 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4851 if test $ac_delim_n = $ac_delim_num; then
4852 break
4853 elif $ac_last_try; then
4854 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4855 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4856 { (exit 1); exit 1; }; }
4857 else
4858 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4860 done
4861 rm -f conf$$subs.sh
4863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4864 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
4865 _ACEOF
4866 sed -n '
4868 s/^/S["/; s/!.*/"]=/
4871 s/^[^!]*!//
4872 :repl
4873 t repl
4874 s/'"$ac_delim"'$//
4875 t delim
4878 s/\(.\{148\}\).*/\1/
4879 t more1
4880 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4883 b repl
4884 :more1
4885 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4888 s/.\{148\}//
4889 t nl
4890 :delim
4892 s/\(.\{148\}\).*/\1/
4893 t more2
4894 s/["\\]/\\&/g; s/^/"/; s/$/"/
4897 :more2
4898 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4901 s/.\{148\}//
4902 t delim
4903 ' <conf$$subs.awk | sed '
4904 /^[^""]/{
4906 s/\n//
4908 ' >>$CONFIG_STATUS || ac_write_fail=1
4909 rm -f conf$$subs.awk
4910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4911 _ACAWK
4912 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
4913 for (key in S) S_is_set[key] = 1
4914 FS = "\a"
4918 line = $ 0
4919 nfields = split(line, field, "@")
4920 substed = 0
4921 len = length(field[1])
4922 for (i = 2; i < nfields; i++) {
4923 key = field[i]
4924 keylen = length(key)
4925 if (S_is_set[key]) {
4926 value = S[key]
4927 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4928 len += length(value) + length(field[++i])
4929 substed = 1
4930 } else
4931 len += 1 + keylen
4934 print line
4937 _ACAWK
4938 _ACEOF
4939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4940 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4941 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4942 else
4944 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
4945 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
4946 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
4947 { (exit 1); exit 1; }; }
4948 _ACEOF
4950 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4951 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4952 # trailing colons and then remove the whole line if VPATH becomes empty
4953 # (actually we leave an empty line to preserve line numbers).
4954 if test "x$srcdir" = x.; then
4955 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4956 s/:*\$(srcdir):*/:/
4957 s/:*\${srcdir}:*/:/
4958 s/:*@srcdir@:*/:/
4959 s/^\([^=]*=[ ]*\):*/\1/
4960 s/:*$//
4961 s/^[^=]*=[ ]*$//
4965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4966 fi # test -n "$CONFIG_FILES"
4968 # Set up the scripts for CONFIG_HEADERS section.
4969 # No need to generate them if there are no CONFIG_HEADERS.
4970 # This happens for instance with `./config.status Makefile'.
4971 if test -n "$CONFIG_HEADERS"; then
4972 cat >"$tmp/defines.awk" <<\_ACAWK ||
4973 BEGIN {
4974 _ACEOF
4976 # Transform confdefs.h into an awk script `defines.awk', embedded as
4977 # here-document in config.status, that substitutes the proper values into
4978 # config.h.in to produce config.h.
4980 # Create a delimiter string that does not exist in confdefs.h, to ease
4981 # handling of long lines.
4982 ac_delim='%!_!# '
4983 for ac_last_try in false false :; do
4984 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
4985 if test -z "$ac_t"; then
4986 break
4987 elif $ac_last_try; then
4988 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
4989 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
4990 { (exit 1); exit 1; }; }
4991 else
4992 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4994 done
4996 # For the awk script, D is an array of macro values keyed by name,
4997 # likewise P contains macro parameters if any. Preserve backslash
4998 # newline sequences.
5000 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5001 sed -n '
5002 s/.\{148\}/&'"$ac_delim"'/g
5003 t rset
5004 :rset
5005 s/^[ ]*#[ ]*define[ ][ ]*/ /
5006 t def
5008 :def
5009 s/\\$//
5010 t bsnl
5011 s/["\\]/\\&/g
5012 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5013 D["\1"]=" \3"/p
5014 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5016 :bsnl
5017 s/["\\]/\\&/g
5018 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5019 D["\1"]=" \3\\\\\\n"\\/p
5020 t cont
5021 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5022 t cont
5024 :cont
5026 s/.\{148\}/&'"$ac_delim"'/g
5027 t clear
5028 :clear
5029 s/\\$//
5030 t bsnlc
5031 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5033 :bsnlc
5034 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5035 b cont
5036 ' <confdefs.h | sed '
5037 s/'"$ac_delim"'/"\\\
5038 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5041 for (key in D) D_is_set[key] = 1
5042 FS = "\a"
5044 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5045 line = \$ 0
5046 split(line, arg, " ")
5047 if (arg[1] == "#") {
5048 defundef = arg[2]
5049 mac1 = arg[3]
5050 } else {
5051 defundef = substr(arg[1], 2)
5052 mac1 = arg[2]
5054 split(mac1, mac2, "(") #)
5055 macro = mac2[1]
5056 prefix = substr(line, 1, index(line, defundef) - 1)
5057 if (D_is_set[macro]) {
5058 # Preserve the white space surrounding the "#".
5059 print prefix "define", macro P[macro] D[macro]
5060 next
5061 } else {
5062 # Replace #undef with comments. This is necessary, for example,
5063 # in the case of _POSIX_SOURCE, which is predefined and required
5064 # on some systems where configure will not decide to define it.
5065 if (defundef == "undef") {
5066 print "/*", prefix defundef, macro, "*/"
5067 next
5071 { print }
5072 _ACAWK
5073 _ACEOF
5074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5075 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
5076 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
5077 { (exit 1); exit 1; }; }
5078 fi # test -n "$CONFIG_HEADERS"
5081 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5082 shift
5083 for ac_tag
5085 case $ac_tag in
5086 :[FHLC]) ac_mode=$ac_tag; continue;;
5087 esac
5088 case $ac_mode$ac_tag in
5089 :[FHL]*:*);;
5090 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
5091 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
5092 { (exit 1); exit 1; }; };;
5093 :[FH]-) ac_tag=-:-;;
5094 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5095 esac
5096 ac_save_IFS=$IFS
5097 IFS=:
5098 set x $ac_tag
5099 IFS=$ac_save_IFS
5100 shift
5101 ac_file=$1
5102 shift
5104 case $ac_mode in
5105 :L) ac_source=$1;;
5106 :[FH])
5107 ac_file_inputs=
5108 for ac_f
5110 case $ac_f in
5111 -) ac_f="$tmp/stdin";;
5112 *) # Look for the file first in the build tree, then in the source tree
5113 # (if the path is not absolute). The absolute path cannot be DOS-style,
5114 # because $ac_f cannot contain `:'.
5115 test -f "$ac_f" ||
5116 case $ac_f in
5117 [\\/$]*) false;;
5118 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5119 esac ||
5120 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
5121 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
5122 { (exit 1); exit 1; }; };;
5123 esac
5124 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5125 ac_file_inputs="$ac_file_inputs '$ac_f'"
5126 done
5128 # Let's still pretend it is `configure' which instantiates (i.e., don't
5129 # use $as_me), people would be surprised to read:
5130 # /* config.h. Generated by config.status. */
5131 configure_input='Generated from '`
5132 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5133 `' by configure.'
5134 if test x"$ac_file" != x-; then
5135 configure_input="$ac_file. $configure_input"
5136 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
5137 $as_echo "$as_me: creating $ac_file" >&6;}
5139 # Neutralize special characters interpreted by sed in replacement strings.
5140 case $configure_input in #(
5141 *\&* | *\|* | *\\* )
5142 ac_sed_conf_input=`$as_echo "$configure_input" |
5143 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5144 *) ac_sed_conf_input=$configure_input;;
5145 esac
5147 case $ac_tag in
5148 *:-:* | *:-) cat >"$tmp/stdin" \
5149 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
5150 $as_echo "$as_me: error: could not create $ac_file" >&2;}
5151 { (exit 1); exit 1; }; } ;;
5152 esac
5154 esac
5156 ac_dir=`$as_dirname -- "$ac_file" ||
5157 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5158 X"$ac_file" : 'X\(//\)[^/]' \| \
5159 X"$ac_file" : 'X\(//\)$' \| \
5160 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5161 $as_echo X"$ac_file" |
5162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5163 s//\1/
5166 /^X\(\/\/\)[^/].*/{
5167 s//\1/
5170 /^X\(\/\/\)$/{
5171 s//\1/
5174 /^X\(\/\).*/{
5175 s//\1/
5178 s/.*/./; q'`
5179 { as_dir="$ac_dir"
5180 case $as_dir in #(
5181 -*) as_dir=./$as_dir;;
5182 esac
5183 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5184 as_dirs=
5185 while :; do
5186 case $as_dir in #(
5187 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5188 *) as_qdir=$as_dir;;
5189 esac
5190 as_dirs="'$as_qdir' $as_dirs"
5191 as_dir=`$as_dirname -- "$as_dir" ||
5192 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5193 X"$as_dir" : 'X\(//\)[^/]' \| \
5194 X"$as_dir" : 'X\(//\)$' \| \
5195 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5196 $as_echo X"$as_dir" |
5197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5198 s//\1/
5201 /^X\(\/\/\)[^/].*/{
5202 s//\1/
5205 /^X\(\/\/\)$/{
5206 s//\1/
5209 /^X\(\/\).*/{
5210 s//\1/
5213 s/.*/./; q'`
5214 test -d "$as_dir" && break
5215 done
5216 test -z "$as_dirs" || eval "mkdir $as_dirs"
5217 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5218 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
5219 { (exit 1); exit 1; }; }; }
5220 ac_builddir=.
5222 case "$ac_dir" in
5223 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5225 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5226 # A ".." for each directory in $ac_dir_suffix.
5227 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5228 case $ac_top_builddir_sub in
5229 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5230 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5231 esac ;;
5232 esac
5233 ac_abs_top_builddir=$ac_pwd
5234 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5235 # for backward compatibility:
5236 ac_top_builddir=$ac_top_build_prefix
5238 case $srcdir in
5239 .) # We are building in place.
5240 ac_srcdir=.
5241 ac_top_srcdir=$ac_top_builddir_sub
5242 ac_abs_top_srcdir=$ac_pwd ;;
5243 [\\/]* | ?:[\\/]* ) # Absolute name.
5244 ac_srcdir=$srcdir$ac_dir_suffix;
5245 ac_top_srcdir=$srcdir
5246 ac_abs_top_srcdir=$srcdir ;;
5247 *) # Relative name.
5248 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5249 ac_top_srcdir=$ac_top_build_prefix$srcdir
5250 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5251 esac
5252 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5255 case $ac_mode in
5258 # CONFIG_FILE
5261 _ACEOF
5263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5264 # If the template does not know about datarootdir, expand it.
5265 # FIXME: This hack should be removed a few years after 2.60.
5266 ac_datarootdir_hack=; ac_datarootdir_seen=
5268 ac_sed_dataroot='
5269 /datarootdir/ {
5273 /@datadir@/p
5274 /@docdir@/p
5275 /@infodir@/p
5276 /@localedir@/p
5277 /@mandir@/p
5279 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5280 *datarootdir*) ac_datarootdir_seen=yes;;
5281 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5282 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5283 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5284 _ACEOF
5285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5286 ac_datarootdir_hack='
5287 s&@datadir@&$datadir&g
5288 s&@docdir@&$docdir&g
5289 s&@infodir@&$infodir&g
5290 s&@localedir@&$localedir&g
5291 s&@mandir@&$mandir&g
5292 s&\\\${datarootdir}&$datarootdir&g' ;;
5293 esac
5294 _ACEOF
5296 # Neutralize VPATH when `$srcdir' = `.'.
5297 # Shell code in configure.ac might set extrasub.
5298 # FIXME: do we really want to maintain this feature?
5299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5300 ac_sed_extra="$ac_vpsub
5301 $extrasub
5302 _ACEOF
5303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5305 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5306 s|@configure_input@|$ac_sed_conf_input|;t t
5307 s&@top_builddir@&$ac_top_builddir_sub&;t t
5308 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5309 s&@srcdir@&$ac_srcdir&;t t
5310 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5311 s&@top_srcdir@&$ac_top_srcdir&;t t
5312 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5313 s&@builddir@&$ac_builddir&;t t
5314 s&@abs_builddir@&$ac_abs_builddir&;t t
5315 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5316 $ac_datarootdir_hack
5318 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
5319 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
5320 $as_echo "$as_me: error: could not create $ac_file" >&2;}
5321 { (exit 1); exit 1; }; }
5323 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5324 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5325 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5326 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5327 which seems to be undefined. Please make sure it is defined." >&5
5328 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5329 which seems to be undefined. Please make sure it is defined." >&2;}
5331 rm -f "$tmp/stdin"
5332 case $ac_file in
5333 -) cat "$tmp/out" && rm -f "$tmp/out";;
5334 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5335 esac \
5336 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
5337 $as_echo "$as_me: error: could not create $ac_file" >&2;}
5338 { (exit 1); exit 1; }; }
5342 # CONFIG_HEADER
5344 if test x"$ac_file" != x-; then
5346 $as_echo "/* $configure_input */" \
5347 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
5348 } >"$tmp/config.h" \
5349 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
5350 $as_echo "$as_me: error: could not create $ac_file" >&2;}
5351 { (exit 1); exit 1; }; }
5352 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
5353 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5354 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5355 else
5356 rm -f "$ac_file"
5357 mv "$tmp/config.h" "$ac_file" \
5358 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
5359 $as_echo "$as_me: error: could not create $ac_file" >&2;}
5360 { (exit 1); exit 1; }; }
5362 else
5363 $as_echo "/* $configure_input */" \
5364 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
5365 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
5366 $as_echo "$as_me: error: could not create -" >&2;}
5367 { (exit 1); exit 1; }; }
5372 esac
5374 done # for ac_tag
5377 { (exit 0); exit 0; }
5378 _ACEOF
5379 chmod +x $CONFIG_STATUS
5380 ac_clean_files=$ac_clean_files_save
5382 test $ac_write_fail = 0 ||
5383 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
5384 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
5385 { (exit 1); exit 1; }; }
5388 # configure is writing to config.log, and then calls config.status.
5389 # config.status does its own redirection, appending to config.log.
5390 # Unfortunately, on DOS this fails, as config.log is still kept open
5391 # by configure, so config.status won't be able to write to it; its
5392 # output is simply discarded. So we exec the FD to /dev/null,
5393 # effectively closing config.log, so it can be properly (re)opened and
5394 # appended to by config.status. When coming back to configure, we
5395 # need to make the FD available again.
5396 if test "$no_create" != yes; then
5397 ac_cs_success=:
5398 ac_config_status_args=
5399 test "$silent" = yes &&
5400 ac_config_status_args="$ac_config_status_args --quiet"
5401 exec 5>/dev/null
5402 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5403 exec 5>>config.log
5404 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5405 # would make configure fail if this is the last instruction.
5406 $ac_cs_success || { (exit 1); exit 1; }
5408 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5409 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5410 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}