2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="buffer.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 ac_subst_vars
='LTLIBOBJS
678 program_transform_name
691 enable_option_checking
700 enable_bundled_libtom
711 ac_precious_vars
='build_alias
722 # Initialize some variables set by options.
724 ac_init_version
=false
725 ac_unrecognized_opts
=
727 # The variables have the same names as the options, with
728 # dashes changed to underlines.
736 program_transform_name
=s
,x
,x
,
744 # Installation directory options.
745 # These are left unexpanded so users can "make install exec_prefix=/foo"
746 # and all the variables that are supposed to be based on exec_prefix
747 # by default will actually change.
748 # Use braces instead of parens because sh, perl, etc. also accept them.
749 # (The list follows the same order as the GNU Coding Standards.)
750 bindir
='${exec_prefix}/bin'
751 sbindir
='${exec_prefix}/sbin'
752 libexecdir
='${exec_prefix}/libexec'
753 datarootdir
='${prefix}/share'
754 datadir
='${datarootdir}'
755 sysconfdir
='${prefix}/etc'
756 sharedstatedir
='${prefix}/com'
757 localstatedir
='${prefix}/var'
758 includedir
='${prefix}/include'
759 oldincludedir
='/usr/include'
760 docdir
='${datarootdir}/doc/${PACKAGE}'
761 infodir
='${datarootdir}/info'
766 libdir
='${exec_prefix}/lib'
767 localedir
='${datarootdir}/locale'
768 mandir
='${datarootdir}/man'
774 # If the previous option needs an argument, assign it.
775 if test -n "$ac_prev"; then
776 eval $ac_prev=\
$ac_option
782 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
787 # Accept the important Cygnus configure options, so we can diagnose typos.
789 case $ac_dashdash$ac_option in
793 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
795 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
798 -build |
--build |
--buil |
--bui |
--bu)
799 ac_prev
=build_alias
;;
800 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
801 build_alias
=$ac_optarg ;;
803 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
804 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
805 ac_prev
=cache_file
;;
806 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
807 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
808 cache_file
=$ac_optarg ;;
811 cache_file
=config.cache
;;
813 -datadir |
--datadir |
--datadi |
--datad)
815 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
816 datadir
=$ac_optarg ;;
818 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
819 |
--dataroo |
--dataro |
--datar)
820 ac_prev
=datarootdir
;;
821 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
822 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
823 datarootdir
=$ac_optarg ;;
825 -disable-* |
--disable-*)
826 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
827 # Reject names that are not valid shell variable names.
828 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
829 as_fn_error $?
"invalid feature name: $ac_useropt"
830 ac_useropt_orig
=$ac_useropt
831 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
832 case $ac_user_opts in
836 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
837 ac_unrecognized_sep
=', ';;
839 eval enable_
$ac_useropt=no
;;
841 -docdir |
--docdir |
--docdi |
--doc |
--do)
843 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
846 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
848 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
851 -enable-* |
--enable-*)
852 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
855 as_fn_error $?
"invalid feature name: $ac_useropt"
856 ac_useropt_orig
=$ac_useropt
857 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
858 case $ac_user_opts in
862 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
863 ac_unrecognized_sep
=', ';;
865 eval enable_
$ac_useropt=\
$ac_optarg ;;
867 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
868 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
869 |
--exec |
--exe |
--ex)
870 ac_prev
=exec_prefix
;;
871 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
872 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
873 |
--exec=* |
--exe=* |
--ex=*)
874 exec_prefix
=$ac_optarg ;;
876 -gas |
--gas |
--ga |
--g)
877 # Obsolete; use --with-gas.
880 -help |
--help |
--hel |
--he |
-h)
882 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
883 ac_init_help
=recursive
;;
884 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
885 ac_init_help
=short
;;
887 -host |
--host |
--hos |
--ho)
888 ac_prev
=host_alias
;;
889 -host=* |
--host=* |
--hos=* |
--ho=*)
890 host_alias
=$ac_optarg ;;
892 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
894 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
896 htmldir
=$ac_optarg ;;
898 -includedir |
--includedir |
--includedi |
--included |
--include \
899 |
--includ |
--inclu |
--incl |
--inc)
900 ac_prev
=includedir
;;
901 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
902 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
903 includedir
=$ac_optarg ;;
905 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
907 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
908 infodir
=$ac_optarg ;;
910 -libdir |
--libdir |
--libdi |
--libd)
912 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
915 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
916 |
--libexe |
--libex |
--libe)
917 ac_prev
=libexecdir
;;
918 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
919 |
--libexe=* |
--libex=* |
--libe=*)
920 libexecdir
=$ac_optarg ;;
922 -localedir |
--localedir |
--localedi |
--localed |
--locale)
924 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
925 localedir
=$ac_optarg ;;
927 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
928 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
929 ac_prev
=localstatedir
;;
930 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
931 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
932 localstatedir
=$ac_optarg ;;
934 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
936 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
940 # Obsolete; use --without-fp.
943 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
944 |
--no-cr |
--no-c |
-n)
947 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
948 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
951 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
952 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
953 |
--oldin |
--oldi |
--old |
--ol |
--o)
954 ac_prev
=oldincludedir
;;
955 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
956 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
957 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
958 oldincludedir
=$ac_optarg ;;
960 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
962 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
965 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
966 |
--program-pre |
--program-pr |
--program-p)
967 ac_prev
=program_prefix
;;
968 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
969 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
970 program_prefix
=$ac_optarg ;;
972 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
973 |
--program-suf |
--program-su |
--program-s)
974 ac_prev
=program_suffix
;;
975 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
976 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
977 program_suffix
=$ac_optarg ;;
979 -program-transform-name |
--program-transform-name \
980 |
--program-transform-nam |
--program-transform-na \
981 |
--program-transform-n |
--program-transform- \
982 |
--program-transform |
--program-transfor \
983 |
--program-transfo |
--program-transf \
984 |
--program-trans |
--program-tran \
985 |
--progr-tra |
--program-tr |
--program-t)
986 ac_prev
=program_transform_name
;;
987 -program-transform-name=* |
--program-transform-name=* \
988 |
--program-transform-nam=* |
--program-transform-na=* \
989 |
--program-transform-n=* |
--program-transform-=* \
990 |
--program-transform=* |
--program-transfor=* \
991 |
--program-transfo=* |
--program-transf=* \
992 |
--program-trans=* |
--program-tran=* \
993 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
994 program_transform_name
=$ac_optarg ;;
996 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
998 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1001 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1003 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1006 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1007 |
-silent |
--silent |
--silen |
--sile |
--sil)
1010 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1012 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1014 sbindir
=$ac_optarg ;;
1016 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1017 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1018 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1020 ac_prev
=sharedstatedir
;;
1021 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1022 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1023 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1025 sharedstatedir
=$ac_optarg ;;
1027 -site |
--site |
--sit)
1029 -site=* |
--site=* |
--sit=*)
1032 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1034 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1035 srcdir
=$ac_optarg ;;
1037 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1038 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1039 ac_prev
=sysconfdir
;;
1040 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1041 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1042 sysconfdir
=$ac_optarg ;;
1044 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1045 ac_prev
=target_alias
;;
1046 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1047 target_alias
=$ac_optarg ;;
1049 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1052 -version |
--version |
--versio |
--versi |
--vers |
-V)
1053 ac_init_version
=: ;;
1056 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1059 as_fn_error $?
"invalid package name: $ac_useropt"
1060 ac_useropt_orig
=$ac_useropt
1061 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1066 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1067 ac_unrecognized_sep
=', ';;
1069 eval with_
$ac_useropt=\
$ac_optarg ;;
1071 -without-* |
--without-*)
1072 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1075 as_fn_error $?
"invalid package name: $ac_useropt"
1076 ac_useropt_orig
=$ac_useropt
1077 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1082 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1083 ac_unrecognized_sep
=', ';;
1085 eval with_
$ac_useropt=no
;;
1088 # Obsolete; use --with-x.
1091 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1092 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1093 ac_prev
=x_includes
;;
1094 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1095 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1096 x_includes
=$ac_optarg ;;
1098 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1099 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1100 ac_prev
=x_libraries
;;
1101 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1102 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1103 x_libraries
=$ac_optarg ;;
1105 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1106 Try \`$0 --help' for more information"
1110 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 case $ac_envvar in #(
1113 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1114 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1116 eval $ac_envvar=\
$ac_optarg
1117 export $ac_envvar ;;
1120 # FIXME: should be removed in autoconf 3.0.
1121 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1122 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1123 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1124 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1130 if test -n "$ac_prev"; then
1131 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1132 as_fn_error $?
"missing argument to $ac_option"
1135 if test -n "$ac_unrecognized_opts"; then
1136 case $enable_option_checking in
1138 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1139 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1143 # Check all directory arguments for consistency.
1144 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1145 datadir sysconfdir sharedstatedir localstatedir includedir \
1146 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1147 libdir localedir mandir
1149 eval ac_val
=\$
$ac_var
1150 # Remove trailing slashes.
1153 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1154 eval $ac_var=\
$ac_val;;
1156 # Be sure to have absolute directory names.
1158 [\\/$
]* | ?
:[\\/]* ) continue;;
1159 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1161 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1164 # There might be people who depend on the old broken behavior: `$host'
1165 # used to hold the argument of --host etc.
1166 # FIXME: To remove some day.
1169 target
=$target_alias
1171 # FIXME: To remove some day.
1172 if test "x$host_alias" != x
; then
1173 if test "x$build_alias" = x
; then
1174 cross_compiling
=maybe
1175 elif test "x$build_alias" != "x$host_alias"; then
1181 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1183 test "$silent" = yes && exec 6>/dev
/null
1186 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1187 ac_ls_di
=`ls -di .` &&
1188 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1189 as_fn_error $?
"working directory cannot be determined"
1190 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1191 as_fn_error $?
"pwd does not report name of working directory"
1194 # Find the source files, if location was not specified.
1195 if test -z "$srcdir"; then
1196 ac_srcdir_defaulted
=yes
1197 # Try the directory containing this script, then the parent directory.
1198 ac_confdir
=`$as_dirname -- "$as_myself" ||
1199 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1200 X"$as_myself" : 'X\(//\)[^/]' \| \
1201 X"$as_myself" : 'X\(//\)$' \| \
1202 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1203 $as_echo X"$as_myself" |
1204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1222 if test ! -r "$srcdir/$ac_unique_file"; then
1226 ac_srcdir_defaulted
=no
1228 if test ! -r "$srcdir/$ac_unique_file"; then
1229 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1230 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1232 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1234 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1236 # When building in place, set srcdir=.
1237 if test "$ac_abs_confdir" = "$ac_pwd"; then
1240 # Remove unnecessary trailing slashes from srcdir.
1241 # Double slashes in file names in object file debugging info
1242 # mess up M-x gdb in Emacs.
1244 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1246 for ac_var
in $ac_precious_vars; do
1247 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1248 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1249 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1250 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1254 # Report the --help message.
1256 if test "$ac_init_help" = "long"; then
1257 # Omit some internal or obsolete options to make the list less imposing.
1258 # This message is too long to be a string in the A/UX 3.1 sh.
1260 \`configure' configures this package to adapt to many kinds of systems.
1262 Usage: $0 [OPTION]... [VAR=VALUE]...
1264 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1265 VAR=VALUE. See below for descriptions of some of the useful variables.
1267 Defaults for the options are specified in brackets.
1270 -h, --help display this help and exit
1271 --help=short display options specific to this package
1272 --help=recursive display the short help of all the included packages
1273 -V, --version display version information and exit
1274 -q, --quiet, --silent do not print \`checking ...' messages
1275 --cache-file=FILE cache test results in FILE [disabled]
1276 -C, --config-cache alias for \`--cache-file=config.cache'
1277 -n, --no-create do not create output files
1278 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1280 Installation directories:
1281 --prefix=PREFIX install architecture-independent files in PREFIX
1282 [$ac_default_prefix]
1283 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1286 By default, \`make install' will install all the files in
1287 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1288 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1289 for instance \`--prefix=\$HOME'.
1291 For better control, use the options below.
1293 Fine tuning of the installation directories:
1294 --bindir=DIR user executables [EPREFIX/bin]
1295 --sbindir=DIR system admin executables [EPREFIX/sbin]
1296 --libexecdir=DIR program executables [EPREFIX/libexec]
1297 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1298 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1299 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1300 --libdir=DIR object code libraries [EPREFIX/lib]
1301 --includedir=DIR C header files [PREFIX/include]
1302 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1303 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1304 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1305 --infodir=DIR info documentation [DATAROOTDIR/info]
1306 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1307 --mandir=DIR man documentation [DATAROOTDIR/man]
1308 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1309 --htmldir=DIR html documentation [DOCDIR]
1310 --dvidir=DIR dvi documentation [DOCDIR]
1311 --pdfdir=DIR pdf documentation [DOCDIR]
1312 --psdir=DIR ps documentation [DOCDIR]
1318 --build=BUILD configure
for building on BUILD
[guessed
]
1319 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1323 if test -n "$ac_init_help"; then
1328 --disable-option-checking ignore unrecognized
--enable/--with options
1329 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1330 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1331 --disable-largefile omit support
for large files
1332 --disable-zlib Don
't include zlib support
1333 --enable-pam Try to include PAM support
1334 --disable-openpty Don't use openpty
, use alternative method
1335 --disable-syslog Don
't include syslog support
1336 --disable-shadow Don't use shadow passwords
(if available
)
1337 --enable-bundled-libtom Force using bundled libtomcrypt
/libtommath even
if a system version exists.
1338 --disable-bundled-libtom Force using system libtomcrypt
/libtommath
, fail
if it does not exist.
1339 Default is to use system
if available
, otherwise bundled.
1340 --disable-lastlog Disable use of lastlog even
if detected no
1341 --disable-utmp Disable use of utmp even
if detected no
1342 --disable-utmpx Disable use of utmpx even
if detected no
1343 --disable-wtmp Disable use of wtmp even
if detected no
1344 --disable-wtmpx Disable use of wtmpx even
if detected no
1345 --disable-loginfunc Disable use of login
() etc. no
1346 --disable-pututline Disable use of pututline
() etc.
(uwtmp
) no
1347 --disable-pututxline Disable use of pututxline
() etc.
(uwtmpx
) no
1350 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1351 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1352 --with-zlib=PATH Use zlib
in PATH
1353 --with-pam=PATH Use pam
in PATH
1354 --with-lastlog=FILE|DIR specify lastlog location common locations
1356 Some influential environment variables
:
1357 CC C compiler
command
1358 CFLAGS C compiler flags
1359 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1360 nonstandard directory
<lib dir
>
1361 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1362 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1363 you have headers
in a nonstandard directory
<include dir
>
1366 Use these variables to override the choices made by
`configure' or to help
1367 it to find libraries and programs with nonstandard names/locations.
1369 Report bugs to the package provider.
1374 if test "$ac_init_help" = "recursive"; then
1375 # If there are subdirs, report their specific --help.
1376 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1377 test -d "$ac_dir" ||
1378 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1383 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1385 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1386 # A ".." for each directory in $ac_dir_suffix.
1387 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1388 case $ac_top_builddir_sub in
1389 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1390 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1393 ac_abs_top_builddir=$ac_pwd
1394 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1395 # for backward compatibility:
1396 ac_top_builddir=$ac_top_build_prefix
1399 .) # We are building in place.
1401 ac_top_srcdir=$ac_top_builddir_sub
1402 ac_abs_top_srcdir=$ac_pwd ;;
1403 [\\/]* | ?:[\\/]* ) # Absolute name.
1404 ac_srcdir=$srcdir$ac_dir_suffix;
1405 ac_top_srcdir=$srcdir
1406 ac_abs_top_srcdir=$srcdir ;;
1408 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1409 ac_top_srcdir=$ac_top_build_prefix$srcdir
1410 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1412 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1414 cd "$ac_dir" || { ac_status=$?; continue; }
1415 # Check for guested configure.
1416 if test -f "$ac_srcdir/configure.gnu"; then
1418 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1419 elif test -f "$ac_srcdir/configure"; then
1421 $SHELL "$ac_srcdir/configure" --help=recursive
1423 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1425 cd "$ac_pwd" || { ac_status=$?; break; }
1429 test -n "$ac_init_help" && exit $ac_status
1430 if $ac_init_version; then
1433 generated by GNU Autoconf 2.69
1435 Copyright (C) 2012 Free Software Foundation, Inc.
1436 This configure script is free software; the Free Software Foundation
1437 gives unlimited permission to copy, distribute and modify it.
1442 ## ------------------------ ##
1443 ## Autoconf initialization. ##
1444 ## ------------------------ ##
1446 # ac_fn_c_try_compile LINENO
1447 # --------------------------
1448 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1449 ac_fn_c_try_compile ()
1451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1452 rm -f conftest.$ac_objext
1453 if { { ac_try="$ac_compile"
1455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1456 *) ac_try_echo
=$ac_try;;
1458 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1459 $as_echo "$ac_try_echo"; } >&5
1460 (eval "$ac_compile") 2>conftest.err
1462 if test -s conftest.err
; then
1463 grep -v '^ *+' conftest.err
>conftest.er1
1464 cat conftest.er1
>&5
1465 mv -f conftest.er1 conftest.err
1467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1468 test $ac_status = 0; } && {
1469 test -z "$ac_c_werror_flag" ||
1470 test ! -s conftest.err
1471 } && test -s conftest.
$ac_objext; then :
1474 $as_echo "$as_me: failed program was:" >&5
1475 sed 's/^/| /' conftest.
$ac_ext >&5
1479 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1480 as_fn_set_status
$ac_retval
1482 } # ac_fn_c_try_compile
1484 # ac_fn_c_try_link LINENO
1485 # -----------------------
1486 # Try to link conftest.$ac_ext, and return whether this succeeded.
1489 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1490 rm -f conftest.
$ac_objext conftest
$ac_exeext
1491 if { { ac_try
="$ac_link"
1493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1494 *) ac_try_echo=$ac_try;;
1496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1497 $as_echo "$ac_try_echo"; } >&5
1498 (eval "$ac_link") 2>conftest.err
1500 if test -s conftest.err; then
1501 grep -v '^ *+' conftest.err >conftest.er1
1502 cat conftest.er1 >&5
1503 mv -f conftest.er1 conftest.err
1505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1506 test $ac_status = 0; } && {
1507 test -z "$ac_c_werror_flag" ||
1508 test ! -s conftest.err
1509 } && test -s conftest$ac_exeext && {
1510 test "$cross_compiling" = yes ||
1511 test -x conftest$ac_exeext
1515 $as_echo "$as_me: failed program was:" >&5
1516 sed 's/^/| /' conftest.$ac_ext >&5
1520 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1521 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1522 # interfere with the next link command; also delete a directory that is
1523 # left behind by Apple's compiler. We do this before executing the actions.
1524 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1526 as_fn_set_status $ac_retval
1528 } # ac_fn_c_try_link
1530 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1531 # ---------------------------------------------
1532 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1534 ac_fn_c_check_decl ()
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1538 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1540 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1541 if eval \${$3+:} false; then :
1542 $as_echo_n "(cached) " >&6
1544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1545 /* end confdefs.h. */
1550 #ifndef $as_decl_name
1552 (void) $as_decl_use;
1554 (void) $as_decl_name;
1562 if ac_fn_c_try_compile "$LINENO"; then :
1567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571 $as_echo "$ac_res" >&6; }
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574 } # ac_fn_c_check_decl
1576 # ac_fn_c_try_cpp LINENO
1577 # ----------------------
1578 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 if { { ac_try="$ac_cpp conftest.$ac_ext"
1584 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1585 *) ac_try_echo
=$ac_try;;
1587 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1591 if test -s conftest.err
; then
1592 grep -v '^ *+' conftest.err
>conftest.er1
1593 cat conftest.er1
>&5
1594 mv -f conftest.er1 conftest.err
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } > conftest.i
&& {
1598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.
$ac_ext >&5
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 as_fn_set_status
$ac_retval
1613 # ac_fn_c_try_run LINENO
1614 # ----------------------
1615 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1616 # that executables *can* be run.
1619 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1620 if { { ac_try
="$ac_link"
1622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_link") 2>&5
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1631 { { case "(($ac_try" in
1632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1633 *) ac_try_echo
=$ac_try;;
1635 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_try") 2>&5
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; }; }; then :
1643 $as_echo "$as_me: program exited with status $ac_status" >&5
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.
$ac_ext >&5
1647 ac_retval
=$ac_status
1649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status
$ac_retval
1655 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1656 # -------------------------------------------------------
1657 # Tests whether HEADER exists and can be compiled using the include files in
1658 # INCLUDES, setting the cache variable VAR accordingly.
1659 ac_fn_c_check_header_compile
()
1661 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663 $as_echo_n "checking for $2... " >&6; }
1664 if eval \
${$3+:} false
; then :
1665 $as_echo_n "(cached) " >&6
1667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1672 if ac_fn_c_try_compile
"$LINENO"; then :
1677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 } # ac_fn_c_check_header_compile
1686 # ac_fn_c_check_func LINENO FUNC VAR
1687 # ----------------------------------
1688 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1689 ac_fn_c_check_func
()
1691 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693 $as_echo_n "checking for $2... " >&6; }
1694 if eval \
${$3+:} false
; then :
1695 $as_echo_n "(cached) " >&6
1697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h. */
1699 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1701 #define $2 innocuous_$2
1703 /* System header to define __stub macros and hopefully few prototypes,
1704 which can conflict with char $2 (); below.
1705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1706 <limits.h> exists even on freestanding compilers. */
1709 # include <limits.h>
1711 # include <assert.h>
1716 /* Override any GCC internal prototype to avoid an error.
1717 Use char because int might match the return type of a GCC
1718 builtin and then its argument prototype would still apply. */
1723 /* The GNU C library defines this for functions which it implements
1724 to always fail with ENOSYS. Some functions are actually named
1725 something starting with __ and the normal name is an alias. */
1726 #if defined __stub_$2 || defined __stub___$2
1738 if ac_fn_c_try_link
"$LINENO"; then :
1743 rm -f core conftest.err conftest.
$ac_objext \
1744 conftest
$ac_exeext conftest.
$ac_ext
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 } # ac_fn_c_check_func
1753 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1754 # -------------------------------------------------------
1755 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1756 # the include files in INCLUDES and setting the cache variable VAR
1758 ac_fn_c_check_header_mongrel
()
1760 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1761 if eval \
${$3+:} false
; then :
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \
${$3+:} false
; then :
1765 $as_echo_n "(cached) " >&6
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 $as_echo "$ac_res" >&6; }
1771 # Is the header compilable?
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1773 $as_echo_n "checking $2 usability... " >&6; }
1774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1779 if ac_fn_c_try_compile
"$LINENO"; then :
1780 ac_header_compiler
=yes
1782 ac_header_compiler
=no
1784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1786 $as_echo "$ac_header_compiler" >&6; }
1788 # Is the header present?
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1790 $as_echo_n "checking $2 presence... " >&6; }
1791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1795 if ac_fn_c_try_cpp
"$LINENO"; then :
1796 ac_header_preproc
=yes
1798 ac_header_preproc
=no
1800 rm -f conftest.err conftest.i conftest.
$ac_ext
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1802 $as_echo "$ac_header_preproc" >&6; }
1804 # So? What about this header?
1805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1808 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1810 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1814 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1816 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1818 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1820 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1822 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826 $as_echo_n "checking for $2... " >&6; }
1827 if eval \
${$3+:} false
; then :
1828 $as_echo_n "(cached) " >&6
1830 eval "$3=\$ac_header_compiler"
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834 $as_echo "$ac_res" >&6; }
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 } # ac_fn_c_check_header_mongrel
1840 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1841 # -------------------------------------------
1842 # Tests whether TYPE exists after having included INCLUDES, setting cache
1843 # variable VAR accordingly.
1844 ac_fn_c_check_type
()
1846 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \
${$3+:} false
; then :
1850 $as_echo_n "(cached) " >&6
1853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1865 if ac_fn_c_try_compile
"$LINENO"; then :
1866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1878 if ac_fn_c_try_compile
"$LINENO"; then :
1883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 } # ac_fn_c_check_type
1894 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1895 # ----------------------------------------------------
1896 # Tries to find if the field MEMBER exists in type AGGR, after including
1897 # INCLUDES, setting cache variable VAR accordingly.
1898 ac_fn_c_check_member
()
1900 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1902 $as_echo_n "checking for $2.$3... " >&6; }
1903 if eval \
${$4+:} false
; then :
1904 $as_echo_n "(cached) " >&6
1906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1919 if ac_fn_c_try_compile
"$LINENO"; then :
1922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1929 if (sizeof ac_aggr.$3)
1935 if ac_fn_c_try_compile
"$LINENO"; then :
1940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949 } # ac_fn_c_check_member
1950 cat >config.log
<<_ACEOF
1951 This file contains any messages produced by compilers while
1952 running configure, to aid debugging if configure makes a mistake.
1954 It was created by $as_me, which was
1955 generated by GNU Autoconf 2.69. Invocation command line was
1967 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1968 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1969 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1970 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1971 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1973 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1974 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1976 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1977 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1978 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1979 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1980 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1981 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1982 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1990 test -z "$as_dir" && as_dir
=.
1991 $as_echo "PATH: $as_dir"
2007 # Keep a trace of the command line.
2008 # Strip out --no-create and --no-recursion so they do not pile up.
2009 # Strip out --silent because we don't want to record it for future runs.
2010 # Also quote any args containing shell meta-characters.
2011 # Make two passes to allow for proper duplicate-argument suppression.
2015 ac_must_keep_next
=false
2021 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2022 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2023 |
-silent |
--silent |
--silen |
--sile |
--sil)
2026 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2029 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2031 as_fn_append ac_configure_args1
" '$ac_arg'"
2032 if test $ac_must_keep_next = true
; then
2033 ac_must_keep_next
=false
# Got value, back to normal.
2036 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2037 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2038 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2039 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2040 case "$ac_configure_args0 " in
2041 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2044 -* ) ac_must_keep_next
=true
;;
2047 as_fn_append ac_configure_args
" '$ac_arg'"
2052 { ac_configure_args0
=; unset ac_configure_args0
;}
2053 { ac_configure_args1
=; unset ac_configure_args1
;}
2055 # When interrupted or exit'd, cleanup temporary files, and complete
2056 # config.log. We remove comments because anyway the quotes in there
2057 # would cause problems or look ugly.
2058 # WARNING: Use '\'' to represent an apostrophe within the trap.
2059 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2060 trap 'exit_status=$?
2061 # Save into config.log some information that might help in debugging.
2065 $as_echo "## ---------------- ##
2066 ## Cache variables. ##
2067 ## ---------------- ##"
2069 # The following way of writing the cache mishandles newlines in values,
2071 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2072 eval ac_val=\$$ac_var
2076 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2077 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2080 _ | IFS | as_nl) ;; #(
2081 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2082 *) { eval $ac_var=; unset $ac_var;} ;;
2087 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2088 *${as_nl}ac_space=\ *)
2090 "s/'\''/'\''\\\\'\'''\''/g;
2091 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2094 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2101 $as_echo "## ----------------- ##
2102 ## Output variables. ##
2103 ## ----------------- ##"
2105 for ac_var in $ac_subst_vars
2107 eval ac_val=\$$ac_var
2109 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2111 $as_echo "$ac_var='\''$ac_val'\''"
2115 if test -n "$ac_subst_files"; then
2116 $as_echo "## ------------------- ##
2117 ## File substitutions. ##
2118 ## ------------------- ##"
2120 for ac_var
in $ac_subst_files
2122 eval ac_val
=\$
$ac_var
2124 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2126 $as_echo "$ac_var='\''$ac_val'\''"
2131 if test -s confdefs.h; then
2132 $as_echo "## ----------- ##
2139 test "$ac_signal" != 0 &&
2140 $as_echo "$as_me: caught signal $ac_signal"
2141 $as_echo "$as_me: exit $exit_status"
2143 rm -f core *.core core.conftest.* &&
2144 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2147 for ac_signal
in 1 2 13 15; do
2148 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2152 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2153 rm -f -r conftest
* confdefs.h
2155 $as_echo "/* confdefs.h */" > confdefs.h
2157 # Predefined preprocessor variables.
2159 cat >>confdefs.h
<<_ACEOF
2160 #define PACKAGE_NAME "$PACKAGE_NAME"
2163 cat >>confdefs.h
<<_ACEOF
2164 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2167 cat >>confdefs.h
<<_ACEOF
2168 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2171 cat >>confdefs.h
<<_ACEOF
2172 #define PACKAGE_STRING "$PACKAGE_STRING"
2175 cat >>confdefs.h
<<_ACEOF
2176 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2179 cat >>confdefs.h
<<_ACEOF
2180 #define PACKAGE_URL "$PACKAGE_URL"
2184 # Let the site file select an alternate cache file if it wants to.
2185 # Prefer an explicitly selected file to automatically selected ones.
2188 if test -n "$CONFIG_SITE"; then
2189 # We do not want a PATH search for config.site.
2190 case $CONFIG_SITE in #((
2191 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2192 */*) ac_site_file1
=$CONFIG_SITE;;
2193 *) ac_site_file1
=.
/$CONFIG_SITE;;
2195 elif test "x$prefix" != xNONE
; then
2196 ac_site_file1
=$prefix/share
/config.site
2197 ac_site_file2
=$prefix/etc
/config.site
2199 ac_site_file1
=$ac_default_prefix/share
/config.site
2200 ac_site_file2
=$ac_default_prefix/etc
/config.site
2202 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2204 test "x$ac_site_file" = xNONE
&& continue
2205 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2207 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2208 sed 's/^/| /' "$ac_site_file" >&5
2210 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2212 as_fn_error $?
"failed to load site script $ac_site_file
2213 See \`config.log' for more details" "$LINENO" 5; }
2217 if test -r "$cache_file"; then
2218 # Some versions of bash will fail to source /dev/null (special files
2219 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2220 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2222 $as_echo "$as_me: loading cache $cache_file" >&6;}
2224 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2225 *) .
"./$cache_file";;
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2230 $as_echo "$as_me: creating cache $cache_file" >&6;}
2234 # Check that the precious variables saved in the cache have kept the same
2236 ac_cache_corrupted
=false
2237 for ac_var
in $ac_precious_vars; do
2238 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2239 eval ac_new_set
=\
$ac_env_${ac_var}_set
2240 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2241 eval ac_new_val
=\
$ac_env_${ac_var}_value
2242 case $ac_old_set,$ac_new_set in
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2245 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2246 ac_cache_corrupted
=: ;;
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2249 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2250 ac_cache_corrupted
=: ;;
2253 if test "x$ac_old_val" != "x$ac_new_val"; then
2254 # differences in whitespace do not lead to failure.
2255 ac_old_val_w
=`echo x $ac_old_val`
2256 ac_new_val_w
=`echo x $ac_new_val`
2257 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2259 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2260 ac_cache_corrupted
=:
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2263 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2264 eval $ac_var=\
$ac_old_val
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2267 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2269 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2272 # Pass precious variables to config.status.
2273 if test "$ac_new_set" = set; then
2275 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2276 *) ac_arg
=$ac_var=$ac_new_val ;;
2278 case " $ac_configure_args " in
2279 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2280 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2284 if $ac_cache_corrupted; then
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2288 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2289 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2291 ## -------------------- ##
2292 ## Main body of script. ##
2293 ## -------------------- ##
2296 ac_cpp
='$CPP $CPPFLAGS'
2297 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2298 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2299 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2305 # Checks for programs.
2307 ac_cpp
='$CPP $CPPFLAGS'
2308 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2309 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2310 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2311 if test -n "$ac_tool_prefix"; then
2312 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2313 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2315 $as_echo_n "checking for $ac_word... " >&6; }
2316 if ${ac_cv_prog_CC+:} false
; then :
2317 $as_echo_n "(cached) " >&6
2319 if test -n "$CC"; then
2320 ac_cv_prog_CC
="$CC" # Let the user override the test.
2322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2326 test -z "$as_dir" && as_dir
=.
2327 for ac_exec_ext
in '' $ac_executable_extensions; do
2328 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2329 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2340 if test -n "$CC"; then
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2342 $as_echo "$CC" >&6; }
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2345 $as_echo "no" >&6; }
2350 if test -z "$ac_cv_prog_CC"; then
2352 # Extract the first word of "gcc", so it can be a program name with args.
2353 set dummy gcc
; ac_word
=$2
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2355 $as_echo_n "checking for $ac_word... " >&6; }
2356 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2357 $as_echo_n "(cached) " >&6
2359 if test -n "$ac_ct_CC"; then
2360 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2362 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2366 test -z "$as_dir" && as_dir
=.
2367 for ac_exec_ext
in '' $ac_executable_extensions; do
2368 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2369 ac_cv_prog_ac_ct_CC
="gcc"
2370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2379 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2380 if test -n "$ac_ct_CC"; then
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2382 $as_echo "$ac_ct_CC" >&6; }
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2385 $as_echo "no" >&6; }
2388 if test "x$ac_ct_CC" = x
; then
2391 case $cross_compiling:$ac_tool_warned in
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2395 ac_tool_warned
=yes ;;
2403 if test -z "$CC"; then
2404 if test -n "$ac_tool_prefix"; then
2405 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2406 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2408 $as_echo_n "checking for $ac_word... " >&6; }
2409 if ${ac_cv_prog_CC+:} false
; then :
2410 $as_echo_n "(cached) " >&6
2412 if test -n "$CC"; then
2413 ac_cv_prog_CC
="$CC" # Let the user override the test.
2415 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2419 test -z "$as_dir" && as_dir
=.
2420 for ac_exec_ext
in '' $ac_executable_extensions; do
2421 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2422 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 if test -n "$CC"; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2435 $as_echo "$CC" >&6; }
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2438 $as_echo "no" >&6; }
2444 if test -z "$CC"; then
2445 # Extract the first word of "cc", so it can be a program name with args.
2446 set dummy cc
; ac_word
=$2
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2448 $as_echo_n "checking for $ac_word... " >&6; }
2449 if ${ac_cv_prog_CC+:} false
; then :
2450 $as_echo_n "(cached) " >&6
2452 if test -n "$CC"; then
2453 ac_cv_prog_CC
="$CC" # Let the user override the test.
2456 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2460 test -z "$as_dir" && as_dir
=.
2461 for ac_exec_ext
in '' $ac_executable_extensions; do
2462 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2463 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2464 ac_prog_rejected
=yes
2468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 if test $ac_prog_rejected = yes; then
2476 # We found a bogon in the path, so make sure we never use it.
2477 set dummy
$ac_cv_prog_CC
2479 if test $# != 0; then
2480 # We chose a different compiler from the bogus one.
2481 # However, it has the same basename, so the bogon will be chosen
2482 # first if we set CC to just the basename; use the full file name.
2484 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2490 if test -n "$CC"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2492 $as_echo "$CC" >&6; }
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495 $as_echo "no" >&6; }
2500 if test -z "$CC"; then
2501 if test -n "$ac_tool_prefix"; then
2502 for ac_prog
in cl.exe
2504 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2505 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2507 $as_echo_n "checking for $ac_word... " >&6; }
2508 if ${ac_cv_prog_CC+:} false
; then :
2509 $as_echo_n "(cached) " >&6
2511 if test -n "$CC"; then
2512 ac_cv_prog_CC
="$CC" # Let the user override the test.
2514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2518 test -z "$as_dir" && as_dir
=.
2519 for ac_exec_ext
in '' $ac_executable_extensions; do
2520 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2521 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 if test -n "$CC"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2534 $as_echo "$CC" >&6; }
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537 $as_echo "no" >&6; }
2541 test -n "$CC" && break
2544 if test -z "$CC"; then
2546 for ac_prog
in cl.exe
2548 # Extract the first word of "$ac_prog", so it can be a program name with args.
2549 set dummy
$ac_prog; ac_word
=$2
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2551 $as_echo_n "checking for $ac_word... " >&6; }
2552 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2553 $as_echo_n "(cached) " >&6
2555 if test -n "$ac_ct_CC"; then
2556 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2562 test -z "$as_dir" && as_dir
=.
2563 for ac_exec_ext
in '' $ac_executable_extensions; do
2564 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2565 ac_cv_prog_ac_ct_CC
="$ac_prog"
2566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2575 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2576 if test -n "$ac_ct_CC"; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2578 $as_echo "$ac_ct_CC" >&6; }
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2581 $as_echo "no" >&6; }
2585 test -n "$ac_ct_CC" && break
2588 if test "x$ac_ct_CC" = x
; then
2591 case $cross_compiling:$ac_tool_warned in
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2595 ac_tool_warned
=yes ;;
2604 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606 as_fn_error $?
"no acceptable C compiler found in \$PATH
2607 See \`config.log' for more details" "$LINENO" 5; }
2609 # Provide some information about the compiler.
2610 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2613 for ac_option
in --version -v -V -qversion; do
2614 { { ac_try
="$ac_compiler $ac_option >&5"
2616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2617 *) ac_try_echo=$ac_try;;
2619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2620 $as_echo "$ac_try_echo"; } >&5
2621 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2623 if test -s conftest.err; then
2625 ... rest of stderr output deleted ...
2626 10q' conftest.err >conftest.er1
2627 cat conftest.er1 >&5
2629 rm -f conftest.er1 conftest.err
2630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2631 test $ac_status = 0; }
2634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2635 /* end confdefs.h. */
2645 ac_clean_files_save=$ac_clean_files
2646 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2647 # Try to create an executable without -o first, disregard a.out.
2648 # It will help us diagnose broken compilers, and finding out an intuition
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2651 $as_echo_n "checking whether the C compiler works... " >&6; }
2652 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2654 # The possible output files:
2655 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2658 for ac_file in $ac_files
2661 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2662 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2667 if { { ac_try="$ac_link_default"
2669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2670 *) ac_try_echo
=$ac_try;;
2672 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2673 $as_echo "$ac_try_echo"; } >&5
2674 (eval "$ac_link_default") 2>&5
2676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2677 test $ac_status = 0; }; then :
2678 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2679 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2680 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2681 # so that the user can short-circuit this test for compilers unknown to
2683 for ac_file
in $ac_files ''
2685 test -f "$ac_file" ||
continue
2687 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2690 # We found the default executable, but exeext='' is most
2694 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2696 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2698 # We set ac_cv_exeext here because the later test for it is not
2699 # safe: cross compilers may not add the suffix if given an `-o'
2700 # argument, so we may need to know it at that point already.
2701 # Even if this section looks crufty: it has the advantage of
2708 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2713 if test -z "$ac_file"; then :
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715 $as_echo "no" >&6; }
2716 $as_echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.
$ac_ext >&5
2719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2721 as_fn_error
77 "C compiler cannot create executables
2722 See \`config.log' for more details" "$LINENO" 5; }
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2725 $as_echo "yes" >&6; }
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2728 $as_echo_n "checking for C compiler default output file name... " >&6; }
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2730 $as_echo "$ac_file" >&6; }
2731 ac_exeext
=$ac_cv_exeext
2733 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
2734 ac_clean_files
=$ac_clean_files_save
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2736 $as_echo_n "checking for suffix of executables... " >&6; }
2737 if { { ac_try
="$ac_link"
2739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2743 $as_echo "$ac_try_echo"; } >&5
2744 (eval "$ac_link") 2>&5
2746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2747 test $ac_status = 0; }; then :
2748 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
2749 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
2750 # work properly (i.e., refer to `conftest.exe'), while it won't with
2752 for ac_file
in conftest.exe conftest conftest.
*; do
2753 test -f "$ac_file" ||
continue
2755 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2756 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2764 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2765 See \`config.log' for more details" "$LINENO" 5; }
2767 rm -f conftest conftest
$ac_cv_exeext
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2769 $as_echo "$ac_cv_exeext" >&6; }
2771 rm -f conftest.
$ac_ext
2772 EXEEXT
=$ac_cv_exeext
2774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h. */
2780 FILE *f = fopen ("conftest.out", "w");
2781 return ferror (f) || fclose (f) != 0;
2787 ac_clean_files
="$ac_clean_files conftest.out"
2788 # Check that the compiler produces executables we can run. If not, either
2789 # the compiler is broken, or we cross compile.
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2791 $as_echo_n "checking whether we are cross compiling... " >&6; }
2792 if test "$cross_compiling" != yes; then
2793 { { ac_try
="$ac_link"
2795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2799 $as_echo "$ac_try_echo"; } >&5
2800 (eval "$ac_link") 2>&5
2802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2803 test $ac_status = 0; }
2804 if { ac_try='./conftest$ac_cv_exeext'
2805 { { case "(($ac_try" in
2806 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2807 *) ac_try_echo
=$ac_try;;
2809 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2810 $as_echo "$ac_try_echo"; } >&5
2811 (eval "$ac_try") 2>&5
2813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2814 test $ac_status = 0; }; }; then
2817 if test "$cross_compiling" = maybe
; then
2820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2822 as_fn_error $?
"cannot run C compiled programs.
2823 If you meant to cross compile, use \`--host'.
2824 See \`config.log' for more details" "$LINENO" 5; }
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2829 $as_echo "$cross_compiling" >&6; }
2831 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2832 ac_clean_files
=$ac_clean_files_save
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2834 $as_echo_n "checking for suffix of object files... " >&6; }
2835 if ${ac_cv_objext+:} false
; then :
2836 $as_echo_n "(cached) " >&6
2838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2839 /* end confdefs.h. */
2849 rm -f conftest.o conftest.obj
2850 if { { ac_try
="$ac_compile"
2852 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2856 $as_echo "$ac_try_echo"; } >&5
2857 (eval "$ac_compile") 2>&5
2859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2860 test $ac_status = 0; }; then :
2861 for ac_file in conftest.o conftest.obj conftest.*; do
2862 test -f "$ac_file" || continue;
2864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2865 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2870 $as_echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2875 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2876 See \
`config.log' for more details" "$LINENO" 5; }
2878 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2881 $as_echo "$ac_cv_objext" >&6; }
2882 OBJEXT=$ac_cv_objext
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2885 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2886 if ${ac_cv_c_compiler_gnu+:} false; then :
2887 $as_echo_n "(cached) " >&6
2889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890 /* end confdefs.h. */
2903 if ac_fn_c_try_compile "$LINENO"; then :
2908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2913 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2914 if test $ac_compiler_gnu = yes; then
2919 ac_test_CFLAGS=${CFLAGS+set}
2920 ac_save_CFLAGS=$CFLAGS
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2922 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2923 if ${ac_cv_prog_cc_g+:} false; then :
2924 $as_echo_n "(cached) " >&6
2926 ac_save_c_werror_flag=$ac_c_werror_flag
2927 ac_c_werror_flag=yes
2930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2931 /* end confdefs.h. */
2941 if ac_fn_c_try_compile "$LINENO"; then :
2945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2946 /* end confdefs.h. */
2956 if ac_fn_c_try_compile "$LINENO"; then :
2959 ac_c_werror_flag=$ac_save_c_werror_flag
2961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2962 /* end confdefs.h. */
2972 if ac_fn_c_try_compile "$LINENO"; then :
2975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2980 ac_c_werror_flag=$ac_save_c_werror_flag
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2983 $as_echo "$ac_cv_prog_cc_g" >&6; }
2984 if test "$ac_test_CFLAGS" = set; then
2985 CFLAGS=$ac_save_CFLAGS
2986 elif test $ac_cv_prog_cc_g = yes; then
2987 if test "$GCC" = yes; then
2993 if test "$GCC" = yes; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3000 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3001 if ${ac_cv_prog_cc_c89+:} false; then :
3002 $as_echo_n "(cached) " >&6
3004 ac_cv_prog_cc_c89=no
3006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3007 /* end confdefs.h. */
3011 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3012 struct buf { int x; };
3013 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3014 static char *e (p, i)
3020 static char *f (char * (*g) (char **, int), char **p, ...)
3025 s = g (p, va_arg (v,int));
3030 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3031 function prototypes and stuff, but not '\xHH' hex character constants.
3032 These don't provoke an error unfortunately, instead are silently treated
3033 as 'x'. The following induces an error, until -std is added to get
3034 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3035 array size at least. It's necessary to write '\x00'==0 to get something
3036 that's true only with -std. */
3037 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3039 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3040 inside strings and character constants. */
3042 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3044 int test (int i, double x);
3045 struct s1 {int (*f) (int a);};
3046 struct s2 {int (*f) (double a);};
3047 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3053 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3058 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3059 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3061 CC="$ac_save_CC $ac_arg"
3062 if ac_fn_c_try_compile "$LINENO"; then :
3063 ac_cv_prog_cc_c89=$ac_arg
3065 rm -f core conftest.err conftest.$ac_objext
3066 test "x$ac_cv_prog_cc_c89" != "xno" && break
3068 rm -f conftest.$ac_ext
3073 case "x$ac_cv_prog_cc_c89" in
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3076 $as_echo "none needed" >&6; } ;;
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3079 $as_echo "unsupported" >&6; } ;;
3081 CC="$CC $ac_cv_prog_cc_c89"
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3083 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3085 if test "x$ac_cv_prog_cc_c89" != xno; then :
3090 ac_cpp='$CPP $CPPFLAGS'
3091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3096 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3098 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3099 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3100 $as_echo_n "(cached) " >&6
3102 cat >conftest.make <<\_ACEOF
3105 @echo '@@@%%%=$(MAKE)=@@@%%%'
3107 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3108 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
3110 eval ac_cv_prog_make_${ac_make}_set=yes;;
3112 eval ac_cv_prog_make_${ac_make}_set=no;;
3116 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3118 $as_echo "yes" >&6; }
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3123 SET_MAKE="MAKE=${MAKE-make}"
3127 if test -z "$LD" ; then
3132 if test -z "$OLDCFLAGS" && test "$GCC" = "yes"; then
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: No \$CFLAGS set... using \"-Os -W -Wall\" for GCC" >&5
3134 $as_echo "$as_me: No \$CFLAGS set... using \"-Os -W -Wall\" for GCC" >&6;}
3135 CFLAGS="-Os -W -Wall -Wno-pointer-sign"
3138 # large file support is useful for scp
3140 # Check whether --enable-largefile was given.
3141 if test "${enable_largefile+set}" = set; then :
3142 enableval=$enable_largefile;
3145 if test "$enable_largefile" != no; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3148 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3149 if ${ac_cv_sys_largefile_CC+:} false; then :
3150 $as_echo_n "(cached) " >&6
3152 ac_cv_sys_largefile_CC=no
3153 if test "$GCC" != yes; then
3156 # IRIX 6.2 and later do not support large files by default,
3157 # so use the C compiler's -n32 option if that helps.
3158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h. */
3160 #include <sys/types.h>
3161 /* Check that off_t can represent 2**63 - 1 correctly.
3162 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3163 since some C++ compilers masquerading as C compilers
3164 incorrectly reject 9223372036854775807. */
3165 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3166 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3167 && LARGE_OFF_T % 2147483647 == 1)
3177 if ac_fn_c_try_compile "$LINENO"; then :
3180 rm -f core conftest.err conftest.$ac_objext
3182 if ac_fn_c_try_compile "$LINENO"; then :
3183 ac_cv_sys_largefile_CC=' -n32'; break
3185 rm -f core conftest.err conftest.$ac_objext
3189 rm -f conftest.$ac_ext
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3193 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3194 if test "$ac_cv_sys_largefile_CC" != no; then
3195 CC=$CC$ac_cv_sys_largefile_CC
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3199 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3200 if ${ac_cv_sys_file_offset_bits+:} false; then :
3201 $as_echo_n "(cached) " >&6
3204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3205 /* end confdefs.h. */
3206 #include <sys/types.h>
3207 /* Check that off_t can represent 2**63 - 1 correctly.
3208 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3209 since some C++ compilers masquerading as C compilers
3210 incorrectly reject 9223372036854775807. */
3211 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3212 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3213 && LARGE_OFF_T % 2147483647 == 1)
3223 if ac_fn_c_try_compile "$LINENO"; then :
3224 ac_cv_sys_file_offset_bits=no; break
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228 /* end confdefs.h. */
3229 #define _FILE_OFFSET_BITS 64
3230 #include <sys/types.h>
3231 /* Check that off_t can represent 2**63 - 1 correctly.
3232 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3233 since some C++ compilers masquerading as C compilers
3234 incorrectly reject 9223372036854775807. */
3235 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3236 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3237 && LARGE_OFF_T % 2147483647 == 1)
3247 if ac_fn_c_try_compile "$LINENO"; then :
3248 ac_cv_sys_file_offset_bits=64; break
3250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251 ac_cv_sys_file_offset_bits=unknown
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3256 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3257 case $ac_cv_sys_file_offset_bits in #(
3260 cat >>confdefs.h <<_ACEOF
3261 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3266 if test $ac_cv_sys_file_offset_bits = unknown; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3268 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3269 if ${ac_cv_sys_large_files+:} false; then :
3270 $as_echo_n "(cached) " >&6
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3275 #include <sys/types.h>
3276 /* Check that off_t can represent 2**63 - 1 correctly.
3277 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3278 since some C++ compilers masquerading as C compilers
3279 incorrectly reject 9223372036854775807. */
3280 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3281 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3282 && LARGE_OFF_T % 2147483647 == 1)
3292 if ac_fn_c_try_compile "$LINENO"; then :
3293 ac_cv_sys_large_files=no; break
3295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3298 #define _LARGE_FILES 1
3299 #include <sys/types.h>
3300 /* Check that off_t can represent 2**63 - 1 correctly.
3301 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3302 since some C++ compilers masquerading as C compilers
3303 incorrectly reject 9223372036854775807. */
3304 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3305 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3306 && LARGE_OFF_T % 2147483647 == 1)
3316 if ac_fn_c_try_compile "$LINENO"; then :
3317 ac_cv_sys_large_files=1; break
3319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3320 ac_cv_sys_large_files=unknown
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3325 $as_echo "$ac_cv_sys_large_files" >&6; }
3326 case $ac_cv_sys_large_files in #(
3329 cat >>confdefs.h <<_ACEOF
3330 #define _LARGE_FILES $ac_cv_sys_large_files
3341 # Host specific options
3342 # this isn't a definitive list of hosts, they are just added as required
3344 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3345 if test -f "$ac_dir/install-sh"; then
3347 ac_install_sh="$ac_aux_dir/install-sh -c"
3349 elif test -f "$ac_dir/install.sh"; then
3351 ac_install_sh="$ac_aux_dir/install.sh -c"
3353 elif test -f "$ac_dir/shtool"; then
3355 ac_install_sh="$ac_aux_dir/shtool install -c"
3359 if test -z "$ac_aux_dir"; then
3360 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3363 # These three variables are undocumented and unsupported,
3364 # and are intended to be withdrawn in a future Autoconf release.
3365 # They can cause serious problems if a builder's source tree is in a directory
3366 # whose full name contains unusual characters.
3367 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3368 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3369 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3372 # Make sure we can run config.sub.
3373 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3374 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3377 $as_echo_n "checking build system type... " >&6; }
3378 if ${ac_cv_build+:} false; then :
3379 $as_echo_n "(cached) " >&6
3381 ac_build_alias=$build_alias
3382 test "x$ac_build_alias" = x &&
3383 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3384 test "x$ac_build_alias" = x &&
3385 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3386 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3387 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3391 $as_echo "$ac_cv_build" >&6; }
3392 case $ac_cv_build in
3394 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3397 ac_save_IFS=$IFS; IFS='-'
3403 # Remember, the first character of IFS is used to create $*,
3404 # except with old shells:
3407 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3411 $as_echo_n "checking host system type... " >&6; }
3412 if ${ac_cv_host+:} false; then :
3413 $as_echo_n "(cached) " >&6
3415 if test "x$host_alias" = x; then
3416 ac_cv_host=$ac_cv_build
3418 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3419 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3424 $as_echo "$ac_cv_host" >&6; }
3427 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3430 ac_save_IFS=$IFS; IFS='-'
3436 # Remember, the first character of IFS is used to create $*,
3437 # except with old shells:
3440 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3451 CFLAGS="$CFLAGS -I/usr/local/include"
3452 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
3453 conf_lastlog_location="/var/adm/lastlog"
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
3455 $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
3456 sol2ver=`echo "$host"|
sed -e 's/.*[0-9]\.//'`
3457 if test "$sol2ver" -ge 8; then
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3459 $as_echo "yes" >&6; }
3461 $as_echo "#define DISABLE_UTMP /**/" >>confdefs.h
3464 $as_echo "#define DISABLE_WTMP /**/" >>confdefs.h
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
3471 $as_echo_n "checking for socket in -lsocket... " >&6; }
3472 if ${ac_cv_lib_socket_socket+:} false; then :
3473 $as_echo_n "(cached) " >&6
3475 ac_check_lib_save_LIBS=$LIBS
3476 LIBS="-lsocket $LIBS"
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3480 /* Override any GCC internal prototype to avoid an error.
3481 Use char because int might match the return type of a GCC
3482 builtin and then its argument prototype would still apply. */
3495 if ac_fn_c_try_link "$LINENO"; then :
3496 ac_cv_lib_socket_socket=yes
3498 ac_cv_lib_socket_socket=no
3500 rm -f core conftest.err conftest.$ac_objext \
3501 conftest$ac_exeext conftest.$ac_ext
3502 LIBS=$ac_check_lib_save_LIBS
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
3505 $as_echo "$ac_cv_lib_socket_socket" >&6; }
3506 if test "x$ac_cv_lib_socket_socket" = xyes; then :
3507 LIBS="$LIBS -lsocket"
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5
3511 $as_echo_n "checking for yp_match in -lnsl... " >&6; }
3512 if ${ac_cv_lib_nsl_yp_match+:} false; then :
3513 $as_echo_n "(cached) " >&6
3515 ac_check_lib_save_LIBS=$LIBS
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3520 /* Override any GCC internal prototype to avoid an error.
3521 Use char because int might match the return type of a GCC
3522 builtin and then its argument prototype would still apply. */
3535 if ac_fn_c_try_link "$LINENO"; then :
3536 ac_cv_lib_nsl_yp_match=yes
3538 ac_cv_lib_nsl_yp_match=no
3540 rm -f core conftest.err conftest.$ac_objext \
3541 conftest$ac_exeext conftest.$ac_ext
3542 LIBS=$ac_check_lib_save_LIBS
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5
3545 $as_echo "$ac_cv_lib_nsl_yp_match" >&6; }
3546 if test "x$ac_cv_lib_nsl_yp_match" = xyes; then :
3554 $as_echo "#define AIX /**/" >>confdefs.h
3556 # OpenSSH thinks it's broken. If it isn't, let me know.
3558 $as_echo "#define BROKEN_GETADDRINFO /**/" >>confdefs.h
3564 # It's probably broken.
3566 $as_echo "#define BROKEN_GETADDRINFO /**/" >>confdefs.h
3571 $as_echo "#define BROKEN_GETADDRINFO /**/" >>confdefs.h
3576 if test -n "$ac_tool_prefix"; then
3577 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3578 set dummy ${ac_tool_prefix}ar; ac_word=$2
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3580 $as_echo_n "checking for $ac_word... " >&6; }
3581 if ${ac_cv_prog_AR+:} false; then :
3582 $as_echo_n "(cached) " >&6
3584 if test -n "$AR"; then
3585 ac_cv_prog_AR="$AR" # Let the user override the test.
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 test -z "$as_dir" && as_dir=.
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3594 ac_cv_prog_AR="${ac_tool_prefix}ar"
3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 if test -n "$AR"; then
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3607 $as_echo "$AR" >&6; }
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610 $as_echo "no" >&6; }
3615 if test -z "$ac_cv_prog_AR"; then
3617 # Extract the first word of "ar", so it can be a program name with args.
3618 set dummy ar; ac_word=$2
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3620 $as_echo_n "checking for $ac_word... " >&6; }
3621 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3622 $as_echo_n "(cached) " >&6
3624 if test -n "$ac_ct_AR"; then
3625 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 test -z "$as_dir" && as_dir=.
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634 ac_cv_prog_ac_ct_AR="ar"
3635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3645 if test -n "$ac_ct_AR"; then
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3647 $as_echo "$ac_ct_AR" >&6; }
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3650 $as_echo "no" >&6; }
3653 if test "x$ac_ct_AR" = x; then
3656 case $cross_compiling:$ac_tool_warned in
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3660 ac_tool_warned=yes ;;
3668 if test -n "$ac_tool_prefix"; then
3669 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3670 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3672 $as_echo_n "checking for $ac_word... " >&6; }
3673 if ${ac_cv_prog_RANLIB+:} false; then :
3674 $as_echo_n "(cached) " >&6
3676 if test -n "$RANLIB"; then
3677 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 test -z "$as_dir" && as_dir=.
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3686 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3696 RANLIB=$ac_cv_prog_RANLIB
3697 if test -n "$RANLIB"; then
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3699 $as_echo "$RANLIB" >&6; }
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 $as_echo "no" >&6; }
3707 if test -z "$ac_cv_prog_RANLIB"; then
3708 ac_ct_RANLIB=$RANLIB
3709 # Extract the first word of "ranlib", so it can be a program name with args.
3710 set dummy ranlib; ac_word=$2
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712 $as_echo_n "checking for $ac_word... " >&6; }
3713 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3714 $as_echo_n "(cached) " >&6
3716 if test -n "$ac_ct_RANLIB"; then
3717 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3726 ac_cv_prog_ac_ct_RANLIB="ranlib"
3727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3736 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3737 if test -n "$ac_ct_RANLIB"; then
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3739 $as_echo "$ac_ct_RANLIB" >&6; }
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742 $as_echo "no" >&6; }
3745 if test "x$ac_ct_RANLIB" = x; then
3748 case $cross_compiling:$ac_tool_warned in
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3752 ac_tool_warned=yes ;;
3754 RANLIB=$ac_ct_RANLIB
3757 RANLIB="$ac_cv_prog_RANLIB"
3760 if test -n "$ac_tool_prefix"; then
3761 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3762 set dummy ${ac_tool_prefix}strip; ac_word=$2
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3764 $as_echo_n "checking for $ac_word... " >&6; }
3765 if ${ac_cv_prog_STRIP+:} false; then :
3766 $as_echo_n "(cached) " >&6
3768 if test -n "$STRIP"; then
3769 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3778 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3788 STRIP=$ac_cv_prog_STRIP
3789 if test -n "$STRIP"; then
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3791 $as_echo "$STRIP" >&6; }
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3799 if test -z "$ac_cv_prog_STRIP"; then
3801 # Extract the first word of "strip", so it can be a program name with args.
3802 set dummy strip; ac_word=$2
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804 $as_echo_n "checking for $ac_word... " >&6; }
3805 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3806 $as_echo_n "(cached) " >&6
3808 if test -n "$ac_ct_STRIP"; then
3809 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 test -z "$as_dir" && as_dir=.
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3818 ac_cv_prog_ac_ct_STRIP="strip"
3819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3828 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3829 if test -n "$ac_ct_STRIP"; then
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3831 $as_echo "$ac_ct_STRIP" >&6; }
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3834 $as_echo "no" >&6; }
3837 if test "x$ac_ct_STRIP" = x; then
3840 case $cross_compiling:$ac_tool_warned in
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3844 ac_tool_warned=yes ;;
3849 STRIP="$ac_cv_prog_STRIP"
3852 if test -n "$ac_tool_prefix"; then
3853 # Extract the first word of "${ac_tool_prefix}install", so it can be a program name with args.
3854 set dummy ${ac_tool_prefix}install; ac_word=$2
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856 $as_echo_n "checking for $ac_word... " >&6; }
3857 if ${ac_cv_prog_INSTALL+:} false; then :
3858 $as_echo_n "(cached) " >&6
3860 if test -n "$INSTALL"; then
3861 ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test.
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870 ac_cv_prog_INSTALL="${ac_tool_prefix}install"
3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3880 INSTALL=$ac_cv_prog_INSTALL
3881 if test -n "$INSTALL"; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3883 $as_echo "$INSTALL" >&6; }
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3891 if test -z "$ac_cv_prog_INSTALL"; then
3892 ac_ct_INSTALL=$INSTALL
3893 # Extract the first word of "install", so it can be a program name with args.
3894 set dummy install; ac_word=$2
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896 $as_echo_n "checking for $ac_word... " >&6; }
3897 if ${ac_cv_prog_ac_ct_INSTALL+:} false; then :
3898 $as_echo_n "(cached) " >&6
3900 if test -n "$ac_ct_INSTALL"; then
3901 ac_cv_prog_ac_ct_INSTALL="$ac_ct_INSTALL" # Let the user override the test.
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 test -z "$as_dir" && as_dir=.
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910 ac_cv_prog_ac_ct_INSTALL="install"
3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 ac_ct_INSTALL=$ac_cv_prog_ac_ct_INSTALL
3921 if test -n "$ac_ct_INSTALL"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_INSTALL" >&5
3923 $as_echo "$ac_ct_INSTALL" >&6; }
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3929 if test "x$ac_ct_INSTALL" = x; then
3932 case $cross_compiling:$ac_tool_warned in
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3936 ac_tool_warned=yes ;;
3938 INSTALL=$ac_ct_INSTALL
3941 INSTALL="$ac_cv_prog_INSTALL"
3946 ac_cpp='$CPP $CPPFLAGS'
3947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3951 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3952 # On Suns, sometimes $CPP names a directory.
3953 if test -n "$CPP" && test -d "$CPP"; then
3956 if test -z "$CPP"; then
3957 if ${ac_cv_prog_CPP+:} false; then :
3958 $as_echo_n "(cached) " >&6
3960 # Double quotes because CPP needs to be expanded
3961 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3964 for ac_c_preproc_warn_flag in '' yes
3966 # Use a header file that comes with gcc, so configuring glibc
3967 # with a fresh cross-compiler works.
3968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3969 # <limits.h> exists even on freestanding compilers.
3970 # On the NeXT, cc -E runs the code through the compiler's parser,
3971 # not just through cpp. "Syntax error" is here to catch this case.
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3975 # include <limits.h>
3977 # include <assert.h>
3981 if ac_fn_c_try_cpp "$LINENO"; then :
3984 # Broken: fails on valid input.
3987 rm -f conftest.err conftest.i conftest.$ac_ext
3989 # OK, works on sane cases. Now check whether nonexistent headers
3990 # can be detected and how.
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
3993 #include <ac_nonexistent.h>
3995 if ac_fn_c_try_cpp "$LINENO"; then :
3996 # Broken: success on invalid input.
3999 # Passes both tests.
4003 rm -f conftest.err conftest.i conftest.$ac_ext
4006 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4007 rm -f conftest.i conftest.err conftest.
$ac_ext
4008 if $ac_preproc_ok; then :
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4021 $as_echo "$CPP" >&6; }
4023 for ac_c_preproc_warn_flag
in '' yes
4025 # Use a header file that comes with gcc, so configuring glibc
4026 # with a fresh cross-compiler works.
4027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4028 # <limits.h> exists even on freestanding compilers.
4029 # On the NeXT, cc -E runs the code through the compiler's parser,
4030 # not just through cpp. "Syntax error" is here to catch this case.
4031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4032 /* end confdefs.h. */
4034 # include <limits.h>
4036 # include <assert.h>
4040 if ac_fn_c_try_cpp
"$LINENO"; then :
4043 # Broken: fails on valid input.
4046 rm -f conftest.err conftest.i conftest.
$ac_ext
4048 # OK, works on sane cases. Now check whether nonexistent headers
4049 # can be detected and how.
4050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4052 #include <ac_nonexistent.h>
4054 if ac_fn_c_try_cpp
"$LINENO"; then :
4055 # Broken: success on invalid input.
4058 # Passes both tests.
4062 rm -f conftest.err conftest.i conftest.
$ac_ext
4065 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4066 rm -f conftest.i conftest.err conftest.
$ac_ext
4067 if $ac_preproc_ok; then :
4070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4072 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4073 See \`config.log' for more details" "$LINENO" 5; }
4077 ac_cpp
='$CPP $CPPFLAGS'
4078 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4084 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4085 if ${ac_cv_path_GREP+:} false
; then :
4086 $as_echo_n "(cached) " >&6
4088 if test -z "$GREP"; then
4089 ac_path_GREP_found
=false
4090 # Loop through the user's path and test for each of PROGNAME-LIST
4091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4092 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4095 test -z "$as_dir" && as_dir
=.
4096 for ac_prog
in grep ggrep
; do
4097 for ac_exec_ext
in '' $ac_executable_extensions; do
4098 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4099 as_fn_executable_p
"$ac_path_GREP" ||
continue
4100 # Check for GNU ac_path_GREP and select it if it is found.
4101 # Check for GNU $ac_path_GREP
4102 case `"$ac_path_GREP" --version 2>&1` in
4104 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4107 $as_echo_n 0123456789 >"conftest.in"
4110 cat "conftest.in" "conftest.in" >"conftest.tmp"
4111 mv "conftest.tmp" "conftest.in"
4112 cp "conftest.in" "conftest.nl"
4113 $as_echo 'GREP' >> "conftest.nl"
4114 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4115 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4116 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4117 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4118 # Best one so far, save it but keep looking for a better one
4119 ac_cv_path_GREP
="$ac_path_GREP"
4120 ac_path_GREP_max
=$ac_count
4122 # 10*(2^10) chars as input seems more than enough
4123 test $ac_count -gt 10 && break
4125 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4128 $ac_path_GREP_found && break 3
4133 if test -z "$ac_cv_path_GREP"; then
4134 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4137 ac_cv_path_GREP
=$GREP
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4142 $as_echo "$ac_cv_path_GREP" >&6; }
4143 GREP
="$ac_cv_path_GREP"
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4147 $as_echo_n "checking for egrep... " >&6; }
4148 if ${ac_cv_path_EGREP+:} false
; then :
4149 $as_echo_n "(cached) " >&6
4151 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4152 then ac_cv_path_EGREP
="$GREP -E"
4154 if test -z "$EGREP"; then
4155 ac_path_EGREP_found
=false
4156 # Loop through the user's path and test for each of PROGNAME-LIST
4157 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4158 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4161 test -z "$as_dir" && as_dir
=.
4162 for ac_prog
in egrep; do
4163 for ac_exec_ext
in '' $ac_executable_extensions; do
4164 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4165 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4166 # Check for GNU ac_path_EGREP and select it if it is found.
4167 # Check for GNU $ac_path_EGREP
4168 case `"$ac_path_EGREP" --version 2>&1` in
4170 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4173 $as_echo_n 0123456789 >"conftest.in"
4176 cat "conftest.in" "conftest.in" >"conftest.tmp"
4177 mv "conftest.tmp" "conftest.in"
4178 cp "conftest.in" "conftest.nl"
4179 $as_echo 'EGREP' >> "conftest.nl"
4180 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4181 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4182 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4183 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4184 # Best one so far, save it but keep looking for a better one
4185 ac_cv_path_EGREP
="$ac_path_EGREP"
4186 ac_path_EGREP_max
=$ac_count
4188 # 10*(2^10) chars as input seems more than enough
4189 test $ac_count -gt 10 && break
4191 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4194 $ac_path_EGREP_found && break 3
4199 if test -z "$ac_cv_path_EGREP"; then
4200 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4203 ac_cv_path_EGREP
=$EGREP
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4209 $as_echo "$ac_cv_path_EGREP" >&6; }
4210 EGREP
="$ac_cv_path_EGREP"
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4214 $as_echo_n "checking for ANSI C header files... " >&6; }
4215 if ${ac_cv_header_stdc+:} false
; then :
4216 $as_echo_n "(cached) " >&6
4218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4233 if ac_fn_c_try_compile
"$LINENO"; then :
4234 ac_cv_header_stdc
=yes
4236 ac_cv_header_stdc
=no
4238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4240 if test $ac_cv_header_stdc = yes; then
4241 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4248 $EGREP "memchr" >/dev
/null
2>&1; then :
4251 ac_cv_header_stdc
=no
4257 if test $ac_cv_header_stdc = yes; then
4258 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4265 $EGREP "free" >/dev
/null
2>&1; then :
4268 ac_cv_header_stdc
=no
4274 if test $ac_cv_header_stdc = yes; then
4275 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4276 if test "$cross_compiling" = yes; then :
4279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4283 #if ((' ' & 0x0FF) == 0x020)
4284 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4285 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4287 # define ISLOWER(c) \
4288 (('a' <= (c) && (c) <= 'i') \
4289 || ('j' <= (c) && (c) <= 'r') \
4290 || ('s' <= (c) && (c) <= 'z'))
4291 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4294 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4299 for (i = 0; i < 256; i++)
4300 if (XOR (islower (i), ISLOWER (i))
4301 || toupper (i) != TOUPPER (i))
4306 if ac_fn_c_try_run
"$LINENO"; then :
4309 ac_cv_header_stdc
=no
4311 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4312 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4318 $as_echo "$ac_cv_header_stdc" >&6; }
4319 if test $ac_cv_header_stdc = yes; then
4321 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4325 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4326 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4327 inttypes.h stdint.h unistd.h
4329 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4330 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4332 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4333 cat >>confdefs.h
<<_ACEOF
4334 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4342 ac_fn_c_check_decl
"$LINENO" "__UCLIBC__" "ac_cv_have_decl___UCLIBC__" "$ac_includes_default"
4343 if test "x$ac_cv_have_decl___UCLIBC__" = xyes
; then :
4345 no_loginfunc_check
=1
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: Using uClibc - login() and logout() probably don't work, so we won't use them." >&5
4347 $as_echo "$as_me: Using uClibc - login() and logout() probably don't work, so we won't use them." >&6;}
4352 ac_fn_c_check_func
"$LINENO" "crypt" "ac_cv_func_crypt"
4353 if test "x$ac_cv_func_crypt" = xyes
; then :
4354 found_crypt_func
=here
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
4358 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
4359 if ${ac_cv_lib_crypt_crypt+:} false
; then :
4360 $as_echo_n "(cached) " >&6
4362 ac_check_lib_save_LIBS
=$LIBS
4363 LIBS
="-lcrypt $LIBS"
4364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4367 /* Override any GCC internal prototype to avoid an error.
4368 Use char because int might match the return type of a GCC
4369 builtin and then its argument prototype would still apply. */
4382 if ac_fn_c_try_link
"$LINENO"; then :
4383 ac_cv_lib_crypt_crypt
=yes
4385 ac_cv_lib_crypt_crypt
=no
4387 rm -f core conftest.err conftest.
$ac_objext \
4388 conftest
$ac_exeext conftest.
$ac_ext
4389 LIBS
=$ac_check_lib_save_LIBS
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
4392 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
4393 if test "x$ac_cv_lib_crypt_crypt" = xyes
; then :
4396 found_crypt_func
=here
4401 if test "t$found_crypt_func" = there
; then
4403 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
4407 # Check if zlib is needed
4409 # Check whether --with-zlib was given.
4410 if test "${with_zlib+set}" = set; then :
4413 if test -d "$withval/lib"; then
4414 LDFLAGS
="-L${withval}/lib ${LDFLAGS}"
4416 LDFLAGS
="-L${withval} ${LDFLAGS}"
4418 if test -d "$withval/include"; then
4419 CPPFLAGS
="-I${withval}/include ${CPPFLAGS}"
4421 CPPFLAGS
="-I${withval} ${CPPFLAGS}"
4428 # Check whether --enable-zlib was given.
4429 if test "${enable_zlib+set}" = set; then :
4430 enableval
=$enable_zlib;
4431 if test "x$enableval" = "xno"; then
4433 $as_echo "#define DISABLE_ZLIB /**/" >>confdefs.h
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling zlib" >&5
4436 $as_echo "$as_me: Disabling zlib" >&6;}
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
4439 $as_echo_n "checking for deflate in -lz... " >&6; }
4440 if ${ac_cv_lib_z_deflate+:} false
; then :
4441 $as_echo_n "(cached) " >&6
4443 ac_check_lib_save_LIBS
=$LIBS
4445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4448 /* Override any GCC internal prototype to avoid an error.
4449 Use char because int might match the return type of a GCC
4450 builtin and then its argument prototype would still apply. */
4463 if ac_fn_c_try_link
"$LINENO"; then :
4464 ac_cv_lib_z_deflate
=yes
4466 ac_cv_lib_z_deflate
=no
4468 rm -f core conftest.err conftest.
$ac_objext \
4469 conftest
$ac_exeext conftest.
$ac_ext
4470 LIBS
=$ac_check_lib_save_LIBS
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
4473 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4474 if test "x$ac_cv_lib_z_deflate" = xyes
; then :
4475 cat >>confdefs.h
<<_ACEOF
4482 as_fn_error $?
"*** zlib missing - install first or check config.log ***" "$LINENO" 5
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling zlib" >&5
4486 $as_echo "$as_me: Enabling zlib" >&6;}
4491 # if not disabled, check for zlib
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
4493 $as_echo_n "checking for deflate in -lz... " >&6; }
4494 if ${ac_cv_lib_z_deflate+:} false
; then :
4495 $as_echo_n "(cached) " >&6
4497 ac_check_lib_save_LIBS
=$LIBS
4499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4502 /* Override any GCC internal prototype to avoid an error.
4503 Use char because int might match the return type of a GCC
4504 builtin and then its argument prototype would still apply. */
4517 if ac_fn_c_try_link
"$LINENO"; then :
4518 ac_cv_lib_z_deflate
=yes
4520 ac_cv_lib_z_deflate
=no
4522 rm -f core conftest.err conftest.
$ac_objext \
4523 conftest
$ac_exeext conftest.
$ac_ext
4524 LIBS
=$ac_check_lib_save_LIBS
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
4527 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4528 if test "x$ac_cv_lib_z_deflate" = xyes
; then :
4529 cat >>confdefs.h
<<_ACEOF
4536 as_fn_error $?
"*** zlib missing - install first or check config.log ***" "$LINENO" 5
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling zlib" >&5
4540 $as_echo "$as_me: Enabling zlib" >&6;}
4546 # Check if pam is needed
4548 # Check whether --with-pam was given.
4549 if test "${with_pam+set}" = set; then :
4552 if test -d "$withval/lib"; then
4553 LDFLAGS
="-L${withval}/lib ${LDFLAGS}"
4555 LDFLAGS
="-L${withval} ${LDFLAGS}"
4557 if test -d "$withval/include"; then
4558 CPPFLAGS
="-I${withval}/include ${CPPFLAGS}"
4560 CPPFLAGS
="-I${withval} ${CPPFLAGS}"
4568 # Check whether --enable-pam was given.
4569 if test "${enable_pam+set}" = set; then :
4570 enableval
=$enable_pam;
4571 if test "x$enableval" = "xyes"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_authenticate in -lpam" >&5
4573 $as_echo_n "checking for pam_authenticate in -lpam... " >&6; }
4574 if ${ac_cv_lib_pam_pam_authenticate+:} false
; then :
4575 $as_echo_n "(cached) " >&6
4577 ac_check_lib_save_LIBS
=$LIBS
4579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4582 /* Override any GCC internal prototype to avoid an error.
4583 Use char because int might match the return type of a GCC
4584 builtin and then its argument prototype would still apply. */
4588 char pam_authenticate ();
4592 return pam_authenticate ();
4597 if ac_fn_c_try_link
"$LINENO"; then :
4598 ac_cv_lib_pam_pam_authenticate
=yes
4600 ac_cv_lib_pam_pam_authenticate
=no
4602 rm -f core conftest.err conftest.
$ac_objext \
4603 conftest
$ac_exeext conftest.
$ac_ext
4604 LIBS
=$ac_check_lib_save_LIBS
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_authenticate" >&5
4607 $as_echo "$ac_cv_lib_pam_pam_authenticate" >&6; }
4608 if test "x$ac_cv_lib_pam_pam_authenticate" = xyes
; then :
4609 cat >>confdefs.h
<<_ACEOF
4610 #define HAVE_LIBPAM 1
4616 as_fn_error $?
"*** PAM missing - install first or check config.log ***" "$LINENO" 5
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling PAM" >&5
4620 $as_echo "$as_me: Enabling PAM" >&6;}
4621 for ac_func
in pam_fail_delay
4623 ac_fn_c_check_func
"$LINENO" "pam_fail_delay" "ac_cv_func_pam_fail_delay"
4624 if test "x$ac_cv_func_pam_fail_delay" = xyes
; then :
4625 cat >>confdefs.h
<<_ACEOF
4626 #define HAVE_PAM_FAIL_DELAY 1
4634 $as_echo "#define DISABLE_PAM /**/" >>confdefs.h
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling PAM" >&5
4637 $as_echo "$as_me: Disabling PAM" >&6;}
4642 # disable it by default
4644 $as_echo "#define DISABLE_PAM /**/" >>confdefs.h
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling PAM" >&5
4647 $as_echo "$as_me: Disabling PAM" >&6;}
4653 # Check whether --enable-openpty was given.
4654 if test "${enable_openpty+set}" = set; then :
4655 enableval
=$enable_openpty;
4656 if test "x$enableval" = "xno"; then
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: Not using openpty" >&5
4658 $as_echo "$as_me: Not using openpty" >&6;}
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: Using openpty if available" >&5
4661 $as_echo "$as_me: Using openpty if available" >&6;}
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
4663 $as_echo_n "checking for library containing openpty... " >&6; }
4664 if ${ac_cv_search_openpty+:} false
; then :
4665 $as_echo_n "(cached) " >&6
4667 ac_func_search_save_LIBS
=$LIBS
4668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h. */
4671 /* Override any GCC internal prototype to avoid an error.
4672 Use char because int might match the return type of a GCC
4673 builtin and then its argument prototype would still apply. */
4686 for ac_lib
in '' util
; do
4687 if test -z "$ac_lib"; then
4688 ac_res
="none required"
4691 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4693 if ac_fn_c_try_link
"$LINENO"; then :
4694 ac_cv_search_openpty
=$ac_res
4696 rm -f core conftest.err conftest.
$ac_objext \
4698 if ${ac_cv_search_openpty+:} false
; then :
4702 if ${ac_cv_search_openpty+:} false
; then :
4705 ac_cv_search_openpty
=no
4708 LIBS
=$ac_func_search_save_LIBS
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
4711 $as_echo "$ac_cv_search_openpty" >&6; }
4712 ac_res
=$ac_cv_search_openpty
4713 if test "$ac_res" != no
; then :
4714 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4716 $as_echo "#define HAVE_OPENPTY /**/" >>confdefs.h
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: Using openpty if available" >&5
4725 $as_echo "$as_me: Using openpty if available" >&6;}
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
4727 $as_echo_n "checking for library containing openpty... " >&6; }
4728 if ${ac_cv_search_openpty+:} false
; then :
4729 $as_echo_n "(cached) " >&6
4731 ac_func_search_save_LIBS
=$LIBS
4732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4735 /* Override any GCC internal prototype to avoid an error.
4736 Use char because int might match the return type of a GCC
4737 builtin and then its argument prototype would still apply. */
4750 for ac_lib
in '' util
; do
4751 if test -z "$ac_lib"; then
4752 ac_res
="none required"
4755 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4757 if ac_fn_c_try_link
"$LINENO"; then :
4758 ac_cv_search_openpty
=$ac_res
4760 rm -f core conftest.err conftest.
$ac_objext \
4762 if ${ac_cv_search_openpty+:} false
; then :
4766 if ${ac_cv_search_openpty+:} false
; then :
4769 ac_cv_search_openpty
=no
4772 LIBS
=$ac_func_search_save_LIBS
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
4775 $as_echo "$ac_cv_search_openpty" >&6; }
4776 ac_res
=$ac_cv_search_openpty
4777 if test "$ac_res" != no
; then :
4778 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4779 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
4789 # Check whether --enable-syslog was given.
4790 if test "${enable_syslog+set}" = set; then :
4791 enableval
=$enable_syslog;
4792 if test "x$enableval" = "xno"; then
4794 $as_echo "#define DISABLE_SYSLOG /**/" >>confdefs.h
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling syslog" >&5
4797 $as_echo "$as_me: Disabling syslog" >&6;}
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling syslog" >&5
4800 $as_echo "$as_me: Enabling syslog" >&6;}
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling syslog" >&5
4806 $as_echo "$as_me: Enabling syslog" >&6;}
4812 # Check whether --enable-shadow was given.
4813 if test "${enable_shadow+set}" = set; then :
4814 enableval
=$enable_shadow;
4815 if test "x$enableval" = "xno"; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: Not using shadow passwords" >&5
4817 $as_echo "$as_me: Not using shadow passwords" >&6;}
4819 for ac_header
in shadow.h
4821 ac_fn_c_check_header_mongrel
"$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
4822 if test "x$ac_cv_header_shadow_h" = xyes
; then :
4823 cat >>confdefs.h
<<_ACEOF
4824 #define HAVE_SHADOW_H 1
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: Using shadow passwords if available" >&5
4832 $as_echo "$as_me: Using shadow passwords if available" >&6;}
4837 for ac_header
in shadow.h
4839 ac_fn_c_check_header_mongrel
"$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
4840 if test "x$ac_cv_header_shadow_h" = xyes
; then :
4841 cat >>confdefs.h
<<_ACEOF
4842 #define HAVE_SHADOW_H 1
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: Using shadow passwords if available" >&5
4850 $as_echo "$as_me: Using shadow passwords if available" >&6;}
4857 # Checks for header files.
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4859 $as_echo_n "checking for ANSI C header files... " >&6; }
4860 if ${ac_cv_header_stdc+:} false
; then :
4861 $as_echo_n "(cached) " >&6
4863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4878 if ac_fn_c_try_compile
"$LINENO"; then :
4879 ac_cv_header_stdc
=yes
4881 ac_cv_header_stdc
=no
4883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4885 if test $ac_cv_header_stdc = yes; then
4886 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4893 $EGREP "memchr" >/dev
/null
2>&1; then :
4896 ac_cv_header_stdc
=no
4902 if test $ac_cv_header_stdc = yes; then
4903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4905 /* end confdefs.h. */
4909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4910 $EGREP "free" >/dev
/null
2>&1; then :
4913 ac_cv_header_stdc
=no
4919 if test $ac_cv_header_stdc = yes; then
4920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4921 if test "$cross_compiling" = yes; then :
4924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4928 #if ((' ' & 0x0FF) == 0x020)
4929 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4930 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4932 # define ISLOWER(c) \
4933 (('a' <= (c) && (c) <= 'i') \
4934 || ('j' <= (c) && (c) <= 'r') \
4935 || ('s' <= (c) && (c) <= 'z'))
4936 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4939 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4944 for (i = 0; i < 256; i++)
4945 if (XOR (islower (i), ISLOWER (i))
4946 || toupper (i) != TOUPPER (i))
4951 if ac_fn_c_try_run
"$LINENO"; then :
4954 ac_cv_header_stdc
=no
4956 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4957 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4963 $as_echo "$ac_cv_header_stdc" >&6; }
4964 if test $ac_cv_header_stdc = yes; then
4966 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4971 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4972 if ${ac_cv_header_sys_wait_h+:} false
; then :
4973 $as_echo_n "(cached) " >&6
4975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4977 #include <sys/types.h>
4978 #include <sys/wait.h>
4980 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4983 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4991 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4996 if ac_fn_c_try_compile
"$LINENO"; then :
4997 ac_cv_header_sys_wait_h
=yes
4999 ac_cv_header_sys_wait_h
=no
5001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5004 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5005 if test $ac_cv_header_sys_wait_h = yes; then
5007 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5011 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 sys
/uio.h
5013 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5014 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5015 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5016 cat >>confdefs.h
<<_ACEOF
5017 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5025 # Checks for typedefs, structures, and compiler characteristics.
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5027 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5028 if ${ac_cv_c_const+:} false
; then :
5029 $as_echo_n "(cached) " >&6
5031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5032 /* end confdefs.h. */
5039 /* Ultrix mips cc rejects this sort of thing. */
5040 typedef int charset[2];
5041 const charset cs = { 0, 0 };
5042 /* SunOS 4.1.1 cc rejects this. */
5043 char const *const *pcpcc;
5045 /* NEC SVR4.0.2 mips cc rejects this. */
5046 struct point {int x, y;};
5047 static struct point const zero = {0,0};
5048 /* AIX XL C 1.02.0.0 rejects this.
5049 It does not let you subtract one const X* pointer from another in
5050 an arm of an if-expression whose if-part is not a constant
5052 const char *g = "string";
5053 pcpcc = &g + (g ? g-g : 0);
5054 /* HPUX 7.0 cc rejects these. */
5056 ppc = (char**) pcpcc;
5057 pcpcc = (char const *const *) ppc;
5058 { /* SCO 3.2v4 cc rejects this sort of thing. */
5061 char const *s = 0 ? (char *) 0 : (char const *) 0;
5066 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5068 const int *foo = &x[0];
5071 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5072 typedef const int *iptr;
5076 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5077 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5078 struct s { int j; const int *ap[3]; } bx;
5079 struct s *b = &bx; b->j = 5;
5081 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5085 return !cs[0] && !zero.x;
5092 if ac_fn_c_try_compile
"$LINENO"; then :
5097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5100 $as_echo "$ac_cv_c_const" >&6; }
5101 if test $ac_cv_c_const = no
; then
5103 $as_echo "#define const /**/" >>confdefs.h
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5108 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5109 if ${ac_cv_type_uid_t+:} false
; then :
5110 $as_echo_n "(cached) " >&6
5112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5114 #include <sys/types.h>
5117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5118 $EGREP "uid_t" >/dev
/null
2>&1; then :
5119 ac_cv_type_uid_t
=yes
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5127 $as_echo "$ac_cv_type_uid_t" >&6; }
5128 if test $ac_cv_type_uid_t = no
; then
5130 $as_echo "#define uid_t int" >>confdefs.h
5133 $as_echo "#define gid_t int" >>confdefs.h
5137 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5138 if test "x$ac_cv_type_mode_t" = xyes
; then :
5142 cat >>confdefs.h
<<_ACEOF
5148 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5149 if test "x$ac_cv_type_pid_t" = xyes
; then :
5153 cat >>confdefs.h
<<_ACEOF
5159 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5160 if test "x$ac_cv_type_size_t" = xyes
; then :
5164 cat >>confdefs.h
<<_ACEOF
5165 #define size_t unsigned int
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5171 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5172 if ${ac_cv_header_time+:} false
; then :
5173 $as_echo_n "(cached) " >&6
5175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5177 #include <sys/types.h>
5178 #include <sys/time.h>
5184 if ((struct tm *) 0)
5190 if ac_fn_c_try_compile
"$LINENO"; then :
5191 ac_cv_header_time
=yes
5193 ac_cv_header_time
=no
5195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5198 $as_echo "$ac_cv_header_time" >&6; }
5199 if test $ac_cv_header_time = yes; then
5201 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5206 ac_fn_c_check_type
"$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
5207 if test "x$ac_cv_type_uint8_t" = xyes
; then :
5209 cat >>confdefs.h
<<_ACEOF
5210 #define HAVE_UINT8_T 1
5215 ac_fn_c_check_type
"$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
5216 if test "x$ac_cv_type_u_int8_t" = xyes
; then :
5218 cat >>confdefs.h
<<_ACEOF
5219 #define HAVE_U_INT8_T 1
5224 ac_fn_c_check_type
"$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5225 if test "x$ac_cv_type_uint16_t" = xyes
; then :
5227 cat >>confdefs.h
<<_ACEOF
5228 #define HAVE_UINT16_T 1
5233 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
5234 if test "x$ac_cv_type_u_int16_t" = xyes
; then :
5236 cat >>confdefs.h
<<_ACEOF
5237 #define HAVE_U_INT16_T 1
5242 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5243 if test "x$ac_cv_type_uint32_t" = xyes
; then :
5245 cat >>confdefs.h
<<_ACEOF
5246 #define HAVE_UINT32_T 1
5251 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
5252 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
5254 cat >>confdefs.h
<<_ACEOF
5255 #define HAVE_U_INT32_T 1
5261 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$ac_includes_default"
5262 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
5264 cat >>confdefs.h
<<_ACEOF
5265 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
5271 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
5272 #include <sys/socket.h>
5274 if test "x$ac_cv_type_socklen_t" = xyes
; then :
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
5279 $as_echo_n "checking for socklen_t equivalent... " >&6; }
5280 if ${curl_cv_socklen_t_equiv+:} false
; then :
5281 $as_echo_n "(cached) " >&6
5284 # Systems have either "struct sockaddr *" or
5285 # "void *" as the second argument to getpeername
5286 curl_cv_socklen_t_equiv
=
5287 for arg2
in "struct sockaddr" void
; do
5288 for t
in int size_t unsigned long
"unsigned long"; do
5289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5292 #include <sys/types.h>
5293 #include <sys/socket.h>
5295 int getpeername (int, $arg2 *, $t *);
5302 getpeername(0,0,&len);
5308 if ac_fn_c_try_compile
"$LINENO"; then :
5310 curl_cv_socklen_t_equiv
="$t"
5314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5318 if test "x$curl_cv_socklen_t_equiv" = x
; then
5319 as_fn_error $?
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
5325 $as_echo "$curl_cv_socklen_t_equiv" >&6; }
5327 cat >>confdefs.h
<<_ACEOF
5328 #define socklen_t $curl_cv_socklen_t_equiv
5334 # for the fake-rfc2553 stuff - straight from OpenSSH
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
5337 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
5338 if ${ac_cv_have_struct_sockaddr_storage+:} false
; then :
5339 $as_echo_n "(cached) " >&6
5342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5345 #include <sys/types.h>
5346 #include <sys/socket.h>
5351 if (sizeof(struct sockaddr_storage)) return 0
5356 if ac_fn_c_try_compile
"$LINENO"; then :
5357 ac_cv_have_struct_sockaddr_storage
="yes"
5359 ac_cv_have_struct_sockaddr_storage
="no"
5362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
5366 $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
5367 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
5368 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
5373 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
5374 if ${ac_cv_have_struct_sockaddr_in6+:} false
; then :
5375 $as_echo_n "(cached) " >&6
5378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h. */
5381 #include <sys/types.h>
5382 #include <netinet/in.h>
5387 if (sizeof(struct sockaddr_in6)) return 0
5392 if ac_fn_c_try_compile
"$LINENO"; then :
5393 ac_cv_have_struct_sockaddr_in6
="yes"
5395 ac_cv_have_struct_sockaddr_in6
="no"
5398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
5402 $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
5403 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
5405 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 /**/" >>confdefs.h
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
5410 $as_echo_n "checking for struct in6_addr... " >&6; }
5411 if ${ac_cv_have_struct_in6_addr+:} false
; then :
5412 $as_echo_n "(cached) " >&6
5415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5418 #include <sys/types.h>
5419 #include <netinet/in.h>
5424 if (sizeof(struct in6_addr)) return 0
5429 if ac_fn_c_try_compile
"$LINENO"; then :
5430 ac_cv_have_struct_in6_addr
="yes"
5432 ac_cv_have_struct_in6_addr
="no"
5435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
5439 $as_echo "$ac_cv_have_struct_in6_addr" >&6; }
5440 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
5442 $as_echo "#define HAVE_STRUCT_IN6_ADDR /**/" >>confdefs.h
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
5447 $as_echo_n "checking for struct addrinfo... " >&6; }
5448 if ${ac_cv_have_struct_addrinfo+:} false
; then :
5449 $as_echo_n "(cached) " >&6
5452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5453 /* end confdefs.h. */
5455 #include <sys/types.h>
5456 #include <sys/socket.h>
5462 if (sizeof(struct addrinfo)) return 0
5467 if ac_fn_c_try_compile
"$LINENO"; then :
5468 ac_cv_have_struct_addrinfo
="yes"
5470 ac_cv_have_struct_addrinfo
="no"
5473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
5477 $as_echo "$ac_cv_have_struct_addrinfo" >&6; }
5478 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
5480 $as_echo "#define HAVE_STRUCT_ADDRINFO /**/" >>confdefs.h
5485 # IRIX has a const char return value for gai_strerror()
5486 for ac_func
in gai_strerror
5488 ac_fn_c_check_func
"$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
5489 if test "x$ac_cv_func_gai_strerror" = xyes
; then :
5490 cat >>confdefs.h
<<_ACEOF
5491 #define HAVE_GAI_STRERROR 1
5494 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
5496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5497 /* end confdefs.h. */
5499 #include <sys/types.h>
5500 #include <sys/socket.h>
5503 const char *gai_strerror(int);
5510 str = gai_strerror(0);
5515 if ac_fn_c_try_compile
"$LINENO"; then :
5518 $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
5521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5528 ac_fn_c_check_member
"$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
5529 #include <sys/types.h>
5535 if test "x$ac_cv_member_struct_utmp_ut_host" = xyes
; then :
5537 cat >>confdefs.h
<<_ACEOF
5538 #define HAVE_STRUCT_UTMP_UT_HOST 1
5543 ac_fn_c_check_member
"$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
5544 #include <sys/types.h>
5550 if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes
; then :
5552 cat >>confdefs.h
<<_ACEOF
5553 #define HAVE_STRUCT_UTMP_UT_PID 1
5558 ac_fn_c_check_member
"$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
5559 #include <sys/types.h>
5565 if test "x$ac_cv_member_struct_utmp_ut_type" = xyes
; then :
5567 cat >>confdefs.h
<<_ACEOF
5568 #define HAVE_STRUCT_UTMP_UT_TYPE 1
5573 ac_fn_c_check_member
"$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "
5574 #include <sys/types.h>
5580 if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes
; then :
5582 cat >>confdefs.h
<<_ACEOF
5583 #define HAVE_STRUCT_UTMP_UT_TV 1
5588 ac_fn_c_check_member
"$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
5589 #include <sys/types.h>
5595 if test "x$ac_cv_member_struct_utmp_ut_id" = xyes
; then :
5597 cat >>confdefs.h
<<_ACEOF
5598 #define HAVE_STRUCT_UTMP_UT_ID 1
5603 ac_fn_c_check_member
"$LINENO" "struct utmp" "ut_addr" "ac_cv_member_struct_utmp_ut_addr" "
5604 #include <sys/types.h>
5610 if test "x$ac_cv_member_struct_utmp_ut_addr" = xyes
; then :
5612 cat >>confdefs.h
<<_ACEOF
5613 #define HAVE_STRUCT_UTMP_UT_ADDR 1
5618 ac_fn_c_check_member
"$LINENO" "struct utmp" "ut_addr_v6" "ac_cv_member_struct_utmp_ut_addr_v6" "
5619 #include <sys/types.h>
5625 if test "x$ac_cv_member_struct_utmp_ut_addr_v6" = xyes
; then :
5627 cat >>confdefs.h
<<_ACEOF
5628 #define HAVE_STRUCT_UTMP_UT_ADDR_V6 1
5633 ac_fn_c_check_member
"$LINENO" "struct utmp" "ut_exit" "ac_cv_member_struct_utmp_ut_exit" "
5634 #include <sys/types.h>
5640 if test "x$ac_cv_member_struct_utmp_ut_exit" = xyes
; then :
5642 cat >>confdefs.h
<<_ACEOF
5643 #define HAVE_STRUCT_UTMP_UT_EXIT 1
5648 ac_fn_c_check_member
"$LINENO" "struct utmp" "ut_time" "ac_cv_member_struct_utmp_ut_time" "
5649 #include <sys/types.h>
5655 if test "x$ac_cv_member_struct_utmp_ut_time" = xyes
; then :
5657 cat >>confdefs.h
<<_ACEOF
5658 #define HAVE_STRUCT_UTMP_UT_TIME 1
5665 ac_fn_c_check_member
"$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "
5666 #include <sys/types.h>
5667 #include <sys/socket.h>
5673 if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes
; then :
5675 cat >>confdefs.h
<<_ACEOF
5676 #define HAVE_STRUCT_UTMPX_UT_HOST 1
5681 ac_fn_c_check_member
"$LINENO" "struct utmpx" "ut_syslen" "ac_cv_member_struct_utmpx_ut_syslen" "
5682 #include <sys/types.h>
5683 #include <sys/socket.h>
5689 if test "x$ac_cv_member_struct_utmpx_ut_syslen" = xyes
; then :
5691 cat >>confdefs.h
<<_ACEOF
5692 #define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
5697 ac_fn_c_check_member
"$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" "
5698 #include <sys/types.h>
5699 #include <sys/socket.h>
5705 if test "x$ac_cv_member_struct_utmpx_ut_type" = xyes
; then :
5707 cat >>confdefs.h
<<_ACEOF
5708 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
5713 ac_fn_c_check_member
"$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "
5714 #include <sys/types.h>
5715 #include <sys/socket.h>
5721 if test "x$ac_cv_member_struct_utmpx_ut_id" = xyes
; then :
5723 cat >>confdefs.h
<<_ACEOF
5724 #define HAVE_STRUCT_UTMPX_UT_ID 1
5729 ac_fn_c_check_member
"$LINENO" "struct utmpx" "ut_addr" "ac_cv_member_struct_utmpx_ut_addr" "
5730 #include <sys/types.h>
5731 #include <sys/socket.h>
5737 if test "x$ac_cv_member_struct_utmpx_ut_addr" = xyes
; then :
5739 cat >>confdefs.h
<<_ACEOF
5740 #define HAVE_STRUCT_UTMPX_UT_ADDR 1
5745 ac_fn_c_check_member
"$LINENO" "struct utmpx" "ut_addr_v6" "ac_cv_member_struct_utmpx_ut_addr_v6" "
5746 #include <sys/types.h>
5747 #include <sys/socket.h>
5753 if test "x$ac_cv_member_struct_utmpx_ut_addr_v6" = xyes
; then :
5755 cat >>confdefs.h
<<_ACEOF
5756 #define HAVE_STRUCT_UTMPX_UT_ADDR_V6 1
5761 ac_fn_c_check_member
"$LINENO" "struct utmpx" "ut_time" "ac_cv_member_struct_utmpx_ut_time" "
5762 #include <sys/types.h>
5763 #include <sys/socket.h>
5769 if test "x$ac_cv_member_struct_utmpx_ut_time" = xyes
; then :
5771 cat >>confdefs.h
<<_ACEOF
5772 #define HAVE_STRUCT_UTMPX_UT_TIME 1
5777 ac_fn_c_check_member
"$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "
5778 #include <sys/types.h>
5779 #include <sys/socket.h>
5785 if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes
; then :
5787 cat >>confdefs.h
<<_ACEOF
5788 #define HAVE_STRUCT_UTMPX_UT_TV 1
5795 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "
5796 #include <sys/types.h>
5797 #include <sys/socket.h>
5800 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
; then :
5802 cat >>confdefs.h
<<_ACEOF
5803 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
5810 for ac_func
in endutent getutent getutid getutline pututline setutent
5812 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5813 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5814 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5815 cat >>confdefs.h
<<_ACEOF
5816 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5822 for ac_func
in utmpname
5824 ac_fn_c_check_func
"$LINENO" "utmpname" "ac_cv_func_utmpname"
5825 if test "x$ac_cv_func_utmpname" = xyes
; then :
5826 cat >>confdefs.h
<<_ACEOF
5827 #define HAVE_UTMPNAME 1
5833 for ac_func
in endutxent getutxent getutxid getutxline pututxline
5835 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5836 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5837 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5838 cat >>confdefs.h
<<_ACEOF
5839 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5845 for ac_func
in setutxent utmpxname
5847 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5848 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5849 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5850 cat >>confdefs.h
<<_ACEOF
5851 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5857 for ac_func
in logout updwtmp logwtmp
5859 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5860 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5861 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5862 cat >>confdefs.h
<<_ACEOF
5863 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5870 # OS X monotonic time
5871 for ac_header
in mach
/mach_time.h
5873 ac_fn_c_check_header_mongrel
"$LINENO" "mach/mach_time.h" "ac_cv_header_mach_mach_time_h" "$ac_includes_default"
5874 if test "x$ac_cv_header_mach_mach_time_h" = xyes
; then :
5875 cat >>confdefs.h
<<_ACEOF
5876 #define HAVE_MACH_MACH_TIME_H 1
5883 for ac_func
in mach_absolute_time
5885 ac_fn_c_check_func
"$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time"
5886 if test "x$ac_cv_func_mach_absolute_time" = xyes
; then :
5887 cat >>confdefs.h
<<_ACEOF
5888 #define HAVE_MACH_ABSOLUTE_TIME 1
5895 for ac_func
in explicit_bzero memset_s
5897 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5898 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5899 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5900 cat >>confdefs.h
<<_ACEOF
5901 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5909 # Check whether --enable-bundled-libtom was given.
5910 if test "${enable_bundled_libtom+set}" = set; then :
5911 enableval
=$enable_bundled_libtom;
5912 if test "x$enableval" = "xyes"; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: Forcing bundled libtom*" >&5
5915 $as_echo "$as_me: Forcing bundled libtom*" >&6;}
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_exptmod in -ltommath" >&5
5919 $as_echo_n "checking for mp_exptmod in -ltommath... " >&6; }
5920 if ${ac_cv_lib_tommath_mp_exptmod+:} false
; then :
5921 $as_echo_n "(cached) " >&6
5923 ac_check_lib_save_LIBS
=$LIBS
5924 LIBS
="-ltommath $LIBS"
5925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5928 /* Override any GCC internal prototype to avoid an error.
5929 Use char because int might match the return type of a GCC
5930 builtin and then its argument prototype would still apply. */
5938 return mp_exptmod ();
5943 if ac_fn_c_try_link
"$LINENO"; then :
5944 ac_cv_lib_tommath_mp_exptmod
=yes
5946 ac_cv_lib_tommath_mp_exptmod
=no
5948 rm -f core conftest.err conftest.
$ac_objext \
5949 conftest
$ac_exeext conftest.
$ac_ext
5950 LIBS
=$ac_check_lib_save_LIBS
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tommath_mp_exptmod" >&5
5953 $as_echo "$ac_cv_lib_tommath_mp_exptmod" >&6; }
5954 if test "x$ac_cv_lib_tommath_mp_exptmod" = xyes
; then :
5955 LIBTOM_LIBS
="$LIBTOM_LIBS -ltommath"
5957 as_fn_error $?
"Missing system libtommath and --disable-bundled-libtom was specified" "$LINENO" 5
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for register_cipher in -ltomcrypt" >&5
5961 $as_echo_n "checking for register_cipher in -ltomcrypt... " >&6; }
5962 if ${ac_cv_lib_tomcrypt_register_cipher+:} false
; then :
5963 $as_echo_n "(cached) " >&6
5965 ac_check_lib_save_LIBS
=$LIBS
5966 LIBS
="-ltomcrypt $LIBS"
5967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5968 /* end confdefs.h. */
5970 /* Override any GCC internal prototype to avoid an error.
5971 Use char because int might match the return type of a GCC
5972 builtin and then its argument prototype would still apply. */
5976 char register_cipher ();
5980 return register_cipher ();
5985 if ac_fn_c_try_link
"$LINENO"; then :
5986 ac_cv_lib_tomcrypt_register_cipher
=yes
5988 ac_cv_lib_tomcrypt_register_cipher
=no
5990 rm -f core conftest.err conftest.
$ac_objext \
5991 conftest
$ac_exeext conftest.
$ac_ext
5992 LIBS
=$ac_check_lib_save_LIBS
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_register_cipher" >&5
5995 $as_echo "$ac_cv_lib_tomcrypt_register_cipher" >&6; }
5996 if test "x$ac_cv_lib_tomcrypt_register_cipher" = xyes
; then :
5997 LIBTOM_LIBS
="$LIBTOM_LIBS -ltomcrypt"
5999 as_fn_error $?
"Missing system libtomcrypt and --disable-bundled-libtom was specified" "$LINENO" 5
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_exptmod in -ltommath" >&5
6008 $as_echo_n "checking for mp_exptmod in -ltommath... " >&6; }
6009 if ${ac_cv_lib_tommath_mp_exptmod+:} false
; then :
6010 $as_echo_n "(cached) " >&6
6012 ac_check_lib_save_LIBS
=$LIBS
6013 LIBS
="-ltommath $LIBS"
6014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h. */
6017 /* Override any GCC internal prototype to avoid an error.
6018 Use char because int might match the return type of a GCC
6019 builtin and then its argument prototype would still apply. */
6027 return mp_exptmod ();
6032 if ac_fn_c_try_link
"$LINENO"; then :
6033 ac_cv_lib_tommath_mp_exptmod
=yes
6035 ac_cv_lib_tommath_mp_exptmod
=no
6037 rm -f core conftest.err conftest.
$ac_objext \
6038 conftest
$ac_exeext conftest.
$ac_ext
6039 LIBS
=$ac_check_lib_save_LIBS
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tommath_mp_exptmod" >&5
6042 $as_echo "$ac_cv_lib_tommath_mp_exptmod" >&6; }
6043 if test "x$ac_cv_lib_tommath_mp_exptmod" = xyes
; then :
6044 LIBTOM_LIBS
="$LIBTOM_LIBS -ltommath"
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for register_cipher in -ltomcrypt" >&5
6050 $as_echo_n "checking for register_cipher in -ltomcrypt... " >&6; }
6051 if ${ac_cv_lib_tomcrypt_register_cipher+:} false
; then :
6052 $as_echo_n "(cached) " >&6
6054 ac_check_lib_save_LIBS
=$LIBS
6055 LIBS
="-ltomcrypt $LIBS"
6056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6059 /* Override any GCC internal prototype to avoid an error.
6060 Use char because int might match the return type of a GCC
6061 builtin and then its argument prototype would still apply. */
6065 char register_cipher ();
6069 return register_cipher ();
6074 if ac_fn_c_try_link
"$LINENO"; then :
6075 ac_cv_lib_tomcrypt_register_cipher
=yes
6077 ac_cv_lib_tomcrypt_register_cipher
=no
6079 rm -f core conftest.err conftest.
$ac_objext \
6080 conftest
$ac_exeext conftest.
$ac_ext
6081 LIBS
=$ac_check_lib_save_LIBS
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_register_cipher" >&5
6084 $as_echo "$ac_cv_lib_tomcrypt_register_cipher" >&6; }
6085 if test "x$ac_cv_lib_tomcrypt_register_cipher" = xyes
; then :
6086 LIBTOM_LIBS
="$LIBTOM_LIBS -ltomcrypt"
6096 if test $BUNDLED_LIBTOM = 1 ; then
6098 $as_echo "#define BUNDLED_LIBTOM /**/" >>confdefs.h
6106 # Check whether --enable-lastlog was given.
6107 if test "${enable_lastlog+set}" = set; then :
6108 enableval
=$enable_lastlog;
6109 $as_echo "#define DISABLE_LASTLOG /**/" >>confdefs.h
6114 # Check whether --enable-utmp was given.
6115 if test "${enable_utmp+set}" = set; then :
6116 enableval
=$enable_utmp;
6117 $as_echo "#define DISABLE_UTMP /**/" >>confdefs.h
6122 # Check whether --enable-utmpx was given.
6123 if test "${enable_utmpx+set}" = set; then :
6124 enableval
=$enable_utmpx;
6125 $as_echo "#define DISABLE_UTMPX /**/" >>confdefs.h
6130 # Check whether --enable-wtmp was given.
6131 if test "${enable_wtmp+set}" = set; then :
6132 enableval
=$enable_wtmp;
6133 $as_echo "#define DISABLE_WTMP /**/" >>confdefs.h
6138 # Check whether --enable-wtmpx was given.
6139 if test "${enable_wtmpx+set}" = set; then :
6140 enableval
=$enable_wtmpx;
6141 $as_echo "#define DISABLE_WTMPX /**/" >>confdefs.h
6146 # Check whether --enable-loginfunc was given.
6147 if test "${enable_loginfunc+set}" = set; then :
6148 enableval
=$enable_loginfunc; no_loginfunc_check
=1
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: Not using login() etc" >&5
6150 $as_echo "$as_me: Not using login() etc" >&6;}
6154 # Check whether --enable-pututline was given.
6155 if test "${enable_pututline+set}" = set; then :
6156 enableval
=$enable_pututline;
6157 $as_echo "#define DISABLE_PUTUTLINE /**/" >>confdefs.h
6162 # Check whether --enable-pututxline was given.
6163 if test "${enable_pututxline+set}" = set; then :
6164 enableval
=$enable_pututxline;
6165 $as_echo "#define DISABLE_PUTUTXLINE /**/" >>confdefs.h
6171 # Check whether --with-lastlog was given.
6172 if test "${with_lastlog+set}" = set; then :
6173 withval
=$with_lastlog;
6174 if test "x$withval" = "xno" ; then
6175 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
6178 conf_lastlog_location
=$withval
6185 if test -z "$no_loginfunc_check"; then
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
6187 $as_echo_n "checking for library containing login... " >&6; }
6188 if ${ac_cv_search_login+:} false
; then :
6189 $as_echo_n "(cached) " >&6
6191 ac_func_search_save_LIBS
=$LIBS
6192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6195 /* Override any GCC internal prototype to avoid an error.
6196 Use char because int might match the return type of a GCC
6197 builtin and then its argument prototype would still apply. */
6210 for ac_lib
in '' util bsd
; do
6211 if test -z "$ac_lib"; then
6212 ac_res
="none required"
6215 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6217 if ac_fn_c_try_link
"$LINENO"; then :
6218 ac_cv_search_login
=$ac_res
6220 rm -f core conftest.err conftest.
$ac_objext \
6222 if ${ac_cv_search_login+:} false
; then :
6226 if ${ac_cv_search_login+:} false
; then :
6229 ac_cv_search_login
=no
6232 LIBS
=$ac_func_search_save_LIBS
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
6235 $as_echo "$ac_cv_search_login" >&6; }
6236 ac_res
=$ac_cv_search_login
6237 if test "$ac_res" != no
; then :
6238 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6240 $as_echo "#define HAVE_LOGIN /**/" >>confdefs.h
6244 for ac_func
in logout updwtmp logwtmp
6246 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6247 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6248 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6249 cat >>confdefs.h
<<_ACEOF
6250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
6260 $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
6261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6262 /* end confdefs.h. */
6264 #include <sys/types.h>
6266 #ifdef HAVE_LASTLOG_H
6267 # include <lastlog.h>
6279 char *lastlog = LASTLOG_FILE;
6284 if ac_fn_c_try_compile
"$LINENO"; then :
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6286 $as_echo "yes" >&6; }
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 $as_echo "no" >&6; }
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
6292 $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
6293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6296 #include <sys/types.h>
6298 #ifdef HAVE_LASTLOG_H
6299 # include <lastlog.h>
6308 char *lastlog = _PATH_LASTLOG;
6313 if ac_fn_c_try_compile
"$LINENO"; then :
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6315 $as_echo "yes" >&6; }
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 $as_echo "no" >&6; }
6320 system_lastlog_path
=no
6323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6329 if test -z "$conf_lastlog_location"; then
6330 if test x
"$system_lastlog_path" = x
"no" ; then
6331 for f
in /var
/log
/lastlog
/usr
/adm
/lastlog
/var
/adm
/lastlog
/etc
/security
/lastlog
; do
6332 if (test -d "$f" ||
test -f "$f") ; then
6333 conf_lastlog_location
=$f
6336 if test -z "$conf_lastlog_location"; then
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
6338 $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
6343 if test -n "$conf_lastlog_location"; then
6345 cat >>confdefs.h
<<_ACEOF
6346 #define CONF_LASTLOG_FILE "$conf_lastlog_location"
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
6352 $as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
6353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6356 #include <sys/types.h>
6365 char *utmp = UTMP_FILE;
6370 if ac_fn_c_try_compile
"$LINENO"; then :
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6372 $as_echo "yes" >&6; }
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 $as_echo "no" >&6; }
6379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6380 if test -z "$conf_utmp_location"; then
6381 if test x
"$system_utmp_path" = x
"no" ; then
6382 for f
in /etc
/utmp
/usr
/adm
/utmp
/var
/run
/utmp
; do
6383 if test -f $f ; then
6384 conf_utmp_location
=$f
6387 if test -z "$conf_utmp_location"; then
6388 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
6393 if test -n "$conf_utmp_location"; then
6395 cat >>confdefs.h
<<_ACEOF
6396 #define CONF_UTMP_FILE "$conf_utmp_location"
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
6402 $as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
6403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h. */
6406 #include <sys/types.h>
6417 char *wtmp = WTMP_FILE;
6422 if ac_fn_c_try_compile
"$LINENO"; then :
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6424 $as_echo "yes" >&6; }
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427 $as_echo "no" >&6; }
6431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6432 if test -z "$conf_wtmp_location"; then
6433 if test x
"$system_wtmp_path" = x
"no" ; then
6434 for f
in /usr
/adm
/wtmp
/var
/log
/wtmp
; do
6435 if test -f $f ; then
6436 conf_wtmp_location
=$f
6439 if test -z "$conf_wtmp_location"; then
6440 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
6445 if test -n "$conf_wtmp_location"; then
6447 cat >>confdefs.h
<<_ACEOF
6448 #define CONF_WTMP_FILE "$conf_wtmp_location"
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMPX_FILE" >&5
6455 $as_echo_n "checking if your system defines UTMPX_FILE... " >&6; }
6456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6459 #include <sys/types.h>
6471 char *utmpx = UTMPX_FILE;
6476 if ac_fn_c_try_compile
"$LINENO"; then :
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6478 $as_echo "yes" >&6; }
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481 $as_echo "no" >&6; }
6482 system_utmpx_path
=no
6485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6486 if test -z "$conf_utmpx_location"; then
6487 if test x
"$system_utmpx_path" = x
"no" ; then
6488 $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
6493 cat >>confdefs.h
<<_ACEOF
6494 #define CONF_UTMPX_FILE "$conf_utmpx_location"
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
6500 $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
6501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6504 #include <sys/types.h>
6518 char *wtmpx = WTMPX_FILE;
6523 if ac_fn_c_try_compile
"$LINENO"; then :
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6525 $as_echo "yes" >&6; }
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528 $as_echo "no" >&6; }
6529 system_wtmpx_path
=no
6532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6533 if test -z "$conf_wtmpx_location"; then
6534 if test x
"$system_wtmpx_path" = x
"no" ; then
6535 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
6540 cat >>confdefs.h
<<_ACEOF
6541 #define CONF_WTMPX_FILE "$conf_wtmpx_location"
6546 # Checks for library functions.
6547 if test $ac_cv_c_compiler_gnu = yes; then
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6549 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
6550 if ${ac_cv_prog_gcc_traditional+:} false
; then :
6551 $as_echo_n "(cached) " >&6
6553 ac_pattern
="Autoconf.*'x'"
6554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6560 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
6561 ac_cv_prog_gcc_traditional
=yes
6563 ac_cv_prog_gcc_traditional
=no
6568 if test $ac_cv_prog_gcc_traditional = no
; then
6569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6570 /* end confdefs.h. */
6574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6575 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
6576 ac_cv_prog_gcc_traditional
=yes
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6583 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6584 if test $ac_cv_prog_gcc_traditional = yes; then
6585 CC
="$CC -traditional"
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6590 $as_echo_n "checking for working memcmp... " >&6; }
6591 if ${ac_cv_func_memcmp_working+:} false
; then :
6592 $as_echo_n "(cached) " >&6
6594 if test "$cross_compiling" = yes; then :
6595 ac_cv_func_memcmp_working
=no
6597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6599 $ac_includes_default
6604 /* Some versions of memcmp are not 8-bit clean. */
6605 char c0 = '\100', c1 = '\200', c2 = '\201';
6606 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6609 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6610 or more and with at least one buffer not starting on a 4-byte boundary.
6611 William Lewis provided this test program. */
6616 for (i = 0; i < 4; i++)
6620 strcpy (a, "--------01111111");
6621 strcpy (b, "--------10000000");
6622 if (memcmp (a, b, 16) >= 0)
6632 if ac_fn_c_try_run
"$LINENO"; then :
6633 ac_cv_func_memcmp_working
=yes
6635 ac_cv_func_memcmp_working
=no
6637 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6638 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6643 $as_echo "$ac_cv_func_memcmp_working" >&6; }
6644 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
6645 *" memcmp.$ac_objext "* ) ;;
6646 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
6651 for ac_header
in sys
/select.h sys
/socket.h
6653 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6654 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6655 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6656 cat >>confdefs.h
<<_ACEOF
6657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
6665 $as_echo_n "checking types of arguments for select... " >&6; }
6666 if ${ac_cv_func_select_args+:} false
; then :
6667 $as_echo_n "(cached) " >&6
6669 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
6670 for ac_arg1
in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
6671 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
6672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h. */
6674 $ac_includes_default
6675 #ifdef HAVE_SYS_SELECT_H
6676 # include <sys/select.h>
6678 #ifdef HAVE_SYS_SOCKET_H
6679 # include <sys/socket.h>
6685 extern int select ($ac_arg1,
6686 $ac_arg234, $ac_arg234, $ac_arg234,
6692 if ac_fn_c_try_compile
"$LINENO"; then :
6693 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
6695 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6699 # Provide a safe default value.
6700 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
6704 $as_echo "$ac_cv_func_select_args" >&6; }
6705 ac_save_IFS
=$IFS; IFS
=','
6706 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
6710 cat >>confdefs.h
<<_ACEOF
6711 #define SELECT_TYPE_ARG1 $1
6715 cat >>confdefs.h
<<_ACEOF
6716 #define SELECT_TYPE_ARG234 ($2)
6720 cat >>confdefs.h
<<_ACEOF
6721 #define SELECT_TYPE_ARG5 ($3)
6726 for ac_func
in dup2 getpass getspnam getusershell memset putenv
select socket strdup clearenv strlcpy strlcat daemon
basename _getpty getaddrinfo freeaddrinfo getnameinfo fork writev
6728 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6729 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6730 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6731 cat >>confdefs.h
<<_ACEOF
6732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
6740 $as_echo_n "checking for library containing basename... " >&6; }
6741 if ${ac_cv_search_basename+:} false
; then :
6742 $as_echo_n "(cached) " >&6
6744 ac_func_search_save_LIBS
=$LIBS
6745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6748 /* Override any GCC internal prototype to avoid an error.
6749 Use char because int might match the return type of a GCC
6750 builtin and then its argument prototype would still apply. */
6763 for ac_lib
in '' gen
; do
6764 if test -z "$ac_lib"; then
6765 ac_res
="none required"
6768 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6770 if ac_fn_c_try_link
"$LINENO"; then :
6771 ac_cv_search_basename
=$ac_res
6773 rm -f core conftest.err conftest.
$ac_objext \
6775 if ${ac_cv_search_basename+:} false
; then :
6779 if ${ac_cv_search_basename+:} false
; then :
6782 ac_cv_search_basename
=no
6785 LIBS
=$ac_func_search_save_LIBS
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
6788 $as_echo "$ac_cv_search_basename" >&6; }
6789 ac_res
=$ac_cv_search_basename
6790 if test "$ac_res" != no
; then :
6791 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6792 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
6797 # Solaris needs ptmx
6798 if test -z "$no_ptmx_check" ; then
6799 if test x
"$cross_compiling" = x
"no" ; then
6800 if test -e /dev
/ptmx
; then
6802 $as_echo "#define USE_DEV_PTMX /**/" >>confdefs.h
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: Not checking for /dev/ptmx, we're cross-compiling" >&5
6807 $as_echo "$as_me: Not checking for /dev/ptmx, we're cross-compiling" >&6;}
6811 if test -z "$no_ptc_check" ; then
6812 if test x
"$cross_compiling" = x
"no" ; then
6813 if test -e /dev
/ptc
; then
6815 $as_echo "#define HAVE_DEV_PTS_AND_PTC /**/" >>confdefs.h
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: Not checking for /dev/ptc & /dev/pts since we're cross-compiling" >&5
6820 $as_echo "$as_me: Not checking for /dev/ptc & /dev/pts since we're cross-compiling" >&6;}
6826 # XXX there must be a nicer way to do this
6827 if test $BUNDLED_LIBTOM = 1 ; then
6828 as_dir
=libtomcrypt
/src
/ciphers
/aes
; as_fn_mkdir_p
6829 as_dir
=libtomcrypt
/src
/ciphers
/safer
; as_fn_mkdir_p
6830 as_dir
=libtomcrypt
/src
/ciphers
/twofish
; as_fn_mkdir_p
6831 as_dir
=libtomcrypt
/src
/encauth
/ccm
; as_fn_mkdir_p
6832 as_dir
=libtomcrypt
/src
/encauth
/eax
; as_fn_mkdir_p
6833 as_dir
=libtomcrypt
/src
/encauth
/gcm
; as_fn_mkdir_p
6834 as_dir
=libtomcrypt
/src
/encauth
/ocb
; as_fn_mkdir_p
6835 as_dir
=libtomcrypt
/src
/hashes
; as_fn_mkdir_p
6836 as_dir
=libtomcrypt
/src
/hashes
/chc
; as_fn_mkdir_p
6837 as_dir
=libtomcrypt
/src
/hashes
/helper
; as_fn_mkdir_p
6838 as_dir
=libtomcrypt
/src
/hashes
/sha2
; as_fn_mkdir_p
6839 as_dir
=libtomcrypt
/src
/hashes
/whirl
; as_fn_mkdir_p
6840 as_dir
=libtomcrypt
/src
/mac
/hmac
; as_fn_mkdir_p
6841 as_dir
=libtomcrypt
/src
/mac
/omac
; as_fn_mkdir_p
6842 as_dir
=libtomcrypt
/src
/mac
/pelican
; as_fn_mkdir_p
6843 as_dir
=libtomcrypt
/src
/mac
/pmac
; as_fn_mkdir_p
6844 as_dir
=libtomcrypt
/src
/mac
/f9
; as_fn_mkdir_p
6845 as_dir
=libtomcrypt
/src
/mac
/xcbc
; as_fn_mkdir_p
6846 as_dir
=libtomcrypt
/src
/math
/fp
; as_fn_mkdir_p
6847 as_dir
=libtomcrypt
/src
/misc
/base64
; as_fn_mkdir_p
6848 as_dir
=libtomcrypt
/src
/misc
/crypt; as_fn_mkdir_p
6849 as_dir
=libtomcrypt
/src
/misc
/mpi
; as_fn_mkdir_p
6850 as_dir
=libtomcrypt
/src
/misc
/pkcs5
; as_fn_mkdir_p
6851 as_dir
=libtomcrypt
/src
/modes
/cbc
; as_fn_mkdir_p
6852 as_dir
=libtomcrypt
/src
/modes
/cfb
; as_fn_mkdir_p
6853 as_dir
=libtomcrypt
/src
/modes
/ctr
; as_fn_mkdir_p
6854 as_dir
=libtomcrypt
/src
/modes
/ecb
; as_fn_mkdir_p
6855 as_dir
=libtomcrypt
/src
/modes
/ofb
; as_fn_mkdir_p
6856 as_dir
=libtomcrypt
/src
/modes
/f8
; as_fn_mkdir_p
6857 as_dir
=libtomcrypt
/src
/modes
/lrw
; as_fn_mkdir_p
6858 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/bit
; as_fn_mkdir_p
6859 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/boolean
; as_fn_mkdir_p
6860 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/choice
; as_fn_mkdir_p
6861 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/ia5
; as_fn_mkdir_p
6862 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/integer
; as_fn_mkdir_p
6863 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/object_identifier
; as_fn_mkdir_p
6864 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/octet
; as_fn_mkdir_p
6865 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/printable_string
; as_fn_mkdir_p
6866 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/sequence
; as_fn_mkdir_p
6867 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/set; as_fn_mkdir_p
6868 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/short_integer
; as_fn_mkdir_p
6869 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/utctime
; as_fn_mkdir_p
6870 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/utf8
; as_fn_mkdir_p
6871 as_dir
=libtomcrypt
/src
/pk
/dh
; as_fn_mkdir_p
6872 as_dir
=libtomcrypt
/src
/pk
/dsa
; as_fn_mkdir_p
6873 as_dir
=libtomcrypt
/src
/pk
/ecc
; as_fn_mkdir_p
6874 as_dir
=libtomcrypt
/src
/pk
/katja
; as_fn_mkdir_p
6875 as_dir
=libtomcrypt
/src
/pk
/pkcs1
; as_fn_mkdir_p
6876 as_dir
=libtomcrypt
/src
/pk
/rsa
; as_fn_mkdir_p
6877 as_dir
=libtomcrypt
/src
/prngs
; as_fn_mkdir_p
6878 LIBTOM_FILES
="libtomcrypt/Makefile libtommath/Makefile"
6880 ac_config_headers
="$ac_config_headers config.h"
6882 ac_config_files
="$ac_config_files Makefile $LIBTOM_FILES"
6884 cat >confcache
<<\_ACEOF
6885 # This file is a shell script that caches the results of configure
6886 # tests run on this system so they can be shared between configure
6887 # scripts and configure runs, see configure's option --config-cache.
6888 # It is not useful on other systems. If it contains results you don't
6889 # want to keep, you may remove or edit it.
6891 # config.status only pays attention to the cache file if you give it
6892 # the --recheck option to rerun configure.
6894 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6895 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6900 # The following way of writing the cache mishandles newlines in values,
6901 # but we know of no workaround that is simple, portable, and efficient.
6902 # So, we kill variables containing newlines.
6903 # Ultrix sh set writes to stderr and can't be redirected directly,
6904 # and sets the high bit in the cache file unless we assign to the vars.
6906 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6907 eval ac_val
=\$
$ac_var
6911 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6912 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6915 _ | IFS | as_nl
) ;; #(
6916 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6917 *) { eval $ac_var=; unset $ac_var;} ;;
6923 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6924 *${as_nl}ac_space
=\
*)
6925 # `set' does not quote correctly, so add quotes: double-quote
6926 # substitution turns \\\\ into \\, and sed turns \\ into \.
6929 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6932 # `set' quotes correctly as required by POSIX, so do not add quotes.
6933 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6942 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6944 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6946 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6947 if test -w "$cache_file"; then
6948 if test "x$cache_file" != "x/dev/null"; then
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6950 $as_echo "$as_me: updating cache $cache_file" >&6;}
6951 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
6952 cat confcache
>"$cache_file"
6954 case $cache_file in #(
6956 mv -f confcache
"$cache_file"$$
&&
6957 mv -f "$cache_file"$$
"$cache_file" ;; #(
6959 mv -f confcache
"$cache_file" ;;
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6965 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6970 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6971 # Let make expand exec_prefix.
6972 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6974 DEFS
=-DHAVE_CONFIG_H
6979 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6980 # 1. Remove the extension, and $U if already installed.
6981 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
6982 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
6983 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6984 # will be set to the directory where LIBOBJS objects are built.
6985 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6986 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
6990 LTLIBOBJS
=$ac_ltlibobjs
6994 : "${CONFIG_STATUS=./config.status}"
6996 ac_clean_files_save
=$ac_clean_files
6997 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6999 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7001 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7003 # Generated by $as_me.
7004 # Run this file to recreate the current configuration.
7005 # Compiler output produced by configure, useful for debugging
7006 # configure, is in config.log if it exists.
7012 SHELL=\${CONFIG_SHELL-$SHELL}
7015 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7016 ## -------------------- ##
7017 ## M4sh Initialization. ##
7018 ## -------------------- ##
7020 # Be more Bourne compatible
7021 DUALCASE
=1; export DUALCASE
# for MKS sh
7022 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7025 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7026 # is contrary to our usage. Disable this feature.
7027 alias -g '${1+"$@"}'='"$@"'
7028 setopt NO_GLOB_SUBST
7030 case `(set -o) 2>/dev/null` in #(
7042 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7043 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7044 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7045 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7046 # Prefer a ksh shell builtin over an external printf program on Solaris,
7047 # but without wasting forks for bash or zsh.
7048 if test -z "$BASH_VERSION$ZSH_VERSION" \
7049 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7050 as_echo='print
-r --'
7051 as_echo_n='print
-rn --'
7052 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7053 as_echo='printf %s
\n'
7054 as_echo_n='printf %s
'
7056 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7057 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7058 as_echo_n='/usr
/ucb
/echo -n'
7060 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7061 as_echo_n_body='eval
7065 expr "X$arg" : "X\\(.*\\)$as_nl";
7066 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7068 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7070 export as_echo_n_body
7071 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7074 as_echo='sh
-c $as_echo_body as_echo
'
7077 # The user is always right.
7078 if test "${PATH_SEPARATOR+set}" != set; then
7080 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7081 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7088 # We need space, tab and new line, in precisely that order. Quoting is
7089 # there to prevent editors from complaining about space-tab.
7090 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7091 # splitting by setting IFS to empty value.)
7094 # Find who we are. Look in the path if we contain no directory separator.
7097 *[\\/]* ) as_myself=$0 ;;
7098 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 test -z "$as_dir" && as_dir=.
7103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7109 # We did not find ourselves, most probably we were run as `sh COMMAND'
7110 # in which case we are not to be found in the path.
7111 if test "x$as_myself" = x
; then
7114 if test ! -f "$as_myself"; then
7115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7119 # Unset variables that we do not need and which cause bugs (e.g. in
7120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7121 # suppresses any "Segmentation fault" message there. '((' could
7122 # trigger a bug in pdksh 5.2.14.
7123 for as_var
in BASH_ENV ENV MAIL MAILPATH
7124 do eval test x\
${$as_var+set} = xset \
7125 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7138 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7141 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7142 # ----------------------------------------
7143 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7144 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7145 # script with STATUS, using 1 if that was 0.
7148 as_status
=$1; test $as_status -eq 0 && as_status
=1
7150 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7151 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7153 $as_echo "$as_me: error: $2" >&2
7154 as_fn_exit
$as_status
7158 # as_fn_set_status STATUS
7159 # -----------------------
7160 # Set $? to STATUS, without forking.
7164 } # as_fn_set_status
7168 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7178 # Portably unset VAR.
7181 { eval $1=; unset $1;}
7183 as_unset
=as_fn_unset
7184 # as_fn_append VAR VALUE
7185 # ----------------------
7186 # Append the text in VALUE to the end of the definition contained in VAR. Take
7187 # advantage of any shell optimizations that allow amortized linear growth over
7188 # repeated appends, instead of the typical quadratic growth present in naive
7190 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7191 eval 'as_fn_append ()
7202 # as_fn_arith ARG...
7203 # ------------------
7204 # Perform arithmetic evaluation on the ARGs, and store the result in the
7205 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7206 # must be portable across $(()) and expr.
7207 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7208 eval 'as_fn_arith ()
7215 as_val
=`expr "$@" || test $? -eq 1`
7220 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7221 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7227 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7228 as_basename
=basename
7233 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7239 as_me
=`$as_basename -- "$0" ||
7240 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7241 X"$0" : 'X\(//\)$' \| \
7242 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7244 sed '/^.*\/\([^/][^/]*\)\/*$/{
7258 # Avoid depending upon Character Ranges.
7259 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7260 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7261 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7262 as_cr_digits
='0123456789'
7263 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7265 ECHO_C
= ECHO_N
= ECHO_T
=
7266 case `echo -n x` in #(((((
7268 case `echo 'xy\c'` in
7269 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7271 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7278 rm -f conf$$ conf$$.exe conf$$.
file
7279 if test -d conf$$.dir
; then
7280 rm -f conf$$.dir
/conf$$.
file
7283 mkdir conf$$.dir
2>/dev
/null
7285 if (echo >conf$$.
file) 2>/dev
/null
; then
7286 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7288 # ... but there are two gotchas:
7289 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7290 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7291 # In both cases, we have to default to `cp -pR'.
7292 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7294 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7302 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7303 rmdir conf$$.dir
2>/dev
/null
7308 # Create "$as_dir" as a directory, including parents if necessary.
7313 -*) as_dir
=.
/$as_dir;;
7315 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7319 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7320 *) as_qdir
=$as_dir;;
7322 as_dirs
="'$as_qdir' $as_dirs"
7323 as_dir
=`$as_dirname -- "$as_dir" ||
7324 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7325 X"$as_dir" : 'X\(//\)[^/]' \| \
7326 X"$as_dir" : 'X\(//\)$' \| \
7327 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7328 $as_echo X"$as_dir" |
7329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7346 test -d "$as_dir" && break
7348 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7349 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
7353 if mkdir
-p .
2>/dev
/null
; then
7354 as_mkdir_p
='mkdir -p "$as_dir"'
7356 test -d .
/-p && rmdir .
/-p
7361 # as_fn_executable_p FILE
7362 # -----------------------
7363 # Test if FILE is an executable regular file.
7364 as_fn_executable_p
()
7366 test -f "$1" && test -x "$1"
7367 } # as_fn_executable_p
7369 as_executable_p
=as_fn_executable_p
7371 # Sed expression to map a string onto a valid CPP name.
7372 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7374 # Sed expression to map a string onto a valid variable name.
7375 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7379 ## ----------------------------------- ##
7380 ## Main body of $CONFIG_STATUS script. ##
7381 ## ----------------------------------- ##
7383 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7386 # Save the log message, to keep $0 and so on meaningful, and to
7387 # report actual input values of CONFIG_FILES etc. instead of their
7388 # values after options handling.
7390 This file was extended by $as_me, which was
7391 generated by GNU Autoconf 2.69. Invocation command line was
7393 CONFIG_FILES = $CONFIG_FILES
7394 CONFIG_HEADERS = $CONFIG_HEADERS
7395 CONFIG_LINKS = $CONFIG_LINKS
7396 CONFIG_COMMANDS = $CONFIG_COMMANDS
7399 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7404 case $ac_config_files in *"
7405 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7408 case $ac_config_headers in *"
7409 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7414 # Files that config.status was made for.
7415 config_files="$ac_config_files"
7416 config_headers="$ac_config_headers"
7420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7422 \`$as_me' instantiates files and other configuration actions
7423 from templates according to the current configuration. Unless the files
7424 and actions are specified as TAGs, all are instantiated by default.
7426 Usage: $0 [OPTION]... [TAG]...
7428 -h, --help print this help, then exit
7429 -V, --version print version number and configuration settings, then exit
7430 --config print configuration, then exit
7431 -q, --quiet, --silent
7432 do not print progress messages
7433 -d, --debug don't remove temporary files
7434 --recheck update $as_me by reconfiguring in the same conditions
7435 --file=FILE[:TEMPLATE]
7436 instantiate the configuration file FILE
7437 --header=FILE[:TEMPLATE]
7438 instantiate the configuration header FILE
7440 Configuration files:
7443 Configuration headers:
7446 Report bugs to the package provider."
7449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7450 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7453 configured by $0, generated by GNU Autoconf 2.69,
7454 with options \\"\$ac_cs_config\\"
7456 Copyright (C) 2012 Free Software Foundation, Inc.
7457 This config.status script is free software; the Free Software Foundation
7458 gives unlimited permission to copy, distribute and modify it."
7462 test -n "\$AWK" || AWK=awk
7465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7466 # The default lists apply if the user does not specify any file.
7472 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7473 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7477 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7489 # Handling of the options.
7490 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7492 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
7493 $as_echo "$ac_cs_version"; exit ;;
7494 --config |
--confi |
--conf |
--con |
--co |
--c )
7495 $as_echo "$ac_cs_config"; exit ;;
7496 --debug |
--debu |
--deb |
--de |
--d |
-d )
7498 --file |
--fil |
--fi |
--f )
7501 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7502 '') as_fn_error $?
"missing file argument" ;;
7504 as_fn_append CONFIG_FILES
" '$ac_optarg'"
7505 ac_need_defaults
=false
;;
7506 --header |
--heade |
--head |
--hea )
7509 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7511 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
7512 ac_need_defaults
=false
;;
7514 # Conflict between --help and --header
7515 as_fn_error $?
"ambiguous option: \`$1'
7516 Try \`$0 --help' for more information.";;
7517 --help |
--hel |
-h )
7518 $as_echo "$ac_cs_usage"; exit ;;
7519 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7520 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7524 -*) as_fn_error $?
"unrecognized option: \`$1'
7525 Try \`$0 --help' for more information." ;;
7527 *) as_fn_append ac_config_targets
" $1"
7528 ac_need_defaults
=false
;;
7534 ac_configure_extra_args
=
7536 if $ac_cs_silent; then
7538 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7543 if \$ac_cs_recheck; then
7544 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7546 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7547 CONFIG_SHELL='$SHELL'
7553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7557 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7558 ## Running $as_me. ##
7564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7569 # Handling of arguments.
7570 for ac_config_target
in $ac_config_targets
7572 case $ac_config_target in
7573 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
7574 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7575 "$LIBTOM_FILES") CONFIG_FILES
="$CONFIG_FILES $LIBTOM_FILES" ;;
7577 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7582 # If the user did not use the arguments to specify the items to instantiate,
7583 # then the envvar interface is used. Set only those that are not.
7584 # We use the long form for the default assignment because of an extremely
7585 # bizarre bug on SunOS 4.1.3.
7586 if $ac_need_defaults; then
7587 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7588 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7591 # Have a temporary directory for convenience. Make it in the build tree
7592 # simply because there is no reason against having it here, and in addition,
7593 # creating and moving files from /tmp can sometimes cause problems.
7594 # Hook for its removal unless debugging.
7595 # Note that there is a small window in which the directory will not be cleaned:
7596 # after its creation but before its name has been assigned to `$tmp'.
7600 trap 'exit_status=$?
7602 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7604 trap 'as_fn_exit 1' 1 2 13 15
7606 # Create a (secure) tmp directory for tmp files.
7609 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7613 tmp
=.
/conf$$
-$RANDOM
7614 (umask 077 && mkdir
"$tmp")
7615 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
7618 # Set up the scripts for CONFIG_FILES section.
7619 # No need to generate them if there are no CONFIG_FILES.
7620 # This happens for instance with `./config.status config.h'.
7621 if test -n "$CONFIG_FILES"; then
7624 ac_cr
=`echo X | tr X '\015'`
7625 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7626 # But we know of no other shell where ac_cr would be empty at this
7627 # point, so we can use a bashism as a fallback.
7628 if test "x$ac_cr" = x
; then
7629 eval ac_cr
=\$
\'\\r
\'
7631 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7632 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7638 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7643 echo "cat >conf$$subs.awk <<_ACEOF" &&
7644 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7647 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7648 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7650 for ac_last_try in false false false false false :; do
7651 . ./conf$$subs.sh ||
7652 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7654 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
7655 if test $ac_delim_n = $ac_delim_num; then
7657 elif $ac_last_try; then
7658 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7660 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7666 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
7670 s/^/S["/; s
/!.
*/"]=/
7680 s/\(.\{148\}\)..*/\1/
7682 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
7687 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7694 s/\(.\{148\}\)..*/\1/
7696 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
7700 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7705 ' <conf$$subs.awk | sed '
7710 ' >>$CONFIG_STATUS || ac_write_fail=1
7711 rm -f conf$$subs.awk
7712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7714 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
7715 for (key in S) S_is_set[key] = 1
7721 nfields = split(line, field, "@
")
7723 len = length(field[1])
7724 for (i = 2; i < nfields; i++) {
7726 keylen = length(key)
7727 if (S_is_set[key]) {
7729 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7730 len += length(value) + length(field[++i])
7741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7742 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7743 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
7746 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
7747 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
7750 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7751 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
7752 # trailing colons and then remove the whole line if VPATH becomes empty
7753 # (actually we leave an empty line to preserve line numbers).
7754 if test "x
$srcdir" = x.; then
7755 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7774 fi # test -n "$CONFIG_FILES"
7776 # Set up the scripts for CONFIG_HEADERS section.
7777 # No need to generate them if there are no CONFIG_HEADERS.
7778 # This happens for instance with `./config.status Makefile'.
7779 if test -n "$CONFIG_HEADERS"; then
7780 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
7784 # Transform confdefs.h into an awk script `defines.awk', embedded as
7785 # here-document in config.status, that substitutes the proper values into
7786 # config.h.in to produce config.h.
7788 # Create a delimiter string that does not exist in confdefs.h, to ease
7789 # handling of long lines.
7791 for ac_last_try in false false :; do
7792 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
7793 if test -z "$ac_tt"; then
7795 elif $ac_last_try; then
7796 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
7798 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7802 # For the awk script, D is an array of macro values keyed by name,
7803 # likewise P contains macro parameters if any. Preserve backslash
7804 # newline sequences.
7806 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7808 s/.\{148\}/&'"$ac_delim"'/g
7811 s/^[ ]*#[ ]*define[ ][ ]*/ /
7818 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
7820 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
7824 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
7825 D["\
1"]=" \
3\\\\\\n
"\\/p
7827 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
7832 s/.\{148\}/&'"$ac_delim"'/g
7837 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
7840 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
7842 ' <confdefs.h | sed '
7843 s/'"$ac_delim"'/"\\\
7844 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7847 for (key in D) D_is_set[key] = 1
7850 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7852 split(line, arg, " ")
7853 if (arg[1] == "#") {
7857 defundef
= substr
(arg
[1], 2)
7860 split(mac1
, mac2
, "(") #)
7862 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
7863 if (D_is_set
[macro
]) {
7864 # Preserve the white space surrounding the "#".
7865 print prefix
"define", macro P
[macro
] D
[macro
]
7868 # Replace #undef with comments. This is necessary, for example,
7869 # in the case of _POSIX_SOURCE, which is predefined and required
7870 # on some systems where configure will not decide to define it.
7871 if (defundef
== "undef") {
7872 print
"/*", prefix defundef
, macro
, "*/"
7880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7881 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
7882 fi # test -n "$CONFIG_HEADERS"
7885 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
7890 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7892 case $ac_mode$ac_tag in
7894 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
7895 :[FH
]-) ac_tag
=-:-;;
7896 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7913 -) ac_f
="$ac_tmp/stdin";;
7914 *) # Look for the file first in the build tree, then in the source tree
7915 # (if the path is not absolute). The absolute path cannot be DOS-style,
7916 # because $ac_f cannot contain `:'.
7920 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7922 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7924 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7925 as_fn_append ac_file_inputs
" '$ac_f'"
7928 # Let's still pretend it is `configure' which instantiates (i.e., don't
7929 # use $as_me), people would be surprised to read:
7930 # /* config.h. Generated by config.status. */
7931 configure_input
='Generated from '`
7932 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7934 if test x
"$ac_file" != x-
; then
7935 configure_input
="$ac_file. $configure_input"
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7937 $as_echo "$as_me: creating $ac_file" >&6;}
7939 # Neutralize special characters interpreted by sed in replacement strings.
7940 case $configure_input in #(
7941 *\
&* |
*\|
* |
*\\* )
7942 ac_sed_conf_input
=`$as_echo "$configure_input" |
7943 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7944 *) ac_sed_conf_input
=$configure_input;;
7948 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
7949 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
7954 ac_dir
=`$as_dirname -- "$ac_file" ||
7955 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7956 X"$ac_file" : 'X\(//\)[^/]' \| \
7957 X"$ac_file" : 'X\(//\)$' \| \
7958 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7959 $as_echo X"$ac_file" |
7960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7977 as_dir
="$ac_dir"; as_fn_mkdir_p
7981 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7983 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7984 # A ".." for each directory in $ac_dir_suffix.
7985 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7986 case $ac_top_builddir_sub in
7987 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7988 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
7991 ac_abs_top_builddir
=$ac_pwd
7992 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
7993 # for backward compatibility:
7994 ac_top_builddir
=$ac_top_build_prefix
7997 .
) # We are building in place.
7999 ac_top_srcdir
=$ac_top_builddir_sub
8000 ac_abs_top_srcdir
=$ac_pwd ;;
8001 [\\/]* | ?
:[\\/]* ) # Absolute name.
8002 ac_srcdir
=$srcdir$ac_dir_suffix;
8003 ac_top_srcdir
=$srcdir
8004 ac_abs_top_srcdir
=$srcdir ;;
8006 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8007 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8008 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8010 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8022 # If the template does not know about datarootdir, expand it.
8023 # FIXME: This hack should be removed a few years after 2.60.
8024 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8035 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8036 *datarootdir
*) ac_datarootdir_seen
=yes;;
8037 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8039 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8042 ac_datarootdir_hack='
8043 s&@datadir@&$datadir&g
8044 s&@docdir@&$docdir&g
8045 s&@infodir@&$infodir&g
8046 s&@localedir@&$localedir&g
8047 s&@mandir@&$mandir&g
8048 s&\\\${datarootdir}&$datarootdir&g' ;;
8052 # Neutralize VPATH when `$srcdir' = `.'.
8053 # Shell code in configure.ac might set extrasub.
8054 # FIXME: do we really want to maintain this feature?
8055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8056 ac_sed_extra="$ac_vpsub
8059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8061 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8062 s|@configure_input@|
$ac_sed_conf_input|
;t t
8063 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8064 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8065 s
&@srcdir@
&$ac_srcdir&;t t
8066 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8067 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8068 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8069 s
&@builddir@
&$ac_builddir&;t t
8070 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8071 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8072 $ac_datarootdir_hack
8074 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8075 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8077 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8078 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
8079 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8080 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8082 which seems to be undefined. Please make sure it is defined" >&5
8083 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8084 which seems to be undefined. Please make sure it is defined" >&2;}
8086 rm -f "$ac_tmp/stdin"
8088 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8089 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8091 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8097 if test x"$ac_file" != x-; then
8099 $as_echo "/* $configure_input */" \
8100 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8101 } >"$ac_tmp/config.h" \
8102 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8103 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8105 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8108 mv "$ac_tmp/config.h" "$ac_file" \
8109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8112 $as_echo "/* $configure_input */" \
8113 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8114 || as_fn_error $? "could not create -" "$LINENO" 5
8126 ac_clean_files=$ac_clean_files_save
8128 test $ac_write_fail = 0 ||
8129 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8132 # configure is writing to config.log, and then calls config.status.
8133 # config.status does its own redirection, appending to config.log.
8134 # Unfortunately, on DOS this fails, as config.log is still kept open
8135 # by configure, so config.status won't be able to
write to it
; its
8136 # output is simply discarded. So we exec the FD to /dev/null,
8137 # effectively closing config.log, so it can be properly (re)opened and
8138 # appended to by config.status. When coming back to configure, we
8139 # need to make the FD available again.
8140 if test "$no_create" != yes; then
8142 ac_config_status_args
=
8143 test "$silent" = yes &&
8144 ac_config_status_args
="$ac_config_status_args --quiet"
8146 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8148 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8149 # would make configure fail if this is the last instruction.
8150 $ac_cs_success || as_fn_exit
1
8152 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8154 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
8159 $as_echo "$as_me: " >&6;}
8160 if test $BUNDLED_LIBTOM = 1 ; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: Using bundled libtomcrypt and libtommath" >&5
8162 $as_echo "$as_me: Using bundled libtomcrypt and libtommath" >&6;}
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: Using system libtomcrypt and libtommath" >&5
8165 $as_echo "$as_me: Using system libtomcrypt and libtommath" >&6;}
8169 if test "x$ac_cv_func_getpass" != xyes
; then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
8171 $as_echo "$as_me: " >&6;}
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: getpass() not available, dbclient will only have public-key authentication" >&5
8173 $as_echo "$as_me: getpass() not available, dbclient will only have public-key authentication" >&6;}
8176 if test "t$found_crypt_func" != there
; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
8178 $as_echo "$as_me: " >&6;}
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: crypt() not available, dropbear server will not have password authentication" >&5
8180 $as_echo "$as_me: crypt() not available, dropbear server will not have password authentication" >&6;}
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
8184 $as_echo "$as_me: " >&6;}
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: Now edit options.h to choose features." >&5
8186 $as_echo "$as_me: Now edit options.h to choose features." >&6;}