Tomato 1.28
[tomato.git] / release / src / router / dropbear / configure
blobe05cd0cdc7cfc9fff052f0adcaeae292525922d1
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$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 # Zsh 3.x and 4.x performs 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 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="buffer.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
654 CFLAGS
655 LDFLAGS
656 CPPFLAGS
657 ac_ct_CC
658 EXEEXT
659 OBJEXT
660 SET_MAKE
662 build
663 build_cpu
664 build_vendor
665 build_os
666 host
667 host_cpu
668 host_vendor
669 host_os
671 RANLIB
672 STRIP
673 INSTALL
675 GREP
676 EGREP
677 LIBOBJS
678 LTLIBOBJS'
679 ac_subst_files=''
680 ac_precious_vars='build_alias
681 host_alias
682 target_alias
684 CFLAGS
685 LDFLAGS
686 LIBS
687 CPPFLAGS
688 CPP'
691 # Initialize some variables set by options.
692 ac_init_help=
693 ac_init_version=false
694 # The variables have the same names as the options, with
695 # dashes changed to underlines.
696 cache_file=/dev/null
697 exec_prefix=NONE
698 no_create=
699 no_recursion=
700 prefix=NONE
701 program_prefix=NONE
702 program_suffix=NONE
703 program_transform_name=s,x,x,
704 silent=
705 site=
706 srcdir=
707 verbose=
708 x_includes=NONE
709 x_libraries=NONE
711 # Installation directory options.
712 # These are left unexpanded so users can "make install exec_prefix=/foo"
713 # and all the variables that are supposed to be based on exec_prefix
714 # by default will actually change.
715 # Use braces instead of parens because sh, perl, etc. also accept them.
716 # (The list follows the same order as the GNU Coding Standards.)
717 bindir='${exec_prefix}/bin'
718 sbindir='${exec_prefix}/sbin'
719 libexecdir='${exec_prefix}/libexec'
720 datarootdir='${prefix}/share'
721 datadir='${datarootdir}'
722 sysconfdir='${prefix}/etc'
723 sharedstatedir='${prefix}/com'
724 localstatedir='${prefix}/var'
725 includedir='${prefix}/include'
726 oldincludedir='/usr/include'
727 docdir='${datarootdir}/doc/${PACKAGE}'
728 infodir='${datarootdir}/info'
729 htmldir='${docdir}'
730 dvidir='${docdir}'
731 pdfdir='${docdir}'
732 psdir='${docdir}'
733 libdir='${exec_prefix}/lib'
734 localedir='${datarootdir}/locale'
735 mandir='${datarootdir}/man'
737 ac_prev=
738 ac_dashdash=
739 for ac_option
741 # If the previous option needs an argument, assign it.
742 if test -n "$ac_prev"; then
743 eval $ac_prev=\$ac_option
744 ac_prev=
745 continue
748 case $ac_option in
749 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
750 *) ac_optarg=yes ;;
751 esac
753 # Accept the important Cygnus configure options, so we can diagnose typos.
755 case $ac_dashdash$ac_option in
757 ac_dashdash=yes ;;
759 -bindir | --bindir | --bindi | --bind | --bin | --bi)
760 ac_prev=bindir ;;
761 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
762 bindir=$ac_optarg ;;
764 -build | --build | --buil | --bui | --bu)
765 ac_prev=build_alias ;;
766 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
767 build_alias=$ac_optarg ;;
769 -cache-file | --cache-file | --cache-fil | --cache-fi \
770 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
771 ac_prev=cache_file ;;
772 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
773 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
774 cache_file=$ac_optarg ;;
776 --config-cache | -C)
777 cache_file=config.cache ;;
779 -datadir | --datadir | --datadi | --datad)
780 ac_prev=datadir ;;
781 -datadir=* | --datadir=* | --datadi=* | --datad=*)
782 datadir=$ac_optarg ;;
784 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
785 | --dataroo | --dataro | --datar)
786 ac_prev=datarootdir ;;
787 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
788 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
789 datarootdir=$ac_optarg ;;
791 -disable-* | --disable-*)
792 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
793 # Reject names that are not valid shell variable names.
794 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
796 { (exit 1); exit 1; }; }
797 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
798 eval enable_$ac_feature=no ;;
800 -docdir | --docdir | --docdi | --doc | --do)
801 ac_prev=docdir ;;
802 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
803 docdir=$ac_optarg ;;
805 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
806 ac_prev=dvidir ;;
807 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
808 dvidir=$ac_optarg ;;
810 -enable-* | --enable-*)
811 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
812 # Reject names that are not valid shell variable names.
813 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
814 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
815 { (exit 1); exit 1; }; }
816 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
817 eval enable_$ac_feature=\$ac_optarg ;;
819 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
820 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
821 | --exec | --exe | --ex)
822 ac_prev=exec_prefix ;;
823 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
824 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
825 | --exec=* | --exe=* | --ex=*)
826 exec_prefix=$ac_optarg ;;
828 -gas | --gas | --ga | --g)
829 # Obsolete; use --with-gas.
830 with_gas=yes ;;
832 -help | --help | --hel | --he | -h)
833 ac_init_help=long ;;
834 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
835 ac_init_help=recursive ;;
836 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
837 ac_init_help=short ;;
839 -host | --host | --hos | --ho)
840 ac_prev=host_alias ;;
841 -host=* | --host=* | --hos=* | --ho=*)
842 host_alias=$ac_optarg ;;
844 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
845 ac_prev=htmldir ;;
846 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
847 | --ht=*)
848 htmldir=$ac_optarg ;;
850 -includedir | --includedir | --includedi | --included | --include \
851 | --includ | --inclu | --incl | --inc)
852 ac_prev=includedir ;;
853 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
854 | --includ=* | --inclu=* | --incl=* | --inc=*)
855 includedir=$ac_optarg ;;
857 -infodir | --infodir | --infodi | --infod | --info | --inf)
858 ac_prev=infodir ;;
859 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
860 infodir=$ac_optarg ;;
862 -libdir | --libdir | --libdi | --libd)
863 ac_prev=libdir ;;
864 -libdir=* | --libdir=* | --libdi=* | --libd=*)
865 libdir=$ac_optarg ;;
867 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
868 | --libexe | --libex | --libe)
869 ac_prev=libexecdir ;;
870 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
871 | --libexe=* | --libex=* | --libe=*)
872 libexecdir=$ac_optarg ;;
874 -localedir | --localedir | --localedi | --localed | --locale)
875 ac_prev=localedir ;;
876 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
877 localedir=$ac_optarg ;;
879 -localstatedir | --localstatedir | --localstatedi | --localstated \
880 | --localstate | --localstat | --localsta | --localst | --locals)
881 ac_prev=localstatedir ;;
882 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
883 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
884 localstatedir=$ac_optarg ;;
886 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
887 ac_prev=mandir ;;
888 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
889 mandir=$ac_optarg ;;
891 -nfp | --nfp | --nf)
892 # Obsolete; use --without-fp.
893 with_fp=no ;;
895 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
896 | --no-cr | --no-c | -n)
897 no_create=yes ;;
899 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
900 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
901 no_recursion=yes ;;
903 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
904 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
905 | --oldin | --oldi | --old | --ol | --o)
906 ac_prev=oldincludedir ;;
907 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
908 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
909 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
910 oldincludedir=$ac_optarg ;;
912 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
913 ac_prev=prefix ;;
914 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
915 prefix=$ac_optarg ;;
917 -program-prefix | --program-prefix | --program-prefi | --program-pref \
918 | --program-pre | --program-pr | --program-p)
919 ac_prev=program_prefix ;;
920 -program-prefix=* | --program-prefix=* | --program-prefi=* \
921 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
922 program_prefix=$ac_optarg ;;
924 -program-suffix | --program-suffix | --program-suffi | --program-suff \
925 | --program-suf | --program-su | --program-s)
926 ac_prev=program_suffix ;;
927 -program-suffix=* | --program-suffix=* | --program-suffi=* \
928 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
929 program_suffix=$ac_optarg ;;
931 -program-transform-name | --program-transform-name \
932 | --program-transform-nam | --program-transform-na \
933 | --program-transform-n | --program-transform- \
934 | --program-transform | --program-transfor \
935 | --program-transfo | --program-transf \
936 | --program-trans | --program-tran \
937 | --progr-tra | --program-tr | --program-t)
938 ac_prev=program_transform_name ;;
939 -program-transform-name=* | --program-transform-name=* \
940 | --program-transform-nam=* | --program-transform-na=* \
941 | --program-transform-n=* | --program-transform-=* \
942 | --program-transform=* | --program-transfor=* \
943 | --program-transfo=* | --program-transf=* \
944 | --program-trans=* | --program-tran=* \
945 | --progr-tra=* | --program-tr=* | --program-t=*)
946 program_transform_name=$ac_optarg ;;
948 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
949 ac_prev=pdfdir ;;
950 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
951 pdfdir=$ac_optarg ;;
953 -psdir | --psdir | --psdi | --psd | --ps)
954 ac_prev=psdir ;;
955 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
956 psdir=$ac_optarg ;;
958 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
959 | -silent | --silent | --silen | --sile | --sil)
960 silent=yes ;;
962 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
963 ac_prev=sbindir ;;
964 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
965 | --sbi=* | --sb=*)
966 sbindir=$ac_optarg ;;
968 -sharedstatedir | --sharedstatedir | --sharedstatedi \
969 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
970 | --sharedst | --shareds | --shared | --share | --shar \
971 | --sha | --sh)
972 ac_prev=sharedstatedir ;;
973 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
974 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
975 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
976 | --sha=* | --sh=*)
977 sharedstatedir=$ac_optarg ;;
979 -site | --site | --sit)
980 ac_prev=site ;;
981 -site=* | --site=* | --sit=*)
982 site=$ac_optarg ;;
984 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
985 ac_prev=srcdir ;;
986 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
987 srcdir=$ac_optarg ;;
989 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
990 | --syscon | --sysco | --sysc | --sys | --sy)
991 ac_prev=sysconfdir ;;
992 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
993 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
994 sysconfdir=$ac_optarg ;;
996 -target | --target | --targe | --targ | --tar | --ta | --t)
997 ac_prev=target_alias ;;
998 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
999 target_alias=$ac_optarg ;;
1001 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1002 verbose=yes ;;
1004 -version | --version | --versio | --versi | --vers | -V)
1005 ac_init_version=: ;;
1007 -with-* | --with-*)
1008 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1011 { echo "$as_me: error: invalid package name: $ac_package" >&2
1012 { (exit 1); exit 1; }; }
1013 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1014 eval with_$ac_package=\$ac_optarg ;;
1016 -without-* | --without-*)
1017 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020 { echo "$as_me: error: invalid package name: $ac_package" >&2
1021 { (exit 1); exit 1; }; }
1022 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1023 eval with_$ac_package=no ;;
1025 --x)
1026 # Obsolete; use --with-x.
1027 with_x=yes ;;
1029 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1030 | --x-incl | --x-inc | --x-in | --x-i)
1031 ac_prev=x_includes ;;
1032 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1033 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1034 x_includes=$ac_optarg ;;
1036 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1037 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1038 ac_prev=x_libraries ;;
1039 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1040 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1041 x_libraries=$ac_optarg ;;
1043 -*) { echo "$as_me: error: unrecognized option: $ac_option
1044 Try \`$0 --help' for more information." >&2
1045 { (exit 1); exit 1; }; }
1048 *=*)
1049 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1052 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1053 { (exit 1); exit 1; }; }
1054 eval $ac_envvar=\$ac_optarg
1055 export $ac_envvar ;;
1058 # FIXME: should be removed in autoconf 3.0.
1059 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1060 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1061 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1062 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1065 esac
1066 done
1068 if test -n "$ac_prev"; then
1069 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1070 { echo "$as_me: error: missing argument to $ac_option" >&2
1071 { (exit 1); exit 1; }; }
1074 # Be sure to have absolute directory names.
1075 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1076 datadir sysconfdir sharedstatedir localstatedir includedir \
1077 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1078 libdir localedir mandir
1080 eval ac_val=\$$ac_var
1081 case $ac_val in
1082 [\\/$]* | ?:[\\/]* ) continue;;
1083 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1084 esac
1085 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1086 { (exit 1); exit 1; }; }
1087 done
1089 # There might be people who depend on the old broken behavior: `$host'
1090 # used to hold the argument of --host etc.
1091 # FIXME: To remove some day.
1092 build=$build_alias
1093 host=$host_alias
1094 target=$target_alias
1096 # FIXME: To remove some day.
1097 if test "x$host_alias" != x; then
1098 if test "x$build_alias" = x; then
1099 cross_compiling=maybe
1100 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1101 If a cross compiler is detected then cross compile mode will be used." >&2
1102 elif test "x$build_alias" != "x$host_alias"; then
1103 cross_compiling=yes
1107 ac_tool_prefix=
1108 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1110 test "$silent" = yes && exec 6>/dev/null
1113 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1114 ac_ls_di=`ls -di .` &&
1115 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1116 { echo "$as_me: error: Working directory cannot be determined" >&2
1117 { (exit 1); exit 1; }; }
1118 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1119 { echo "$as_me: error: pwd does not report name of working directory" >&2
1120 { (exit 1); exit 1; }; }
1123 # Find the source files, if location was not specified.
1124 if test -z "$srcdir"; then
1125 ac_srcdir_defaulted=yes
1126 # Try the directory containing this script, then the parent directory.
1127 ac_confdir=`$as_dirname -- "$0" ||
1128 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1129 X"$0" : 'X\(//\)[^/]' \| \
1130 X"$0" : 'X\(//\)$' \| \
1131 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1132 echo X"$0" |
1133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1134 s//\1/
1137 /^X\(\/\/\)[^/].*/{
1138 s//\1/
1141 /^X\(\/\/\)$/{
1142 s//\1/
1145 /^X\(\/\).*/{
1146 s//\1/
1149 s/.*/./; q'`
1150 srcdir=$ac_confdir
1151 if test ! -r "$srcdir/$ac_unique_file"; then
1152 srcdir=..
1154 else
1155 ac_srcdir_defaulted=no
1157 if test ! -r "$srcdir/$ac_unique_file"; then
1158 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1159 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1160 { (exit 1); exit 1; }; }
1162 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1163 ac_abs_confdir=`(
1164 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1165 { (exit 1); exit 1; }; }
1166 pwd)`
1167 # When building in place, set srcdir=.
1168 if test "$ac_abs_confdir" = "$ac_pwd"; then
1169 srcdir=.
1171 # Remove unnecessary trailing slashes from srcdir.
1172 # Double slashes in file names in object file debugging info
1173 # mess up M-x gdb in Emacs.
1174 case $srcdir in
1175 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1176 esac
1177 for ac_var in $ac_precious_vars; do
1178 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1179 eval ac_env_${ac_var}_value=\$${ac_var}
1180 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1181 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1182 done
1185 # Report the --help message.
1187 if test "$ac_init_help" = "long"; then
1188 # Omit some internal or obsolete options to make the list less imposing.
1189 # This message is too long to be a string in the A/UX 3.1 sh.
1190 cat <<_ACEOF
1191 \`configure' configures this package to adapt to many kinds of systems.
1193 Usage: $0 [OPTION]... [VAR=VALUE]...
1195 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1196 VAR=VALUE. See below for descriptions of some of the useful variables.
1198 Defaults for the options are specified in brackets.
1200 Configuration:
1201 -h, --help display this help and exit
1202 --help=short display options specific to this package
1203 --help=recursive display the short help of all the included packages
1204 -V, --version display version information and exit
1205 -q, --quiet, --silent do not print \`checking...' messages
1206 --cache-file=FILE cache test results in FILE [disabled]
1207 -C, --config-cache alias for \`--cache-file=config.cache'
1208 -n, --no-create do not create output files
1209 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1211 Installation directories:
1212 --prefix=PREFIX install architecture-independent files in PREFIX
1213 [$ac_default_prefix]
1214 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1215 [PREFIX]
1217 By default, \`make install' will install all the files in
1218 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1219 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1220 for instance \`--prefix=\$HOME'.
1222 For better control, use the options below.
1224 Fine tuning of the installation directories:
1225 --bindir=DIR user executables [EPREFIX/bin]
1226 --sbindir=DIR system admin executables [EPREFIX/sbin]
1227 --libexecdir=DIR program executables [EPREFIX/libexec]
1228 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1229 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1230 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1231 --libdir=DIR object code libraries [EPREFIX/lib]
1232 --includedir=DIR C header files [PREFIX/include]
1233 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1234 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1235 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1236 --infodir=DIR info documentation [DATAROOTDIR/info]
1237 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1238 --mandir=DIR man documentation [DATAROOTDIR/man]
1239 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1240 --htmldir=DIR html documentation [DOCDIR]
1241 --dvidir=DIR dvi documentation [DOCDIR]
1242 --pdfdir=DIR pdf documentation [DOCDIR]
1243 --psdir=DIR ps documentation [DOCDIR]
1244 _ACEOF
1246 cat <<\_ACEOF
1248 System types:
1249 --build=BUILD configure for building on BUILD [guessed]
1250 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1251 _ACEOF
1254 if test -n "$ac_init_help"; then
1256 cat <<\_ACEOF
1258 Optional Features:
1259 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1260 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1261 --disable-largefile omit support for large files
1262 --disable-zlib Don't include zlib support
1263 --enable-pam Try to include PAM support
1264 --disable-openpty Don't use openpty, use alternative method
1265 --disable-syslog Don't include syslog support
1266 --disable-shadow Don't use shadow passwords (if available)
1267 --disable-lastlog Disable use of lastlog even if detected no
1268 --disable-utmp Disable use of utmp even if detected no
1269 --disable-utmpx Disable use of utmpx even if detected no
1270 --disable-wtmp Disable use of wtmp even if detected no
1271 --disable-wtmpx Disable use of wtmpx even if detected no
1272 --disable-loginfunc Disable use of login() etc. no
1273 --disable-pututline Disable use of pututline() etc. (uwtmp) no
1274 --disable-pututxline Disable use of pututxline() etc. (uwtmpx) no
1276 Optional Packages:
1277 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1278 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1279 --with-zlib=PATH Use zlib in PATH
1280 --with-pam=PATH Use pam in PATH
1281 --with-lastlog=FILE|DIR specify lastlog location common locations
1283 Some influential environment variables:
1284 CC C compiler command
1285 CFLAGS C compiler flags
1286 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1287 nonstandard directory <lib dir>
1288 LIBS libraries to pass to the linker, e.g. -l<library>
1289 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1290 you have headers in a nonstandard directory <include dir>
1291 CPP C preprocessor
1293 Use these variables to override the choices made by `configure' or to help
1294 it to find libraries and programs with nonstandard names/locations.
1296 _ACEOF
1297 ac_status=$?
1300 if test "$ac_init_help" = "recursive"; then
1301 # If there are subdirs, report their specific --help.
1302 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1303 test -d "$ac_dir" || continue
1304 ac_builddir=.
1306 case "$ac_dir" in
1307 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1309 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1310 # A ".." for each directory in $ac_dir_suffix.
1311 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1312 case $ac_top_builddir_sub in
1313 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1314 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1315 esac ;;
1316 esac
1317 ac_abs_top_builddir=$ac_pwd
1318 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1319 # for backward compatibility:
1320 ac_top_builddir=$ac_top_build_prefix
1322 case $srcdir in
1323 .) # We are building in place.
1324 ac_srcdir=.
1325 ac_top_srcdir=$ac_top_builddir_sub
1326 ac_abs_top_srcdir=$ac_pwd ;;
1327 [\\/]* | ?:[\\/]* ) # Absolute name.
1328 ac_srcdir=$srcdir$ac_dir_suffix;
1329 ac_top_srcdir=$srcdir
1330 ac_abs_top_srcdir=$srcdir ;;
1331 *) # Relative name.
1332 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1333 ac_top_srcdir=$ac_top_build_prefix$srcdir
1334 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1335 esac
1336 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1338 cd "$ac_dir" || { ac_status=$?; continue; }
1339 # Check for guested configure.
1340 if test -f "$ac_srcdir/configure.gnu"; then
1341 echo &&
1342 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1343 elif test -f "$ac_srcdir/configure"; then
1344 echo &&
1345 $SHELL "$ac_srcdir/configure" --help=recursive
1346 else
1347 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1348 fi || ac_status=$?
1349 cd "$ac_pwd" || { ac_status=$?; break; }
1350 done
1353 test -n "$ac_init_help" && exit $ac_status
1354 if $ac_init_version; then
1355 cat <<\_ACEOF
1356 configure
1357 generated by GNU Autoconf 2.61
1359 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1360 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1361 This configure script is free software; the Free Software Foundation
1362 gives unlimited permission to copy, distribute and modify it.
1363 _ACEOF
1364 exit
1366 cat >config.log <<_ACEOF
1367 This file contains any messages produced by compilers while
1368 running configure, to aid debugging if configure makes a mistake.
1370 It was created by $as_me, which was
1371 generated by GNU Autoconf 2.61. Invocation command line was
1373 $ $0 $@
1375 _ACEOF
1376 exec 5>>config.log
1378 cat <<_ASUNAME
1379 ## --------- ##
1380 ## Platform. ##
1381 ## --------- ##
1383 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1384 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1385 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1386 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1387 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1389 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1390 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1392 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1393 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1394 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1395 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1396 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1397 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1398 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1400 _ASUNAME
1402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1403 for as_dir in $PATH
1405 IFS=$as_save_IFS
1406 test -z "$as_dir" && as_dir=.
1407 echo "PATH: $as_dir"
1408 done
1409 IFS=$as_save_IFS
1411 } >&5
1413 cat >&5 <<_ACEOF
1416 ## ----------- ##
1417 ## Core tests. ##
1418 ## ----------- ##
1420 _ACEOF
1423 # Keep a trace of the command line.
1424 # Strip out --no-create and --no-recursion so they do not pile up.
1425 # Strip out --silent because we don't want to record it for future runs.
1426 # Also quote any args containing shell meta-characters.
1427 # Make two passes to allow for proper duplicate-argument suppression.
1428 ac_configure_args=
1429 ac_configure_args0=
1430 ac_configure_args1=
1431 ac_must_keep_next=false
1432 for ac_pass in 1 2
1434 for ac_arg
1436 case $ac_arg in
1437 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1439 | -silent | --silent | --silen | --sile | --sil)
1440 continue ;;
1441 *\'*)
1442 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1443 esac
1444 case $ac_pass in
1445 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1447 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1448 if test $ac_must_keep_next = true; then
1449 ac_must_keep_next=false # Got value, back to normal.
1450 else
1451 case $ac_arg in
1452 *=* | --config-cache | -C | -disable-* | --disable-* \
1453 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1454 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1455 | -with-* | --with-* | -without-* | --without-* | --x)
1456 case "$ac_configure_args0 " in
1457 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1458 esac
1460 -* ) ac_must_keep_next=true ;;
1461 esac
1463 ac_configure_args="$ac_configure_args '$ac_arg'"
1465 esac
1466 done
1467 done
1468 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1469 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1471 # When interrupted or exit'd, cleanup temporary files, and complete
1472 # config.log. We remove comments because anyway the quotes in there
1473 # would cause problems or look ugly.
1474 # WARNING: Use '\'' to represent an apostrophe within the trap.
1475 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1476 trap 'exit_status=$?
1477 # Save into config.log some information that might help in debugging.
1479 echo
1481 cat <<\_ASBOX
1482 ## ---------------- ##
1483 ## Cache variables. ##
1484 ## ---------------- ##
1485 _ASBOX
1486 echo
1487 # The following way of writing the cache mishandles newlines in values,
1489 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1490 eval ac_val=\$$ac_var
1491 case $ac_val in #(
1492 *${as_nl}*)
1493 case $ac_var in #(
1494 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1495 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1496 esac
1497 case $ac_var in #(
1498 _ | IFS | as_nl) ;; #(
1499 *) $as_unset $ac_var ;;
1500 esac ;;
1501 esac
1502 done
1503 (set) 2>&1 |
1504 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1505 *${as_nl}ac_space=\ *)
1506 sed -n \
1507 "s/'\''/'\''\\\\'\'''\''/g;
1508 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1509 ;; #(
1511 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1513 esac |
1514 sort
1516 echo
1518 cat <<\_ASBOX
1519 ## ----------------- ##
1520 ## Output variables. ##
1521 ## ----------------- ##
1522 _ASBOX
1523 echo
1524 for ac_var in $ac_subst_vars
1526 eval ac_val=\$$ac_var
1527 case $ac_val in
1528 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1529 esac
1530 echo "$ac_var='\''$ac_val'\''"
1531 done | sort
1532 echo
1534 if test -n "$ac_subst_files"; then
1535 cat <<\_ASBOX
1536 ## ------------------- ##
1537 ## File substitutions. ##
1538 ## ------------------- ##
1539 _ASBOX
1540 echo
1541 for ac_var in $ac_subst_files
1543 eval ac_val=\$$ac_var
1544 case $ac_val in
1545 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1546 esac
1547 echo "$ac_var='\''$ac_val'\''"
1548 done | sort
1549 echo
1552 if test -s confdefs.h; then
1553 cat <<\_ASBOX
1554 ## ----------- ##
1555 ## confdefs.h. ##
1556 ## ----------- ##
1557 _ASBOX
1558 echo
1559 cat confdefs.h
1560 echo
1562 test "$ac_signal" != 0 &&
1563 echo "$as_me: caught signal $ac_signal"
1564 echo "$as_me: exit $exit_status"
1565 } >&5
1566 rm -f core *.core core.conftest.* &&
1567 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1568 exit $exit_status
1570 for ac_signal in 1 2 13 15; do
1571 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1572 done
1573 ac_signal=0
1575 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1576 rm -f -r conftest* confdefs.h
1578 # Predefined preprocessor variables.
1580 cat >>confdefs.h <<_ACEOF
1581 #define PACKAGE_NAME "$PACKAGE_NAME"
1582 _ACEOF
1585 cat >>confdefs.h <<_ACEOF
1586 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1587 _ACEOF
1590 cat >>confdefs.h <<_ACEOF
1591 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1592 _ACEOF
1595 cat >>confdefs.h <<_ACEOF
1596 #define PACKAGE_STRING "$PACKAGE_STRING"
1597 _ACEOF
1600 cat >>confdefs.h <<_ACEOF
1601 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1602 _ACEOF
1605 # Let the site file select an alternate cache file if it wants to.
1606 # Prefer explicitly selected file to automatically selected ones.
1607 if test -n "$CONFIG_SITE"; then
1608 set x "$CONFIG_SITE"
1609 elif test "x$prefix" != xNONE; then
1610 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1611 else
1612 set x "$ac_default_prefix/share/config.site" \
1613 "$ac_default_prefix/etc/config.site"
1615 shift
1616 for ac_site_file
1618 if test -r "$ac_site_file"; then
1619 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1620 echo "$as_me: loading site script $ac_site_file" >&6;}
1621 sed 's/^/| /' "$ac_site_file" >&5
1622 . "$ac_site_file"
1624 done
1626 if test -r "$cache_file"; then
1627 # Some versions of bash will fail to source /dev/null (special
1628 # files actually), so we avoid doing that.
1629 if test -f "$cache_file"; then
1630 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1631 echo "$as_me: loading cache $cache_file" >&6;}
1632 case $cache_file in
1633 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1634 *) . "./$cache_file";;
1635 esac
1637 else
1638 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1639 echo "$as_me: creating cache $cache_file" >&6;}
1640 >$cache_file
1643 # Check that the precious variables saved in the cache have kept the same
1644 # value.
1645 ac_cache_corrupted=false
1646 for ac_var in $ac_precious_vars; do
1647 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1648 eval ac_new_set=\$ac_env_${ac_var}_set
1649 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1650 eval ac_new_val=\$ac_env_${ac_var}_value
1651 case $ac_old_set,$ac_new_set in
1652 set,)
1653 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1654 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1655 ac_cache_corrupted=: ;;
1656 ,set)
1657 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1658 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1659 ac_cache_corrupted=: ;;
1660 ,);;
1662 if test "x$ac_old_val" != "x$ac_new_val"; then
1663 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1664 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1665 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1666 echo "$as_me: former value: $ac_old_val" >&2;}
1667 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1668 echo "$as_me: current value: $ac_new_val" >&2;}
1669 ac_cache_corrupted=:
1670 fi;;
1671 esac
1672 # Pass precious variables to config.status.
1673 if test "$ac_new_set" = set; then
1674 case $ac_new_val in
1675 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1676 *) ac_arg=$ac_var=$ac_new_val ;;
1677 esac
1678 case " $ac_configure_args " in
1679 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1680 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1681 esac
1683 done
1684 if $ac_cache_corrupted; then
1685 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1686 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1687 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1688 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1689 { (exit 1); exit 1; }; }
1708 ac_ext=c
1709 ac_cpp='$CPP $CPPFLAGS'
1710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1716 OLDCFLAGS=$CFLAGS
1717 # Checks for programs.
1718 ac_ext=c
1719 ac_cpp='$CPP $CPPFLAGS'
1720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1723 if test -n "$ac_tool_prefix"; then
1724 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1725 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1728 if test "${ac_cv_prog_CC+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1730 else
1731 if test -n "$CC"; then
1732 ac_cv_prog_CC="$CC" # Let the user override the test.
1733 else
1734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735 for as_dir in $PATH
1737 IFS=$as_save_IFS
1738 test -z "$as_dir" && as_dir=.
1739 for ac_exec_ext in '' $ac_executable_extensions; do
1740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1741 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1743 break 2
1745 done
1746 done
1747 IFS=$as_save_IFS
1751 CC=$ac_cv_prog_CC
1752 if test -n "$CC"; then
1753 { echo "$as_me:$LINENO: result: $CC" >&5
1754 echo "${ECHO_T}$CC" >&6; }
1755 else
1756 { echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6; }
1762 if test -z "$ac_cv_prog_CC"; then
1763 ac_ct_CC=$CC
1764 # Extract the first word of "gcc", so it can be a program name with args.
1765 set dummy gcc; ac_word=$2
1766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1768 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771 if test -n "$ac_ct_CC"; then
1772 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1773 else
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 for as_dir in $PATH
1777 IFS=$as_save_IFS
1778 test -z "$as_dir" && as_dir=.
1779 for ac_exec_ext in '' $ac_executable_extensions; do
1780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1781 ac_cv_prog_ac_ct_CC="gcc"
1782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783 break 2
1785 done
1786 done
1787 IFS=$as_save_IFS
1791 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1792 if test -n "$ac_ct_CC"; then
1793 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1794 echo "${ECHO_T}$ac_ct_CC" >&6; }
1795 else
1796 { echo "$as_me:$LINENO: result: no" >&5
1797 echo "${ECHO_T}no" >&6; }
1800 if test "x$ac_ct_CC" = x; then
1801 CC=""
1802 else
1803 case $cross_compiling:$ac_tool_warned in
1804 yes:)
1805 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1806 whose name does not start with the host triplet. If you think this
1807 configuration is useful to you, please write to autoconf@gnu.org." >&5
1808 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1809 whose name does not start with the host triplet. If you think this
1810 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1811 ac_tool_warned=yes ;;
1812 esac
1813 CC=$ac_ct_CC
1815 else
1816 CC="$ac_cv_prog_CC"
1819 if test -z "$CC"; then
1820 if test -n "$ac_tool_prefix"; then
1821 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1822 set dummy ${ac_tool_prefix}cc; ac_word=$2
1823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1825 if test "${ac_cv_prog_CC+set}" = set; then
1826 echo $ECHO_N "(cached) $ECHO_C" >&6
1827 else
1828 if test -n "$CC"; then
1829 ac_cv_prog_CC="$CC" # Let the user override the test.
1830 else
1831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832 for as_dir in $PATH
1834 IFS=$as_save_IFS
1835 test -z "$as_dir" && as_dir=.
1836 for ac_exec_ext in '' $ac_executable_extensions; do
1837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1838 ac_cv_prog_CC="${ac_tool_prefix}cc"
1839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840 break 2
1842 done
1843 done
1844 IFS=$as_save_IFS
1848 CC=$ac_cv_prog_CC
1849 if test -n "$CC"; then
1850 { echo "$as_me:$LINENO: result: $CC" >&5
1851 echo "${ECHO_T}$CC" >&6; }
1852 else
1853 { echo "$as_me:$LINENO: result: no" >&5
1854 echo "${ECHO_T}no" >&6; }
1860 if test -z "$CC"; then
1861 # Extract the first word of "cc", so it can be a program name with args.
1862 set dummy cc; ac_word=$2
1863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1865 if test "${ac_cv_prog_CC+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1867 else
1868 if test -n "$CC"; then
1869 ac_cv_prog_CC="$CC" # Let the user override the test.
1870 else
1871 ac_prog_rejected=no
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 for as_dir in $PATH
1875 IFS=$as_save_IFS
1876 test -z "$as_dir" && as_dir=.
1877 for ac_exec_ext in '' $ac_executable_extensions; do
1878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1879 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1880 ac_prog_rejected=yes
1881 continue
1883 ac_cv_prog_CC="cc"
1884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885 break 2
1887 done
1888 done
1889 IFS=$as_save_IFS
1891 if test $ac_prog_rejected = yes; then
1892 # We found a bogon in the path, so make sure we never use it.
1893 set dummy $ac_cv_prog_CC
1894 shift
1895 if test $# != 0; then
1896 # We chose a different compiler from the bogus one.
1897 # However, it has the same basename, so the bogon will be chosen
1898 # first if we set CC to just the basename; use the full file name.
1899 shift
1900 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1905 CC=$ac_cv_prog_CC
1906 if test -n "$CC"; then
1907 { echo "$as_me:$LINENO: result: $CC" >&5
1908 echo "${ECHO_T}$CC" >&6; }
1909 else
1910 { echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6; }
1916 if test -z "$CC"; then
1917 if test -n "$ac_tool_prefix"; then
1918 for ac_prog in cl.exe
1920 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1921 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1924 if test "${ac_cv_prog_CC+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 else
1927 if test -n "$CC"; then
1928 ac_cv_prog_CC="$CC" # Let the user override the test.
1929 else
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 for as_dir in $PATH
1933 IFS=$as_save_IFS
1934 test -z "$as_dir" && as_dir=.
1935 for ac_exec_ext in '' $ac_executable_extensions; do
1936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1937 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939 break 2
1941 done
1942 done
1943 IFS=$as_save_IFS
1947 CC=$ac_cv_prog_CC
1948 if test -n "$CC"; then
1949 { echo "$as_me:$LINENO: result: $CC" >&5
1950 echo "${ECHO_T}$CC" >&6; }
1951 else
1952 { echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6; }
1957 test -n "$CC" && break
1958 done
1960 if test -z "$CC"; then
1961 ac_ct_CC=$CC
1962 for ac_prog in cl.exe
1964 # Extract the first word of "$ac_prog", so it can be a program name with args.
1965 set dummy $ac_prog; ac_word=$2
1966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1968 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 else
1971 if test -n "$ac_ct_CC"; then
1972 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1973 else
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1977 IFS=$as_save_IFS
1978 test -z "$as_dir" && as_dir=.
1979 for ac_exec_ext in '' $ac_executable_extensions; do
1980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1981 ac_cv_prog_ac_ct_CC="$ac_prog"
1982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983 break 2
1985 done
1986 done
1987 IFS=$as_save_IFS
1991 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1992 if test -n "$ac_ct_CC"; then
1993 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1994 echo "${ECHO_T}$ac_ct_CC" >&6; }
1995 else
1996 { echo "$as_me:$LINENO: result: no" >&5
1997 echo "${ECHO_T}no" >&6; }
2001 test -n "$ac_ct_CC" && break
2002 done
2004 if test "x$ac_ct_CC" = x; then
2005 CC=""
2006 else
2007 case $cross_compiling:$ac_tool_warned in
2008 yes:)
2009 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2010 whose name does not start with the host triplet. If you think this
2011 configuration is useful to you, please write to autoconf@gnu.org." >&5
2012 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2013 whose name does not start with the host triplet. If you think this
2014 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2015 ac_tool_warned=yes ;;
2016 esac
2017 CC=$ac_ct_CC
2024 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2025 See \`config.log' for more details." >&5
2026 echo "$as_me: error: no acceptable C compiler found in \$PATH
2027 See \`config.log' for more details." >&2;}
2028 { (exit 1); exit 1; }; }
2030 # Provide some information about the compiler.
2031 echo "$as_me:$LINENO: checking for C compiler version" >&5
2032 ac_compiler=`set X $ac_compile; echo $2`
2033 { (ac_try="$ac_compiler --version >&5"
2034 case "(($ac_try" in
2035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2036 *) ac_try_echo=$ac_try;;
2037 esac
2038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2039 (eval "$ac_compiler --version >&5") 2>&5
2040 ac_status=$?
2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042 (exit $ac_status); }
2043 { (ac_try="$ac_compiler -v >&5"
2044 case "(($ac_try" in
2045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2046 *) ac_try_echo=$ac_try;;
2047 esac
2048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2049 (eval "$ac_compiler -v >&5") 2>&5
2050 ac_status=$?
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }
2053 { (ac_try="$ac_compiler -V >&5"
2054 case "(($ac_try" in
2055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2056 *) ac_try_echo=$ac_try;;
2057 esac
2058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2059 (eval "$ac_compiler -V >&5") 2>&5
2060 ac_status=$?
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }
2064 cat >conftest.$ac_ext <<_ACEOF
2065 /* confdefs.h. */
2066 _ACEOF
2067 cat confdefs.h >>conftest.$ac_ext
2068 cat >>conftest.$ac_ext <<_ACEOF
2069 /* end confdefs.h. */
2072 main ()
2076 return 0;
2078 _ACEOF
2079 ac_clean_files_save=$ac_clean_files
2080 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2081 # Try to create an executable without -o first, disregard a.out.
2082 # It will help us diagnose broken compilers, and finding out an intuition
2083 # of exeext.
2084 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2085 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2086 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2088 # List of possible output files, starting from the most likely.
2089 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2090 # only as a last resort. b.out is created by i960 compilers.
2091 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2093 # The IRIX 6 linker writes into existing files which may not be
2094 # executable, retaining their permissions. Remove them first so a
2095 # subsequent execution test works.
2096 ac_rmfiles=
2097 for ac_file in $ac_files
2099 case $ac_file in
2100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2101 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2102 esac
2103 done
2104 rm -f $ac_rmfiles
2106 if { (ac_try="$ac_link_default"
2107 case "(($ac_try" in
2108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2109 *) ac_try_echo=$ac_try;;
2110 esac
2111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2112 (eval "$ac_link_default") 2>&5
2113 ac_status=$?
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; then
2116 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2117 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2118 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2119 # so that the user can short-circuit this test for compilers unknown to
2120 # Autoconf.
2121 for ac_file in $ac_files ''
2123 test -f "$ac_file" || continue
2124 case $ac_file in
2125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2127 [ab].out )
2128 # We found the default executable, but exeext='' is most
2129 # certainly right.
2130 break;;
2131 *.* )
2132 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2133 then :; else
2134 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2136 # We set ac_cv_exeext here because the later test for it is not
2137 # safe: cross compilers may not add the suffix if given an `-o'
2138 # argument, so we may need to know it at that point already.
2139 # Even if this section looks crufty: it has the advantage of
2140 # actually working.
2141 break;;
2143 break;;
2144 esac
2145 done
2146 test "$ac_cv_exeext" = no && ac_cv_exeext=
2148 else
2149 ac_file=''
2152 { echo "$as_me:$LINENO: result: $ac_file" >&5
2153 echo "${ECHO_T}$ac_file" >&6; }
2154 if test -z "$ac_file"; then
2155 echo "$as_me: failed program was:" >&5
2156 sed 's/^/| /' conftest.$ac_ext >&5
2158 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2159 See \`config.log' for more details." >&5
2160 echo "$as_me: error: C compiler cannot create executables
2161 See \`config.log' for more details." >&2;}
2162 { (exit 77); exit 77; }; }
2165 ac_exeext=$ac_cv_exeext
2167 # Check that the compiler produces executables we can run. If not, either
2168 # the compiler is broken, or we cross compile.
2169 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2170 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2171 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2172 # If not cross compiling, check that we can run a simple program.
2173 if test "$cross_compiling" != yes; then
2174 if { ac_try='./$ac_file'
2175 { (case "(($ac_try" in
2176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2177 *) ac_try_echo=$ac_try;;
2178 esac
2179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2180 (eval "$ac_try") 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; }; then
2184 cross_compiling=no
2185 else
2186 if test "$cross_compiling" = maybe; then
2187 cross_compiling=yes
2188 else
2189 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2190 If you meant to cross compile, use \`--host'.
2191 See \`config.log' for more details." >&5
2192 echo "$as_me: error: cannot run C compiled programs.
2193 If you meant to cross compile, use \`--host'.
2194 See \`config.log' for more details." >&2;}
2195 { (exit 1); exit 1; }; }
2199 { echo "$as_me:$LINENO: result: yes" >&5
2200 echo "${ECHO_T}yes" >&6; }
2202 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2203 ac_clean_files=$ac_clean_files_save
2204 # Check that the compiler produces executables we can run. If not, either
2205 # the compiler is broken, or we cross compile.
2206 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2207 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2208 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2209 echo "${ECHO_T}$cross_compiling" >&6; }
2211 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2212 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2213 if { (ac_try="$ac_link"
2214 case "(($ac_try" in
2215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216 *) ac_try_echo=$ac_try;;
2217 esac
2218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2219 (eval "$ac_link") 2>&5
2220 ac_status=$?
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; then
2223 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2224 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2225 # work properly (i.e., refer to `conftest.exe'), while it won't with
2226 # `rm'.
2227 for ac_file in conftest.exe conftest conftest.*; do
2228 test -f "$ac_file" || continue
2229 case $ac_file in
2230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2231 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2232 break;;
2233 * ) break;;
2234 esac
2235 done
2236 else
2237 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2238 See \`config.log' for more details." >&5
2239 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2240 See \`config.log' for more details." >&2;}
2241 { (exit 1); exit 1; }; }
2244 rm -f conftest$ac_cv_exeext
2245 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2246 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2248 rm -f conftest.$ac_ext
2249 EXEEXT=$ac_cv_exeext
2250 ac_exeext=$EXEEXT
2251 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2252 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2253 if test "${ac_cv_objext+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256 cat >conftest.$ac_ext <<_ACEOF
2257 /* confdefs.h. */
2258 _ACEOF
2259 cat confdefs.h >>conftest.$ac_ext
2260 cat >>conftest.$ac_ext <<_ACEOF
2261 /* end confdefs.h. */
2264 main ()
2268 return 0;
2270 _ACEOF
2271 rm -f conftest.o conftest.obj
2272 if { (ac_try="$ac_compile"
2273 case "(($ac_try" in
2274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2275 *) ac_try_echo=$ac_try;;
2276 esac
2277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2278 (eval "$ac_compile") 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; then
2282 for ac_file in conftest.o conftest.obj conftest.*; do
2283 test -f "$ac_file" || continue;
2284 case $ac_file in
2285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2286 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2287 break;;
2288 esac
2289 done
2290 else
2291 echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2294 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2295 See \`config.log' for more details." >&5
2296 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2297 See \`config.log' for more details." >&2;}
2298 { (exit 1); exit 1; }; }
2301 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2303 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2304 echo "${ECHO_T}$ac_cv_objext" >&6; }
2305 OBJEXT=$ac_cv_objext
2306 ac_objext=$OBJEXT
2307 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2308 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2309 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 else
2312 cat >conftest.$ac_ext <<_ACEOF
2313 /* confdefs.h. */
2314 _ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2320 main ()
2322 #ifndef __GNUC__
2323 choke me
2324 #endif
2327 return 0;
2329 _ACEOF
2330 rm -f conftest.$ac_objext
2331 if { (ac_try="$ac_compile"
2332 case "(($ac_try" in
2333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334 *) ac_try_echo=$ac_try;;
2335 esac
2336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2337 (eval "$ac_compile") 2>conftest.er1
2338 ac_status=$?
2339 grep -v '^ *+' conftest.er1 >conftest.err
2340 rm -f conftest.er1
2341 cat conftest.err >&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); } && {
2344 test -z "$ac_c_werror_flag" ||
2345 test ! -s conftest.err
2346 } && test -s conftest.$ac_objext; then
2347 ac_compiler_gnu=yes
2348 else
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2352 ac_compiler_gnu=no
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2359 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2360 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2361 GCC=`test $ac_compiler_gnu = yes && echo yes`
2362 ac_test_CFLAGS=${CFLAGS+set}
2363 ac_save_CFLAGS=$CFLAGS
2364 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2365 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2366 if test "${ac_cv_prog_cc_g+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369 ac_save_c_werror_flag=$ac_c_werror_flag
2370 ac_c_werror_flag=yes
2371 ac_cv_prog_cc_g=no
2372 CFLAGS="-g"
2373 cat >conftest.$ac_ext <<_ACEOF
2374 /* confdefs.h. */
2375 _ACEOF
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h. */
2381 main ()
2385 return 0;
2387 _ACEOF
2388 rm -f conftest.$ac_objext
2389 if { (ac_try="$ac_compile"
2390 case "(($ac_try" in
2391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392 *) ac_try_echo=$ac_try;;
2393 esac
2394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2395 (eval "$ac_compile") 2>conftest.er1
2396 ac_status=$?
2397 grep -v '^ *+' conftest.er1 >conftest.err
2398 rm -f conftest.er1
2399 cat conftest.err >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } && {
2402 test -z "$ac_c_werror_flag" ||
2403 test ! -s conftest.err
2404 } && test -s conftest.$ac_objext; then
2405 ac_cv_prog_cc_g=yes
2406 else
2407 echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2410 CFLAGS=""
2411 cat >conftest.$ac_ext <<_ACEOF
2412 /* confdefs.h. */
2413 _ACEOF
2414 cat confdefs.h >>conftest.$ac_ext
2415 cat >>conftest.$ac_ext <<_ACEOF
2416 /* end confdefs.h. */
2419 main ()
2423 return 0;
2425 _ACEOF
2426 rm -f conftest.$ac_objext
2427 if { (ac_try="$ac_compile"
2428 case "(($ac_try" in
2429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430 *) ac_try_echo=$ac_try;;
2431 esac
2432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2433 (eval "$ac_compile") 2>conftest.er1
2434 ac_status=$?
2435 grep -v '^ *+' conftest.er1 >conftest.err
2436 rm -f conftest.er1
2437 cat conftest.err >&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); } && {
2440 test -z "$ac_c_werror_flag" ||
2441 test ! -s conftest.err
2442 } && test -s conftest.$ac_objext; then
2444 else
2445 echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2448 ac_c_werror_flag=$ac_save_c_werror_flag
2449 CFLAGS="-g"
2450 cat >conftest.$ac_ext <<_ACEOF
2451 /* confdefs.h. */
2452 _ACEOF
2453 cat confdefs.h >>conftest.$ac_ext
2454 cat >>conftest.$ac_ext <<_ACEOF
2455 /* end confdefs.h. */
2458 main ()
2462 return 0;
2464 _ACEOF
2465 rm -f conftest.$ac_objext
2466 if { (ac_try="$ac_compile"
2467 case "(($ac_try" in
2468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469 *) ac_try_echo=$ac_try;;
2470 esac
2471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2472 (eval "$ac_compile") 2>conftest.er1
2473 ac_status=$?
2474 grep -v '^ *+' conftest.er1 >conftest.err
2475 rm -f conftest.er1
2476 cat conftest.err >&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); } && {
2479 test -z "$ac_c_werror_flag" ||
2480 test ! -s conftest.err
2481 } && test -s conftest.$ac_objext; then
2482 ac_cv_prog_cc_g=yes
2483 else
2484 echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2497 ac_c_werror_flag=$ac_save_c_werror_flag
2499 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2500 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2501 if test "$ac_test_CFLAGS" = set; then
2502 CFLAGS=$ac_save_CFLAGS
2503 elif test $ac_cv_prog_cc_g = yes; then
2504 if test "$GCC" = yes; then
2505 CFLAGS="-g -O2"
2506 else
2507 CFLAGS="-g"
2509 else
2510 if test "$GCC" = yes; then
2511 CFLAGS="-O2"
2512 else
2513 CFLAGS=
2516 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2517 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2518 if test "${ac_cv_prog_cc_c89+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 else
2521 ac_cv_prog_cc_c89=no
2522 ac_save_CC=$CC
2523 cat >conftest.$ac_ext <<_ACEOF
2524 /* confdefs.h. */
2525 _ACEOF
2526 cat confdefs.h >>conftest.$ac_ext
2527 cat >>conftest.$ac_ext <<_ACEOF
2528 /* end confdefs.h. */
2529 #include <stdarg.h>
2530 #include <stdio.h>
2531 #include <sys/types.h>
2532 #include <sys/stat.h>
2533 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2534 struct buf { int x; };
2535 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2536 static char *e (p, i)
2537 char **p;
2538 int i;
2540 return p[i];
2542 static char *f (char * (*g) (char **, int), char **p, ...)
2544 char *s;
2545 va_list v;
2546 va_start (v,p);
2547 s = g (p, va_arg (v,int));
2548 va_end (v);
2549 return s;
2552 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2553 function prototypes and stuff, but not '\xHH' hex character constants.
2554 These don't provoke an error unfortunately, instead are silently treated
2555 as 'x'. The following induces an error, until -std is added to get
2556 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2557 array size at least. It's necessary to write '\x00'==0 to get something
2558 that's true only with -std. */
2559 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2561 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2562 inside strings and character constants. */
2563 #define FOO(x) 'x'
2564 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2566 int test (int i, double x);
2567 struct s1 {int (*f) (int a);};
2568 struct s2 {int (*f) (double a);};
2569 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2570 int argc;
2571 char **argv;
2573 main ()
2575 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2577 return 0;
2579 _ACEOF
2580 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2581 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2583 CC="$ac_save_CC $ac_arg"
2584 rm -f conftest.$ac_objext
2585 if { (ac_try="$ac_compile"
2586 case "(($ac_try" in
2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588 *) ac_try_echo=$ac_try;;
2589 esac
2590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591 (eval "$ac_compile") 2>conftest.er1
2592 ac_status=$?
2593 grep -v '^ *+' conftest.er1 >conftest.err
2594 rm -f conftest.er1
2595 cat conftest.err >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); } && {
2598 test -z "$ac_c_werror_flag" ||
2599 test ! -s conftest.err
2600 } && test -s conftest.$ac_objext; then
2601 ac_cv_prog_cc_c89=$ac_arg
2602 else
2603 echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2609 rm -f core conftest.err conftest.$ac_objext
2610 test "x$ac_cv_prog_cc_c89" != "xno" && break
2611 done
2612 rm -f conftest.$ac_ext
2613 CC=$ac_save_CC
2616 # AC_CACHE_VAL
2617 case "x$ac_cv_prog_cc_c89" in
2619 { echo "$as_me:$LINENO: result: none needed" >&5
2620 echo "${ECHO_T}none needed" >&6; } ;;
2621 xno)
2622 { echo "$as_me:$LINENO: result: unsupported" >&5
2623 echo "${ECHO_T}unsupported" >&6; } ;;
2625 CC="$CC $ac_cv_prog_cc_c89"
2626 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2627 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2628 esac
2631 ac_ext=c
2632 ac_cpp='$CPP $CPPFLAGS'
2633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2637 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2638 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2639 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2640 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 else
2643 cat >conftest.make <<\_ACEOF
2644 SHELL = /bin/sh
2645 all:
2646 @echo '@@@%%%=$(MAKE)=@@@%%%'
2647 _ACEOF
2648 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2649 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2650 *@@@%%%=?*=@@@%%%*)
2651 eval ac_cv_prog_make_${ac_make}_set=yes;;
2653 eval ac_cv_prog_make_${ac_make}_set=no;;
2654 esac
2655 rm -f conftest.make
2657 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2658 { echo "$as_me:$LINENO: result: yes" >&5
2659 echo "${ECHO_T}yes" >&6; }
2660 SET_MAKE=
2661 else
2662 { echo "$as_me:$LINENO: result: no" >&5
2663 echo "${ECHO_T}no" >&6; }
2664 SET_MAKE="MAKE=${MAKE-make}"
2668 if test -z "$LD" ; then
2669 LD=$CC
2673 if test -z "$OLDCFLAGS" && test "$GCC" = "yes"; then
2674 { echo "$as_me:$LINENO: No \$CFLAGS set... using \"-Os -W -Wall\" for GCC" >&5
2675 echo "$as_me: No \$CFLAGS set... using \"-Os -W -Wall\" for GCC" >&6;}
2676 CFLAGS="-Os -W -Wall"
2679 # large file support is useful for scp
2681 # Check whether --enable-largefile was given.
2682 if test "${enable_largefile+set}" = set; then
2683 enableval=$enable_largefile;
2686 if test "$enable_largefile" != no; then
2688 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2689 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
2690 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2692 else
2693 ac_cv_sys_largefile_CC=no
2694 if test "$GCC" != yes; then
2695 ac_save_CC=$CC
2696 while :; do
2697 # IRIX 6.2 and later do not support large files by default,
2698 # so use the C compiler's -n32 option if that helps.
2699 cat >conftest.$ac_ext <<_ACEOF
2700 /* confdefs.h. */
2701 _ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h. */
2705 #include <sys/types.h>
2706 /* Check that off_t can represent 2**63 - 1 correctly.
2707 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2708 since some C++ compilers masquerading as C compilers
2709 incorrectly reject 9223372036854775807. */
2710 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2711 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2712 && LARGE_OFF_T % 2147483647 == 1)
2713 ? 1 : -1];
2715 main ()
2719 return 0;
2721 _ACEOF
2722 rm -f conftest.$ac_objext
2723 if { (ac_try="$ac_compile"
2724 case "(($ac_try" in
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2727 esac
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_compile") 2>conftest.er1
2730 ac_status=$?
2731 grep -v '^ *+' conftest.er1 >conftest.err
2732 rm -f conftest.er1
2733 cat conftest.err >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } && {
2736 test -z "$ac_c_werror_flag" ||
2737 test ! -s conftest.err
2738 } && test -s conftest.$ac_objext; then
2739 break
2740 else
2741 echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.$ac_ext >&5
2747 rm -f core conftest.err conftest.$ac_objext
2748 CC="$CC -n32"
2749 rm -f conftest.$ac_objext
2750 if { (ac_try="$ac_compile"
2751 case "(($ac_try" in
2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753 *) ac_try_echo=$ac_try;;
2754 esac
2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756 (eval "$ac_compile") 2>conftest.er1
2757 ac_status=$?
2758 grep -v '^ *+' conftest.er1 >conftest.err
2759 rm -f conftest.er1
2760 cat conftest.err >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); } && {
2763 test -z "$ac_c_werror_flag" ||
2764 test ! -s conftest.err
2765 } && test -s conftest.$ac_objext; then
2766 ac_cv_sys_largefile_CC=' -n32'; break
2767 else
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2774 rm -f core conftest.err conftest.$ac_objext
2775 break
2776 done
2777 CC=$ac_save_CC
2778 rm -f conftest.$ac_ext
2781 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2782 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
2783 if test "$ac_cv_sys_largefile_CC" != no; then
2784 CC=$CC$ac_cv_sys_largefile_CC
2787 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2788 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
2789 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2791 else
2792 while :; do
2793 cat >conftest.$ac_ext <<_ACEOF
2794 /* confdefs.h. */
2795 _ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h. */
2799 #include <sys/types.h>
2800 /* Check that off_t can represent 2**63 - 1 correctly.
2801 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2802 since some C++ compilers masquerading as C compilers
2803 incorrectly reject 9223372036854775807. */
2804 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2805 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2806 && LARGE_OFF_T % 2147483647 == 1)
2807 ? 1 : -1];
2809 main ()
2813 return 0;
2815 _ACEOF
2816 rm -f conftest.$ac_objext
2817 if { (ac_try="$ac_compile"
2818 case "(($ac_try" in
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2821 esac
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823 (eval "$ac_compile") 2>conftest.er1
2824 ac_status=$?
2825 grep -v '^ *+' conftest.er1 >conftest.err
2826 rm -f conftest.er1
2827 cat conftest.err >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } && {
2830 test -z "$ac_c_werror_flag" ||
2831 test ! -s conftest.err
2832 } && test -s conftest.$ac_objext; then
2833 ac_cv_sys_file_offset_bits=no; break
2834 else
2835 echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.$ac_ext >&5
2841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2842 cat >conftest.$ac_ext <<_ACEOF
2843 /* confdefs.h. */
2844 _ACEOF
2845 cat confdefs.h >>conftest.$ac_ext
2846 cat >>conftest.$ac_ext <<_ACEOF
2847 /* end confdefs.h. */
2848 #define _FILE_OFFSET_BITS 64
2849 #include <sys/types.h>
2850 /* Check that off_t can represent 2**63 - 1 correctly.
2851 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2852 since some C++ compilers masquerading as C compilers
2853 incorrectly reject 9223372036854775807. */
2854 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2855 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2856 && LARGE_OFF_T % 2147483647 == 1)
2857 ? 1 : -1];
2859 main ()
2863 return 0;
2865 _ACEOF
2866 rm -f conftest.$ac_objext
2867 if { (ac_try="$ac_compile"
2868 case "(($ac_try" in
2869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870 *) ac_try_echo=$ac_try;;
2871 esac
2872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2873 (eval "$ac_compile") 2>conftest.er1
2874 ac_status=$?
2875 grep -v '^ *+' conftest.er1 >conftest.err
2876 rm -f conftest.er1
2877 cat conftest.err >&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); } && {
2880 test -z "$ac_c_werror_flag" ||
2881 test ! -s conftest.err
2882 } && test -s conftest.$ac_objext; then
2883 ac_cv_sys_file_offset_bits=64; break
2884 else
2885 echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2892 ac_cv_sys_file_offset_bits=unknown
2893 break
2894 done
2896 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
2897 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
2898 case $ac_cv_sys_file_offset_bits in #(
2899 no | unknown) ;;
2901 cat >>confdefs.h <<_ACEOF
2902 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2903 _ACEOF
2905 esac
2906 rm -f conftest*
2907 if test $ac_cv_sys_file_offset_bits = unknown; then
2908 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
2909 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
2910 if test "${ac_cv_sys_large_files+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913 while :; do
2914 cat >conftest.$ac_ext <<_ACEOF
2915 /* confdefs.h. */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2920 #include <sys/types.h>
2921 /* Check that off_t can represent 2**63 - 1 correctly.
2922 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2923 since some C++ compilers masquerading as C compilers
2924 incorrectly reject 9223372036854775807. */
2925 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2926 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2927 && LARGE_OFF_T % 2147483647 == 1)
2928 ? 1 : -1];
2930 main ()
2934 return 0;
2936 _ACEOF
2937 rm -f conftest.$ac_objext
2938 if { (ac_try="$ac_compile"
2939 case "(($ac_try" in
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2942 esac
2943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944 (eval "$ac_compile") 2>conftest.er1
2945 ac_status=$?
2946 grep -v '^ *+' conftest.er1 >conftest.err
2947 rm -f conftest.er1
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } && {
2951 test -z "$ac_c_werror_flag" ||
2952 test ! -s conftest.err
2953 } && test -s conftest.$ac_objext; then
2954 ac_cv_sys_large_files=no; break
2955 else
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2963 cat >conftest.$ac_ext <<_ACEOF
2964 /* confdefs.h. */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2969 #define _LARGE_FILES 1
2970 #include <sys/types.h>
2971 /* Check that off_t can represent 2**63 - 1 correctly.
2972 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2973 since some C++ compilers masquerading as C compilers
2974 incorrectly reject 9223372036854775807. */
2975 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2976 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2977 && LARGE_OFF_T % 2147483647 == 1)
2978 ? 1 : -1];
2980 main ()
2984 return 0;
2986 _ACEOF
2987 rm -f conftest.$ac_objext
2988 if { (ac_try="$ac_compile"
2989 case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2992 esac
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_compile") 2>conftest.er1
2995 ac_status=$?
2996 grep -v '^ *+' conftest.er1 >conftest.err
2997 rm -f conftest.er1
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } && {
3001 test -z "$ac_c_werror_flag" ||
3002 test ! -s conftest.err
3003 } && test -s conftest.$ac_objext; then
3004 ac_cv_sys_large_files=1; break
3005 else
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3013 ac_cv_sys_large_files=unknown
3014 break
3015 done
3017 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3018 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
3019 case $ac_cv_sys_large_files in #(
3020 no | unknown) ;;
3022 cat >>confdefs.h <<_ACEOF
3023 #define _LARGE_FILES $ac_cv_sys_large_files
3024 _ACEOF
3026 esac
3027 rm -f conftest*
3032 # Host specific options
3033 # this isn't a definitive list of hosts, they are just added as required
3034 ac_aux_dir=
3035 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3036 if test -f "$ac_dir/install-sh"; then
3037 ac_aux_dir=$ac_dir
3038 ac_install_sh="$ac_aux_dir/install-sh -c"
3039 break
3040 elif test -f "$ac_dir/install.sh"; then
3041 ac_aux_dir=$ac_dir
3042 ac_install_sh="$ac_aux_dir/install.sh -c"
3043 break
3044 elif test -f "$ac_dir/shtool"; then
3045 ac_aux_dir=$ac_dir
3046 ac_install_sh="$ac_aux_dir/shtool install -c"
3047 break
3049 done
3050 if test -z "$ac_aux_dir"; then
3051 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3052 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3053 { (exit 1); exit 1; }; }
3056 # These three variables are undocumented and unsupported,
3057 # and are intended to be withdrawn in a future Autoconf release.
3058 # They can cause serious problems if a builder's source tree is in a directory
3059 # whose full name contains unusual characters.
3060 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3061 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3062 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3065 # Make sure we can run config.sub.
3066 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3067 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3068 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3069 { (exit 1); exit 1; }; }
3071 { echo "$as_me:$LINENO: checking build system type" >&5
3072 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3073 if test "${ac_cv_build+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 else
3076 ac_build_alias=$build_alias
3077 test "x$ac_build_alias" = x &&
3078 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3079 test "x$ac_build_alias" = x &&
3080 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3081 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3082 { (exit 1); exit 1; }; }
3083 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3084 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3085 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3086 { (exit 1); exit 1; }; }
3089 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3090 echo "${ECHO_T}$ac_cv_build" >&6; }
3091 case $ac_cv_build in
3092 *-*-*) ;;
3093 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3094 echo "$as_me: error: invalid value of canonical build" >&2;}
3095 { (exit 1); exit 1; }; };;
3096 esac
3097 build=$ac_cv_build
3098 ac_save_IFS=$IFS; IFS='-'
3099 set x $ac_cv_build
3100 shift
3101 build_cpu=$1
3102 build_vendor=$2
3103 shift; shift
3104 # Remember, the first character of IFS is used to create $*,
3105 # except with old shells:
3106 build_os=$*
3107 IFS=$ac_save_IFS
3108 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3111 { echo "$as_me:$LINENO: checking host system type" >&5
3112 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3113 if test "${ac_cv_host+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 else
3116 if test "x$host_alias" = x; then
3117 ac_cv_host=$ac_cv_build
3118 else
3119 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3120 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3121 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3122 { (exit 1); exit 1; }; }
3126 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3127 echo "${ECHO_T}$ac_cv_host" >&6; }
3128 case $ac_cv_host in
3129 *-*-*) ;;
3130 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3131 echo "$as_me: error: invalid value of canonical host" >&2;}
3132 { (exit 1); exit 1; }; };;
3133 esac
3134 host=$ac_cv_host
3135 ac_save_IFS=$IFS; IFS='-'
3136 set x $ac_cv_host
3137 shift
3138 host_cpu=$1
3139 host_vendor=$2
3140 shift; shift
3141 # Remember, the first character of IFS is used to create $*,
3142 # except with old shells:
3143 host_os=$*
3144 IFS=$ac_save_IFS
3145 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3149 case "$host" in
3151 *-*-linux*)
3152 no_ptmx_check=1
3155 *-*-solaris*)
3156 CFLAGS="$CFLAGS -I/usr/local/include"
3157 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
3158 conf_lastlog_location="/var/adm/lastlog"
3159 { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
3160 echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; }
3161 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
3162 if test "$sol2ver" -ge 8; then
3163 { echo "$as_me:$LINENO: result: yes" >&5
3164 echo "${ECHO_T}yes" >&6; }
3166 cat >>confdefs.h <<\_ACEOF
3167 #define DISABLE_UTMP
3168 _ACEOF
3171 cat >>confdefs.h <<\_ACEOF
3172 #define DISABLE_WTMP
3173 _ACEOF
3175 else
3176 { echo "$as_me:$LINENO: result: no" >&5
3177 echo "${ECHO_T}no" >&6; }
3179 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3180 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
3181 if test "${ac_cv_lib_socket_socket+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184 ac_check_lib_save_LIBS=$LIBS
3185 LIBS="-lsocket $LIBS"
3186 cat >conftest.$ac_ext <<_ACEOF
3187 /* confdefs.h. */
3188 _ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h. */
3193 /* Override any GCC internal prototype to avoid an error.
3194 Use char because int might match the return type of a GCC
3195 builtin and then its argument prototype would still apply. */
3196 #ifdef __cplusplus
3197 extern "C"
3198 #endif
3199 char socket ();
3201 main ()
3203 return socket ();
3205 return 0;
3207 _ACEOF
3208 rm -f conftest.$ac_objext conftest$ac_exeext
3209 if { (ac_try="$ac_link"
3210 case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_link") 2>conftest.er1
3216 ac_status=$?
3217 grep -v '^ *+' conftest.er1 >conftest.err
3218 rm -f conftest.er1
3219 cat conftest.err >&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); } && {
3222 test -z "$ac_c_werror_flag" ||
3223 test ! -s conftest.err
3224 } && test -s conftest$ac_exeext &&
3225 $as_test_x conftest$ac_exeext; then
3226 ac_cv_lib_socket_socket=yes
3227 else
3228 echo "$as_me: failed program was:" >&5
3229 sed 's/^/| /' conftest.$ac_ext >&5
3231 ac_cv_lib_socket_socket=no
3234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3235 conftest$ac_exeext conftest.$ac_ext
3236 LIBS=$ac_check_lib_save_LIBS
3238 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3239 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
3240 if test $ac_cv_lib_socket_socket = yes; then
3241 LIBS="$LIBS -lsocket"
3244 { echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
3245 echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; }
3246 if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249 ac_check_lib_save_LIBS=$LIBS
3250 LIBS="-lnsl $LIBS"
3251 cat >conftest.$ac_ext <<_ACEOF
3252 /* confdefs.h. */
3253 _ACEOF
3254 cat confdefs.h >>conftest.$ac_ext
3255 cat >>conftest.$ac_ext <<_ACEOF
3256 /* end confdefs.h. */
3258 /* Override any GCC internal prototype to avoid an error.
3259 Use char because int might match the return type of a GCC
3260 builtin and then its argument prototype would still apply. */
3261 #ifdef __cplusplus
3262 extern "C"
3263 #endif
3264 char yp_match ();
3266 main ()
3268 return yp_match ();
3270 return 0;
3272 _ACEOF
3273 rm -f conftest.$ac_objext conftest$ac_exeext
3274 if { (ac_try="$ac_link"
3275 case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_link") 2>conftest.er1
3281 ac_status=$?
3282 grep -v '^ *+' conftest.er1 >conftest.err
3283 rm -f conftest.er1
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } && {
3287 test -z "$ac_c_werror_flag" ||
3288 test ! -s conftest.err
3289 } && test -s conftest$ac_exeext &&
3290 $as_test_x conftest$ac_exeext; then
3291 ac_cv_lib_nsl_yp_match=yes
3292 else
3293 echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3296 ac_cv_lib_nsl_yp_match=no
3299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3300 conftest$ac_exeext conftest.$ac_ext
3301 LIBS=$ac_check_lib_save_LIBS
3303 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
3304 echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; }
3305 if test $ac_cv_lib_nsl_yp_match = yes; then
3306 LIBS="$LIBS -lnsl"
3311 *-*-aix*)
3313 cat >>confdefs.h <<\_ACEOF
3314 #define AIX
3315 _ACEOF
3317 # OpenSSH thinks it's broken. If it isn't, let me know.
3319 cat >>confdefs.h <<\_ACEOF
3320 #define BROKEN_GETADDRINFO
3321 _ACEOF
3325 *-*-hpux*)
3326 LIBS="$LIBS -lsec"
3327 # It's probably broken.
3329 cat >>confdefs.h <<\_ACEOF
3330 #define BROKEN_GETADDRINFO
3331 _ACEOF
3334 *-dec-osf*)
3336 cat >>confdefs.h <<\_ACEOF
3337 #define BROKEN_GETADDRINFO
3338 _ACEOF
3341 esac
3343 if test -n "$ac_tool_prefix"; then
3344 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3345 set dummy ${ac_tool_prefix}ar; ac_word=$2
3346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3348 if test "${ac_cv_prog_AR+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351 if test -n "$AR"; then
3352 ac_cv_prog_AR="$AR" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3361 ac_cv_prog_AR="${ac_tool_prefix}ar"
3362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 break 2
3365 done
3366 done
3367 IFS=$as_save_IFS
3371 AR=$ac_cv_prog_AR
3372 if test -n "$AR"; then
3373 { echo "$as_me:$LINENO: result: $AR" >&5
3374 echo "${ECHO_T}$AR" >&6; }
3375 else
3376 { echo "$as_me:$LINENO: result: no" >&5
3377 echo "${ECHO_T}no" >&6; }
3382 if test -z "$ac_cv_prog_AR"; then
3383 ac_ct_AR=$AR
3384 # Extract the first word of "ar", so it can be a program name with args.
3385 set dummy ar; ac_word=$2
3386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3388 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3390 else
3391 if test -n "$ac_ct_AR"; then
3392 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3393 else
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395 for as_dir in $PATH
3397 IFS=$as_save_IFS
3398 test -z "$as_dir" && as_dir=.
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3401 ac_cv_prog_ac_ct_AR="ar"
3402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 break 2
3405 done
3406 done
3407 IFS=$as_save_IFS
3411 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3412 if test -n "$ac_ct_AR"; then
3413 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3414 echo "${ECHO_T}$ac_ct_AR" >&6; }
3415 else
3416 { echo "$as_me:$LINENO: result: no" >&5
3417 echo "${ECHO_T}no" >&6; }
3420 if test "x$ac_ct_AR" = x; then
3421 AR=":"
3422 else
3423 case $cross_compiling:$ac_tool_warned in
3424 yes:)
3425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3426 whose name does not start with the host triplet. If you think this
3427 configuration is useful to you, please write to autoconf@gnu.org." >&5
3428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3429 whose name does not start with the host triplet. If you think this
3430 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3431 ac_tool_warned=yes ;;
3432 esac
3433 AR=$ac_ct_AR
3435 else
3436 AR="$ac_cv_prog_AR"
3439 if test -n "$ac_tool_prefix"; then
3440 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3441 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3444 if test "${ac_cv_prog_RANLIB+set}" = set; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 else
3447 if test -n "$RANLIB"; then
3448 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3449 else
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 for as_dir in $PATH
3453 IFS=$as_save_IFS
3454 test -z "$as_dir" && as_dir=.
3455 for ac_exec_ext in '' $ac_executable_extensions; do
3456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3457 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 break 2
3461 done
3462 done
3463 IFS=$as_save_IFS
3467 RANLIB=$ac_cv_prog_RANLIB
3468 if test -n "$RANLIB"; then
3469 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3470 echo "${ECHO_T}$RANLIB" >&6; }
3471 else
3472 { echo "$as_me:$LINENO: result: no" >&5
3473 echo "${ECHO_T}no" >&6; }
3478 if test -z "$ac_cv_prog_RANLIB"; then
3479 ac_ct_RANLIB=$RANLIB
3480 # Extract the first word of "ranlib", so it can be a program name with args.
3481 set dummy ranlib; ac_word=$2
3482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3484 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487 if test -n "$ac_ct_RANLIB"; then
3488 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3489 else
3490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491 for as_dir in $PATH
3493 IFS=$as_save_IFS
3494 test -z "$as_dir" && as_dir=.
3495 for ac_exec_ext in '' $ac_executable_extensions; do
3496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3497 ac_cv_prog_ac_ct_RANLIB="ranlib"
3498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 break 2
3501 done
3502 done
3503 IFS=$as_save_IFS
3507 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3508 if test -n "$ac_ct_RANLIB"; then
3509 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3510 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3511 else
3512 { echo "$as_me:$LINENO: result: no" >&5
3513 echo "${ECHO_T}no" >&6; }
3516 if test "x$ac_ct_RANLIB" = x; then
3517 RANLIB=":"
3518 else
3519 case $cross_compiling:$ac_tool_warned in
3520 yes:)
3521 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3522 whose name does not start with the host triplet. If you think this
3523 configuration is useful to you, please write to autoconf@gnu.org." >&5
3524 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3525 whose name does not start with the host triplet. If you think this
3526 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3527 ac_tool_warned=yes ;;
3528 esac
3529 RANLIB=$ac_ct_RANLIB
3531 else
3532 RANLIB="$ac_cv_prog_RANLIB"
3535 if test -n "$ac_tool_prefix"; then
3536 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3537 set dummy ${ac_tool_prefix}strip; ac_word=$2
3538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3540 if test "${ac_cv_prog_STRIP+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3542 else
3543 if test -n "$STRIP"; then
3544 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3545 else
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3553 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 break 2
3557 done
3558 done
3559 IFS=$as_save_IFS
3563 STRIP=$ac_cv_prog_STRIP
3564 if test -n "$STRIP"; then
3565 { echo "$as_me:$LINENO: result: $STRIP" >&5
3566 echo "${ECHO_T}$STRIP" >&6; }
3567 else
3568 { echo "$as_me:$LINENO: result: no" >&5
3569 echo "${ECHO_T}no" >&6; }
3574 if test -z "$ac_cv_prog_STRIP"; then
3575 ac_ct_STRIP=$STRIP
3576 # Extract the first word of "strip", so it can be a program name with args.
3577 set dummy strip; ac_word=$2
3578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3580 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583 if test -n "$ac_ct_STRIP"; then
3584 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3585 else
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3589 IFS=$as_save_IFS
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3593 ac_cv_prog_ac_ct_STRIP="strip"
3594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 break 2
3597 done
3598 done
3599 IFS=$as_save_IFS
3603 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3604 if test -n "$ac_ct_STRIP"; then
3605 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3606 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
3607 else
3608 { echo "$as_me:$LINENO: result: no" >&5
3609 echo "${ECHO_T}no" >&6; }
3612 if test "x$ac_ct_STRIP" = x; then
3613 STRIP=":"
3614 else
3615 case $cross_compiling:$ac_tool_warned in
3616 yes:)
3617 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3618 whose name does not start with the host triplet. If you think this
3619 configuration is useful to you, please write to autoconf@gnu.org." >&5
3620 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3621 whose name does not start with the host triplet. If you think this
3622 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3623 ac_tool_warned=yes ;;
3624 esac
3625 STRIP=$ac_ct_STRIP
3627 else
3628 STRIP="$ac_cv_prog_STRIP"
3631 if test -n "$ac_tool_prefix"; then
3632 # Extract the first word of "${ac_tool_prefix}install", so it can be a program name with args.
3633 set dummy ${ac_tool_prefix}install; ac_word=$2
3634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3636 if test "${ac_cv_prog_INSTALL+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 else
3639 if test -n "$INSTALL"; then
3640 ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test.
3641 else
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3645 IFS=$as_save_IFS
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3649 ac_cv_prog_INSTALL="${ac_tool_prefix}install"
3650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 break 2
3653 done
3654 done
3655 IFS=$as_save_IFS
3659 INSTALL=$ac_cv_prog_INSTALL
3660 if test -n "$INSTALL"; then
3661 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3662 echo "${ECHO_T}$INSTALL" >&6; }
3663 else
3664 { echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6; }
3670 if test -z "$ac_cv_prog_INSTALL"; then
3671 ac_ct_INSTALL=$INSTALL
3672 # Extract the first word of "install", so it can be a program name with args.
3673 set dummy install; ac_word=$2
3674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3676 if test "${ac_cv_prog_ac_ct_INSTALL+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 else
3679 if test -n "$ac_ct_INSTALL"; then
3680 ac_cv_prog_ac_ct_INSTALL="$ac_ct_INSTALL" # Let the user override the test.
3681 else
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 for as_dir in $PATH
3685 IFS=$as_save_IFS
3686 test -z "$as_dir" && as_dir=.
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3689 ac_cv_prog_ac_ct_INSTALL="install"
3690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 break 2
3693 done
3694 done
3695 IFS=$as_save_IFS
3699 ac_ct_INSTALL=$ac_cv_prog_ac_ct_INSTALL
3700 if test -n "$ac_ct_INSTALL"; then
3701 { echo "$as_me:$LINENO: result: $ac_ct_INSTALL" >&5
3702 echo "${ECHO_T}$ac_ct_INSTALL" >&6; }
3703 else
3704 { echo "$as_me:$LINENO: result: no" >&5
3705 echo "${ECHO_T}no" >&6; }
3708 if test "x$ac_ct_INSTALL" = x; then
3709 INSTALL=":"
3710 else
3711 case $cross_compiling:$ac_tool_warned in
3712 yes:)
3713 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3714 whose name does not start with the host triplet. If you think this
3715 configuration is useful to you, please write to autoconf@gnu.org." >&5
3716 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3717 whose name does not start with the host triplet. If you think this
3718 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3719 ac_tool_warned=yes ;;
3720 esac
3721 INSTALL=$ac_ct_INSTALL
3723 else
3724 INSTALL="$ac_cv_prog_INSTALL"
3728 ac_ext=c
3729 ac_cpp='$CPP $CPPFLAGS'
3730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3733 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3734 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3735 # On Suns, sometimes $CPP names a directory.
3736 if test -n "$CPP" && test -d "$CPP"; then
3737 CPP=
3739 if test -z "$CPP"; then
3740 if test "${ac_cv_prog_CPP+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743 # Double quotes because CPP needs to be expanded
3744 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3746 ac_preproc_ok=false
3747 for ac_c_preproc_warn_flag in '' yes
3749 # Use a header file that comes with gcc, so configuring glibc
3750 # with a fresh cross-compiler works.
3751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3752 # <limits.h> exists even on freestanding compilers.
3753 # On the NeXT, cc -E runs the code through the compiler's parser,
3754 # not just through cpp. "Syntax error" is here to catch this case.
3755 cat >conftest.$ac_ext <<_ACEOF
3756 /* confdefs.h. */
3757 _ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h. */
3761 #ifdef __STDC__
3762 # include <limits.h>
3763 #else
3764 # include <assert.h>
3765 #endif
3766 Syntax error
3767 _ACEOF
3768 if { (ac_try="$ac_cpp conftest.$ac_ext"
3769 case "(($ac_try" in
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3772 esac
3773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3775 ac_status=$?
3776 grep -v '^ *+' conftest.er1 >conftest.err
3777 rm -f conftest.er1
3778 cat conftest.err >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } >/dev/null && {
3781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3782 test ! -s conftest.err
3783 }; then
3785 else
3786 echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3789 # Broken: fails on valid input.
3790 continue
3793 rm -f conftest.err conftest.$ac_ext
3795 # OK, works on sane cases. Now check whether nonexistent headers
3796 # can be detected and how.
3797 cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h. */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3803 #include <ac_nonexistent.h>
3804 _ACEOF
3805 if { (ac_try="$ac_cpp conftest.$ac_ext"
3806 case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809 esac
3810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3812 ac_status=$?
3813 grep -v '^ *+' conftest.er1 >conftest.err
3814 rm -f conftest.er1
3815 cat conftest.err >&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } >/dev/null && {
3818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3819 test ! -s conftest.err
3820 }; then
3821 # Broken: success on invalid input.
3822 continue
3823 else
3824 echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3827 # Passes both tests.
3828 ac_preproc_ok=:
3829 break
3832 rm -f conftest.err conftest.$ac_ext
3834 done
3835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3836 rm -f conftest.err conftest.$ac_ext
3837 if $ac_preproc_ok; then
3838 break
3841 done
3842 ac_cv_prog_CPP=$CPP
3845 CPP=$ac_cv_prog_CPP
3846 else
3847 ac_cv_prog_CPP=$CPP
3849 { echo "$as_me:$LINENO: result: $CPP" >&5
3850 echo "${ECHO_T}$CPP" >&6; }
3851 ac_preproc_ok=false
3852 for ac_c_preproc_warn_flag in '' yes
3854 # Use a header file that comes with gcc, so configuring glibc
3855 # with a fresh cross-compiler works.
3856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3857 # <limits.h> exists even on freestanding compilers.
3858 # On the NeXT, cc -E runs the code through the compiler's parser,
3859 # not just through cpp. "Syntax error" is here to catch this case.
3860 cat >conftest.$ac_ext <<_ACEOF
3861 /* confdefs.h. */
3862 _ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h. */
3866 #ifdef __STDC__
3867 # include <limits.h>
3868 #else
3869 # include <assert.h>
3870 #endif
3871 Syntax error
3872 _ACEOF
3873 if { (ac_try="$ac_cpp conftest.$ac_ext"
3874 case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3877 esac
3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3880 ac_status=$?
3881 grep -v '^ *+' conftest.er1 >conftest.err
3882 rm -f conftest.er1
3883 cat conftest.err >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } >/dev/null && {
3886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3887 test ! -s conftest.err
3888 }; then
3890 else
3891 echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3894 # Broken: fails on valid input.
3895 continue
3898 rm -f conftest.err conftest.$ac_ext
3900 # OK, works on sane cases. Now check whether nonexistent headers
3901 # can be detected and how.
3902 cat >conftest.$ac_ext <<_ACEOF
3903 /* confdefs.h. */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3908 #include <ac_nonexistent.h>
3909 _ACEOF
3910 if { (ac_try="$ac_cpp conftest.$ac_ext"
3911 case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914 esac
3915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3917 ac_status=$?
3918 grep -v '^ *+' conftest.er1 >conftest.err
3919 rm -f conftest.er1
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } >/dev/null && {
3923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3925 }; then
3926 # Broken: success on invalid input.
3927 continue
3928 else
3929 echo "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.$ac_ext >&5
3932 # Passes both tests.
3933 ac_preproc_ok=:
3934 break
3937 rm -f conftest.err conftest.$ac_ext
3939 done
3940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3941 rm -f conftest.err conftest.$ac_ext
3942 if $ac_preproc_ok; then
3944 else
3945 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3946 See \`config.log' for more details." >&5
3947 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3948 See \`config.log' for more details." >&2;}
3949 { (exit 1); exit 1; }; }
3952 ac_ext=c
3953 ac_cpp='$CPP $CPPFLAGS'
3954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3960 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3961 if test "${ac_cv_path_GREP+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964 # Extract the first word of "grep ggrep" to use in msg output
3965 if test -z "$GREP"; then
3966 set dummy grep ggrep; ac_prog_name=$2
3967 if test "${ac_cv_path_GREP+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 else
3970 ac_path_GREP_found=false
3971 # Loop through the user's path and test for each of PROGNAME-LIST
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_prog in grep ggrep; do
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3980 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3981 # Check for GNU ac_path_GREP and select it if it is found.
3982 # Check for GNU $ac_path_GREP
3983 case `"$ac_path_GREP" --version 2>&1` in
3984 *GNU*)
3985 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3987 ac_count=0
3988 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3989 while :
3991 cat "conftest.in" "conftest.in" >"conftest.tmp"
3992 mv "conftest.tmp" "conftest.in"
3993 cp "conftest.in" "conftest.nl"
3994 echo 'GREP' >> "conftest.nl"
3995 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3996 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3997 ac_count=`expr $ac_count + 1`
3998 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3999 # Best one so far, save it but keep looking for a better one
4000 ac_cv_path_GREP="$ac_path_GREP"
4001 ac_path_GREP_max=$ac_count
4003 # 10*(2^10) chars as input seems more than enough
4004 test $ac_count -gt 10 && break
4005 done
4006 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4007 esac
4010 $ac_path_GREP_found && break 3
4011 done
4012 done
4014 done
4015 IFS=$as_save_IFS
4020 GREP="$ac_cv_path_GREP"
4021 if test -z "$GREP"; then
4022 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4023 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4024 { (exit 1); exit 1; }; }
4027 else
4028 ac_cv_path_GREP=$GREP
4033 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4034 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4035 GREP="$ac_cv_path_GREP"
4038 { echo "$as_me:$LINENO: checking for egrep" >&5
4039 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4040 if test "${ac_cv_path_EGREP+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 else
4043 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4044 then ac_cv_path_EGREP="$GREP -E"
4045 else
4046 # Extract the first word of "egrep" to use in msg output
4047 if test -z "$EGREP"; then
4048 set dummy egrep; ac_prog_name=$2
4049 if test "${ac_cv_path_EGREP+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052 ac_path_EGREP_found=false
4053 # Loop through the user's path and test for each of PROGNAME-LIST
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4057 IFS=$as_save_IFS
4058 test -z "$as_dir" && as_dir=.
4059 for ac_prog in egrep; do
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4062 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4063 # Check for GNU ac_path_EGREP and select it if it is found.
4064 # Check for GNU $ac_path_EGREP
4065 case `"$ac_path_EGREP" --version 2>&1` in
4066 *GNU*)
4067 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4069 ac_count=0
4070 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4071 while :
4073 cat "conftest.in" "conftest.in" >"conftest.tmp"
4074 mv "conftest.tmp" "conftest.in"
4075 cp "conftest.in" "conftest.nl"
4076 echo 'EGREP' >> "conftest.nl"
4077 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4079 ac_count=`expr $ac_count + 1`
4080 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4081 # Best one so far, save it but keep looking for a better one
4082 ac_cv_path_EGREP="$ac_path_EGREP"
4083 ac_path_EGREP_max=$ac_count
4085 # 10*(2^10) chars as input seems more than enough
4086 test $ac_count -gt 10 && break
4087 done
4088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4089 esac
4092 $ac_path_EGREP_found && break 3
4093 done
4094 done
4096 done
4097 IFS=$as_save_IFS
4102 EGREP="$ac_cv_path_EGREP"
4103 if test -z "$EGREP"; then
4104 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4105 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4106 { (exit 1); exit 1; }; }
4109 else
4110 ac_cv_path_EGREP=$EGREP
4116 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4117 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4118 EGREP="$ac_cv_path_EGREP"
4121 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4122 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4123 if test "${ac_cv_header_stdc+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 else
4126 cat >conftest.$ac_ext <<_ACEOF
4127 /* confdefs.h. */
4128 _ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4132 #include <stdlib.h>
4133 #include <stdarg.h>
4134 #include <string.h>
4135 #include <float.h>
4138 main ()
4142 return 0;
4144 _ACEOF
4145 rm -f conftest.$ac_objext
4146 if { (ac_try="$ac_compile"
4147 case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4150 esac
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_compile") 2>conftest.er1
4153 ac_status=$?
4154 grep -v '^ *+' conftest.er1 >conftest.err
4155 rm -f conftest.er1
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } && {
4159 test -z "$ac_c_werror_flag" ||
4160 test ! -s conftest.err
4161 } && test -s conftest.$ac_objext; then
4162 ac_cv_header_stdc=yes
4163 else
4164 echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.$ac_ext >&5
4167 ac_cv_header_stdc=no
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172 if test $ac_cv_header_stdc = yes; then
4173 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4174 cat >conftest.$ac_ext <<_ACEOF
4175 /* confdefs.h. */
4176 _ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h. */
4180 #include <string.h>
4182 _ACEOF
4183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4184 $EGREP "memchr" >/dev/null 2>&1; then
4186 else
4187 ac_cv_header_stdc=no
4189 rm -f conftest*
4193 if test $ac_cv_header_stdc = yes; then
4194 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4195 cat >conftest.$ac_ext <<_ACEOF
4196 /* confdefs.h. */
4197 _ACEOF
4198 cat confdefs.h >>conftest.$ac_ext
4199 cat >>conftest.$ac_ext <<_ACEOF
4200 /* end confdefs.h. */
4201 #include <stdlib.h>
4203 _ACEOF
4204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4205 $EGREP "free" >/dev/null 2>&1; then
4207 else
4208 ac_cv_header_stdc=no
4210 rm -f conftest*
4214 if test $ac_cv_header_stdc = yes; then
4215 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4216 if test "$cross_compiling" = yes; then
4218 else
4219 cat >conftest.$ac_ext <<_ACEOF
4220 /* confdefs.h. */
4221 _ACEOF
4222 cat confdefs.h >>conftest.$ac_ext
4223 cat >>conftest.$ac_ext <<_ACEOF
4224 /* end confdefs.h. */
4225 #include <ctype.h>
4226 #include <stdlib.h>
4227 #if ((' ' & 0x0FF) == 0x020)
4228 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4229 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4230 #else
4231 # define ISLOWER(c) \
4232 (('a' <= (c) && (c) <= 'i') \
4233 || ('j' <= (c) && (c) <= 'r') \
4234 || ('s' <= (c) && (c) <= 'z'))
4235 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4236 #endif
4238 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4240 main ()
4242 int i;
4243 for (i = 0; i < 256; i++)
4244 if (XOR (islower (i), ISLOWER (i))
4245 || toupper (i) != TOUPPER (i))
4246 return 2;
4247 return 0;
4249 _ACEOF
4250 rm -f conftest$ac_exeext
4251 if { (ac_try="$ac_link"
4252 case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255 esac
4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_link") 2>&5
4258 ac_status=$?
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4261 { (case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264 esac
4265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_try") 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; }; then
4271 else
4272 echo "$as_me: program exited with status $ac_status" >&5
4273 echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4276 ( exit $ac_status )
4277 ac_cv_header_stdc=no
4279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4285 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4286 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4287 if test $ac_cv_header_stdc = yes; then
4289 cat >>confdefs.h <<\_ACEOF
4290 #define STDC_HEADERS 1
4291 _ACEOF
4295 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4305 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4306 inttypes.h stdint.h unistd.h
4308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 else
4314 cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h. */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4320 $ac_includes_default
4322 #include <$ac_header>
4323 _ACEOF
4324 rm -f conftest.$ac_objext
4325 if { (ac_try="$ac_compile"
4326 case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329 esac
4330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4331 (eval "$ac_compile") 2>conftest.er1
4332 ac_status=$?
4333 grep -v '^ *+' conftest.er1 >conftest.err
4334 rm -f conftest.er1
4335 cat conftest.err >&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } && {
4338 test -z "$ac_c_werror_flag" ||
4339 test ! -s conftest.err
4340 } && test -s conftest.$ac_objext; then
4341 eval "$as_ac_Header=yes"
4342 else
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4346 eval "$as_ac_Header=no"
4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 ac_res=`eval echo '${'$as_ac_Header'}'`
4352 { echo "$as_me:$LINENO: result: $ac_res" >&5
4353 echo "${ECHO_T}$ac_res" >&6; }
4354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4355 cat >>confdefs.h <<_ACEOF
4356 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4357 _ACEOF
4361 done
4364 { echo "$as_me:$LINENO: checking whether __UCLIBC__ is declared" >&5
4365 echo $ECHO_N "checking whether __UCLIBC__ is declared... $ECHO_C" >&6; }
4366 if test "${ac_cv_have_decl___UCLIBC__+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 else
4369 cat >conftest.$ac_ext <<_ACEOF
4370 /* confdefs.h. */
4371 _ACEOF
4372 cat confdefs.h >>conftest.$ac_ext
4373 cat >>conftest.$ac_ext <<_ACEOF
4374 /* end confdefs.h. */
4375 $ac_includes_default
4377 main ()
4379 #ifndef __UCLIBC__
4380 (void) __UCLIBC__;
4381 #endif
4384 return 0;
4386 _ACEOF
4387 rm -f conftest.$ac_objext
4388 if { (ac_try="$ac_compile"
4389 case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4392 esac
4393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394 (eval "$ac_compile") 2>conftest.er1
4395 ac_status=$?
4396 grep -v '^ *+' conftest.er1 >conftest.err
4397 rm -f conftest.er1
4398 cat conftest.err >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } && {
4401 test -z "$ac_c_werror_flag" ||
4402 test ! -s conftest.err
4403 } && test -s conftest.$ac_objext; then
4404 ac_cv_have_decl___UCLIBC__=yes
4405 else
4406 echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4409 ac_cv_have_decl___UCLIBC__=no
4412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4414 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___UCLIBC__" >&5
4415 echo "${ECHO_T}$ac_cv_have_decl___UCLIBC__" >&6; }
4416 if test $ac_cv_have_decl___UCLIBC__ = yes; then
4418 no_loginfunc_check=1
4419 { echo "$as_me:$LINENO: Using uClibc - login() and logout() probably don't work, so we won't use them." >&5
4420 echo "$as_me: Using uClibc - login() and logout() probably don't work, so we won't use them." >&6;}
4425 # Checks for libraries.
4426 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
4427 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
4428 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431 ac_check_lib_save_LIBS=$LIBS
4432 LIBS="-lcrypt $LIBS"
4433 cat >conftest.$ac_ext <<_ACEOF
4434 /* confdefs.h. */
4435 _ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4440 /* Override any GCC internal prototype to avoid an error.
4441 Use char because int might match the return type of a GCC
4442 builtin and then its argument prototype would still apply. */
4443 #ifdef __cplusplus
4444 extern "C"
4445 #endif
4446 char crypt ();
4448 main ()
4450 return crypt ();
4452 return 0;
4454 _ACEOF
4455 rm -f conftest.$ac_objext conftest$ac_exeext
4456 if { (ac_try="$ac_link"
4457 case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4460 esac
4461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462 (eval "$ac_link") 2>conftest.er1
4463 ac_status=$?
4464 grep -v '^ *+' conftest.er1 >conftest.err
4465 rm -f conftest.er1
4466 cat conftest.err >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } && {
4469 test -z "$ac_c_werror_flag" ||
4470 test ! -s conftest.err
4471 } && test -s conftest$ac_exeext &&
4472 $as_test_x conftest$ac_exeext; then
4473 ac_cv_lib_crypt_crypt=yes
4474 else
4475 echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4478 ac_cv_lib_crypt_crypt=no
4481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4482 conftest$ac_exeext conftest.$ac_ext
4483 LIBS=$ac_check_lib_save_LIBS
4485 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
4486 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
4487 if test $ac_cv_lib_crypt_crypt = yes; then
4488 LIBS="$LIBS -lcrypt"
4492 # Check if zlib is needed
4494 # Check whether --with-zlib was given.
4495 if test "${with_zlib+set}" = set; then
4496 withval=$with_zlib;
4497 # option is given
4498 if test -d "$withval/lib"; then
4499 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
4500 else
4501 LDFLAGS="-L${withval} ${LDFLAGS}"
4503 if test -d "$withval/include"; then
4504 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
4505 else
4506 CPPFLAGS="-I${withval} ${CPPFLAGS}"
4513 # Check whether --enable-zlib was given.
4514 if test "${enable_zlib+set}" = set; then
4515 enableval=$enable_zlib;
4516 if test "x$enableval" = "xno"; then
4518 cat >>confdefs.h <<\_ACEOF
4519 #define DISABLE_ZLIB
4520 _ACEOF
4522 { echo "$as_me:$LINENO: Disabling zlib" >&5
4523 echo "$as_me: Disabling zlib" >&6;}
4524 else
4526 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4527 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
4528 if test "${ac_cv_lib_z_deflate+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531 ac_check_lib_save_LIBS=$LIBS
4532 LIBS="-lz $LIBS"
4533 cat >conftest.$ac_ext <<_ACEOF
4534 /* confdefs.h. */
4535 _ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4540 /* Override any GCC internal prototype to avoid an error.
4541 Use char because int might match the return type of a GCC
4542 builtin and then its argument prototype would still apply. */
4543 #ifdef __cplusplus
4544 extern "C"
4545 #endif
4546 char deflate ();
4548 main ()
4550 return deflate ();
4552 return 0;
4554 _ACEOF
4555 rm -f conftest.$ac_objext conftest$ac_exeext
4556 if { (ac_try="$ac_link"
4557 case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4560 esac
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562 (eval "$ac_link") 2>conftest.er1
4563 ac_status=$?
4564 grep -v '^ *+' conftest.er1 >conftest.err
4565 rm -f conftest.er1
4566 cat conftest.err >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } && {
4569 test -z "$ac_c_werror_flag" ||
4570 test ! -s conftest.err
4571 } && test -s conftest$ac_exeext &&
4572 $as_test_x conftest$ac_exeext; then
4573 ac_cv_lib_z_deflate=yes
4574 else
4575 echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4578 ac_cv_lib_z_deflate=no
4581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4582 conftest$ac_exeext conftest.$ac_ext
4583 LIBS=$ac_check_lib_save_LIBS
4585 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4586 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
4587 if test $ac_cv_lib_z_deflate = yes; then
4588 cat >>confdefs.h <<_ACEOF
4589 #define HAVE_LIBZ 1
4590 _ACEOF
4592 LIBS="-lz $LIBS"
4594 else
4595 { { echo "$as_me:$LINENO: error: *** zlib missing - install first or check config.log ***" >&5
4596 echo "$as_me: error: *** zlib missing - install first or check config.log ***" >&2;}
4597 { (exit 1); exit 1; }; }
4600 { echo "$as_me:$LINENO: Enabling zlib" >&5
4601 echo "$as_me: Enabling zlib" >&6;}
4604 else
4606 # if not disabled, check for zlib
4608 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4609 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
4610 if test "${ac_cv_lib_z_deflate+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613 ac_check_lib_save_LIBS=$LIBS
4614 LIBS="-lz $LIBS"
4615 cat >conftest.$ac_ext <<_ACEOF
4616 /* confdefs.h. */
4617 _ACEOF
4618 cat confdefs.h >>conftest.$ac_ext
4619 cat >>conftest.$ac_ext <<_ACEOF
4620 /* end confdefs.h. */
4622 /* Override any GCC internal prototype to avoid an error.
4623 Use char because int might match the return type of a GCC
4624 builtin and then its argument prototype would still apply. */
4625 #ifdef __cplusplus
4626 extern "C"
4627 #endif
4628 char deflate ();
4630 main ()
4632 return deflate ();
4634 return 0;
4636 _ACEOF
4637 rm -f conftest.$ac_objext conftest$ac_exeext
4638 if { (ac_try="$ac_link"
4639 case "(($ac_try" in
4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641 *) ac_try_echo=$ac_try;;
4642 esac
4643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4644 (eval "$ac_link") 2>conftest.er1
4645 ac_status=$?
4646 grep -v '^ *+' conftest.er1 >conftest.err
4647 rm -f conftest.er1
4648 cat conftest.err >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); } && {
4651 test -z "$ac_c_werror_flag" ||
4652 test ! -s conftest.err
4653 } && test -s conftest$ac_exeext &&
4654 $as_test_x conftest$ac_exeext; then
4655 ac_cv_lib_z_deflate=yes
4656 else
4657 echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.$ac_ext >&5
4660 ac_cv_lib_z_deflate=no
4663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4664 conftest$ac_exeext conftest.$ac_ext
4665 LIBS=$ac_check_lib_save_LIBS
4667 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4668 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
4669 if test $ac_cv_lib_z_deflate = yes; then
4670 cat >>confdefs.h <<_ACEOF
4671 #define HAVE_LIBZ 1
4672 _ACEOF
4674 LIBS="-lz $LIBS"
4676 else
4677 { { echo "$as_me:$LINENO: error: *** zlib missing - install first or check config.log ***" >&5
4678 echo "$as_me: error: *** zlib missing - install first or check config.log ***" >&2;}
4679 { (exit 1); exit 1; }; }
4682 { echo "$as_me:$LINENO: Enabling zlib" >&5
4683 echo "$as_me: Enabling zlib" >&6;}
4689 # Check if pam is needed
4691 # Check whether --with-pam was given.
4692 if test "${with_pam+set}" = set; then
4693 withval=$with_pam;
4694 # option is given
4695 if test -d "$withval/lib"; then
4696 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
4697 else
4698 LDFLAGS="-L${withval} ${LDFLAGS}"
4700 if test -d "$withval/include"; then
4701 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
4702 else
4703 CPPFLAGS="-I${withval} ${CPPFLAGS}"
4711 # Check whether --enable-pam was given.
4712 if test "${enable_pam+set}" = set; then
4713 enableval=$enable_pam;
4714 if test "x$enableval" = "xyes"; then
4716 { echo "$as_me:$LINENO: checking for pam_authenticate in -lpam" >&5
4717 echo $ECHO_N "checking for pam_authenticate in -lpam... $ECHO_C" >&6; }
4718 if test "${ac_cv_lib_pam_pam_authenticate+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 else
4721 ac_check_lib_save_LIBS=$LIBS
4722 LIBS="-lpam $LIBS"
4723 cat >conftest.$ac_ext <<_ACEOF
4724 /* confdefs.h. */
4725 _ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4730 /* Override any GCC internal prototype to avoid an error.
4731 Use char because int might match the return type of a GCC
4732 builtin and then its argument prototype would still apply. */
4733 #ifdef __cplusplus
4734 extern "C"
4735 #endif
4736 char pam_authenticate ();
4738 main ()
4740 return pam_authenticate ();
4742 return 0;
4744 _ACEOF
4745 rm -f conftest.$ac_objext conftest$ac_exeext
4746 if { (ac_try="$ac_link"
4747 case "(($ac_try" in
4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749 *) ac_try_echo=$ac_try;;
4750 esac
4751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4752 (eval "$ac_link") 2>conftest.er1
4753 ac_status=$?
4754 grep -v '^ *+' conftest.er1 >conftest.err
4755 rm -f conftest.er1
4756 cat conftest.err >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } && {
4759 test -z "$ac_c_werror_flag" ||
4760 test ! -s conftest.err
4761 } && test -s conftest$ac_exeext &&
4762 $as_test_x conftest$ac_exeext; then
4763 ac_cv_lib_pam_pam_authenticate=yes
4764 else
4765 echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4768 ac_cv_lib_pam_pam_authenticate=no
4771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4772 conftest$ac_exeext conftest.$ac_ext
4773 LIBS=$ac_check_lib_save_LIBS
4775 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_authenticate" >&5
4776 echo "${ECHO_T}$ac_cv_lib_pam_pam_authenticate" >&6; }
4777 if test $ac_cv_lib_pam_pam_authenticate = yes; then
4778 cat >>confdefs.h <<_ACEOF
4779 #define HAVE_LIBPAM 1
4780 _ACEOF
4782 LIBS="-lpam $LIBS"
4784 else
4785 { { echo "$as_me:$LINENO: error: *** PAM missing - install first or check config.log ***" >&5
4786 echo "$as_me: error: *** PAM missing - install first or check config.log ***" >&2;}
4787 { (exit 1); exit 1; }; }
4790 { echo "$as_me:$LINENO: Enabling PAM" >&5
4791 echo "$as_me: Enabling PAM" >&6;}
4792 else
4794 cat >>confdefs.h <<\_ACEOF
4795 #define DISABLE_PAM
4796 _ACEOF
4798 { echo "$as_me:$LINENO: Disabling PAM" >&5
4799 echo "$as_me: Disabling PAM" >&6;}
4802 else
4804 # disable it by default
4806 cat >>confdefs.h <<\_ACEOF
4807 #define DISABLE_PAM
4808 _ACEOF
4810 { echo "$as_me:$LINENO: Disabling PAM" >&5
4811 echo "$as_me: Disabling PAM" >&6;}
4817 # Check whether --enable-openpty was given.
4818 if test "${enable_openpty+set}" = set; then
4819 enableval=$enable_openpty;
4820 if test "x$enableval" = "xno"; then
4821 { echo "$as_me:$LINENO: Not using openpty" >&5
4822 echo "$as_me: Not using openpty" >&6;}
4823 else
4824 { echo "$as_me:$LINENO: Using openpty if available" >&5
4825 echo "$as_me: Using openpty if available" >&6;}
4826 { echo "$as_me:$LINENO: checking for library containing openpty" >&5
4827 echo $ECHO_N "checking for library containing openpty... $ECHO_C" >&6; }
4828 if test "${ac_cv_search_openpty+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831 ac_func_search_save_LIBS=$LIBS
4832 cat >conftest.$ac_ext <<_ACEOF
4833 /* confdefs.h. */
4834 _ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4839 /* Override any GCC internal prototype to avoid an error.
4840 Use char because int might match the return type of a GCC
4841 builtin and then its argument prototype would still apply. */
4842 #ifdef __cplusplus
4843 extern "C"
4844 #endif
4845 char openpty ();
4847 main ()
4849 return openpty ();
4851 return 0;
4853 _ACEOF
4854 for ac_lib in '' util; do
4855 if test -z "$ac_lib"; then
4856 ac_res="none required"
4857 else
4858 ac_res=-l$ac_lib
4859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4861 rm -f conftest.$ac_objext conftest$ac_exeext
4862 if { (ac_try="$ac_link"
4863 case "(($ac_try" in
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4866 esac
4867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4868 (eval "$ac_link") 2>conftest.er1
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } && {
4875 test -z "$ac_c_werror_flag" ||
4876 test ! -s conftest.err
4877 } && test -s conftest$ac_exeext &&
4878 $as_test_x conftest$ac_exeext; then
4879 ac_cv_search_openpty=$ac_res
4880 else
4881 echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4888 conftest$ac_exeext
4889 if test "${ac_cv_search_openpty+set}" = set; then
4890 break
4892 done
4893 if test "${ac_cv_search_openpty+set}" = set; then
4895 else
4896 ac_cv_search_openpty=no
4898 rm conftest.$ac_ext
4899 LIBS=$ac_func_search_save_LIBS
4901 { echo "$as_me:$LINENO: result: $ac_cv_search_openpty" >&5
4902 echo "${ECHO_T}$ac_cv_search_openpty" >&6; }
4903 ac_res=$ac_cv_search_openpty
4904 if test "$ac_res" != no; then
4905 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4907 cat >>confdefs.h <<\_ACEOF
4908 #define HAVE_OPENPTY
4909 _ACEOF
4915 else
4917 { echo "$as_me:$LINENO: Using openpty if available" >&5
4918 echo "$as_me: Using openpty if available" >&6;}
4919 { echo "$as_me:$LINENO: checking for library containing openpty" >&5
4920 echo $ECHO_N "checking for library containing openpty... $ECHO_C" >&6; }
4921 if test "${ac_cv_search_openpty+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924 ac_func_search_save_LIBS=$LIBS
4925 cat >conftest.$ac_ext <<_ACEOF
4926 /* confdefs.h. */
4927 _ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4932 /* Override any GCC internal prototype to avoid an error.
4933 Use char because int might match the return type of a GCC
4934 builtin and then its argument prototype would still apply. */
4935 #ifdef __cplusplus
4936 extern "C"
4937 #endif
4938 char openpty ();
4940 main ()
4942 return openpty ();
4944 return 0;
4946 _ACEOF
4947 for ac_lib in '' util; do
4948 if test -z "$ac_lib"; then
4949 ac_res="none required"
4950 else
4951 ac_res=-l$ac_lib
4952 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4954 rm -f conftest.$ac_objext conftest$ac_exeext
4955 if { (ac_try="$ac_link"
4956 case "(($ac_try" in
4957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958 *) ac_try_echo=$ac_try;;
4959 esac
4960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4961 (eval "$ac_link") 2>conftest.er1
4962 ac_status=$?
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } && {
4968 test -z "$ac_c_werror_flag" ||
4969 test ! -s conftest.err
4970 } && test -s conftest$ac_exeext &&
4971 $as_test_x conftest$ac_exeext; then
4972 ac_cv_search_openpty=$ac_res
4973 else
4974 echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4981 conftest$ac_exeext
4982 if test "${ac_cv_search_openpty+set}" = set; then
4983 break
4985 done
4986 if test "${ac_cv_search_openpty+set}" = set; then
4988 else
4989 ac_cv_search_openpty=no
4991 rm conftest.$ac_ext
4992 LIBS=$ac_func_search_save_LIBS
4994 { echo "$as_me:$LINENO: result: $ac_cv_search_openpty" >&5
4995 echo "${ECHO_T}$ac_cv_search_openpty" >&6; }
4996 ac_res=$ac_cv_search_openpty
4997 if test "$ac_res" != no; then
4998 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4999 cat >>confdefs.h <<\_ACEOF
5000 #define HAVE_OPENPTY 1
5001 _ACEOF
5011 # Check whether --enable-syslog was given.
5012 if test "${enable_syslog+set}" = set; then
5013 enableval=$enable_syslog;
5014 if test "x$enableval" = "xno"; then
5016 cat >>confdefs.h <<\_ACEOF
5017 #define DISABLE_SYSLOG
5018 _ACEOF
5020 { echo "$as_me:$LINENO: Disabling syslog" >&5
5021 echo "$as_me: Disabling syslog" >&6;}
5022 else
5023 { echo "$as_me:$LINENO: Enabling syslog" >&5
5024 echo "$as_me: Enabling syslog" >&6;}
5027 else
5029 { echo "$as_me:$LINENO: Enabling syslog" >&5
5030 echo "$as_me: Enabling syslog" >&6;}
5036 # Check whether --enable-shadow was given.
5037 if test "${enable_shadow+set}" = set; then
5038 enableval=$enable_shadow;
5039 if test "x$enableval" = "xno"; then
5040 { echo "$as_me:$LINENO: Not using shadow passwords" >&5
5041 echo "$as_me: Not using shadow passwords" >&6;}
5042 else
5044 for ac_header in shadow.h
5046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 ac_res=`eval echo '${'$as_ac_Header'}'`
5054 { echo "$as_me:$LINENO: result: $ac_res" >&5
5055 echo "${ECHO_T}$ac_res" >&6; }
5056 else
5057 # Is the header compilable?
5058 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5060 cat >conftest.$ac_ext <<_ACEOF
5061 /* confdefs.h. */
5062 _ACEOF
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h. */
5066 $ac_includes_default
5067 #include <$ac_header>
5068 _ACEOF
5069 rm -f conftest.$ac_objext
5070 if { (ac_try="$ac_compile"
5071 case "(($ac_try" in
5072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5073 *) ac_try_echo=$ac_try;;
5074 esac
5075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5076 (eval "$ac_compile") 2>conftest.er1
5077 ac_status=$?
5078 grep -v '^ *+' conftest.er1 >conftest.err
5079 rm -f conftest.er1
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } && {
5083 test -z "$ac_c_werror_flag" ||
5084 test ! -s conftest.err
5085 } && test -s conftest.$ac_objext; then
5086 ac_header_compiler=yes
5087 else
5088 echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5091 ac_header_compiler=no
5094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5095 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5096 echo "${ECHO_T}$ac_header_compiler" >&6; }
5098 # Is the header present?
5099 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5101 cat >conftest.$ac_ext <<_ACEOF
5102 /* confdefs.h. */
5103 _ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h. */
5107 #include <$ac_header>
5108 _ACEOF
5109 if { (ac_try="$ac_cpp conftest.$ac_ext"
5110 case "(($ac_try" in
5111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5113 esac
5114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5116 ac_status=$?
5117 grep -v '^ *+' conftest.er1 >conftest.err
5118 rm -f conftest.er1
5119 cat conftest.err >&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } >/dev/null && {
5122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5123 test ! -s conftest.err
5124 }; then
5125 ac_header_preproc=yes
5126 else
5127 echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.$ac_ext >&5
5130 ac_header_preproc=no
5133 rm -f conftest.err conftest.$ac_ext
5134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5135 echo "${ECHO_T}$ac_header_preproc" >&6; }
5137 # So? What about this header?
5138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5139 yes:no: )
5140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5144 ac_header_preproc=yes
5146 no:yes:* )
5147 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5149 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5150 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5151 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5154 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5161 esac
5162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 else
5167 eval "$as_ac_Header=\$ac_header_preproc"
5169 ac_res=`eval echo '${'$as_ac_Header'}'`
5170 { echo "$as_me:$LINENO: result: $ac_res" >&5
5171 echo "${ECHO_T}$ac_res" >&6; }
5174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5175 cat >>confdefs.h <<_ACEOF
5176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5177 _ACEOF
5181 done
5183 { echo "$as_me:$LINENO: Using shadow passwords if available" >&5
5184 echo "$as_me: Using shadow passwords if available" >&6;}
5187 else
5190 for ac_header in shadow.h
5192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 ac_res=`eval echo '${'$as_ac_Header'}'`
5200 { echo "$as_me:$LINENO: result: $ac_res" >&5
5201 echo "${ECHO_T}$ac_res" >&6; }
5202 else
5203 # Is the header compilable?
5204 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5206 cat >conftest.$ac_ext <<_ACEOF
5207 /* confdefs.h. */
5208 _ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h. */
5212 $ac_includes_default
5213 #include <$ac_header>
5214 _ACEOF
5215 rm -f conftest.$ac_objext
5216 if { (ac_try="$ac_compile"
5217 case "(($ac_try" in
5218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219 *) ac_try_echo=$ac_try;;
5220 esac
5221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5222 (eval "$ac_compile") 2>conftest.er1
5223 ac_status=$?
5224 grep -v '^ *+' conftest.er1 >conftest.err
5225 rm -f conftest.er1
5226 cat conftest.err >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } && {
5229 test -z "$ac_c_werror_flag" ||
5230 test ! -s conftest.err
5231 } && test -s conftest.$ac_objext; then
5232 ac_header_compiler=yes
5233 else
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5237 ac_header_compiler=no
5240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5241 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5242 echo "${ECHO_T}$ac_header_compiler" >&6; }
5244 # Is the header present?
5245 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5247 cat >conftest.$ac_ext <<_ACEOF
5248 /* confdefs.h. */
5249 _ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5253 #include <$ac_header>
5254 _ACEOF
5255 if { (ac_try="$ac_cpp conftest.$ac_ext"
5256 case "(($ac_try" in
5257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258 *) ac_try_echo=$ac_try;;
5259 esac
5260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5262 ac_status=$?
5263 grep -v '^ *+' conftest.er1 >conftest.err
5264 rm -f conftest.er1
5265 cat conftest.err >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); } >/dev/null && {
5268 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5269 test ! -s conftest.err
5270 }; then
5271 ac_header_preproc=yes
5272 else
5273 echo "$as_me: failed program was:" >&5
5274 sed 's/^/| /' conftest.$ac_ext >&5
5276 ac_header_preproc=no
5279 rm -f conftest.err conftest.$ac_ext
5280 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5281 echo "${ECHO_T}$ac_header_preproc" >&6; }
5283 # So? What about this header?
5284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5285 yes:no: )
5286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5290 ac_header_preproc=yes
5292 no:yes:* )
5293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5299 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5300 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5303 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5307 esac
5308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 else
5313 eval "$as_ac_Header=\$ac_header_preproc"
5315 ac_res=`eval echo '${'$as_ac_Header'}'`
5316 { echo "$as_me:$LINENO: result: $ac_res" >&5
5317 echo "${ECHO_T}$ac_res" >&6; }
5320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5321 cat >>confdefs.h <<_ACEOF
5322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5323 _ACEOF
5327 done
5329 { echo "$as_me:$LINENO: Using shadow passwords if available" >&5
5330 echo "$as_me: Using shadow passwords if available" >&6;}
5337 # Checks for header files.
5338 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5339 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5340 if test "${ac_cv_header_stdc+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5342 else
5343 cat >conftest.$ac_ext <<_ACEOF
5344 /* confdefs.h. */
5345 _ACEOF
5346 cat confdefs.h >>conftest.$ac_ext
5347 cat >>conftest.$ac_ext <<_ACEOF
5348 /* end confdefs.h. */
5349 #include <stdlib.h>
5350 #include <stdarg.h>
5351 #include <string.h>
5352 #include <float.h>
5355 main ()
5359 return 0;
5361 _ACEOF
5362 rm -f conftest.$ac_objext
5363 if { (ac_try="$ac_compile"
5364 case "(($ac_try" in
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5367 esac
5368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5369 (eval "$ac_compile") 2>conftest.er1
5370 ac_status=$?
5371 grep -v '^ *+' conftest.er1 >conftest.err
5372 rm -f conftest.er1
5373 cat conftest.err >&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); } && {
5376 test -z "$ac_c_werror_flag" ||
5377 test ! -s conftest.err
5378 } && test -s conftest.$ac_objext; then
5379 ac_cv_header_stdc=yes
5380 else
5381 echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5384 ac_cv_header_stdc=no
5387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 if test $ac_cv_header_stdc = yes; then
5390 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5391 cat >conftest.$ac_ext <<_ACEOF
5392 /* confdefs.h. */
5393 _ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h. */
5397 #include <string.h>
5399 _ACEOF
5400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5401 $EGREP "memchr" >/dev/null 2>&1; then
5403 else
5404 ac_cv_header_stdc=no
5406 rm -f conftest*
5410 if test $ac_cv_header_stdc = yes; then
5411 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5412 cat >conftest.$ac_ext <<_ACEOF
5413 /* confdefs.h. */
5414 _ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h. */
5418 #include <stdlib.h>
5420 _ACEOF
5421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5422 $EGREP "free" >/dev/null 2>&1; then
5424 else
5425 ac_cv_header_stdc=no
5427 rm -f conftest*
5431 if test $ac_cv_header_stdc = yes; then
5432 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5433 if test "$cross_compiling" = yes; then
5435 else
5436 cat >conftest.$ac_ext <<_ACEOF
5437 /* confdefs.h. */
5438 _ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5442 #include <ctype.h>
5443 #include <stdlib.h>
5444 #if ((' ' & 0x0FF) == 0x020)
5445 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5446 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5447 #else
5448 # define ISLOWER(c) \
5449 (('a' <= (c) && (c) <= 'i') \
5450 || ('j' <= (c) && (c) <= 'r') \
5451 || ('s' <= (c) && (c) <= 'z'))
5452 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5453 #endif
5455 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5457 main ()
5459 int i;
5460 for (i = 0; i < 256; i++)
5461 if (XOR (islower (i), ISLOWER (i))
5462 || toupper (i) != TOUPPER (i))
5463 return 2;
5464 return 0;
5466 _ACEOF
5467 rm -f conftest$ac_exeext
5468 if { (ac_try="$ac_link"
5469 case "(($ac_try" in
5470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471 *) ac_try_echo=$ac_try;;
5472 esac
5473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474 (eval "$ac_link") 2>&5
5475 ac_status=$?
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5478 { (case "(($ac_try" in
5479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480 *) ac_try_echo=$ac_try;;
5481 esac
5482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5483 (eval "$ac_try") 2>&5
5484 ac_status=$?
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; }; then
5488 else
5489 echo "$as_me: program exited with status $ac_status" >&5
5490 echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5493 ( exit $ac_status )
5494 ac_cv_header_stdc=no
5496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5502 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5503 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5504 if test $ac_cv_header_stdc = yes; then
5506 cat >>confdefs.h <<\_ACEOF
5507 #define STDC_HEADERS 1
5508 _ACEOF
5512 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5513 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
5514 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517 cat >conftest.$ac_ext <<_ACEOF
5518 /* confdefs.h. */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523 #include <sys/types.h>
5524 #include <sys/wait.h>
5525 #ifndef WEXITSTATUS
5526 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5527 #endif
5528 #ifndef WIFEXITED
5529 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5530 #endif
5533 main ()
5535 int s;
5536 wait (&s);
5537 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5539 return 0;
5541 _ACEOF
5542 rm -f conftest.$ac_objext
5543 if { (ac_try="$ac_compile"
5544 case "(($ac_try" in
5545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546 *) ac_try_echo=$ac_try;;
5547 esac
5548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549 (eval "$ac_compile") 2>conftest.er1
5550 ac_status=$?
5551 grep -v '^ *+' conftest.er1 >conftest.err
5552 rm -f conftest.er1
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } && {
5556 test -z "$ac_c_werror_flag" ||
5557 test ! -s conftest.err
5558 } && test -s conftest.$ac_objext; then
5559 ac_cv_header_sys_wait_h=yes
5560 else
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5564 ac_cv_header_sys_wait_h=no
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5570 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
5571 if test $ac_cv_header_sys_wait_h = yes; then
5573 cat >>confdefs.h <<\_ACEOF
5574 #define HAVE_SYS_WAIT_H 1
5575 _ACEOF
5605 for ac_header in fcntl.h limits.h netinet/in.h netinet/tcp.h stdlib.h string.h sys/socket.h sys/time.h termios.h unistd.h crypt.h pty.h ioctl.h libutil.h libgen.h inttypes.h stropts.h utmp.h utmpx.h lastlog.h paths.h util.h netdb.h security/pam_appl.h pam/pam_appl.h netinet/in_systm.h
5607 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 ac_res=`eval echo '${'$as_ac_Header'}'`
5615 { echo "$as_me:$LINENO: result: $ac_res" >&5
5616 echo "${ECHO_T}$ac_res" >&6; }
5617 else
5618 # Is the header compilable?
5619 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5620 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5621 cat >conftest.$ac_ext <<_ACEOF
5622 /* confdefs.h. */
5623 _ACEOF
5624 cat confdefs.h >>conftest.$ac_ext
5625 cat >>conftest.$ac_ext <<_ACEOF
5626 /* end confdefs.h. */
5627 $ac_includes_default
5628 #include <$ac_header>
5629 _ACEOF
5630 rm -f conftest.$ac_objext
5631 if { (ac_try="$ac_compile"
5632 case "(($ac_try" in
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5635 esac
5636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637 (eval "$ac_compile") 2>conftest.er1
5638 ac_status=$?
5639 grep -v '^ *+' conftest.er1 >conftest.err
5640 rm -f conftest.er1
5641 cat conftest.err >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } && {
5644 test -z "$ac_c_werror_flag" ||
5645 test ! -s conftest.err
5646 } && test -s conftest.$ac_objext; then
5647 ac_header_compiler=yes
5648 else
5649 echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5652 ac_header_compiler=no
5655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5657 echo "${ECHO_T}$ac_header_compiler" >&6; }
5659 # Is the header present?
5660 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5662 cat >conftest.$ac_ext <<_ACEOF
5663 /* confdefs.h. */
5664 _ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h. */
5668 #include <$ac_header>
5669 _ACEOF
5670 if { (ac_try="$ac_cpp conftest.$ac_ext"
5671 case "(($ac_try" in
5672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673 *) ac_try_echo=$ac_try;;
5674 esac
5675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5677 ac_status=$?
5678 grep -v '^ *+' conftest.er1 >conftest.err
5679 rm -f conftest.er1
5680 cat conftest.err >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } >/dev/null && {
5683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5684 test ! -s conftest.err
5685 }; then
5686 ac_header_preproc=yes
5687 else
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.$ac_ext >&5
5691 ac_header_preproc=no
5694 rm -f conftest.err conftest.$ac_ext
5695 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5696 echo "${ECHO_T}$ac_header_preproc" >&6; }
5698 # So? What about this header?
5699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5700 yes:no: )
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5705 ac_header_preproc=yes
5707 no:yes:* )
5708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5712 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5714 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5715 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5718 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5722 esac
5723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5727 else
5728 eval "$as_ac_Header=\$ac_header_preproc"
5730 ac_res=`eval echo '${'$as_ac_Header'}'`
5731 { echo "$as_me:$LINENO: result: $ac_res" >&5
5732 echo "${ECHO_T}$ac_res" >&6; }
5735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5736 cat >>confdefs.h <<_ACEOF
5737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5738 _ACEOF
5742 done
5745 # Checks for typedefs, structures, and compiler characteristics.
5746 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5747 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5748 if test "${ac_cv_c_const+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 else
5751 cat >conftest.$ac_ext <<_ACEOF
5752 /* confdefs.h. */
5753 _ACEOF
5754 cat confdefs.h >>conftest.$ac_ext
5755 cat >>conftest.$ac_ext <<_ACEOF
5756 /* end confdefs.h. */
5759 main ()
5761 /* FIXME: Include the comments suggested by Paul. */
5762 #ifndef __cplusplus
5763 /* Ultrix mips cc rejects this. */
5764 typedef int charset[2];
5765 const charset cs;
5766 /* SunOS 4.1.1 cc rejects this. */
5767 char const *const *pcpcc;
5768 char **ppc;
5769 /* NEC SVR4.0.2 mips cc rejects this. */
5770 struct point {int x, y;};
5771 static struct point const zero = {0,0};
5772 /* AIX XL C 1.02.0.0 rejects this.
5773 It does not let you subtract one const X* pointer from another in
5774 an arm of an if-expression whose if-part is not a constant
5775 expression */
5776 const char *g = "string";
5777 pcpcc = &g + (g ? g-g : 0);
5778 /* HPUX 7.0 cc rejects these. */
5779 ++pcpcc;
5780 ppc = (char**) pcpcc;
5781 pcpcc = (char const *const *) ppc;
5782 { /* SCO 3.2v4 cc rejects this. */
5783 char *t;
5784 char const *s = 0 ? (char *) 0 : (char const *) 0;
5786 *t++ = 0;
5787 if (s) return 0;
5789 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5790 int x[] = {25, 17};
5791 const int *foo = &x[0];
5792 ++foo;
5794 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5795 typedef const int *iptr;
5796 iptr p = 0;
5797 ++p;
5799 { /* AIX XL C 1.02.0.0 rejects this saying
5800 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5801 struct s { int j; const int *ap[3]; };
5802 struct s *b; b->j = 5;
5804 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5805 const int foo = 10;
5806 if (!foo) return 0;
5808 return !cs[0] && !zero.x;
5809 #endif
5812 return 0;
5814 _ACEOF
5815 rm -f conftest.$ac_objext
5816 if { (ac_try="$ac_compile"
5817 case "(($ac_try" in
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5820 esac
5821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822 (eval "$ac_compile") 2>conftest.er1
5823 ac_status=$?
5824 grep -v '^ *+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } && {
5829 test -z "$ac_c_werror_flag" ||
5830 test ! -s conftest.err
5831 } && test -s conftest.$ac_objext; then
5832 ac_cv_c_const=yes
5833 else
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5837 ac_cv_c_const=no
5840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5843 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5844 if test $ac_cv_c_const = no; then
5846 cat >>confdefs.h <<\_ACEOF
5847 #define const
5848 _ACEOF
5852 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5853 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
5854 if test "${ac_cv_type_uid_t+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 else
5857 cat >conftest.$ac_ext <<_ACEOF
5858 /* confdefs.h. */
5859 _ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5863 #include <sys/types.h>
5865 _ACEOF
5866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5867 $EGREP "uid_t" >/dev/null 2>&1; then
5868 ac_cv_type_uid_t=yes
5869 else
5870 ac_cv_type_uid_t=no
5872 rm -f conftest*
5875 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5876 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
5877 if test $ac_cv_type_uid_t = no; then
5879 cat >>confdefs.h <<\_ACEOF
5880 #define uid_t int
5881 _ACEOF
5884 cat >>confdefs.h <<\_ACEOF
5885 #define gid_t int
5886 _ACEOF
5890 { echo "$as_me:$LINENO: checking for mode_t" >&5
5891 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
5892 if test "${ac_cv_type_mode_t+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895 cat >conftest.$ac_ext <<_ACEOF
5896 /* confdefs.h. */
5897 _ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5901 $ac_includes_default
5902 typedef mode_t ac__type_new_;
5904 main ()
5906 if ((ac__type_new_ *) 0)
5907 return 0;
5908 if (sizeof (ac__type_new_))
5909 return 0;
5911 return 0;
5913 _ACEOF
5914 rm -f conftest.$ac_objext
5915 if { (ac_try="$ac_compile"
5916 case "(($ac_try" in
5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918 *) ac_try_echo=$ac_try;;
5919 esac
5920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921 (eval "$ac_compile") 2>conftest.er1
5922 ac_status=$?
5923 grep -v '^ *+' conftest.er1 >conftest.err
5924 rm -f conftest.er1
5925 cat conftest.err >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } && {
5928 test -z "$ac_c_werror_flag" ||
5929 test ! -s conftest.err
5930 } && test -s conftest.$ac_objext; then
5931 ac_cv_type_mode_t=yes
5932 else
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5936 ac_cv_type_mode_t=no
5939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5942 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
5943 if test $ac_cv_type_mode_t = yes; then
5945 else
5947 cat >>confdefs.h <<_ACEOF
5948 #define mode_t int
5949 _ACEOF
5953 { echo "$as_me:$LINENO: checking for pid_t" >&5
5954 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
5955 if test "${ac_cv_type_pid_t+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958 cat >conftest.$ac_ext <<_ACEOF
5959 /* confdefs.h. */
5960 _ACEOF
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h. */
5964 $ac_includes_default
5965 typedef pid_t ac__type_new_;
5967 main ()
5969 if ((ac__type_new_ *) 0)
5970 return 0;
5971 if (sizeof (ac__type_new_))
5972 return 0;
5974 return 0;
5976 _ACEOF
5977 rm -f conftest.$ac_objext
5978 if { (ac_try="$ac_compile"
5979 case "(($ac_try" in
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5982 esac
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_compile") 2>conftest.er1
5985 ac_status=$?
5986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } && {
5991 test -z "$ac_c_werror_flag" ||
5992 test ! -s conftest.err
5993 } && test -s conftest.$ac_objext; then
5994 ac_cv_type_pid_t=yes
5995 else
5996 echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5999 ac_cv_type_pid_t=no
6002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6005 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6006 if test $ac_cv_type_pid_t = yes; then
6008 else
6010 cat >>confdefs.h <<_ACEOF
6011 #define pid_t int
6012 _ACEOF
6016 { echo "$as_me:$LINENO: checking for size_t" >&5
6017 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6018 if test "${ac_cv_type_size_t+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021 cat >conftest.$ac_ext <<_ACEOF
6022 /* confdefs.h. */
6023 _ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6027 $ac_includes_default
6028 typedef size_t ac__type_new_;
6030 main ()
6032 if ((ac__type_new_ *) 0)
6033 return 0;
6034 if (sizeof (ac__type_new_))
6035 return 0;
6037 return 0;
6039 _ACEOF
6040 rm -f conftest.$ac_objext
6041 if { (ac_try="$ac_compile"
6042 case "(($ac_try" in
6043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044 *) ac_try_echo=$ac_try;;
6045 esac
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047 (eval "$ac_compile") 2>conftest.er1
6048 ac_status=$?
6049 grep -v '^ *+' conftest.er1 >conftest.err
6050 rm -f conftest.er1
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } && {
6054 test -z "$ac_c_werror_flag" ||
6055 test ! -s conftest.err
6056 } && test -s conftest.$ac_objext; then
6057 ac_cv_type_size_t=yes
6058 else
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6062 ac_cv_type_size_t=no
6065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6067 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6068 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6069 if test $ac_cv_type_size_t = yes; then
6071 else
6073 cat >>confdefs.h <<_ACEOF
6074 #define size_t unsigned int
6075 _ACEOF
6079 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6080 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6081 if test "${ac_cv_header_time+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084 cat >conftest.$ac_ext <<_ACEOF
6085 /* confdefs.h. */
6086 _ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6090 #include <sys/types.h>
6091 #include <sys/time.h>
6092 #include <time.h>
6095 main ()
6097 if ((struct tm *) 0)
6098 return 0;
6100 return 0;
6102 _ACEOF
6103 rm -f conftest.$ac_objext
6104 if { (ac_try="$ac_compile"
6105 case "(($ac_try" in
6106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107 *) ac_try_echo=$ac_try;;
6108 esac
6109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110 (eval "$ac_compile") 2>conftest.er1
6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } && {
6117 test -z "$ac_c_werror_flag" ||
6118 test ! -s conftest.err
6119 } && test -s conftest.$ac_objext; then
6120 ac_cv_header_time=yes
6121 else
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6125 ac_cv_header_time=no
6128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6131 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6132 if test $ac_cv_header_time = yes; then
6134 cat >>confdefs.h <<\_ACEOF
6135 #define TIME_WITH_SYS_TIME 1
6136 _ACEOF
6141 { echo "$as_me:$LINENO: checking for uint16_t" >&5
6142 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
6143 if test "${ac_cv_type_uint16_t+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 else
6146 cat >conftest.$ac_ext <<_ACEOF
6147 /* confdefs.h. */
6148 _ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6152 $ac_includes_default
6153 typedef uint16_t ac__type_new_;
6155 main ()
6157 if ((ac__type_new_ *) 0)
6158 return 0;
6159 if (sizeof (ac__type_new_))
6160 return 0;
6162 return 0;
6164 _ACEOF
6165 rm -f conftest.$ac_objext
6166 if { (ac_try="$ac_compile"
6167 case "(($ac_try" in
6168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169 *) ac_try_echo=$ac_try;;
6170 esac
6171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6172 (eval "$ac_compile") 2>conftest.er1
6173 ac_status=$?
6174 grep -v '^ *+' conftest.er1 >conftest.err
6175 rm -f conftest.er1
6176 cat conftest.err >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } && {
6179 test -z "$ac_c_werror_flag" ||
6180 test ! -s conftest.err
6181 } && test -s conftest.$ac_objext; then
6182 ac_cv_type_uint16_t=yes
6183 else
6184 echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6187 ac_cv_type_uint16_t=no
6190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
6193 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
6194 if test $ac_cv_type_uint16_t = yes; then
6196 cat >>confdefs.h <<_ACEOF
6197 #define HAVE_UINT16_T 1
6198 _ACEOF
6202 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
6203 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
6204 if test "${ac_cv_type_u_int16_t+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 else
6207 cat >conftest.$ac_ext <<_ACEOF
6208 /* confdefs.h. */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6213 $ac_includes_default
6214 typedef u_int16_t ac__type_new_;
6216 main ()
6218 if ((ac__type_new_ *) 0)
6219 return 0;
6220 if (sizeof (ac__type_new_))
6221 return 0;
6223 return 0;
6225 _ACEOF
6226 rm -f conftest.$ac_objext
6227 if { (ac_try="$ac_compile"
6228 case "(($ac_try" in
6229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6230 *) ac_try_echo=$ac_try;;
6231 esac
6232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6233 (eval "$ac_compile") 2>conftest.er1
6234 ac_status=$?
6235 grep -v '^ *+' conftest.er1 >conftest.err
6236 rm -f conftest.er1
6237 cat conftest.err >&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } && {
6240 test -z "$ac_c_werror_flag" ||
6241 test ! -s conftest.err
6242 } && test -s conftest.$ac_objext; then
6243 ac_cv_type_u_int16_t=yes
6244 else
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6248 ac_cv_type_u_int16_t=no
6251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6253 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
6254 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
6255 if test $ac_cv_type_u_int16_t = yes; then
6257 cat >>confdefs.h <<_ACEOF
6258 #define HAVE_U_INT16_T 1
6259 _ACEOF
6263 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
6264 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
6265 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 else
6268 cat >conftest.$ac_ext <<_ACEOF
6269 /* confdefs.h. */
6270 _ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6274 $ac_includes_default
6275 typedef struct sockaddr_storage ac__type_new_;
6277 main ()
6279 if ((ac__type_new_ *) 0)
6280 return 0;
6281 if (sizeof (ac__type_new_))
6282 return 0;
6284 return 0;
6286 _ACEOF
6287 rm -f conftest.$ac_objext
6288 if { (ac_try="$ac_compile"
6289 case "(($ac_try" in
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6292 esac
6293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294 (eval "$ac_compile") 2>conftest.er1
6295 ac_status=$?
6296 grep -v '^ *+' conftest.er1 >conftest.err
6297 rm -f conftest.er1
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } && {
6301 test -z "$ac_c_werror_flag" ||
6302 test ! -s conftest.err
6303 } && test -s conftest.$ac_objext; then
6304 ac_cv_type_struct_sockaddr_storage=yes
6305 else
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6309 ac_cv_type_struct_sockaddr_storage=no
6312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6314 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
6315 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
6316 if test $ac_cv_type_struct_sockaddr_storage = yes; then
6318 cat >>confdefs.h <<_ACEOF
6319 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
6320 _ACEOF
6325 { echo "$as_me:$LINENO: checking for socklen_t" >&5
6326 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
6327 if test "${ac_cv_type_socklen_t+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330 cat >conftest.$ac_ext <<_ACEOF
6331 /* confdefs.h. */
6332 _ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h. */
6336 #include <sys/types.h>
6337 #include <sys/socket.h>
6339 typedef socklen_t ac__type_new_;
6341 main ()
6343 if ((ac__type_new_ *) 0)
6344 return 0;
6345 if (sizeof (ac__type_new_))
6346 return 0;
6348 return 0;
6350 _ACEOF
6351 rm -f conftest.$ac_objext
6352 if { (ac_try="$ac_compile"
6353 case "(($ac_try" in
6354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355 *) ac_try_echo=$ac_try;;
6356 esac
6357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6358 (eval "$ac_compile") 2>conftest.er1
6359 ac_status=$?
6360 grep -v '^ *+' conftest.er1 >conftest.err
6361 rm -f conftest.er1
6362 cat conftest.err >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } && {
6365 test -z "$ac_c_werror_flag" ||
6366 test ! -s conftest.err
6367 } && test -s conftest.$ac_objext; then
6368 ac_cv_type_socklen_t=yes
6369 else
6370 echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6373 ac_cv_type_socklen_t=no
6376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6378 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
6379 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
6380 if test $ac_cv_type_socklen_t = yes; then
6382 else
6384 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
6385 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
6386 if test "${curl_cv_socklen_t_equiv+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6390 # Systems have either "struct sockaddr *" or
6391 # "void *" as the second argument to getpeername
6392 curl_cv_socklen_t_equiv=
6393 for arg2 in "struct sockaddr" void; do
6394 for t in int size_t unsigned long "unsigned long"; do
6395 cat >conftest.$ac_ext <<_ACEOF
6396 /* confdefs.h. */
6397 _ACEOF
6398 cat confdefs.h >>conftest.$ac_ext
6399 cat >>conftest.$ac_ext <<_ACEOF
6400 /* end confdefs.h. */
6402 #include <sys/types.h>
6403 #include <sys/socket.h>
6405 int getpeername (int, $arg2 *, $t *);
6408 main ()
6411 $t len;
6412 getpeername(0,0,&len);
6415 return 0;
6417 _ACEOF
6418 rm -f conftest.$ac_objext
6419 if { (ac_try="$ac_compile"
6420 case "(($ac_try" in
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6423 esac
6424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425 (eval "$ac_compile") 2>conftest.er1
6426 ac_status=$?
6427 grep -v '^ *+' conftest.er1 >conftest.err
6428 rm -f conftest.er1
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } && {
6432 test -z "$ac_c_werror_flag" ||
6433 test ! -s conftest.err
6434 } && test -s conftest.$ac_objext; then
6436 curl_cv_socklen_t_equiv="$t"
6437 break
6439 else
6440 echo "$as_me: failed program was:" >&5
6441 sed 's/^/| /' conftest.$ac_ext >&5
6446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447 done
6448 done
6450 if test "x$curl_cv_socklen_t_equiv" = x; then
6451 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
6452 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
6453 { (exit 1); exit 1; }; }
6458 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
6459 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
6461 cat >>confdefs.h <<_ACEOF
6462 #define socklen_t $curl_cv_socklen_t_equiv
6463 _ACEOF
6468 # for the fake-rfc2553 stuff - straight from OpenSSH
6470 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
6471 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
6472 if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 else
6476 cat >conftest.$ac_ext <<_ACEOF
6477 /* confdefs.h. */
6478 _ACEOF
6479 cat confdefs.h >>conftest.$ac_ext
6480 cat >>conftest.$ac_ext <<_ACEOF
6481 /* end confdefs.h. */
6483 #include <sys/types.h>
6484 #include <sys/socket.h>
6487 main ()
6489 struct sockaddr_storage s;
6491 return 0;
6493 _ACEOF
6494 rm -f conftest.$ac_objext
6495 if { (ac_try="$ac_compile"
6496 case "(($ac_try" in
6497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6498 *) ac_try_echo=$ac_try;;
6499 esac
6500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6501 (eval "$ac_compile") 2>conftest.er1
6502 ac_status=$?
6503 grep -v '^ *+' conftest.er1 >conftest.err
6504 rm -f conftest.er1
6505 cat conftest.err >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } && {
6508 test -z "$ac_c_werror_flag" ||
6509 test ! -s conftest.err
6510 } && test -s conftest.$ac_objext; then
6511 ac_cv_have_struct_sockaddr_storage="yes"
6512 else
6513 echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.$ac_ext >&5
6516 ac_cv_have_struct_sockaddr_storage="no"
6520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
6524 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; }
6525 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
6526 cat >>confdefs.h <<\_ACEOF
6527 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
6528 _ACEOF
6532 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
6533 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
6534 if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 else
6538 cat >conftest.$ac_ext <<_ACEOF
6539 /* confdefs.h. */
6540 _ACEOF
6541 cat confdefs.h >>conftest.$ac_ext
6542 cat >>conftest.$ac_ext <<_ACEOF
6543 /* end confdefs.h. */
6545 #include <sys/types.h>
6546 #include <netinet/in.h>
6549 main ()
6551 struct sockaddr_in6 s; s.sin6_family = 0;
6553 return 0;
6555 _ACEOF
6556 rm -f conftest.$ac_objext
6557 if { (ac_try="$ac_compile"
6558 case "(($ac_try" in
6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6561 esac
6562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563 (eval "$ac_compile") 2>conftest.er1
6564 ac_status=$?
6565 grep -v '^ *+' conftest.er1 >conftest.err
6566 rm -f conftest.er1
6567 cat conftest.err >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } && {
6570 test -z "$ac_c_werror_flag" ||
6571 test ! -s conftest.err
6572 } && test -s conftest.$ac_objext; then
6573 ac_cv_have_struct_sockaddr_in6="yes"
6574 else
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6578 ac_cv_have_struct_sockaddr_in6="no"
6582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6585 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
6586 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; }
6587 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
6589 cat >>confdefs.h <<\_ACEOF
6590 #define HAVE_STRUCT_SOCKADDR_IN6
6591 _ACEOF
6595 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
6596 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
6597 if test "${ac_cv_have_struct_in6_addr+set}" = set; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 else
6601 cat >conftest.$ac_ext <<_ACEOF
6602 /* confdefs.h. */
6603 _ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6608 #include <sys/types.h>
6609 #include <netinet/in.h>
6612 main ()
6614 struct in6_addr s; s.s6_addr[0] = 0;
6616 return 0;
6618 _ACEOF
6619 rm -f conftest.$ac_objext
6620 if { (ac_try="$ac_compile"
6621 case "(($ac_try" in
6622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6623 *) ac_try_echo=$ac_try;;
6624 esac
6625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6626 (eval "$ac_compile") 2>conftest.er1
6627 ac_status=$?
6628 grep -v '^ *+' conftest.er1 >conftest.err
6629 rm -f conftest.er1
6630 cat conftest.err >&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } && {
6633 test -z "$ac_c_werror_flag" ||
6634 test ! -s conftest.err
6635 } && test -s conftest.$ac_objext; then
6636 ac_cv_have_struct_in6_addr="yes"
6637 else
6638 echo "$as_me: failed program was:" >&5
6639 sed 's/^/| /' conftest.$ac_ext >&5
6641 ac_cv_have_struct_in6_addr="no"
6645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
6649 echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; }
6650 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
6652 cat >>confdefs.h <<\_ACEOF
6653 #define HAVE_STRUCT_IN6_ADDR
6654 _ACEOF
6658 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
6659 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
6660 if test "${ac_cv_have_struct_addrinfo+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 else
6664 cat >conftest.$ac_ext <<_ACEOF
6665 /* confdefs.h. */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6671 #include <sys/types.h>
6672 #include <sys/socket.h>
6673 #include <netdb.h>
6676 main ()
6678 struct addrinfo s; s.ai_flags = AI_PASSIVE;
6680 return 0;
6682 _ACEOF
6683 rm -f conftest.$ac_objext
6684 if { (ac_try="$ac_compile"
6685 case "(($ac_try" in
6686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6687 *) ac_try_echo=$ac_try;;
6688 esac
6689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6690 (eval "$ac_compile") 2>conftest.er1
6691 ac_status=$?
6692 grep -v '^ *+' conftest.er1 >conftest.err
6693 rm -f conftest.er1
6694 cat conftest.err >&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } && {
6697 test -z "$ac_c_werror_flag" ||
6698 test ! -s conftest.err
6699 } && test -s conftest.$ac_objext; then
6700 ac_cv_have_struct_addrinfo="yes"
6701 else
6702 echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6705 ac_cv_have_struct_addrinfo="no"
6709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6712 { echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
6713 echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; }
6714 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
6716 cat >>confdefs.h <<\_ACEOF
6717 #define HAVE_STRUCT_ADDRINFO
6718 _ACEOF
6723 # IRIX has a const char return value for gai_strerror()
6725 for ac_func in gai_strerror
6727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733 cat >conftest.$ac_ext <<_ACEOF
6734 /* confdefs.h. */
6735 _ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6741 #define $ac_func innocuous_$ac_func
6743 /* System header to define __stub macros and hopefully few prototypes,
6744 which can conflict with char $ac_func (); below.
6745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6746 <limits.h> exists even on freestanding compilers. */
6748 #ifdef __STDC__
6749 # include <limits.h>
6750 #else
6751 # include <assert.h>
6752 #endif
6754 #undef $ac_func
6756 /* Override any GCC internal prototype to avoid an error.
6757 Use char because int might match the return type of a GCC
6758 builtin and then its argument prototype would still apply. */
6759 #ifdef __cplusplus
6760 extern "C"
6761 #endif
6762 char $ac_func ();
6763 /* The GNU C library defines this for functions which it implements
6764 to always fail with ENOSYS. Some functions are actually named
6765 something starting with __ and the normal name is an alias. */
6766 #if defined __stub_$ac_func || defined __stub___$ac_func
6767 choke me
6768 #endif
6771 main ()
6773 return $ac_func ();
6775 return 0;
6777 _ACEOF
6778 rm -f conftest.$ac_objext conftest$ac_exeext
6779 if { (ac_try="$ac_link"
6780 case "(($ac_try" in
6781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6782 *) ac_try_echo=$ac_try;;
6783 esac
6784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6785 (eval "$ac_link") 2>conftest.er1
6786 ac_status=$?
6787 grep -v '^ *+' conftest.er1 >conftest.err
6788 rm -f conftest.er1
6789 cat conftest.err >&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } && {
6792 test -z "$ac_c_werror_flag" ||
6793 test ! -s conftest.err
6794 } && test -s conftest$ac_exeext &&
6795 $as_test_x conftest$ac_exeext; then
6796 eval "$as_ac_var=yes"
6797 else
6798 echo "$as_me: failed program was:" >&5
6799 sed 's/^/| /' conftest.$ac_ext >&5
6801 eval "$as_ac_var=no"
6804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6805 conftest$ac_exeext conftest.$ac_ext
6807 ac_res=`eval echo '${'$as_ac_var'}'`
6808 { echo "$as_me:$LINENO: result: $ac_res" >&5
6809 echo "${ECHO_T}$ac_res" >&6; }
6810 if test `eval echo '${'$as_ac_var'}'` = yes; then
6811 cat >>confdefs.h <<_ACEOF
6812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6813 _ACEOF
6815 cat >>confdefs.h <<\_ACEOF
6816 #define HAVE_GAI_STRERROR 1
6817 _ACEOF
6819 cat >conftest.$ac_ext <<_ACEOF
6820 /* confdefs.h. */
6821 _ACEOF
6822 cat confdefs.h >>conftest.$ac_ext
6823 cat >>conftest.$ac_ext <<_ACEOF
6824 /* end confdefs.h. */
6826 #include <sys/types.h>
6827 #include <sys/socket.h>
6828 #include <netdb.h>
6830 const char *gai_strerror(int);
6832 main ()
6835 char *str;
6837 str = gai_strerror(0);
6839 return 0;
6841 _ACEOF
6842 rm -f conftest.$ac_objext
6843 if { (ac_try="$ac_compile"
6844 case "(($ac_try" in
6845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6846 *) ac_try_echo=$ac_try;;
6847 esac
6848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6849 (eval "$ac_compile") 2>conftest.er1
6850 ac_status=$?
6851 grep -v '^ *+' conftest.er1 >conftest.err
6852 rm -f conftest.er1
6853 cat conftest.err >&5
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); } && {
6856 test -z "$ac_c_werror_flag" ||
6857 test ! -s conftest.err
6858 } && test -s conftest.$ac_objext; then
6861 cat >>confdefs.h <<\_ACEOF
6862 #define HAVE_CONST_GAI_STRERROR_PROTO 1
6863 _ACEOF
6865 else
6866 echo "$as_me: failed program was:" >&5
6867 sed 's/^/| /' conftest.$ac_ext >&5
6872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6874 done
6877 # for loginrec.c
6879 { echo "$as_me:$LINENO: checking for struct utmp.ut_host" >&5
6880 echo $ECHO_N "checking for struct utmp.ut_host... $ECHO_C" >&6; }
6881 if test "${ac_cv_member_struct_utmp_ut_host+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6883 else
6884 cat >conftest.$ac_ext <<_ACEOF
6885 /* confdefs.h. */
6886 _ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6891 #include <sys/types.h>
6892 #if HAVE_UTMP_H
6893 #include <utmp.h>
6894 #endif
6898 main ()
6900 static struct utmp ac_aggr;
6901 if (ac_aggr.ut_host)
6902 return 0;
6904 return 0;
6906 _ACEOF
6907 rm -f conftest.$ac_objext
6908 if { (ac_try="$ac_compile"
6909 case "(($ac_try" in
6910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6911 *) ac_try_echo=$ac_try;;
6912 esac
6913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6914 (eval "$ac_compile") 2>conftest.er1
6915 ac_status=$?
6916 grep -v '^ *+' conftest.er1 >conftest.err
6917 rm -f conftest.er1
6918 cat conftest.err >&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } && {
6921 test -z "$ac_c_werror_flag" ||
6922 test ! -s conftest.err
6923 } && test -s conftest.$ac_objext; then
6924 ac_cv_member_struct_utmp_ut_host=yes
6925 else
6926 echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6929 cat >conftest.$ac_ext <<_ACEOF
6930 /* confdefs.h. */
6931 _ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6936 #include <sys/types.h>
6937 #if HAVE_UTMP_H
6938 #include <utmp.h>
6939 #endif
6943 main ()
6945 static struct utmp ac_aggr;
6946 if (sizeof ac_aggr.ut_host)
6947 return 0;
6949 return 0;
6951 _ACEOF
6952 rm -f conftest.$ac_objext
6953 if { (ac_try="$ac_compile"
6954 case "(($ac_try" in
6955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6956 *) ac_try_echo=$ac_try;;
6957 esac
6958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6959 (eval "$ac_compile") 2>conftest.er1
6960 ac_status=$?
6961 grep -v '^ *+' conftest.er1 >conftest.err
6962 rm -f conftest.er1
6963 cat conftest.err >&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } && {
6966 test -z "$ac_c_werror_flag" ||
6967 test ! -s conftest.err
6968 } && test -s conftest.$ac_objext; then
6969 ac_cv_member_struct_utmp_ut_host=yes
6970 else
6971 echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.$ac_ext >&5
6974 ac_cv_member_struct_utmp_ut_host=no
6977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6982 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_host" >&5
6983 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_host" >&6; }
6984 if test $ac_cv_member_struct_utmp_ut_host = yes; then
6986 cat >>confdefs.h <<_ACEOF
6987 #define HAVE_STRUCT_UTMP_UT_HOST 1
6988 _ACEOF
6992 { echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
6993 echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6; }
6994 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 else
6997 cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h. */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7004 #include <sys/types.h>
7005 #if HAVE_UTMP_H
7006 #include <utmp.h>
7007 #endif
7011 main ()
7013 static struct utmp ac_aggr;
7014 if (ac_aggr.ut_pid)
7015 return 0;
7017 return 0;
7019 _ACEOF
7020 rm -f conftest.$ac_objext
7021 if { (ac_try="$ac_compile"
7022 case "(($ac_try" in
7023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7024 *) ac_try_echo=$ac_try;;
7025 esac
7026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7027 (eval "$ac_compile") 2>conftest.er1
7028 ac_status=$?
7029 grep -v '^ *+' conftest.er1 >conftest.err
7030 rm -f conftest.er1
7031 cat conftest.err >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } && {
7034 test -z "$ac_c_werror_flag" ||
7035 test ! -s conftest.err
7036 } && test -s conftest.$ac_objext; then
7037 ac_cv_member_struct_utmp_ut_pid=yes
7038 else
7039 echo "$as_me: failed program was:" >&5
7040 sed 's/^/| /' conftest.$ac_ext >&5
7042 cat >conftest.$ac_ext <<_ACEOF
7043 /* confdefs.h. */
7044 _ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h. */
7049 #include <sys/types.h>
7050 #if HAVE_UTMP_H
7051 #include <utmp.h>
7052 #endif
7056 main ()
7058 static struct utmp ac_aggr;
7059 if (sizeof ac_aggr.ut_pid)
7060 return 0;
7062 return 0;
7064 _ACEOF
7065 rm -f conftest.$ac_objext
7066 if { (ac_try="$ac_compile"
7067 case "(($ac_try" in
7068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7069 *) ac_try_echo=$ac_try;;
7070 esac
7071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7072 (eval "$ac_compile") 2>conftest.er1
7073 ac_status=$?
7074 grep -v '^ *+' conftest.er1 >conftest.err
7075 rm -f conftest.er1
7076 cat conftest.err >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } && {
7079 test -z "$ac_c_werror_flag" ||
7080 test ! -s conftest.err
7081 } && test -s conftest.$ac_objext; then
7082 ac_cv_member_struct_utmp_ut_pid=yes
7083 else
7084 echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.$ac_ext >&5
7087 ac_cv_member_struct_utmp_ut_pid=no
7090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7095 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
7096 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6; }
7097 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
7099 cat >>confdefs.h <<_ACEOF
7100 #define HAVE_STRUCT_UTMP_UT_PID 1
7101 _ACEOF
7105 { echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
7106 echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6; }
7107 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110 cat >conftest.$ac_ext <<_ACEOF
7111 /* confdefs.h. */
7112 _ACEOF
7113 cat confdefs.h >>conftest.$ac_ext
7114 cat >>conftest.$ac_ext <<_ACEOF
7115 /* end confdefs.h. */
7117 #include <sys/types.h>
7118 #if HAVE_UTMP_H
7119 #include <utmp.h>
7120 #endif
7124 main ()
7126 static struct utmp ac_aggr;
7127 if (ac_aggr.ut_type)
7128 return 0;
7130 return 0;
7132 _ACEOF
7133 rm -f conftest.$ac_objext
7134 if { (ac_try="$ac_compile"
7135 case "(($ac_try" in
7136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7137 *) ac_try_echo=$ac_try;;
7138 esac
7139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7140 (eval "$ac_compile") 2>conftest.er1
7141 ac_status=$?
7142 grep -v '^ *+' conftest.er1 >conftest.err
7143 rm -f conftest.er1
7144 cat conftest.err >&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } && {
7147 test -z "$ac_c_werror_flag" ||
7148 test ! -s conftest.err
7149 } && test -s conftest.$ac_objext; then
7150 ac_cv_member_struct_utmp_ut_type=yes
7151 else
7152 echo "$as_me: failed program was:" >&5
7153 sed 's/^/| /' conftest.$ac_ext >&5
7155 cat >conftest.$ac_ext <<_ACEOF
7156 /* confdefs.h. */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7162 #include <sys/types.h>
7163 #if HAVE_UTMP_H
7164 #include <utmp.h>
7165 #endif
7169 main ()
7171 static struct utmp ac_aggr;
7172 if (sizeof ac_aggr.ut_type)
7173 return 0;
7175 return 0;
7177 _ACEOF
7178 rm -f conftest.$ac_objext
7179 if { (ac_try="$ac_compile"
7180 case "(($ac_try" in
7181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7182 *) ac_try_echo=$ac_try;;
7183 esac
7184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7185 (eval "$ac_compile") 2>conftest.er1
7186 ac_status=$?
7187 grep -v '^ *+' conftest.er1 >conftest.err
7188 rm -f conftest.er1
7189 cat conftest.err >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } && {
7192 test -z "$ac_c_werror_flag" ||
7193 test ! -s conftest.err
7194 } && test -s conftest.$ac_objext; then
7195 ac_cv_member_struct_utmp_ut_type=yes
7196 else
7197 echo "$as_me: failed program was:" >&5
7198 sed 's/^/| /' conftest.$ac_ext >&5
7200 ac_cv_member_struct_utmp_ut_type=no
7203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7208 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
7209 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6; }
7210 if test $ac_cv_member_struct_utmp_ut_type = yes; then
7212 cat >>confdefs.h <<_ACEOF
7213 #define HAVE_STRUCT_UTMP_UT_TYPE 1
7214 _ACEOF
7218 { echo "$as_me:$LINENO: checking for struct utmp.ut_tv" >&5
7219 echo $ECHO_N "checking for struct utmp.ut_tv... $ECHO_C" >&6; }
7220 if test "${ac_cv_member_struct_utmp_ut_tv+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223 cat >conftest.$ac_ext <<_ACEOF
7224 /* confdefs.h. */
7225 _ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h. */
7230 #include <sys/types.h>
7231 #if HAVE_UTMP_H
7232 #include <utmp.h>
7233 #endif
7237 main ()
7239 static struct utmp ac_aggr;
7240 if (ac_aggr.ut_tv)
7241 return 0;
7243 return 0;
7245 _ACEOF
7246 rm -f conftest.$ac_objext
7247 if { (ac_try="$ac_compile"
7248 case "(($ac_try" in
7249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250 *) ac_try_echo=$ac_try;;
7251 esac
7252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7253 (eval "$ac_compile") 2>conftest.er1
7254 ac_status=$?
7255 grep -v '^ *+' conftest.er1 >conftest.err
7256 rm -f conftest.er1
7257 cat conftest.err >&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } && {
7260 test -z "$ac_c_werror_flag" ||
7261 test ! -s conftest.err
7262 } && test -s conftest.$ac_objext; then
7263 ac_cv_member_struct_utmp_ut_tv=yes
7264 else
7265 echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7268 cat >conftest.$ac_ext <<_ACEOF
7269 /* confdefs.h. */
7270 _ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h. */
7275 #include <sys/types.h>
7276 #if HAVE_UTMP_H
7277 #include <utmp.h>
7278 #endif
7282 main ()
7284 static struct utmp ac_aggr;
7285 if (sizeof ac_aggr.ut_tv)
7286 return 0;
7288 return 0;
7290 _ACEOF
7291 rm -f conftest.$ac_objext
7292 if { (ac_try="$ac_compile"
7293 case "(($ac_try" in
7294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7295 *) ac_try_echo=$ac_try;;
7296 esac
7297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7298 (eval "$ac_compile") 2>conftest.er1
7299 ac_status=$?
7300 grep -v '^ *+' conftest.er1 >conftest.err
7301 rm -f conftest.er1
7302 cat conftest.err >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } && {
7305 test -z "$ac_c_werror_flag" ||
7306 test ! -s conftest.err
7307 } && test -s conftest.$ac_objext; then
7308 ac_cv_member_struct_utmp_ut_tv=yes
7309 else
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7313 ac_cv_member_struct_utmp_ut_tv=no
7316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7321 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_tv" >&5
7322 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_tv" >&6; }
7323 if test $ac_cv_member_struct_utmp_ut_tv = yes; then
7325 cat >>confdefs.h <<_ACEOF
7326 #define HAVE_STRUCT_UTMP_UT_TV 1
7327 _ACEOF
7331 { echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
7332 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6; }
7333 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 else
7336 cat >conftest.$ac_ext <<_ACEOF
7337 /* confdefs.h. */
7338 _ACEOF
7339 cat confdefs.h >>conftest.$ac_ext
7340 cat >>conftest.$ac_ext <<_ACEOF
7341 /* end confdefs.h. */
7343 #include <sys/types.h>
7344 #if HAVE_UTMP_H
7345 #include <utmp.h>
7346 #endif
7350 main ()
7352 static struct utmp ac_aggr;
7353 if (ac_aggr.ut_id)
7354 return 0;
7356 return 0;
7358 _ACEOF
7359 rm -f conftest.$ac_objext
7360 if { (ac_try="$ac_compile"
7361 case "(($ac_try" in
7362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7363 *) ac_try_echo=$ac_try;;
7364 esac
7365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7366 (eval "$ac_compile") 2>conftest.er1
7367 ac_status=$?
7368 grep -v '^ *+' conftest.er1 >conftest.err
7369 rm -f conftest.er1
7370 cat conftest.err >&5
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); } && {
7373 test -z "$ac_c_werror_flag" ||
7374 test ! -s conftest.err
7375 } && test -s conftest.$ac_objext; then
7376 ac_cv_member_struct_utmp_ut_id=yes
7377 else
7378 echo "$as_me: failed program was:" >&5
7379 sed 's/^/| /' conftest.$ac_ext >&5
7381 cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h. */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7388 #include <sys/types.h>
7389 #if HAVE_UTMP_H
7390 #include <utmp.h>
7391 #endif
7395 main ()
7397 static struct utmp ac_aggr;
7398 if (sizeof ac_aggr.ut_id)
7399 return 0;
7401 return 0;
7403 _ACEOF
7404 rm -f conftest.$ac_objext
7405 if { (ac_try="$ac_compile"
7406 case "(($ac_try" in
7407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7408 *) ac_try_echo=$ac_try;;
7409 esac
7410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7411 (eval "$ac_compile") 2>conftest.er1
7412 ac_status=$?
7413 grep -v '^ *+' conftest.er1 >conftest.err
7414 rm -f conftest.er1
7415 cat conftest.err >&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); } && {
7418 test -z "$ac_c_werror_flag" ||
7419 test ! -s conftest.err
7420 } && test -s conftest.$ac_objext; then
7421 ac_cv_member_struct_utmp_ut_id=yes
7422 else
7423 echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.$ac_ext >&5
7426 ac_cv_member_struct_utmp_ut_id=no
7429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
7435 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6; }
7436 if test $ac_cv_member_struct_utmp_ut_id = yes; then
7438 cat >>confdefs.h <<_ACEOF
7439 #define HAVE_STRUCT_UTMP_UT_ID 1
7440 _ACEOF
7444 { echo "$as_me:$LINENO: checking for struct utmp.ut_addr" >&5
7445 echo $ECHO_N "checking for struct utmp.ut_addr... $ECHO_C" >&6; }
7446 if test "${ac_cv_member_struct_utmp_ut_addr+set}" = set; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7448 else
7449 cat >conftest.$ac_ext <<_ACEOF
7450 /* confdefs.h. */
7451 _ACEOF
7452 cat confdefs.h >>conftest.$ac_ext
7453 cat >>conftest.$ac_ext <<_ACEOF
7454 /* end confdefs.h. */
7456 #include <sys/types.h>
7457 #if HAVE_UTMP_H
7458 #include <utmp.h>
7459 #endif
7463 main ()
7465 static struct utmp ac_aggr;
7466 if (ac_aggr.ut_addr)
7467 return 0;
7469 return 0;
7471 _ACEOF
7472 rm -f conftest.$ac_objext
7473 if { (ac_try="$ac_compile"
7474 case "(($ac_try" in
7475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7476 *) ac_try_echo=$ac_try;;
7477 esac
7478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7479 (eval "$ac_compile") 2>conftest.er1
7480 ac_status=$?
7481 grep -v '^ *+' conftest.er1 >conftest.err
7482 rm -f conftest.er1
7483 cat conftest.err >&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } && {
7486 test -z "$ac_c_werror_flag" ||
7487 test ! -s conftest.err
7488 } && test -s conftest.$ac_objext; then
7489 ac_cv_member_struct_utmp_ut_addr=yes
7490 else
7491 echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7494 cat >conftest.$ac_ext <<_ACEOF
7495 /* confdefs.h. */
7496 _ACEOF
7497 cat confdefs.h >>conftest.$ac_ext
7498 cat >>conftest.$ac_ext <<_ACEOF
7499 /* end confdefs.h. */
7501 #include <sys/types.h>
7502 #if HAVE_UTMP_H
7503 #include <utmp.h>
7504 #endif
7508 main ()
7510 static struct utmp ac_aggr;
7511 if (sizeof ac_aggr.ut_addr)
7512 return 0;
7514 return 0;
7516 _ACEOF
7517 rm -f conftest.$ac_objext
7518 if { (ac_try="$ac_compile"
7519 case "(($ac_try" in
7520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7521 *) ac_try_echo=$ac_try;;
7522 esac
7523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7524 (eval "$ac_compile") 2>conftest.er1
7525 ac_status=$?
7526 grep -v '^ *+' conftest.er1 >conftest.err
7527 rm -f conftest.er1
7528 cat conftest.err >&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); } && {
7531 test -z "$ac_c_werror_flag" ||
7532 test ! -s conftest.err
7533 } && test -s conftest.$ac_objext; then
7534 ac_cv_member_struct_utmp_ut_addr=yes
7535 else
7536 echo "$as_me: failed program was:" >&5
7537 sed 's/^/| /' conftest.$ac_ext >&5
7539 ac_cv_member_struct_utmp_ut_addr=no
7542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7547 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_addr" >&5
7548 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_addr" >&6; }
7549 if test $ac_cv_member_struct_utmp_ut_addr = yes; then
7551 cat >>confdefs.h <<_ACEOF
7552 #define HAVE_STRUCT_UTMP_UT_ADDR 1
7553 _ACEOF
7557 { echo "$as_me:$LINENO: checking for struct utmp.ut_addr_v6" >&5
7558 echo $ECHO_N "checking for struct utmp.ut_addr_v6... $ECHO_C" >&6; }
7559 if test "${ac_cv_member_struct_utmp_ut_addr_v6+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562 cat >conftest.$ac_ext <<_ACEOF
7563 /* confdefs.h. */
7564 _ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7569 #include <sys/types.h>
7570 #if HAVE_UTMP_H
7571 #include <utmp.h>
7572 #endif
7576 main ()
7578 static struct utmp ac_aggr;
7579 if (ac_aggr.ut_addr_v6)
7580 return 0;
7582 return 0;
7584 _ACEOF
7585 rm -f conftest.$ac_objext
7586 if { (ac_try="$ac_compile"
7587 case "(($ac_try" in
7588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7589 *) ac_try_echo=$ac_try;;
7590 esac
7591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7592 (eval "$ac_compile") 2>conftest.er1
7593 ac_status=$?
7594 grep -v '^ *+' conftest.er1 >conftest.err
7595 rm -f conftest.er1
7596 cat conftest.err >&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); } && {
7599 test -z "$ac_c_werror_flag" ||
7600 test ! -s conftest.err
7601 } && test -s conftest.$ac_objext; then
7602 ac_cv_member_struct_utmp_ut_addr_v6=yes
7603 else
7604 echo "$as_me: failed program was:" >&5
7605 sed 's/^/| /' conftest.$ac_ext >&5
7607 cat >conftest.$ac_ext <<_ACEOF
7608 /* confdefs.h. */
7609 _ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7614 #include <sys/types.h>
7615 #if HAVE_UTMP_H
7616 #include <utmp.h>
7617 #endif
7621 main ()
7623 static struct utmp ac_aggr;
7624 if (sizeof ac_aggr.ut_addr_v6)
7625 return 0;
7627 return 0;
7629 _ACEOF
7630 rm -f conftest.$ac_objext
7631 if { (ac_try="$ac_compile"
7632 case "(($ac_try" in
7633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7634 *) ac_try_echo=$ac_try;;
7635 esac
7636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7637 (eval "$ac_compile") 2>conftest.er1
7638 ac_status=$?
7639 grep -v '^ *+' conftest.er1 >conftest.err
7640 rm -f conftest.er1
7641 cat conftest.err >&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); } && {
7644 test -z "$ac_c_werror_flag" ||
7645 test ! -s conftest.err
7646 } && test -s conftest.$ac_objext; then
7647 ac_cv_member_struct_utmp_ut_addr_v6=yes
7648 else
7649 echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7652 ac_cv_member_struct_utmp_ut_addr_v6=no
7655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7660 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_addr_v6" >&5
7661 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_addr_v6" >&6; }
7662 if test $ac_cv_member_struct_utmp_ut_addr_v6 = yes; then
7664 cat >>confdefs.h <<_ACEOF
7665 #define HAVE_STRUCT_UTMP_UT_ADDR_V6 1
7666 _ACEOF
7670 { echo "$as_me:$LINENO: checking for struct utmp.ut_exit" >&5
7671 echo $ECHO_N "checking for struct utmp.ut_exit... $ECHO_C" >&6; }
7672 if test "${ac_cv_member_struct_utmp_ut_exit+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7674 else
7675 cat >conftest.$ac_ext <<_ACEOF
7676 /* confdefs.h. */
7677 _ACEOF
7678 cat confdefs.h >>conftest.$ac_ext
7679 cat >>conftest.$ac_ext <<_ACEOF
7680 /* end confdefs.h. */
7682 #include <sys/types.h>
7683 #if HAVE_UTMP_H
7684 #include <utmp.h>
7685 #endif
7689 main ()
7691 static struct utmp ac_aggr;
7692 if (ac_aggr.ut_exit)
7693 return 0;
7695 return 0;
7697 _ACEOF
7698 rm -f conftest.$ac_objext
7699 if { (ac_try="$ac_compile"
7700 case "(($ac_try" in
7701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7702 *) ac_try_echo=$ac_try;;
7703 esac
7704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7705 (eval "$ac_compile") 2>conftest.er1
7706 ac_status=$?
7707 grep -v '^ *+' conftest.er1 >conftest.err
7708 rm -f conftest.er1
7709 cat conftest.err >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } && {
7712 test -z "$ac_c_werror_flag" ||
7713 test ! -s conftest.err
7714 } && test -s conftest.$ac_objext; then
7715 ac_cv_member_struct_utmp_ut_exit=yes
7716 else
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7720 cat >conftest.$ac_ext <<_ACEOF
7721 /* confdefs.h. */
7722 _ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7727 #include <sys/types.h>
7728 #if HAVE_UTMP_H
7729 #include <utmp.h>
7730 #endif
7734 main ()
7736 static struct utmp ac_aggr;
7737 if (sizeof ac_aggr.ut_exit)
7738 return 0;
7740 return 0;
7742 _ACEOF
7743 rm -f conftest.$ac_objext
7744 if { (ac_try="$ac_compile"
7745 case "(($ac_try" in
7746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7747 *) ac_try_echo=$ac_try;;
7748 esac
7749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7750 (eval "$ac_compile") 2>conftest.er1
7751 ac_status=$?
7752 grep -v '^ *+' conftest.er1 >conftest.err
7753 rm -f conftest.er1
7754 cat conftest.err >&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); } && {
7757 test -z "$ac_c_werror_flag" ||
7758 test ! -s conftest.err
7759 } && test -s conftest.$ac_objext; then
7760 ac_cv_member_struct_utmp_ut_exit=yes
7761 else
7762 echo "$as_me: failed program was:" >&5
7763 sed 's/^/| /' conftest.$ac_ext >&5
7765 ac_cv_member_struct_utmp_ut_exit=no
7768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7773 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit" >&5
7774 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit" >&6; }
7775 if test $ac_cv_member_struct_utmp_ut_exit = yes; then
7777 cat >>confdefs.h <<_ACEOF
7778 #define HAVE_STRUCT_UTMP_UT_EXIT 1
7779 _ACEOF
7783 { echo "$as_me:$LINENO: checking for struct utmp.ut_time" >&5
7784 echo $ECHO_N "checking for struct utmp.ut_time... $ECHO_C" >&6; }
7785 if test "${ac_cv_member_struct_utmp_ut_time+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 else
7788 cat >conftest.$ac_ext <<_ACEOF
7789 /* confdefs.h. */
7790 _ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7795 #include <sys/types.h>
7796 #if HAVE_UTMP_H
7797 #include <utmp.h>
7798 #endif
7802 main ()
7804 static struct utmp ac_aggr;
7805 if (ac_aggr.ut_time)
7806 return 0;
7808 return 0;
7810 _ACEOF
7811 rm -f conftest.$ac_objext
7812 if { (ac_try="$ac_compile"
7813 case "(($ac_try" in
7814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7815 *) ac_try_echo=$ac_try;;
7816 esac
7817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7818 (eval "$ac_compile") 2>conftest.er1
7819 ac_status=$?
7820 grep -v '^ *+' conftest.er1 >conftest.err
7821 rm -f conftest.er1
7822 cat conftest.err >&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } && {
7825 test -z "$ac_c_werror_flag" ||
7826 test ! -s conftest.err
7827 } && test -s conftest.$ac_objext; then
7828 ac_cv_member_struct_utmp_ut_time=yes
7829 else
7830 echo "$as_me: failed program was:" >&5
7831 sed 's/^/| /' conftest.$ac_ext >&5
7833 cat >conftest.$ac_ext <<_ACEOF
7834 /* confdefs.h. */
7835 _ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h. */
7840 #include <sys/types.h>
7841 #if HAVE_UTMP_H
7842 #include <utmp.h>
7843 #endif
7847 main ()
7849 static struct utmp ac_aggr;
7850 if (sizeof ac_aggr.ut_time)
7851 return 0;
7853 return 0;
7855 _ACEOF
7856 rm -f conftest.$ac_objext
7857 if { (ac_try="$ac_compile"
7858 case "(($ac_try" in
7859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860 *) ac_try_echo=$ac_try;;
7861 esac
7862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7863 (eval "$ac_compile") 2>conftest.er1
7864 ac_status=$?
7865 grep -v '^ *+' conftest.er1 >conftest.err
7866 rm -f conftest.er1
7867 cat conftest.err >&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } && {
7870 test -z "$ac_c_werror_flag" ||
7871 test ! -s conftest.err
7872 } && test -s conftest.$ac_objext; then
7873 ac_cv_member_struct_utmp_ut_time=yes
7874 else
7875 echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7878 ac_cv_member_struct_utmp_ut_time=no
7881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7886 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_time" >&5
7887 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_time" >&6; }
7888 if test $ac_cv_member_struct_utmp_ut_time = yes; then
7890 cat >>confdefs.h <<_ACEOF
7891 #define HAVE_STRUCT_UTMP_UT_TIME 1
7892 _ACEOF
7898 { echo "$as_me:$LINENO: checking for struct utmpx.ut_host" >&5
7899 echo $ECHO_N "checking for struct utmpx.ut_host... $ECHO_C" >&6; }
7900 if test "${ac_cv_member_struct_utmpx_ut_host+set}" = set; then
7901 echo $ECHO_N "(cached) $ECHO_C" >&6
7902 else
7903 cat >conftest.$ac_ext <<_ACEOF
7904 /* confdefs.h. */
7905 _ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7910 #include <sys/types.h>
7911 #include <sys/socket.h>
7912 #if HAVE_UTMPX_H
7913 #include <utmpx.h>
7914 #endif
7918 main ()
7920 static struct utmpx ac_aggr;
7921 if (ac_aggr.ut_host)
7922 return 0;
7924 return 0;
7926 _ACEOF
7927 rm -f conftest.$ac_objext
7928 if { (ac_try="$ac_compile"
7929 case "(($ac_try" in
7930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7931 *) ac_try_echo=$ac_try;;
7932 esac
7933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7934 (eval "$ac_compile") 2>conftest.er1
7935 ac_status=$?
7936 grep -v '^ *+' conftest.er1 >conftest.err
7937 rm -f conftest.er1
7938 cat conftest.err >&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); } && {
7941 test -z "$ac_c_werror_flag" ||
7942 test ! -s conftest.err
7943 } && test -s conftest.$ac_objext; then
7944 ac_cv_member_struct_utmpx_ut_host=yes
7945 else
7946 echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7949 cat >conftest.$ac_ext <<_ACEOF
7950 /* confdefs.h. */
7951 _ACEOF
7952 cat confdefs.h >>conftest.$ac_ext
7953 cat >>conftest.$ac_ext <<_ACEOF
7954 /* end confdefs.h. */
7956 #include <sys/types.h>
7957 #include <sys/socket.h>
7958 #if HAVE_UTMPX_H
7959 #include <utmpx.h>
7960 #endif
7964 main ()
7966 static struct utmpx ac_aggr;
7967 if (sizeof ac_aggr.ut_host)
7968 return 0;
7970 return 0;
7972 _ACEOF
7973 rm -f conftest.$ac_objext
7974 if { (ac_try="$ac_compile"
7975 case "(($ac_try" in
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7978 esac
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980 (eval "$ac_compile") 2>conftest.er1
7981 ac_status=$?
7982 grep -v '^ *+' conftest.er1 >conftest.err
7983 rm -f conftest.er1
7984 cat conftest.err >&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); } && {
7987 test -z "$ac_c_werror_flag" ||
7988 test ! -s conftest.err
7989 } && test -s conftest.$ac_objext; then
7990 ac_cv_member_struct_utmpx_ut_host=yes
7991 else
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7995 ac_cv_member_struct_utmpx_ut_host=no
7998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8003 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_host" >&5
8004 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_host" >&6; }
8005 if test $ac_cv_member_struct_utmpx_ut_host = yes; then
8007 cat >>confdefs.h <<_ACEOF
8008 #define HAVE_STRUCT_UTMPX_UT_HOST 1
8009 _ACEOF
8013 { echo "$as_me:$LINENO: checking for struct utmpx.ut_syslen" >&5
8014 echo $ECHO_N "checking for struct utmpx.ut_syslen... $ECHO_C" >&6; }
8015 if test "${ac_cv_member_struct_utmpx_ut_syslen+set}" = set; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 else
8018 cat >conftest.$ac_ext <<_ACEOF
8019 /* confdefs.h. */
8020 _ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8025 #include <sys/types.h>
8026 #include <sys/socket.h>
8027 #if HAVE_UTMPX_H
8028 #include <utmpx.h>
8029 #endif
8033 main ()
8035 static struct utmpx ac_aggr;
8036 if (ac_aggr.ut_syslen)
8037 return 0;
8039 return 0;
8041 _ACEOF
8042 rm -f conftest.$ac_objext
8043 if { (ac_try="$ac_compile"
8044 case "(($ac_try" in
8045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046 *) ac_try_echo=$ac_try;;
8047 esac
8048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049 (eval "$ac_compile") 2>conftest.er1
8050 ac_status=$?
8051 grep -v '^ *+' conftest.er1 >conftest.err
8052 rm -f conftest.er1
8053 cat conftest.err >&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } && {
8056 test -z "$ac_c_werror_flag" ||
8057 test ! -s conftest.err
8058 } && test -s conftest.$ac_objext; then
8059 ac_cv_member_struct_utmpx_ut_syslen=yes
8060 else
8061 echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.$ac_ext >&5
8064 cat >conftest.$ac_ext <<_ACEOF
8065 /* confdefs.h. */
8066 _ACEOF
8067 cat confdefs.h >>conftest.$ac_ext
8068 cat >>conftest.$ac_ext <<_ACEOF
8069 /* end confdefs.h. */
8071 #include <sys/types.h>
8072 #include <sys/socket.h>
8073 #if HAVE_UTMPX_H
8074 #include <utmpx.h>
8075 #endif
8079 main ()
8081 static struct utmpx ac_aggr;
8082 if (sizeof ac_aggr.ut_syslen)
8083 return 0;
8085 return 0;
8087 _ACEOF
8088 rm -f conftest.$ac_objext
8089 if { (ac_try="$ac_compile"
8090 case "(($ac_try" in
8091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8092 *) ac_try_echo=$ac_try;;
8093 esac
8094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8095 (eval "$ac_compile") 2>conftest.er1
8096 ac_status=$?
8097 grep -v '^ *+' conftest.er1 >conftest.err
8098 rm -f conftest.er1
8099 cat conftest.err >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); } && {
8102 test -z "$ac_c_werror_flag" ||
8103 test ! -s conftest.err
8104 } && test -s conftest.$ac_objext; then
8105 ac_cv_member_struct_utmpx_ut_syslen=yes
8106 else
8107 echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8110 ac_cv_member_struct_utmpx_ut_syslen=no
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8118 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_syslen" >&5
8119 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_syslen" >&6; }
8120 if test $ac_cv_member_struct_utmpx_ut_syslen = yes; then
8122 cat >>confdefs.h <<_ACEOF
8123 #define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
8124 _ACEOF
8128 { echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
8129 echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6; }
8130 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8132 else
8133 cat >conftest.$ac_ext <<_ACEOF
8134 /* confdefs.h. */
8135 _ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h. */
8140 #include <sys/types.h>
8141 #include <sys/socket.h>
8142 #if HAVE_UTMPX_H
8143 #include <utmpx.h>
8144 #endif
8148 main ()
8150 static struct utmpx ac_aggr;
8151 if (ac_aggr.ut_type)
8152 return 0;
8154 return 0;
8156 _ACEOF
8157 rm -f conftest.$ac_objext
8158 if { (ac_try="$ac_compile"
8159 case "(($ac_try" in
8160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8161 *) ac_try_echo=$ac_try;;
8162 esac
8163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8164 (eval "$ac_compile") 2>conftest.er1
8165 ac_status=$?
8166 grep -v '^ *+' conftest.er1 >conftest.err
8167 rm -f conftest.er1
8168 cat conftest.err >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); } && {
8171 test -z "$ac_c_werror_flag" ||
8172 test ! -s conftest.err
8173 } && test -s conftest.$ac_objext; then
8174 ac_cv_member_struct_utmpx_ut_type=yes
8175 else
8176 echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8179 cat >conftest.$ac_ext <<_ACEOF
8180 /* confdefs.h. */
8181 _ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h. */
8186 #include <sys/types.h>
8187 #include <sys/socket.h>
8188 #if HAVE_UTMPX_H
8189 #include <utmpx.h>
8190 #endif
8194 main ()
8196 static struct utmpx ac_aggr;
8197 if (sizeof ac_aggr.ut_type)
8198 return 0;
8200 return 0;
8202 _ACEOF
8203 rm -f conftest.$ac_objext
8204 if { (ac_try="$ac_compile"
8205 case "(($ac_try" in
8206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207 *) ac_try_echo=$ac_try;;
8208 esac
8209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8210 (eval "$ac_compile") 2>conftest.er1
8211 ac_status=$?
8212 grep -v '^ *+' conftest.er1 >conftest.err
8213 rm -f conftest.er1
8214 cat conftest.err >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); } && {
8217 test -z "$ac_c_werror_flag" ||
8218 test ! -s conftest.err
8219 } && test -s conftest.$ac_objext; then
8220 ac_cv_member_struct_utmpx_ut_type=yes
8221 else
8222 echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8225 ac_cv_member_struct_utmpx_ut_type=no
8228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8233 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
8234 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6; }
8235 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
8237 cat >>confdefs.h <<_ACEOF
8238 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
8239 _ACEOF
8243 { echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
8244 echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6; }
8245 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
8247 else
8248 cat >conftest.$ac_ext <<_ACEOF
8249 /* confdefs.h. */
8250 _ACEOF
8251 cat confdefs.h >>conftest.$ac_ext
8252 cat >>conftest.$ac_ext <<_ACEOF
8253 /* end confdefs.h. */
8255 #include <sys/types.h>
8256 #include <sys/socket.h>
8257 #if HAVE_UTMPX_H
8258 #include <utmpx.h>
8259 #endif
8263 main ()
8265 static struct utmpx ac_aggr;
8266 if (ac_aggr.ut_id)
8267 return 0;
8269 return 0;
8271 _ACEOF
8272 rm -f conftest.$ac_objext
8273 if { (ac_try="$ac_compile"
8274 case "(($ac_try" in
8275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276 *) ac_try_echo=$ac_try;;
8277 esac
8278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279 (eval "$ac_compile") 2>conftest.er1
8280 ac_status=$?
8281 grep -v '^ *+' conftest.er1 >conftest.err
8282 rm -f conftest.er1
8283 cat conftest.err >&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } && {
8286 test -z "$ac_c_werror_flag" ||
8287 test ! -s conftest.err
8288 } && test -s conftest.$ac_objext; then
8289 ac_cv_member_struct_utmpx_ut_id=yes
8290 else
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8294 cat >conftest.$ac_ext <<_ACEOF
8295 /* confdefs.h. */
8296 _ACEOF
8297 cat confdefs.h >>conftest.$ac_ext
8298 cat >>conftest.$ac_ext <<_ACEOF
8299 /* end confdefs.h. */
8301 #include <sys/types.h>
8302 #include <sys/socket.h>
8303 #if HAVE_UTMPX_H
8304 #include <utmpx.h>
8305 #endif
8309 main ()
8311 static struct utmpx ac_aggr;
8312 if (sizeof ac_aggr.ut_id)
8313 return 0;
8315 return 0;
8317 _ACEOF
8318 rm -f conftest.$ac_objext
8319 if { (ac_try="$ac_compile"
8320 case "(($ac_try" in
8321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8322 *) ac_try_echo=$ac_try;;
8323 esac
8324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8325 (eval "$ac_compile") 2>conftest.er1
8326 ac_status=$?
8327 grep -v '^ *+' conftest.er1 >conftest.err
8328 rm -f conftest.er1
8329 cat conftest.err >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } && {
8332 test -z "$ac_c_werror_flag" ||
8333 test ! -s conftest.err
8334 } && test -s conftest.$ac_objext; then
8335 ac_cv_member_struct_utmpx_ut_id=yes
8336 else
8337 echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8340 ac_cv_member_struct_utmpx_ut_id=no
8343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8348 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
8349 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6; }
8350 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
8352 cat >>confdefs.h <<_ACEOF
8353 #define HAVE_STRUCT_UTMPX_UT_ID 1
8354 _ACEOF
8358 { echo "$as_me:$LINENO: checking for struct utmpx.ut_addr" >&5
8359 echo $ECHO_N "checking for struct utmpx.ut_addr... $ECHO_C" >&6; }
8360 if test "${ac_cv_member_struct_utmpx_ut_addr+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8362 else
8363 cat >conftest.$ac_ext <<_ACEOF
8364 /* confdefs.h. */
8365 _ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h. */
8370 #include <sys/types.h>
8371 #include <sys/socket.h>
8372 #if HAVE_UTMPX_H
8373 #include <utmpx.h>
8374 #endif
8378 main ()
8380 static struct utmpx ac_aggr;
8381 if (ac_aggr.ut_addr)
8382 return 0;
8384 return 0;
8386 _ACEOF
8387 rm -f conftest.$ac_objext
8388 if { (ac_try="$ac_compile"
8389 case "(($ac_try" in
8390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391 *) ac_try_echo=$ac_try;;
8392 esac
8393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8394 (eval "$ac_compile") 2>conftest.er1
8395 ac_status=$?
8396 grep -v '^ *+' conftest.er1 >conftest.err
8397 rm -f conftest.er1
8398 cat conftest.err >&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); } && {
8401 test -z "$ac_c_werror_flag" ||
8402 test ! -s conftest.err
8403 } && test -s conftest.$ac_objext; then
8404 ac_cv_member_struct_utmpx_ut_addr=yes
8405 else
8406 echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8409 cat >conftest.$ac_ext <<_ACEOF
8410 /* confdefs.h. */
8411 _ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h. */
8416 #include <sys/types.h>
8417 #include <sys/socket.h>
8418 #if HAVE_UTMPX_H
8419 #include <utmpx.h>
8420 #endif
8424 main ()
8426 static struct utmpx ac_aggr;
8427 if (sizeof ac_aggr.ut_addr)
8428 return 0;
8430 return 0;
8432 _ACEOF
8433 rm -f conftest.$ac_objext
8434 if { (ac_try="$ac_compile"
8435 case "(($ac_try" in
8436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437 *) ac_try_echo=$ac_try;;
8438 esac
8439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440 (eval "$ac_compile") 2>conftest.er1
8441 ac_status=$?
8442 grep -v '^ *+' conftest.er1 >conftest.err
8443 rm -f conftest.er1
8444 cat conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } && {
8447 test -z "$ac_c_werror_flag" ||
8448 test ! -s conftest.err
8449 } && test -s conftest.$ac_objext; then
8450 ac_cv_member_struct_utmpx_ut_addr=yes
8451 else
8452 echo "$as_me: failed program was:" >&5
8453 sed 's/^/| /' conftest.$ac_ext >&5
8455 ac_cv_member_struct_utmpx_ut_addr=no
8458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8463 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_addr" >&5
8464 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_addr" >&6; }
8465 if test $ac_cv_member_struct_utmpx_ut_addr = yes; then
8467 cat >>confdefs.h <<_ACEOF
8468 #define HAVE_STRUCT_UTMPX_UT_ADDR 1
8469 _ACEOF
8473 { echo "$as_me:$LINENO: checking for struct utmpx.ut_addr_v6" >&5
8474 echo $ECHO_N "checking for struct utmpx.ut_addr_v6... $ECHO_C" >&6; }
8475 if test "${ac_cv_member_struct_utmpx_ut_addr_v6+set}" = set; then
8476 echo $ECHO_N "(cached) $ECHO_C" >&6
8477 else
8478 cat >conftest.$ac_ext <<_ACEOF
8479 /* confdefs.h. */
8480 _ACEOF
8481 cat confdefs.h >>conftest.$ac_ext
8482 cat >>conftest.$ac_ext <<_ACEOF
8483 /* end confdefs.h. */
8485 #include <sys/types.h>
8486 #include <sys/socket.h>
8487 #if HAVE_UTMPX_H
8488 #include <utmpx.h>
8489 #endif
8493 main ()
8495 static struct utmpx ac_aggr;
8496 if (ac_aggr.ut_addr_v6)
8497 return 0;
8499 return 0;
8501 _ACEOF
8502 rm -f conftest.$ac_objext
8503 if { (ac_try="$ac_compile"
8504 case "(($ac_try" in
8505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8506 *) ac_try_echo=$ac_try;;
8507 esac
8508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8509 (eval "$ac_compile") 2>conftest.er1
8510 ac_status=$?
8511 grep -v '^ *+' conftest.er1 >conftest.err
8512 rm -f conftest.er1
8513 cat conftest.err >&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); } && {
8516 test -z "$ac_c_werror_flag" ||
8517 test ! -s conftest.err
8518 } && test -s conftest.$ac_objext; then
8519 ac_cv_member_struct_utmpx_ut_addr_v6=yes
8520 else
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8524 cat >conftest.$ac_ext <<_ACEOF
8525 /* confdefs.h. */
8526 _ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h. */
8531 #include <sys/types.h>
8532 #include <sys/socket.h>
8533 #if HAVE_UTMPX_H
8534 #include <utmpx.h>
8535 #endif
8539 main ()
8541 static struct utmpx ac_aggr;
8542 if (sizeof ac_aggr.ut_addr_v6)
8543 return 0;
8545 return 0;
8547 _ACEOF
8548 rm -f conftest.$ac_objext
8549 if { (ac_try="$ac_compile"
8550 case "(($ac_try" in
8551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552 *) ac_try_echo=$ac_try;;
8553 esac
8554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8555 (eval "$ac_compile") 2>conftest.er1
8556 ac_status=$?
8557 grep -v '^ *+' conftest.er1 >conftest.err
8558 rm -f conftest.er1
8559 cat conftest.err >&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); } && {
8562 test -z "$ac_c_werror_flag" ||
8563 test ! -s conftest.err
8564 } && test -s conftest.$ac_objext; then
8565 ac_cv_member_struct_utmpx_ut_addr_v6=yes
8566 else
8567 echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.$ac_ext >&5
8570 ac_cv_member_struct_utmpx_ut_addr_v6=no
8573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8578 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_addr_v6" >&5
8579 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_addr_v6" >&6; }
8580 if test $ac_cv_member_struct_utmpx_ut_addr_v6 = yes; then
8582 cat >>confdefs.h <<_ACEOF
8583 #define HAVE_STRUCT_UTMPX_UT_ADDR_V6 1
8584 _ACEOF
8588 { echo "$as_me:$LINENO: checking for struct utmpx.ut_time" >&5
8589 echo $ECHO_N "checking for struct utmpx.ut_time... $ECHO_C" >&6; }
8590 if test "${ac_cv_member_struct_utmpx_ut_time+set}" = set; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8592 else
8593 cat >conftest.$ac_ext <<_ACEOF
8594 /* confdefs.h. */
8595 _ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h. */
8600 #include <sys/types.h>
8601 #include <sys/socket.h>
8602 #if HAVE_UTMPX_H
8603 #include <utmpx.h>
8604 #endif
8608 main ()
8610 static struct utmpx ac_aggr;
8611 if (ac_aggr.ut_time)
8612 return 0;
8614 return 0;
8616 _ACEOF
8617 rm -f conftest.$ac_objext
8618 if { (ac_try="$ac_compile"
8619 case "(($ac_try" in
8620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8621 *) ac_try_echo=$ac_try;;
8622 esac
8623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8624 (eval "$ac_compile") 2>conftest.er1
8625 ac_status=$?
8626 grep -v '^ *+' conftest.er1 >conftest.err
8627 rm -f conftest.er1
8628 cat conftest.err >&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); } && {
8631 test -z "$ac_c_werror_flag" ||
8632 test ! -s conftest.err
8633 } && test -s conftest.$ac_objext; then
8634 ac_cv_member_struct_utmpx_ut_time=yes
8635 else
8636 echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8639 cat >conftest.$ac_ext <<_ACEOF
8640 /* confdefs.h. */
8641 _ACEOF
8642 cat confdefs.h >>conftest.$ac_ext
8643 cat >>conftest.$ac_ext <<_ACEOF
8644 /* end confdefs.h. */
8646 #include <sys/types.h>
8647 #include <sys/socket.h>
8648 #if HAVE_UTMPX_H
8649 #include <utmpx.h>
8650 #endif
8654 main ()
8656 static struct utmpx ac_aggr;
8657 if (sizeof ac_aggr.ut_time)
8658 return 0;
8660 return 0;
8662 _ACEOF
8663 rm -f conftest.$ac_objext
8664 if { (ac_try="$ac_compile"
8665 case "(($ac_try" in
8666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667 *) ac_try_echo=$ac_try;;
8668 esac
8669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8670 (eval "$ac_compile") 2>conftest.er1
8671 ac_status=$?
8672 grep -v '^ *+' conftest.er1 >conftest.err
8673 rm -f conftest.er1
8674 cat conftest.err >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); } && {
8677 test -z "$ac_c_werror_flag" ||
8678 test ! -s conftest.err
8679 } && test -s conftest.$ac_objext; then
8680 ac_cv_member_struct_utmpx_ut_time=yes
8681 else
8682 echo "$as_me: failed program was:" >&5
8683 sed 's/^/| /' conftest.$ac_ext >&5
8685 ac_cv_member_struct_utmpx_ut_time=no
8688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8693 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_time" >&5
8694 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_time" >&6; }
8695 if test $ac_cv_member_struct_utmpx_ut_time = yes; then
8697 cat >>confdefs.h <<_ACEOF
8698 #define HAVE_STRUCT_UTMPX_UT_TIME 1
8699 _ACEOF
8703 { echo "$as_me:$LINENO: checking for struct utmpx.ut_tv" >&5
8704 echo $ECHO_N "checking for struct utmpx.ut_tv... $ECHO_C" >&6; }
8705 if test "${ac_cv_member_struct_utmpx_ut_tv+set}" = set; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8707 else
8708 cat >conftest.$ac_ext <<_ACEOF
8709 /* confdefs.h. */
8710 _ACEOF
8711 cat confdefs.h >>conftest.$ac_ext
8712 cat >>conftest.$ac_ext <<_ACEOF
8713 /* end confdefs.h. */
8715 #include <sys/types.h>
8716 #include <sys/socket.h>
8717 #if HAVE_UTMPX_H
8718 #include <utmpx.h>
8719 #endif
8723 main ()
8725 static struct utmpx ac_aggr;
8726 if (ac_aggr.ut_tv)
8727 return 0;
8729 return 0;
8731 _ACEOF
8732 rm -f conftest.$ac_objext
8733 if { (ac_try="$ac_compile"
8734 case "(($ac_try" in
8735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736 *) ac_try_echo=$ac_try;;
8737 esac
8738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739 (eval "$ac_compile") 2>conftest.er1
8740 ac_status=$?
8741 grep -v '^ *+' conftest.er1 >conftest.err
8742 rm -f conftest.er1
8743 cat conftest.err >&5
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); } && {
8746 test -z "$ac_c_werror_flag" ||
8747 test ! -s conftest.err
8748 } && test -s conftest.$ac_objext; then
8749 ac_cv_member_struct_utmpx_ut_tv=yes
8750 else
8751 echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8754 cat >conftest.$ac_ext <<_ACEOF
8755 /* confdefs.h. */
8756 _ACEOF
8757 cat confdefs.h >>conftest.$ac_ext
8758 cat >>conftest.$ac_ext <<_ACEOF
8759 /* end confdefs.h. */
8761 #include <sys/types.h>
8762 #include <sys/socket.h>
8763 #if HAVE_UTMPX_H
8764 #include <utmpx.h>
8765 #endif
8769 main ()
8771 static struct utmpx ac_aggr;
8772 if (sizeof ac_aggr.ut_tv)
8773 return 0;
8775 return 0;
8777 _ACEOF
8778 rm -f conftest.$ac_objext
8779 if { (ac_try="$ac_compile"
8780 case "(($ac_try" in
8781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8782 *) ac_try_echo=$ac_try;;
8783 esac
8784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8785 (eval "$ac_compile") 2>conftest.er1
8786 ac_status=$?
8787 grep -v '^ *+' conftest.er1 >conftest.err
8788 rm -f conftest.er1
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } && {
8792 test -z "$ac_c_werror_flag" ||
8793 test ! -s conftest.err
8794 } && test -s conftest.$ac_objext; then
8795 ac_cv_member_struct_utmpx_ut_tv=yes
8796 else
8797 echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8800 ac_cv_member_struct_utmpx_ut_tv=no
8803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8808 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_tv" >&5
8809 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_tv" >&6; }
8810 if test $ac_cv_member_struct_utmpx_ut_tv = yes; then
8812 cat >>confdefs.h <<_ACEOF
8813 #define HAVE_STRUCT_UTMPX_UT_TV 1
8814 _ACEOF
8820 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
8821 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
8822 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8824 else
8825 cat >conftest.$ac_ext <<_ACEOF
8826 /* confdefs.h. */
8827 _ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h. */
8832 #include <sys/types.h>
8833 #include <sys/socket.h>
8837 main ()
8839 static struct sockaddr_storage ac_aggr;
8840 if (ac_aggr.ss_family)
8841 return 0;
8843 return 0;
8845 _ACEOF
8846 rm -f conftest.$ac_objext
8847 if { (ac_try="$ac_compile"
8848 case "(($ac_try" in
8849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850 *) ac_try_echo=$ac_try;;
8851 esac
8852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853 (eval "$ac_compile") 2>conftest.er1
8854 ac_status=$?
8855 grep -v '^ *+' conftest.er1 >conftest.err
8856 rm -f conftest.er1
8857 cat conftest.err >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } && {
8860 test -z "$ac_c_werror_flag" ||
8861 test ! -s conftest.err
8862 } && test -s conftest.$ac_objext; then
8863 ac_cv_member_struct_sockaddr_storage_ss_family=yes
8864 else
8865 echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8868 cat >conftest.$ac_ext <<_ACEOF
8869 /* confdefs.h. */
8870 _ACEOF
8871 cat confdefs.h >>conftest.$ac_ext
8872 cat >>conftest.$ac_ext <<_ACEOF
8873 /* end confdefs.h. */
8875 #include <sys/types.h>
8876 #include <sys/socket.h>
8880 main ()
8882 static struct sockaddr_storage ac_aggr;
8883 if (sizeof ac_aggr.ss_family)
8884 return 0;
8886 return 0;
8888 _ACEOF
8889 rm -f conftest.$ac_objext
8890 if { (ac_try="$ac_compile"
8891 case "(($ac_try" in
8892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8893 *) ac_try_echo=$ac_try;;
8894 esac
8895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8896 (eval "$ac_compile") 2>conftest.er1
8897 ac_status=$?
8898 grep -v '^ *+' conftest.er1 >conftest.err
8899 rm -f conftest.er1
8900 cat conftest.err >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } && {
8903 test -z "$ac_c_werror_flag" ||
8904 test ! -s conftest.err
8905 } && test -s conftest.$ac_objext; then
8906 ac_cv_member_struct_sockaddr_storage_ss_family=yes
8907 else
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8911 ac_cv_member_struct_sockaddr_storage_ss_family=no
8914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8919 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
8920 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
8921 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
8923 cat >>confdefs.h <<_ACEOF
8924 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
8925 _ACEOF
8937 for ac_func in endutent getutent getutid getutline pututline setutent
8939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8940 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8943 echo $ECHO_N "(cached) $ECHO_C" >&6
8944 else
8945 cat >conftest.$ac_ext <<_ACEOF
8946 /* confdefs.h. */
8947 _ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h. */
8951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8953 #define $ac_func innocuous_$ac_func
8955 /* System header to define __stub macros and hopefully few prototypes,
8956 which can conflict with char $ac_func (); below.
8957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8958 <limits.h> exists even on freestanding compilers. */
8960 #ifdef __STDC__
8961 # include <limits.h>
8962 #else
8963 # include <assert.h>
8964 #endif
8966 #undef $ac_func
8968 /* Override any GCC internal prototype to avoid an error.
8969 Use char because int might match the return type of a GCC
8970 builtin and then its argument prototype would still apply. */
8971 #ifdef __cplusplus
8972 extern "C"
8973 #endif
8974 char $ac_func ();
8975 /* The GNU C library defines this for functions which it implements
8976 to always fail with ENOSYS. Some functions are actually named
8977 something starting with __ and the normal name is an alias. */
8978 #if defined __stub_$ac_func || defined __stub___$ac_func
8979 choke me
8980 #endif
8983 main ()
8985 return $ac_func ();
8987 return 0;
8989 _ACEOF
8990 rm -f conftest.$ac_objext conftest$ac_exeext
8991 if { (ac_try="$ac_link"
8992 case "(($ac_try" in
8993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994 *) ac_try_echo=$ac_try;;
8995 esac
8996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8997 (eval "$ac_link") 2>conftest.er1
8998 ac_status=$?
8999 grep -v '^ *+' conftest.er1 >conftest.err
9000 rm -f conftest.er1
9001 cat conftest.err >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } && {
9004 test -z "$ac_c_werror_flag" ||
9005 test ! -s conftest.err
9006 } && test -s conftest$ac_exeext &&
9007 $as_test_x conftest$ac_exeext; then
9008 eval "$as_ac_var=yes"
9009 else
9010 echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9013 eval "$as_ac_var=no"
9016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9017 conftest$ac_exeext conftest.$ac_ext
9019 ac_res=`eval echo '${'$as_ac_var'}'`
9020 { echo "$as_me:$LINENO: result: $ac_res" >&5
9021 echo "${ECHO_T}$ac_res" >&6; }
9022 if test `eval echo '${'$as_ac_var'}'` = yes; then
9023 cat >>confdefs.h <<_ACEOF
9024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9025 _ACEOF
9028 done
9031 for ac_func in utmpname
9033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9034 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9037 echo $ECHO_N "(cached) $ECHO_C" >&6
9038 else
9039 cat >conftest.$ac_ext <<_ACEOF
9040 /* confdefs.h. */
9041 _ACEOF
9042 cat confdefs.h >>conftest.$ac_ext
9043 cat >>conftest.$ac_ext <<_ACEOF
9044 /* end confdefs.h. */
9045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9047 #define $ac_func innocuous_$ac_func
9049 /* System header to define __stub macros and hopefully few prototypes,
9050 which can conflict with char $ac_func (); below.
9051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9052 <limits.h> exists even on freestanding compilers. */
9054 #ifdef __STDC__
9055 # include <limits.h>
9056 #else
9057 # include <assert.h>
9058 #endif
9060 #undef $ac_func
9062 /* Override any GCC internal prototype to avoid an error.
9063 Use char because int might match the return type of a GCC
9064 builtin and then its argument prototype would still apply. */
9065 #ifdef __cplusplus
9066 extern "C"
9067 #endif
9068 char $ac_func ();
9069 /* The GNU C library defines this for functions which it implements
9070 to always fail with ENOSYS. Some functions are actually named
9071 something starting with __ and the normal name is an alias. */
9072 #if defined __stub_$ac_func || defined __stub___$ac_func
9073 choke me
9074 #endif
9077 main ()
9079 return $ac_func ();
9081 return 0;
9083 _ACEOF
9084 rm -f conftest.$ac_objext conftest$ac_exeext
9085 if { (ac_try="$ac_link"
9086 case "(($ac_try" in
9087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9088 *) ac_try_echo=$ac_try;;
9089 esac
9090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9091 (eval "$ac_link") 2>conftest.er1
9092 ac_status=$?
9093 grep -v '^ *+' conftest.er1 >conftest.err
9094 rm -f conftest.er1
9095 cat conftest.err >&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); } && {
9098 test -z "$ac_c_werror_flag" ||
9099 test ! -s conftest.err
9100 } && test -s conftest$ac_exeext &&
9101 $as_test_x conftest$ac_exeext; then
9102 eval "$as_ac_var=yes"
9103 else
9104 echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9107 eval "$as_ac_var=no"
9110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9111 conftest$ac_exeext conftest.$ac_ext
9113 ac_res=`eval echo '${'$as_ac_var'}'`
9114 { echo "$as_me:$LINENO: result: $ac_res" >&5
9115 echo "${ECHO_T}$ac_res" >&6; }
9116 if test `eval echo '${'$as_ac_var'}'` = yes; then
9117 cat >>confdefs.h <<_ACEOF
9118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9119 _ACEOF
9122 done
9129 for ac_func in endutxent getutxent getutxid getutxline pututxline
9131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9132 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9135 echo $ECHO_N "(cached) $ECHO_C" >&6
9136 else
9137 cat >conftest.$ac_ext <<_ACEOF
9138 /* confdefs.h. */
9139 _ACEOF
9140 cat confdefs.h >>conftest.$ac_ext
9141 cat >>conftest.$ac_ext <<_ACEOF
9142 /* end confdefs.h. */
9143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9145 #define $ac_func innocuous_$ac_func
9147 /* System header to define __stub macros and hopefully few prototypes,
9148 which can conflict with char $ac_func (); below.
9149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9150 <limits.h> exists even on freestanding compilers. */
9152 #ifdef __STDC__
9153 # include <limits.h>
9154 #else
9155 # include <assert.h>
9156 #endif
9158 #undef $ac_func
9160 /* Override any GCC internal prototype to avoid an error.
9161 Use char because int might match the return type of a GCC
9162 builtin and then its argument prototype would still apply. */
9163 #ifdef __cplusplus
9164 extern "C"
9165 #endif
9166 char $ac_func ();
9167 /* The GNU C library defines this for functions which it implements
9168 to always fail with ENOSYS. Some functions are actually named
9169 something starting with __ and the normal name is an alias. */
9170 #if defined __stub_$ac_func || defined __stub___$ac_func
9171 choke me
9172 #endif
9175 main ()
9177 return $ac_func ();
9179 return 0;
9181 _ACEOF
9182 rm -f conftest.$ac_objext conftest$ac_exeext
9183 if { (ac_try="$ac_link"
9184 case "(($ac_try" in
9185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9186 *) ac_try_echo=$ac_try;;
9187 esac
9188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9189 (eval "$ac_link") 2>conftest.er1
9190 ac_status=$?
9191 grep -v '^ *+' conftest.er1 >conftest.err
9192 rm -f conftest.er1
9193 cat conftest.err >&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } && {
9196 test -z "$ac_c_werror_flag" ||
9197 test ! -s conftest.err
9198 } && test -s conftest$ac_exeext &&
9199 $as_test_x conftest$ac_exeext; then
9200 eval "$as_ac_var=yes"
9201 else
9202 echo "$as_me: failed program was:" >&5
9203 sed 's/^/| /' conftest.$ac_ext >&5
9205 eval "$as_ac_var=no"
9208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9209 conftest$ac_exeext conftest.$ac_ext
9211 ac_res=`eval echo '${'$as_ac_var'}'`
9212 { echo "$as_me:$LINENO: result: $ac_res" >&5
9213 echo "${ECHO_T}$ac_res" >&6; }
9214 if test `eval echo '${'$as_ac_var'}'` = yes; then
9215 cat >>confdefs.h <<_ACEOF
9216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9217 _ACEOF
9220 done
9224 for ac_func in setutxent utmpxname
9226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9227 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9229 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9230 echo $ECHO_N "(cached) $ECHO_C" >&6
9231 else
9232 cat >conftest.$ac_ext <<_ACEOF
9233 /* confdefs.h. */
9234 _ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h. */
9238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9240 #define $ac_func innocuous_$ac_func
9242 /* System header to define __stub macros and hopefully few prototypes,
9243 which can conflict with char $ac_func (); below.
9244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9245 <limits.h> exists even on freestanding compilers. */
9247 #ifdef __STDC__
9248 # include <limits.h>
9249 #else
9250 # include <assert.h>
9251 #endif
9253 #undef $ac_func
9255 /* Override any GCC internal prototype to avoid an error.
9256 Use char because int might match the return type of a GCC
9257 builtin and then its argument prototype would still apply. */
9258 #ifdef __cplusplus
9259 extern "C"
9260 #endif
9261 char $ac_func ();
9262 /* The GNU C library defines this for functions which it implements
9263 to always fail with ENOSYS. Some functions are actually named
9264 something starting with __ and the normal name is an alias. */
9265 #if defined __stub_$ac_func || defined __stub___$ac_func
9266 choke me
9267 #endif
9270 main ()
9272 return $ac_func ();
9274 return 0;
9276 _ACEOF
9277 rm -f conftest.$ac_objext conftest$ac_exeext
9278 if { (ac_try="$ac_link"
9279 case "(($ac_try" in
9280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9281 *) ac_try_echo=$ac_try;;
9282 esac
9283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9284 (eval "$ac_link") 2>conftest.er1
9285 ac_status=$?
9286 grep -v '^ *+' conftest.er1 >conftest.err
9287 rm -f conftest.er1
9288 cat conftest.err >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); } && {
9291 test -z "$ac_c_werror_flag" ||
9292 test ! -s conftest.err
9293 } && test -s conftest$ac_exeext &&
9294 $as_test_x conftest$ac_exeext; then
9295 eval "$as_ac_var=yes"
9296 else
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9300 eval "$as_ac_var=no"
9303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9304 conftest$ac_exeext conftest.$ac_ext
9306 ac_res=`eval echo '${'$as_ac_var'}'`
9307 { echo "$as_me:$LINENO: result: $ac_res" >&5
9308 echo "${ECHO_T}$ac_res" >&6; }
9309 if test `eval echo '${'$as_ac_var'}'` = yes; then
9310 cat >>confdefs.h <<_ACEOF
9311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9312 _ACEOF
9315 done
9320 for ac_func in logout updwtmp logwtmp
9322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9323 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9325 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 else
9328 cat >conftest.$ac_ext <<_ACEOF
9329 /* confdefs.h. */
9330 _ACEOF
9331 cat confdefs.h >>conftest.$ac_ext
9332 cat >>conftest.$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9336 #define $ac_func innocuous_$ac_func
9338 /* System header to define __stub macros and hopefully few prototypes,
9339 which can conflict with char $ac_func (); below.
9340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9341 <limits.h> exists even on freestanding compilers. */
9343 #ifdef __STDC__
9344 # include <limits.h>
9345 #else
9346 # include <assert.h>
9347 #endif
9349 #undef $ac_func
9351 /* Override any GCC internal prototype to avoid an error.
9352 Use char because int might match the return type of a GCC
9353 builtin and then its argument prototype would still apply. */
9354 #ifdef __cplusplus
9355 extern "C"
9356 #endif
9357 char $ac_func ();
9358 /* The GNU C library defines this for functions which it implements
9359 to always fail with ENOSYS. Some functions are actually named
9360 something starting with __ and the normal name is an alias. */
9361 #if defined __stub_$ac_func || defined __stub___$ac_func
9362 choke me
9363 #endif
9366 main ()
9368 return $ac_func ();
9370 return 0;
9372 _ACEOF
9373 rm -f conftest.$ac_objext conftest$ac_exeext
9374 if { (ac_try="$ac_link"
9375 case "(($ac_try" in
9376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9377 *) ac_try_echo=$ac_try;;
9378 esac
9379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380 (eval "$ac_link") 2>conftest.er1
9381 ac_status=$?
9382 grep -v '^ *+' conftest.er1 >conftest.err
9383 rm -f conftest.er1
9384 cat conftest.err >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } && {
9387 test -z "$ac_c_werror_flag" ||
9388 test ! -s conftest.err
9389 } && test -s conftest$ac_exeext &&
9390 $as_test_x conftest$ac_exeext; then
9391 eval "$as_ac_var=yes"
9392 else
9393 echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9396 eval "$as_ac_var=no"
9399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9400 conftest$ac_exeext conftest.$ac_ext
9402 ac_res=`eval echo '${'$as_ac_var'}'`
9403 { echo "$as_me:$LINENO: result: $ac_res" >&5
9404 echo "${ECHO_T}$ac_res" >&6; }
9405 if test `eval echo '${'$as_ac_var'}'` = yes; then
9406 cat >>confdefs.h <<_ACEOF
9407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9408 _ACEOF
9411 done
9415 # Check whether --enable-lastlog was given.
9416 if test "${enable_lastlog+set}" = set; then
9417 enableval=$enable_lastlog;
9418 cat >>confdefs.h <<\_ACEOF
9419 #define DISABLE_LASTLOG
9420 _ACEOF
9425 # Check whether --enable-utmp was given.
9426 if test "${enable_utmp+set}" = set; then
9427 enableval=$enable_utmp;
9428 cat >>confdefs.h <<\_ACEOF
9429 #define DISABLE_UTMP
9430 _ACEOF
9435 # Check whether --enable-utmpx was given.
9436 if test "${enable_utmpx+set}" = set; then
9437 enableval=$enable_utmpx;
9438 cat >>confdefs.h <<\_ACEOF
9439 #define DISABLE_UTMPX
9440 _ACEOF
9445 # Check whether --enable-wtmp was given.
9446 if test "${enable_wtmp+set}" = set; then
9447 enableval=$enable_wtmp;
9448 cat >>confdefs.h <<\_ACEOF
9449 #define DISABLE_WTMP
9450 _ACEOF
9455 # Check whether --enable-wtmpx was given.
9456 if test "${enable_wtmpx+set}" = set; then
9457 enableval=$enable_wtmpx;
9458 cat >>confdefs.h <<\_ACEOF
9459 #define DISABLE_WTMPX
9460 _ACEOF
9465 # Check whether --enable-loginfunc was given.
9466 if test "${enable_loginfunc+set}" = set; then
9467 enableval=$enable_loginfunc; no_loginfunc_check=1
9468 { echo "$as_me:$LINENO: Not using login() etc" >&5
9469 echo "$as_me: Not using login() etc" >&6;}
9473 # Check whether --enable-pututline was given.
9474 if test "${enable_pututline+set}" = set; then
9475 enableval=$enable_pututline;
9476 cat >>confdefs.h <<\_ACEOF
9477 #define DISABLE_PUTUTLINE
9478 _ACEOF
9483 # Check whether --enable-pututxline was given.
9484 if test "${enable_pututxline+set}" = set; then
9485 enableval=$enable_pututxline;
9486 cat >>confdefs.h <<\_ACEOF
9487 #define DISABLE_PUTUTXLINE
9488 _ACEOF
9494 # Check whether --with-lastlog was given.
9495 if test "${with_lastlog+set}" = set; then
9496 withval=$with_lastlog;
9497 if test "x$withval" = "xno" ; then
9498 cat >>confdefs.h <<\_ACEOF
9499 #define DISABLE_LASTLOG 1
9500 _ACEOF
9502 else
9503 conf_lastlog_location=$withval
9510 if test -z "$no_loginfunc_check"; then
9511 { echo "$as_me:$LINENO: checking for library containing login" >&5
9512 echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; }
9513 if test "${ac_cv_search_login+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9515 else
9516 ac_func_search_save_LIBS=$LIBS
9517 cat >conftest.$ac_ext <<_ACEOF
9518 /* confdefs.h. */
9519 _ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9524 /* Override any GCC internal prototype to avoid an error.
9525 Use char because int might match the return type of a GCC
9526 builtin and then its argument prototype would still apply. */
9527 #ifdef __cplusplus
9528 extern "C"
9529 #endif
9530 char login ();
9532 main ()
9534 return login ();
9536 return 0;
9538 _ACEOF
9539 for ac_lib in '' util bsd; do
9540 if test -z "$ac_lib"; then
9541 ac_res="none required"
9542 else
9543 ac_res=-l$ac_lib
9544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9546 rm -f conftest.$ac_objext conftest$ac_exeext
9547 if { (ac_try="$ac_link"
9548 case "(($ac_try" in
9549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9550 *) ac_try_echo=$ac_try;;
9551 esac
9552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9553 (eval "$ac_link") 2>conftest.er1
9554 ac_status=$?
9555 grep -v '^ *+' conftest.er1 >conftest.err
9556 rm -f conftest.er1
9557 cat conftest.err >&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); } && {
9560 test -z "$ac_c_werror_flag" ||
9561 test ! -s conftest.err
9562 } && test -s conftest$ac_exeext &&
9563 $as_test_x conftest$ac_exeext; then
9564 ac_cv_search_login=$ac_res
9565 else
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9573 conftest$ac_exeext
9574 if test "${ac_cv_search_login+set}" = set; then
9575 break
9577 done
9578 if test "${ac_cv_search_login+set}" = set; then
9580 else
9581 ac_cv_search_login=no
9583 rm conftest.$ac_ext
9584 LIBS=$ac_func_search_save_LIBS
9586 { echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
9587 echo "${ECHO_T}$ac_cv_search_login" >&6; }
9588 ac_res=$ac_cv_search_login
9589 if test "$ac_res" != no; then
9590 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9592 cat >>confdefs.h <<\_ACEOF
9593 #define HAVE_LOGIN
9594 _ACEOF
9601 for ac_func in logout updwtmp logwtmp
9603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9604 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9606 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 else
9609 cat >conftest.$ac_ext <<_ACEOF
9610 /* confdefs.h. */
9611 _ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9617 #define $ac_func innocuous_$ac_func
9619 /* System header to define __stub macros and hopefully few prototypes,
9620 which can conflict with char $ac_func (); below.
9621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9622 <limits.h> exists even on freestanding compilers. */
9624 #ifdef __STDC__
9625 # include <limits.h>
9626 #else
9627 # include <assert.h>
9628 #endif
9630 #undef $ac_func
9632 /* Override any GCC internal prototype to avoid an error.
9633 Use char because int might match the return type of a GCC
9634 builtin and then its argument prototype would still apply. */
9635 #ifdef __cplusplus
9636 extern "C"
9637 #endif
9638 char $ac_func ();
9639 /* The GNU C library defines this for functions which it implements
9640 to always fail with ENOSYS. Some functions are actually named
9641 something starting with __ and the normal name is an alias. */
9642 #if defined __stub_$ac_func || defined __stub___$ac_func
9643 choke me
9644 #endif
9647 main ()
9649 return $ac_func ();
9651 return 0;
9653 _ACEOF
9654 rm -f conftest.$ac_objext conftest$ac_exeext
9655 if { (ac_try="$ac_link"
9656 case "(($ac_try" in
9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658 *) ac_try_echo=$ac_try;;
9659 esac
9660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661 (eval "$ac_link") 2>conftest.er1
9662 ac_status=$?
9663 grep -v '^ *+' conftest.er1 >conftest.err
9664 rm -f conftest.er1
9665 cat conftest.err >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } && {
9668 test -z "$ac_c_werror_flag" ||
9669 test ! -s conftest.err
9670 } && test -s conftest$ac_exeext &&
9671 $as_test_x conftest$ac_exeext; then
9672 eval "$as_ac_var=yes"
9673 else
9674 echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9677 eval "$as_ac_var=no"
9680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9681 conftest$ac_exeext conftest.$ac_ext
9683 ac_res=`eval echo '${'$as_ac_var'}'`
9684 { echo "$as_me:$LINENO: result: $ac_res" >&5
9685 echo "${ECHO_T}$ac_res" >&6; }
9686 if test `eval echo '${'$as_ac_var'}'` = yes; then
9687 cat >>confdefs.h <<_ACEOF
9688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9689 _ACEOF
9692 done
9697 { echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
9698 echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; }
9699 cat >conftest.$ac_ext <<_ACEOF
9700 /* confdefs.h. */
9701 _ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9706 #include <sys/types.h>
9707 #include <utmp.h>
9708 #ifdef HAVE_LASTLOG_H
9709 # include <lastlog.h>
9710 #endif
9711 #ifdef HAVE_PATHS_H
9712 # include <paths.h>
9713 #endif
9714 #ifdef HAVE_LOGIN_H
9715 # include <login.h>
9716 #endif
9719 main ()
9721 char *lastlog = LASTLOG_FILE;
9723 return 0;
9725 _ACEOF
9726 rm -f conftest.$ac_objext
9727 if { (ac_try="$ac_compile"
9728 case "(($ac_try" in
9729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730 *) ac_try_echo=$ac_try;;
9731 esac
9732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733 (eval "$ac_compile") 2>conftest.er1
9734 ac_status=$?
9735 grep -v '^ *+' conftest.er1 >conftest.err
9736 rm -f conftest.er1
9737 cat conftest.err >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } && {
9740 test -z "$ac_c_werror_flag" ||
9741 test ! -s conftest.err
9742 } && test -s conftest.$ac_objext; then
9743 { echo "$as_me:$LINENO: result: yes" >&5
9744 echo "${ECHO_T}yes" >&6; }
9745 else
9746 echo "$as_me: failed program was:" >&5
9747 sed 's/^/| /' conftest.$ac_ext >&5
9750 { echo "$as_me:$LINENO: result: no" >&5
9751 echo "${ECHO_T}no" >&6; }
9752 { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
9753 echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; }
9754 cat >conftest.$ac_ext <<_ACEOF
9755 /* confdefs.h. */
9756 _ACEOF
9757 cat confdefs.h >>conftest.$ac_ext
9758 cat >>conftest.$ac_ext <<_ACEOF
9759 /* end confdefs.h. */
9761 #include <sys/types.h>
9762 #include <utmp.h>
9763 #ifdef HAVE_LASTLOG_H
9764 # include <lastlog.h>
9765 #endif
9766 #ifdef HAVE_PATHS_H
9767 # include <paths.h>
9768 #endif
9771 main ()
9773 char *lastlog = _PATH_LASTLOG;
9775 return 0;
9777 _ACEOF
9778 rm -f conftest.$ac_objext
9779 if { (ac_try="$ac_compile"
9780 case "(($ac_try" in
9781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782 *) ac_try_echo=$ac_try;;
9783 esac
9784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785 (eval "$ac_compile") 2>conftest.er1
9786 ac_status=$?
9787 grep -v '^ *+' conftest.er1 >conftest.err
9788 rm -f conftest.er1
9789 cat conftest.err >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); } && {
9792 test -z "$ac_c_werror_flag" ||
9793 test ! -s conftest.err
9794 } && test -s conftest.$ac_objext; then
9795 { echo "$as_me:$LINENO: result: yes" >&5
9796 echo "${ECHO_T}yes" >&6; }
9797 else
9798 echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9802 { echo "$as_me:$LINENO: result: no" >&5
9803 echo "${ECHO_T}no" >&6; }
9804 system_lastlog_path=no
9808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9815 if test -z "$conf_lastlog_location"; then
9816 if test x"$system_lastlog_path" = x"no" ; then
9817 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
9818 if (test -d "$f" || test -f "$f") ; then
9819 conf_lastlog_location=$f
9821 done
9822 if test -z "$conf_lastlog_location"; then
9823 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
9824 echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
9829 if test -n "$conf_lastlog_location"; then
9831 cat >>confdefs.h <<_ACEOF
9832 #define CONF_LASTLOG_FILE "$conf_lastlog_location"
9833 _ACEOF
9837 { echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
9838 echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; }
9839 cat >conftest.$ac_ext <<_ACEOF
9840 /* confdefs.h. */
9841 _ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h. */
9846 #include <sys/types.h>
9847 #include <utmp.h>
9848 #ifdef HAVE_PATHS_H
9849 # include <paths.h>
9850 #endif
9853 main ()
9855 char *utmp = UTMP_FILE;
9857 return 0;
9859 _ACEOF
9860 rm -f conftest.$ac_objext
9861 if { (ac_try="$ac_compile"
9862 case "(($ac_try" in
9863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9864 *) ac_try_echo=$ac_try;;
9865 esac
9866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9867 (eval "$ac_compile") 2>conftest.er1
9868 ac_status=$?
9869 grep -v '^ *+' conftest.er1 >conftest.err
9870 rm -f conftest.er1
9871 cat conftest.err >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } && {
9874 test -z "$ac_c_werror_flag" ||
9875 test ! -s conftest.err
9876 } && test -s conftest.$ac_objext; then
9877 { echo "$as_me:$LINENO: result: yes" >&5
9878 echo "${ECHO_T}yes" >&6; }
9879 else
9880 echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9883 { echo "$as_me:$LINENO: result: no" >&5
9884 echo "${ECHO_T}no" >&6; }
9885 system_utmp_path=no
9889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9890 if test -z "$conf_utmp_location"; then
9891 if test x"$system_utmp_path" = x"no" ; then
9892 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
9893 if test -f $f ; then
9894 conf_utmp_location=$f
9896 done
9897 if test -z "$conf_utmp_location"; then
9898 cat >>confdefs.h <<\_ACEOF
9899 #define DISABLE_UTMP 1
9900 _ACEOF
9905 if test -n "$conf_utmp_location"; then
9907 cat >>confdefs.h <<_ACEOF
9908 #define CONF_UTMP_FILE "$conf_utmp_location"
9909 _ACEOF
9913 { echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
9914 echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; }
9915 cat >conftest.$ac_ext <<_ACEOF
9916 /* confdefs.h. */
9917 _ACEOF
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h. */
9922 #include <sys/types.h>
9923 #include <utmp.h>
9924 #ifdef HAVE_PATHS_H
9925 # include <paths.h>
9926 #endif
9929 main ()
9931 char *wtmp = WTMP_FILE;
9933 return 0;
9935 _ACEOF
9936 rm -f conftest.$ac_objext
9937 if { (ac_try="$ac_compile"
9938 case "(($ac_try" in
9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9941 esac
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943 (eval "$ac_compile") 2>conftest.er1
9944 ac_status=$?
9945 grep -v '^ *+' conftest.er1 >conftest.err
9946 rm -f conftest.er1
9947 cat conftest.err >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } && {
9950 test -z "$ac_c_werror_flag" ||
9951 test ! -s conftest.err
9952 } && test -s conftest.$ac_objext; then
9953 { echo "$as_me:$LINENO: result: yes" >&5
9954 echo "${ECHO_T}yes" >&6; }
9955 else
9956 echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9959 { echo "$as_me:$LINENO: result: no" >&5
9960 echo "${ECHO_T}no" >&6; }
9961 system_wtmp_path=no
9965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9966 if test -z "$conf_wtmp_location"; then
9967 if test x"$system_wtmp_path" = x"no" ; then
9968 for f in /usr/adm/wtmp /var/log/wtmp; do
9969 if test -f $f ; then
9970 conf_wtmp_location=$f
9972 done
9973 if test -z "$conf_wtmp_location"; then
9974 cat >>confdefs.h <<\_ACEOF
9975 #define DISABLE_WTMP 1
9976 _ACEOF
9981 if test -n "$conf_wtmp_location"; then
9983 cat >>confdefs.h <<_ACEOF
9984 #define CONF_WTMP_FILE "$conf_wtmp_location"
9985 _ACEOF
9990 { echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
9991 echo $ECHO_N "checking if your system defines UTMPX_FILE... $ECHO_C" >&6; }
9992 cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h. */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9999 #include <sys/types.h>
10000 #include <utmp.h>
10001 #ifdef HAVE_UTMPX_H
10002 #include <utmpx.h>
10003 #endif
10004 #ifdef HAVE_PATHS_H
10005 # include <paths.h>
10006 #endif
10009 main ()
10011 char *utmpx = UTMPX_FILE;
10013 return 0;
10015 _ACEOF
10016 rm -f conftest.$ac_objext
10017 if { (ac_try="$ac_compile"
10018 case "(($ac_try" in
10019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020 *) ac_try_echo=$ac_try;;
10021 esac
10022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023 (eval "$ac_compile") 2>conftest.er1
10024 ac_status=$?
10025 grep -v '^ *+' conftest.er1 >conftest.err
10026 rm -f conftest.er1
10027 cat conftest.err >&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); } && {
10030 test -z "$ac_c_werror_flag" ||
10031 test ! -s conftest.err
10032 } && test -s conftest.$ac_objext; then
10033 { echo "$as_me:$LINENO: result: yes" >&5
10034 echo "${ECHO_T}yes" >&6; }
10035 else
10036 echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10039 { echo "$as_me:$LINENO: result: no" >&5
10040 echo "${ECHO_T}no" >&6; }
10041 system_utmpx_path=no
10045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10046 if test -z "$conf_utmpx_location"; then
10047 if test x"$system_utmpx_path" = x"no" ; then
10048 cat >>confdefs.h <<\_ACEOF
10049 #define DISABLE_UTMPX 1
10050 _ACEOF
10053 else
10055 cat >>confdefs.h <<_ACEOF
10056 #define CONF_UTMPX_FILE "$conf_utmpx_location"
10057 _ACEOF
10061 { echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
10062 echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; }
10063 cat >conftest.$ac_ext <<_ACEOF
10064 /* confdefs.h. */
10065 _ACEOF
10066 cat confdefs.h >>conftest.$ac_ext
10067 cat >>conftest.$ac_ext <<_ACEOF
10068 /* end confdefs.h. */
10070 #include <sys/types.h>
10071 #include <utmp.h>
10072 #ifdef HAVE_UTMPX_H
10073 #include <utmpx.h>
10074 #endif
10075 #ifdef HAVE_PATHS_H
10076 # include <paths.h>
10077 #endif
10080 main ()
10082 char *wtmpx = WTMPX_FILE;
10084 return 0;
10086 _ACEOF
10087 rm -f conftest.$ac_objext
10088 if { (ac_try="$ac_compile"
10089 case "(($ac_try" in
10090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091 *) ac_try_echo=$ac_try;;
10092 esac
10093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094 (eval "$ac_compile") 2>conftest.er1
10095 ac_status=$?
10096 grep -v '^ *+' conftest.er1 >conftest.err
10097 rm -f conftest.er1
10098 cat conftest.err >&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } && {
10101 test -z "$ac_c_werror_flag" ||
10102 test ! -s conftest.err
10103 } && test -s conftest.$ac_objext; then
10104 { echo "$as_me:$LINENO: result: yes" >&5
10105 echo "${ECHO_T}yes" >&6; }
10106 else
10107 echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10110 { echo "$as_me:$LINENO: result: no" >&5
10111 echo "${ECHO_T}no" >&6; }
10112 system_wtmpx_path=no
10116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10117 if test -z "$conf_wtmpx_location"; then
10118 if test x"$system_wtmpx_path" = x"no" ; then
10119 cat >>confdefs.h <<\_ACEOF
10120 #define DISABLE_WTMPX 1
10121 _ACEOF
10124 else
10126 cat >>confdefs.h <<_ACEOF
10127 #define CONF_WTMPX_FILE "$conf_wtmpx_location"
10128 _ACEOF
10132 # Checks for library functions.
10133 if test $ac_cv_c_compiler_gnu = yes; then
10134 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10135 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
10136 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
10138 else
10139 ac_pattern="Autoconf.*'x'"
10140 cat >conftest.$ac_ext <<_ACEOF
10141 /* confdefs.h. */
10142 _ACEOF
10143 cat confdefs.h >>conftest.$ac_ext
10144 cat >>conftest.$ac_ext <<_ACEOF
10145 /* end confdefs.h. */
10146 #include <sgtty.h>
10147 Autoconf TIOCGETP
10148 _ACEOF
10149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10150 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10151 ac_cv_prog_gcc_traditional=yes
10152 else
10153 ac_cv_prog_gcc_traditional=no
10155 rm -f conftest*
10158 if test $ac_cv_prog_gcc_traditional = no; then
10159 cat >conftest.$ac_ext <<_ACEOF
10160 /* confdefs.h. */
10161 _ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10165 #include <termio.h>
10166 Autoconf TCGETA
10167 _ACEOF
10168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10169 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10170 ac_cv_prog_gcc_traditional=yes
10172 rm -f conftest*
10176 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10177 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
10178 if test $ac_cv_prog_gcc_traditional = yes; then
10179 CC="$CC -traditional"
10183 { echo "$as_me:$LINENO: checking for working memcmp" >&5
10184 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
10185 if test "${ac_cv_func_memcmp_working+set}" = set; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10187 else
10188 if test "$cross_compiling" = yes; then
10189 ac_cv_func_memcmp_working=no
10190 else
10191 cat >conftest.$ac_ext <<_ACEOF
10192 /* confdefs.h. */
10193 _ACEOF
10194 cat confdefs.h >>conftest.$ac_ext
10195 cat >>conftest.$ac_ext <<_ACEOF
10196 /* end confdefs.h. */
10197 $ac_includes_default
10199 main ()
10202 /* Some versions of memcmp are not 8-bit clean. */
10203 char c0 = '\100', c1 = '\200', c2 = '\201';
10204 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10205 return 1;
10207 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10208 or more and with at least one buffer not starting on a 4-byte boundary.
10209 William Lewis provided this test program. */
10211 char foo[21];
10212 char bar[21];
10213 int i;
10214 for (i = 0; i < 4; i++)
10216 char *a = foo + i;
10217 char *b = bar + i;
10218 strcpy (a, "--------01111111");
10219 strcpy (b, "--------10000000");
10220 if (memcmp (a, b, 16) >= 0)
10221 return 1;
10223 return 0;
10227 return 0;
10229 _ACEOF
10230 rm -f conftest$ac_exeext
10231 if { (ac_try="$ac_link"
10232 case "(($ac_try" in
10233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234 *) ac_try_echo=$ac_try;;
10235 esac
10236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237 (eval "$ac_link") 2>&5
10238 ac_status=$?
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10241 { (case "(($ac_try" in
10242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243 *) ac_try_echo=$ac_try;;
10244 esac
10245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10246 (eval "$ac_try") 2>&5
10247 ac_status=$?
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); }; }; then
10250 ac_cv_func_memcmp_working=yes
10251 else
10252 echo "$as_me: program exited with status $ac_status" >&5
10253 echo "$as_me: failed program was:" >&5
10254 sed 's/^/| /' conftest.$ac_ext >&5
10256 ( exit $ac_status )
10257 ac_cv_func_memcmp_working=no
10259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10264 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10265 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
10266 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10267 *" memcmp.$ac_objext "* ) ;;
10268 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10270 esac
10275 for ac_header in sys/select.h sys/socket.h
10277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10284 ac_res=`eval echo '${'$as_ac_Header'}'`
10285 { echo "$as_me:$LINENO: result: $ac_res" >&5
10286 echo "${ECHO_T}$ac_res" >&6; }
10287 else
10288 # Is the header compilable?
10289 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10291 cat >conftest.$ac_ext <<_ACEOF
10292 /* confdefs.h. */
10293 _ACEOF
10294 cat confdefs.h >>conftest.$ac_ext
10295 cat >>conftest.$ac_ext <<_ACEOF
10296 /* end confdefs.h. */
10297 $ac_includes_default
10298 #include <$ac_header>
10299 _ACEOF
10300 rm -f conftest.$ac_objext
10301 if { (ac_try="$ac_compile"
10302 case "(($ac_try" in
10303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304 *) ac_try_echo=$ac_try;;
10305 esac
10306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10307 (eval "$ac_compile") 2>conftest.er1
10308 ac_status=$?
10309 grep -v '^ *+' conftest.er1 >conftest.err
10310 rm -f conftest.er1
10311 cat conftest.err >&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } && {
10314 test -z "$ac_c_werror_flag" ||
10315 test ! -s conftest.err
10316 } && test -s conftest.$ac_objext; then
10317 ac_header_compiler=yes
10318 else
10319 echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10322 ac_header_compiler=no
10325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10326 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10327 echo "${ECHO_T}$ac_header_compiler" >&6; }
10329 # Is the header present?
10330 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10332 cat >conftest.$ac_ext <<_ACEOF
10333 /* confdefs.h. */
10334 _ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h. */
10338 #include <$ac_header>
10339 _ACEOF
10340 if { (ac_try="$ac_cpp conftest.$ac_ext"
10341 case "(($ac_try" in
10342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343 *) ac_try_echo=$ac_try;;
10344 esac
10345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10347 ac_status=$?
10348 grep -v '^ *+' conftest.er1 >conftest.err
10349 rm -f conftest.er1
10350 cat conftest.err >&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); } >/dev/null && {
10353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10354 test ! -s conftest.err
10355 }; then
10356 ac_header_preproc=yes
10357 else
10358 echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10361 ac_header_preproc=no
10364 rm -f conftest.err conftest.$ac_ext
10365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10366 echo "${ECHO_T}$ac_header_preproc" >&6; }
10368 # So? What about this header?
10369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10370 yes:no: )
10371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10375 ac_header_preproc=yes
10377 no:yes:* )
10378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10381 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10385 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10392 esac
10393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10396 echo $ECHO_N "(cached) $ECHO_C" >&6
10397 else
10398 eval "$as_ac_Header=\$ac_header_preproc"
10400 ac_res=`eval echo '${'$as_ac_Header'}'`
10401 { echo "$as_me:$LINENO: result: $ac_res" >&5
10402 echo "${ECHO_T}$ac_res" >&6; }
10405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10406 cat >>confdefs.h <<_ACEOF
10407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10408 _ACEOF
10412 done
10414 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
10415 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
10416 if test "${ac_cv_func_select_args+set}" = set; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
10418 else
10419 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
10420 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
10421 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10422 cat >conftest.$ac_ext <<_ACEOF
10423 /* confdefs.h. */
10424 _ACEOF
10425 cat confdefs.h >>conftest.$ac_ext
10426 cat >>conftest.$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10428 $ac_includes_default
10429 #ifdef HAVE_SYS_SELECT_H
10430 # include <sys/select.h>
10431 #endif
10432 #ifdef HAVE_SYS_SOCKET_H
10433 # include <sys/socket.h>
10434 #endif
10437 main ()
10439 extern int select ($ac_arg1,
10440 $ac_arg234, $ac_arg234, $ac_arg234,
10441 $ac_arg5);
10443 return 0;
10445 _ACEOF
10446 rm -f conftest.$ac_objext
10447 if { (ac_try="$ac_compile"
10448 case "(($ac_try" in
10449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450 *) ac_try_echo=$ac_try;;
10451 esac
10452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10453 (eval "$ac_compile") 2>conftest.er1
10454 ac_status=$?
10455 grep -v '^ *+' conftest.er1 >conftest.err
10456 rm -f conftest.er1
10457 cat conftest.err >&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } && {
10460 test -z "$ac_c_werror_flag" ||
10461 test ! -s conftest.err
10462 } && test -s conftest.$ac_objext; then
10463 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10464 else
10465 echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10472 done
10473 done
10474 done
10475 # Provide a safe default value.
10476 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
10479 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
10480 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
10481 ac_save_IFS=$IFS; IFS=','
10482 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10483 IFS=$ac_save_IFS
10484 shift
10486 cat >>confdefs.h <<_ACEOF
10487 #define SELECT_TYPE_ARG1 $1
10488 _ACEOF
10491 cat >>confdefs.h <<_ACEOF
10492 #define SELECT_TYPE_ARG234 ($2)
10493 _ACEOF
10496 cat >>confdefs.h <<_ACEOF
10497 #define SELECT_TYPE_ARG5 ($3)
10498 _ACEOF
10500 rm -f conftest*
10502 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10503 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
10504 if test "${ac_cv_type_signal+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10506 else
10507 cat >conftest.$ac_ext <<_ACEOF
10508 /* confdefs.h. */
10509 _ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h. */
10513 #include <sys/types.h>
10514 #include <signal.h>
10517 main ()
10519 return *(signal (0, 0)) (0) == 1;
10521 return 0;
10523 _ACEOF
10524 rm -f conftest.$ac_objext
10525 if { (ac_try="$ac_compile"
10526 case "(($ac_try" in
10527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10528 *) ac_try_echo=$ac_try;;
10529 esac
10530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10531 (eval "$ac_compile") 2>conftest.er1
10532 ac_status=$?
10533 grep -v '^ *+' conftest.er1 >conftest.err
10534 rm -f conftest.er1
10535 cat conftest.err >&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); } && {
10538 test -z "$ac_c_werror_flag" ||
10539 test ! -s conftest.err
10540 } && test -s conftest.$ac_objext; then
10541 ac_cv_type_signal=int
10542 else
10543 echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10546 ac_cv_type_signal=void
10549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10551 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10552 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
10554 cat >>confdefs.h <<_ACEOF
10555 #define RETSIGTYPE $ac_cv_type_signal
10556 _ACEOF
10576 for ac_func in dup2 getspnam getusershell memset putenv select socket strdup clearenv strlcpy strlcat daemon basename _getpty getaddrinfo freeaddrinfo getnameinfo
10578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10579 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10582 echo $ECHO_N "(cached) $ECHO_C" >&6
10583 else
10584 cat >conftest.$ac_ext <<_ACEOF
10585 /* confdefs.h. */
10586 _ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10592 #define $ac_func innocuous_$ac_func
10594 /* System header to define __stub macros and hopefully few prototypes,
10595 which can conflict with char $ac_func (); below.
10596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10597 <limits.h> exists even on freestanding compilers. */
10599 #ifdef __STDC__
10600 # include <limits.h>
10601 #else
10602 # include <assert.h>
10603 #endif
10605 #undef $ac_func
10607 /* Override any GCC internal prototype to avoid an error.
10608 Use char because int might match the return type of a GCC
10609 builtin and then its argument prototype would still apply. */
10610 #ifdef __cplusplus
10611 extern "C"
10612 #endif
10613 char $ac_func ();
10614 /* The GNU C library defines this for functions which it implements
10615 to always fail with ENOSYS. Some functions are actually named
10616 something starting with __ and the normal name is an alias. */
10617 #if defined __stub_$ac_func || defined __stub___$ac_func
10618 choke me
10619 #endif
10622 main ()
10624 return $ac_func ();
10626 return 0;
10628 _ACEOF
10629 rm -f conftest.$ac_objext conftest$ac_exeext
10630 if { (ac_try="$ac_link"
10631 case "(($ac_try" in
10632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633 *) ac_try_echo=$ac_try;;
10634 esac
10635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636 (eval "$ac_link") 2>conftest.er1
10637 ac_status=$?
10638 grep -v '^ *+' conftest.er1 >conftest.err
10639 rm -f conftest.er1
10640 cat conftest.err >&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } && {
10643 test -z "$ac_c_werror_flag" ||
10644 test ! -s conftest.err
10645 } && test -s conftest$ac_exeext &&
10646 $as_test_x conftest$ac_exeext; then
10647 eval "$as_ac_var=yes"
10648 else
10649 echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10652 eval "$as_ac_var=no"
10655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10656 conftest$ac_exeext conftest.$ac_ext
10658 ac_res=`eval echo '${'$as_ac_var'}'`
10659 { echo "$as_me:$LINENO: result: $ac_res" >&5
10660 echo "${ECHO_T}$ac_res" >&6; }
10661 if test `eval echo '${'$as_ac_var'}'` = yes; then
10662 cat >>confdefs.h <<_ACEOF
10663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10664 _ACEOF
10667 done
10670 { echo "$as_me:$LINENO: checking for library containing basename" >&5
10671 echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; }
10672 if test "${ac_cv_search_basename+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10674 else
10675 ac_func_search_save_LIBS=$LIBS
10676 cat >conftest.$ac_ext <<_ACEOF
10677 /* confdefs.h. */
10678 _ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10683 /* Override any GCC internal prototype to avoid an error.
10684 Use char because int might match the return type of a GCC
10685 builtin and then its argument prototype would still apply. */
10686 #ifdef __cplusplus
10687 extern "C"
10688 #endif
10689 char basename ();
10691 main ()
10693 return basename ();
10695 return 0;
10697 _ACEOF
10698 for ac_lib in '' gen; do
10699 if test -z "$ac_lib"; then
10700 ac_res="none required"
10701 else
10702 ac_res=-l$ac_lib
10703 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10705 rm -f conftest.$ac_objext conftest$ac_exeext
10706 if { (ac_try="$ac_link"
10707 case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10710 esac
10711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712 (eval "$ac_link") 2>conftest.er1
10713 ac_status=$?
10714 grep -v '^ *+' conftest.er1 >conftest.err
10715 rm -f conftest.er1
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } && {
10719 test -z "$ac_c_werror_flag" ||
10720 test ! -s conftest.err
10721 } && test -s conftest$ac_exeext &&
10722 $as_test_x conftest$ac_exeext; then
10723 ac_cv_search_basename=$ac_res
10724 else
10725 echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10732 conftest$ac_exeext
10733 if test "${ac_cv_search_basename+set}" = set; then
10734 break
10736 done
10737 if test "${ac_cv_search_basename+set}" = set; then
10739 else
10740 ac_cv_search_basename=no
10742 rm conftest.$ac_ext
10743 LIBS=$ac_func_search_save_LIBS
10745 { echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
10746 echo "${ECHO_T}$ac_cv_search_basename" >&6; }
10747 ac_res=$ac_cv_search_basename
10748 if test "$ac_res" != no; then
10749 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10750 cat >>confdefs.h <<\_ACEOF
10751 #define HAVE_BASENAME 1
10752 _ACEOF
10757 # Solaris needs ptmx
10758 if test -z "$no_ptmx_check" ; then
10759 if test x"$cross_compiling" = x"no" ; then
10760 { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
10761 echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; }
10762 if test "${ac_cv_file___dev_ptmx_+set}" = set; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10764 else
10765 test "$cross_compiling" = yes &&
10766 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10767 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10768 { (exit 1); exit 1; }; }
10769 if test -r ""/dev/ptmx""; then
10770 ac_cv_file___dev_ptmx_=yes
10771 else
10772 ac_cv_file___dev_ptmx_=no
10775 { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
10776 echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; }
10777 if test $ac_cv_file___dev_ptmx_ = yes; then
10779 cat >>confdefs.h <<\_ACEOF
10780 #define USE_DEV_PTMX
10781 _ACEOF
10785 else
10786 { echo "$as_me:$LINENO: Not checking for /dev/ptmx, we're cross-compiling" >&5
10787 echo "$as_me: Not checking for /dev/ptmx, we're cross-compiling" >&6;}
10791 if test -z "$no_ptc_check" ; then
10792 if test x"$cross_compiling" = x"no" ; then
10793 { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
10794 echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; }
10795 if test "${ac_cv_file___dev_ptc_+set}" = set; then
10796 echo $ECHO_N "(cached) $ECHO_C" >&6
10797 else
10798 test "$cross_compiling" = yes &&
10799 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10800 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10801 { (exit 1); exit 1; }; }
10802 if test -r ""/dev/ptc""; then
10803 ac_cv_file___dev_ptc_=yes
10804 else
10805 ac_cv_file___dev_ptc_=no
10808 { echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
10809 echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; }
10810 if test $ac_cv_file___dev_ptc_ = yes; then
10812 cat >>confdefs.h <<\_ACEOF
10813 #define HAVE_DEV_PTS_AND_PTC
10814 _ACEOF
10818 else
10819 { echo "$as_me:$LINENO: Not checking for /dev/ptc & /dev/pts since we're cross-compiling" >&5
10820 echo "$as_me: Not checking for /dev/ptc & /dev/pts since we're cross-compiling" >&6;}
10826 # XXX there must be a nicer way to do this
10827 { as_dir=libtomcrypt/src/ciphers/aes
10828 case $as_dir in #(
10829 -*) as_dir=./$as_dir;;
10830 esac
10831 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10832 as_dirs=
10833 while :; do
10834 case $as_dir in #(
10835 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10836 *) as_qdir=$as_dir;;
10837 esac
10838 as_dirs="'$as_qdir' $as_dirs"
10839 as_dir=`$as_dirname -- "$as_dir" ||
10840 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10841 X"$as_dir" : 'X\(//\)[^/]' \| \
10842 X"$as_dir" : 'X\(//\)$' \| \
10843 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10844 echo X"$as_dir" |
10845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10846 s//\1/
10849 /^X\(\/\/\)[^/].*/{
10850 s//\1/
10853 /^X\(\/\/\)$/{
10854 s//\1/
10857 /^X\(\/\).*/{
10858 s//\1/
10861 s/.*/./; q'`
10862 test -d "$as_dir" && break
10863 done
10864 test -z "$as_dirs" || eval "mkdir $as_dirs"
10865 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10866 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10867 { (exit 1); exit 1; }; }; }
10868 { as_dir=libtomcrypt/src/ciphers/safer
10869 case $as_dir in #(
10870 -*) as_dir=./$as_dir;;
10871 esac
10872 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10873 as_dirs=
10874 while :; do
10875 case $as_dir in #(
10876 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10877 *) as_qdir=$as_dir;;
10878 esac
10879 as_dirs="'$as_qdir' $as_dirs"
10880 as_dir=`$as_dirname -- "$as_dir" ||
10881 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10882 X"$as_dir" : 'X\(//\)[^/]' \| \
10883 X"$as_dir" : 'X\(//\)$' \| \
10884 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10885 echo X"$as_dir" |
10886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10887 s//\1/
10890 /^X\(\/\/\)[^/].*/{
10891 s//\1/
10894 /^X\(\/\/\)$/{
10895 s//\1/
10898 /^X\(\/\).*/{
10899 s//\1/
10902 s/.*/./; q'`
10903 test -d "$as_dir" && break
10904 done
10905 test -z "$as_dirs" || eval "mkdir $as_dirs"
10906 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10907 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10908 { (exit 1); exit 1; }; }; }
10909 { as_dir=libtomcrypt/src/ciphers/twofish
10910 case $as_dir in #(
10911 -*) as_dir=./$as_dir;;
10912 esac
10913 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10914 as_dirs=
10915 while :; do
10916 case $as_dir in #(
10917 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10918 *) as_qdir=$as_dir;;
10919 esac
10920 as_dirs="'$as_qdir' $as_dirs"
10921 as_dir=`$as_dirname -- "$as_dir" ||
10922 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10923 X"$as_dir" : 'X\(//\)[^/]' \| \
10924 X"$as_dir" : 'X\(//\)$' \| \
10925 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10926 echo X"$as_dir" |
10927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10928 s//\1/
10931 /^X\(\/\/\)[^/].*/{
10932 s//\1/
10935 /^X\(\/\/\)$/{
10936 s//\1/
10939 /^X\(\/\).*/{
10940 s//\1/
10943 s/.*/./; q'`
10944 test -d "$as_dir" && break
10945 done
10946 test -z "$as_dirs" || eval "mkdir $as_dirs"
10947 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10948 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10949 { (exit 1); exit 1; }; }; }
10950 { as_dir=libtomcrypt/src/encauth/ccm
10951 case $as_dir in #(
10952 -*) as_dir=./$as_dir;;
10953 esac
10954 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10955 as_dirs=
10956 while :; do
10957 case $as_dir in #(
10958 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10959 *) as_qdir=$as_dir;;
10960 esac
10961 as_dirs="'$as_qdir' $as_dirs"
10962 as_dir=`$as_dirname -- "$as_dir" ||
10963 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10964 X"$as_dir" : 'X\(//\)[^/]' \| \
10965 X"$as_dir" : 'X\(//\)$' \| \
10966 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10967 echo X"$as_dir" |
10968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10969 s//\1/
10972 /^X\(\/\/\)[^/].*/{
10973 s//\1/
10976 /^X\(\/\/\)$/{
10977 s//\1/
10980 /^X\(\/\).*/{
10981 s//\1/
10984 s/.*/./; q'`
10985 test -d "$as_dir" && break
10986 done
10987 test -z "$as_dirs" || eval "mkdir $as_dirs"
10988 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10989 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10990 { (exit 1); exit 1; }; }; }
10991 { as_dir=libtomcrypt/src/encauth/eax
10992 case $as_dir in #(
10993 -*) as_dir=./$as_dir;;
10994 esac
10995 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10996 as_dirs=
10997 while :; do
10998 case $as_dir in #(
10999 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11000 *) as_qdir=$as_dir;;
11001 esac
11002 as_dirs="'$as_qdir' $as_dirs"
11003 as_dir=`$as_dirname -- "$as_dir" ||
11004 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11005 X"$as_dir" : 'X\(//\)[^/]' \| \
11006 X"$as_dir" : 'X\(//\)$' \| \
11007 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11008 echo X"$as_dir" |
11009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11010 s//\1/
11013 /^X\(\/\/\)[^/].*/{
11014 s//\1/
11017 /^X\(\/\/\)$/{
11018 s//\1/
11021 /^X\(\/\).*/{
11022 s//\1/
11025 s/.*/./; q'`
11026 test -d "$as_dir" && break
11027 done
11028 test -z "$as_dirs" || eval "mkdir $as_dirs"
11029 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11030 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11031 { (exit 1); exit 1; }; }; }
11032 { as_dir=libtomcrypt/src/encauth/gcm
11033 case $as_dir in #(
11034 -*) as_dir=./$as_dir;;
11035 esac
11036 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11037 as_dirs=
11038 while :; do
11039 case $as_dir in #(
11040 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11041 *) as_qdir=$as_dir;;
11042 esac
11043 as_dirs="'$as_qdir' $as_dirs"
11044 as_dir=`$as_dirname -- "$as_dir" ||
11045 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11046 X"$as_dir" : 'X\(//\)[^/]' \| \
11047 X"$as_dir" : 'X\(//\)$' \| \
11048 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11049 echo X"$as_dir" |
11050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11051 s//\1/
11054 /^X\(\/\/\)[^/].*/{
11055 s//\1/
11058 /^X\(\/\/\)$/{
11059 s//\1/
11062 /^X\(\/\).*/{
11063 s//\1/
11066 s/.*/./; q'`
11067 test -d "$as_dir" && break
11068 done
11069 test -z "$as_dirs" || eval "mkdir $as_dirs"
11070 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11071 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11072 { (exit 1); exit 1; }; }; }
11073 { as_dir=libtomcrypt/src/encauth/ocb
11074 case $as_dir in #(
11075 -*) as_dir=./$as_dir;;
11076 esac
11077 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11078 as_dirs=
11079 while :; do
11080 case $as_dir in #(
11081 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11082 *) as_qdir=$as_dir;;
11083 esac
11084 as_dirs="'$as_qdir' $as_dirs"
11085 as_dir=`$as_dirname -- "$as_dir" ||
11086 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11087 X"$as_dir" : 'X\(//\)[^/]' \| \
11088 X"$as_dir" : 'X\(//\)$' \| \
11089 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11090 echo X"$as_dir" |
11091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11092 s//\1/
11095 /^X\(\/\/\)[^/].*/{
11096 s//\1/
11099 /^X\(\/\/\)$/{
11100 s//\1/
11103 /^X\(\/\).*/{
11104 s//\1/
11107 s/.*/./; q'`
11108 test -d "$as_dir" && break
11109 done
11110 test -z "$as_dirs" || eval "mkdir $as_dirs"
11111 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11112 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11113 { (exit 1); exit 1; }; }; }
11114 { as_dir=libtomcrypt/src/hashes
11115 case $as_dir in #(
11116 -*) as_dir=./$as_dir;;
11117 esac
11118 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11119 as_dirs=
11120 while :; do
11121 case $as_dir in #(
11122 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11123 *) as_qdir=$as_dir;;
11124 esac
11125 as_dirs="'$as_qdir' $as_dirs"
11126 as_dir=`$as_dirname -- "$as_dir" ||
11127 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11128 X"$as_dir" : 'X\(//\)[^/]' \| \
11129 X"$as_dir" : 'X\(//\)$' \| \
11130 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11131 echo X"$as_dir" |
11132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11133 s//\1/
11136 /^X\(\/\/\)[^/].*/{
11137 s//\1/
11140 /^X\(\/\/\)$/{
11141 s//\1/
11144 /^X\(\/\).*/{
11145 s//\1/
11148 s/.*/./; q'`
11149 test -d "$as_dir" && break
11150 done
11151 test -z "$as_dirs" || eval "mkdir $as_dirs"
11152 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11153 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11154 { (exit 1); exit 1; }; }; }
11155 { as_dir=libtomcrypt/src/hashes/chc
11156 case $as_dir in #(
11157 -*) as_dir=./$as_dir;;
11158 esac
11159 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11160 as_dirs=
11161 while :; do
11162 case $as_dir in #(
11163 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11164 *) as_qdir=$as_dir;;
11165 esac
11166 as_dirs="'$as_qdir' $as_dirs"
11167 as_dir=`$as_dirname -- "$as_dir" ||
11168 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11169 X"$as_dir" : 'X\(//\)[^/]' \| \
11170 X"$as_dir" : 'X\(//\)$' \| \
11171 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11172 echo X"$as_dir" |
11173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11174 s//\1/
11177 /^X\(\/\/\)[^/].*/{
11178 s//\1/
11181 /^X\(\/\/\)$/{
11182 s//\1/
11185 /^X\(\/\).*/{
11186 s//\1/
11189 s/.*/./; q'`
11190 test -d "$as_dir" && break
11191 done
11192 test -z "$as_dirs" || eval "mkdir $as_dirs"
11193 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11194 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11195 { (exit 1); exit 1; }; }; }
11196 { as_dir=libtomcrypt/src/hashes/helper
11197 case $as_dir in #(
11198 -*) as_dir=./$as_dir;;
11199 esac
11200 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11201 as_dirs=
11202 while :; do
11203 case $as_dir in #(
11204 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11205 *) as_qdir=$as_dir;;
11206 esac
11207 as_dirs="'$as_qdir' $as_dirs"
11208 as_dir=`$as_dirname -- "$as_dir" ||
11209 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11210 X"$as_dir" : 'X\(//\)[^/]' \| \
11211 X"$as_dir" : 'X\(//\)$' \| \
11212 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11213 echo X"$as_dir" |
11214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11215 s//\1/
11218 /^X\(\/\/\)[^/].*/{
11219 s//\1/
11222 /^X\(\/\/\)$/{
11223 s//\1/
11226 /^X\(\/\).*/{
11227 s//\1/
11230 s/.*/./; q'`
11231 test -d "$as_dir" && break
11232 done
11233 test -z "$as_dirs" || eval "mkdir $as_dirs"
11234 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11235 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11236 { (exit 1); exit 1; }; }; }
11237 { as_dir=libtomcrypt/src/hashes/sha2
11238 case $as_dir in #(
11239 -*) as_dir=./$as_dir;;
11240 esac
11241 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11242 as_dirs=
11243 while :; do
11244 case $as_dir in #(
11245 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11246 *) as_qdir=$as_dir;;
11247 esac
11248 as_dirs="'$as_qdir' $as_dirs"
11249 as_dir=`$as_dirname -- "$as_dir" ||
11250 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11251 X"$as_dir" : 'X\(//\)[^/]' \| \
11252 X"$as_dir" : 'X\(//\)$' \| \
11253 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11254 echo X"$as_dir" |
11255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11256 s//\1/
11259 /^X\(\/\/\)[^/].*/{
11260 s//\1/
11263 /^X\(\/\/\)$/{
11264 s//\1/
11267 /^X\(\/\).*/{
11268 s//\1/
11271 s/.*/./; q'`
11272 test -d "$as_dir" && break
11273 done
11274 test -z "$as_dirs" || eval "mkdir $as_dirs"
11275 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11276 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11277 { (exit 1); exit 1; }; }; }
11278 { as_dir=libtomcrypt/src/hashes/whirl
11279 case $as_dir in #(
11280 -*) as_dir=./$as_dir;;
11281 esac
11282 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11283 as_dirs=
11284 while :; do
11285 case $as_dir in #(
11286 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11287 *) as_qdir=$as_dir;;
11288 esac
11289 as_dirs="'$as_qdir' $as_dirs"
11290 as_dir=`$as_dirname -- "$as_dir" ||
11291 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11292 X"$as_dir" : 'X\(//\)[^/]' \| \
11293 X"$as_dir" : 'X\(//\)$' \| \
11294 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11295 echo X"$as_dir" |
11296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11297 s//\1/
11300 /^X\(\/\/\)[^/].*/{
11301 s//\1/
11304 /^X\(\/\/\)$/{
11305 s//\1/
11308 /^X\(\/\).*/{
11309 s//\1/
11312 s/.*/./; q'`
11313 test -d "$as_dir" && break
11314 done
11315 test -z "$as_dirs" || eval "mkdir $as_dirs"
11316 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11317 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11318 { (exit 1); exit 1; }; }; }
11319 { as_dir=libtomcrypt/src/mac/hmac
11320 case $as_dir in #(
11321 -*) as_dir=./$as_dir;;
11322 esac
11323 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11324 as_dirs=
11325 while :; do
11326 case $as_dir in #(
11327 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11328 *) as_qdir=$as_dir;;
11329 esac
11330 as_dirs="'$as_qdir' $as_dirs"
11331 as_dir=`$as_dirname -- "$as_dir" ||
11332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11333 X"$as_dir" : 'X\(//\)[^/]' \| \
11334 X"$as_dir" : 'X\(//\)$' \| \
11335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11336 echo X"$as_dir" |
11337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11338 s//\1/
11341 /^X\(\/\/\)[^/].*/{
11342 s//\1/
11345 /^X\(\/\/\)$/{
11346 s//\1/
11349 /^X\(\/\).*/{
11350 s//\1/
11353 s/.*/./; q'`
11354 test -d "$as_dir" && break
11355 done
11356 test -z "$as_dirs" || eval "mkdir $as_dirs"
11357 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11358 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11359 { (exit 1); exit 1; }; }; }
11360 { as_dir=libtomcrypt/src/mac/omac
11361 case $as_dir in #(
11362 -*) as_dir=./$as_dir;;
11363 esac
11364 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11365 as_dirs=
11366 while :; do
11367 case $as_dir in #(
11368 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11369 *) as_qdir=$as_dir;;
11370 esac
11371 as_dirs="'$as_qdir' $as_dirs"
11372 as_dir=`$as_dirname -- "$as_dir" ||
11373 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11374 X"$as_dir" : 'X\(//\)[^/]' \| \
11375 X"$as_dir" : 'X\(//\)$' \| \
11376 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11377 echo X"$as_dir" |
11378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11379 s//\1/
11382 /^X\(\/\/\)[^/].*/{
11383 s//\1/
11386 /^X\(\/\/\)$/{
11387 s//\1/
11390 /^X\(\/\).*/{
11391 s//\1/
11394 s/.*/./; q'`
11395 test -d "$as_dir" && break
11396 done
11397 test -z "$as_dirs" || eval "mkdir $as_dirs"
11398 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11399 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11400 { (exit 1); exit 1; }; }; }
11401 { as_dir=libtomcrypt/src/mac/pelican
11402 case $as_dir in #(
11403 -*) as_dir=./$as_dir;;
11404 esac
11405 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11406 as_dirs=
11407 while :; do
11408 case $as_dir in #(
11409 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11410 *) as_qdir=$as_dir;;
11411 esac
11412 as_dirs="'$as_qdir' $as_dirs"
11413 as_dir=`$as_dirname -- "$as_dir" ||
11414 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11415 X"$as_dir" : 'X\(//\)[^/]' \| \
11416 X"$as_dir" : 'X\(//\)$' \| \
11417 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11418 echo X"$as_dir" |
11419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11420 s//\1/
11423 /^X\(\/\/\)[^/].*/{
11424 s//\1/
11427 /^X\(\/\/\)$/{
11428 s//\1/
11431 /^X\(\/\).*/{
11432 s//\1/
11435 s/.*/./; q'`
11436 test -d "$as_dir" && break
11437 done
11438 test -z "$as_dirs" || eval "mkdir $as_dirs"
11439 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11440 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11441 { (exit 1); exit 1; }; }; }
11442 { as_dir=libtomcrypt/src/mac/pmac
11443 case $as_dir in #(
11444 -*) as_dir=./$as_dir;;
11445 esac
11446 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11447 as_dirs=
11448 while :; do
11449 case $as_dir in #(
11450 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11451 *) as_qdir=$as_dir;;
11452 esac
11453 as_dirs="'$as_qdir' $as_dirs"
11454 as_dir=`$as_dirname -- "$as_dir" ||
11455 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11456 X"$as_dir" : 'X\(//\)[^/]' \| \
11457 X"$as_dir" : 'X\(//\)$' \| \
11458 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11459 echo X"$as_dir" |
11460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11461 s//\1/
11464 /^X\(\/\/\)[^/].*/{
11465 s//\1/
11468 /^X\(\/\/\)$/{
11469 s//\1/
11472 /^X\(\/\).*/{
11473 s//\1/
11476 s/.*/./; q'`
11477 test -d "$as_dir" && break
11478 done
11479 test -z "$as_dirs" || eval "mkdir $as_dirs"
11480 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11481 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11482 { (exit 1); exit 1; }; }; }
11483 { as_dir=libtomcrypt/src/mac/f9
11484 case $as_dir in #(
11485 -*) as_dir=./$as_dir;;
11486 esac
11487 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11488 as_dirs=
11489 while :; do
11490 case $as_dir in #(
11491 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11492 *) as_qdir=$as_dir;;
11493 esac
11494 as_dirs="'$as_qdir' $as_dirs"
11495 as_dir=`$as_dirname -- "$as_dir" ||
11496 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11497 X"$as_dir" : 'X\(//\)[^/]' \| \
11498 X"$as_dir" : 'X\(//\)$' \| \
11499 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11500 echo X"$as_dir" |
11501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11502 s//\1/
11505 /^X\(\/\/\)[^/].*/{
11506 s//\1/
11509 /^X\(\/\/\)$/{
11510 s//\1/
11513 /^X\(\/\).*/{
11514 s//\1/
11517 s/.*/./; q'`
11518 test -d "$as_dir" && break
11519 done
11520 test -z "$as_dirs" || eval "mkdir $as_dirs"
11521 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11522 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11523 { (exit 1); exit 1; }; }; }
11524 { as_dir=libtomcrypt/src/mac/xcbc
11525 case $as_dir in #(
11526 -*) as_dir=./$as_dir;;
11527 esac
11528 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11529 as_dirs=
11530 while :; do
11531 case $as_dir in #(
11532 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11533 *) as_qdir=$as_dir;;
11534 esac
11535 as_dirs="'$as_qdir' $as_dirs"
11536 as_dir=`$as_dirname -- "$as_dir" ||
11537 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11538 X"$as_dir" : 'X\(//\)[^/]' \| \
11539 X"$as_dir" : 'X\(//\)$' \| \
11540 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11541 echo X"$as_dir" |
11542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11543 s//\1/
11546 /^X\(\/\/\)[^/].*/{
11547 s//\1/
11550 /^X\(\/\/\)$/{
11551 s//\1/
11554 /^X\(\/\).*/{
11555 s//\1/
11558 s/.*/./; q'`
11559 test -d "$as_dir" && break
11560 done
11561 test -z "$as_dirs" || eval "mkdir $as_dirs"
11562 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11563 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11564 { (exit 1); exit 1; }; }; }
11565 { as_dir=libtomcrypt/src/math/fp
11566 case $as_dir in #(
11567 -*) as_dir=./$as_dir;;
11568 esac
11569 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11570 as_dirs=
11571 while :; do
11572 case $as_dir in #(
11573 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11574 *) as_qdir=$as_dir;;
11575 esac
11576 as_dirs="'$as_qdir' $as_dirs"
11577 as_dir=`$as_dirname -- "$as_dir" ||
11578 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11579 X"$as_dir" : 'X\(//\)[^/]' \| \
11580 X"$as_dir" : 'X\(//\)$' \| \
11581 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11582 echo X"$as_dir" |
11583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11584 s//\1/
11587 /^X\(\/\/\)[^/].*/{
11588 s//\1/
11591 /^X\(\/\/\)$/{
11592 s//\1/
11595 /^X\(\/\).*/{
11596 s//\1/
11599 s/.*/./; q'`
11600 test -d "$as_dir" && break
11601 done
11602 test -z "$as_dirs" || eval "mkdir $as_dirs"
11603 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11604 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11605 { (exit 1); exit 1; }; }; }
11606 { as_dir=libtomcrypt/src/misc/base64
11607 case $as_dir in #(
11608 -*) as_dir=./$as_dir;;
11609 esac
11610 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11611 as_dirs=
11612 while :; do
11613 case $as_dir in #(
11614 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11615 *) as_qdir=$as_dir;;
11616 esac
11617 as_dirs="'$as_qdir' $as_dirs"
11618 as_dir=`$as_dirname -- "$as_dir" ||
11619 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11620 X"$as_dir" : 'X\(//\)[^/]' \| \
11621 X"$as_dir" : 'X\(//\)$' \| \
11622 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11623 echo X"$as_dir" |
11624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11625 s//\1/
11628 /^X\(\/\/\)[^/].*/{
11629 s//\1/
11632 /^X\(\/\/\)$/{
11633 s//\1/
11636 /^X\(\/\).*/{
11637 s//\1/
11640 s/.*/./; q'`
11641 test -d "$as_dir" && break
11642 done
11643 test -z "$as_dirs" || eval "mkdir $as_dirs"
11644 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11645 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11646 { (exit 1); exit 1; }; }; }
11647 { as_dir=libtomcrypt/src/misc/crypt
11648 case $as_dir in #(
11649 -*) as_dir=./$as_dir;;
11650 esac
11651 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11652 as_dirs=
11653 while :; do
11654 case $as_dir in #(
11655 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11656 *) as_qdir=$as_dir;;
11657 esac
11658 as_dirs="'$as_qdir' $as_dirs"
11659 as_dir=`$as_dirname -- "$as_dir" ||
11660 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11661 X"$as_dir" : 'X\(//\)[^/]' \| \
11662 X"$as_dir" : 'X\(//\)$' \| \
11663 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11664 echo X"$as_dir" |
11665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11666 s//\1/
11669 /^X\(\/\/\)[^/].*/{
11670 s//\1/
11673 /^X\(\/\/\)$/{
11674 s//\1/
11677 /^X\(\/\).*/{
11678 s//\1/
11681 s/.*/./; q'`
11682 test -d "$as_dir" && break
11683 done
11684 test -z "$as_dirs" || eval "mkdir $as_dirs"
11685 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11686 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11687 { (exit 1); exit 1; }; }; }
11688 { as_dir=libtomcrypt/src/misc/mpi
11689 case $as_dir in #(
11690 -*) as_dir=./$as_dir;;
11691 esac
11692 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11693 as_dirs=
11694 while :; do
11695 case $as_dir in #(
11696 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11697 *) as_qdir=$as_dir;;
11698 esac
11699 as_dirs="'$as_qdir' $as_dirs"
11700 as_dir=`$as_dirname -- "$as_dir" ||
11701 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11702 X"$as_dir" : 'X\(//\)[^/]' \| \
11703 X"$as_dir" : 'X\(//\)$' \| \
11704 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11705 echo X"$as_dir" |
11706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11707 s//\1/
11710 /^X\(\/\/\)[^/].*/{
11711 s//\1/
11714 /^X\(\/\/\)$/{
11715 s//\1/
11718 /^X\(\/\).*/{
11719 s//\1/
11722 s/.*/./; q'`
11723 test -d "$as_dir" && break
11724 done
11725 test -z "$as_dirs" || eval "mkdir $as_dirs"
11726 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11727 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11728 { (exit 1); exit 1; }; }; }
11729 { as_dir=libtomcrypt/src/misc/pkcs5
11730 case $as_dir in #(
11731 -*) as_dir=./$as_dir;;
11732 esac
11733 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11734 as_dirs=
11735 while :; do
11736 case $as_dir in #(
11737 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11738 *) as_qdir=$as_dir;;
11739 esac
11740 as_dirs="'$as_qdir' $as_dirs"
11741 as_dir=`$as_dirname -- "$as_dir" ||
11742 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11743 X"$as_dir" : 'X\(//\)[^/]' \| \
11744 X"$as_dir" : 'X\(//\)$' \| \
11745 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11746 echo X"$as_dir" |
11747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11748 s//\1/
11751 /^X\(\/\/\)[^/].*/{
11752 s//\1/
11755 /^X\(\/\/\)$/{
11756 s//\1/
11759 /^X\(\/\).*/{
11760 s//\1/
11763 s/.*/./; q'`
11764 test -d "$as_dir" && break
11765 done
11766 test -z "$as_dirs" || eval "mkdir $as_dirs"
11767 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11768 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11769 { (exit 1); exit 1; }; }; }
11770 { as_dir=libtomcrypt/src/modes/cbc
11771 case $as_dir in #(
11772 -*) as_dir=./$as_dir;;
11773 esac
11774 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11775 as_dirs=
11776 while :; do
11777 case $as_dir in #(
11778 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11779 *) as_qdir=$as_dir;;
11780 esac
11781 as_dirs="'$as_qdir' $as_dirs"
11782 as_dir=`$as_dirname -- "$as_dir" ||
11783 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11784 X"$as_dir" : 'X\(//\)[^/]' \| \
11785 X"$as_dir" : 'X\(//\)$' \| \
11786 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11787 echo X"$as_dir" |
11788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11789 s//\1/
11792 /^X\(\/\/\)[^/].*/{
11793 s//\1/
11796 /^X\(\/\/\)$/{
11797 s//\1/
11800 /^X\(\/\).*/{
11801 s//\1/
11804 s/.*/./; q'`
11805 test -d "$as_dir" && break
11806 done
11807 test -z "$as_dirs" || eval "mkdir $as_dirs"
11808 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11809 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11810 { (exit 1); exit 1; }; }; }
11811 { as_dir=libtomcrypt/src/modes/cfb
11812 case $as_dir in #(
11813 -*) as_dir=./$as_dir;;
11814 esac
11815 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11816 as_dirs=
11817 while :; do
11818 case $as_dir in #(
11819 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11820 *) as_qdir=$as_dir;;
11821 esac
11822 as_dirs="'$as_qdir' $as_dirs"
11823 as_dir=`$as_dirname -- "$as_dir" ||
11824 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11825 X"$as_dir" : 'X\(//\)[^/]' \| \
11826 X"$as_dir" : 'X\(//\)$' \| \
11827 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11828 echo X"$as_dir" |
11829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11830 s//\1/
11833 /^X\(\/\/\)[^/].*/{
11834 s//\1/
11837 /^X\(\/\/\)$/{
11838 s//\1/
11841 /^X\(\/\).*/{
11842 s//\1/
11845 s/.*/./; q'`
11846 test -d "$as_dir" && break
11847 done
11848 test -z "$as_dirs" || eval "mkdir $as_dirs"
11849 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11850 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11851 { (exit 1); exit 1; }; }; }
11852 { as_dir=libtomcrypt/src/modes/ctr
11853 case $as_dir in #(
11854 -*) as_dir=./$as_dir;;
11855 esac
11856 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11857 as_dirs=
11858 while :; do
11859 case $as_dir in #(
11860 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11861 *) as_qdir=$as_dir;;
11862 esac
11863 as_dirs="'$as_qdir' $as_dirs"
11864 as_dir=`$as_dirname -- "$as_dir" ||
11865 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11866 X"$as_dir" : 'X\(//\)[^/]' \| \
11867 X"$as_dir" : 'X\(//\)$' \| \
11868 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11869 echo X"$as_dir" |
11870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11871 s//\1/
11874 /^X\(\/\/\)[^/].*/{
11875 s//\1/
11878 /^X\(\/\/\)$/{
11879 s//\1/
11882 /^X\(\/\).*/{
11883 s//\1/
11886 s/.*/./; q'`
11887 test -d "$as_dir" && break
11888 done
11889 test -z "$as_dirs" || eval "mkdir $as_dirs"
11890 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11891 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11892 { (exit 1); exit 1; }; }; }
11893 { as_dir=libtomcrypt/src/modes/ecb
11894 case $as_dir in #(
11895 -*) as_dir=./$as_dir;;
11896 esac
11897 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11898 as_dirs=
11899 while :; do
11900 case $as_dir in #(
11901 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11902 *) as_qdir=$as_dir;;
11903 esac
11904 as_dirs="'$as_qdir' $as_dirs"
11905 as_dir=`$as_dirname -- "$as_dir" ||
11906 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11907 X"$as_dir" : 'X\(//\)[^/]' \| \
11908 X"$as_dir" : 'X\(//\)$' \| \
11909 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11910 echo X"$as_dir" |
11911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11912 s//\1/
11915 /^X\(\/\/\)[^/].*/{
11916 s//\1/
11919 /^X\(\/\/\)$/{
11920 s//\1/
11923 /^X\(\/\).*/{
11924 s//\1/
11927 s/.*/./; q'`
11928 test -d "$as_dir" && break
11929 done
11930 test -z "$as_dirs" || eval "mkdir $as_dirs"
11931 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11932 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11933 { (exit 1); exit 1; }; }; }
11934 { as_dir=libtomcrypt/src/modes/ofb
11935 case $as_dir in #(
11936 -*) as_dir=./$as_dir;;
11937 esac
11938 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11939 as_dirs=
11940 while :; do
11941 case $as_dir in #(
11942 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11943 *) as_qdir=$as_dir;;
11944 esac
11945 as_dirs="'$as_qdir' $as_dirs"
11946 as_dir=`$as_dirname -- "$as_dir" ||
11947 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11948 X"$as_dir" : 'X\(//\)[^/]' \| \
11949 X"$as_dir" : 'X\(//\)$' \| \
11950 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11951 echo X"$as_dir" |
11952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11953 s//\1/
11956 /^X\(\/\/\)[^/].*/{
11957 s//\1/
11960 /^X\(\/\/\)$/{
11961 s//\1/
11964 /^X\(\/\).*/{
11965 s//\1/
11968 s/.*/./; q'`
11969 test -d "$as_dir" && break
11970 done
11971 test -z "$as_dirs" || eval "mkdir $as_dirs"
11972 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11973 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11974 { (exit 1); exit 1; }; }; }
11975 { as_dir=libtomcrypt/src/modes/f8
11976 case $as_dir in #(
11977 -*) as_dir=./$as_dir;;
11978 esac
11979 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11980 as_dirs=
11981 while :; do
11982 case $as_dir in #(
11983 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11984 *) as_qdir=$as_dir;;
11985 esac
11986 as_dirs="'$as_qdir' $as_dirs"
11987 as_dir=`$as_dirname -- "$as_dir" ||
11988 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11989 X"$as_dir" : 'X\(//\)[^/]' \| \
11990 X"$as_dir" : 'X\(//\)$' \| \
11991 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11992 echo X"$as_dir" |
11993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11994 s//\1/
11997 /^X\(\/\/\)[^/].*/{
11998 s//\1/
12001 /^X\(\/\/\)$/{
12002 s//\1/
12005 /^X\(\/\).*/{
12006 s//\1/
12009 s/.*/./; q'`
12010 test -d "$as_dir" && break
12011 done
12012 test -z "$as_dirs" || eval "mkdir $as_dirs"
12013 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12014 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12015 { (exit 1); exit 1; }; }; }
12016 { as_dir=libtomcrypt/src/modes/lrw
12017 case $as_dir in #(
12018 -*) as_dir=./$as_dir;;
12019 esac
12020 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12021 as_dirs=
12022 while :; do
12023 case $as_dir in #(
12024 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12025 *) as_qdir=$as_dir;;
12026 esac
12027 as_dirs="'$as_qdir' $as_dirs"
12028 as_dir=`$as_dirname -- "$as_dir" ||
12029 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12030 X"$as_dir" : 'X\(//\)[^/]' \| \
12031 X"$as_dir" : 'X\(//\)$' \| \
12032 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12033 echo X"$as_dir" |
12034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12035 s//\1/
12038 /^X\(\/\/\)[^/].*/{
12039 s//\1/
12042 /^X\(\/\/\)$/{
12043 s//\1/
12046 /^X\(\/\).*/{
12047 s//\1/
12050 s/.*/./; q'`
12051 test -d "$as_dir" && break
12052 done
12053 test -z "$as_dirs" || eval "mkdir $as_dirs"
12054 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12055 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12056 { (exit 1); exit 1; }; }; }
12057 { as_dir=libtomcrypt/src/pk/asn1/der/bit
12058 case $as_dir in #(
12059 -*) as_dir=./$as_dir;;
12060 esac
12061 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12062 as_dirs=
12063 while :; do
12064 case $as_dir in #(
12065 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12066 *) as_qdir=$as_dir;;
12067 esac
12068 as_dirs="'$as_qdir' $as_dirs"
12069 as_dir=`$as_dirname -- "$as_dir" ||
12070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12071 X"$as_dir" : 'X\(//\)[^/]' \| \
12072 X"$as_dir" : 'X\(//\)$' \| \
12073 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12074 echo X"$as_dir" |
12075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12076 s//\1/
12079 /^X\(\/\/\)[^/].*/{
12080 s//\1/
12083 /^X\(\/\/\)$/{
12084 s//\1/
12087 /^X\(\/\).*/{
12088 s//\1/
12091 s/.*/./; q'`
12092 test -d "$as_dir" && break
12093 done
12094 test -z "$as_dirs" || eval "mkdir $as_dirs"
12095 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12096 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12097 { (exit 1); exit 1; }; }; }
12098 { as_dir=libtomcrypt/src/pk/asn1/der/choice
12099 case $as_dir in #(
12100 -*) as_dir=./$as_dir;;
12101 esac
12102 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12103 as_dirs=
12104 while :; do
12105 case $as_dir in #(
12106 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12107 *) as_qdir=$as_dir;;
12108 esac
12109 as_dirs="'$as_qdir' $as_dirs"
12110 as_dir=`$as_dirname -- "$as_dir" ||
12111 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12112 X"$as_dir" : 'X\(//\)[^/]' \| \
12113 X"$as_dir" : 'X\(//\)$' \| \
12114 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12115 echo X"$as_dir" |
12116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12117 s//\1/
12120 /^X\(\/\/\)[^/].*/{
12121 s//\1/
12124 /^X\(\/\/\)$/{
12125 s//\1/
12128 /^X\(\/\).*/{
12129 s//\1/
12132 s/.*/./; q'`
12133 test -d "$as_dir" && break
12134 done
12135 test -z "$as_dirs" || eval "mkdir $as_dirs"
12136 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12137 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12138 { (exit 1); exit 1; }; }; }
12139 { as_dir=libtomcrypt/src/pk/asn1/der/ia5
12140 case $as_dir in #(
12141 -*) as_dir=./$as_dir;;
12142 esac
12143 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12144 as_dirs=
12145 while :; do
12146 case $as_dir in #(
12147 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12148 *) as_qdir=$as_dir;;
12149 esac
12150 as_dirs="'$as_qdir' $as_dirs"
12151 as_dir=`$as_dirname -- "$as_dir" ||
12152 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12153 X"$as_dir" : 'X\(//\)[^/]' \| \
12154 X"$as_dir" : 'X\(//\)$' \| \
12155 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12156 echo X"$as_dir" |
12157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12158 s//\1/
12161 /^X\(\/\/\)[^/].*/{
12162 s//\1/
12165 /^X\(\/\/\)$/{
12166 s//\1/
12169 /^X\(\/\).*/{
12170 s//\1/
12173 s/.*/./; q'`
12174 test -d "$as_dir" && break
12175 done
12176 test -z "$as_dirs" || eval "mkdir $as_dirs"
12177 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12178 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12179 { (exit 1); exit 1; }; }; }
12180 { as_dir=libtomcrypt/src/pk/asn1/der/integer
12181 case $as_dir in #(
12182 -*) as_dir=./$as_dir;;
12183 esac
12184 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12185 as_dirs=
12186 while :; do
12187 case $as_dir in #(
12188 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12189 *) as_qdir=$as_dir;;
12190 esac
12191 as_dirs="'$as_qdir' $as_dirs"
12192 as_dir=`$as_dirname -- "$as_dir" ||
12193 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12194 X"$as_dir" : 'X\(//\)[^/]' \| \
12195 X"$as_dir" : 'X\(//\)$' \| \
12196 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12197 echo X"$as_dir" |
12198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12199 s//\1/
12202 /^X\(\/\/\)[^/].*/{
12203 s//\1/
12206 /^X\(\/\/\)$/{
12207 s//\1/
12210 /^X\(\/\).*/{
12211 s//\1/
12214 s/.*/./; q'`
12215 test -d "$as_dir" && break
12216 done
12217 test -z "$as_dirs" || eval "mkdir $as_dirs"
12218 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12219 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12220 { (exit 1); exit 1; }; }; }
12221 { as_dir=libtomcrypt/src/pk/asn1/der/object_identifier
12222 case $as_dir in #(
12223 -*) as_dir=./$as_dir;;
12224 esac
12225 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12226 as_dirs=
12227 while :; do
12228 case $as_dir in #(
12229 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12230 *) as_qdir=$as_dir;;
12231 esac
12232 as_dirs="'$as_qdir' $as_dirs"
12233 as_dir=`$as_dirname -- "$as_dir" ||
12234 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12235 X"$as_dir" : 'X\(//\)[^/]' \| \
12236 X"$as_dir" : 'X\(//\)$' \| \
12237 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12238 echo X"$as_dir" |
12239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12240 s//\1/
12243 /^X\(\/\/\)[^/].*/{
12244 s//\1/
12247 /^X\(\/\/\)$/{
12248 s//\1/
12251 /^X\(\/\).*/{
12252 s//\1/
12255 s/.*/./; q'`
12256 test -d "$as_dir" && break
12257 done
12258 test -z "$as_dirs" || eval "mkdir $as_dirs"
12259 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12260 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12261 { (exit 1); exit 1; }; }; }
12262 { as_dir=libtomcrypt/src/pk/asn1/der/octet
12263 case $as_dir in #(
12264 -*) as_dir=./$as_dir;;
12265 esac
12266 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12267 as_dirs=
12268 while :; do
12269 case $as_dir in #(
12270 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12271 *) as_qdir=$as_dir;;
12272 esac
12273 as_dirs="'$as_qdir' $as_dirs"
12274 as_dir=`$as_dirname -- "$as_dir" ||
12275 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12276 X"$as_dir" : 'X\(//\)[^/]' \| \
12277 X"$as_dir" : 'X\(//\)$' \| \
12278 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12279 echo X"$as_dir" |
12280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12281 s//\1/
12284 /^X\(\/\/\)[^/].*/{
12285 s//\1/
12288 /^X\(\/\/\)$/{
12289 s//\1/
12292 /^X\(\/\).*/{
12293 s//\1/
12296 s/.*/./; q'`
12297 test -d "$as_dir" && break
12298 done
12299 test -z "$as_dirs" || eval "mkdir $as_dirs"
12300 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12301 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12302 { (exit 1); exit 1; }; }; }
12303 { as_dir=libtomcrypt/src/pk/asn1/der/printable_string
12304 case $as_dir in #(
12305 -*) as_dir=./$as_dir;;
12306 esac
12307 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12308 as_dirs=
12309 while :; do
12310 case $as_dir in #(
12311 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12312 *) as_qdir=$as_dir;;
12313 esac
12314 as_dirs="'$as_qdir' $as_dirs"
12315 as_dir=`$as_dirname -- "$as_dir" ||
12316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12317 X"$as_dir" : 'X\(//\)[^/]' \| \
12318 X"$as_dir" : 'X\(//\)$' \| \
12319 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12320 echo X"$as_dir" |
12321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12322 s//\1/
12325 /^X\(\/\/\)[^/].*/{
12326 s//\1/
12329 /^X\(\/\/\)$/{
12330 s//\1/
12333 /^X\(\/\).*/{
12334 s//\1/
12337 s/.*/./; q'`
12338 test -d "$as_dir" && break
12339 done
12340 test -z "$as_dirs" || eval "mkdir $as_dirs"
12341 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12342 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12343 { (exit 1); exit 1; }; }; }
12344 { as_dir=libtomcrypt/src/pk/asn1/der/sequence
12345 case $as_dir in #(
12346 -*) as_dir=./$as_dir;;
12347 esac
12348 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12349 as_dirs=
12350 while :; do
12351 case $as_dir in #(
12352 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12353 *) as_qdir=$as_dir;;
12354 esac
12355 as_dirs="'$as_qdir' $as_dirs"
12356 as_dir=`$as_dirname -- "$as_dir" ||
12357 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12358 X"$as_dir" : 'X\(//\)[^/]' \| \
12359 X"$as_dir" : 'X\(//\)$' \| \
12360 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12361 echo X"$as_dir" |
12362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12363 s//\1/
12366 /^X\(\/\/\)[^/].*/{
12367 s//\1/
12370 /^X\(\/\/\)$/{
12371 s//\1/
12374 /^X\(\/\).*/{
12375 s//\1/
12378 s/.*/./; q'`
12379 test -d "$as_dir" && break
12380 done
12381 test -z "$as_dirs" || eval "mkdir $as_dirs"
12382 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12383 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12384 { (exit 1); exit 1; }; }; }
12385 { as_dir=libtomcrypt/src/pk/asn1/der/short_integer
12386 case $as_dir in #(
12387 -*) as_dir=./$as_dir;;
12388 esac
12389 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12390 as_dirs=
12391 while :; do
12392 case $as_dir in #(
12393 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12394 *) as_qdir=$as_dir;;
12395 esac
12396 as_dirs="'$as_qdir' $as_dirs"
12397 as_dir=`$as_dirname -- "$as_dir" ||
12398 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12399 X"$as_dir" : 'X\(//\)[^/]' \| \
12400 X"$as_dir" : 'X\(//\)$' \| \
12401 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12402 echo X"$as_dir" |
12403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12404 s//\1/
12407 /^X\(\/\/\)[^/].*/{
12408 s//\1/
12411 /^X\(\/\/\)$/{
12412 s//\1/
12415 /^X\(\/\).*/{
12416 s//\1/
12419 s/.*/./; q'`
12420 test -d "$as_dir" && break
12421 done
12422 test -z "$as_dirs" || eval "mkdir $as_dirs"
12423 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12424 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12425 { (exit 1); exit 1; }; }; }
12426 { as_dir=libtomcrypt/src/pk/asn1/der/utctime
12427 case $as_dir in #(
12428 -*) as_dir=./$as_dir;;
12429 esac
12430 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12431 as_dirs=
12432 while :; do
12433 case $as_dir in #(
12434 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12435 *) as_qdir=$as_dir;;
12436 esac
12437 as_dirs="'$as_qdir' $as_dirs"
12438 as_dir=`$as_dirname -- "$as_dir" ||
12439 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12440 X"$as_dir" : 'X\(//\)[^/]' \| \
12441 X"$as_dir" : 'X\(//\)$' \| \
12442 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12443 echo X"$as_dir" |
12444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12445 s//\1/
12448 /^X\(\/\/\)[^/].*/{
12449 s//\1/
12452 /^X\(\/\/\)$/{
12453 s//\1/
12456 /^X\(\/\).*/{
12457 s//\1/
12460 s/.*/./; q'`
12461 test -d "$as_dir" && break
12462 done
12463 test -z "$as_dirs" || eval "mkdir $as_dirs"
12464 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12465 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12466 { (exit 1); exit 1; }; }; }
12467 { as_dir=libtomcrypt/src/pk/dh
12468 case $as_dir in #(
12469 -*) as_dir=./$as_dir;;
12470 esac
12471 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12472 as_dirs=
12473 while :; do
12474 case $as_dir in #(
12475 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12476 *) as_qdir=$as_dir;;
12477 esac
12478 as_dirs="'$as_qdir' $as_dirs"
12479 as_dir=`$as_dirname -- "$as_dir" ||
12480 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12481 X"$as_dir" : 'X\(//\)[^/]' \| \
12482 X"$as_dir" : 'X\(//\)$' \| \
12483 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12484 echo X"$as_dir" |
12485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12486 s//\1/
12489 /^X\(\/\/\)[^/].*/{
12490 s//\1/
12493 /^X\(\/\/\)$/{
12494 s//\1/
12497 /^X\(\/\).*/{
12498 s//\1/
12501 s/.*/./; q'`
12502 test -d "$as_dir" && break
12503 done
12504 test -z "$as_dirs" || eval "mkdir $as_dirs"
12505 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12506 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12507 { (exit 1); exit 1; }; }; }
12508 { as_dir=libtomcrypt/src/pk/dsa
12509 case $as_dir in #(
12510 -*) as_dir=./$as_dir;;
12511 esac
12512 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12513 as_dirs=
12514 while :; do
12515 case $as_dir in #(
12516 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12517 *) as_qdir=$as_dir;;
12518 esac
12519 as_dirs="'$as_qdir' $as_dirs"
12520 as_dir=`$as_dirname -- "$as_dir" ||
12521 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12522 X"$as_dir" : 'X\(//\)[^/]' \| \
12523 X"$as_dir" : 'X\(//\)$' \| \
12524 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12525 echo X"$as_dir" |
12526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12527 s//\1/
12530 /^X\(\/\/\)[^/].*/{
12531 s//\1/
12534 /^X\(\/\/\)$/{
12535 s//\1/
12538 /^X\(\/\).*/{
12539 s//\1/
12542 s/.*/./; q'`
12543 test -d "$as_dir" && break
12544 done
12545 test -z "$as_dirs" || eval "mkdir $as_dirs"
12546 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12547 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12548 { (exit 1); exit 1; }; }; }
12549 { as_dir=libtomcrypt/src/pk/ecc
12550 case $as_dir in #(
12551 -*) as_dir=./$as_dir;;
12552 esac
12553 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12554 as_dirs=
12555 while :; do
12556 case $as_dir in #(
12557 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12558 *) as_qdir=$as_dir;;
12559 esac
12560 as_dirs="'$as_qdir' $as_dirs"
12561 as_dir=`$as_dirname -- "$as_dir" ||
12562 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12563 X"$as_dir" : 'X\(//\)[^/]' \| \
12564 X"$as_dir" : 'X\(//\)$' \| \
12565 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12566 echo X"$as_dir" |
12567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12568 s//\1/
12571 /^X\(\/\/\)[^/].*/{
12572 s//\1/
12575 /^X\(\/\/\)$/{
12576 s//\1/
12579 /^X\(\/\).*/{
12580 s//\1/
12583 s/.*/./; q'`
12584 test -d "$as_dir" && break
12585 done
12586 test -z "$as_dirs" || eval "mkdir $as_dirs"
12587 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12588 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12589 { (exit 1); exit 1; }; }; }
12590 { as_dir=libtomcrypt/src/pk/pkcs1
12591 case $as_dir in #(
12592 -*) as_dir=./$as_dir;;
12593 esac
12594 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12595 as_dirs=
12596 while :; do
12597 case $as_dir in #(
12598 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12599 *) as_qdir=$as_dir;;
12600 esac
12601 as_dirs="'$as_qdir' $as_dirs"
12602 as_dir=`$as_dirname -- "$as_dir" ||
12603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12604 X"$as_dir" : 'X\(//\)[^/]' \| \
12605 X"$as_dir" : 'X\(//\)$' \| \
12606 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12607 echo X"$as_dir" |
12608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12609 s//\1/
12612 /^X\(\/\/\)[^/].*/{
12613 s//\1/
12616 /^X\(\/\/\)$/{
12617 s//\1/
12620 /^X\(\/\).*/{
12621 s//\1/
12624 s/.*/./; q'`
12625 test -d "$as_dir" && break
12626 done
12627 test -z "$as_dirs" || eval "mkdir $as_dirs"
12628 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12629 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12630 { (exit 1); exit 1; }; }; }
12631 { as_dir=libtomcrypt/src/pk/rsa
12632 case $as_dir in #(
12633 -*) as_dir=./$as_dir;;
12634 esac
12635 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12636 as_dirs=
12637 while :; do
12638 case $as_dir in #(
12639 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12640 *) as_qdir=$as_dir;;
12641 esac
12642 as_dirs="'$as_qdir' $as_dirs"
12643 as_dir=`$as_dirname -- "$as_dir" ||
12644 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12645 X"$as_dir" : 'X\(//\)[^/]' \| \
12646 X"$as_dir" : 'X\(//\)$' \| \
12647 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12648 echo X"$as_dir" |
12649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12650 s//\1/
12653 /^X\(\/\/\)[^/].*/{
12654 s//\1/
12657 /^X\(\/\/\)$/{
12658 s//\1/
12661 /^X\(\/\).*/{
12662 s//\1/
12665 s/.*/./; q'`
12666 test -d "$as_dir" && break
12667 done
12668 test -z "$as_dirs" || eval "mkdir $as_dirs"
12669 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12670 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12671 { (exit 1); exit 1; }; }; }
12672 { as_dir=libtomcrypt/src/prng
12673 case $as_dir in #(
12674 -*) as_dir=./$as_dir;;
12675 esac
12676 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12677 as_dirs=
12678 while :; do
12679 case $as_dir in #(
12680 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12681 *) as_qdir=$as_dir;;
12682 esac
12683 as_dirs="'$as_qdir' $as_dirs"
12684 as_dir=`$as_dirname -- "$as_dir" ||
12685 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12686 X"$as_dir" : 'X\(//\)[^/]' \| \
12687 X"$as_dir" : 'X\(//\)$' \| \
12688 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12689 echo X"$as_dir" |
12690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12691 s//\1/
12694 /^X\(\/\/\)[^/].*/{
12695 s//\1/
12698 /^X\(\/\/\)$/{
12699 s//\1/
12702 /^X\(\/\).*/{
12703 s//\1/
12706 s/.*/./; q'`
12707 test -d "$as_dir" && break
12708 done
12709 test -z "$as_dirs" || eval "mkdir $as_dirs"
12710 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12711 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12712 { (exit 1); exit 1; }; }; }
12713 ac_config_headers="$ac_config_headers config.h"
12715 ac_config_files="$ac_config_files Makefile"
12717 cat >confcache <<\_ACEOF
12718 # This file is a shell script that caches the results of configure
12719 # tests run on this system so they can be shared between configure
12720 # scripts and configure runs, see configure's option --config-cache.
12721 # It is not useful on other systems. If it contains results you don't
12722 # want to keep, you may remove or edit it.
12724 # config.status only pays attention to the cache file if you give it
12725 # the --recheck option to rerun configure.
12727 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12728 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12729 # following values.
12731 _ACEOF
12733 # The following way of writing the cache mishandles newlines in values,
12734 # but we know of no workaround that is simple, portable, and efficient.
12735 # So, we kill variables containing newlines.
12736 # Ultrix sh set writes to stderr and can't be redirected directly,
12737 # and sets the high bit in the cache file unless we assign to the vars.
12739 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12740 eval ac_val=\$$ac_var
12741 case $ac_val in #(
12742 *${as_nl}*)
12743 case $ac_var in #(
12744 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12745 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12746 esac
12747 case $ac_var in #(
12748 _ | IFS | as_nl) ;; #(
12749 *) $as_unset $ac_var ;;
12750 esac ;;
12751 esac
12752 done
12754 (set) 2>&1 |
12755 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12756 *${as_nl}ac_space=\ *)
12757 # `set' does not quote correctly, so add quotes (double-quote
12758 # substitution turns \\\\ into \\, and sed turns \\ into \).
12759 sed -n \
12760 "s/'/'\\\\''/g;
12761 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12762 ;; #(
12764 # `set' quotes correctly as required by POSIX, so do not add quotes.
12765 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12767 esac |
12768 sort
12770 sed '
12771 /^ac_cv_env_/b end
12772 t clear
12773 :clear
12774 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12775 t end
12776 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12777 :end' >>confcache
12778 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12779 if test -w "$cache_file"; then
12780 test "x$cache_file" != "x/dev/null" &&
12781 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12782 echo "$as_me: updating cache $cache_file" >&6;}
12783 cat confcache >$cache_file
12784 else
12785 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12786 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12789 rm -f confcache
12791 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12792 # Let make expand exec_prefix.
12793 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12795 DEFS=-DHAVE_CONFIG_H
12797 ac_libobjs=
12798 ac_ltlibobjs=
12799 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12800 # 1. Remove the extension, and $U if already installed.
12801 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12802 ac_i=`echo "$ac_i" | sed "$ac_script"`
12803 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12804 # will be set to the directory where LIBOBJS objects are built.
12805 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12806 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12807 done
12808 LIBOBJS=$ac_libobjs
12810 LTLIBOBJS=$ac_ltlibobjs
12814 : ${CONFIG_STATUS=./config.status}
12815 ac_clean_files_save=$ac_clean_files
12816 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12817 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12818 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12819 cat >$CONFIG_STATUS <<_ACEOF
12820 #! $SHELL
12821 # Generated by $as_me.
12822 # Run this file to recreate the current configuration.
12823 # Compiler output produced by configure, useful for debugging
12824 # configure, is in config.log if it exists.
12826 debug=false
12827 ac_cs_recheck=false
12828 ac_cs_silent=false
12829 SHELL=\${CONFIG_SHELL-$SHELL}
12830 _ACEOF
12832 cat >>$CONFIG_STATUS <<\_ACEOF
12833 ## --------------------- ##
12834 ## M4sh Initialization. ##
12835 ## --------------------- ##
12837 # Be more Bourne compatible
12838 DUALCASE=1; export DUALCASE # for MKS sh
12839 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12840 emulate sh
12841 NULLCMD=:
12842 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12843 # is contrary to our usage. Disable this feature.
12844 alias -g '${1+"$@"}'='"$@"'
12845 setopt NO_GLOB_SUBST
12846 else
12847 case `(set -o) 2>/dev/null` in
12848 *posix*) set -o posix ;;
12849 esac
12856 # PATH needs CR
12857 # Avoid depending upon Character Ranges.
12858 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12859 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12860 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12861 as_cr_digits='0123456789'
12862 as_cr_alnum=$as_cr_Letters$as_cr_digits
12864 # The user is always right.
12865 if test "${PATH_SEPARATOR+set}" != set; then
12866 echo "#! /bin/sh" >conf$$.sh
12867 echo "exit 0" >>conf$$.sh
12868 chmod +x conf$$.sh
12869 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12870 PATH_SEPARATOR=';'
12871 else
12872 PATH_SEPARATOR=:
12874 rm -f conf$$.sh
12877 # Support unset when possible.
12878 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12879 as_unset=unset
12880 else
12881 as_unset=false
12885 # IFS
12886 # We need space, tab and new line, in precisely that order. Quoting is
12887 # there to prevent editors from complaining about space-tab.
12888 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12889 # splitting by setting IFS to empty value.)
12890 as_nl='
12892 IFS=" "" $as_nl"
12894 # Find who we are. Look in the path if we contain no directory separator.
12895 case $0 in
12896 *[\\/]* ) as_myself=$0 ;;
12897 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12898 for as_dir in $PATH
12900 IFS=$as_save_IFS
12901 test -z "$as_dir" && as_dir=.
12902 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12903 done
12904 IFS=$as_save_IFS
12907 esac
12908 # We did not find ourselves, most probably we were run as `sh COMMAND'
12909 # in which case we are not to be found in the path.
12910 if test "x$as_myself" = x; then
12911 as_myself=$0
12913 if test ! -f "$as_myself"; then
12914 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12915 { (exit 1); exit 1; }
12918 # Work around bugs in pre-3.0 UWIN ksh.
12919 for as_var in ENV MAIL MAILPATH
12920 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12921 done
12922 PS1='$ '
12923 PS2='> '
12924 PS4='+ '
12926 # NLS nuisances.
12927 for as_var in \
12928 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12929 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12930 LC_TELEPHONE LC_TIME
12932 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12933 eval $as_var=C; export $as_var
12934 else
12935 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12937 done
12939 # Required to use basename.
12940 if expr a : '\(a\)' >/dev/null 2>&1 &&
12941 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12942 as_expr=expr
12943 else
12944 as_expr=false
12947 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12948 as_basename=basename
12949 else
12950 as_basename=false
12954 # Name of the executable.
12955 as_me=`$as_basename -- "$0" ||
12956 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12957 X"$0" : 'X\(//\)$' \| \
12958 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12959 echo X/"$0" |
12960 sed '/^.*\/\([^/][^/]*\)\/*$/{
12961 s//\1/
12964 /^X\/\(\/\/\)$/{
12965 s//\1/
12968 /^X\/\(\/\).*/{
12969 s//\1/
12972 s/.*/./; q'`
12974 # CDPATH.
12975 $as_unset CDPATH
12979 as_lineno_1=$LINENO
12980 as_lineno_2=$LINENO
12981 test "x$as_lineno_1" != "x$as_lineno_2" &&
12982 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12984 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12985 # uniformly replaced by the line number. The first 'sed' inserts a
12986 # line-number line after each line using $LINENO; the second 'sed'
12987 # does the real work. The second script uses 'N' to pair each
12988 # line-number line with the line containing $LINENO, and appends
12989 # trailing '-' during substitution so that $LINENO is not a special
12990 # case at line end.
12991 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12992 # scripts with optimization help from Paolo Bonzini. Blame Lee
12993 # E. McMahon (1931-1989) for sed's syntax. :-)
12994 sed -n '
12996 /[$]LINENO/=
12997 ' <$as_myself |
12998 sed '
12999 s/[$]LINENO.*/&-/
13000 t lineno
13002 :lineno
13004 :loop
13005 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13006 t loop
13007 s/-\n.*//
13008 ' >$as_me.lineno &&
13009 chmod +x "$as_me.lineno" ||
13010 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13011 { (exit 1); exit 1; }; }
13013 # Don't try to exec as it changes $[0], causing all sort of problems
13014 # (the dirname of $[0] is not the place where we might find the
13015 # original and so on. Autoconf is especially sensitive to this).
13016 . "./$as_me.lineno"
13017 # Exit status is that of the last command.
13018 exit
13022 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13023 as_dirname=dirname
13024 else
13025 as_dirname=false
13028 ECHO_C= ECHO_N= ECHO_T=
13029 case `echo -n x` in
13030 -n*)
13031 case `echo 'x\c'` in
13032 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13033 *) ECHO_C='\c';;
13034 esac;;
13036 ECHO_N='-n';;
13037 esac
13039 if expr a : '\(a\)' >/dev/null 2>&1 &&
13040 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13041 as_expr=expr
13042 else
13043 as_expr=false
13046 rm -f conf$$ conf$$.exe conf$$.file
13047 if test -d conf$$.dir; then
13048 rm -f conf$$.dir/conf$$.file
13049 else
13050 rm -f conf$$.dir
13051 mkdir conf$$.dir
13053 echo >conf$$.file
13054 if ln -s conf$$.file conf$$ 2>/dev/null; then
13055 as_ln_s='ln -s'
13056 # ... but there are two gotchas:
13057 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13058 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13059 # In both cases, we have to default to `cp -p'.
13060 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13061 as_ln_s='cp -p'
13062 elif ln conf$$.file conf$$ 2>/dev/null; then
13063 as_ln_s=ln
13064 else
13065 as_ln_s='cp -p'
13067 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13068 rmdir conf$$.dir 2>/dev/null
13070 if mkdir -p . 2>/dev/null; then
13071 as_mkdir_p=:
13072 else
13073 test -d ./-p && rmdir ./-p
13074 as_mkdir_p=false
13077 if test -x / >/dev/null 2>&1; then
13078 as_test_x='test -x'
13079 else
13080 if ls -dL / >/dev/null 2>&1; then
13081 as_ls_L_option=L
13082 else
13083 as_ls_L_option=
13085 as_test_x='
13086 eval sh -c '\''
13087 if test -d "$1"; then
13088 test -d "$1/.";
13089 else
13090 case $1 in
13091 -*)set "./$1";;
13092 esac;
13093 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13094 ???[sx]*):;;*)false;;esac;fi
13095 '\'' sh
13098 as_executable_p=$as_test_x
13100 # Sed expression to map a string onto a valid CPP name.
13101 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13103 # Sed expression to map a string onto a valid variable name.
13104 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13107 exec 6>&1
13109 # Save the log message, to keep $[0] and so on meaningful, and to
13110 # report actual input values of CONFIG_FILES etc. instead of their
13111 # values after options handling.
13112 ac_log="
13113 This file was extended by $as_me, which was
13114 generated by GNU Autoconf 2.61. Invocation command line was
13116 CONFIG_FILES = $CONFIG_FILES
13117 CONFIG_HEADERS = $CONFIG_HEADERS
13118 CONFIG_LINKS = $CONFIG_LINKS
13119 CONFIG_COMMANDS = $CONFIG_COMMANDS
13120 $ $0 $@
13122 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13125 _ACEOF
13127 cat >>$CONFIG_STATUS <<_ACEOF
13128 # Files that config.status was made for.
13129 config_files="$ac_config_files"
13130 config_headers="$ac_config_headers"
13132 _ACEOF
13134 cat >>$CONFIG_STATUS <<\_ACEOF
13135 ac_cs_usage="\
13136 \`$as_me' instantiates files from templates according to the
13137 current configuration.
13139 Usage: $0 [OPTIONS] [FILE]...
13141 -h, --help print this help, then exit
13142 -V, --version print version number and configuration settings, then exit
13143 -q, --quiet do not print progress messages
13144 -d, --debug don't remove temporary files
13145 --recheck update $as_me by reconfiguring in the same conditions
13146 --file=FILE[:TEMPLATE]
13147 instantiate the configuration file FILE
13148 --header=FILE[:TEMPLATE]
13149 instantiate the configuration header FILE
13151 Configuration files:
13152 $config_files
13154 Configuration headers:
13155 $config_headers
13157 Report bugs to <bug-autoconf@gnu.org>."
13159 _ACEOF
13160 cat >>$CONFIG_STATUS <<_ACEOF
13161 ac_cs_version="\\
13162 config.status
13163 configured by $0, generated by GNU Autoconf 2.61,
13164 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13166 Copyright (C) 2006 Free Software Foundation, Inc.
13167 This config.status script is free software; the Free Software Foundation
13168 gives unlimited permission to copy, distribute and modify it."
13170 ac_pwd='$ac_pwd'
13171 srcdir='$srcdir'
13172 _ACEOF
13174 cat >>$CONFIG_STATUS <<\_ACEOF
13175 # If no file are specified by the user, then we need to provide default
13176 # value. By we need to know if files were specified by the user.
13177 ac_need_defaults=:
13178 while test $# != 0
13180 case $1 in
13181 --*=*)
13182 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13183 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13184 ac_shift=:
13187 ac_option=$1
13188 ac_optarg=$2
13189 ac_shift=shift
13191 esac
13193 case $ac_option in
13194 # Handling of the options.
13195 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13196 ac_cs_recheck=: ;;
13197 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13198 echo "$ac_cs_version"; exit ;;
13199 --debug | --debu | --deb | --de | --d | -d )
13200 debug=: ;;
13201 --file | --fil | --fi | --f )
13202 $ac_shift
13203 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13204 ac_need_defaults=false;;
13205 --header | --heade | --head | --hea )
13206 $ac_shift
13207 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13208 ac_need_defaults=false;;
13209 --he | --h)
13210 # Conflict between --help and --header
13211 { echo "$as_me: error: ambiguous option: $1
13212 Try \`$0 --help' for more information." >&2
13213 { (exit 1); exit 1; }; };;
13214 --help | --hel | -h )
13215 echo "$ac_cs_usage"; exit ;;
13216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13217 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13218 ac_cs_silent=: ;;
13220 # This is an error.
13221 -*) { echo "$as_me: error: unrecognized option: $1
13222 Try \`$0 --help' for more information." >&2
13223 { (exit 1); exit 1; }; } ;;
13225 *) ac_config_targets="$ac_config_targets $1"
13226 ac_need_defaults=false ;;
13228 esac
13229 shift
13230 done
13232 ac_configure_extra_args=
13234 if $ac_cs_silent; then
13235 exec 6>/dev/null
13236 ac_configure_extra_args="$ac_configure_extra_args --silent"
13239 _ACEOF
13240 cat >>$CONFIG_STATUS <<_ACEOF
13241 if \$ac_cs_recheck; then
13242 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13243 CONFIG_SHELL=$SHELL
13244 export CONFIG_SHELL
13245 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13248 _ACEOF
13249 cat >>$CONFIG_STATUS <<\_ACEOF
13250 exec 5>>config.log
13252 echo
13253 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13254 ## Running $as_me. ##
13255 _ASBOX
13256 echo "$ac_log"
13257 } >&5
13259 _ACEOF
13260 cat >>$CONFIG_STATUS <<_ACEOF
13261 _ACEOF
13263 cat >>$CONFIG_STATUS <<\_ACEOF
13265 # Handling of arguments.
13266 for ac_config_target in $ac_config_targets
13268 case $ac_config_target in
13269 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13270 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13272 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13273 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13274 { (exit 1); exit 1; }; };;
13275 esac
13276 done
13279 # If the user did not use the arguments to specify the items to instantiate,
13280 # then the envvar interface is used. Set only those that are not.
13281 # We use the long form for the default assignment because of an extremely
13282 # bizarre bug on SunOS 4.1.3.
13283 if $ac_need_defaults; then
13284 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13285 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13288 # Have a temporary directory for convenience. Make it in the build tree
13289 # simply because there is no reason against having it here, and in addition,
13290 # creating and moving files from /tmp can sometimes cause problems.
13291 # Hook for its removal unless debugging.
13292 # Note that there is a small window in which the directory will not be cleaned:
13293 # after its creation but before its name has been assigned to `$tmp'.
13294 $debug ||
13296 tmp=
13297 trap 'exit_status=$?
13298 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13300 trap '{ (exit 1); exit 1; }' 1 2 13 15
13302 # Create a (secure) tmp directory for tmp files.
13305 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13306 test -n "$tmp" && test -d "$tmp"
13307 } ||
13309 tmp=./conf$$-$RANDOM
13310 (umask 077 && mkdir "$tmp")
13311 } ||
13313 echo "$me: cannot create a temporary directory in ." >&2
13314 { (exit 1); exit 1; }
13318 # Set up the sed scripts for CONFIG_FILES section.
13321 # No need to generate the scripts if there are no CONFIG_FILES.
13322 # This happens for instance when ./config.status config.h
13323 if test -n "$CONFIG_FILES"; then
13325 _ACEOF
13329 ac_delim='%!_!# '
13330 for ac_last_try in false false false false false :; do
13331 cat >conf$$subs.sed <<_ACEOF
13332 SHELL!$SHELL$ac_delim
13333 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13334 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13335 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13336 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13337 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13338 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13339 exec_prefix!$exec_prefix$ac_delim
13340 prefix!$prefix$ac_delim
13341 program_transform_name!$program_transform_name$ac_delim
13342 bindir!$bindir$ac_delim
13343 sbindir!$sbindir$ac_delim
13344 libexecdir!$libexecdir$ac_delim
13345 datarootdir!$datarootdir$ac_delim
13346 datadir!$datadir$ac_delim
13347 sysconfdir!$sysconfdir$ac_delim
13348 sharedstatedir!$sharedstatedir$ac_delim
13349 localstatedir!$localstatedir$ac_delim
13350 includedir!$includedir$ac_delim
13351 oldincludedir!$oldincludedir$ac_delim
13352 docdir!$docdir$ac_delim
13353 infodir!$infodir$ac_delim
13354 htmldir!$htmldir$ac_delim
13355 dvidir!$dvidir$ac_delim
13356 pdfdir!$pdfdir$ac_delim
13357 psdir!$psdir$ac_delim
13358 libdir!$libdir$ac_delim
13359 localedir!$localedir$ac_delim
13360 mandir!$mandir$ac_delim
13361 DEFS!$DEFS$ac_delim
13362 ECHO_C!$ECHO_C$ac_delim
13363 ECHO_N!$ECHO_N$ac_delim
13364 ECHO_T!$ECHO_T$ac_delim
13365 LIBS!$LIBS$ac_delim
13366 build_alias!$build_alias$ac_delim
13367 host_alias!$host_alias$ac_delim
13368 target_alias!$target_alias$ac_delim
13369 CC!$CC$ac_delim
13370 CFLAGS!$CFLAGS$ac_delim
13371 LDFLAGS!$LDFLAGS$ac_delim
13372 CPPFLAGS!$CPPFLAGS$ac_delim
13373 ac_ct_CC!$ac_ct_CC$ac_delim
13374 EXEEXT!$EXEEXT$ac_delim
13375 OBJEXT!$OBJEXT$ac_delim
13376 SET_MAKE!$SET_MAKE$ac_delim
13377 LD!$LD$ac_delim
13378 build!$build$ac_delim
13379 build_cpu!$build_cpu$ac_delim
13380 build_vendor!$build_vendor$ac_delim
13381 build_os!$build_os$ac_delim
13382 host!$host$ac_delim
13383 host_cpu!$host_cpu$ac_delim
13384 host_vendor!$host_vendor$ac_delim
13385 host_os!$host_os$ac_delim
13386 AR!$AR$ac_delim
13387 RANLIB!$RANLIB$ac_delim
13388 STRIP!$STRIP$ac_delim
13389 INSTALL!$INSTALL$ac_delim
13390 CPP!$CPP$ac_delim
13391 GREP!$GREP$ac_delim
13392 EGREP!$EGREP$ac_delim
13393 LIBOBJS!$LIBOBJS$ac_delim
13394 LTLIBOBJS!$LTLIBOBJS$ac_delim
13395 _ACEOF
13397 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then
13398 break
13399 elif $ac_last_try; then
13400 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13401 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13402 { (exit 1); exit 1; }; }
13403 else
13404 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13406 done
13408 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13409 if test -n "$ac_eof"; then
13410 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13411 ac_eof=`expr $ac_eof + 1`
13414 cat >>$CONFIG_STATUS <<_ACEOF
13415 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13416 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13417 _ACEOF
13418 sed '
13419 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13420 s/^/s,@/; s/!/@,|#_!!_#|/
13423 s/'"$ac_delim"'$/,g/; t
13424 s/$/\\/; p
13425 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13426 ' >>$CONFIG_STATUS <conf$$subs.sed
13427 rm -f conf$$subs.sed
13428 cat >>$CONFIG_STATUS <<_ACEOF
13429 :end
13430 s/|#_!!_#|//g
13431 CEOF$ac_eof
13432 _ACEOF
13435 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13436 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13437 # trailing colons and then remove the whole line if VPATH becomes empty
13438 # (actually we leave an empty line to preserve line numbers).
13439 if test "x$srcdir" = x.; then
13440 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13441 s/:*\$(srcdir):*/:/
13442 s/:*\${srcdir}:*/:/
13443 s/:*@srcdir@:*/:/
13444 s/^\([^=]*=[ ]*\):*/\1/
13445 s/:*$//
13446 s/^[^=]*=[ ]*$//
13450 cat >>$CONFIG_STATUS <<\_ACEOF
13451 fi # test -n "$CONFIG_FILES"
13454 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
13456 case $ac_tag in
13457 :[FHLC]) ac_mode=$ac_tag; continue;;
13458 esac
13459 case $ac_mode$ac_tag in
13460 :[FHL]*:*);;
13461 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13462 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13463 { (exit 1); exit 1; }; };;
13464 :[FH]-) ac_tag=-:-;;
13465 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13466 esac
13467 ac_save_IFS=$IFS
13468 IFS=:
13469 set x $ac_tag
13470 IFS=$ac_save_IFS
13471 shift
13472 ac_file=$1
13473 shift
13475 case $ac_mode in
13476 :L) ac_source=$1;;
13477 :[FH])
13478 ac_file_inputs=
13479 for ac_f
13481 case $ac_f in
13482 -) ac_f="$tmp/stdin";;
13483 *) # Look for the file first in the build tree, then in the source tree
13484 # (if the path is not absolute). The absolute path cannot be DOS-style,
13485 # because $ac_f cannot contain `:'.
13486 test -f "$ac_f" ||
13487 case $ac_f in
13488 [\\/$]*) false;;
13489 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13490 esac ||
13491 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13492 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13493 { (exit 1); exit 1; }; };;
13494 esac
13495 ac_file_inputs="$ac_file_inputs $ac_f"
13496 done
13498 # Let's still pretend it is `configure' which instantiates (i.e., don't
13499 # use $as_me), people would be surprised to read:
13500 # /* config.h. Generated by config.status. */
13501 configure_input="Generated from "`IFS=:
13502 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13503 if test x"$ac_file" != x-; then
13504 configure_input="$ac_file. $configure_input"
13505 { echo "$as_me:$LINENO: creating $ac_file" >&5
13506 echo "$as_me: creating $ac_file" >&6;}
13509 case $ac_tag in
13510 *:-:* | *:-) cat >"$tmp/stdin";;
13511 esac
13513 esac
13515 ac_dir=`$as_dirname -- "$ac_file" ||
13516 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13517 X"$ac_file" : 'X\(//\)[^/]' \| \
13518 X"$ac_file" : 'X\(//\)$' \| \
13519 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13520 echo X"$ac_file" |
13521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13522 s//\1/
13525 /^X\(\/\/\)[^/].*/{
13526 s//\1/
13529 /^X\(\/\/\)$/{
13530 s//\1/
13533 /^X\(\/\).*/{
13534 s//\1/
13537 s/.*/./; q'`
13538 { as_dir="$ac_dir"
13539 case $as_dir in #(
13540 -*) as_dir=./$as_dir;;
13541 esac
13542 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13543 as_dirs=
13544 while :; do
13545 case $as_dir in #(
13546 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13547 *) as_qdir=$as_dir;;
13548 esac
13549 as_dirs="'$as_qdir' $as_dirs"
13550 as_dir=`$as_dirname -- "$as_dir" ||
13551 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13552 X"$as_dir" : 'X\(//\)[^/]' \| \
13553 X"$as_dir" : 'X\(//\)$' \| \
13554 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13555 echo X"$as_dir" |
13556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13557 s//\1/
13560 /^X\(\/\/\)[^/].*/{
13561 s//\1/
13564 /^X\(\/\/\)$/{
13565 s//\1/
13568 /^X\(\/\).*/{
13569 s//\1/
13572 s/.*/./; q'`
13573 test -d "$as_dir" && break
13574 done
13575 test -z "$as_dirs" || eval "mkdir $as_dirs"
13576 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13577 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13578 { (exit 1); exit 1; }; }; }
13579 ac_builddir=.
13581 case "$ac_dir" in
13582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13584 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13585 # A ".." for each directory in $ac_dir_suffix.
13586 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13587 case $ac_top_builddir_sub in
13588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13590 esac ;;
13591 esac
13592 ac_abs_top_builddir=$ac_pwd
13593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13594 # for backward compatibility:
13595 ac_top_builddir=$ac_top_build_prefix
13597 case $srcdir in
13598 .) # We are building in place.
13599 ac_srcdir=.
13600 ac_top_srcdir=$ac_top_builddir_sub
13601 ac_abs_top_srcdir=$ac_pwd ;;
13602 [\\/]* | ?:[\\/]* ) # Absolute name.
13603 ac_srcdir=$srcdir$ac_dir_suffix;
13604 ac_top_srcdir=$srcdir
13605 ac_abs_top_srcdir=$srcdir ;;
13606 *) # Relative name.
13607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13608 ac_top_srcdir=$ac_top_build_prefix$srcdir
13609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13610 esac
13611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13614 case $ac_mode in
13617 # CONFIG_FILE
13620 _ACEOF
13622 cat >>$CONFIG_STATUS <<\_ACEOF
13623 # If the template does not know about datarootdir, expand it.
13624 # FIXME: This hack should be removed a few years after 2.60.
13625 ac_datarootdir_hack=; ac_datarootdir_seen=
13627 case `sed -n '/datarootdir/ {
13631 /@datadir@/p
13632 /@docdir@/p
13633 /@infodir@/p
13634 /@localedir@/p
13635 /@mandir@/p
13636 ' $ac_file_inputs` in
13637 *datarootdir*) ac_datarootdir_seen=yes;;
13638 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13639 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13640 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13641 _ACEOF
13642 cat >>$CONFIG_STATUS <<_ACEOF
13643 ac_datarootdir_hack='
13644 s&@datadir@&$datadir&g
13645 s&@docdir@&$docdir&g
13646 s&@infodir@&$infodir&g
13647 s&@localedir@&$localedir&g
13648 s&@mandir@&$mandir&g
13649 s&\\\${datarootdir}&$datarootdir&g' ;;
13650 esac
13651 _ACEOF
13653 # Neutralize VPATH when `$srcdir' = `.'.
13654 # Shell code in configure.ac might set extrasub.
13655 # FIXME: do we really want to maintain this feature?
13656 cat >>$CONFIG_STATUS <<_ACEOF
13657 sed "$ac_vpsub
13658 $extrasub
13659 _ACEOF
13660 cat >>$CONFIG_STATUS <<\_ACEOF
13662 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13663 s&@configure_input@&$configure_input&;t t
13664 s&@top_builddir@&$ac_top_builddir_sub&;t t
13665 s&@srcdir@&$ac_srcdir&;t t
13666 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13667 s&@top_srcdir@&$ac_top_srcdir&;t t
13668 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13669 s&@builddir@&$ac_builddir&;t t
13670 s&@abs_builddir@&$ac_abs_builddir&;t t
13671 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13672 $ac_datarootdir_hack
13673 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
13675 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13676 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13677 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13678 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13679 which seems to be undefined. Please make sure it is defined." >&5
13680 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13681 which seems to be undefined. Please make sure it is defined." >&2;}
13683 rm -f "$tmp/stdin"
13684 case $ac_file in
13685 -) cat "$tmp/out"; rm -f "$tmp/out";;
13686 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13687 esac
13691 # CONFIG_HEADER
13693 _ACEOF
13695 # Transform confdefs.h into a sed script `conftest.defines', that
13696 # substitutes the proper values into config.h.in to produce config.h.
13697 rm -f conftest.defines conftest.tail
13698 # First, append a space to every undef/define line, to ease matching.
13699 echo 's/$/ /' >conftest.defines
13700 # Then, protect against being on the right side of a sed subst, or in
13701 # an unquoted here document, in config.status. If some macros were
13702 # called several times there might be several #defines for the same
13703 # symbol, which is useless. But do not sort them, since the last
13704 # AC_DEFINE must be honored.
13705 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13706 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13707 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13708 # PARAMS is the parameter list in the macro definition--in most cases, it's
13709 # just an empty string.
13710 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13711 ac_dB='\\)[ (].*,\\1define\\2'
13712 ac_dC=' '
13713 ac_dD=' ,'
13715 uniq confdefs.h |
13716 sed -n '
13717 t rset
13718 :rset
13719 s/^[ ]*#[ ]*define[ ][ ]*//
13720 t ok
13723 s/[\\&,]/\\&/g
13724 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13725 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13726 ' >>conftest.defines
13728 # Remove the space that was appended to ease matching.
13729 # Then replace #undef with comments. This is necessary, for
13730 # example, in the case of _POSIX_SOURCE, which is predefined and required
13731 # on some systems where configure will not decide to define it.
13732 # (The regexp can be short, since the line contains either #define or #undef.)
13733 echo 's/ $//
13734 s,^[ #]*u.*,/* & */,' >>conftest.defines
13736 # Break up conftest.defines:
13737 ac_max_sed_lines=50
13739 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13740 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13741 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13742 # et cetera.
13743 ac_in='$ac_file_inputs'
13744 ac_out='"$tmp/out1"'
13745 ac_nxt='"$tmp/out2"'
13747 while :
13749 # Write a here document:
13750 cat >>$CONFIG_STATUS <<_ACEOF
13751 # First, check the format of the line:
13752 cat >"\$tmp/defines.sed" <<\\CEOF
13753 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13754 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13756 :def
13757 _ACEOF
13758 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13759 echo 'CEOF
13760 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13761 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13762 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13763 grep . conftest.tail >/dev/null || break
13764 rm -f conftest.defines
13765 mv conftest.tail conftest.defines
13766 done
13767 rm -f conftest.defines conftest.tail
13769 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13770 cat >>$CONFIG_STATUS <<\_ACEOF
13771 if test x"$ac_file" != x-; then
13772 echo "/* $configure_input */" >"$tmp/config.h"
13773 cat "$ac_result" >>"$tmp/config.h"
13774 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13775 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13776 echo "$as_me: $ac_file is unchanged" >&6;}
13777 else
13778 rm -f $ac_file
13779 mv "$tmp/config.h" $ac_file
13781 else
13782 echo "/* $configure_input */"
13783 cat "$ac_result"
13785 rm -f "$tmp/out12"
13789 esac
13791 done # for ac_tag
13794 { (exit 0); exit 0; }
13795 _ACEOF
13796 chmod +x $CONFIG_STATUS
13797 ac_clean_files=$ac_clean_files_save
13800 # configure is writing to config.log, and then calls config.status.
13801 # config.status does its own redirection, appending to config.log.
13802 # Unfortunately, on DOS this fails, as config.log is still kept open
13803 # by configure, so config.status won't be able to write to it; its
13804 # output is simply discarded. So we exec the FD to /dev/null,
13805 # effectively closing config.log, so it can be properly (re)opened and
13806 # appended to by config.status. When coming back to configure, we
13807 # need to make the FD available again.
13808 if test "$no_create" != yes; then
13809 ac_cs_success=:
13810 ac_config_status_args=
13811 test "$silent" = yes &&
13812 ac_config_status_args="$ac_config_status_args --quiet"
13813 exec 5>/dev/null
13814 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13815 exec 5>>config.log
13816 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13817 # would make configure fail if this is the last instruction.
13818 $ac_cs_success || { (exit 1); exit 1; }
13821 ac_config_files="$ac_config_files libtomcrypt/Makefile"
13823 cat >confcache <<\_ACEOF
13824 # This file is a shell script that caches the results of configure
13825 # tests run on this system so they can be shared between configure
13826 # scripts and configure runs, see configure's option --config-cache.
13827 # It is not useful on other systems. If it contains results you don't
13828 # want to keep, you may remove or edit it.
13830 # config.status only pays attention to the cache file if you give it
13831 # the --recheck option to rerun configure.
13833 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13834 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13835 # following values.
13837 _ACEOF
13839 # The following way of writing the cache mishandles newlines in values,
13840 # but we know of no workaround that is simple, portable, and efficient.
13841 # So, we kill variables containing newlines.
13842 # Ultrix sh set writes to stderr and can't be redirected directly,
13843 # and sets the high bit in the cache file unless we assign to the vars.
13845 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13846 eval ac_val=\$$ac_var
13847 case $ac_val in #(
13848 *${as_nl}*)
13849 case $ac_var in #(
13850 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13851 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13852 esac
13853 case $ac_var in #(
13854 _ | IFS | as_nl) ;; #(
13855 *) $as_unset $ac_var ;;
13856 esac ;;
13857 esac
13858 done
13860 (set) 2>&1 |
13861 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13862 *${as_nl}ac_space=\ *)
13863 # `set' does not quote correctly, so add quotes (double-quote
13864 # substitution turns \\\\ into \\, and sed turns \\ into \).
13865 sed -n \
13866 "s/'/'\\\\''/g;
13867 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13868 ;; #(
13870 # `set' quotes correctly as required by POSIX, so do not add quotes.
13871 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13873 esac |
13874 sort
13876 sed '
13877 /^ac_cv_env_/b end
13878 t clear
13879 :clear
13880 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13881 t end
13882 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13883 :end' >>confcache
13884 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13885 if test -w "$cache_file"; then
13886 test "x$cache_file" != "x/dev/null" &&
13887 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13888 echo "$as_me: updating cache $cache_file" >&6;}
13889 cat confcache >$cache_file
13890 else
13891 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13892 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13895 rm -f confcache
13897 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13898 # Let make expand exec_prefix.
13899 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13901 DEFS=-DHAVE_CONFIG_H
13903 ac_libobjs=
13904 ac_ltlibobjs=
13905 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13906 # 1. Remove the extension, and $U if already installed.
13907 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13908 ac_i=`echo "$ac_i" | sed "$ac_script"`
13909 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13910 # will be set to the directory where LIBOBJS objects are built.
13911 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13912 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13913 done
13914 LIBOBJS=$ac_libobjs
13916 LTLIBOBJS=$ac_ltlibobjs
13920 : ${CONFIG_STATUS=./config.status}
13921 ac_clean_files_save=$ac_clean_files
13922 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13923 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13924 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13925 cat >$CONFIG_STATUS <<_ACEOF
13926 #! $SHELL
13927 # Generated by $as_me.
13928 # Run this file to recreate the current configuration.
13929 # Compiler output produced by configure, useful for debugging
13930 # configure, is in config.log if it exists.
13932 debug=false
13933 ac_cs_recheck=false
13934 ac_cs_silent=false
13935 SHELL=\${CONFIG_SHELL-$SHELL}
13936 _ACEOF
13938 cat >>$CONFIG_STATUS <<\_ACEOF
13939 ## --------------------- ##
13940 ## M4sh Initialization. ##
13941 ## --------------------- ##
13943 # Be more Bourne compatible
13944 DUALCASE=1; export DUALCASE # for MKS sh
13945 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13946 emulate sh
13947 NULLCMD=:
13948 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13949 # is contrary to our usage. Disable this feature.
13950 alias -g '${1+"$@"}'='"$@"'
13951 setopt NO_GLOB_SUBST
13952 else
13953 case `(set -o) 2>/dev/null` in
13954 *posix*) set -o posix ;;
13955 esac
13962 # PATH needs CR
13963 # Avoid depending upon Character Ranges.
13964 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13965 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13966 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13967 as_cr_digits='0123456789'
13968 as_cr_alnum=$as_cr_Letters$as_cr_digits
13970 # The user is always right.
13971 if test "${PATH_SEPARATOR+set}" != set; then
13972 echo "#! /bin/sh" >conf$$.sh
13973 echo "exit 0" >>conf$$.sh
13974 chmod +x conf$$.sh
13975 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13976 PATH_SEPARATOR=';'
13977 else
13978 PATH_SEPARATOR=:
13980 rm -f conf$$.sh
13983 # Support unset when possible.
13984 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13985 as_unset=unset
13986 else
13987 as_unset=false
13991 # IFS
13992 # We need space, tab and new line, in precisely that order. Quoting is
13993 # there to prevent editors from complaining about space-tab.
13994 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13995 # splitting by setting IFS to empty value.)
13996 as_nl='
13998 IFS=" "" $as_nl"
14000 # Find who we are. Look in the path if we contain no directory separator.
14001 case $0 in
14002 *[\\/]* ) as_myself=$0 ;;
14003 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14004 for as_dir in $PATH
14006 IFS=$as_save_IFS
14007 test -z "$as_dir" && as_dir=.
14008 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14009 done
14010 IFS=$as_save_IFS
14013 esac
14014 # We did not find ourselves, most probably we were run as `sh COMMAND'
14015 # in which case we are not to be found in the path.
14016 if test "x$as_myself" = x; then
14017 as_myself=$0
14019 if test ! -f "$as_myself"; then
14020 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14021 { (exit 1); exit 1; }
14024 # Work around bugs in pre-3.0 UWIN ksh.
14025 for as_var in ENV MAIL MAILPATH
14026 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14027 done
14028 PS1='$ '
14029 PS2='> '
14030 PS4='+ '
14032 # NLS nuisances.
14033 for as_var in \
14034 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14035 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14036 LC_TELEPHONE LC_TIME
14038 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14039 eval $as_var=C; export $as_var
14040 else
14041 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14043 done
14045 # Required to use basename.
14046 if expr a : '\(a\)' >/dev/null 2>&1 &&
14047 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14048 as_expr=expr
14049 else
14050 as_expr=false
14053 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14054 as_basename=basename
14055 else
14056 as_basename=false
14060 # Name of the executable.
14061 as_me=`$as_basename -- "$0" ||
14062 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14063 X"$0" : 'X\(//\)$' \| \
14064 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14065 echo X/"$0" |
14066 sed '/^.*\/\([^/][^/]*\)\/*$/{
14067 s//\1/
14070 /^X\/\(\/\/\)$/{
14071 s//\1/
14074 /^X\/\(\/\).*/{
14075 s//\1/
14078 s/.*/./; q'`
14080 # CDPATH.
14081 $as_unset CDPATH
14085 as_lineno_1=$LINENO
14086 as_lineno_2=$LINENO
14087 test "x$as_lineno_1" != "x$as_lineno_2" &&
14088 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14090 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14091 # uniformly replaced by the line number. The first 'sed' inserts a
14092 # line-number line after each line using $LINENO; the second 'sed'
14093 # does the real work. The second script uses 'N' to pair each
14094 # line-number line with the line containing $LINENO, and appends
14095 # trailing '-' during substitution so that $LINENO is not a special
14096 # case at line end.
14097 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14098 # scripts with optimization help from Paolo Bonzini. Blame Lee
14099 # E. McMahon (1931-1989) for sed's syntax. :-)
14100 sed -n '
14102 /[$]LINENO/=
14103 ' <$as_myself |
14104 sed '
14105 s/[$]LINENO.*/&-/
14106 t lineno
14108 :lineno
14110 :loop
14111 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14112 t loop
14113 s/-\n.*//
14114 ' >$as_me.lineno &&
14115 chmod +x "$as_me.lineno" ||
14116 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14117 { (exit 1); exit 1; }; }
14119 # Don't try to exec as it changes $[0], causing all sort of problems
14120 # (the dirname of $[0] is not the place where we might find the
14121 # original and so on. Autoconf is especially sensitive to this).
14122 . "./$as_me.lineno"
14123 # Exit status is that of the last command.
14124 exit
14128 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14129 as_dirname=dirname
14130 else
14131 as_dirname=false
14134 ECHO_C= ECHO_N= ECHO_T=
14135 case `echo -n x` in
14136 -n*)
14137 case `echo 'x\c'` in
14138 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14139 *) ECHO_C='\c';;
14140 esac;;
14142 ECHO_N='-n';;
14143 esac
14145 if expr a : '\(a\)' >/dev/null 2>&1 &&
14146 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14147 as_expr=expr
14148 else
14149 as_expr=false
14152 rm -f conf$$ conf$$.exe conf$$.file
14153 if test -d conf$$.dir; then
14154 rm -f conf$$.dir/conf$$.file
14155 else
14156 rm -f conf$$.dir
14157 mkdir conf$$.dir
14159 echo >conf$$.file
14160 if ln -s conf$$.file conf$$ 2>/dev/null; then
14161 as_ln_s='ln -s'
14162 # ... but there are two gotchas:
14163 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14164 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14165 # In both cases, we have to default to `cp -p'.
14166 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14167 as_ln_s='cp -p'
14168 elif ln conf$$.file conf$$ 2>/dev/null; then
14169 as_ln_s=ln
14170 else
14171 as_ln_s='cp -p'
14173 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14174 rmdir conf$$.dir 2>/dev/null
14176 if mkdir -p . 2>/dev/null; then
14177 as_mkdir_p=:
14178 else
14179 test -d ./-p && rmdir ./-p
14180 as_mkdir_p=false
14183 if test -x / >/dev/null 2>&1; then
14184 as_test_x='test -x'
14185 else
14186 if ls -dL / >/dev/null 2>&1; then
14187 as_ls_L_option=L
14188 else
14189 as_ls_L_option=
14191 as_test_x='
14192 eval sh -c '\''
14193 if test -d "$1"; then
14194 test -d "$1/.";
14195 else
14196 case $1 in
14197 -*)set "./$1";;
14198 esac;
14199 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14200 ???[sx]*):;;*)false;;esac;fi
14201 '\'' sh
14204 as_executable_p=$as_test_x
14206 # Sed expression to map a string onto a valid CPP name.
14207 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14209 # Sed expression to map a string onto a valid variable name.
14210 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14213 exec 6>&1
14215 # Save the log message, to keep $[0] and so on meaningful, and to
14216 # report actual input values of CONFIG_FILES etc. instead of their
14217 # values after options handling.
14218 ac_log="
14219 This file was extended by $as_me, which was
14220 generated by GNU Autoconf 2.61. Invocation command line was
14222 CONFIG_FILES = $CONFIG_FILES
14223 CONFIG_HEADERS = $CONFIG_HEADERS
14224 CONFIG_LINKS = $CONFIG_LINKS
14225 CONFIG_COMMANDS = $CONFIG_COMMANDS
14226 $ $0 $@
14228 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14231 _ACEOF
14233 cat >>$CONFIG_STATUS <<_ACEOF
14234 # Files that config.status was made for.
14235 config_files="$ac_config_files"
14236 config_headers="$ac_config_headers"
14238 _ACEOF
14240 cat >>$CONFIG_STATUS <<\_ACEOF
14241 ac_cs_usage="\
14242 \`$as_me' instantiates files from templates according to the
14243 current configuration.
14245 Usage: $0 [OPTIONS] [FILE]...
14247 -h, --help print this help, then exit
14248 -V, --version print version number and configuration settings, then exit
14249 -q, --quiet do not print progress messages
14250 -d, --debug don't remove temporary files
14251 --recheck update $as_me by reconfiguring in the same conditions
14252 --file=FILE[:TEMPLATE]
14253 instantiate the configuration file FILE
14254 --header=FILE[:TEMPLATE]
14255 instantiate the configuration header FILE
14257 Configuration files:
14258 $config_files
14260 Configuration headers:
14261 $config_headers
14263 Report bugs to <bug-autoconf@gnu.org>."
14265 _ACEOF
14266 cat >>$CONFIG_STATUS <<_ACEOF
14267 ac_cs_version="\\
14268 config.status
14269 configured by $0, generated by GNU Autoconf 2.61,
14270 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14272 Copyright (C) 2006 Free Software Foundation, Inc.
14273 This config.status script is free software; the Free Software Foundation
14274 gives unlimited permission to copy, distribute and modify it."
14276 ac_pwd='$ac_pwd'
14277 srcdir='$srcdir'
14278 _ACEOF
14280 cat >>$CONFIG_STATUS <<\_ACEOF
14281 # If no file are specified by the user, then we need to provide default
14282 # value. By we need to know if files were specified by the user.
14283 ac_need_defaults=:
14284 while test $# != 0
14286 case $1 in
14287 --*=*)
14288 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14289 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14290 ac_shift=:
14293 ac_option=$1
14294 ac_optarg=$2
14295 ac_shift=shift
14297 esac
14299 case $ac_option in
14300 # Handling of the options.
14301 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14302 ac_cs_recheck=: ;;
14303 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14304 echo "$ac_cs_version"; exit ;;
14305 --debug | --debu | --deb | --de | --d | -d )
14306 debug=: ;;
14307 --file | --fil | --fi | --f )
14308 $ac_shift
14309 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14310 ac_need_defaults=false;;
14311 --header | --heade | --head | --hea )
14312 $ac_shift
14313 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14314 ac_need_defaults=false;;
14315 --he | --h)
14316 # Conflict between --help and --header
14317 { echo "$as_me: error: ambiguous option: $1
14318 Try \`$0 --help' for more information." >&2
14319 { (exit 1); exit 1; }; };;
14320 --help | --hel | -h )
14321 echo "$ac_cs_usage"; exit ;;
14322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14323 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14324 ac_cs_silent=: ;;
14326 # This is an error.
14327 -*) { echo "$as_me: error: unrecognized option: $1
14328 Try \`$0 --help' for more information." >&2
14329 { (exit 1); exit 1; }; } ;;
14331 *) ac_config_targets="$ac_config_targets $1"
14332 ac_need_defaults=false ;;
14334 esac
14335 shift
14336 done
14338 ac_configure_extra_args=
14340 if $ac_cs_silent; then
14341 exec 6>/dev/null
14342 ac_configure_extra_args="$ac_configure_extra_args --silent"
14345 _ACEOF
14346 cat >>$CONFIG_STATUS <<_ACEOF
14347 if \$ac_cs_recheck; then
14348 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14349 CONFIG_SHELL=$SHELL
14350 export CONFIG_SHELL
14351 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14354 _ACEOF
14355 cat >>$CONFIG_STATUS <<\_ACEOF
14356 exec 5>>config.log
14358 echo
14359 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14360 ## Running $as_me. ##
14361 _ASBOX
14362 echo "$ac_log"
14363 } >&5
14365 _ACEOF
14366 cat >>$CONFIG_STATUS <<_ACEOF
14367 _ACEOF
14369 cat >>$CONFIG_STATUS <<\_ACEOF
14371 # Handling of arguments.
14372 for ac_config_target in $ac_config_targets
14374 case $ac_config_target in
14375 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14376 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14377 "libtomcrypt/Makefile") CONFIG_FILES="$CONFIG_FILES libtomcrypt/Makefile" ;;
14379 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14380 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14381 { (exit 1); exit 1; }; };;
14382 esac
14383 done
14386 # If the user did not use the arguments to specify the items to instantiate,
14387 # then the envvar interface is used. Set only those that are not.
14388 # We use the long form for the default assignment because of an extremely
14389 # bizarre bug on SunOS 4.1.3.
14390 if $ac_need_defaults; then
14391 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14392 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14395 # Have a temporary directory for convenience. Make it in the build tree
14396 # simply because there is no reason against having it here, and in addition,
14397 # creating and moving files from /tmp can sometimes cause problems.
14398 # Hook for its removal unless debugging.
14399 # Note that there is a small window in which the directory will not be cleaned:
14400 # after its creation but before its name has been assigned to `$tmp'.
14401 $debug ||
14403 tmp=
14404 trap 'exit_status=$?
14405 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14407 trap '{ (exit 1); exit 1; }' 1 2 13 15
14409 # Create a (secure) tmp directory for tmp files.
14412 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14413 test -n "$tmp" && test -d "$tmp"
14414 } ||
14416 tmp=./conf$$-$RANDOM
14417 (umask 077 && mkdir "$tmp")
14418 } ||
14420 echo "$me: cannot create a temporary directory in ." >&2
14421 { (exit 1); exit 1; }
14425 # Set up the sed scripts for CONFIG_FILES section.
14428 # No need to generate the scripts if there are no CONFIG_FILES.
14429 # This happens for instance when ./config.status config.h
14430 if test -n "$CONFIG_FILES"; then
14432 _ACEOF
14436 ac_delim='%!_!# '
14437 for ac_last_try in false false false false false :; do
14438 cat >conf$$subs.sed <<_ACEOF
14439 SHELL!$SHELL$ac_delim
14440 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14441 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14442 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14443 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14444 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14445 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14446 exec_prefix!$exec_prefix$ac_delim
14447 prefix!$prefix$ac_delim
14448 program_transform_name!$program_transform_name$ac_delim
14449 bindir!$bindir$ac_delim
14450 sbindir!$sbindir$ac_delim
14451 libexecdir!$libexecdir$ac_delim
14452 datarootdir!$datarootdir$ac_delim
14453 datadir!$datadir$ac_delim
14454 sysconfdir!$sysconfdir$ac_delim
14455 sharedstatedir!$sharedstatedir$ac_delim
14456 localstatedir!$localstatedir$ac_delim
14457 includedir!$includedir$ac_delim
14458 oldincludedir!$oldincludedir$ac_delim
14459 docdir!$docdir$ac_delim
14460 infodir!$infodir$ac_delim
14461 htmldir!$htmldir$ac_delim
14462 dvidir!$dvidir$ac_delim
14463 pdfdir!$pdfdir$ac_delim
14464 psdir!$psdir$ac_delim
14465 libdir!$libdir$ac_delim
14466 localedir!$localedir$ac_delim
14467 mandir!$mandir$ac_delim
14468 DEFS!$DEFS$ac_delim
14469 ECHO_C!$ECHO_C$ac_delim
14470 ECHO_N!$ECHO_N$ac_delim
14471 ECHO_T!$ECHO_T$ac_delim
14472 LIBS!$LIBS$ac_delim
14473 build_alias!$build_alias$ac_delim
14474 host_alias!$host_alias$ac_delim
14475 target_alias!$target_alias$ac_delim
14476 CC!$CC$ac_delim
14477 CFLAGS!$CFLAGS$ac_delim
14478 LDFLAGS!$LDFLAGS$ac_delim
14479 CPPFLAGS!$CPPFLAGS$ac_delim
14480 ac_ct_CC!$ac_ct_CC$ac_delim
14481 EXEEXT!$EXEEXT$ac_delim
14482 OBJEXT!$OBJEXT$ac_delim
14483 SET_MAKE!$SET_MAKE$ac_delim
14484 LD!$LD$ac_delim
14485 build!$build$ac_delim
14486 build_cpu!$build_cpu$ac_delim
14487 build_vendor!$build_vendor$ac_delim
14488 build_os!$build_os$ac_delim
14489 host!$host$ac_delim
14490 host_cpu!$host_cpu$ac_delim
14491 host_vendor!$host_vendor$ac_delim
14492 host_os!$host_os$ac_delim
14493 AR!$AR$ac_delim
14494 RANLIB!$RANLIB$ac_delim
14495 STRIP!$STRIP$ac_delim
14496 INSTALL!$INSTALL$ac_delim
14497 CPP!$CPP$ac_delim
14498 GREP!$GREP$ac_delim
14499 EGREP!$EGREP$ac_delim
14500 LIBOBJS!$LIBOBJS$ac_delim
14501 LTLIBOBJS!$LTLIBOBJS$ac_delim
14502 _ACEOF
14504 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then
14505 break
14506 elif $ac_last_try; then
14507 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14508 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14509 { (exit 1); exit 1; }; }
14510 else
14511 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14513 done
14515 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14516 if test -n "$ac_eof"; then
14517 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14518 ac_eof=`expr $ac_eof + 1`
14521 cat >>$CONFIG_STATUS <<_ACEOF
14522 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14523 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14524 _ACEOF
14525 sed '
14526 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14527 s/^/s,@/; s/!/@,|#_!!_#|/
14530 s/'"$ac_delim"'$/,g/; t
14531 s/$/\\/; p
14532 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14533 ' >>$CONFIG_STATUS <conf$$subs.sed
14534 rm -f conf$$subs.sed
14535 cat >>$CONFIG_STATUS <<_ACEOF
14536 :end
14537 s/|#_!!_#|//g
14538 CEOF$ac_eof
14539 _ACEOF
14542 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14543 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14544 # trailing colons and then remove the whole line if VPATH becomes empty
14545 # (actually we leave an empty line to preserve line numbers).
14546 if test "x$srcdir" = x.; then
14547 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14548 s/:*\$(srcdir):*/:/
14549 s/:*\${srcdir}:*/:/
14550 s/:*@srcdir@:*/:/
14551 s/^\([^=]*=[ ]*\):*/\1/
14552 s/:*$//
14553 s/^[^=]*=[ ]*$//
14557 cat >>$CONFIG_STATUS <<\_ACEOF
14558 fi # test -n "$CONFIG_FILES"
14561 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
14563 case $ac_tag in
14564 :[FHLC]) ac_mode=$ac_tag; continue;;
14565 esac
14566 case $ac_mode$ac_tag in
14567 :[FHL]*:*);;
14568 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14569 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14570 { (exit 1); exit 1; }; };;
14571 :[FH]-) ac_tag=-:-;;
14572 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14573 esac
14574 ac_save_IFS=$IFS
14575 IFS=:
14576 set x $ac_tag
14577 IFS=$ac_save_IFS
14578 shift
14579 ac_file=$1
14580 shift
14582 case $ac_mode in
14583 :L) ac_source=$1;;
14584 :[FH])
14585 ac_file_inputs=
14586 for ac_f
14588 case $ac_f in
14589 -) ac_f="$tmp/stdin";;
14590 *) # Look for the file first in the build tree, then in the source tree
14591 # (if the path is not absolute). The absolute path cannot be DOS-style,
14592 # because $ac_f cannot contain `:'.
14593 test -f "$ac_f" ||
14594 case $ac_f in
14595 [\\/$]*) false;;
14596 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14597 esac ||
14598 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14599 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14600 { (exit 1); exit 1; }; };;
14601 esac
14602 ac_file_inputs="$ac_file_inputs $ac_f"
14603 done
14605 # Let's still pretend it is `configure' which instantiates (i.e., don't
14606 # use $as_me), people would be surprised to read:
14607 # /* config.h. Generated by config.status. */
14608 configure_input="Generated from "`IFS=:
14609 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14610 if test x"$ac_file" != x-; then
14611 configure_input="$ac_file. $configure_input"
14612 { echo "$as_me:$LINENO: creating $ac_file" >&5
14613 echo "$as_me: creating $ac_file" >&6;}
14616 case $ac_tag in
14617 *:-:* | *:-) cat >"$tmp/stdin";;
14618 esac
14620 esac
14622 ac_dir=`$as_dirname -- "$ac_file" ||
14623 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14624 X"$ac_file" : 'X\(//\)[^/]' \| \
14625 X"$ac_file" : 'X\(//\)$' \| \
14626 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14627 echo X"$ac_file" |
14628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14629 s//\1/
14632 /^X\(\/\/\)[^/].*/{
14633 s//\1/
14636 /^X\(\/\/\)$/{
14637 s//\1/
14640 /^X\(\/\).*/{
14641 s//\1/
14644 s/.*/./; q'`
14645 { as_dir="$ac_dir"
14646 case $as_dir in #(
14647 -*) as_dir=./$as_dir;;
14648 esac
14649 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14650 as_dirs=
14651 while :; do
14652 case $as_dir in #(
14653 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14654 *) as_qdir=$as_dir;;
14655 esac
14656 as_dirs="'$as_qdir' $as_dirs"
14657 as_dir=`$as_dirname -- "$as_dir" ||
14658 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14659 X"$as_dir" : 'X\(//\)[^/]' \| \
14660 X"$as_dir" : 'X\(//\)$' \| \
14661 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14662 echo X"$as_dir" |
14663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14664 s//\1/
14667 /^X\(\/\/\)[^/].*/{
14668 s//\1/
14671 /^X\(\/\/\)$/{
14672 s//\1/
14675 /^X\(\/\).*/{
14676 s//\1/
14679 s/.*/./; q'`
14680 test -d "$as_dir" && break
14681 done
14682 test -z "$as_dirs" || eval "mkdir $as_dirs"
14683 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14684 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14685 { (exit 1); exit 1; }; }; }
14686 ac_builddir=.
14688 case "$ac_dir" in
14689 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14691 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14692 # A ".." for each directory in $ac_dir_suffix.
14693 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14694 case $ac_top_builddir_sub in
14695 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14696 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14697 esac ;;
14698 esac
14699 ac_abs_top_builddir=$ac_pwd
14700 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14701 # for backward compatibility:
14702 ac_top_builddir=$ac_top_build_prefix
14704 case $srcdir in
14705 .) # We are building in place.
14706 ac_srcdir=.
14707 ac_top_srcdir=$ac_top_builddir_sub
14708 ac_abs_top_srcdir=$ac_pwd ;;
14709 [\\/]* | ?:[\\/]* ) # Absolute name.
14710 ac_srcdir=$srcdir$ac_dir_suffix;
14711 ac_top_srcdir=$srcdir
14712 ac_abs_top_srcdir=$srcdir ;;
14713 *) # Relative name.
14714 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14715 ac_top_srcdir=$ac_top_build_prefix$srcdir
14716 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14717 esac
14718 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14721 case $ac_mode in
14724 # CONFIG_FILE
14727 _ACEOF
14729 cat >>$CONFIG_STATUS <<\_ACEOF
14730 # If the template does not know about datarootdir, expand it.
14731 # FIXME: This hack should be removed a few years after 2.60.
14732 ac_datarootdir_hack=; ac_datarootdir_seen=
14734 case `sed -n '/datarootdir/ {
14738 /@datadir@/p
14739 /@docdir@/p
14740 /@infodir@/p
14741 /@localedir@/p
14742 /@mandir@/p
14743 ' $ac_file_inputs` in
14744 *datarootdir*) ac_datarootdir_seen=yes;;
14745 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14746 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14747 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14748 _ACEOF
14749 cat >>$CONFIG_STATUS <<_ACEOF
14750 ac_datarootdir_hack='
14751 s&@datadir@&$datadir&g
14752 s&@docdir@&$docdir&g
14753 s&@infodir@&$infodir&g
14754 s&@localedir@&$localedir&g
14755 s&@mandir@&$mandir&g
14756 s&\\\${datarootdir}&$datarootdir&g' ;;
14757 esac
14758 _ACEOF
14760 # Neutralize VPATH when `$srcdir' = `.'.
14761 # Shell code in configure.ac might set extrasub.
14762 # FIXME: do we really want to maintain this feature?
14763 cat >>$CONFIG_STATUS <<_ACEOF
14764 sed "$ac_vpsub
14765 $extrasub
14766 _ACEOF
14767 cat >>$CONFIG_STATUS <<\_ACEOF
14769 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14770 s&@configure_input@&$configure_input&;t t
14771 s&@top_builddir@&$ac_top_builddir_sub&;t t
14772 s&@srcdir@&$ac_srcdir&;t t
14773 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14774 s&@top_srcdir@&$ac_top_srcdir&;t t
14775 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14776 s&@builddir@&$ac_builddir&;t t
14777 s&@abs_builddir@&$ac_abs_builddir&;t t
14778 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14779 $ac_datarootdir_hack
14780 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
14782 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14783 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14784 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14785 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14786 which seems to be undefined. Please make sure it is defined." >&5
14787 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14788 which seems to be undefined. Please make sure it is defined." >&2;}
14790 rm -f "$tmp/stdin"
14791 case $ac_file in
14792 -) cat "$tmp/out"; rm -f "$tmp/out";;
14793 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14794 esac
14798 # CONFIG_HEADER
14800 _ACEOF
14802 # Transform confdefs.h into a sed script `conftest.defines', that
14803 # substitutes the proper values into config.h.in to produce config.h.
14804 rm -f conftest.defines conftest.tail
14805 # First, append a space to every undef/define line, to ease matching.
14806 echo 's/$/ /' >conftest.defines
14807 # Then, protect against being on the right side of a sed subst, or in
14808 # an unquoted here document, in config.status. If some macros were
14809 # called several times there might be several #defines for the same
14810 # symbol, which is useless. But do not sort them, since the last
14811 # AC_DEFINE must be honored.
14812 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14813 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14814 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14815 # PARAMS is the parameter list in the macro definition--in most cases, it's
14816 # just an empty string.
14817 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14818 ac_dB='\\)[ (].*,\\1define\\2'
14819 ac_dC=' '
14820 ac_dD=' ,'
14822 uniq confdefs.h |
14823 sed -n '
14824 t rset
14825 :rset
14826 s/^[ ]*#[ ]*define[ ][ ]*//
14827 t ok
14830 s/[\\&,]/\\&/g
14831 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14832 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14833 ' >>conftest.defines
14835 # Remove the space that was appended to ease matching.
14836 # Then replace #undef with comments. This is necessary, for
14837 # example, in the case of _POSIX_SOURCE, which is predefined and required
14838 # on some systems where configure will not decide to define it.
14839 # (The regexp can be short, since the line contains either #define or #undef.)
14840 echo 's/ $//
14841 s,^[ #]*u.*,/* & */,' >>conftest.defines
14843 # Break up conftest.defines:
14844 ac_max_sed_lines=50
14846 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14847 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14848 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14849 # et cetera.
14850 ac_in='$ac_file_inputs'
14851 ac_out='"$tmp/out1"'
14852 ac_nxt='"$tmp/out2"'
14854 while :
14856 # Write a here document:
14857 cat >>$CONFIG_STATUS <<_ACEOF
14858 # First, check the format of the line:
14859 cat >"\$tmp/defines.sed" <<\\CEOF
14860 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14861 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14863 :def
14864 _ACEOF
14865 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14866 echo 'CEOF
14867 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14868 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14869 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14870 grep . conftest.tail >/dev/null || break
14871 rm -f conftest.defines
14872 mv conftest.tail conftest.defines
14873 done
14874 rm -f conftest.defines conftest.tail
14876 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14877 cat >>$CONFIG_STATUS <<\_ACEOF
14878 if test x"$ac_file" != x-; then
14879 echo "/* $configure_input */" >"$tmp/config.h"
14880 cat "$ac_result" >>"$tmp/config.h"
14881 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14882 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14883 echo "$as_me: $ac_file is unchanged" >&6;}
14884 else
14885 rm -f $ac_file
14886 mv "$tmp/config.h" $ac_file
14888 else
14889 echo "/* $configure_input */"
14890 cat "$ac_result"
14892 rm -f "$tmp/out12"
14896 esac
14898 done # for ac_tag
14901 { (exit 0); exit 0; }
14902 _ACEOF
14903 chmod +x $CONFIG_STATUS
14904 ac_clean_files=$ac_clean_files_save
14907 # configure is writing to config.log, and then calls config.status.
14908 # config.status does its own redirection, appending to config.log.
14909 # Unfortunately, on DOS this fails, as config.log is still kept open
14910 # by configure, so config.status won't be able to write to it; its
14911 # output is simply discarded. So we exec the FD to /dev/null,
14912 # effectively closing config.log, so it can be properly (re)opened and
14913 # appended to by config.status. When coming back to configure, we
14914 # need to make the FD available again.
14915 if test "$no_create" != yes; then
14916 ac_cs_success=:
14917 ac_config_status_args=
14918 test "$silent" = yes &&
14919 ac_config_status_args="$ac_config_status_args --quiet"
14920 exec 5>/dev/null
14921 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14922 exec 5>>config.log
14923 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14924 # would make configure fail if this is the last instruction.
14925 $ac_cs_success || { (exit 1); exit 1; }
14928 ac_config_files="$ac_config_files libtommath/Makefile"
14930 cat >confcache <<\_ACEOF
14931 # This file is a shell script that caches the results of configure
14932 # tests run on this system so they can be shared between configure
14933 # scripts and configure runs, see configure's option --config-cache.
14934 # It is not useful on other systems. If it contains results you don't
14935 # want to keep, you may remove or edit it.
14937 # config.status only pays attention to the cache file if you give it
14938 # the --recheck option to rerun configure.
14940 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14941 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14942 # following values.
14944 _ACEOF
14946 # The following way of writing the cache mishandles newlines in values,
14947 # but we know of no workaround that is simple, portable, and efficient.
14948 # So, we kill variables containing newlines.
14949 # Ultrix sh set writes to stderr and can't be redirected directly,
14950 # and sets the high bit in the cache file unless we assign to the vars.
14952 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14953 eval ac_val=\$$ac_var
14954 case $ac_val in #(
14955 *${as_nl}*)
14956 case $ac_var in #(
14957 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14958 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14959 esac
14960 case $ac_var in #(
14961 _ | IFS | as_nl) ;; #(
14962 *) $as_unset $ac_var ;;
14963 esac ;;
14964 esac
14965 done
14967 (set) 2>&1 |
14968 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14969 *${as_nl}ac_space=\ *)
14970 # `set' does not quote correctly, so add quotes (double-quote
14971 # substitution turns \\\\ into \\, and sed turns \\ into \).
14972 sed -n \
14973 "s/'/'\\\\''/g;
14974 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14975 ;; #(
14977 # `set' quotes correctly as required by POSIX, so do not add quotes.
14978 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14980 esac |
14981 sort
14983 sed '
14984 /^ac_cv_env_/b end
14985 t clear
14986 :clear
14987 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14988 t end
14989 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14990 :end' >>confcache
14991 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14992 if test -w "$cache_file"; then
14993 test "x$cache_file" != "x/dev/null" &&
14994 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14995 echo "$as_me: updating cache $cache_file" >&6;}
14996 cat confcache >$cache_file
14997 else
14998 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14999 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15002 rm -f confcache
15004 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15005 # Let make expand exec_prefix.
15006 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15008 DEFS=-DHAVE_CONFIG_H
15010 ac_libobjs=
15011 ac_ltlibobjs=
15012 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15013 # 1. Remove the extension, and $U if already installed.
15014 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15015 ac_i=`echo "$ac_i" | sed "$ac_script"`
15016 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15017 # will be set to the directory where LIBOBJS objects are built.
15018 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15019 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15020 done
15021 LIBOBJS=$ac_libobjs
15023 LTLIBOBJS=$ac_ltlibobjs
15027 : ${CONFIG_STATUS=./config.status}
15028 ac_clean_files_save=$ac_clean_files
15029 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15030 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15031 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15032 cat >$CONFIG_STATUS <<_ACEOF
15033 #! $SHELL
15034 # Generated by $as_me.
15035 # Run this file to recreate the current configuration.
15036 # Compiler output produced by configure, useful for debugging
15037 # configure, is in config.log if it exists.
15039 debug=false
15040 ac_cs_recheck=false
15041 ac_cs_silent=false
15042 SHELL=\${CONFIG_SHELL-$SHELL}
15043 _ACEOF
15045 cat >>$CONFIG_STATUS <<\_ACEOF
15046 ## --------------------- ##
15047 ## M4sh Initialization. ##
15048 ## --------------------- ##
15050 # Be more Bourne compatible
15051 DUALCASE=1; export DUALCASE # for MKS sh
15052 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15053 emulate sh
15054 NULLCMD=:
15055 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15056 # is contrary to our usage. Disable this feature.
15057 alias -g '${1+"$@"}'='"$@"'
15058 setopt NO_GLOB_SUBST
15059 else
15060 case `(set -o) 2>/dev/null` in
15061 *posix*) set -o posix ;;
15062 esac
15069 # PATH needs CR
15070 # Avoid depending upon Character Ranges.
15071 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15072 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15073 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15074 as_cr_digits='0123456789'
15075 as_cr_alnum=$as_cr_Letters$as_cr_digits
15077 # The user is always right.
15078 if test "${PATH_SEPARATOR+set}" != set; then
15079 echo "#! /bin/sh" >conf$$.sh
15080 echo "exit 0" >>conf$$.sh
15081 chmod +x conf$$.sh
15082 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15083 PATH_SEPARATOR=';'
15084 else
15085 PATH_SEPARATOR=:
15087 rm -f conf$$.sh
15090 # Support unset when possible.
15091 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15092 as_unset=unset
15093 else
15094 as_unset=false
15098 # IFS
15099 # We need space, tab and new line, in precisely that order. Quoting is
15100 # there to prevent editors from complaining about space-tab.
15101 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15102 # splitting by setting IFS to empty value.)
15103 as_nl='
15105 IFS=" "" $as_nl"
15107 # Find who we are. Look in the path if we contain no directory separator.
15108 case $0 in
15109 *[\\/]* ) as_myself=$0 ;;
15110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15111 for as_dir in $PATH
15113 IFS=$as_save_IFS
15114 test -z "$as_dir" && as_dir=.
15115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15116 done
15117 IFS=$as_save_IFS
15120 esac
15121 # We did not find ourselves, most probably we were run as `sh COMMAND'
15122 # in which case we are not to be found in the path.
15123 if test "x$as_myself" = x; then
15124 as_myself=$0
15126 if test ! -f "$as_myself"; then
15127 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15128 { (exit 1); exit 1; }
15131 # Work around bugs in pre-3.0 UWIN ksh.
15132 for as_var in ENV MAIL MAILPATH
15133 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15134 done
15135 PS1='$ '
15136 PS2='> '
15137 PS4='+ '
15139 # NLS nuisances.
15140 for as_var in \
15141 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15142 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15143 LC_TELEPHONE LC_TIME
15145 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15146 eval $as_var=C; export $as_var
15147 else
15148 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15150 done
15152 # Required to use basename.
15153 if expr a : '\(a\)' >/dev/null 2>&1 &&
15154 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15155 as_expr=expr
15156 else
15157 as_expr=false
15160 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15161 as_basename=basename
15162 else
15163 as_basename=false
15167 # Name of the executable.
15168 as_me=`$as_basename -- "$0" ||
15169 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15170 X"$0" : 'X\(//\)$' \| \
15171 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15172 echo X/"$0" |
15173 sed '/^.*\/\([^/][^/]*\)\/*$/{
15174 s//\1/
15177 /^X\/\(\/\/\)$/{
15178 s//\1/
15181 /^X\/\(\/\).*/{
15182 s//\1/
15185 s/.*/./; q'`
15187 # CDPATH.
15188 $as_unset CDPATH
15192 as_lineno_1=$LINENO
15193 as_lineno_2=$LINENO
15194 test "x$as_lineno_1" != "x$as_lineno_2" &&
15195 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15197 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15198 # uniformly replaced by the line number. The first 'sed' inserts a
15199 # line-number line after each line using $LINENO; the second 'sed'
15200 # does the real work. The second script uses 'N' to pair each
15201 # line-number line with the line containing $LINENO, and appends
15202 # trailing '-' during substitution so that $LINENO is not a special
15203 # case at line end.
15204 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15205 # scripts with optimization help from Paolo Bonzini. Blame Lee
15206 # E. McMahon (1931-1989) for sed's syntax. :-)
15207 sed -n '
15209 /[$]LINENO/=
15210 ' <$as_myself |
15211 sed '
15212 s/[$]LINENO.*/&-/
15213 t lineno
15215 :lineno
15217 :loop
15218 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15219 t loop
15220 s/-\n.*//
15221 ' >$as_me.lineno &&
15222 chmod +x "$as_me.lineno" ||
15223 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15224 { (exit 1); exit 1; }; }
15226 # Don't try to exec as it changes $[0], causing all sort of problems
15227 # (the dirname of $[0] is not the place where we might find the
15228 # original and so on. Autoconf is especially sensitive to this).
15229 . "./$as_me.lineno"
15230 # Exit status is that of the last command.
15231 exit
15235 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15236 as_dirname=dirname
15237 else
15238 as_dirname=false
15241 ECHO_C= ECHO_N= ECHO_T=
15242 case `echo -n x` in
15243 -n*)
15244 case `echo 'x\c'` in
15245 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15246 *) ECHO_C='\c';;
15247 esac;;
15249 ECHO_N='-n';;
15250 esac
15252 if expr a : '\(a\)' >/dev/null 2>&1 &&
15253 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15254 as_expr=expr
15255 else
15256 as_expr=false
15259 rm -f conf$$ conf$$.exe conf$$.file
15260 if test -d conf$$.dir; then
15261 rm -f conf$$.dir/conf$$.file
15262 else
15263 rm -f conf$$.dir
15264 mkdir conf$$.dir
15266 echo >conf$$.file
15267 if ln -s conf$$.file conf$$ 2>/dev/null; then
15268 as_ln_s='ln -s'
15269 # ... but there are two gotchas:
15270 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15271 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15272 # In both cases, we have to default to `cp -p'.
15273 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15274 as_ln_s='cp -p'
15275 elif ln conf$$.file conf$$ 2>/dev/null; then
15276 as_ln_s=ln
15277 else
15278 as_ln_s='cp -p'
15280 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15281 rmdir conf$$.dir 2>/dev/null
15283 if mkdir -p . 2>/dev/null; then
15284 as_mkdir_p=:
15285 else
15286 test -d ./-p && rmdir ./-p
15287 as_mkdir_p=false
15290 if test -x / >/dev/null 2>&1; then
15291 as_test_x='test -x'
15292 else
15293 if ls -dL / >/dev/null 2>&1; then
15294 as_ls_L_option=L
15295 else
15296 as_ls_L_option=
15298 as_test_x='
15299 eval sh -c '\''
15300 if test -d "$1"; then
15301 test -d "$1/.";
15302 else
15303 case $1 in
15304 -*)set "./$1";;
15305 esac;
15306 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15307 ???[sx]*):;;*)false;;esac;fi
15308 '\'' sh
15311 as_executable_p=$as_test_x
15313 # Sed expression to map a string onto a valid CPP name.
15314 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15316 # Sed expression to map a string onto a valid variable name.
15317 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15320 exec 6>&1
15322 # Save the log message, to keep $[0] and so on meaningful, and to
15323 # report actual input values of CONFIG_FILES etc. instead of their
15324 # values after options handling.
15325 ac_log="
15326 This file was extended by $as_me, which was
15327 generated by GNU Autoconf 2.61. Invocation command line was
15329 CONFIG_FILES = $CONFIG_FILES
15330 CONFIG_HEADERS = $CONFIG_HEADERS
15331 CONFIG_LINKS = $CONFIG_LINKS
15332 CONFIG_COMMANDS = $CONFIG_COMMANDS
15333 $ $0 $@
15335 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15338 _ACEOF
15340 cat >>$CONFIG_STATUS <<_ACEOF
15341 # Files that config.status was made for.
15342 config_files="$ac_config_files"
15343 config_headers="$ac_config_headers"
15345 _ACEOF
15347 cat >>$CONFIG_STATUS <<\_ACEOF
15348 ac_cs_usage="\
15349 \`$as_me' instantiates files from templates according to the
15350 current configuration.
15352 Usage: $0 [OPTIONS] [FILE]...
15354 -h, --help print this help, then exit
15355 -V, --version print version number and configuration settings, then exit
15356 -q, --quiet do not print progress messages
15357 -d, --debug don't remove temporary files
15358 --recheck update $as_me by reconfiguring in the same conditions
15359 --file=FILE[:TEMPLATE]
15360 instantiate the configuration file FILE
15361 --header=FILE[:TEMPLATE]
15362 instantiate the configuration header FILE
15364 Configuration files:
15365 $config_files
15367 Configuration headers:
15368 $config_headers
15370 Report bugs to <bug-autoconf@gnu.org>."
15372 _ACEOF
15373 cat >>$CONFIG_STATUS <<_ACEOF
15374 ac_cs_version="\\
15375 config.status
15376 configured by $0, generated by GNU Autoconf 2.61,
15377 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15379 Copyright (C) 2006 Free Software Foundation, Inc.
15380 This config.status script is free software; the Free Software Foundation
15381 gives unlimited permission to copy, distribute and modify it."
15383 ac_pwd='$ac_pwd'
15384 srcdir='$srcdir'
15385 _ACEOF
15387 cat >>$CONFIG_STATUS <<\_ACEOF
15388 # If no file are specified by the user, then we need to provide default
15389 # value. By we need to know if files were specified by the user.
15390 ac_need_defaults=:
15391 while test $# != 0
15393 case $1 in
15394 --*=*)
15395 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15396 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15397 ac_shift=:
15400 ac_option=$1
15401 ac_optarg=$2
15402 ac_shift=shift
15404 esac
15406 case $ac_option in
15407 # Handling of the options.
15408 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15409 ac_cs_recheck=: ;;
15410 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15411 echo "$ac_cs_version"; exit ;;
15412 --debug | --debu | --deb | --de | --d | -d )
15413 debug=: ;;
15414 --file | --fil | --fi | --f )
15415 $ac_shift
15416 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15417 ac_need_defaults=false;;
15418 --header | --heade | --head | --hea )
15419 $ac_shift
15420 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15421 ac_need_defaults=false;;
15422 --he | --h)
15423 # Conflict between --help and --header
15424 { echo "$as_me: error: ambiguous option: $1
15425 Try \`$0 --help' for more information." >&2
15426 { (exit 1); exit 1; }; };;
15427 --help | --hel | -h )
15428 echo "$ac_cs_usage"; exit ;;
15429 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15430 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15431 ac_cs_silent=: ;;
15433 # This is an error.
15434 -*) { echo "$as_me: error: unrecognized option: $1
15435 Try \`$0 --help' for more information." >&2
15436 { (exit 1); exit 1; }; } ;;
15438 *) ac_config_targets="$ac_config_targets $1"
15439 ac_need_defaults=false ;;
15441 esac
15442 shift
15443 done
15445 ac_configure_extra_args=
15447 if $ac_cs_silent; then
15448 exec 6>/dev/null
15449 ac_configure_extra_args="$ac_configure_extra_args --silent"
15452 _ACEOF
15453 cat >>$CONFIG_STATUS <<_ACEOF
15454 if \$ac_cs_recheck; then
15455 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15456 CONFIG_SHELL=$SHELL
15457 export CONFIG_SHELL
15458 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15461 _ACEOF
15462 cat >>$CONFIG_STATUS <<\_ACEOF
15463 exec 5>>config.log
15465 echo
15466 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15467 ## Running $as_me. ##
15468 _ASBOX
15469 echo "$ac_log"
15470 } >&5
15472 _ACEOF
15473 cat >>$CONFIG_STATUS <<_ACEOF
15474 _ACEOF
15476 cat >>$CONFIG_STATUS <<\_ACEOF
15478 # Handling of arguments.
15479 for ac_config_target in $ac_config_targets
15481 case $ac_config_target in
15482 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15483 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15484 "libtomcrypt/Makefile") CONFIG_FILES="$CONFIG_FILES libtomcrypt/Makefile" ;;
15485 "libtommath/Makefile") CONFIG_FILES="$CONFIG_FILES libtommath/Makefile" ;;
15487 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15488 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15489 { (exit 1); exit 1; }; };;
15490 esac
15491 done
15494 # If the user did not use the arguments to specify the items to instantiate,
15495 # then the envvar interface is used. Set only those that are not.
15496 # We use the long form for the default assignment because of an extremely
15497 # bizarre bug on SunOS 4.1.3.
15498 if $ac_need_defaults; then
15499 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15500 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15503 # Have a temporary directory for convenience. Make it in the build tree
15504 # simply because there is no reason against having it here, and in addition,
15505 # creating and moving files from /tmp can sometimes cause problems.
15506 # Hook for its removal unless debugging.
15507 # Note that there is a small window in which the directory will not be cleaned:
15508 # after its creation but before its name has been assigned to `$tmp'.
15509 $debug ||
15511 tmp=
15512 trap 'exit_status=$?
15513 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15515 trap '{ (exit 1); exit 1; }' 1 2 13 15
15517 # Create a (secure) tmp directory for tmp files.
15520 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15521 test -n "$tmp" && test -d "$tmp"
15522 } ||
15524 tmp=./conf$$-$RANDOM
15525 (umask 077 && mkdir "$tmp")
15526 } ||
15528 echo "$me: cannot create a temporary directory in ." >&2
15529 { (exit 1); exit 1; }
15533 # Set up the sed scripts for CONFIG_FILES section.
15536 # No need to generate the scripts if there are no CONFIG_FILES.
15537 # This happens for instance when ./config.status config.h
15538 if test -n "$CONFIG_FILES"; then
15540 _ACEOF
15544 ac_delim='%!_!# '
15545 for ac_last_try in false false false false false :; do
15546 cat >conf$$subs.sed <<_ACEOF
15547 SHELL!$SHELL$ac_delim
15548 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15549 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15550 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15551 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15552 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15553 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15554 exec_prefix!$exec_prefix$ac_delim
15555 prefix!$prefix$ac_delim
15556 program_transform_name!$program_transform_name$ac_delim
15557 bindir!$bindir$ac_delim
15558 sbindir!$sbindir$ac_delim
15559 libexecdir!$libexecdir$ac_delim
15560 datarootdir!$datarootdir$ac_delim
15561 datadir!$datadir$ac_delim
15562 sysconfdir!$sysconfdir$ac_delim
15563 sharedstatedir!$sharedstatedir$ac_delim
15564 localstatedir!$localstatedir$ac_delim
15565 includedir!$includedir$ac_delim
15566 oldincludedir!$oldincludedir$ac_delim
15567 docdir!$docdir$ac_delim
15568 infodir!$infodir$ac_delim
15569 htmldir!$htmldir$ac_delim
15570 dvidir!$dvidir$ac_delim
15571 pdfdir!$pdfdir$ac_delim
15572 psdir!$psdir$ac_delim
15573 libdir!$libdir$ac_delim
15574 localedir!$localedir$ac_delim
15575 mandir!$mandir$ac_delim
15576 DEFS!$DEFS$ac_delim
15577 ECHO_C!$ECHO_C$ac_delim
15578 ECHO_N!$ECHO_N$ac_delim
15579 ECHO_T!$ECHO_T$ac_delim
15580 LIBS!$LIBS$ac_delim
15581 build_alias!$build_alias$ac_delim
15582 host_alias!$host_alias$ac_delim
15583 target_alias!$target_alias$ac_delim
15584 CC!$CC$ac_delim
15585 CFLAGS!$CFLAGS$ac_delim
15586 LDFLAGS!$LDFLAGS$ac_delim
15587 CPPFLAGS!$CPPFLAGS$ac_delim
15588 ac_ct_CC!$ac_ct_CC$ac_delim
15589 EXEEXT!$EXEEXT$ac_delim
15590 OBJEXT!$OBJEXT$ac_delim
15591 SET_MAKE!$SET_MAKE$ac_delim
15592 LD!$LD$ac_delim
15593 build!$build$ac_delim
15594 build_cpu!$build_cpu$ac_delim
15595 build_vendor!$build_vendor$ac_delim
15596 build_os!$build_os$ac_delim
15597 host!$host$ac_delim
15598 host_cpu!$host_cpu$ac_delim
15599 host_vendor!$host_vendor$ac_delim
15600 host_os!$host_os$ac_delim
15601 AR!$AR$ac_delim
15602 RANLIB!$RANLIB$ac_delim
15603 STRIP!$STRIP$ac_delim
15604 INSTALL!$INSTALL$ac_delim
15605 CPP!$CPP$ac_delim
15606 GREP!$GREP$ac_delim
15607 EGREP!$EGREP$ac_delim
15608 LIBOBJS!$LIBOBJS$ac_delim
15609 LTLIBOBJS!$LTLIBOBJS$ac_delim
15610 _ACEOF
15612 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then
15613 break
15614 elif $ac_last_try; then
15615 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15616 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15617 { (exit 1); exit 1; }; }
15618 else
15619 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15621 done
15623 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15624 if test -n "$ac_eof"; then
15625 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15626 ac_eof=`expr $ac_eof + 1`
15629 cat >>$CONFIG_STATUS <<_ACEOF
15630 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15631 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15632 _ACEOF
15633 sed '
15634 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15635 s/^/s,@/; s/!/@,|#_!!_#|/
15638 s/'"$ac_delim"'$/,g/; t
15639 s/$/\\/; p
15640 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15641 ' >>$CONFIG_STATUS <conf$$subs.sed
15642 rm -f conf$$subs.sed
15643 cat >>$CONFIG_STATUS <<_ACEOF
15644 :end
15645 s/|#_!!_#|//g
15646 CEOF$ac_eof
15647 _ACEOF
15650 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15651 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15652 # trailing colons and then remove the whole line if VPATH becomes empty
15653 # (actually we leave an empty line to preserve line numbers).
15654 if test "x$srcdir" = x.; then
15655 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15656 s/:*\$(srcdir):*/:/
15657 s/:*\${srcdir}:*/:/
15658 s/:*@srcdir@:*/:/
15659 s/^\([^=]*=[ ]*\):*/\1/
15660 s/:*$//
15661 s/^[^=]*=[ ]*$//
15665 cat >>$CONFIG_STATUS <<\_ACEOF
15666 fi # test -n "$CONFIG_FILES"
15669 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
15671 case $ac_tag in
15672 :[FHLC]) ac_mode=$ac_tag; continue;;
15673 esac
15674 case $ac_mode$ac_tag in
15675 :[FHL]*:*);;
15676 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15677 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15678 { (exit 1); exit 1; }; };;
15679 :[FH]-) ac_tag=-:-;;
15680 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15681 esac
15682 ac_save_IFS=$IFS
15683 IFS=:
15684 set x $ac_tag
15685 IFS=$ac_save_IFS
15686 shift
15687 ac_file=$1
15688 shift
15690 case $ac_mode in
15691 :L) ac_source=$1;;
15692 :[FH])
15693 ac_file_inputs=
15694 for ac_f
15696 case $ac_f in
15697 -) ac_f="$tmp/stdin";;
15698 *) # Look for the file first in the build tree, then in the source tree
15699 # (if the path is not absolute). The absolute path cannot be DOS-style,
15700 # because $ac_f cannot contain `:'.
15701 test -f "$ac_f" ||
15702 case $ac_f in
15703 [\\/$]*) false;;
15704 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15705 esac ||
15706 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15707 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15708 { (exit 1); exit 1; }; };;
15709 esac
15710 ac_file_inputs="$ac_file_inputs $ac_f"
15711 done
15713 # Let's still pretend it is `configure' which instantiates (i.e., don't
15714 # use $as_me), people would be surprised to read:
15715 # /* config.h. Generated by config.status. */
15716 configure_input="Generated from "`IFS=:
15717 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15718 if test x"$ac_file" != x-; then
15719 configure_input="$ac_file. $configure_input"
15720 { echo "$as_me:$LINENO: creating $ac_file" >&5
15721 echo "$as_me: creating $ac_file" >&6;}
15724 case $ac_tag in
15725 *:-:* | *:-) cat >"$tmp/stdin";;
15726 esac
15728 esac
15730 ac_dir=`$as_dirname -- "$ac_file" ||
15731 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15732 X"$ac_file" : 'X\(//\)[^/]' \| \
15733 X"$ac_file" : 'X\(//\)$' \| \
15734 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15735 echo X"$ac_file" |
15736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15737 s//\1/
15740 /^X\(\/\/\)[^/].*/{
15741 s//\1/
15744 /^X\(\/\/\)$/{
15745 s//\1/
15748 /^X\(\/\).*/{
15749 s//\1/
15752 s/.*/./; q'`
15753 { as_dir="$ac_dir"
15754 case $as_dir in #(
15755 -*) as_dir=./$as_dir;;
15756 esac
15757 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15758 as_dirs=
15759 while :; do
15760 case $as_dir in #(
15761 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15762 *) as_qdir=$as_dir;;
15763 esac
15764 as_dirs="'$as_qdir' $as_dirs"
15765 as_dir=`$as_dirname -- "$as_dir" ||
15766 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15767 X"$as_dir" : 'X\(//\)[^/]' \| \
15768 X"$as_dir" : 'X\(//\)$' \| \
15769 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15770 echo X"$as_dir" |
15771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15772 s//\1/
15775 /^X\(\/\/\)[^/].*/{
15776 s//\1/
15779 /^X\(\/\/\)$/{
15780 s//\1/
15783 /^X\(\/\).*/{
15784 s//\1/
15787 s/.*/./; q'`
15788 test -d "$as_dir" && break
15789 done
15790 test -z "$as_dirs" || eval "mkdir $as_dirs"
15791 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15792 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15793 { (exit 1); exit 1; }; }; }
15794 ac_builddir=.
15796 case "$ac_dir" in
15797 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15799 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15800 # A ".." for each directory in $ac_dir_suffix.
15801 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15802 case $ac_top_builddir_sub in
15803 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15804 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15805 esac ;;
15806 esac
15807 ac_abs_top_builddir=$ac_pwd
15808 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15809 # for backward compatibility:
15810 ac_top_builddir=$ac_top_build_prefix
15812 case $srcdir in
15813 .) # We are building in place.
15814 ac_srcdir=.
15815 ac_top_srcdir=$ac_top_builddir_sub
15816 ac_abs_top_srcdir=$ac_pwd ;;
15817 [\\/]* | ?:[\\/]* ) # Absolute name.
15818 ac_srcdir=$srcdir$ac_dir_suffix;
15819 ac_top_srcdir=$srcdir
15820 ac_abs_top_srcdir=$srcdir ;;
15821 *) # Relative name.
15822 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15823 ac_top_srcdir=$ac_top_build_prefix$srcdir
15824 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15825 esac
15826 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15829 case $ac_mode in
15832 # CONFIG_FILE
15835 _ACEOF
15837 cat >>$CONFIG_STATUS <<\_ACEOF
15838 # If the template does not know about datarootdir, expand it.
15839 # FIXME: This hack should be removed a few years after 2.60.
15840 ac_datarootdir_hack=; ac_datarootdir_seen=
15842 case `sed -n '/datarootdir/ {
15846 /@datadir@/p
15847 /@docdir@/p
15848 /@infodir@/p
15849 /@localedir@/p
15850 /@mandir@/p
15851 ' $ac_file_inputs` in
15852 *datarootdir*) ac_datarootdir_seen=yes;;
15853 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15854 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15855 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15856 _ACEOF
15857 cat >>$CONFIG_STATUS <<_ACEOF
15858 ac_datarootdir_hack='
15859 s&@datadir@&$datadir&g
15860 s&@docdir@&$docdir&g
15861 s&@infodir@&$infodir&g
15862 s&@localedir@&$localedir&g
15863 s&@mandir@&$mandir&g
15864 s&\\\${datarootdir}&$datarootdir&g' ;;
15865 esac
15866 _ACEOF
15868 # Neutralize VPATH when `$srcdir' = `.'.
15869 # Shell code in configure.ac might set extrasub.
15870 # FIXME: do we really want to maintain this feature?
15871 cat >>$CONFIG_STATUS <<_ACEOF
15872 sed "$ac_vpsub
15873 $extrasub
15874 _ACEOF
15875 cat >>$CONFIG_STATUS <<\_ACEOF
15877 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15878 s&@configure_input@&$configure_input&;t t
15879 s&@top_builddir@&$ac_top_builddir_sub&;t t
15880 s&@srcdir@&$ac_srcdir&;t t
15881 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15882 s&@top_srcdir@&$ac_top_srcdir&;t t
15883 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15884 s&@builddir@&$ac_builddir&;t t
15885 s&@abs_builddir@&$ac_abs_builddir&;t t
15886 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15887 $ac_datarootdir_hack
15888 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
15890 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15891 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15892 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15893 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15894 which seems to be undefined. Please make sure it is defined." >&5
15895 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15896 which seems to be undefined. Please make sure it is defined." >&2;}
15898 rm -f "$tmp/stdin"
15899 case $ac_file in
15900 -) cat "$tmp/out"; rm -f "$tmp/out";;
15901 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15902 esac
15906 # CONFIG_HEADER
15908 _ACEOF
15910 # Transform confdefs.h into a sed script `conftest.defines', that
15911 # substitutes the proper values into config.h.in to produce config.h.
15912 rm -f conftest.defines conftest.tail
15913 # First, append a space to every undef/define line, to ease matching.
15914 echo 's/$/ /' >conftest.defines
15915 # Then, protect against being on the right side of a sed subst, or in
15916 # an unquoted here document, in config.status. If some macros were
15917 # called several times there might be several #defines for the same
15918 # symbol, which is useless. But do not sort them, since the last
15919 # AC_DEFINE must be honored.
15920 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15921 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15922 # NAME is the cpp macro being defined, VALUE is the value it is being given.
15923 # PARAMS is the parameter list in the macro definition--in most cases, it's
15924 # just an empty string.
15925 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15926 ac_dB='\\)[ (].*,\\1define\\2'
15927 ac_dC=' '
15928 ac_dD=' ,'
15930 uniq confdefs.h |
15931 sed -n '
15932 t rset
15933 :rset
15934 s/^[ ]*#[ ]*define[ ][ ]*//
15935 t ok
15938 s/[\\&,]/\\&/g
15939 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15940 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15941 ' >>conftest.defines
15943 # Remove the space that was appended to ease matching.
15944 # Then replace #undef with comments. This is necessary, for
15945 # example, in the case of _POSIX_SOURCE, which is predefined and required
15946 # on some systems where configure will not decide to define it.
15947 # (The regexp can be short, since the line contains either #define or #undef.)
15948 echo 's/ $//
15949 s,^[ #]*u.*,/* & */,' >>conftest.defines
15951 # Break up conftest.defines:
15952 ac_max_sed_lines=50
15954 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15955 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15956 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15957 # et cetera.
15958 ac_in='$ac_file_inputs'
15959 ac_out='"$tmp/out1"'
15960 ac_nxt='"$tmp/out2"'
15962 while :
15964 # Write a here document:
15965 cat >>$CONFIG_STATUS <<_ACEOF
15966 # First, check the format of the line:
15967 cat >"\$tmp/defines.sed" <<\\CEOF
15968 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15969 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15971 :def
15972 _ACEOF
15973 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
15974 echo 'CEOF
15975 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15976 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15977 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15978 grep . conftest.tail >/dev/null || break
15979 rm -f conftest.defines
15980 mv conftest.tail conftest.defines
15981 done
15982 rm -f conftest.defines conftest.tail
15984 echo "ac_result=$ac_in" >>$CONFIG_STATUS
15985 cat >>$CONFIG_STATUS <<\_ACEOF
15986 if test x"$ac_file" != x-; then
15987 echo "/* $configure_input */" >"$tmp/config.h"
15988 cat "$ac_result" >>"$tmp/config.h"
15989 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
15990 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15991 echo "$as_me: $ac_file is unchanged" >&6;}
15992 else
15993 rm -f $ac_file
15994 mv "$tmp/config.h" $ac_file
15996 else
15997 echo "/* $configure_input */"
15998 cat "$ac_result"
16000 rm -f "$tmp/out12"
16004 esac
16006 done # for ac_tag
16009 { (exit 0); exit 0; }
16010 _ACEOF
16011 chmod +x $CONFIG_STATUS
16012 ac_clean_files=$ac_clean_files_save
16015 # configure is writing to config.log, and then calls config.status.
16016 # config.status does its own redirection, appending to config.log.
16017 # Unfortunately, on DOS this fails, as config.log is still kept open
16018 # by configure, so config.status won't be able to write to it; its
16019 # output is simply discarded. So we exec the FD to /dev/null,
16020 # effectively closing config.log, so it can be properly (re)opened and
16021 # appended to by config.status. When coming back to configure, we
16022 # need to make the FD available again.
16023 if test "$no_create" != yes; then
16024 ac_cs_success=:
16025 ac_config_status_args=
16026 test "$silent" = yes &&
16027 ac_config_status_args="$ac_config_status_args --quiet"
16028 exec 5>/dev/null
16029 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16030 exec 5>>config.log
16031 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16032 # would make configure fail if this is the last instruction.
16033 $ac_cs_success || { (exit 1); exit 1; }
16036 { echo "$as_me:$LINENO: " >&5
16037 echo "$as_me: " >&6;}
16038 { echo "$as_me:$LINENO: Now edit options.h to choose features." >&5
16039 echo "$as_me: Now edit options.h to choose features." >&6;}