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
677 program_transform_name
690 enable_option_checking
699 enable_bundled_libtom
710 ac_precious_vars
='build_alias
721 # Initialize some variables set by options.
723 ac_init_version
=false
724 ac_unrecognized_opts
=
726 # The variables have the same names as the options, with
727 # dashes changed to underlines.
735 program_transform_name
=s
,x
,x
,
743 # Installation directory options.
744 # These are left unexpanded so users can "make install exec_prefix=/foo"
745 # and all the variables that are supposed to be based on exec_prefix
746 # by default will actually change.
747 # Use braces instead of parens because sh, perl, etc. also accept them.
748 # (The list follows the same order as the GNU Coding Standards.)
749 bindir
='${exec_prefix}/bin'
750 sbindir
='${exec_prefix}/sbin'
751 libexecdir
='${exec_prefix}/libexec'
752 datarootdir
='${prefix}/share'
753 datadir
='${datarootdir}'
754 sysconfdir
='${prefix}/etc'
755 sharedstatedir
='${prefix}/com'
756 localstatedir
='${prefix}/var'
757 includedir
='${prefix}/include'
758 oldincludedir
='/usr/include'
759 docdir
='${datarootdir}/doc/${PACKAGE}'
760 infodir
='${datarootdir}/info'
765 libdir
='${exec_prefix}/lib'
766 localedir
='${datarootdir}/locale'
767 mandir
='${datarootdir}/man'
773 # If the previous option needs an argument, assign it.
774 if test -n "$ac_prev"; then
775 eval $ac_prev=\
$ac_option
781 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
786 # Accept the important Cygnus configure options, so we can diagnose typos.
788 case $ac_dashdash$ac_option in
792 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
794 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
797 -build |
--build |
--buil |
--bui |
--bu)
798 ac_prev
=build_alias
;;
799 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
800 build_alias
=$ac_optarg ;;
802 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
803 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
804 ac_prev
=cache_file
;;
805 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
806 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
807 cache_file
=$ac_optarg ;;
810 cache_file
=config.cache
;;
812 -datadir |
--datadir |
--datadi |
--datad)
814 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
815 datadir
=$ac_optarg ;;
817 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
818 |
--dataroo |
--dataro |
--datar)
819 ac_prev
=datarootdir
;;
820 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
821 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
822 datarootdir
=$ac_optarg ;;
824 -disable-* |
--disable-*)
825 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
826 # Reject names that are not valid shell variable names.
827 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
828 as_fn_error $?
"invalid feature name: $ac_useropt"
829 ac_useropt_orig
=$ac_useropt
830 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
831 case $ac_user_opts in
835 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
836 ac_unrecognized_sep
=', ';;
838 eval enable_
$ac_useropt=no
;;
840 -docdir |
--docdir |
--docdi |
--doc |
--do)
842 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
845 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
847 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
850 -enable-* |
--enable-*)
851 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
852 # Reject names that are not valid shell variable names.
853 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
854 as_fn_error $?
"invalid feature name: $ac_useropt"
855 ac_useropt_orig
=$ac_useropt
856 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
857 case $ac_user_opts in
861 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
862 ac_unrecognized_sep
=', ';;
864 eval enable_
$ac_useropt=\
$ac_optarg ;;
866 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
867 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
868 |
--exec |
--exe |
--ex)
869 ac_prev
=exec_prefix
;;
870 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
871 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
872 |
--exec=* |
--exe=* |
--ex=*)
873 exec_prefix
=$ac_optarg ;;
875 -gas |
--gas |
--ga |
--g)
876 # Obsolete; use --with-gas.
879 -help |
--help |
--hel |
--he |
-h)
881 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
882 ac_init_help
=recursive
;;
883 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
884 ac_init_help
=short
;;
886 -host |
--host |
--hos |
--ho)
887 ac_prev
=host_alias
;;
888 -host=* |
--host=* |
--hos=* |
--ho=*)
889 host_alias
=$ac_optarg ;;
891 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
893 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
895 htmldir
=$ac_optarg ;;
897 -includedir |
--includedir |
--includedi |
--included |
--include \
898 |
--includ |
--inclu |
--incl |
--inc)
899 ac_prev
=includedir
;;
900 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
901 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
902 includedir
=$ac_optarg ;;
904 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
906 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
907 infodir
=$ac_optarg ;;
909 -libdir |
--libdir |
--libdi |
--libd)
911 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
914 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
915 |
--libexe |
--libex |
--libe)
916 ac_prev
=libexecdir
;;
917 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
918 |
--libexe=* |
--libex=* |
--libe=*)
919 libexecdir
=$ac_optarg ;;
921 -localedir |
--localedir |
--localedi |
--localed |
--locale)
923 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
924 localedir
=$ac_optarg ;;
926 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
927 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
928 ac_prev
=localstatedir
;;
929 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
930 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
931 localstatedir
=$ac_optarg ;;
933 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
935 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
939 # Obsolete; use --without-fp.
942 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
943 |
--no-cr |
--no-c |
-n)
946 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
947 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
950 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
951 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
952 |
--oldin |
--oldi |
--old |
--ol |
--o)
953 ac_prev
=oldincludedir
;;
954 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
955 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
956 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
957 oldincludedir
=$ac_optarg ;;
959 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
961 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
964 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
965 |
--program-pre |
--program-pr |
--program-p)
966 ac_prev
=program_prefix
;;
967 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
968 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
969 program_prefix
=$ac_optarg ;;
971 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
972 |
--program-suf |
--program-su |
--program-s)
973 ac_prev
=program_suffix
;;
974 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
975 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
976 program_suffix
=$ac_optarg ;;
978 -program-transform-name |
--program-transform-name \
979 |
--program-transform-nam |
--program-transform-na \
980 |
--program-transform-n |
--program-transform- \
981 |
--program-transform |
--program-transfor \
982 |
--program-transfo |
--program-transf \
983 |
--program-trans |
--program-tran \
984 |
--progr-tra |
--program-tr |
--program-t)
985 ac_prev
=program_transform_name
;;
986 -program-transform-name=* |
--program-transform-name=* \
987 |
--program-transform-nam=* |
--program-transform-na=* \
988 |
--program-transform-n=* |
--program-transform-=* \
989 |
--program-transform=* |
--program-transfor=* \
990 |
--program-transfo=* |
--program-transf=* \
991 |
--program-trans=* |
--program-tran=* \
992 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
993 program_transform_name
=$ac_optarg ;;
995 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
997 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1000 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1002 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1005 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1006 |
-silent |
--silent |
--silen |
--sile |
--sil)
1009 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1011 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1013 sbindir
=$ac_optarg ;;
1015 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1016 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1017 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1019 ac_prev
=sharedstatedir
;;
1020 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1021 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1022 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1024 sharedstatedir
=$ac_optarg ;;
1026 -site |
--site |
--sit)
1028 -site=* |
--site=* |
--sit=*)
1031 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1033 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1034 srcdir
=$ac_optarg ;;
1036 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1037 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1038 ac_prev
=sysconfdir
;;
1039 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1040 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1041 sysconfdir
=$ac_optarg ;;
1043 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1044 ac_prev
=target_alias
;;
1045 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1046 target_alias
=$ac_optarg ;;
1048 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1051 -version |
--version |
--versio |
--versi |
--vers |
-V)
1052 ac_init_version
=: ;;
1055 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1058 as_fn_error $?
"invalid package name: $ac_useropt"
1059 ac_useropt_orig
=$ac_useropt
1060 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1065 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1066 ac_unrecognized_sep
=', ';;
1068 eval with_
$ac_useropt=\
$ac_optarg ;;
1070 -without-* |
--without-*)
1071 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1074 as_fn_error $?
"invalid package name: $ac_useropt"
1075 ac_useropt_orig
=$ac_useropt
1076 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1081 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1082 ac_unrecognized_sep
=', ';;
1084 eval with_
$ac_useropt=no
;;
1087 # Obsolete; use --with-x.
1090 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1091 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1092 ac_prev
=x_includes
;;
1093 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1094 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1095 x_includes
=$ac_optarg ;;
1097 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1098 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1099 ac_prev
=x_libraries
;;
1100 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1101 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1102 x_libraries
=$ac_optarg ;;
1104 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1105 Try \`$0 --help' for more information"
1109 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 case $ac_envvar in #(
1112 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1113 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1115 eval $ac_envvar=\
$ac_optarg
1116 export $ac_envvar ;;
1119 # FIXME: should be removed in autoconf 3.0.
1120 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1121 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1122 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1123 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1129 if test -n "$ac_prev"; then
1130 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1131 as_fn_error $?
"missing argument to $ac_option"
1134 if test -n "$ac_unrecognized_opts"; then
1135 case $enable_option_checking in
1137 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1138 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1142 # Check all directory arguments for consistency.
1143 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1144 datadir sysconfdir sharedstatedir localstatedir includedir \
1145 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1146 libdir localedir mandir
1148 eval ac_val
=\$
$ac_var
1149 # Remove trailing slashes.
1152 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1153 eval $ac_var=\
$ac_val;;
1155 # Be sure to have absolute directory names.
1157 [\\/$
]* | ?
:[\\/]* ) continue;;
1158 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1160 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1163 # There might be people who depend on the old broken behavior: `$host'
1164 # used to hold the argument of --host etc.
1165 # FIXME: To remove some day.
1168 target
=$target_alias
1170 # FIXME: To remove some day.
1171 if test "x$host_alias" != x
; then
1172 if test "x$build_alias" = x
; then
1173 cross_compiling
=maybe
1174 elif test "x$build_alias" != "x$host_alias"; then
1180 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1182 test "$silent" = yes && exec 6>/dev
/null
1185 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1186 ac_ls_di
=`ls -di .` &&
1187 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1188 as_fn_error $?
"working directory cannot be determined"
1189 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1190 as_fn_error $?
"pwd does not report name of working directory"
1193 # Find the source files, if location was not specified.
1194 if test -z "$srcdir"; then
1195 ac_srcdir_defaulted
=yes
1196 # Try the directory containing this script, then the parent directory.
1197 ac_confdir
=`$as_dirname -- "$as_myself" ||
1198 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1199 X"$as_myself" : 'X\(//\)[^/]' \| \
1200 X"$as_myself" : 'X\(//\)$' \| \
1201 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1202 $as_echo X"$as_myself" |
1203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1221 if test ! -r "$srcdir/$ac_unique_file"; then
1225 ac_srcdir_defaulted
=no
1227 if test ! -r "$srcdir/$ac_unique_file"; then
1228 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1229 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1231 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1233 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1235 # When building in place, set srcdir=.
1236 if test "$ac_abs_confdir" = "$ac_pwd"; then
1239 # Remove unnecessary trailing slashes from srcdir.
1240 # Double slashes in file names in object file debugging info
1241 # mess up M-x gdb in Emacs.
1243 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1245 for ac_var
in $ac_precious_vars; do
1246 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1247 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1248 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1249 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1253 # Report the --help message.
1255 if test "$ac_init_help" = "long"; then
1256 # Omit some internal or obsolete options to make the list less imposing.
1257 # This message is too long to be a string in the A/UX 3.1 sh.
1259 \`configure' configures this package to adapt to many kinds of systems.
1261 Usage: $0 [OPTION]... [VAR=VALUE]...
1263 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1264 VAR=VALUE. See below for descriptions of some of the useful variables.
1266 Defaults for the options are specified in brackets.
1269 -h, --help display this help and exit
1270 --help=short display options specific to this package
1271 --help=recursive display the short help of all the included packages
1272 -V, --version display version information and exit
1273 -q, --quiet, --silent do not print \`checking ...' messages
1274 --cache-file=FILE cache test results in FILE [disabled]
1275 -C, --config-cache alias for \`--cache-file=config.cache'
1276 -n, --no-create do not create output files
1277 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1279 Installation directories:
1280 --prefix=PREFIX install architecture-independent files in PREFIX
1281 [$ac_default_prefix]
1282 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1285 By default, \`make install' will install all the files in
1286 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1287 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1288 for instance \`--prefix=\$HOME'.
1290 For better control, use the options below.
1292 Fine tuning of the installation directories:
1293 --bindir=DIR user executables [EPREFIX/bin]
1294 --sbindir=DIR system admin executables [EPREFIX/sbin]
1295 --libexecdir=DIR program executables [EPREFIX/libexec]
1296 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1297 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1298 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1299 --libdir=DIR object code libraries [EPREFIX/lib]
1300 --includedir=DIR C header files [PREFIX/include]
1301 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1302 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1303 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1304 --infodir=DIR info documentation [DATAROOTDIR/info]
1305 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1306 --mandir=DIR man documentation [DATAROOTDIR/man]
1307 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1308 --htmldir=DIR html documentation [DOCDIR]
1309 --dvidir=DIR dvi documentation [DOCDIR]
1310 --pdfdir=DIR pdf documentation [DOCDIR]
1311 --psdir=DIR ps documentation [DOCDIR]
1317 --build=BUILD configure
for building on BUILD
[guessed
]
1318 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1322 if test -n "$ac_init_help"; then
1327 --disable-option-checking ignore unrecognized
--enable/--with options
1328 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1329 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1330 --disable-largefile omit support
for large files
1331 --disable-zlib Don
't include zlib support
1332 --enable-pam Try to include PAM support
1333 --disable-openpty Don't use openpty
, use alternative method
1334 --disable-syslog Don
't include syslog support
1335 --disable-shadow Don't use shadow passwords
(if available
)
1336 --enable-bundled-libtom Force using bundled libtomcrypt
/libtommath even
if a system version exists.
1337 --disable-bundled-libtom Force using system libtomcrypt
/libtommath
, fail
if it does not exist.
1338 Default is to use system
if available
, otherwise bundled.
1339 --disable-lastlog Disable use of lastlog even
if detected no
1340 --disable-utmp Disable use of utmp even
if detected no
1341 --disable-utmpx Disable use of utmpx even
if detected no
1342 --disable-wtmp Disable use of wtmp even
if detected no
1343 --disable-wtmpx Disable use of wtmpx even
if detected no
1344 --disable-loginfunc Disable use of login
() etc. no
1345 --disable-pututline Disable use of pututline
() etc.
(uwtmp
) no
1346 --disable-pututxline Disable use of pututxline
() etc.
(uwtmpx
) no
1349 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1350 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1351 --with-zlib=PATH Use zlib
in PATH
1352 --with-pam=PATH Use pam
in PATH
1353 --with-lastlog=FILE|DIR specify lastlog location common locations
1355 Some influential environment variables
:
1356 CC C compiler
command
1357 CFLAGS C compiler flags
1358 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1359 nonstandard directory
<lib dir
>
1360 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1361 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1362 you have headers
in a nonstandard directory
<include dir
>
1365 Use these variables to override the choices made by
`configure' or to help
1366 it to find libraries and programs with nonstandard names/locations.
1368 Report bugs to the package provider.
1373 if test "$ac_init_help" = "recursive"; then
1374 # If there are subdirs, report their specific --help.
1375 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1376 test -d "$ac_dir" ||
1377 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1382 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1385 # A ".." for each directory in $ac_dir_suffix.
1386 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1387 case $ac_top_builddir_sub in
1388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1392 ac_abs_top_builddir=$ac_pwd
1393 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1394 # for backward compatibility:
1395 ac_top_builddir=$ac_top_build_prefix
1398 .) # We are building in place.
1400 ac_top_srcdir=$ac_top_builddir_sub
1401 ac_abs_top_srcdir=$ac_pwd ;;
1402 [\\/]* | ?:[\\/]* ) # Absolute name.
1403 ac_srcdir=$srcdir$ac_dir_suffix;
1404 ac_top_srcdir=$srcdir
1405 ac_abs_top_srcdir=$srcdir ;;
1407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1408 ac_top_srcdir=$ac_top_build_prefix$srcdir
1409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1411 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1413 cd "$ac_dir" || { ac_status=$?; continue; }
1414 # Check for guested configure.
1415 if test -f "$ac_srcdir/configure.gnu"; then
1417 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1418 elif test -f "$ac_srcdir/configure"; then
1420 $SHELL "$ac_srcdir/configure" --help=recursive
1422 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1424 cd "$ac_pwd" || { ac_status=$?; break; }
1428 test -n "$ac_init_help" && exit $ac_status
1429 if $ac_init_version; then
1432 generated by GNU Autoconf 2.69
1434 Copyright (C) 2012 Free Software Foundation, Inc.
1435 This configure script is free software; the Free Software Foundation
1436 gives unlimited permission to copy, distribute and modify it.
1441 ## ------------------------ ##
1442 ## Autoconf initialization. ##
1443 ## ------------------------ ##
1445 # ac_fn_c_try_compile LINENO
1446 # --------------------------
1447 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1448 ac_fn_c_try_compile ()
1450 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1451 rm -f conftest.$ac_objext
1452 if { { ac_try="$ac_compile"
1454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1455 *) ac_try_echo
=$ac_try;;
1457 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1458 $as_echo "$ac_try_echo"; } >&5
1459 (eval "$ac_compile") 2>conftest.err
1461 if test -s conftest.err
; then
1462 grep -v '^ *+' conftest.err
>conftest.er1
1463 cat conftest.er1
>&5
1464 mv -f conftest.er1 conftest.err
1466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1467 test $ac_status = 0; } && {
1468 test -z "$ac_c_werror_flag" ||
1469 test ! -s conftest.err
1470 } && test -s conftest.
$ac_objext; then :
1473 $as_echo "$as_me: failed program was:" >&5
1474 sed 's/^/| /' conftest.
$ac_ext >&5
1478 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1479 as_fn_set_status
$ac_retval
1481 } # ac_fn_c_try_compile
1483 # ac_fn_c_try_link LINENO
1484 # -----------------------
1485 # Try to link conftest.$ac_ext, and return whether this succeeded.
1488 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1489 rm -f conftest.
$ac_objext conftest
$ac_exeext
1490 if { { ac_try
="$ac_link"
1492 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1493 *) ac_try_echo=$ac_try;;
1495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1496 $as_echo "$ac_try_echo"; } >&5
1497 (eval "$ac_link") 2>conftest.err
1499 if test -s conftest.err; then
1500 grep -v '^ *+' conftest.err >conftest.er1
1501 cat conftest.er1 >&5
1502 mv -f conftest.er1 conftest.err
1504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1505 test $ac_status = 0; } && {
1506 test -z "$ac_c_werror_flag" ||
1507 test ! -s conftest.err
1508 } && test -s conftest$ac_exeext && {
1509 test "$cross_compiling" = yes ||
1510 test -x conftest$ac_exeext
1514 $as_echo "$as_me: failed program was:" >&5
1515 sed 's/^/| /' conftest.$ac_ext >&5
1519 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1520 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1521 # interfere with the next link command; also delete a directory that is
1522 # left behind by Apple's compiler. We do this before executing the actions.
1523 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1524 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1525 as_fn_set_status $ac_retval
1527 } # ac_fn_c_try_link
1529 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1530 # ---------------------------------------------
1531 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1533 ac_fn_c_check_decl ()
1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1537 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1539 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1540 if eval \${$3+:} false; then :
1541 $as_echo_n "(cached) " >&6
1543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1544 /* end confdefs.h. */
1549 #ifndef $as_decl_name
1551 (void) $as_decl_use;
1553 (void) $as_decl_name;
1561 if ac_fn_c_try_compile "$LINENO"; then :
1566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1570 $as_echo "$ac_res" >&6; }
1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573 } # ac_fn_c_check_decl
1575 # ac_fn_c_try_cpp LINENO
1576 # ----------------------
1577 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 if { { ac_try="$ac_cpp conftest.$ac_ext"
1583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1584 *) ac_try_echo
=$ac_try;;
1586 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1590 if test -s conftest.err
; then
1591 grep -v '^ *+' conftest.err
>conftest.er1
1592 cat conftest.er1
>&5
1593 mv -f conftest.er1 conftest.err
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } > conftest.i
&& {
1597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.
$ac_ext >&5
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 as_fn_set_status
$ac_retval
1612 # ac_fn_c_try_run LINENO
1613 # ----------------------
1614 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1615 # that executables *can* be run.
1618 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1619 if { { ac_try
="$ac_link"
1621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_link") 2>&5
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1630 { { case "(($ac_try" in
1631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1632 *) ac_try_echo
=$ac_try;;
1634 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_try") 2>&5
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; }; }; then :
1642 $as_echo "$as_me: program exited with status $ac_status" >&5
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.
$ac_ext >&5
1646 ac_retval
=$ac_status
1648 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status
$ac_retval
1654 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1655 # -------------------------------------------------------
1656 # Tests whether HEADER exists and can be compiled using the include files in
1657 # INCLUDES, setting the cache variable VAR accordingly.
1658 ac_fn_c_check_header_compile
()
1660 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 $as_echo_n "checking for $2... " >&6; }
1663 if eval \
${$3+:} false
; then :
1664 $as_echo_n "(cached) " >&6
1666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1667 /* end confdefs.h. */
1671 if ac_fn_c_try_compile
"$LINENO"; then :
1676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680 $as_echo "$ac_res" >&6; }
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 } # ac_fn_c_check_header_compile
1685 # ac_fn_c_check_func LINENO FUNC VAR
1686 # ----------------------------------
1687 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1688 ac_fn_c_check_func
()
1690 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692 $as_echo_n "checking for $2... " >&6; }
1693 if eval \
${$3+:} false
; then :
1694 $as_echo_n "(cached) " >&6
1696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1698 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1700 #define $2 innocuous_$2
1702 /* System header to define __stub macros and hopefully few prototypes,
1703 which can conflict with char $2 (); below.
1704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1705 <limits.h> exists even on freestanding compilers. */
1708 # include <limits.h>
1710 # include <assert.h>
1715 /* Override any GCC internal prototype to avoid an error.
1716 Use char because int might match the return type of a GCC
1717 builtin and then its argument prototype would still apply. */
1722 /* The GNU C library defines this for functions which it implements
1723 to always fail with ENOSYS. Some functions are actually named
1724 something starting with __ and the normal name is an alias. */
1725 #if defined __stub_$2 || defined __stub___$2
1737 if ac_fn_c_try_link
"$LINENO"; then :
1742 rm -f core conftest.err conftest.
$ac_objext \
1743 conftest
$ac_exeext conftest.
$ac_ext
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747 $as_echo "$ac_res" >&6; }
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 } # ac_fn_c_check_func
1752 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1753 # -------------------------------------------------------
1754 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1755 # the include files in INCLUDES and setting the cache variable VAR
1757 ac_fn_c_check_header_mongrel
()
1759 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1760 if eval \
${$3+:} false
; then :
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \
${$3+:} false
; then :
1764 $as_echo_n "(cached) " >&6
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1770 # Is the header compilable?
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1772 $as_echo_n "checking $2 usability... " >&6; }
1773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1778 if ac_fn_c_try_compile
"$LINENO"; then :
1779 ac_header_compiler
=yes
1781 ac_header_compiler
=no
1783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1785 $as_echo "$ac_header_compiler" >&6; }
1787 # Is the header present?
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1789 $as_echo_n "checking $2 presence... " >&6; }
1790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1794 if ac_fn_c_try_cpp
"$LINENO"; then :
1795 ac_header_preproc
=yes
1797 ac_header_preproc
=no
1799 rm -f conftest.err conftest.i conftest.
$ac_ext
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1801 $as_echo "$ac_header_preproc" >&6; }
1803 # So? What about this header?
1804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1807 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1809 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1813 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1815 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1817 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1819 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if eval \
${$3+:} false
; then :
1827 $as_echo_n "(cached) " >&6
1829 eval "$3=\$ac_header_compiler"
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 } # ac_fn_c_check_header_mongrel
1839 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1840 # -------------------------------------------
1841 # Tests whether TYPE exists after having included INCLUDES, setting cache
1842 # variable VAR accordingly.
1843 ac_fn_c_check_type
()
1845 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval \
${$3+:} false
; then :
1849 $as_echo_n "(cached) " >&6
1852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1864 if ac_fn_c_try_compile
"$LINENO"; then :
1865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1877 if ac_fn_c_try_compile
"$LINENO"; then :
1882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 } # ac_fn_c_check_type
1893 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1894 # ----------------------------------------------------
1895 # Tries to find if the field MEMBER exists in type AGGR, after including
1896 # INCLUDES, setting cache variable VAR accordingly.
1897 ac_fn_c_check_member
()
1899 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1901 $as_echo_n "checking for $2.$3... " >&6; }
1902 if eval \
${$4+:} false
; then :
1903 $as_echo_n "(cached) " >&6
1905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1918 if ac_fn_c_try_compile
"$LINENO"; then :
1921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1928 if (sizeof ac_aggr.$3)
1934 if ac_fn_c_try_compile
"$LINENO"; then :
1939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 $as_echo "$ac_res" >&6; }
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948 } # ac_fn_c_check_member
1949 cat >config.log
<<_ACEOF
1950 This file contains any messages produced by compilers while
1951 running configure, to aid debugging if configure makes a mistake.
1953 It was created by $as_me, which was
1954 generated by GNU Autoconf 2.69. Invocation command line was
1966 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1967 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1968 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1969 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1970 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1972 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1973 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1975 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1976 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1977 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1978 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1979 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1980 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1981 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1989 test -z "$as_dir" && as_dir
=.
1990 $as_echo "PATH: $as_dir"
2006 # Keep a trace of the command line.
2007 # Strip out --no-create and --no-recursion so they do not pile up.
2008 # Strip out --silent because we don't want to record it for future runs.
2009 # Also quote any args containing shell meta-characters.
2010 # Make two passes to allow for proper duplicate-argument suppression.
2014 ac_must_keep_next
=false
2020 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2021 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2022 |
-silent |
--silent |
--silen |
--sile |
--sil)
2025 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2028 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2030 as_fn_append ac_configure_args1
" '$ac_arg'"
2031 if test $ac_must_keep_next = true
; then
2032 ac_must_keep_next
=false
# Got value, back to normal.
2035 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2036 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2037 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2038 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2039 case "$ac_configure_args0 " in
2040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2043 -* ) ac_must_keep_next
=true
;;
2046 as_fn_append ac_configure_args
" '$ac_arg'"
2051 { ac_configure_args0
=; unset ac_configure_args0
;}
2052 { ac_configure_args1
=; unset ac_configure_args1
;}
2054 # When interrupted or exit'd, cleanup temporary files, and complete
2055 # config.log. We remove comments because anyway the quotes in there
2056 # would cause problems or look ugly.
2057 # WARNING: Use '\'' to represent an apostrophe within the trap.
2058 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2059 trap 'exit_status=$?
2060 # Save into config.log some information that might help in debugging.
2064 $as_echo "## ---------------- ##
2065 ## Cache variables. ##
2066 ## ---------------- ##"
2068 # The following way of writing the cache mishandles newlines in values,
2070 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2071 eval ac_val=\$$ac_var
2075 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2076 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2079 _ | IFS | as_nl) ;; #(
2080 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2081 *) { eval $ac_var=; unset $ac_var;} ;;
2086 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2087 *${as_nl}ac_space=\ *)
2089 "s/'\''/'\''\\\\'\'''\''/g;
2090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2093 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2100 $as_echo "## ----------------- ##
2101 ## Output variables. ##
2102 ## ----------------- ##"
2104 for ac_var in $ac_subst_vars
2106 eval ac_val=\$$ac_var
2108 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2110 $as_echo "$ac_var='\''$ac_val'\''"
2114 if test -n "$ac_subst_files"; then
2115 $as_echo "## ------------------- ##
2116 ## File substitutions. ##
2117 ## ------------------- ##"
2119 for ac_var
in $ac_subst_files
2121 eval ac_val
=\$
$ac_var
2123 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2125 $as_echo "$ac_var='\''$ac_val'\''"
2130 if test -s confdefs.h; then
2131 $as_echo "## ----------- ##
2138 test "$ac_signal" != 0 &&
2139 $as_echo "$as_me: caught signal $ac_signal"
2140 $as_echo "$as_me: exit $exit_status"
2142 rm -f core *.core core.conftest.* &&
2143 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2146 for ac_signal
in 1 2 13 15; do
2147 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2151 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2152 rm -f -r conftest
* confdefs.h
2154 $as_echo "/* confdefs.h */" > confdefs.h
2156 # Predefined preprocessor variables.
2158 cat >>confdefs.h
<<_ACEOF
2159 #define PACKAGE_NAME "$PACKAGE_NAME"
2162 cat >>confdefs.h
<<_ACEOF
2163 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2166 cat >>confdefs.h
<<_ACEOF
2167 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2170 cat >>confdefs.h
<<_ACEOF
2171 #define PACKAGE_STRING "$PACKAGE_STRING"
2174 cat >>confdefs.h
<<_ACEOF
2175 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2178 cat >>confdefs.h
<<_ACEOF
2179 #define PACKAGE_URL "$PACKAGE_URL"
2183 # Let the site file select an alternate cache file if it wants to.
2184 # Prefer an explicitly selected file to automatically selected ones.
2187 if test -n "$CONFIG_SITE"; then
2188 # We do not want a PATH search for config.site.
2189 case $CONFIG_SITE in #((
2190 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2191 */*) ac_site_file1
=$CONFIG_SITE;;
2192 *) ac_site_file1
=.
/$CONFIG_SITE;;
2194 elif test "x$prefix" != xNONE
; then
2195 ac_site_file1
=$prefix/share
/config.site
2196 ac_site_file2
=$prefix/etc
/config.site
2198 ac_site_file1
=$ac_default_prefix/share
/config.site
2199 ac_site_file2
=$ac_default_prefix/etc
/config.site
2201 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2203 test "x$ac_site_file" = xNONE
&& continue
2204 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2206 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2207 sed 's/^/| /' "$ac_site_file" >&5
2209 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2211 as_fn_error $?
"failed to load site script $ac_site_file
2212 See \`config.log' for more details" "$LINENO" 5; }
2216 if test -r "$cache_file"; then
2217 # Some versions of bash will fail to source /dev/null (special files
2218 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2219 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2221 $as_echo "$as_me: loading cache $cache_file" >&6;}
2223 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2224 *) .
"./$cache_file";;
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2229 $as_echo "$as_me: creating cache $cache_file" >&6;}
2233 # Check that the precious variables saved in the cache have kept the same
2235 ac_cache_corrupted
=false
2236 for ac_var
in $ac_precious_vars; do
2237 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2238 eval ac_new_set
=\
$ac_env_${ac_var}_set
2239 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2240 eval ac_new_val
=\
$ac_env_${ac_var}_value
2241 case $ac_old_set,$ac_new_set in
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2244 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2245 ac_cache_corrupted
=: ;;
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2248 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2249 ac_cache_corrupted
=: ;;
2252 if test "x$ac_old_val" != "x$ac_new_val"; then
2253 # differences in whitespace do not lead to failure.
2254 ac_old_val_w
=`echo x $ac_old_val`
2255 ac_new_val_w
=`echo x $ac_new_val`
2256 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2258 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2259 ac_cache_corrupted
=:
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2262 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2263 eval $ac_var=\
$ac_old_val
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2266 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2268 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2271 # Pass precious variables to config.status.
2272 if test "$ac_new_set" = set; then
2274 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2275 *) ac_arg
=$ac_var=$ac_new_val ;;
2277 case " $ac_configure_args " in
2278 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2279 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2283 if $ac_cache_corrupted; then
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2287 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2288 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2290 ## -------------------- ##
2291 ## Main body of script. ##
2292 ## -------------------- ##
2295 ac_cpp
='$CPP $CPPFLAGS'
2296 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2297 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2298 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2304 # Checks for programs.
2306 ac_cpp
='$CPP $CPPFLAGS'
2307 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2310 if test -n "$ac_tool_prefix"; then
2311 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2312 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2314 $as_echo_n "checking for $ac_word... " >&6; }
2315 if ${ac_cv_prog_CC+:} false
; then :
2316 $as_echo_n "(cached) " >&6
2318 if test -n "$CC"; then
2319 ac_cv_prog_CC
="$CC" # Let the user override the test.
2321 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2325 test -z "$as_dir" && as_dir
=.
2326 for ac_exec_ext
in '' $ac_executable_extensions; do
2327 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2328 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2339 if test -n "$CC"; then
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2341 $as_echo "$CC" >&6; }
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2344 $as_echo "no" >&6; }
2349 if test -z "$ac_cv_prog_CC"; then
2351 # Extract the first word of "gcc", so it can be a program name with args.
2352 set dummy gcc
; ac_word
=$2
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2354 $as_echo_n "checking for $ac_word... " >&6; }
2355 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2356 $as_echo_n "(cached) " >&6
2358 if test -n "$ac_ct_CC"; then
2359 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2361 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2365 test -z "$as_dir" && as_dir
=.
2366 for ac_exec_ext
in '' $ac_executable_extensions; do
2367 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2368 ac_cv_prog_ac_ct_CC
="gcc"
2369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2379 if test -n "$ac_ct_CC"; then
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2381 $as_echo "$ac_ct_CC" >&6; }
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2384 $as_echo "no" >&6; }
2387 if test "x$ac_ct_CC" = x
; then
2390 case $cross_compiling:$ac_tool_warned in
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2394 ac_tool_warned
=yes ;;
2402 if test -z "$CC"; then
2403 if test -n "$ac_tool_prefix"; then
2404 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2405 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2407 $as_echo_n "checking for $ac_word... " >&6; }
2408 if ${ac_cv_prog_CC+:} false
; then :
2409 $as_echo_n "(cached) " >&6
2411 if test -n "$CC"; then
2412 ac_cv_prog_CC
="$CC" # Let the user override the test.
2414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2418 test -z "$as_dir" && as_dir
=.
2419 for ac_exec_ext
in '' $ac_executable_extensions; do
2420 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2421 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 if test -n "$CC"; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2434 $as_echo "$CC" >&6; }
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2437 $as_echo "no" >&6; }
2443 if test -z "$CC"; then
2444 # Extract the first word of "cc", so it can be a program name with args.
2445 set dummy cc
; ac_word
=$2
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2447 $as_echo_n "checking for $ac_word... " >&6; }
2448 if ${ac_cv_prog_CC+:} false
; then :
2449 $as_echo_n "(cached) " >&6
2451 if test -n "$CC"; then
2452 ac_cv_prog_CC
="$CC" # Let the user override the test.
2455 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2459 test -z "$as_dir" && as_dir
=.
2460 for ac_exec_ext
in '' $ac_executable_extensions; do
2461 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2462 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2463 ac_prog_rejected
=yes
2467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2474 if test $ac_prog_rejected = yes; then
2475 # We found a bogon in the path, so make sure we never use it.
2476 set dummy
$ac_cv_prog_CC
2478 if test $# != 0; then
2479 # We chose a different compiler from the bogus one.
2480 # However, it has the same basename, so the bogon will be chosen
2481 # first if we set CC to just the basename; use the full file name.
2483 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2489 if test -n "$CC"; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2491 $as_echo "$CC" >&6; }
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2494 $as_echo "no" >&6; }
2499 if test -z "$CC"; then
2500 if test -n "$ac_tool_prefix"; then
2501 for ac_prog
in cl.exe
2503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2504 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2506 $as_echo_n "checking for $ac_word... " >&6; }
2507 if ${ac_cv_prog_CC+:} false
; then :
2508 $as_echo_n "(cached) " >&6
2510 if test -n "$CC"; then
2511 ac_cv_prog_CC
="$CC" # Let the user override the test.
2513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2517 test -z "$as_dir" && as_dir
=.
2518 for ac_exec_ext
in '' $ac_executable_extensions; do
2519 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2520 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 if test -n "$CC"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2533 $as_echo "$CC" >&6; }
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2536 $as_echo "no" >&6; }
2540 test -n "$CC" && break
2543 if test -z "$CC"; then
2545 for ac_prog
in cl.exe
2547 # Extract the first word of "$ac_prog", so it can be a program name with args.
2548 set dummy
$ac_prog; ac_word
=$2
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2550 $as_echo_n "checking for $ac_word... " >&6; }
2551 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2552 $as_echo_n "(cached) " >&6
2554 if test -n "$ac_ct_CC"; then
2555 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2561 test -z "$as_dir" && as_dir
=.
2562 for ac_exec_ext
in '' $ac_executable_extensions; do
2563 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2564 ac_cv_prog_ac_ct_CC
="$ac_prog"
2565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2575 if test -n "$ac_ct_CC"; then
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2577 $as_echo "$ac_ct_CC" >&6; }
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2580 $as_echo "no" >&6; }
2584 test -n "$ac_ct_CC" && break
2587 if test "x$ac_ct_CC" = x
; then
2590 case $cross_compiling:$ac_tool_warned in
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2594 ac_tool_warned
=yes ;;
2603 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2605 as_fn_error $?
"no acceptable C compiler found in \$PATH
2606 See \`config.log' for more details" "$LINENO" 5; }
2608 # Provide some information about the compiler.
2609 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2612 for ac_option
in --version -v -V -qversion; do
2613 { { ac_try
="$ac_compiler $ac_option >&5"
2615 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2616 *) ac_try_echo=$ac_try;;
2618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2619 $as_echo "$ac_try_echo"; } >&5
2620 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2622 if test -s conftest.err; then
2624 ... rest of stderr output deleted ...
2625 10q' conftest.err >conftest.er1
2626 cat conftest.er1 >&5
2628 rm -f conftest.er1 conftest.err
2629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2630 test $ac_status = 0; }
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h. */
2644 ac_clean_files_save=$ac_clean_files
2645 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2646 # Try to create an executable without -o first, disregard a.out.
2647 # It will help us diagnose broken compilers, and finding out an intuition
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2650 $as_echo_n "checking whether the C compiler works... " >&6; }
2651 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2653 # The possible output files:
2654 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2657 for ac_file in $ac_files
2660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2661 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2666 if { { ac_try="$ac_link_default"
2668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2669 *) ac_try_echo
=$ac_try;;
2671 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2672 $as_echo "$ac_try_echo"; } >&5
2673 (eval "$ac_link_default") 2>&5
2675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2676 test $ac_status = 0; }; then :
2677 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2678 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2679 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2680 # so that the user can short-circuit this test for compilers unknown to
2682 for ac_file
in $ac_files ''
2684 test -f "$ac_file" ||
continue
2686 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2689 # We found the default executable, but exeext='' is most
2693 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2695 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2697 # We set ac_cv_exeext here because the later test for it is not
2698 # safe: cross compilers may not add the suffix if given an `-o'
2699 # argument, so we may need to know it at that point already.
2700 # Even if this section looks crufty: it has the advantage of
2707 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2712 if test -z "$ac_file"; then :
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714 $as_echo "no" >&6; }
2715 $as_echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.
$ac_ext >&5
2718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2720 as_fn_error
77 "C compiler cannot create executables
2721 See \`config.log' for more details" "$LINENO" 5; }
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2724 $as_echo "yes" >&6; }
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2727 $as_echo_n "checking for C compiler default output file name... " >&6; }
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2729 $as_echo "$ac_file" >&6; }
2730 ac_exeext
=$ac_cv_exeext
2732 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
2733 ac_clean_files
=$ac_clean_files_save
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2735 $as_echo_n "checking for suffix of executables... " >&6; }
2736 if { { ac_try
="$ac_link"
2738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2742 $as_echo "$ac_try_echo"; } >&5
2743 (eval "$ac_link") 2>&5
2745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2746 test $ac_status = 0; }; then :
2747 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
2748 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
2749 # work properly (i.e., refer to `conftest.exe'), while it won't with
2751 for ac_file
in conftest.exe conftest conftest.
*; do
2752 test -f "$ac_file" ||
continue
2754 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2755 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2763 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2764 See \`config.log' for more details" "$LINENO" 5; }
2766 rm -f conftest conftest
$ac_cv_exeext
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2768 $as_echo "$ac_cv_exeext" >&6; }
2770 rm -f conftest.
$ac_ext
2771 EXEEXT
=$ac_cv_exeext
2773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2774 /* end confdefs.h. */
2779 FILE *f = fopen ("conftest.out", "w");
2780 return ferror (f) || fclose (f) != 0;
2786 ac_clean_files
="$ac_clean_files conftest.out"
2787 # Check that the compiler produces executables we can run. If not, either
2788 # the compiler is broken, or we cross compile.
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2790 $as_echo_n "checking whether we are cross compiling... " >&6; }
2791 if test "$cross_compiling" != yes; then
2792 { { ac_try
="$ac_link"
2794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2798 $as_echo "$ac_try_echo"; } >&5
2799 (eval "$ac_link") 2>&5
2801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2802 test $ac_status = 0; }
2803 if { ac_try='./conftest$ac_cv_exeext'
2804 { { case "(($ac_try" in
2805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2806 *) ac_try_echo
=$ac_try;;
2808 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2809 $as_echo "$ac_try_echo"; } >&5
2810 (eval "$ac_try") 2>&5
2812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2813 test $ac_status = 0; }; }; then
2816 if test "$cross_compiling" = maybe
; then
2819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2821 as_fn_error $?
"cannot run C compiled programs.
2822 If you meant to cross compile, use \`--host'.
2823 See \`config.log' for more details" "$LINENO" 5; }
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2828 $as_echo "$cross_compiling" >&6; }
2830 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2831 ac_clean_files
=$ac_clean_files_save
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2833 $as_echo_n "checking for suffix of object files... " >&6; }
2834 if ${ac_cv_objext+:} false
; then :
2835 $as_echo_n "(cached) " >&6
2837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2838 /* end confdefs.h. */
2848 rm -f conftest.o conftest.obj
2849 if { { ac_try
="$ac_compile"
2851 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2855 $as_echo "$ac_try_echo"; } >&5
2856 (eval "$ac_compile") 2>&5
2858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2859 test $ac_status = 0; }; then :
2860 for ac_file in conftest.o conftest.obj conftest.*; do
2861 test -f "$ac_file" || continue;
2863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2864 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2869 $as_echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2874 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2875 See \
`config.log' for more details" "$LINENO" 5; }
2877 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2880 $as_echo "$ac_cv_objext" >&6; }
2881 OBJEXT=$ac_cv_objext
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2884 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2885 if ${ac_cv_c_compiler_gnu+:} false; then :
2886 $as_echo_n "(cached) " >&6
2888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2889 /* end confdefs.h. */
2902 if ac_fn_c_try_compile "$LINENO"; then :
2907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2908 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2912 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2913 if test $ac_compiler_gnu = yes; then
2918 ac_test_CFLAGS=${CFLAGS+set}
2919 ac_save_CFLAGS=$CFLAGS
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2921 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2922 if ${ac_cv_prog_cc_g+:} false; then :
2923 $as_echo_n "(cached) " >&6
2925 ac_save_c_werror_flag=$ac_c_werror_flag
2926 ac_c_werror_flag=yes
2929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2930 /* end confdefs.h. */
2940 if ac_fn_c_try_compile "$LINENO"; then :
2944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2945 /* end confdefs.h. */
2955 if ac_fn_c_try_compile "$LINENO"; then :
2958 ac_c_werror_flag=$ac_save_c_werror_flag
2960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2961 /* end confdefs.h. */
2971 if ac_fn_c_try_compile "$LINENO"; then :
2974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979 ac_c_werror_flag=$ac_save_c_werror_flag
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2982 $as_echo "$ac_cv_prog_cc_g" >&6; }
2983 if test "$ac_test_CFLAGS" = set; then
2984 CFLAGS=$ac_save_CFLAGS
2985 elif test $ac_cv_prog_cc_g = yes; then
2986 if test "$GCC" = yes; then
2992 if test "$GCC" = yes; then
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2999 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3000 if ${ac_cv_prog_cc_c89+:} false; then :
3001 $as_echo_n "(cached) " >&6
3003 ac_cv_prog_cc_c89=no
3005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3006 /* end confdefs.h. */
3010 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3011 struct buf { int x; };
3012 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3013 static char *e (p, i)
3019 static char *f (char * (*g) (char **, int), char **p, ...)
3024 s = g (p, va_arg (v,int));
3029 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3030 function prototypes and stuff, but not '\xHH' hex character constants.
3031 These don't provoke an error unfortunately, instead are silently treated
3032 as 'x'. The following induces an error, until -std is added to get
3033 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3034 array size at least. It's necessary to write '\x00'==0 to get something
3035 that's true only with -std. */
3036 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3038 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3039 inside strings and character constants. */
3041 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3043 int test (int i, double x);
3044 struct s1 {int (*f) (int a);};
3045 struct s2 {int (*f) (double a);};
3046 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3052 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3057 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3058 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3060 CC="$ac_save_CC $ac_arg"
3061 if ac_fn_c_try_compile "$LINENO"; then :
3062 ac_cv_prog_cc_c89=$ac_arg
3064 rm -f core conftest.err conftest.$ac_objext
3065 test "x$ac_cv_prog_cc_c89" != "xno" && break
3067 rm -f conftest.$ac_ext
3072 case "x$ac_cv_prog_cc_c89" in
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3075 $as_echo "none needed" >&6; } ;;
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3078 $as_echo "unsupported" >&6; } ;;
3080 CC="$CC $ac_cv_prog_cc_c89"
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3082 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3084 if test "x$ac_cv_prog_cc_c89" != xno; then :
3089 ac_cpp='$CPP $CPPFLAGS'
3090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3095 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3097 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3098 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3099 $as_echo_n "(cached) " >&6
3101 cat >conftest.make <<\_ACEOF
3104 @echo '@@@%%%=$(MAKE)=@@@%%%'
3106 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3107 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
3109 eval ac_cv_prog_make_${ac_make}_set=yes;;
3111 eval ac_cv_prog_make_${ac_make}_set=no;;
3115 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3117 $as_echo "yes" >&6; }
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3122 SET_MAKE="MAKE=${MAKE-make}"
3126 if test -z "$LD" ; then
3131 if test -z "$OLDCFLAGS" && test "$GCC" = "yes"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: No \$CFLAGS set... using \"-Os -W -Wall\" for GCC" >&5
3133 $as_echo "$as_me: No \$CFLAGS set... using \"-Os -W -Wall\" for GCC" >&6;}
3134 CFLAGS="-Os -W -Wall -Wno-pointer-sign"
3137 # large file support is useful for scp
3139 # Check whether --enable-largefile was given.
3140 if test "${enable_largefile+set}" = set; then :
3141 enableval=$enable_largefile;
3144 if test "$enable_largefile" != no; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3147 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3148 if ${ac_cv_sys_largefile_CC+:} false; then :
3149 $as_echo_n "(cached) " >&6
3151 ac_cv_sys_largefile_CC=no
3152 if test "$GCC" != yes; then
3155 # IRIX 6.2 and later do not support large files by default,
3156 # so use the C compiler's -n32 option if that helps.
3157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158 /* end confdefs.h. */
3159 #include <sys/types.h>
3160 /* Check that off_t can represent 2**63 - 1 correctly.
3161 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3162 since some C++ compilers masquerading as C compilers
3163 incorrectly reject 9223372036854775807. */
3164 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3165 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3166 && LARGE_OFF_T % 2147483647 == 1)
3176 if ac_fn_c_try_compile "$LINENO"; then :
3179 rm -f core conftest.err conftest.$ac_objext
3181 if ac_fn_c_try_compile "$LINENO"; then :
3182 ac_cv_sys_largefile_CC=' -n32'; break
3184 rm -f core conftest.err conftest.$ac_objext
3188 rm -f conftest.$ac_ext
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3192 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3193 if test "$ac_cv_sys_largefile_CC" != no; then
3194 CC=$CC$ac_cv_sys_largefile_CC
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3198 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3199 if ${ac_cv_sys_file_offset_bits+:} false; then :
3200 $as_echo_n "(cached) " >&6
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h. */
3205 #include <sys/types.h>
3206 /* Check that off_t can represent 2**63 - 1 correctly.
3207 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3208 since some C++ compilers masquerading as C compilers
3209 incorrectly reject 9223372036854775807. */
3210 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3211 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3212 && LARGE_OFF_T % 2147483647 == 1)
3222 if ac_fn_c_try_compile "$LINENO"; then :
3223 ac_cv_sys_file_offset_bits=no; break
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h. */
3228 #define _FILE_OFFSET_BITS 64
3229 #include <sys/types.h>
3230 /* Check that off_t can represent 2**63 - 1 correctly.
3231 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3232 since some C++ compilers masquerading as C compilers
3233 incorrectly reject 9223372036854775807. */
3234 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3235 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3236 && LARGE_OFF_T % 2147483647 == 1)
3246 if ac_fn_c_try_compile "$LINENO"; then :
3247 ac_cv_sys_file_offset_bits=64; break
3249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 ac_cv_sys_file_offset_bits=unknown
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3255 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3256 case $ac_cv_sys_file_offset_bits in #(
3259 cat >>confdefs.h <<_ACEOF
3260 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3265 if test $ac_cv_sys_file_offset_bits = unknown; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3267 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3268 if ${ac_cv_sys_large_files+:} false; then :
3269 $as_echo_n "(cached) " >&6
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3274 #include <sys/types.h>
3275 /* Check that off_t can represent 2**63 - 1 correctly.
3276 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3277 since some C++ compilers masquerading as C compilers
3278 incorrectly reject 9223372036854775807. */
3279 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3280 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3281 && LARGE_OFF_T % 2147483647 == 1)
3291 if ac_fn_c_try_compile "$LINENO"; then :
3292 ac_cv_sys_large_files=no; break
3294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h. */
3297 #define _LARGE_FILES 1
3298 #include <sys/types.h>
3299 /* Check that off_t can represent 2**63 - 1 correctly.
3300 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3301 since some C++ compilers masquerading as C compilers
3302 incorrectly reject 9223372036854775807. */
3303 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3304 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3305 && LARGE_OFF_T % 2147483647 == 1)
3315 if ac_fn_c_try_compile "$LINENO"; then :
3316 ac_cv_sys_large_files=1; break
3318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3319 ac_cv_sys_large_files=unknown
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3324 $as_echo "$ac_cv_sys_large_files" >&6; }
3325 case $ac_cv_sys_large_files in #(
3328 cat >>confdefs.h <<_ACEOF
3329 #define _LARGE_FILES $ac_cv_sys_large_files
3340 # Host specific options
3341 # this isn't a definitive list of hosts, they are just added as required
3343 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3344 if test -f "$ac_dir/install-sh"; then
3346 ac_install_sh="$ac_aux_dir/install-sh -c"
3348 elif test -f "$ac_dir/install.sh"; then
3350 ac_install_sh="$ac_aux_dir/install.sh -c"
3352 elif test -f "$ac_dir/shtool"; then
3354 ac_install_sh="$ac_aux_dir/shtool install -c"
3358 if test -z "$ac_aux_dir"; then
3359 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3362 # These three variables are undocumented and unsupported,
3363 # and are intended to be withdrawn in a future Autoconf release.
3364 # They can cause serious problems if a builder's source tree is in a directory
3365 # whose full name contains unusual characters.
3366 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3367 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3368 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3371 # Make sure we can run config.sub.
3372 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3373 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3376 $as_echo_n "checking build system type... " >&6; }
3377 if ${ac_cv_build+:} false; then :
3378 $as_echo_n "(cached) " >&6
3380 ac_build_alias=$build_alias
3381 test "x$ac_build_alias" = x &&
3382 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3383 test "x$ac_build_alias" = x &&
3384 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3385 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3386 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3390 $as_echo "$ac_cv_build" >&6; }
3391 case $ac_cv_build in
3393 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3396 ac_save_IFS=$IFS; IFS='-'
3402 # Remember, the first character of IFS is used to create $*,
3403 # except with old shells:
3406 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3410 $as_echo_n "checking host system type... " >&6; }
3411 if ${ac_cv_host+:} false; then :
3412 $as_echo_n "(cached) " >&6
3414 if test "x$host_alias" = x; then
3415 ac_cv_host=$ac_cv_build
3417 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3418 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3423 $as_echo "$ac_cv_host" >&6; }
3426 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3429 ac_save_IFS=$IFS; IFS='-'
3435 # Remember, the first character of IFS is used to create $*,
3436 # except with old shells:
3439 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3450 CFLAGS="$CFLAGS -I/usr/local/include"
3451 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib"
3452 conf_lastlog_location="/var/adm/lastlog"
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
3454 $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
3455 sol2ver=`echo "$host"|
sed -e 's/.*[0-9]\.//'`
3456 if test "$sol2ver" -ge 8; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3458 $as_echo "yes" >&6; }
3460 $as_echo "#define DISABLE_UTMP /**/" >>confdefs.h
3463 $as_echo "#define DISABLE_WTMP /**/" >>confdefs.h
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 $as_echo "no" >&6; }
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
3470 $as_echo_n "checking for socket in -lsocket... " >&6; }
3471 if ${ac_cv_lib_socket_socket+:} false; then :
3472 $as_echo_n "(cached) " >&6
3474 ac_check_lib_save_LIBS=$LIBS
3475 LIBS="-lsocket $LIBS"
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3479 /* Override any GCC internal prototype to avoid an error.
3480 Use char because int might match the return type of a GCC
3481 builtin and then its argument prototype would still apply. */
3494 if ac_fn_c_try_link "$LINENO"; then :
3495 ac_cv_lib_socket_socket=yes
3497 ac_cv_lib_socket_socket=no
3499 rm -f core conftest.err conftest.$ac_objext \
3500 conftest$ac_exeext conftest.$ac_ext
3501 LIBS=$ac_check_lib_save_LIBS
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
3504 $as_echo "$ac_cv_lib_socket_socket" >&6; }
3505 if test "x$ac_cv_lib_socket_socket" = xyes; then :
3506 LIBS="$LIBS -lsocket"
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5
3510 $as_echo_n "checking for yp_match in -lnsl... " >&6; }
3511 if ${ac_cv_lib_nsl_yp_match+:} false; then :
3512 $as_echo_n "(cached) " >&6
3514 ac_check_lib_save_LIBS=$LIBS
3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h. */
3519 /* Override any GCC internal prototype to avoid an error.
3520 Use char because int might match the return type of a GCC
3521 builtin and then its argument prototype would still apply. */
3534 if ac_fn_c_try_link "$LINENO"; then :
3535 ac_cv_lib_nsl_yp_match=yes
3537 ac_cv_lib_nsl_yp_match=no
3539 rm -f core conftest.err conftest.$ac_objext \
3540 conftest$ac_exeext conftest.$ac_ext
3541 LIBS=$ac_check_lib_save_LIBS
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5
3544 $as_echo "$ac_cv_lib_nsl_yp_match" >&6; }
3545 if test "x$ac_cv_lib_nsl_yp_match" = xyes; then :
3553 $as_echo "#define AIX /**/" >>confdefs.h
3555 # OpenSSH thinks it's broken. If it isn't, let me know.
3557 $as_echo "#define BROKEN_GETADDRINFO /**/" >>confdefs.h
3563 # It's probably broken.
3565 $as_echo "#define BROKEN_GETADDRINFO /**/" >>confdefs.h
3570 $as_echo "#define BROKEN_GETADDRINFO /**/" >>confdefs.h
3575 if test -n "$ac_tool_prefix"; then
3576 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3577 set dummy ${ac_tool_prefix}ar; ac_word=$2
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579 $as_echo_n "checking for $ac_word... " >&6; }
3580 if ${ac_cv_prog_AR+:} false; then :
3581 $as_echo_n "(cached) " >&6
3583 if test -n "$AR"; then
3584 ac_cv_prog_AR="$AR" # Let the user override the test.
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593 ac_cv_prog_AR="${ac_tool_prefix}ar"
3594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 if test -n "$AR"; then
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3606 $as_echo "$AR" >&6; }
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3614 if test -z "$ac_cv_prog_AR"; then
3616 # Extract the first word of "ar", so it can be a program name with args.
3617 set dummy ar; ac_word=$2
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619 $as_echo_n "checking for $ac_word... " >&6; }
3620 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3621 $as_echo_n "(cached) " >&6
3623 if test -n "$ac_ct_AR"; then
3624 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 test -z "$as_dir" && as_dir=.
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633 ac_cv_prog_ac_ct_AR="ar"
3634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3643 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3644 if test -n "$ac_ct_AR"; then
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3646 $as_echo "$ac_ct_AR" >&6; }
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649 $as_echo "no" >&6; }
3652 if test "x$ac_ct_AR" = x; then
3655 case $cross_compiling:$ac_tool_warned in
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3659 ac_tool_warned=yes ;;
3667 if test -n "$ac_tool_prefix"; then
3668 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3669 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if ${ac_cv_prog_RANLIB+:} false; then :
3673 $as_echo_n "(cached) " >&6
3675 if test -n "$RANLIB"; then
3676 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 test -z "$as_dir" && as_dir=.
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3685 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 RANLIB=$ac_cv_prog_RANLIB
3696 if test -n "$RANLIB"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3698 $as_echo "$RANLIB" >&6; }
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3706 if test -z "$ac_cv_prog_RANLIB"; then
3707 ac_ct_RANLIB=$RANLIB
3708 # Extract the first word of "ranlib", so it can be a program name with args.
3709 set dummy ranlib; ac_word=$2
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711 $as_echo_n "checking for $ac_word... " >&6; }
3712 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3713 $as_echo_n "(cached) " >&6
3715 if test -n "$ac_ct_RANLIB"; then
3716 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 test -z "$as_dir" && as_dir=.
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3725 ac_cv_prog_ac_ct_RANLIB="ranlib"
3726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3736 if test -n "$ac_ct_RANLIB"; then
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3738 $as_echo "$ac_ct_RANLIB" >&6; }
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741 $as_echo "no" >&6; }
3744 if test "x$ac_ct_RANLIB" = x; then
3747 case $cross_compiling:$ac_tool_warned in
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3751 ac_tool_warned=yes ;;
3753 RANLIB=$ac_ct_RANLIB
3756 RANLIB="$ac_cv_prog_RANLIB"
3759 if test -n "$ac_tool_prefix"; then
3760 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3761 set dummy ${ac_tool_prefix}strip; ac_word=$2
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763 $as_echo_n "checking for $ac_word... " >&6; }
3764 if ${ac_cv_prog_STRIP+:} false; then :
3765 $as_echo_n "(cached) " >&6
3767 if test -n "$STRIP"; then
3768 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 test -z "$as_dir" && as_dir=.
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3777 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 STRIP=$ac_cv_prog_STRIP
3788 if test -n "$STRIP"; then
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3790 $as_echo "$STRIP" >&6; }
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 $as_echo "no" >&6; }
3798 if test -z "$ac_cv_prog_STRIP"; then
3800 # Extract the first word of "strip", so it can be a program name with args.
3801 set dummy strip; ac_word=$2
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803 $as_echo_n "checking for $ac_word... " >&6; }
3804 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3805 $as_echo_n "(cached) " >&6
3807 if test -n "$ac_ct_STRIP"; then
3808 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817 ac_cv_prog_ac_ct_STRIP="strip"
3818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3827 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3828 if test -n "$ac_ct_STRIP"; then
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3830 $as_echo "$ac_ct_STRIP" >&6; }
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833 $as_echo "no" >&6; }
3836 if test "x$ac_ct_STRIP" = x; then
3839 case $cross_compiling:$ac_tool_warned in
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3843 ac_tool_warned=yes ;;
3848 STRIP="$ac_cv_prog_STRIP"
3851 if test -n "$ac_tool_prefix"; then
3852 # Extract the first word of "${ac_tool_prefix}install", so it can be a program name with args.
3853 set dummy ${ac_tool_prefix}install; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if ${ac_cv_prog_INSTALL+:} false; then :
3857 $as_echo_n "(cached) " >&6
3859 if test -n "$INSTALL"; then
3860 ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test.
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3869 ac_cv_prog_INSTALL="${ac_tool_prefix}install"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 INSTALL=$ac_cv_prog_INSTALL
3880 if test -n "$INSTALL"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3882 $as_echo "$INSTALL" >&6; }
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3890 if test -z "$ac_cv_prog_INSTALL"; then
3891 ac_ct_INSTALL=$INSTALL
3892 # Extract the first word of "install", so it can be a program name with args.
3893 set dummy install; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if ${ac_cv_prog_ac_ct_INSTALL+:} false; then :
3897 $as_echo_n "(cached) " >&6
3899 if test -n "$ac_ct_INSTALL"; then
3900 ac_cv_prog_ac_ct_INSTALL="$ac_ct_INSTALL" # Let the user override the test.
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_ac_ct_INSTALL="install"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3919 ac_ct_INSTALL=$ac_cv_prog_ac_ct_INSTALL
3920 if test -n "$ac_ct_INSTALL"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_INSTALL" >&5
3922 $as_echo "$ac_ct_INSTALL" >&6; }
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3928 if test "x$ac_ct_INSTALL" = x; then
3931 case $cross_compiling:$ac_tool_warned in
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3935 ac_tool_warned=yes ;;
3937 INSTALL=$ac_ct_INSTALL
3940 INSTALL="$ac_cv_prog_INSTALL"
3945 ac_cpp='$CPP $CPPFLAGS'
3946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3950 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3951 # On Suns, sometimes $CPP names a directory.
3952 if test -n "$CPP" && test -d "$CPP"; then
3955 if test -z "$CPP"; then
3956 if ${ac_cv_prog_CPP+:} false; then :
3957 $as_echo_n "(cached) " >&6
3959 # Double quotes because CPP needs to be expanded
3960 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3963 for ac_c_preproc_warn_flag in '' yes
3965 # Use a header file that comes with gcc, so configuring glibc
3966 # with a fresh cross-compiler works.
3967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3968 # <limits.h> exists even on freestanding compilers.
3969 # On the NeXT, cc -E runs the code through the compiler's parser,
3970 # not just through cpp. "Syntax error" is here to catch this case.
3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h. */
3974 # include <limits.h>
3976 # include <assert.h>
3980 if ac_fn_c_try_cpp "$LINENO"; then :
3983 # Broken: fails on valid input.
3986 rm -f conftest.err conftest.i conftest.$ac_ext
3988 # OK, works on sane cases. Now check whether nonexistent headers
3989 # can be detected and how.
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3992 #include <ac_nonexistent.h>
3994 if ac_fn_c_try_cpp "$LINENO"; then :
3995 # Broken: success on invalid input.
3998 # Passes both tests.
4002 rm -f conftest.err conftest.i conftest.$ac_ext
4005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4006 rm -f conftest.i conftest.err conftest.
$ac_ext
4007 if $ac_preproc_ok; then :
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4020 $as_echo "$CPP" >&6; }
4022 for ac_c_preproc_warn_flag
in '' yes
4024 # Use a header file that comes with gcc, so configuring glibc
4025 # with a fresh cross-compiler works.
4026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4027 # <limits.h> exists even on freestanding compilers.
4028 # On the NeXT, cc -E runs the code through the compiler's parser,
4029 # not just through cpp. "Syntax error" is here to catch this case.
4030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h. */
4033 # include <limits.h>
4035 # include <assert.h>
4039 if ac_fn_c_try_cpp
"$LINENO"; then :
4042 # Broken: fails on valid input.
4045 rm -f conftest.err conftest.i conftest.
$ac_ext
4047 # OK, works on sane cases. Now check whether nonexistent headers
4048 # can be detected and how.
4049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4051 #include <ac_nonexistent.h>
4053 if ac_fn_c_try_cpp
"$LINENO"; then :
4054 # Broken: success on invalid input.
4057 # Passes both tests.
4061 rm -f conftest.err conftest.i conftest.
$ac_ext
4064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4065 rm -f conftest.i conftest.err conftest.
$ac_ext
4066 if $ac_preproc_ok; then :
4069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4071 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4072 See \`config.log' for more details" "$LINENO" 5; }
4076 ac_cpp
='$CPP $CPPFLAGS'
4077 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4083 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4084 if ${ac_cv_path_GREP+:} false
; then :
4085 $as_echo_n "(cached) " >&6
4087 if test -z "$GREP"; then
4088 ac_path_GREP_found
=false
4089 # Loop through the user's path and test for each of PROGNAME-LIST
4090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4091 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4094 test -z "$as_dir" && as_dir
=.
4095 for ac_prog
in grep ggrep
; do
4096 for ac_exec_ext
in '' $ac_executable_extensions; do
4097 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4098 as_fn_executable_p
"$ac_path_GREP" ||
continue
4099 # Check for GNU ac_path_GREP and select it if it is found.
4100 # Check for GNU $ac_path_GREP
4101 case `"$ac_path_GREP" --version 2>&1` in
4103 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4106 $as_echo_n 0123456789 >"conftest.in"
4109 cat "conftest.in" "conftest.in" >"conftest.tmp"
4110 mv "conftest.tmp" "conftest.in"
4111 cp "conftest.in" "conftest.nl"
4112 $as_echo 'GREP' >> "conftest.nl"
4113 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4114 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4115 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4116 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4117 # Best one so far, save it but keep looking for a better one
4118 ac_cv_path_GREP
="$ac_path_GREP"
4119 ac_path_GREP_max
=$ac_count
4121 # 10*(2^10) chars as input seems more than enough
4122 test $ac_count -gt 10 && break
4124 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4127 $ac_path_GREP_found && break 3
4132 if test -z "$ac_cv_path_GREP"; then
4133 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4136 ac_cv_path_GREP
=$GREP
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4141 $as_echo "$ac_cv_path_GREP" >&6; }
4142 GREP
="$ac_cv_path_GREP"
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4146 $as_echo_n "checking for egrep... " >&6; }
4147 if ${ac_cv_path_EGREP+:} false
; then :
4148 $as_echo_n "(cached) " >&6
4150 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4151 then ac_cv_path_EGREP
="$GREP -E"
4153 if test -z "$EGREP"; then
4154 ac_path_EGREP_found
=false
4155 # Loop through the user's path and test for each of PROGNAME-LIST
4156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4157 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4160 test -z "$as_dir" && as_dir
=.
4161 for ac_prog
in egrep; do
4162 for ac_exec_ext
in '' $ac_executable_extensions; do
4163 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4164 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4165 # Check for GNU ac_path_EGREP and select it if it is found.
4166 # Check for GNU $ac_path_EGREP
4167 case `"$ac_path_EGREP" --version 2>&1` in
4169 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4172 $as_echo_n 0123456789 >"conftest.in"
4175 cat "conftest.in" "conftest.in" >"conftest.tmp"
4176 mv "conftest.tmp" "conftest.in"
4177 cp "conftest.in" "conftest.nl"
4178 $as_echo 'EGREP' >> "conftest.nl"
4179 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4180 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4181 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4182 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4183 # Best one so far, save it but keep looking for a better one
4184 ac_cv_path_EGREP
="$ac_path_EGREP"
4185 ac_path_EGREP_max
=$ac_count
4187 # 10*(2^10) chars as input seems more than enough
4188 test $ac_count -gt 10 && break
4190 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4193 $ac_path_EGREP_found && break 3
4198 if test -z "$ac_cv_path_EGREP"; then
4199 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4202 ac_cv_path_EGREP
=$EGREP
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4208 $as_echo "$ac_cv_path_EGREP" >&6; }
4209 EGREP
="$ac_cv_path_EGREP"
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4213 $as_echo_n "checking for ANSI C header files... " >&6; }
4214 if ${ac_cv_header_stdc+:} false
; then :
4215 $as_echo_n "(cached) " >&6
4217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4232 if ac_fn_c_try_compile
"$LINENO"; then :
4233 ac_cv_header_stdc
=yes
4235 ac_cv_header_stdc
=no
4237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4239 if test $ac_cv_header_stdc = yes; then
4240 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4247 $EGREP "memchr" >/dev
/null
2>&1; then :
4250 ac_cv_header_stdc
=no
4256 if test $ac_cv_header_stdc = yes; then
4257 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4264 $EGREP "free" >/dev
/null
2>&1; then :
4267 ac_cv_header_stdc
=no
4273 if test $ac_cv_header_stdc = yes; then
4274 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4275 if test "$cross_compiling" = yes; then :
4278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4282 #if ((' ' & 0x0FF) == 0x020)
4283 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4284 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4286 # define ISLOWER(c) \
4287 (('a' <= (c) && (c) <= 'i') \
4288 || ('j' <= (c) && (c) <= 'r') \
4289 || ('s' <= (c) && (c) <= 'z'))
4290 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4293 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4298 for (i = 0; i < 256; i++)
4299 if (XOR (islower (i), ISLOWER (i))
4300 || toupper (i) != TOUPPER (i))
4305 if ac_fn_c_try_run
"$LINENO"; then :
4308 ac_cv_header_stdc
=no
4310 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4311 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4317 $as_echo "$ac_cv_header_stdc" >&6; }
4318 if test $ac_cv_header_stdc = yes; then
4320 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4324 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4325 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4326 inttypes.h stdint.h unistd.h
4328 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4329 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4331 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4332 cat >>confdefs.h
<<_ACEOF
4333 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4341 ac_fn_c_check_decl
"$LINENO" "__UCLIBC__" "ac_cv_have_decl___UCLIBC__" "$ac_includes_default"
4342 if test "x$ac_cv_have_decl___UCLIBC__" = xyes
; then :
4344 no_loginfunc_check
=1
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: Using uClibc - login() and logout() probably don't work, so we won't use them." >&5
4346 $as_echo "$as_me: Using uClibc - login() and logout() probably don't work, so we won't use them." >&6;}
4351 # Checks for libraries.
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
4353 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
4354 if ${ac_cv_lib_crypt_crypt+:} false
; then :
4355 $as_echo_n "(cached) " >&6
4357 ac_check_lib_save_LIBS
=$LIBS
4358 LIBS
="-lcrypt $LIBS"
4359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4362 /* Override any GCC internal prototype to avoid an error.
4363 Use char because int might match the return type of a GCC
4364 builtin and then its argument prototype would still apply. */
4377 if ac_fn_c_try_link
"$LINENO"; then :
4378 ac_cv_lib_crypt_crypt
=yes
4380 ac_cv_lib_crypt_crypt
=no
4382 rm -f core conftest.err conftest.
$ac_objext \
4383 conftest
$ac_exeext conftest.
$ac_ext
4384 LIBS
=$ac_check_lib_save_LIBS
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
4387 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
4388 if test "x$ac_cv_lib_crypt_crypt" = xyes
; then :
4394 # Check if zlib is needed
4396 # Check whether --with-zlib was given.
4397 if test "${with_zlib+set}" = set; then :
4400 if test -d "$withval/lib"; then
4401 LDFLAGS
="-L${withval}/lib ${LDFLAGS}"
4403 LDFLAGS
="-L${withval} ${LDFLAGS}"
4405 if test -d "$withval/include"; then
4406 CPPFLAGS
="-I${withval}/include ${CPPFLAGS}"
4408 CPPFLAGS
="-I${withval} ${CPPFLAGS}"
4415 # Check whether --enable-zlib was given.
4416 if test "${enable_zlib+set}" = set; then :
4417 enableval
=$enable_zlib;
4418 if test "x$enableval" = "xno"; then
4420 $as_echo "#define DISABLE_ZLIB /**/" >>confdefs.h
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling zlib" >&5
4423 $as_echo "$as_me: Disabling zlib" >&6;}
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
4426 $as_echo_n "checking for deflate in -lz... " >&6; }
4427 if ${ac_cv_lib_z_deflate+:} false
; then :
4428 $as_echo_n "(cached) " >&6
4430 ac_check_lib_save_LIBS
=$LIBS
4432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h. */
4435 /* Override any GCC internal prototype to avoid an error.
4436 Use char because int might match the return type of a GCC
4437 builtin and then its argument prototype would still apply. */
4450 if ac_fn_c_try_link
"$LINENO"; then :
4451 ac_cv_lib_z_deflate
=yes
4453 ac_cv_lib_z_deflate
=no
4455 rm -f core conftest.err conftest.
$ac_objext \
4456 conftest
$ac_exeext conftest.
$ac_ext
4457 LIBS
=$ac_check_lib_save_LIBS
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
4460 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4461 if test "x$ac_cv_lib_z_deflate" = xyes
; then :
4462 cat >>confdefs.h
<<_ACEOF
4469 as_fn_error $?
"*** zlib missing - install first or check config.log ***" "$LINENO" 5
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling zlib" >&5
4473 $as_echo "$as_me: Enabling zlib" >&6;}
4478 # if not disabled, check for zlib
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
4480 $as_echo_n "checking for deflate in -lz... " >&6; }
4481 if ${ac_cv_lib_z_deflate+:} false
; then :
4482 $as_echo_n "(cached) " >&6
4484 ac_check_lib_save_LIBS
=$LIBS
4486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4489 /* Override any GCC internal prototype to avoid an error.
4490 Use char because int might match the return type of a GCC
4491 builtin and then its argument prototype would still apply. */
4504 if ac_fn_c_try_link
"$LINENO"; then :
4505 ac_cv_lib_z_deflate
=yes
4507 ac_cv_lib_z_deflate
=no
4509 rm -f core conftest.err conftest.
$ac_objext \
4510 conftest
$ac_exeext conftest.
$ac_ext
4511 LIBS
=$ac_check_lib_save_LIBS
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
4514 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4515 if test "x$ac_cv_lib_z_deflate" = xyes
; then :
4516 cat >>confdefs.h
<<_ACEOF
4523 as_fn_error $?
"*** zlib missing - install first or check config.log ***" "$LINENO" 5
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling zlib" >&5
4527 $as_echo "$as_me: Enabling zlib" >&6;}
4533 # Check if pam is needed
4535 # Check whether --with-pam was given.
4536 if test "${with_pam+set}" = set; then :
4539 if test -d "$withval/lib"; then
4540 LDFLAGS
="-L${withval}/lib ${LDFLAGS}"
4542 LDFLAGS
="-L${withval} ${LDFLAGS}"
4544 if test -d "$withval/include"; then
4545 CPPFLAGS
="-I${withval}/include ${CPPFLAGS}"
4547 CPPFLAGS
="-I${withval} ${CPPFLAGS}"
4555 # Check whether --enable-pam was given.
4556 if test "${enable_pam+set}" = set; then :
4557 enableval
=$enable_pam;
4558 if test "x$enableval" = "xyes"; then
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_authenticate in -lpam" >&5
4560 $as_echo_n "checking for pam_authenticate in -lpam... " >&6; }
4561 if ${ac_cv_lib_pam_pam_authenticate+:} false
; then :
4562 $as_echo_n "(cached) " >&6
4564 ac_check_lib_save_LIBS
=$LIBS
4566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4569 /* Override any GCC internal prototype to avoid an error.
4570 Use char because int might match the return type of a GCC
4571 builtin and then its argument prototype would still apply. */
4575 char pam_authenticate ();
4579 return pam_authenticate ();
4584 if ac_fn_c_try_link
"$LINENO"; then :
4585 ac_cv_lib_pam_pam_authenticate
=yes
4587 ac_cv_lib_pam_pam_authenticate
=no
4589 rm -f core conftest.err conftest.
$ac_objext \
4590 conftest
$ac_exeext conftest.
$ac_ext
4591 LIBS
=$ac_check_lib_save_LIBS
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_authenticate" >&5
4594 $as_echo "$ac_cv_lib_pam_pam_authenticate" >&6; }
4595 if test "x$ac_cv_lib_pam_pam_authenticate" = xyes
; then :
4596 cat >>confdefs.h
<<_ACEOF
4597 #define HAVE_LIBPAM 1
4603 as_fn_error $?
"*** PAM missing - install first or check config.log ***" "$LINENO" 5
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling PAM" >&5
4607 $as_echo "$as_me: Enabling PAM" >&6;}
4608 for ac_func
in pam_fail_delay
4610 ac_fn_c_check_func
"$LINENO" "pam_fail_delay" "ac_cv_func_pam_fail_delay"
4611 if test "x$ac_cv_func_pam_fail_delay" = xyes
; then :
4612 cat >>confdefs.h
<<_ACEOF
4613 #define HAVE_PAM_FAIL_DELAY 1
4621 $as_echo "#define DISABLE_PAM /**/" >>confdefs.h
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling PAM" >&5
4624 $as_echo "$as_me: Disabling PAM" >&6;}
4629 # disable it by default
4631 $as_echo "#define DISABLE_PAM /**/" >>confdefs.h
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling PAM" >&5
4634 $as_echo "$as_me: Disabling PAM" >&6;}
4640 # Check whether --enable-openpty was given.
4641 if test "${enable_openpty+set}" = set; then :
4642 enableval
=$enable_openpty;
4643 if test "x$enableval" = "xno"; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: Not using openpty" >&5
4645 $as_echo "$as_me: Not using openpty" >&6;}
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: Using openpty if available" >&5
4648 $as_echo "$as_me: Using openpty if available" >&6;}
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
4650 $as_echo_n "checking for library containing openpty... " >&6; }
4651 if ${ac_cv_search_openpty+:} false
; then :
4652 $as_echo_n "(cached) " >&6
4654 ac_func_search_save_LIBS
=$LIBS
4655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4658 /* Override any GCC internal prototype to avoid an error.
4659 Use char because int might match the return type of a GCC
4660 builtin and then its argument prototype would still apply. */
4673 for ac_lib
in '' util
; do
4674 if test -z "$ac_lib"; then
4675 ac_res
="none required"
4678 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4680 if ac_fn_c_try_link
"$LINENO"; then :
4681 ac_cv_search_openpty
=$ac_res
4683 rm -f core conftest.err conftest.
$ac_objext \
4685 if ${ac_cv_search_openpty+:} false
; then :
4689 if ${ac_cv_search_openpty+:} false
; then :
4692 ac_cv_search_openpty
=no
4695 LIBS
=$ac_func_search_save_LIBS
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
4698 $as_echo "$ac_cv_search_openpty" >&6; }
4699 ac_res
=$ac_cv_search_openpty
4700 if test "$ac_res" != no
; then :
4701 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4703 $as_echo "#define HAVE_OPENPTY /**/" >>confdefs.h
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: Using openpty if available" >&5
4712 $as_echo "$as_me: Using openpty if available" >&6;}
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
4714 $as_echo_n "checking for library containing openpty... " >&6; }
4715 if ${ac_cv_search_openpty+:} false
; then :
4716 $as_echo_n "(cached) " >&6
4718 ac_func_search_save_LIBS
=$LIBS
4719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4722 /* Override any GCC internal prototype to avoid an error.
4723 Use char because int might match the return type of a GCC
4724 builtin and then its argument prototype would still apply. */
4737 for ac_lib
in '' util
; do
4738 if test -z "$ac_lib"; then
4739 ac_res
="none required"
4742 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4744 if ac_fn_c_try_link
"$LINENO"; then :
4745 ac_cv_search_openpty
=$ac_res
4747 rm -f core conftest.err conftest.
$ac_objext \
4749 if ${ac_cv_search_openpty+:} false
; then :
4753 if ${ac_cv_search_openpty+:} false
; then :
4756 ac_cv_search_openpty
=no
4759 LIBS
=$ac_func_search_save_LIBS
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
4762 $as_echo "$ac_cv_search_openpty" >&6; }
4763 ac_res
=$ac_cv_search_openpty
4764 if test "$ac_res" != no
; then :
4765 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4766 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
4776 # Check whether --enable-syslog was given.
4777 if test "${enable_syslog+set}" = set; then :
4778 enableval
=$enable_syslog;
4779 if test "x$enableval" = "xno"; then
4781 $as_echo "#define DISABLE_SYSLOG /**/" >>confdefs.h
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling syslog" >&5
4784 $as_echo "$as_me: Disabling syslog" >&6;}
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling syslog" >&5
4787 $as_echo "$as_me: Enabling syslog" >&6;}
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling syslog" >&5
4793 $as_echo "$as_me: Enabling syslog" >&6;}
4799 # Check whether --enable-shadow was given.
4800 if test "${enable_shadow+set}" = set; then :
4801 enableval
=$enable_shadow;
4802 if test "x$enableval" = "xno"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: Not using shadow passwords" >&5
4804 $as_echo "$as_me: Not using shadow passwords" >&6;}
4806 for ac_header
in shadow.h
4808 ac_fn_c_check_header_mongrel
"$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
4809 if test "x$ac_cv_header_shadow_h" = xyes
; then :
4810 cat >>confdefs.h
<<_ACEOF
4811 #define HAVE_SHADOW_H 1
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: Using shadow passwords if available" >&5
4819 $as_echo "$as_me: Using shadow passwords if available" >&6;}
4824 for ac_header
in shadow.h
4826 ac_fn_c_check_header_mongrel
"$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
4827 if test "x$ac_cv_header_shadow_h" = xyes
; then :
4828 cat >>confdefs.h
<<_ACEOF
4829 #define HAVE_SHADOW_H 1
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: Using shadow passwords if available" >&5
4837 $as_echo "$as_me: Using shadow passwords if available" >&6;}
4844 # Checks for header files.
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4846 $as_echo_n "checking for ANSI C header files... " >&6; }
4847 if ${ac_cv_header_stdc+:} false
; then :
4848 $as_echo_n "(cached) " >&6
4850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h. */
4865 if ac_fn_c_try_compile
"$LINENO"; then :
4866 ac_cv_header_stdc
=yes
4868 ac_cv_header_stdc
=no
4870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4872 if test $ac_cv_header_stdc = yes; then
4873 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4880 $EGREP "memchr" >/dev
/null
2>&1; then :
4883 ac_cv_header_stdc
=no
4889 if test $ac_cv_header_stdc = yes; then
4890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4897 $EGREP "free" >/dev
/null
2>&1; then :
4900 ac_cv_header_stdc
=no
4906 if test $ac_cv_header_stdc = yes; then
4907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4908 if test "$cross_compiling" = yes; then :
4911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h. */
4915 #if ((' ' & 0x0FF) == 0x020)
4916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4919 # define ISLOWER(c) \
4920 (('a' <= (c) && (c) <= 'i') \
4921 || ('j' <= (c) && (c) <= 'r') \
4922 || ('s' <= (c) && (c) <= 'z'))
4923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4931 for (i = 0; i < 256; i++)
4932 if (XOR (islower (i), ISLOWER (i))
4933 || toupper (i) != TOUPPER (i))
4938 if ac_fn_c_try_run
"$LINENO"; then :
4941 ac_cv_header_stdc
=no
4943 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4944 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4950 $as_echo "$ac_cv_header_stdc" >&6; }
4951 if test $ac_cv_header_stdc = yes; then
4953 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4958 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4959 if ${ac_cv_header_sys_wait_h+:} false
; then :
4960 $as_echo_n "(cached) " >&6
4962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4964 #include <sys/types.h>
4965 #include <sys/wait.h>
4967 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4970 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4978 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4983 if ac_fn_c_try_compile
"$LINENO"; then :
4984 ac_cv_header_sys_wait_h
=yes
4986 ac_cv_header_sys_wait_h
=no
4988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4991 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4992 if test $ac_cv_header_sys_wait_h = yes; then
4994 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4998 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
5000 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5001 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5002 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5003 cat >>confdefs.h
<<_ACEOF
5004 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5012 # Checks for typedefs, structures, and compiler characteristics.
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5014 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5015 if ${ac_cv_c_const+:} false
; then :
5016 $as_echo_n "(cached) " >&6
5018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5026 /* Ultrix mips cc rejects this sort of thing. */
5027 typedef int charset[2];
5028 const charset cs = { 0, 0 };
5029 /* SunOS 4.1.1 cc rejects this. */
5030 char const *const *pcpcc;
5032 /* NEC SVR4.0.2 mips cc rejects this. */
5033 struct point {int x, y;};
5034 static struct point const zero = {0,0};
5035 /* AIX XL C 1.02.0.0 rejects this.
5036 It does not let you subtract one const X* pointer from another in
5037 an arm of an if-expression whose if-part is not a constant
5039 const char *g = "string";
5040 pcpcc = &g + (g ? g-g : 0);
5041 /* HPUX 7.0 cc rejects these. */
5043 ppc = (char**) pcpcc;
5044 pcpcc = (char const *const *) ppc;
5045 { /* SCO 3.2v4 cc rejects this sort of thing. */
5048 char const *s = 0 ? (char *) 0 : (char const *) 0;
5053 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5055 const int *foo = &x[0];
5058 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5059 typedef const int *iptr;
5063 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5064 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5065 struct s { int j; const int *ap[3]; } bx;
5066 struct s *b = &bx; b->j = 5;
5068 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5072 return !cs[0] && !zero.x;
5079 if ac_fn_c_try_compile
"$LINENO"; then :
5084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5087 $as_echo "$ac_cv_c_const" >&6; }
5088 if test $ac_cv_c_const = no
; then
5090 $as_echo "#define const /**/" >>confdefs.h
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5095 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5096 if ${ac_cv_type_uid_t+:} false
; then :
5097 $as_echo_n "(cached) " >&6
5099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5100 /* end confdefs.h. */
5101 #include <sys/types.h>
5104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5105 $EGREP "uid_t" >/dev
/null
2>&1; then :
5106 ac_cv_type_uid_t
=yes
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5114 $as_echo "$ac_cv_type_uid_t" >&6; }
5115 if test $ac_cv_type_uid_t = no
; then
5117 $as_echo "#define uid_t int" >>confdefs.h
5120 $as_echo "#define gid_t int" >>confdefs.h
5124 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5125 if test "x$ac_cv_type_mode_t" = xyes
; then :
5129 cat >>confdefs.h
<<_ACEOF
5135 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5136 if test "x$ac_cv_type_pid_t" = xyes
; then :
5140 cat >>confdefs.h
<<_ACEOF
5146 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5147 if test "x$ac_cv_type_size_t" = xyes
; then :
5151 cat >>confdefs.h
<<_ACEOF
5152 #define size_t unsigned int
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5158 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5159 if ${ac_cv_header_time+:} false
; then :
5160 $as_echo_n "(cached) " >&6
5162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5164 #include <sys/types.h>
5165 #include <sys/time.h>
5171 if ((struct tm *) 0)
5177 if ac_fn_c_try_compile
"$LINENO"; then :
5178 ac_cv_header_time
=yes
5180 ac_cv_header_time
=no
5182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5185 $as_echo "$ac_cv_header_time" >&6; }
5186 if test $ac_cv_header_time = yes; then
5188 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5193 ac_fn_c_check_type
"$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
5194 if test "x$ac_cv_type_uint8_t" = xyes
; then :
5196 cat >>confdefs.h
<<_ACEOF
5197 #define HAVE_UINT8_T 1
5202 ac_fn_c_check_type
"$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
5203 if test "x$ac_cv_type_u_int8_t" = xyes
; then :
5205 cat >>confdefs.h
<<_ACEOF
5206 #define HAVE_U_INT8_T 1
5211 ac_fn_c_check_type
"$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5212 if test "x$ac_cv_type_uint16_t" = xyes
; then :
5214 cat >>confdefs.h
<<_ACEOF
5215 #define HAVE_UINT16_T 1
5220 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
5221 if test "x$ac_cv_type_u_int16_t" = xyes
; then :
5223 cat >>confdefs.h
<<_ACEOF
5224 #define HAVE_U_INT16_T 1
5229 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5230 if test "x$ac_cv_type_uint32_t" = xyes
; then :
5232 cat >>confdefs.h
<<_ACEOF
5233 #define HAVE_UINT32_T 1
5238 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
5239 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
5241 cat >>confdefs.h
<<_ACEOF
5242 #define HAVE_U_INT32_T 1
5248 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$ac_includes_default"
5249 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
5251 cat >>confdefs.h
<<_ACEOF
5252 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
5258 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
5259 #include <sys/socket.h>
5261 if test "x$ac_cv_type_socklen_t" = xyes
; then :
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
5266 $as_echo_n "checking for socklen_t equivalent... " >&6; }
5267 if ${curl_cv_socklen_t_equiv+:} false
; then :
5268 $as_echo_n "(cached) " >&6
5271 # Systems have either "struct sockaddr *" or
5272 # "void *" as the second argument to getpeername
5273 curl_cv_socklen_t_equiv
=
5274 for arg2
in "struct sockaddr" void
; do
5275 for t
in int size_t unsigned long
"unsigned long"; do
5276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5279 #include <sys/types.h>
5280 #include <sys/socket.h>
5282 int getpeername (int, $arg2 *, $t *);
5289 getpeername(0,0,&len);
5295 if ac_fn_c_try_compile
"$LINENO"; then :
5297 curl_cv_socklen_t_equiv
="$t"
5301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5305 if test "x$curl_cv_socklen_t_equiv" = x
; then
5306 as_fn_error $?
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
5312 $as_echo "$curl_cv_socklen_t_equiv" >&6; }
5314 cat >>confdefs.h
<<_ACEOF
5315 #define socklen_t $curl_cv_socklen_t_equiv
5321 # for the fake-rfc2553 stuff - straight from OpenSSH
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
5324 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
5325 if ${ac_cv_have_struct_sockaddr_storage+:} false
; then :
5326 $as_echo_n "(cached) " >&6
5329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5332 #include <sys/types.h>
5333 #include <sys/socket.h>
5338 struct sockaddr_storage s;
5343 if ac_fn_c_try_compile
"$LINENO"; then :
5344 ac_cv_have_struct_sockaddr_storage
="yes"
5346 ac_cv_have_struct_sockaddr_storage
="no"
5349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
5353 $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
5354 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
5355 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
5360 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
5361 if ${ac_cv_have_struct_sockaddr_in6+:} false
; then :
5362 $as_echo_n "(cached) " >&6
5365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5368 #include <sys/types.h>
5369 #include <netinet/in.h>
5374 struct sockaddr_in6 s; s.sin6_family = 0;
5379 if ac_fn_c_try_compile
"$LINENO"; then :
5380 ac_cv_have_struct_sockaddr_in6
="yes"
5382 ac_cv_have_struct_sockaddr_in6
="no"
5385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
5389 $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
5390 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
5392 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 /**/" >>confdefs.h
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
5397 $as_echo_n "checking for struct in6_addr... " >&6; }
5398 if ${ac_cv_have_struct_in6_addr+:} false
; then :
5399 $as_echo_n "(cached) " >&6
5402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5405 #include <sys/types.h>
5406 #include <netinet/in.h>
5411 struct in6_addr s; s.s6_addr[0] = 0;
5416 if ac_fn_c_try_compile
"$LINENO"; then :
5417 ac_cv_have_struct_in6_addr
="yes"
5419 ac_cv_have_struct_in6_addr
="no"
5422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
5426 $as_echo "$ac_cv_have_struct_in6_addr" >&6; }
5427 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
5429 $as_echo "#define HAVE_STRUCT_IN6_ADDR /**/" >>confdefs.h
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
5434 $as_echo_n "checking for struct addrinfo... " >&6; }
5435 if ${ac_cv_have_struct_addrinfo+:} false
; then :
5436 $as_echo_n "(cached) " >&6
5439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5440 /* end confdefs.h. */
5442 #include <sys/types.h>
5443 #include <sys/socket.h>
5449 struct addrinfo s; s.ai_flags = AI_PASSIVE;
5454 if ac_fn_c_try_compile
"$LINENO"; then :
5455 ac_cv_have_struct_addrinfo
="yes"
5457 ac_cv_have_struct_addrinfo
="no"
5460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
5464 $as_echo "$ac_cv_have_struct_addrinfo" >&6; }
5465 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
5467 $as_echo "#define HAVE_STRUCT_ADDRINFO /**/" >>confdefs.h
5472 # IRIX has a const char return value for gai_strerror()
5473 for ac_func
in gai_strerror
5475 ac_fn_c_check_func
"$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
5476 if test "x$ac_cv_func_gai_strerror" = xyes
; then :
5477 cat >>confdefs.h
<<_ACEOF
5478 #define HAVE_GAI_STRERROR 1
5481 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
5483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5486 #include <sys/types.h>
5487 #include <sys/socket.h>
5490 const char *gai_strerror(int);
5497 str = gai_strerror(0);
5502 if ac_fn_c_try_compile
"$LINENO"; then :
5505 $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
5508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5515 ac_fn_c_check_member
"$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
5516 #include <sys/types.h>
5522 if test "x$ac_cv_member_struct_utmp_ut_host" = xyes
; then :
5524 cat >>confdefs.h
<<_ACEOF
5525 #define HAVE_STRUCT_UTMP_UT_HOST 1
5530 ac_fn_c_check_member
"$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
5531 #include <sys/types.h>
5537 if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes
; then :
5539 cat >>confdefs.h
<<_ACEOF
5540 #define HAVE_STRUCT_UTMP_UT_PID 1
5545 ac_fn_c_check_member
"$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
5546 #include <sys/types.h>
5552 if test "x$ac_cv_member_struct_utmp_ut_type" = xyes
; then :
5554 cat >>confdefs.h
<<_ACEOF
5555 #define HAVE_STRUCT_UTMP_UT_TYPE 1
5560 ac_fn_c_check_member
"$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "
5561 #include <sys/types.h>
5567 if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes
; then :
5569 cat >>confdefs.h
<<_ACEOF
5570 #define HAVE_STRUCT_UTMP_UT_TV 1
5575 ac_fn_c_check_member
"$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
5576 #include <sys/types.h>
5582 if test "x$ac_cv_member_struct_utmp_ut_id" = xyes
; then :
5584 cat >>confdefs.h
<<_ACEOF
5585 #define HAVE_STRUCT_UTMP_UT_ID 1
5590 ac_fn_c_check_member
"$LINENO" "struct utmp" "ut_addr" "ac_cv_member_struct_utmp_ut_addr" "
5591 #include <sys/types.h>
5597 if test "x$ac_cv_member_struct_utmp_ut_addr" = xyes
; then :
5599 cat >>confdefs.h
<<_ACEOF
5600 #define HAVE_STRUCT_UTMP_UT_ADDR 1
5605 ac_fn_c_check_member
"$LINENO" "struct utmp" "ut_addr_v6" "ac_cv_member_struct_utmp_ut_addr_v6" "
5606 #include <sys/types.h>
5612 if test "x$ac_cv_member_struct_utmp_ut_addr_v6" = xyes
; then :
5614 cat >>confdefs.h
<<_ACEOF
5615 #define HAVE_STRUCT_UTMP_UT_ADDR_V6 1
5620 ac_fn_c_check_member
"$LINENO" "struct utmp" "ut_exit" "ac_cv_member_struct_utmp_ut_exit" "
5621 #include <sys/types.h>
5627 if test "x$ac_cv_member_struct_utmp_ut_exit" = xyes
; then :
5629 cat >>confdefs.h
<<_ACEOF
5630 #define HAVE_STRUCT_UTMP_UT_EXIT 1
5635 ac_fn_c_check_member
"$LINENO" "struct utmp" "ut_time" "ac_cv_member_struct_utmp_ut_time" "
5636 #include <sys/types.h>
5642 if test "x$ac_cv_member_struct_utmp_ut_time" = xyes
; then :
5644 cat >>confdefs.h
<<_ACEOF
5645 #define HAVE_STRUCT_UTMP_UT_TIME 1
5652 ac_fn_c_check_member
"$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "
5653 #include <sys/types.h>
5654 #include <sys/socket.h>
5660 if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes
; then :
5662 cat >>confdefs.h
<<_ACEOF
5663 #define HAVE_STRUCT_UTMPX_UT_HOST 1
5668 ac_fn_c_check_member
"$LINENO" "struct utmpx" "ut_syslen" "ac_cv_member_struct_utmpx_ut_syslen" "
5669 #include <sys/types.h>
5670 #include <sys/socket.h>
5676 if test "x$ac_cv_member_struct_utmpx_ut_syslen" = xyes
; then :
5678 cat >>confdefs.h
<<_ACEOF
5679 #define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
5684 ac_fn_c_check_member
"$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" "
5685 #include <sys/types.h>
5686 #include <sys/socket.h>
5692 if test "x$ac_cv_member_struct_utmpx_ut_type" = xyes
; then :
5694 cat >>confdefs.h
<<_ACEOF
5695 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
5700 ac_fn_c_check_member
"$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "
5701 #include <sys/types.h>
5702 #include <sys/socket.h>
5708 if test "x$ac_cv_member_struct_utmpx_ut_id" = xyes
; then :
5710 cat >>confdefs.h
<<_ACEOF
5711 #define HAVE_STRUCT_UTMPX_UT_ID 1
5716 ac_fn_c_check_member
"$LINENO" "struct utmpx" "ut_addr" "ac_cv_member_struct_utmpx_ut_addr" "
5717 #include <sys/types.h>
5718 #include <sys/socket.h>
5724 if test "x$ac_cv_member_struct_utmpx_ut_addr" = xyes
; then :
5726 cat >>confdefs.h
<<_ACEOF
5727 #define HAVE_STRUCT_UTMPX_UT_ADDR 1
5732 ac_fn_c_check_member
"$LINENO" "struct utmpx" "ut_addr_v6" "ac_cv_member_struct_utmpx_ut_addr_v6" "
5733 #include <sys/types.h>
5734 #include <sys/socket.h>
5740 if test "x$ac_cv_member_struct_utmpx_ut_addr_v6" = xyes
; then :
5742 cat >>confdefs.h
<<_ACEOF
5743 #define HAVE_STRUCT_UTMPX_UT_ADDR_V6 1
5748 ac_fn_c_check_member
"$LINENO" "struct utmpx" "ut_time" "ac_cv_member_struct_utmpx_ut_time" "
5749 #include <sys/types.h>
5750 #include <sys/socket.h>
5756 if test "x$ac_cv_member_struct_utmpx_ut_time" = xyes
; then :
5758 cat >>confdefs.h
<<_ACEOF
5759 #define HAVE_STRUCT_UTMPX_UT_TIME 1
5764 ac_fn_c_check_member
"$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "
5765 #include <sys/types.h>
5766 #include <sys/socket.h>
5772 if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes
; then :
5774 cat >>confdefs.h
<<_ACEOF
5775 #define HAVE_STRUCT_UTMPX_UT_TV 1
5782 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "
5783 #include <sys/types.h>
5784 #include <sys/socket.h>
5787 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
; then :
5789 cat >>confdefs.h
<<_ACEOF
5790 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
5797 for ac_func
in endutent getutent getutid getutline pututline setutent
5799 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5800 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5801 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5802 cat >>confdefs.h
<<_ACEOF
5803 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5809 for ac_func
in utmpname
5811 ac_fn_c_check_func
"$LINENO" "utmpname" "ac_cv_func_utmpname"
5812 if test "x$ac_cv_func_utmpname" = xyes
; then :
5813 cat >>confdefs.h
<<_ACEOF
5814 #define HAVE_UTMPNAME 1
5820 for ac_func
in endutxent getutxent getutxid getutxline pututxline
5822 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5823 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5824 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5825 cat >>confdefs.h
<<_ACEOF
5826 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5832 for ac_func
in setutxent utmpxname
5834 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5835 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5836 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5837 cat >>confdefs.h
<<_ACEOF
5838 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5844 for ac_func
in logout updwtmp logwtmp
5846 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5847 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5848 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5849 cat >>confdefs.h
<<_ACEOF
5850 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5857 # Check whether --enable-bundled-libtom was given.
5858 if test "${enable_bundled_libtom+set}" = set; then :
5859 enableval
=$enable_bundled_libtom;
5860 if test "x$enableval" = "xyes"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: Forcing bundled libtom*" >&5
5863 $as_echo "$as_me: Forcing bundled libtom*" >&6;}
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_exptmod in -ltommath" >&5
5867 $as_echo_n "checking for mp_exptmod in -ltommath... " >&6; }
5868 if ${ac_cv_lib_tommath_mp_exptmod+:} false
; then :
5869 $as_echo_n "(cached) " >&6
5871 ac_check_lib_save_LIBS
=$LIBS
5872 LIBS
="-ltommath $LIBS"
5873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5876 /* Override any GCC internal prototype to avoid an error.
5877 Use char because int might match the return type of a GCC
5878 builtin and then its argument prototype would still apply. */
5886 return mp_exptmod ();
5891 if ac_fn_c_try_link
"$LINENO"; then :
5892 ac_cv_lib_tommath_mp_exptmod
=yes
5894 ac_cv_lib_tommath_mp_exptmod
=no
5896 rm -f core conftest.err conftest.
$ac_objext \
5897 conftest
$ac_exeext conftest.
$ac_ext
5898 LIBS
=$ac_check_lib_save_LIBS
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tommath_mp_exptmod" >&5
5901 $as_echo "$ac_cv_lib_tommath_mp_exptmod" >&6; }
5902 if test "x$ac_cv_lib_tommath_mp_exptmod" = xyes
; then :
5903 cat >>confdefs.h
<<_ACEOF
5904 #define HAVE_LIBTOMMATH 1
5907 LIBS
="-ltommath $LIBS"
5910 as_fn_error $?
"Missing system libtomcrypt and --disable-bundled-libtom was specified" "$LINENO" 5
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for register_cipher in -ltomcrypt" >&5
5914 $as_echo_n "checking for register_cipher in -ltomcrypt... " >&6; }
5915 if ${ac_cv_lib_tomcrypt_register_cipher+:} false
; then :
5916 $as_echo_n "(cached) " >&6
5918 ac_check_lib_save_LIBS
=$LIBS
5919 LIBS
="-ltomcrypt $LIBS"
5920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h. */
5923 /* Override any GCC internal prototype to avoid an error.
5924 Use char because int might match the return type of a GCC
5925 builtin and then its argument prototype would still apply. */
5929 char register_cipher ();
5933 return register_cipher ();
5938 if ac_fn_c_try_link
"$LINENO"; then :
5939 ac_cv_lib_tomcrypt_register_cipher
=yes
5941 ac_cv_lib_tomcrypt_register_cipher
=no
5943 rm -f core conftest.err conftest.
$ac_objext \
5944 conftest
$ac_exeext conftest.
$ac_ext
5945 LIBS
=$ac_check_lib_save_LIBS
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_register_cipher" >&5
5948 $as_echo "$ac_cv_lib_tomcrypt_register_cipher" >&6; }
5949 if test "x$ac_cv_lib_tomcrypt_register_cipher" = xyes
; then :
5950 cat >>confdefs.h
<<_ACEOF
5951 #define HAVE_LIBTOMCRYPT 1
5954 LIBS
="-ltomcrypt $LIBS"
5957 as_fn_error $?
"Missing system libtomcrypt and --disable-bundled-libtom was specified" "$LINENO" 5
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_exptmod in -ltommath" >&5
5966 $as_echo_n "checking for mp_exptmod in -ltommath... " >&6; }
5967 if ${ac_cv_lib_tommath_mp_exptmod+:} false
; then :
5968 $as_echo_n "(cached) " >&6
5970 ac_check_lib_save_LIBS
=$LIBS
5971 LIBS
="-ltommath $LIBS"
5972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5973 /* end confdefs.h. */
5975 /* Override any GCC internal prototype to avoid an error.
5976 Use char because int might match the return type of a GCC
5977 builtin and then its argument prototype would still apply. */
5985 return mp_exptmod ();
5990 if ac_fn_c_try_link
"$LINENO"; then :
5991 ac_cv_lib_tommath_mp_exptmod
=yes
5993 ac_cv_lib_tommath_mp_exptmod
=no
5995 rm -f core conftest.err conftest.
$ac_objext \
5996 conftest
$ac_exeext conftest.
$ac_ext
5997 LIBS
=$ac_check_lib_save_LIBS
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tommath_mp_exptmod" >&5
6000 $as_echo "$ac_cv_lib_tommath_mp_exptmod" >&6; }
6001 if test "x$ac_cv_lib_tommath_mp_exptmod" = xyes
; then :
6002 cat >>confdefs.h
<<_ACEOF
6003 #define HAVE_LIBTOMMATH 1
6006 LIBS
="-ltommath $LIBS"
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for register_cipher in -ltomcrypt" >&5
6013 $as_echo_n "checking for register_cipher in -ltomcrypt... " >&6; }
6014 if ${ac_cv_lib_tomcrypt_register_cipher+:} false
; then :
6015 $as_echo_n "(cached) " >&6
6017 ac_check_lib_save_LIBS
=$LIBS
6018 LIBS
="-ltomcrypt $LIBS"
6019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h. */
6022 /* Override any GCC internal prototype to avoid an error.
6023 Use char because int might match the return type of a GCC
6024 builtin and then its argument prototype would still apply. */
6028 char register_cipher ();
6032 return register_cipher ();
6037 if ac_fn_c_try_link
"$LINENO"; then :
6038 ac_cv_lib_tomcrypt_register_cipher
=yes
6040 ac_cv_lib_tomcrypt_register_cipher
=no
6042 rm -f core conftest.err conftest.
$ac_objext \
6043 conftest
$ac_exeext conftest.
$ac_ext
6044 LIBS
=$ac_check_lib_save_LIBS
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_register_cipher" >&5
6047 $as_echo "$ac_cv_lib_tomcrypt_register_cipher" >&6; }
6048 if test "x$ac_cv_lib_tomcrypt_register_cipher" = xyes
; then :
6049 cat >>confdefs.h
<<_ACEOF
6050 #define HAVE_LIBTOMCRYPT 1
6053 LIBS
="-ltomcrypt $LIBS"
6064 if test $BUNDLED_LIBTOM = 1 ; then
6066 $as_echo "#define BUNDLED_LIBTOM /**/" >>confdefs.h
6073 # Check whether --enable-lastlog was given.
6074 if test "${enable_lastlog+set}" = set; then :
6075 enableval
=$enable_lastlog;
6076 $as_echo "#define DISABLE_LASTLOG /**/" >>confdefs.h
6081 # Check whether --enable-utmp was given.
6082 if test "${enable_utmp+set}" = set; then :
6083 enableval
=$enable_utmp;
6084 $as_echo "#define DISABLE_UTMP /**/" >>confdefs.h
6089 # Check whether --enable-utmpx was given.
6090 if test "${enable_utmpx+set}" = set; then :
6091 enableval
=$enable_utmpx;
6092 $as_echo "#define DISABLE_UTMPX /**/" >>confdefs.h
6097 # Check whether --enable-wtmp was given.
6098 if test "${enable_wtmp+set}" = set; then :
6099 enableval
=$enable_wtmp;
6100 $as_echo "#define DISABLE_WTMP /**/" >>confdefs.h
6105 # Check whether --enable-wtmpx was given.
6106 if test "${enable_wtmpx+set}" = set; then :
6107 enableval
=$enable_wtmpx;
6108 $as_echo "#define DISABLE_WTMPX /**/" >>confdefs.h
6113 # Check whether --enable-loginfunc was given.
6114 if test "${enable_loginfunc+set}" = set; then :
6115 enableval
=$enable_loginfunc; no_loginfunc_check
=1
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: Not using login() etc" >&5
6117 $as_echo "$as_me: Not using login() etc" >&6;}
6121 # Check whether --enable-pututline was given.
6122 if test "${enable_pututline+set}" = set; then :
6123 enableval
=$enable_pututline;
6124 $as_echo "#define DISABLE_PUTUTLINE /**/" >>confdefs.h
6129 # Check whether --enable-pututxline was given.
6130 if test "${enable_pututxline+set}" = set; then :
6131 enableval
=$enable_pututxline;
6132 $as_echo "#define DISABLE_PUTUTXLINE /**/" >>confdefs.h
6138 # Check whether --with-lastlog was given.
6139 if test "${with_lastlog+set}" = set; then :
6140 withval
=$with_lastlog;
6141 if test "x$withval" = "xno" ; then
6142 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
6145 conf_lastlog_location
=$withval
6152 if test -z "$no_loginfunc_check"; then
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
6154 $as_echo_n "checking for library containing login... " >&6; }
6155 if ${ac_cv_search_login+:} false
; then :
6156 $as_echo_n "(cached) " >&6
6158 ac_func_search_save_LIBS
=$LIBS
6159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h. */
6162 /* Override any GCC internal prototype to avoid an error.
6163 Use char because int might match the return type of a GCC
6164 builtin and then its argument prototype would still apply. */
6177 for ac_lib
in '' util bsd
; do
6178 if test -z "$ac_lib"; then
6179 ac_res
="none required"
6182 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6184 if ac_fn_c_try_link
"$LINENO"; then :
6185 ac_cv_search_login
=$ac_res
6187 rm -f core conftest.err conftest.
$ac_objext \
6189 if ${ac_cv_search_login+:} false
; then :
6193 if ${ac_cv_search_login+:} false
; then :
6196 ac_cv_search_login
=no
6199 LIBS
=$ac_func_search_save_LIBS
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
6202 $as_echo "$ac_cv_search_login" >&6; }
6203 ac_res
=$ac_cv_search_login
6204 if test "$ac_res" != no
; then :
6205 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6207 $as_echo "#define HAVE_LOGIN /**/" >>confdefs.h
6211 for ac_func
in logout updwtmp logwtmp
6213 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6214 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6215 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6216 cat >>confdefs.h
<<_ACEOF
6217 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
6227 $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
6228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6231 #include <sys/types.h>
6233 #ifdef HAVE_LASTLOG_H
6234 # include <lastlog.h>
6246 char *lastlog = LASTLOG_FILE;
6251 if ac_fn_c_try_compile
"$LINENO"; then :
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6253 $as_echo "yes" >&6; }
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 $as_echo "no" >&6; }
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
6259 $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
6260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6263 #include <sys/types.h>
6265 #ifdef HAVE_LASTLOG_H
6266 # include <lastlog.h>
6275 char *lastlog = _PATH_LASTLOG;
6280 if ac_fn_c_try_compile
"$LINENO"; then :
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6282 $as_echo "yes" >&6; }
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6287 system_lastlog_path
=no
6290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6296 if test -z "$conf_lastlog_location"; then
6297 if test x
"$system_lastlog_path" = x
"no" ; then
6298 for f
in /var
/log
/lastlog
/usr
/adm
/lastlog
/var
/adm
/lastlog
/etc
/security
/lastlog
; do
6299 if (test -d "$f" ||
test -f "$f") ; then
6300 conf_lastlog_location
=$f
6303 if test -z "$conf_lastlog_location"; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
6305 $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
6310 if test -n "$conf_lastlog_location"; then
6312 cat >>confdefs.h
<<_ACEOF
6313 #define CONF_LASTLOG_FILE "$conf_lastlog_location"
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
6319 $as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
6320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6321 /* end confdefs.h. */
6323 #include <sys/types.h>
6332 char *utmp = UTMP_FILE;
6337 if ac_fn_c_try_compile
"$LINENO"; then :
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6339 $as_echo "yes" >&6; }
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 $as_echo "no" >&6; }
6346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6347 if test -z "$conf_utmp_location"; then
6348 if test x
"$system_utmp_path" = x
"no" ; then
6349 for f
in /etc
/utmp
/usr
/adm
/utmp
/var
/run
/utmp
; do
6350 if test -f $f ; then
6351 conf_utmp_location
=$f
6354 if test -z "$conf_utmp_location"; then
6355 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
6360 if test -n "$conf_utmp_location"; then
6362 cat >>confdefs.h
<<_ACEOF
6363 #define CONF_UTMP_FILE "$conf_utmp_location"
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
6369 $as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
6370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6371 /* end confdefs.h. */
6373 #include <sys/types.h>
6384 char *wtmp = WTMP_FILE;
6389 if ac_fn_c_try_compile
"$LINENO"; then :
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6391 $as_echo "yes" >&6; }
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394 $as_echo "no" >&6; }
6398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6399 if test -z "$conf_wtmp_location"; then
6400 if test x
"$system_wtmp_path" = x
"no" ; then
6401 for f
in /usr
/adm
/wtmp
/var
/log
/wtmp
; do
6402 if test -f $f ; then
6403 conf_wtmp_location
=$f
6406 if test -z "$conf_wtmp_location"; then
6407 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
6412 if test -n "$conf_wtmp_location"; then
6414 cat >>confdefs.h
<<_ACEOF
6415 #define CONF_WTMP_FILE "$conf_wtmp_location"
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMPX_FILE" >&5
6422 $as_echo_n "checking if your system defines UTMPX_FILE... " >&6; }
6423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6426 #include <sys/types.h>
6438 char *utmpx = UTMPX_FILE;
6443 if ac_fn_c_try_compile
"$LINENO"; then :
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6445 $as_echo "yes" >&6; }
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 $as_echo "no" >&6; }
6449 system_utmpx_path
=no
6452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6453 if test -z "$conf_utmpx_location"; then
6454 if test x
"$system_utmpx_path" = x
"no" ; then
6455 $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
6460 cat >>confdefs.h
<<_ACEOF
6461 #define CONF_UTMPX_FILE "$conf_utmpx_location"
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
6467 $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
6468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6471 #include <sys/types.h>
6485 char *wtmpx = WTMPX_FILE;
6490 if ac_fn_c_try_compile
"$LINENO"; then :
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6492 $as_echo "yes" >&6; }
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495 $as_echo "no" >&6; }
6496 system_wtmpx_path
=no
6499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6500 if test -z "$conf_wtmpx_location"; then
6501 if test x
"$system_wtmpx_path" = x
"no" ; then
6502 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
6507 cat >>confdefs.h
<<_ACEOF
6508 #define CONF_WTMPX_FILE "$conf_wtmpx_location"
6513 # Checks for library functions.
6514 if test $ac_cv_c_compiler_gnu = yes; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6516 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
6517 if ${ac_cv_prog_gcc_traditional+:} false
; then :
6518 $as_echo_n "(cached) " >&6
6520 ac_pattern
="Autoconf.*'x'"
6521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6527 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
6528 ac_cv_prog_gcc_traditional
=yes
6530 ac_cv_prog_gcc_traditional
=no
6535 if test $ac_cv_prog_gcc_traditional = no
; then
6536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6542 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
6543 ac_cv_prog_gcc_traditional
=yes
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6550 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6551 if test $ac_cv_prog_gcc_traditional = yes; then
6552 CC
="$CC -traditional"
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6557 $as_echo_n "checking for working memcmp... " >&6; }
6558 if ${ac_cv_func_memcmp_working+:} false
; then :
6559 $as_echo_n "(cached) " >&6
6561 if test "$cross_compiling" = yes; then :
6562 ac_cv_func_memcmp_working
=no
6564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6566 $ac_includes_default
6571 /* Some versions of memcmp are not 8-bit clean. */
6572 char c0 = '\100', c1 = '\200', c2 = '\201';
6573 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6576 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6577 or more and with at least one buffer not starting on a 4-byte boundary.
6578 William Lewis provided this test program. */
6583 for (i = 0; i < 4; i++)
6587 strcpy (a, "--------01111111");
6588 strcpy (b, "--------10000000");
6589 if (memcmp (a, b, 16) >= 0)
6599 if ac_fn_c_try_run
"$LINENO"; then :
6600 ac_cv_func_memcmp_working
=yes
6602 ac_cv_func_memcmp_working
=no
6604 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6605 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6610 $as_echo "$ac_cv_func_memcmp_working" >&6; }
6611 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
6612 *" memcmp.$ac_objext "* ) ;;
6613 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
6618 for ac_header
in sys
/select.h sys
/socket.h
6620 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6621 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6622 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6623 cat >>confdefs.h
<<_ACEOF
6624 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
6632 $as_echo_n "checking types of arguments for select... " >&6; }
6633 if ${ac_cv_func_select_args+:} false
; then :
6634 $as_echo_n "(cached) " >&6
6636 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
6637 for ac_arg1
in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
6638 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
6639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6641 $ac_includes_default
6642 #ifdef HAVE_SYS_SELECT_H
6643 # include <sys/select.h>
6645 #ifdef HAVE_SYS_SOCKET_H
6646 # include <sys/socket.h>
6652 extern int select ($ac_arg1,
6653 $ac_arg234, $ac_arg234, $ac_arg234,
6659 if ac_fn_c_try_compile
"$LINENO"; then :
6660 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
6662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6666 # Provide a safe default value.
6667 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
6671 $as_echo "$ac_cv_func_select_args" >&6; }
6672 ac_save_IFS
=$IFS; IFS
=','
6673 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
6677 cat >>confdefs.h
<<_ACEOF
6678 #define SELECT_TYPE_ARG1 $1
6682 cat >>confdefs.h
<<_ACEOF
6683 #define SELECT_TYPE_ARG234 ($2)
6687 cat >>confdefs.h
<<_ACEOF
6688 #define SELECT_TYPE_ARG5 ($3)
6693 for ac_func
in dup2 getspnam getusershell memset putenv
select socket strdup clearenv strlcpy strlcat daemon
basename _getpty getaddrinfo freeaddrinfo getnameinfo fork writev
6695 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6696 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6697 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6698 cat >>confdefs.h
<<_ACEOF
6699 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
6707 $as_echo_n "checking for library containing basename... " >&6; }
6708 if ${ac_cv_search_basename+:} false
; then :
6709 $as_echo_n "(cached) " >&6
6711 ac_func_search_save_LIBS
=$LIBS
6712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6713 /* end confdefs.h. */
6715 /* Override any GCC internal prototype to avoid an error.
6716 Use char because int might match the return type of a GCC
6717 builtin and then its argument prototype would still apply. */
6730 for ac_lib
in '' gen
; do
6731 if test -z "$ac_lib"; then
6732 ac_res
="none required"
6735 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6737 if ac_fn_c_try_link
"$LINENO"; then :
6738 ac_cv_search_basename
=$ac_res
6740 rm -f core conftest.err conftest.
$ac_objext \
6742 if ${ac_cv_search_basename+:} false
; then :
6746 if ${ac_cv_search_basename+:} false
; then :
6749 ac_cv_search_basename
=no
6752 LIBS
=$ac_func_search_save_LIBS
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
6755 $as_echo "$ac_cv_search_basename" >&6; }
6756 ac_res
=$ac_cv_search_basename
6757 if test "$ac_res" != no
; then :
6758 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6759 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
6764 # Solaris needs ptmx
6765 if test -z "$no_ptmx_check" ; then
6766 if test x
"$cross_compiling" = x
"no" ; then
6767 if test -e /dev
/ptmx
; then
6769 $as_echo "#define USE_DEV_PTMX /**/" >>confdefs.h
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: Not checking for /dev/ptmx, we're cross-compiling" >&5
6774 $as_echo "$as_me: Not checking for /dev/ptmx, we're cross-compiling" >&6;}
6778 if test -z "$no_ptc_check" ; then
6779 if test x
"$cross_compiling" = x
"no" ; then
6780 if test -e /dev
/ptc
; then
6782 $as_echo "#define HAVE_DEV_PTS_AND_PTC /**/" >>confdefs.h
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: Not checking for /dev/ptc & /dev/pts since we're cross-compiling" >&5
6787 $as_echo "$as_me: Not checking for /dev/ptc & /dev/pts since we're cross-compiling" >&6;}
6793 # XXX there must be a nicer way to do this
6794 as_dir
=libtomcrypt
/src
/ciphers
/aes
; as_fn_mkdir_p
6795 as_dir
=libtomcrypt
/src
/ciphers
/safer
; as_fn_mkdir_p
6796 as_dir
=libtomcrypt
/src
/ciphers
/twofish
; as_fn_mkdir_p
6797 as_dir
=libtomcrypt
/src
/encauth
/ccm
; as_fn_mkdir_p
6798 as_dir
=libtomcrypt
/src
/encauth
/eax
; as_fn_mkdir_p
6799 as_dir
=libtomcrypt
/src
/encauth
/gcm
; as_fn_mkdir_p
6800 as_dir
=libtomcrypt
/src
/encauth
/ocb
; as_fn_mkdir_p
6801 as_dir
=libtomcrypt
/src
/hashes
; as_fn_mkdir_p
6802 as_dir
=libtomcrypt
/src
/hashes
/chc
; as_fn_mkdir_p
6803 as_dir
=libtomcrypt
/src
/hashes
/helper
; as_fn_mkdir_p
6804 as_dir
=libtomcrypt
/src
/hashes
/sha2
; as_fn_mkdir_p
6805 as_dir
=libtomcrypt
/src
/hashes
/whirl
; as_fn_mkdir_p
6806 as_dir
=libtomcrypt
/src
/mac
/hmac
; as_fn_mkdir_p
6807 as_dir
=libtomcrypt
/src
/mac
/omac
; as_fn_mkdir_p
6808 as_dir
=libtomcrypt
/src
/mac
/pelican
; as_fn_mkdir_p
6809 as_dir
=libtomcrypt
/src
/mac
/pmac
; as_fn_mkdir_p
6810 as_dir
=libtomcrypt
/src
/mac
/f9
; as_fn_mkdir_p
6811 as_dir
=libtomcrypt
/src
/mac
/xcbc
; as_fn_mkdir_p
6812 as_dir
=libtomcrypt
/src
/math
/fp
; as_fn_mkdir_p
6813 as_dir
=libtomcrypt
/src
/misc
/base64
; as_fn_mkdir_p
6814 as_dir
=libtomcrypt
/src
/misc
/crypt; as_fn_mkdir_p
6815 as_dir
=libtomcrypt
/src
/misc
/mpi
; as_fn_mkdir_p
6816 as_dir
=libtomcrypt
/src
/misc
/pkcs5
; as_fn_mkdir_p
6817 as_dir
=libtomcrypt
/src
/modes
/cbc
; as_fn_mkdir_p
6818 as_dir
=libtomcrypt
/src
/modes
/cfb
; as_fn_mkdir_p
6819 as_dir
=libtomcrypt
/src
/modes
/ctr
; as_fn_mkdir_p
6820 as_dir
=libtomcrypt
/src
/modes
/ecb
; as_fn_mkdir_p
6821 as_dir
=libtomcrypt
/src
/modes
/ofb
; as_fn_mkdir_p
6822 as_dir
=libtomcrypt
/src
/modes
/f8
; as_fn_mkdir_p
6823 as_dir
=libtomcrypt
/src
/modes
/lrw
; as_fn_mkdir_p
6824 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/bit
; as_fn_mkdir_p
6825 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/boolean
; as_fn_mkdir_p
6826 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/choice
; as_fn_mkdir_p
6827 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/ia5
; as_fn_mkdir_p
6828 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/integer
; as_fn_mkdir_p
6829 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/object_identifier
; as_fn_mkdir_p
6830 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/octet
; as_fn_mkdir_p
6831 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/printable_string
; as_fn_mkdir_p
6832 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/sequence
; as_fn_mkdir_p
6833 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/set; as_fn_mkdir_p
6834 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/short_integer
; as_fn_mkdir_p
6835 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/utctime
; as_fn_mkdir_p
6836 as_dir
=libtomcrypt
/src
/pk
/asn
1/der
/utf8
; as_fn_mkdir_p
6837 as_dir
=libtomcrypt
/src
/pk
/dh
; as_fn_mkdir_p
6838 as_dir
=libtomcrypt
/src
/pk
/dsa
; as_fn_mkdir_p
6839 as_dir
=libtomcrypt
/src
/pk
/ecc
; as_fn_mkdir_p
6840 as_dir
=libtomcrypt
/src
/pk
/katja
; as_fn_mkdir_p
6841 as_dir
=libtomcrypt
/src
/pk
/pkcs1
; as_fn_mkdir_p
6842 as_dir
=libtomcrypt
/src
/pk
/rsa
; as_fn_mkdir_p
6843 as_dir
=libtomcrypt
/src
/prngs
; as_fn_mkdir_p
6844 ac_config_headers
="$ac_config_headers config.h"
6846 ac_config_files
="$ac_config_files Makefile libtomcrypt/Makefile libtommath/Makefile"
6848 cat >confcache
<<\_ACEOF
6849 # This file is a shell script that caches the results of configure
6850 # tests run on this system so they can be shared between configure
6851 # scripts and configure runs, see configure's option --config-cache.
6852 # It is not useful on other systems. If it contains results you don't
6853 # want to keep, you may remove or edit it.
6855 # config.status only pays attention to the cache file if you give it
6856 # the --recheck option to rerun configure.
6858 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6859 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6864 # The following way of writing the cache mishandles newlines in values,
6865 # but we know of no workaround that is simple, portable, and efficient.
6866 # So, we kill variables containing newlines.
6867 # Ultrix sh set writes to stderr and can't be redirected directly,
6868 # and sets the high bit in the cache file unless we assign to the vars.
6870 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6871 eval ac_val
=\$
$ac_var
6875 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6876 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6879 _ | IFS | as_nl
) ;; #(
6880 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6881 *) { eval $ac_var=; unset $ac_var;} ;;
6887 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6888 *${as_nl}ac_space
=\
*)
6889 # `set' does not quote correctly, so add quotes: double-quote
6890 # substitution turns \\\\ into \\, and sed turns \\ into \.
6893 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6896 # `set' quotes correctly as required by POSIX, so do not add quotes.
6897 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6906 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6908 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6910 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6911 if test -w "$cache_file"; then
6912 if test "x$cache_file" != "x/dev/null"; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6914 $as_echo "$as_me: updating cache $cache_file" >&6;}
6915 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
6916 cat confcache
>"$cache_file"
6918 case $cache_file in #(
6920 mv -f confcache
"$cache_file"$$
&&
6921 mv -f "$cache_file"$$
"$cache_file" ;; #(
6923 mv -f confcache
"$cache_file" ;;
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6929 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6934 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6935 # Let make expand exec_prefix.
6936 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6938 DEFS
=-DHAVE_CONFIG_H
6943 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6944 # 1. Remove the extension, and $U if already installed.
6945 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
6946 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
6947 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6948 # will be set to the directory where LIBOBJS objects are built.
6949 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6950 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
6954 LTLIBOBJS
=$ac_ltlibobjs
6958 : "${CONFIG_STATUS=./config.status}"
6960 ac_clean_files_save
=$ac_clean_files
6961 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6963 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6965 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6967 # Generated by $as_me.
6968 # Run this file to recreate the current configuration.
6969 # Compiler output produced by configure, useful for debugging
6970 # configure, is in config.log if it exists.
6976 SHELL=\${CONFIG_SHELL-$SHELL}
6979 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
6980 ## -------------------- ##
6981 ## M4sh Initialization. ##
6982 ## -------------------- ##
6984 # Be more Bourne compatible
6985 DUALCASE
=1; export DUALCASE
# for MKS sh
6986 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
6989 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6990 # is contrary to our usage. Disable this feature.
6991 alias -g '${1+"$@"}'='"$@"'
6992 setopt NO_GLOB_SUBST
6994 case `(set -o) 2>/dev/null` in #(
7006 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7007 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7008 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7009 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7010 # Prefer a ksh shell builtin over an external printf program on Solaris,
7011 # but without wasting forks for bash or zsh.
7012 if test -z "$BASH_VERSION$ZSH_VERSION" \
7013 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7014 as_echo='print
-r --'
7015 as_echo_n='print
-rn --'
7016 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7017 as_echo='printf %s
\n'
7018 as_echo_n='printf %s
'
7020 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7021 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7022 as_echo_n='/usr
/ucb
/echo -n'
7024 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7025 as_echo_n_body='eval
7029 expr "X$arg" : "X\\(.*\\)$as_nl";
7030 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7032 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7034 export as_echo_n_body
7035 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7038 as_echo='sh
-c $as_echo_body as_echo
'
7041 # The user is always right.
7042 if test "${PATH_SEPARATOR+set}" != set; then
7044 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7045 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7052 # We need space, tab and new line, in precisely that order. Quoting is
7053 # there to prevent editors from complaining about space-tab.
7054 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7055 # splitting by setting IFS to empty value.)
7058 # Find who we are. Look in the path if we contain no directory separator.
7061 *[\\/]* ) as_myself=$0 ;;
7062 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 test -z "$as_dir" && as_dir=.
7067 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7073 # We did not find ourselves, most probably we were run as `sh COMMAND'
7074 # in which case we are not to be found in the path.
7075 if test "x$as_myself" = x
; then
7078 if test ! -f "$as_myself"; then
7079 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7083 # Unset variables that we do not need and which cause bugs (e.g. in
7084 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7085 # suppresses any "Segmentation fault" message there. '((' could
7086 # trigger a bug in pdksh 5.2.14.
7087 for as_var
in BASH_ENV ENV MAIL MAILPATH
7088 do eval test x\
${$as_var+set} = xset \
7089 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7102 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7105 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7106 # ----------------------------------------
7107 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7108 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7109 # script with STATUS, using 1 if that was 0.
7112 as_status
=$1; test $as_status -eq 0 && as_status
=1
7114 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7115 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7117 $as_echo "$as_me: error: $2" >&2
7118 as_fn_exit
$as_status
7122 # as_fn_set_status STATUS
7123 # -----------------------
7124 # Set $? to STATUS, without forking.
7128 } # as_fn_set_status
7132 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7142 # Portably unset VAR.
7145 { eval $1=; unset $1;}
7147 as_unset
=as_fn_unset
7148 # as_fn_append VAR VALUE
7149 # ----------------------
7150 # Append the text in VALUE to the end of the definition contained in VAR. Take
7151 # advantage of any shell optimizations that allow amortized linear growth over
7152 # repeated appends, instead of the typical quadratic growth present in naive
7154 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7155 eval 'as_fn_append ()
7166 # as_fn_arith ARG...
7167 # ------------------
7168 # Perform arithmetic evaluation on the ARGs, and store the result in the
7169 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7170 # must be portable across $(()) and expr.
7171 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7172 eval 'as_fn_arith ()
7179 as_val
=`expr "$@" || test $? -eq 1`
7184 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7185 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7191 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7192 as_basename
=basename
7197 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7203 as_me
=`$as_basename -- "$0" ||
7204 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7205 X"$0" : 'X\(//\)$' \| \
7206 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7208 sed '/^.*\/\([^/][^/]*\)\/*$/{
7222 # Avoid depending upon Character Ranges.
7223 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7224 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7225 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7226 as_cr_digits
='0123456789'
7227 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7229 ECHO_C
= ECHO_N
= ECHO_T
=
7230 case `echo -n x` in #(((((
7232 case `echo 'xy\c'` in
7233 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7235 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7242 rm -f conf$$ conf$$.exe conf$$.
file
7243 if test -d conf$$.dir
; then
7244 rm -f conf$$.dir
/conf$$.
file
7247 mkdir conf$$.dir
2>/dev
/null
7249 if (echo >conf$$.
file) 2>/dev
/null
; then
7250 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7252 # ... but there are two gotchas:
7253 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7254 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7255 # In both cases, we have to default to `cp -pR'.
7256 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7258 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7266 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7267 rmdir conf$$.dir
2>/dev
/null
7272 # Create "$as_dir" as a directory, including parents if necessary.
7277 -*) as_dir
=.
/$as_dir;;
7279 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7283 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7284 *) as_qdir
=$as_dir;;
7286 as_dirs
="'$as_qdir' $as_dirs"
7287 as_dir
=`$as_dirname -- "$as_dir" ||
7288 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7289 X"$as_dir" : 'X\(//\)[^/]' \| \
7290 X"$as_dir" : 'X\(//\)$' \| \
7291 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7292 $as_echo X"$as_dir" |
7293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7310 test -d "$as_dir" && break
7312 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7313 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
7317 if mkdir
-p .
2>/dev
/null
; then
7318 as_mkdir_p
='mkdir -p "$as_dir"'
7320 test -d .
/-p && rmdir .
/-p
7325 # as_fn_executable_p FILE
7326 # -----------------------
7327 # Test if FILE is an executable regular file.
7328 as_fn_executable_p
()
7330 test -f "$1" && test -x "$1"
7331 } # as_fn_executable_p
7333 as_executable_p
=as_fn_executable_p
7335 # Sed expression to map a string onto a valid CPP name.
7336 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7338 # Sed expression to map a string onto a valid variable name.
7339 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7343 ## ----------------------------------- ##
7344 ## Main body of $CONFIG_STATUS script. ##
7345 ## ----------------------------------- ##
7347 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7350 # Save the log message, to keep $0 and so on meaningful, and to
7351 # report actual input values of CONFIG_FILES etc. instead of their
7352 # values after options handling.
7354 This file was extended by $as_me, which was
7355 generated by GNU Autoconf 2.69. Invocation command line was
7357 CONFIG_FILES = $CONFIG_FILES
7358 CONFIG_HEADERS = $CONFIG_HEADERS
7359 CONFIG_LINKS = $CONFIG_LINKS
7360 CONFIG_COMMANDS = $CONFIG_COMMANDS
7363 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7368 case $ac_config_files in *"
7369 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7372 case $ac_config_headers in *"
7373 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7378 # Files that config.status was made for.
7379 config_files="$ac_config_files"
7380 config_headers="$ac_config_headers"
7384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7386 \`$as_me' instantiates files and other configuration actions
7387 from templates according to the current configuration. Unless the files
7388 and actions are specified as TAGs, all are instantiated by default.
7390 Usage: $0 [OPTION]... [TAG]...
7392 -h, --help print this help, then exit
7393 -V, --version print version number and configuration settings, then exit
7394 --config print configuration, then exit
7395 -q, --quiet, --silent
7396 do not print progress messages
7397 -d, --debug don't remove temporary files
7398 --recheck update $as_me by reconfiguring in the same conditions
7399 --file=FILE[:TEMPLATE]
7400 instantiate the configuration file FILE
7401 --header=FILE[:TEMPLATE]
7402 instantiate the configuration header FILE
7404 Configuration files:
7407 Configuration headers:
7410 Report bugs to the package provider."
7413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7414 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7417 configured by $0, generated by GNU Autoconf 2.69,
7418 with options \\"\$ac_cs_config\\"
7420 Copyright (C) 2012 Free Software Foundation, Inc.
7421 This config.status script is free software; the Free Software Foundation
7422 gives unlimited permission to copy, distribute and modify it."
7426 test -n "\$AWK" || AWK=awk
7429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7430 # The default lists apply if the user does not specify any file.
7436 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7437 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7441 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7453 # Handling of the options.
7454 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7456 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
7457 $as_echo "$ac_cs_version"; exit ;;
7458 --config |
--confi |
--conf |
--con |
--co |
--c )
7459 $as_echo "$ac_cs_config"; exit ;;
7460 --debug |
--debu |
--deb |
--de |
--d |
-d )
7462 --file |
--fil |
--fi |
--f )
7465 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7466 '') as_fn_error $?
"missing file argument" ;;
7468 as_fn_append CONFIG_FILES
" '$ac_optarg'"
7469 ac_need_defaults
=false
;;
7470 --header |
--heade |
--head |
--hea )
7473 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7475 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
7476 ac_need_defaults
=false
;;
7478 # Conflict between --help and --header
7479 as_fn_error $?
"ambiguous option: \`$1'
7480 Try \`$0 --help' for more information.";;
7481 --help |
--hel |
-h )
7482 $as_echo "$ac_cs_usage"; exit ;;
7483 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7484 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7488 -*) as_fn_error $?
"unrecognized option: \`$1'
7489 Try \`$0 --help' for more information." ;;
7491 *) as_fn_append ac_config_targets
" $1"
7492 ac_need_defaults
=false
;;
7498 ac_configure_extra_args
=
7500 if $ac_cs_silent; then
7502 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7507 if \$ac_cs_recheck; then
7508 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7510 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7511 CONFIG_SHELL='$SHELL'
7517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7521 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7522 ## Running $as_me. ##
7528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7533 # Handling of arguments.
7534 for ac_config_target
in $ac_config_targets
7536 case $ac_config_target in
7537 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
7538 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7539 "libtomcrypt/Makefile") CONFIG_FILES
="$CONFIG_FILES libtomcrypt/Makefile" ;;
7540 "libtommath/Makefile") CONFIG_FILES
="$CONFIG_FILES libtommath/Makefile" ;;
7542 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7547 # If the user did not use the arguments to specify the items to instantiate,
7548 # then the envvar interface is used. Set only those that are not.
7549 # We use the long form for the default assignment because of an extremely
7550 # bizarre bug on SunOS 4.1.3.
7551 if $ac_need_defaults; then
7552 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7553 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7556 # Have a temporary directory for convenience. Make it in the build tree
7557 # simply because there is no reason against having it here, and in addition,
7558 # creating and moving files from /tmp can sometimes cause problems.
7559 # Hook for its removal unless debugging.
7560 # Note that there is a small window in which the directory will not be cleaned:
7561 # after its creation but before its name has been assigned to `$tmp'.
7565 trap 'exit_status=$?
7567 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7569 trap 'as_fn_exit 1' 1 2 13 15
7571 # Create a (secure) tmp directory for tmp files.
7574 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7578 tmp
=.
/conf$$
-$RANDOM
7579 (umask 077 && mkdir
"$tmp")
7580 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
7583 # Set up the scripts for CONFIG_FILES section.
7584 # No need to generate them if there are no CONFIG_FILES.
7585 # This happens for instance with `./config.status config.h'.
7586 if test -n "$CONFIG_FILES"; then
7589 ac_cr
=`echo X | tr X '\015'`
7590 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7591 # But we know of no other shell where ac_cr would be empty at this
7592 # point, so we can use a bashism as a fallback.
7593 if test "x$ac_cr" = x
; then
7594 eval ac_cr
=\$
\'\\r
\'
7596 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7597 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7603 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7608 echo "cat >conf$$subs.awk <<_ACEOF" &&
7609 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7612 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7613 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7615 for ac_last_try in false false false false false :; do
7616 . ./conf$$subs.sh ||
7617 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7619 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
7620 if test $ac_delim_n = $ac_delim_num; then
7622 elif $ac_last_try; then
7623 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7625 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7631 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
7635 s/^/S["/; s
/!.
*/"]=/
7645 s/\(.\{148\}\)..*/\1/
7647 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
7652 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7659 s/\(.\{148\}\)..*/\1/
7661 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
7665 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7670 ' <conf$$subs.awk | sed '
7675 ' >>$CONFIG_STATUS || ac_write_fail=1
7676 rm -f conf$$subs.awk
7677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7679 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
7680 for (key in S) S_is_set[key] = 1
7686 nfields = split(line, field, "@
")
7688 len = length(field[1])
7689 for (i = 2; i < nfields; i++) {
7691 keylen = length(key)
7692 if (S_is_set[key]) {
7694 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7695 len += length(value) + length(field[++i])
7706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7707 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7708 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
7711 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
7712 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
7715 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7716 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
7717 # trailing colons and then remove the whole line if VPATH becomes empty
7718 # (actually we leave an empty line to preserve line numbers).
7719 if test "x
$srcdir" = x.; then
7720 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7739 fi # test -n "$CONFIG_FILES"
7741 # Set up the scripts for CONFIG_HEADERS section.
7742 # No need to generate them if there are no CONFIG_HEADERS.
7743 # This happens for instance with `./config.status Makefile'.
7744 if test -n "$CONFIG_HEADERS"; then
7745 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
7749 # Transform confdefs.h into an awk script `defines.awk', embedded as
7750 # here-document in config.status, that substitutes the proper values into
7751 # config.h.in to produce config.h.
7753 # Create a delimiter string that does not exist in confdefs.h, to ease
7754 # handling of long lines.
7756 for ac_last_try in false false :; do
7757 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
7758 if test -z "$ac_tt"; then
7760 elif $ac_last_try; then
7761 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
7763 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7767 # For the awk script, D is an array of macro values keyed by name,
7768 # likewise P contains macro parameters if any. Preserve backslash
7769 # newline sequences.
7771 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7773 s/.\{148\}/&'"$ac_delim"'/g
7776 s/^[ ]*#[ ]*define[ ][ ]*/ /
7783 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
7785 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
7789 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
7790 D["\
1"]=" \
3\\\\\\n
"\\/p
7792 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
7797 s/.\{148\}/&'"$ac_delim"'/g
7802 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
7805 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
7807 ' <confdefs.h | sed '
7808 s/'"$ac_delim"'/"\\\
7809 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7812 for (key in D) D_is_set[key] = 1
7815 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7817 split(line, arg, " ")
7818 if (arg[1] == "#") {
7822 defundef
= substr
(arg
[1], 2)
7825 split(mac1
, mac2
, "(") #)
7827 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
7828 if (D_is_set
[macro
]) {
7829 # Preserve the white space surrounding the "#".
7830 print prefix
"define", macro P
[macro
] D
[macro
]
7833 # Replace #undef with comments. This is necessary, for example,
7834 # in the case of _POSIX_SOURCE, which is predefined and required
7835 # on some systems where configure will not decide to define it.
7836 if (defundef
== "undef") {
7837 print
"/*", prefix defundef
, macro
, "*/"
7845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7846 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
7847 fi # test -n "$CONFIG_HEADERS"
7850 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
7855 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7857 case $ac_mode$ac_tag in
7859 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
7860 :[FH
]-) ac_tag
=-:-;;
7861 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7878 -) ac_f
="$ac_tmp/stdin";;
7879 *) # Look for the file first in the build tree, then in the source tree
7880 # (if the path is not absolute). The absolute path cannot be DOS-style,
7881 # because $ac_f cannot contain `:'.
7885 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7887 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7889 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7890 as_fn_append ac_file_inputs
" '$ac_f'"
7893 # Let's still pretend it is `configure' which instantiates (i.e., don't
7894 # use $as_me), people would be surprised to read:
7895 # /* config.h. Generated by config.status. */
7896 configure_input
='Generated from '`
7897 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7899 if test x
"$ac_file" != x-
; then
7900 configure_input
="$ac_file. $configure_input"
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7902 $as_echo "$as_me: creating $ac_file" >&6;}
7904 # Neutralize special characters interpreted by sed in replacement strings.
7905 case $configure_input in #(
7906 *\
&* |
*\|
* |
*\\* )
7907 ac_sed_conf_input
=`$as_echo "$configure_input" |
7908 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7909 *) ac_sed_conf_input
=$configure_input;;
7913 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
7914 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
7919 ac_dir
=`$as_dirname -- "$ac_file" ||
7920 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7921 X"$ac_file" : 'X\(//\)[^/]' \| \
7922 X"$ac_file" : 'X\(//\)$' \| \
7923 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7924 $as_echo X"$ac_file" |
7925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7942 as_dir
="$ac_dir"; as_fn_mkdir_p
7946 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7948 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7949 # A ".." for each directory in $ac_dir_suffix.
7950 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7951 case $ac_top_builddir_sub in
7952 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7953 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
7956 ac_abs_top_builddir
=$ac_pwd
7957 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
7958 # for backward compatibility:
7959 ac_top_builddir
=$ac_top_build_prefix
7962 .
) # We are building in place.
7964 ac_top_srcdir
=$ac_top_builddir_sub
7965 ac_abs_top_srcdir
=$ac_pwd ;;
7966 [\\/]* | ?
:[\\/]* ) # Absolute name.
7967 ac_srcdir
=$srcdir$ac_dir_suffix;
7968 ac_top_srcdir
=$srcdir
7969 ac_abs_top_srcdir
=$srcdir ;;
7971 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
7972 ac_top_srcdir
=$ac_top_build_prefix$srcdir
7973 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
7975 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
7986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7987 # If the template does not know about datarootdir, expand it.
7988 # FIXME: This hack should be removed a few years after 2.60.
7989 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8000 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8001 *datarootdir
*) ac_datarootdir_seen
=yes;;
8002 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8004 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8007 ac_datarootdir_hack='
8008 s&@datadir@&$datadir&g
8009 s&@docdir@&$docdir&g
8010 s&@infodir@&$infodir&g
8011 s&@localedir@&$localedir&g
8012 s&@mandir@&$mandir&g
8013 s&\\\${datarootdir}&$datarootdir&g' ;;
8017 # Neutralize VPATH when `$srcdir' = `.'.
8018 # Shell code in configure.ac might set extrasub.
8019 # FIXME: do we really want to maintain this feature?
8020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8021 ac_sed_extra="$ac_vpsub
8024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8026 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8027 s|@configure_input@|
$ac_sed_conf_input|
;t t
8028 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8029 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8030 s
&@srcdir@
&$ac_srcdir&;t t
8031 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8032 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8033 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8034 s
&@builddir@
&$ac_builddir&;t t
8035 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8036 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8037 $ac_datarootdir_hack
8039 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8040 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8042 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8043 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
8044 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8045 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8047 which seems to be undefined. Please make sure it is defined" >&5
8048 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8049 which seems to be undefined. Please make sure it is defined" >&2;}
8051 rm -f "$ac_tmp/stdin"
8053 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8054 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8056 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8062 if test x"$ac_file" != x-; then
8064 $as_echo "/* $configure_input */" \
8065 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8066 } >"$ac_tmp/config.h" \
8067 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8068 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8070 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8073 mv "$ac_tmp/config.h" "$ac_file" \
8074 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8077 $as_echo "/* $configure_input */" \
8078 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8079 || as_fn_error $? "could not create -" "$LINENO" 5
8091 ac_clean_files=$ac_clean_files_save
8093 test $ac_write_fail = 0 ||
8094 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8097 # configure is writing to config.log, and then calls config.status.
8098 # config.status does its own redirection, appending to config.log.
8099 # Unfortunately, on DOS this fails, as config.log is still kept open
8100 # by configure, so config.status won't be able to
write to it
; its
8101 # output is simply discarded. So we exec the FD to /dev/null,
8102 # effectively closing config.log, so it can be properly (re)opened and
8103 # appended to by config.status. When coming back to configure, we
8104 # need to make the FD available again.
8105 if test "$no_create" != yes; then
8107 ac_config_status_args
=
8108 test "$silent" = yes &&
8109 ac_config_status_args
="$ac_config_status_args --quiet"
8111 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8113 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8114 # would make configure fail if this is the last instruction.
8115 $ac_cs_success || as_fn_exit
1
8117 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8119 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
8124 $as_echo "$as_me: " >&6;}
8125 if test $BUNDLED_LIBTOM = 1 ; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: Using bundled libtomcrypt and libtommath" >&5
8127 $as_echo "$as_me: Using bundled libtomcrypt and libtommath" >&6;}
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: Using system libtomcrypt and libtommath" >&5
8130 $as_echo "$as_me: Using system libtomcrypt and libtommath" >&6;}
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
8134 $as_echo "$as_me: " >&6;}
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: Now edit options.h to choose features." >&5
8136 $as_echo "$as_me: Now edit options.h to choose features." >&6;}