| 1 |
#! /bin/sh |
| 2 |
# From configure.ac Revision: 1.583 . |
| 3 |
# Guess values for system-dependent variables and create Makefiles. |
| 4 |
# Generated by GNU Autoconf 2.69 for OpenSSH Portable. |
| 5 |
# |
| 6 |
# Report bugs to <[email protected]>. |
| 7 |
# |
| 8 |
# |
| 9 |
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
| 10 |
# |
| 11 |
# |
| 12 |
# This configure script is free software; the Free Software Foundation |
| 13 |
# gives unlimited permission to copy, distribute and modify it. |
| 14 |
## -------------------- ## |
| 15 |
## M4sh Initialization. ## |
| 16 |
## -------------------- ## |
| 17 |
|
| 18 |
# Be more Bourne compatible |
| 19 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 20 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 21 |
emulate sh |
| 22 |
NULLCMD=: |
| 23 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 24 |
# is contrary to our usage. Disable this feature. |
| 25 |
alias -g '${1+"$@"}'='"$@"' |
| 26 |
setopt NO_GLOB_SUBST |
| 27 |
else |
| 28 |
case `(set -o) 2>/dev/null` in #( |
| 29 |
*posix*) : |
| 30 |
set -o posix ;; #( |
| 31 |
*) : |
| 32 |
;; |
| 33 |
esac |
| 34 |
fi |
| 35 |
|
| 36 |
|
| 37 |
as_nl=' |
| 38 |
' |
| 39 |
export as_nl |
| 40 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 41 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 42 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 43 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 44 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
| 45 |
# but without wasting forks for bash or zsh. |
| 46 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 47 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 48 |
as_echo='print -r --' |
| 49 |
as_echo_n='print -rn --' |
| 50 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 51 |
as_echo='printf %s\n' |
| 52 |
as_echo_n='printf %s' |
| 53 |
else |
| 54 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 55 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 56 |
as_echo_n='/usr/ucb/echo -n' |
| 57 |
else |
| 58 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 59 |
as_echo_n_body='eval |
| 60 |
arg=$1; |
| 61 |
case $arg in #( |
| 62 |
*"$as_nl"*) |
| 63 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 64 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 65 |
esac; |
| 66 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 67 |
' |
| 68 |
export as_echo_n_body |
| 69 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
| 70 |
fi |
| 71 |
export as_echo_body |
| 72 |
as_echo='sh -c $as_echo_body as_echo' |
| 73 |
fi |
| 74 |
|
| 75 |
# The user is always right. |
| 76 |
if test "${PATH_SEPARATOR+set}" != set; then |
| 77 |
PATH_SEPARATOR=: |
| 78 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 79 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 80 |
PATH_SEPARATOR=';' |
| 81 |
} |
| 82 |
fi |
| 83 |
|
| 84 |
|
| 85 |
# IFS |
| 86 |
# We need space, tab and new line, in precisely that order. Quoting is |
| 87 |
# there to prevent editors from complaining about space-tab. |
| 88 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 89 |
# splitting by setting IFS to empty value.) |
| 90 |
IFS=" "" $as_nl" |
| 91 |
|
| 92 |
# Find who we are. Look in the path if we contain no directory separator. |
| 93 |
as_myself= |
| 94 |
case $0 in #(( |
| 95 |
*[\\/]* ) as_myself=$0 ;; |
| 96 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 97 |
for as_dir in $PATH |
| 98 |
do |
| 99 |
IFS=$as_save_IFS |
| 100 |
test -z "$as_dir" && as_dir=. |
| 101 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 102 |
done |
| 103 |
IFS=$as_save_IFS |
| 104 |
|
| 105 |
;; |
| 106 |
esac |
| 107 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
| 108 |
# in which case we are not to be found in the path. |
| 109 |
if test "x$as_myself" = x; then |
| 110 |
as_myself=$0 |
| 111 |
fi |
| 112 |
if test ! -f "$as_myself"; then |
| 113 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 114 |
exit 1 |
| 115 |
fi |
| 116 |
|
| 117 |
# Unset variables that we do not need and which cause bugs (e.g. in |
| 118 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 119 |
# suppresses any "Segmentation fault" message there. '((' could |
| 120 |
# trigger a bug in pdksh 5.2.14. |
| 121 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
| 122 |
do eval test x\${$as_var+set} = xset \ |
| 123 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 124 |
done |
| 125 |
PS1='$ ' |
| 126 |
PS2='> ' |
| 127 |
PS4='+ ' |
| 128 |
|
| 129 |
# NLS nuisances. |
| 130 |
LC_ALL=C |
| 131 |
export LC_ALL |
| 132 |
LANGUAGE=C |
| 133 |
export LANGUAGE |
| 134 |
|
| 135 |
# CDPATH. |
| 136 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 137 |
|
| 138 |
# Use a proper internal environment variable to ensure we don't fall |
| 139 |
# into an infinite loop, continuously re-executing ourselves. |
| 140 |
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 141 |
_as_can_reexec=no; export _as_can_reexec; |
| 142 |
# We cannot yet assume a decent shell, so we have to provide a |
| 143 |
# neutralization value for shells without unset; and this also |
| 144 |
# works around shells that cannot unset nonexistent variables. |
| 145 |
# Preserve -v and -x to the replacement shell. |
| 146 |
BASH_ENV=/dev/null |
| 147 |
ENV=/dev/null |
| 148 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 149 |
case $- in # (((( |
| 150 |
*v*x* | *x*v* ) as_opts=-vx ;; |
| 151 |
*v* ) as_opts=-v ;; |
| 152 |
*x* ) as_opts=-x ;; |
| 153 |
* ) as_opts= ;; |
| 154 |
esac |
| 155 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 156 |
# Admittedly, this is quite paranoid, since all the known shells bail |
| 157 |
# out after a failed `exec'. |
| 158 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 159 |
as_fn_exit 255 |
| 160 |
fi |
| 161 |
# We don't want this to propagate to other subprocesses. |
| 162 |
{ _as_can_reexec=; unset _as_can_reexec;} |
| 163 |
if test "x$CONFIG_SHELL" = x; then |
| 164 |
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 165 |
emulate sh |
| 166 |
NULLCMD=: |
| 167 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 168 |
# is contrary to our usage. Disable this feature. |
| 169 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 170 |
setopt NO_GLOB_SUBST |
| 171 |
else |
| 172 |
case \`(set -o) 2>/dev/null\` in #( |
| 173 |
*posix*) : |
| 174 |
set -o posix ;; #( |
| 175 |
*) : |
| 176 |
;; |
| 177 |
esac |
| 178 |
fi |
| 179 |
" |
| 180 |
as_required="as_fn_return () { (exit \$1); } |
| 181 |
as_fn_success () { as_fn_return 0; } |
| 182 |
as_fn_failure () { as_fn_return 1; } |
| 183 |
as_fn_ret_success () { return 0; } |
| 184 |
as_fn_ret_failure () { return 1; } |
| 185 |
|
| 186 |
exitcode=0 |
| 187 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 188 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 189 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 190 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 191 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 192 |
|
| 193 |
else |
| 194 |
exitcode=1; echo positional parameters were not saved. |
| 195 |
fi |
| 196 |
test x\$exitcode = x0 || exit 1 |
| 197 |
test -x / || exit 1" |
| 198 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 199 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 200 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 201 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 202 |
test \$(( 1 + 1 )) = 2 || exit 1" |
| 203 |
if (eval "$as_required") 2>/dev/null; then : |
| 204 |
as_have_required=yes |
| 205 |
else |
| 206 |
as_have_required=no |
| 207 |
fi |
| 208 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 209 |
|
| 210 |
else |
| 211 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 212 |
as_found=false |
| 213 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 214 |
do |
| 215 |
IFS=$as_save_IFS |
| 216 |
test -z "$as_dir" && as_dir=. |
| 217 |
as_found=: |
| 218 |
case $as_dir in #( |
| 219 |
/*) |
| 220 |
for as_base in sh bash ksh sh5; do |
| 221 |
# Try only shells that exist, to save several forks. |
| 222 |
as_shell=$as_dir/$as_base |
| 223 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 224 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 225 |
CONFIG_SHELL=$as_shell as_have_required=yes |
| 226 |
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 227 |
break 2 |
| 228 |
fi |
| 229 |
fi |
| 230 |
done;; |
| 231 |
esac |
| 232 |
as_found=false |
| 233 |
done |
| 234 |
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 235 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 236 |
CONFIG_SHELL=$SHELL as_have_required=yes |
| 237 |
fi; } |
| 238 |
IFS=$as_save_IFS |
| 239 |
|
| 240 |
|
| 241 |
if test "x$CONFIG_SHELL" != x; then : |
| 242 |
export CONFIG_SHELL |
| 243 |
# We cannot yet assume a decent shell, so we have to provide a |
| 244 |
# neutralization value for shells without unset; and this also |
| 245 |
# works around shells that cannot unset nonexistent variables. |
| 246 |
# Preserve -v and -x to the replacement shell. |
| 247 |
BASH_ENV=/dev/null |
| 248 |
ENV=/dev/null |
| 249 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 250 |
case $- in # (((( |
| 251 |
*v*x* | *x*v* ) as_opts=-vx ;; |
| 252 |
*v* ) as_opts=-v ;; |
| 253 |
*x* ) as_opts=-x ;; |
| 254 |
* ) as_opts= ;; |
| 255 |
esac |
| 256 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 257 |
# Admittedly, this is quite paranoid, since all the known shells bail |
| 258 |
# out after a failed `exec'. |
| 259 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 260 |
exit 255 |
| 261 |
fi |
| 262 |
|
| 263 |
if test x$as_have_required = xno; then : |
| 264 |
$as_echo "$0: This script requires a shell more modern than all" |
| 265 |
$as_echo "$0: the shells that I found on your system." |
| 266 |
if test x${ZSH_VERSION+set} = xset ; then |
| 267 |
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 268 |
$as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 269 |
else |
| 270 |
$as_echo "$0: Please tell [email protected] and |
| 271 |
$0: [email protected] about your system, |
| 272 |
$0: including any error possibly output before this |
| 273 |
$0: message. Then install a modern shell, or manually run |
| 274 |
$0: the script under such a shell if you do have one." |
| 275 |
fi |
| 276 |
exit 1 |
| 277 |
fi |
| 278 |
fi |
| 279 |
fi |
| 280 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 281 |
export SHELL |
| 282 |
# Unset more variables known to interfere with behavior of common tools. |
| 283 |
CLICOLOR_FORCE= GREP_OPTIONS= |
| 284 |
unset CLICOLOR_FORCE GREP_OPTIONS |
| 285 |
|
| 286 |
## --------------------- ## |
| 287 |
## M4sh Shell Functions. ## |
| 288 |
## --------------------- ## |
| 289 |
# as_fn_unset VAR |
| 290 |
# --------------- |
| 291 |
# Portably unset VAR. |
| 292 |
as_fn_unset () |
| 293 |
{ |
| 294 |
{ eval $1=; unset $1;} |
| 295 |
} |
| 296 |
as_unset=as_fn_unset |
| 297 |
|
| 298 |
# as_fn_set_status STATUS |
| 299 |
# ----------------------- |
| 300 |
# Set $? to STATUS, without forking. |
| 301 |
as_fn_set_status () |
| 302 |
{ |
| 303 |
return $1 |
| 304 |
} # as_fn_set_status |
| 305 |
|
| 306 |
# as_fn_exit STATUS |
| 307 |
# ----------------- |
| 308 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 309 |
as_fn_exit () |
| 310 |
{ |
| 311 |
set +e |
| 312 |
as_fn_set_status $1 |
| 313 |
exit $1 |
| 314 |
} # as_fn_exit |
| 315 |
|
| 316 |
# as_fn_mkdir_p |
| 317 |
# ------------- |
| 318 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 319 |
as_fn_mkdir_p () |
| 320 |
{ |
| 321 |
|
| 322 |
case $as_dir in #( |
| 323 |
-*) as_dir=./$as_dir;; |
| 324 |
esac |
| 325 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 326 |
as_dirs= |
| 327 |
while :; do |
| 328 |
case $as_dir in #( |
| 329 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 330 |
*) as_qdir=$as_dir;; |
| 331 |
esac |
| 332 |
as_dirs="'$as_qdir' $as_dirs" |
| 333 |
as_dir=`$as_dirname -- "$as_dir" || |
| 334 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 335 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 336 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 337 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 338 |
$as_echo X"$as_dir" | |
| 339 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 340 |
s//\1/ |
| 341 |
q |
| 342 |
} |
| 343 |
/^X\(\/\/\)[^/].*/{ |
| 344 |
s//\1/ |
| 345 |
q |
| 346 |
} |
| 347 |
/^X\(\/\/\)$/{ |
| 348 |
s//\1/ |
| 349 |
q |
| 350 |
} |
| 351 |
/^X\(\/\).*/{ |
| 352 |
s//\1/ |
| 353 |
q |
| 354 |
} |
| 355 |
s/.*/./; q'` |
| 356 |
test -d "$as_dir" && break |
| 357 |
done |
| 358 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 359 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 360 |
|
| 361 |
|
| 362 |
} # as_fn_mkdir_p |
| 363 |
|
| 364 |
# as_fn_executable_p FILE |
| 365 |
# ----------------------- |
| 366 |
# Test if FILE is an executable regular file. |
| 367 |
as_fn_executable_p () |
| 368 |
{ |
| 369 |
test -f "$1" && test -x "$1" |
| 370 |
} # as_fn_executable_p |
| 371 |
# as_fn_append VAR VALUE |
| 372 |
# ---------------------- |
| 373 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 374 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 375 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 376 |
# implementations. |
| 377 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 378 |
eval 'as_fn_append () |
| 379 |
{ |
| 380 |
eval $1+=\$2 |
| 381 |
}' |
| 382 |
else |
| 383 |
as_fn_append () |
| 384 |
{ |
| 385 |
eval $1=\$$1\$2 |
| 386 |
} |
| 387 |
fi # as_fn_append |
| 388 |
|
| 389 |
# as_fn_arith ARG... |
| 390 |
# ------------------ |
| 391 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 392 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 393 |
# must be portable across $(()) and expr. |
| 394 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 395 |
eval 'as_fn_arith () |
| 396 |
{ |
| 397 |
as_val=$(( $* )) |
| 398 |
}' |
| 399 |
else |
| 400 |
as_fn_arith () |
| 401 |
{ |
| 402 |
as_val=`expr "$@" || test $? -eq 1` |
| 403 |
} |
| 404 |
fi # as_fn_arith |
| 405 |
|
| 406 |
|
| 407 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 408 |
# ---------------------------------------- |
| 409 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 410 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 411 |
# script with STATUS, using 1 if that was 0. |
| 412 |
as_fn_error () |
| 413 |
{ |
| 414 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 415 |
if test "$4"; then |
| 416 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 417 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 418 |
fi |
| 419 |
$as_echo "$as_me: error: $2" >&2 |
| 420 |
as_fn_exit $as_status |
| 421 |
} # as_fn_error |
| 422 |
|
| 423 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 424 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 425 |
as_expr=expr |
| 426 |
else |
| 427 |
as_expr=false |
| 428 |
fi |
| 429 |
|
| 430 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 431 |
as_basename=basename |
| 432 |
else |
| 433 |
as_basename=false |
| 434 |
fi |
| 435 |
|
| 436 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 437 |
as_dirname=dirname |
| 438 |
else |
| 439 |
as_dirname=false |
| 440 |
fi |
| 441 |
|
| 442 |
as_me=`$as_basename -- "$0" || |
| 443 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 444 |
X"$0" : 'X\(//\)$' \| \ |
| 445 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 446 |
$as_echo X/"$0" | |
| 447 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 448 |
s//\1/ |
| 449 |
q |
| 450 |
} |
| 451 |
/^X\/\(\/\/\)$/{ |
| 452 |
s//\1/ |
| 453 |
q |
| 454 |
} |
| 455 |
/^X\/\(\/\).*/{ |
| 456 |
s//\1/ |
| 457 |
q |
| 458 |
} |
| 459 |
s/.*/./; q'` |
| 460 |
|
| 461 |
# Avoid depending upon Character Ranges. |
| 462 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 463 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 464 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 465 |
as_cr_digits='0123456789' |
| 466 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 467 |
|
| 468 |
|
| 469 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 470 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 471 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 472 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 473 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 474 |
sed -n ' |
| 475 |
p |
| 476 |
/[$]LINENO/= |
| 477 |
' <$as_myself | |
| 478 |
sed ' |
| 479 |
s/[$]LINENO.*/&-/ |
| 480 |
t lineno |
| 481 |
b |
| 482 |
:lineno |
| 483 |
N |
| 484 |
:loop |
| 485 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 486 |
t loop |
| 487 |
s/-\n.*// |
| 488 |
' >$as_me.lineno && |
| 489 |
chmod +x "$as_me.lineno" || |
| 490 |
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 491 |
|
| 492 |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 493 |
# already done that, so ensure we don't try to do so again and fall |
| 494 |
# in an infinite loop. This has already happened in practice. |
| 495 |
_as_can_reexec=no; export _as_can_reexec |
| 496 |
# Don't try to exec as it changes $[0], causing all sort of problems |
| 497 |
# (the dirname of $[0] is not the place where we might find the |
| 498 |
# original and so on. Autoconf is especially sensitive to this). |
| 499 |
. "./$as_me.lineno" |
| 500 |
# Exit status is that of the last command. |
| 501 |
exit |
| 502 |
} |
| 503 |
|
| 504 |
ECHO_C= ECHO_N= ECHO_T= |
| 505 |
case `echo -n x` in #((((( |
| 506 |
-n*) |
| 507 |
case `echo 'xy\c'` in |
| 508 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 509 |
xy) ECHO_C='\c';; |
| 510 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 511 |
ECHO_T=' ';; |
| 512 |
esac;; |
| 513 |
*) |
| 514 |
ECHO_N='-n';; |
| 515 |
esac |
| 516 |
|
| 517 |
rm -f conf$$ conf$$.exe conf$$.file |
| 518 |
if test -d conf$$.dir; then |
| 519 |
rm -f conf$$.dir/conf$$.file |
| 520 |
else |
| 521 |
rm -f conf$$.dir |
| 522 |
mkdir conf$$.dir 2>/dev/null |
| 523 |
fi |
| 524 |
if (echo >conf$$.file) 2>/dev/null; then |
| 525 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 526 |
as_ln_s='ln -s' |
| 527 |
# ... but there are two gotchas: |
| 528 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 529 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 530 |
# In both cases, we have to default to `cp -pR'. |
| 531 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 532 |
as_ln_s='cp -pR' |
| 533 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 534 |
as_ln_s=ln |
| 535 |
else |
| 536 |
as_ln_s='cp -pR' |
| 537 |
fi |
| 538 |
else |
| 539 |
as_ln_s='cp -pR' |
| 540 |
fi |
| 541 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 542 |
rmdir conf$$.dir 2>/dev/null |
| 543 |
|
| 544 |
if mkdir -p . 2>/dev/null; then |
| 545 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 546 |
else |
| 547 |
test -d ./-p && rmdir ./-p |
| 548 |
as_mkdir_p=false |
| 549 |
fi |
| 550 |
|
| 551 |
as_test_x='test -x' |
| 552 |
as_executable_p=as_fn_executable_p |
| 553 |
|
| 554 |
# Sed expression to map a string onto a valid CPP name. |
| 555 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 556 |
|
| 557 |
# Sed expression to map a string onto a valid variable name. |
| 558 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 559 |
|
| 560 |
|
| 561 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
| 562 |
exec 6>&1 |
| 563 |
|
| 564 |
# Name of the host. |
| 565 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 566 |
# so uname gets run too. |
| 567 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 568 |
|
| 569 |
# |
| 570 |
# Initializations. |
| 571 |
# |
| 572 |
ac_default_prefix=/usr/local |
| 573 |
ac_clean_files= |
| 574 |
ac_config_libobj_dir=. |
| 575 |
LIBOBJS= |
| 576 |
cross_compiling=no |
| 577 |
subdirs= |
| 578 |
MFLAGS= |
| 579 |
MAKEFLAGS= |
| 580 |
|
| 581 |
# Identity of this package. |
| 582 |
PACKAGE_NAME='OpenSSH' |
| 583 |
PACKAGE_TARNAME='openssh' |
| 584 |
PACKAGE_VERSION='Portable' |
| 585 |
PACKAGE_STRING='OpenSSH Portable' |
| 586 |
PACKAGE_BUGREPORT='[email protected]' |
| 587 |
PACKAGE_URL='' |
| 588 |
|
| 589 |
ac_unique_file="ssh.c" |
| 590 |
# Factoring default headers for most tests. |
| 591 |
ac_includes_default="\ |
| 592 |
#include <stdio.h> |
| 593 |
#ifdef HAVE_SYS_TYPES_H |
| 594 |
# include <sys/types.h> |
| 595 |
#endif |
| 596 |
#ifdef HAVE_SYS_STAT_H |
| 597 |
# include <sys/stat.h> |
| 598 |
#endif |
| 599 |
#ifdef STDC_HEADERS |
| 600 |
# include <stdlib.h> |
| 601 |
# include <stddef.h> |
| 602 |
#else |
| 603 |
# ifdef HAVE_STDLIB_H |
| 604 |
# include <stdlib.h> |
| 605 |
# endif |
| 606 |
#endif |
| 607 |
#ifdef HAVE_STRING_H |
| 608 |
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 609 |
# include <memory.h> |
| 610 |
# endif |
| 611 |
# include <string.h> |
| 612 |
#endif |
| 613 |
#ifdef HAVE_STRINGS_H |
| 614 |
# include <strings.h> |
| 615 |
#endif |
| 616 |
#ifdef HAVE_INTTYPES_H |
| 617 |
# include <inttypes.h> |
| 618 |
#endif |
| 619 |
#ifdef HAVE_STDINT_H |
| 620 |
# include <stdint.h> |
| 621 |
#endif |
| 622 |
#ifdef HAVE_UNISTD_H |
| 623 |
# include <unistd.h> |
| 624 |
#endif" |
| 625 |
|
| 626 |
ac_subst_vars='LTLIBOBJS |
| 627 |
LIBOBJS |
| 628 |
UNSUPPORTED_ALGORITHMS |
| 629 |
TEST_MALLOC_OPTIONS |
| 630 |
TEST_SSH_IPV6 |
| 631 |
piddir |
| 632 |
user_path |
| 633 |
mansubdir |
| 634 |
MANTYPE |
| 635 |
XAUTH_PATH |
| 636 |
STRIP_OPT |
| 637 |
xauth_path |
| 638 |
PRIVSEP_PATH |
| 639 |
K5LIBS |
| 640 |
GSSLIBS |
| 641 |
KRB5CONF |
| 642 |
SSHDLIBS |
| 643 |
SSHLIBS |
| 644 |
SSH_PRIVSEP_USER |
| 645 |
COMMENT_OUT_ECC |
| 646 |
TEST_SSH_ECC |
| 647 |
LIBEDIT |
| 648 |
PKGCONFIG |
| 649 |
LD |
| 650 |
PATH_PASSWD_PROG |
| 651 |
LOGIN_PROGRAM_FALLBACK |
| 652 |
STARTUP_SCRIPT_SHELL |
| 653 |
MAKE_PACKAGE_SUPPORTED |
| 654 |
PATH_USERADD_PROG |
| 655 |
PATH_GROUPADD_PROG |
| 656 |
MANFMT |
| 657 |
TEST_SHELL |
| 658 |
MANDOC |
| 659 |
NROFF |
| 660 |
GROFF |
| 661 |
SH |
| 662 |
TEST_MINUS_S_SH |
| 663 |
ENT |
| 664 |
SED |
| 665 |
PERL |
| 666 |
KILL |
| 667 |
CAT |
| 668 |
ac_ct_AR |
| 669 |
AR |
| 670 |
INSTALL_DATA |
| 671 |
INSTALL_SCRIPT |
| 672 |
INSTALL_PROGRAM |
| 673 |
RANLIB |
| 674 |
AWK |
| 675 |
EGREP |
| 676 |
GREP |
| 677 |
CPP |
| 678 |
host_os |
| 679 |
host_vendor |
| 680 |
host_cpu |
| 681 |
host |
| 682 |
build_os |
| 683 |
build_vendor |
| 684 |
build_cpu |
| 685 |
build |
| 686 |
OBJEXT |
| 687 |
EXEEXT |
| 688 |
ac_ct_CC |
| 689 |
CPPFLAGS |
| 690 |
LDFLAGS |
| 691 |
CFLAGS |
| 692 |
CC |
| 693 |
target_alias |
| 694 |
host_alias |
| 695 |
build_alias |
| 696 |
LIBS |
| 697 |
ECHO_T |
| 698 |
ECHO_N |
| 699 |
ECHO_C |
| 700 |
DEFS |
| 701 |
mandir |
| 702 |
localedir |
| 703 |
libdir |
| 704 |
psdir |
| 705 |
pdfdir |
| 706 |
dvidir |
| 707 |
htmldir |
| 708 |
infodir |
| 709 |
docdir |
| 710 |
oldincludedir |
| 711 |
includedir |
| 712 |
localstatedir |
| 713 |
sharedstatedir |
| 714 |
sysconfdir |
| 715 |
datadir |
| 716 |
datarootdir |
| 717 |
libexecdir |
| 718 |
sbindir |
| 719 |
bindir |
| 720 |
program_transform_name |
| 721 |
prefix |
| 722 |
exec_prefix |
| 723 |
PACKAGE_URL |
| 724 |
PACKAGE_BUGREPORT |
| 725 |
PACKAGE_STRING |
| 726 |
PACKAGE_VERSION |
| 727 |
PACKAGE_TARNAME |
| 728 |
PACKAGE_NAME |
| 729 |
PATH_SEPARATOR |
| 730 |
SHELL' |
| 731 |
ac_subst_files='' |
| 732 |
ac_user_opts=' |
| 733 |
enable_option_checking |
| 734 |
enable_largefile |
| 735 |
with_openssl |
| 736 |
with_ssh1 |
| 737 |
with_stackprotect |
| 738 |
with_hardening |
| 739 |
with_rpath |
| 740 |
with_cflags |
| 741 |
with_cppflags |
| 742 |
with_ldflags |
| 743 |
with_libs |
| 744 |
with_Werror |
| 745 |
with_solaris_contracts |
| 746 |
with_solaris_projects |
| 747 |
with_osfsia |
| 748 |
with_zlib |
| 749 |
with_zlib_version_check |
| 750 |
with_skey |
| 751 |
with_ldns |
| 752 |
with_libedit |
| 753 |
with_audit |
| 754 |
with_pie |
| 755 |
with_ssl_dir |
| 756 |
with_openssl_header_check |
| 757 |
with_ssl_engine |
| 758 |
with_prngd_port |
| 759 |
with_prngd_socket |
| 760 |
with_pam |
| 761 |
with_privsep_user |
| 762 |
with_sandbox |
| 763 |
with_selinux |
| 764 |
with_kerberos5 |
| 765 |
with_privsep_path |
| 766 |
with_xauth |
| 767 |
enable_strip |
| 768 |
with_maildir |
| 769 |
with_mantype |
| 770 |
with_md5_passwords |
| 771 |
with_shadow |
| 772 |
with_ipaddr_display |
| 773 |
enable_etc_default_login |
| 774 |
with_default_path |
| 775 |
with_superuser_path |
| 776 |
with_4in6 |
| 777 |
with_bsd_auth |
| 778 |
with_pid_dir |
| 779 |
enable_lastlog |
| 780 |
enable_utmp |
| 781 |
enable_utmpx |
| 782 |
enable_wtmp |
| 783 |
enable_wtmpx |
| 784 |
enable_libutil |
| 785 |
enable_pututline |
| 786 |
enable_pututxline |
| 787 |
with_lastlog |
| 788 |
' |
| 789 |
ac_precious_vars='build_alias |
| 790 |
host_alias |
| 791 |
target_alias |
| 792 |
CC |
| 793 |
CFLAGS |
| 794 |
LDFLAGS |
| 795 |
LIBS |
| 796 |
CPPFLAGS |
| 797 |
CPP' |
| 798 |
|
| 799 |
|
| 800 |
# Initialize some variables set by options. |
| 801 |
ac_init_help= |
| 802 |
ac_init_version=false |
| 803 |
ac_unrecognized_opts= |
| 804 |
ac_unrecognized_sep= |
| 805 |
# The variables have the same names as the options, with |
| 806 |
# dashes changed to underlines. |
| 807 |
cache_file=/dev/null |
| 808 |
exec_prefix=NONE |
| 809 |
no_create= |
| 810 |
no_recursion= |
| 811 |
prefix=NONE |
| 812 |
program_prefix=NONE |
| 813 |
program_suffix=NONE |
| 814 |
program_transform_name=s,x,x, |
| 815 |
silent= |
| 816 |
site= |
| 817 |
srcdir= |
| 818 |
verbose= |
| 819 |
x_includes=NONE |
| 820 |
x_libraries=NONE |
| 821 |
|
| 822 |
# Installation directory options. |
| 823 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
| 824 |
# and all the variables that are supposed to be based on exec_prefix |
| 825 |
# by default will actually change. |
| 826 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
| 827 |
# (The list follows the same order as the GNU Coding Standards.) |
| 828 |
bindir='${exec_prefix}/bin' |
| 829 |
sbindir='${exec_prefix}/sbin' |
| 830 |
libexecdir='${exec_prefix}/libexec' |
| 831 |
datarootdir='${prefix}/share' |
| 832 |
datadir='${datarootdir}' |
| 833 |
sysconfdir='${prefix}/etc' |
| 834 |
sharedstatedir='${prefix}/com' |
| 835 |
localstatedir='${prefix}/var' |
| 836 |
includedir='${prefix}/include' |
| 837 |
oldincludedir='/usr/include' |
| 838 |
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 839 |
infodir='${datarootdir}/info' |
| 840 |
htmldir='${docdir}' |
| 841 |
dvidir='${docdir}' |
| 842 |
pdfdir='${docdir}' |
| 843 |
psdir='${docdir}' |
| 844 |
libdir='${exec_prefix}/lib' |
| 845 |
localedir='${datarootdir}/locale' |
| 846 |
mandir='${datarootdir}/man' |
| 847 |
|
| 848 |
ac_prev= |
| 849 |
ac_dashdash= |
| 850 |
for ac_option |
| 851 |
do |
| 852 |
# If the previous option needs an argument, assign it. |
| 853 |
if test -n "$ac_prev"; then |
| 854 |
eval $ac_prev=\$ac_option |
| 855 |
ac_prev= |
| 856 |
continue |
| 857 |
fi |
| 858 |
|
| 859 |
case $ac_option in |
| 860 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 861 |
*=) ac_optarg= ;; |
| 862 |
*) ac_optarg=yes ;; |
| 863 |
esac |
| 864 |
|
| 865 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
| 866 |
|
| 867 |
case $ac_dashdash$ac_option in |
| 868 |
--) |
| 869 |
ac_dashdash=yes ;; |
| 870 |
|
| 871 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 872 |
ac_prev=bindir ;; |
| 873 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 874 |
bindir=$ac_optarg ;; |
| 875 |
|
| 876 |
-build | --build | --buil | --bui | --bu) |
| 877 |
ac_prev=build_alias ;; |
| 878 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 879 |
build_alias=$ac_optarg ;; |
| 880 |
|
| 881 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 882 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 883 |
ac_prev=cache_file ;; |
| 884 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 885 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 886 |
cache_file=$ac_optarg ;; |
| 887 |
|
| 888 |
--config-cache | -C) |
| 889 |
cache_file=config.cache ;; |
| 890 |
|
| 891 |
-datadir | --datadir | --datadi | --datad) |
| 892 |
ac_prev=datadir ;; |
| 893 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 894 |
datadir=$ac_optarg ;; |
| 895 |
|
| 896 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 897 |
| --dataroo | --dataro | --datar) |
| 898 |
ac_prev=datarootdir ;; |
| 899 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 900 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 901 |
datarootdir=$ac_optarg ;; |
| 902 |
|
| 903 |
-disable-* | --disable-*) |
| 904 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 905 |
# Reject names that are not valid shell variable names. |
| 906 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 907 |
as_fn_error $? "invalid feature name: $ac_useropt" |
| 908 |
ac_useropt_orig=$ac_useropt |
| 909 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 910 |
case $ac_user_opts in |
| 911 |
*" |
| 912 |
"enable_$ac_useropt" |
| 913 |
"*) ;; |
| 914 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 915 |
ac_unrecognized_sep=', ';; |
| 916 |
esac |
| 917 |
eval enable_$ac_useropt=no ;; |
| 918 |
|
| 919 |
-docdir | --docdir | --docdi | --doc | --do) |
| 920 |
ac_prev=docdir ;; |
| 921 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 922 |
docdir=$ac_optarg ;; |
| 923 |
|
| 924 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 925 |
ac_prev=dvidir ;; |
| 926 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 927 |
dvidir=$ac_optarg ;; |
| 928 |
|
| 929 |
-enable-* | --enable-*) |
| 930 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 931 |
# Reject names that are not valid shell variable names. |
| 932 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 933 |
as_fn_error $? "invalid feature name: $ac_useropt" |
| 934 |
ac_useropt_orig=$ac_useropt |
| 935 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 936 |
case $ac_user_opts in |
| 937 |
*" |
| 938 |
"enable_$ac_useropt" |
| 939 |
"*) ;; |
| 940 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 941 |
ac_unrecognized_sep=', ';; |
| 942 |
esac |
| 943 |
eval enable_$ac_useropt=\$ac_optarg ;; |
| 944 |
|
| 945 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 946 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 947 |
| --exec | --exe | --ex) |
| 948 |
ac_prev=exec_prefix ;; |
| 949 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 950 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 951 |
| --exec=* | --exe=* | --ex=*) |
| 952 |
exec_prefix=$ac_optarg ;; |
| 953 |
|
| 954 |
-gas | --gas | --ga | --g) |
| 955 |
# Obsolete; use --with-gas. |
| 956 |
with_gas=yes ;; |
| 957 |
|
| 958 |
-help | --help | --hel | --he | -h) |
| 959 |
ac_init_help=long ;; |
| 960 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 961 |
ac_init_help=recursive ;; |
| 962 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 963 |
ac_init_help=short ;; |
| 964 |
|
| 965 |
-host | --host | --hos | --ho) |
| 966 |
ac_prev=host_alias ;; |
| 967 |
-host=* | --host=* | --hos=* | --ho=*) |
| 968 |
host_alias=$ac_optarg ;; |
| 969 |
|
| 970 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 971 |
ac_prev=htmldir ;; |
| 972 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 973 |
| --ht=*) |
| 974 |
htmldir=$ac_optarg ;; |
| 975 |
|
| 976 |
-includedir | --includedir | --includedi | --included | --include \ |
| 977 |
| --includ | --inclu | --incl | --inc) |
| 978 |
ac_prev=includedir ;; |
| 979 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 980 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
| 981 |
includedir=$ac_optarg ;; |
| 982 |
|
| 983 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
| 984 |
ac_prev=infodir ;; |
| 985 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 986 |
infodir=$ac_optarg ;; |
| 987 |
|
| 988 |
-libdir | --libdir | --libdi | --libd) |
| 989 |
ac_prev=libdir ;; |
| 990 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 991 |
libdir=$ac_optarg ;; |
| 992 |
|
| 993 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 994 |
| --libexe | --libex | --libe) |
| 995 |
ac_prev=libexecdir ;; |
| 996 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 997 |
| --libexe=* | --libex=* | --libe=*) |
| 998 |
libexecdir=$ac_optarg ;; |
| 999 |
|
| 1000 |
-localedir | --localedir | --localedi | --localed | --locale) |
| 1001 |
ac_prev=localedir ;; |
| 1002 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1003 |
localedir=$ac_optarg ;; |
| 1004 |
|
| 1005 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1006 |
| --localstate | --localstat | --localsta | --localst | --locals) |
| 1007 |
ac_prev=localstatedir ;; |
| 1008 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1009 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1010 |
localstatedir=$ac_optarg ;; |
| 1011 |
|
| 1012 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1013 |
ac_prev=mandir ;; |
| 1014 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1015 |
mandir=$ac_optarg ;; |
| 1016 |
|
| 1017 |
-nfp | --nfp | --nf) |
| 1018 |
# Obsolete; use --without-fp. |
| 1019 |
with_fp=no ;; |
| 1020 |
|
| 1021 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1022 |
| --no-cr | --no-c | -n) |
| 1023 |
no_create=yes ;; |
| 1024 |
|
| 1025 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1026 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1027 |
no_recursion=yes ;; |
| 1028 |
|
| 1029 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1030 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1031 |
| --oldin | --oldi | --old | --ol | --o) |
| 1032 |
ac_prev=oldincludedir ;; |
| 1033 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1034 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1035 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1036 |
oldincludedir=$ac_optarg ;; |
| 1037 |
|
| 1038 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1039 |
ac_prev=prefix ;; |
| 1040 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1041 |
prefix=$ac_optarg ;; |
| 1042 |
|
| 1043 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1044 |
| --program-pre | --program-pr | --program-p) |
| 1045 |
ac_prev=program_prefix ;; |
| 1046 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1047 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1048 |
program_prefix=$ac_optarg ;; |
| 1049 |
|
| 1050 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1051 |
| --program-suf | --program-su | --program-s) |
| 1052 |
ac_prev=program_suffix ;; |
| 1053 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1054 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1055 |
program_suffix=$ac_optarg ;; |
| 1056 |
|
| 1057 |
-program-transform-name | --program-transform-name \ |
| 1058 |
| --program-transform-nam | --program-transform-na \ |
| 1059 |
| --program-transform-n | --program-transform- \ |
| 1060 |
| --program-transform | --program-transfor \ |
| 1061 |
| --program-transfo | --program-transf \ |
| 1062 |
| --program-trans | --program-tran \ |
| 1063 |
| --progr-tra | --program-tr | --program-t) |
| 1064 |
ac_prev=program_transform_name ;; |
| 1065 |
-program-transform-name=* | --program-transform-name=* \ |
| 1066 |
| --program-transform-nam=* | --program-transform-na=* \ |
| 1067 |
| --program-transform-n=* | --program-transform-=* \ |
| 1068 |
| --program-transform=* | --program-transfor=* \ |
| 1069 |
| --program-transfo=* | --program-transf=* \ |
| 1070 |
| --program-trans=* | --program-tran=* \ |
| 1071 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
| 1072 |
program_transform_name=$ac_optarg ;; |
| 1073 |
|
| 1074 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1075 |
ac_prev=pdfdir ;; |
| 1076 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1077 |
pdfdir=$ac_optarg ;; |
| 1078 |
|
| 1079 |
-psdir | --psdir | --psdi | --psd | --ps) |
| 1080 |
ac_prev=psdir ;; |
| 1081 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1082 |
psdir=$ac_optarg ;; |
| 1083 |
|
| 1084 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1085 |
| -silent | --silent | --silen | --sile | --sil) |
| 1086 |
silent=yes ;; |
| 1087 |
|
| 1088 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1089 |
ac_prev=sbindir ;; |
| 1090 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1091 |
| --sbi=* | --sb=*) |
| 1092 |
sbindir=$ac_optarg ;; |
| 1093 |
|
| 1094 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1095 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1096 |
| --sharedst | --shareds | --shared | --share | --shar \ |
| 1097 |
| --sha | --sh) |
| 1098 |
ac_prev=sharedstatedir ;; |
| 1099 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1100 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1101 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1102 |
| --sha=* | --sh=*) |
| 1103 |
sharedstatedir=$ac_optarg ;; |
| 1104 |
|
| 1105 |
-site | --site | --sit) |
| 1106 |
ac_prev=site ;; |
| 1107 |
-site=* | --site=* | --sit=*) |
| 1108 |
site=$ac_optarg ;; |
| 1109 |
|
| 1110 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1111 |
ac_prev=srcdir ;; |
| 1112 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1113 |
srcdir=$ac_optarg ;; |
| 1114 |
|
| 1115 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1116 |
| --syscon | --sysco | --sysc | --sys | --sy) |
| 1117 |
ac_prev=sysconfdir ;; |
| 1118 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1119 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1120 |
sysconfdir=$ac_optarg ;; |
| 1121 |
|
| 1122 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
| 1123 |
ac_prev=target_alias ;; |
| 1124 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1125 |
target_alias=$ac_optarg ;; |
| 1126 |
|
| 1127 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1128 |
verbose=yes ;; |
| 1129 |
|
| 1130 |
-version | --version | --versio | --versi | --vers | -V) |
| 1131 |
ac_init_version=: ;; |
| 1132 |
|
| 1133 |
-with-* | --with-*) |
| 1134 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1135 |
# Reject names that are not valid shell variable names. |
| 1136 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1137 |
as_fn_error $? "invalid package name: $ac_useropt" |
| 1138 |
ac_useropt_orig=$ac_useropt |
| 1139 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1140 |
case $ac_user_opts in |
| 1141 |
*" |
| 1142 |
"with_$ac_useropt" |
| 1143 |
"*) ;; |
| 1144 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1145 |
ac_unrecognized_sep=', ';; |
| 1146 |
esac |
| 1147 |
eval with_$ac_useropt=\$ac_optarg ;; |
| 1148 |
|
| 1149 |
-without-* | --without-*) |
| 1150 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1151 |
# Reject names that are not valid shell variable names. |
| 1152 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1153 |
as_fn_error $? "invalid package name: $ac_useropt" |
| 1154 |
ac_useropt_orig=$ac_useropt |
| 1155 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1156 |
case $ac_user_opts in |
| 1157 |
*" |
| 1158 |
"with_$ac_useropt" |
| 1159 |
"*) ;; |
| 1160 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1161 |
ac_unrecognized_sep=', ';; |
| 1162 |
esac |
| 1163 |
eval with_$ac_useropt=no ;; |
| 1164 |
|
| 1165 |
--x) |
| 1166 |
# Obsolete; use --with-x. |
| 1167 |
with_x=yes ;; |
| 1168 |
|
| 1169 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1170 |
| --x-incl | --x-inc | --x-in | --x-i) |
| 1171 |
ac_prev=x_includes ;; |
| 1172 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1173 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1174 |
x_includes=$ac_optarg ;; |
| 1175 |
|
| 1176 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1177 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1178 |
ac_prev=x_libraries ;; |
| 1179 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1180 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1181 |
x_libraries=$ac_optarg ;; |
| 1182 |
|
| 1183 |
-*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1184 |
Try \`$0 --help' for more information" |
| 1185 |
;; |
| 1186 |
|
| 1187 |
*=*) |
| 1188 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1189 |
# Reject names that are not valid shell variable names. |
| 1190 |
case $ac_envvar in #( |
| 1191 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1192 |
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1193 |
esac |
| 1194 |
eval $ac_envvar=\$ac_optarg |
| 1195 |
export $ac_envvar ;; |
| 1196 |
|
| 1197 |
*) |
| 1198 |
# FIXME: should be removed in autoconf 3.0. |
| 1199 |
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1200 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1201 |
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1202 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1203 |
;; |
| 1204 |
|
| 1205 |
esac |
| 1206 |
done |
| 1207 |
|
| 1208 |
if test -n "$ac_prev"; then |
| 1209 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1210 |
as_fn_error $? "missing argument to $ac_option" |
| 1211 |
fi |
| 1212 |
|
| 1213 |
if test -n "$ac_unrecognized_opts"; then |
| 1214 |
case $enable_option_checking in |
| 1215 |
no) ;; |
| 1216 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1217 |
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1218 |
esac |
| 1219 |
fi |
| 1220 |
|
| 1221 |
# Check all directory arguments for consistency. |
| 1222 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1223 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1224 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1225 |
libdir localedir mandir |
| 1226 |
do |
| 1227 |
eval ac_val=\$$ac_var |
| 1228 |
# Remove trailing slashes. |
| 1229 |
case $ac_val in |
| 1230 |
*/ ) |
| 1231 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1232 |
eval $ac_var=\$ac_val;; |
| 1233 |
esac |
| 1234 |
# Be sure to have absolute directory names. |
| 1235 |
case $ac_val in |
| 1236 |
[\\/$]* | ?:[\\/]* ) continue;; |
| 1237 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1238 |
esac |
| 1239 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1240 |
done |
| 1241 |
|
| 1242 |
# There might be people who depend on the old broken behavior: `$host' |
| 1243 |
# used to hold the argument of --host etc. |
| 1244 |
# FIXME: To remove some day. |
| 1245 |
build=$build_alias |
| 1246 |
host=$host_alias |
| 1247 |
target=$target_alias |
| 1248 |
|
| 1249 |
# FIXME: To remove some day. |
| 1250 |
if test "x$host_alias" != x; then |
| 1251 |
if test "x$build_alias" = x; then |
| 1252 |
cross_compiling=maybe |
| 1253 |
elif test "x$build_alias" != "x$host_alias"; then |
| 1254 |
cross_compiling=yes |
| 1255 |
fi |
| 1256 |
fi |
| 1257 |
|
| 1258 |
ac_tool_prefix= |
| 1259 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1260 |
|
| 1261 |
test "$silent" = yes && exec 6>/dev/null |
| 1262 |
|
| 1263 |
|
| 1264 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1265 |
ac_ls_di=`ls -di .` && |
| 1266 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1267 |
as_fn_error $? "working directory cannot be determined" |
| 1268 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1269 |
as_fn_error $? "pwd does not report name of working directory" |
| 1270 |
|
| 1271 |
|
| 1272 |
# Find the source files, if location was not specified. |
| 1273 |
if test -z "$srcdir"; then |
| 1274 |
ac_srcdir_defaulted=yes |
| 1275 |
# Try the directory containing this script, then the parent directory. |
| 1276 |
ac_confdir=`$as_dirname -- "$as_myself" || |
| 1277 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1278 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1279 |
X"$as_myself" : 'X\(//\)$' \| \ |
| 1280 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1281 |
$as_echo X"$as_myself" | |
| 1282 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1283 |
s//\1/ |
| 1284 |
q |
| 1285 |
} |
| 1286 |
/^X\(\/\/\)[^/].*/{ |
| 1287 |
s//\1/ |
| 1288 |
q |
| 1289 |
} |
| 1290 |
/^X\(\/\/\)$/{ |
| 1291 |
s//\1/ |
| 1292 |
q |
| 1293 |
} |
| 1294 |
/^X\(\/\).*/{ |
| 1295 |
s//\1/ |
| 1296 |
q |
| 1297 |
} |
| 1298 |
s/.*/./; q'` |
| 1299 |
srcdir=$ac_confdir |
| 1300 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 1301 |
srcdir=.. |
| 1302 |
fi |
| 1303 |
else |
| 1304 |
ac_srcdir_defaulted=no |
| 1305 |
fi |
| 1306 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 1307 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1308 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1309 |
fi |
| 1310 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1311 |
ac_abs_confdir=`( |
| 1312 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1313 |
pwd)` |
| 1314 |
# When building in place, set srcdir=. |
| 1315 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1316 |
srcdir=. |
| 1317 |
fi |
| 1318 |
# Remove unnecessary trailing slashes from srcdir. |
| 1319 |
# Double slashes in file names in object file debugging info |
| 1320 |
# mess up M-x gdb in Emacs. |
| 1321 |
case $srcdir in |
| 1322 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1323 |
esac |
| 1324 |
for ac_var in $ac_precious_vars; do |
| 1325 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1326 |
eval ac_env_${ac_var}_value=\$${ac_var} |
| 1327 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1328 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1329 |
done |
| 1330 |
|
| 1331 |
# |
| 1332 |
# Report the --help message. |
| 1333 |
# |
| 1334 |
if test "$ac_init_help" = "long"; then |
| 1335 |
# Omit some internal or obsolete options to make the list less imposing. |
| 1336 |
# This message is too long to be a string in the A/UX 3.1 sh. |
| 1337 |
cat <<_ACEOF |
| 1338 |
\`configure' configures OpenSSH Portable to adapt to many kinds of systems. |
| 1339 |
|
| 1340 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1341 |
|
| 1342 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1343 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1344 |
|
| 1345 |
Defaults for the options are specified in brackets. |
| 1346 |
|
| 1347 |
Configuration: |
| 1348 |
-h, --help display this help and exit |
| 1349 |
--help=short display options specific to this package |
| 1350 |
--help=recursive display the short help of all the included packages |
| 1351 |
-V, --version display version information and exit |
| 1352 |
-q, --quiet, --silent do not print \`checking ...' messages |
| 1353 |
--cache-file=FILE cache test results in FILE [disabled] |
| 1354 |
-C, --config-cache alias for \`--cache-file=config.cache' |
| 1355 |
-n, --no-create do not create output files |
| 1356 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1357 |
|
| 1358 |
Installation directories: |
| 1359 |
--prefix=PREFIX install architecture-independent files in PREFIX |
| 1360 |
[$ac_default_prefix] |
| 1361 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1362 |
[PREFIX] |
| 1363 |
|
| 1364 |
By default, \`make install' will install all the files in |
| 1365 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1366 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1367 |
for instance \`--prefix=\$HOME'. |
| 1368 |
|
| 1369 |
For better control, use the options below. |
| 1370 |
|
| 1371 |
Fine tuning of the installation directories: |
| 1372 |
--bindir=DIR user executables [EPREFIX/bin] |
| 1373 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1374 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
| 1375 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1376 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1377 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1378 |
--libdir=DIR object code libraries [EPREFIX/lib] |
| 1379 |
--includedir=DIR C header files [PREFIX/include] |
| 1380 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1381 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1382 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1383 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
| 1384 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1385 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
| 1386 |
--docdir=DIR documentation root [DATAROOTDIR/doc/openssh] |
| 1387 |
--htmldir=DIR html documentation [DOCDIR] |
| 1388 |
--dvidir=DIR dvi documentation [DOCDIR] |
| 1389 |
--pdfdir=DIR pdf documentation [DOCDIR] |
| 1390 |
--psdir=DIR ps documentation [DOCDIR] |
| 1391 |
_ACEOF |
| 1392 |
|
| 1393 |
cat <<\_ACEOF |
| 1394 |
|
| 1395 |
System types: |
| 1396 |
--build=BUILD configure for building on BUILD [guessed] |
| 1397 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1398 |
_ACEOF |
| 1399 |
fi |
| 1400 |
|
| 1401 |
if test -n "$ac_init_help"; then |
| 1402 |
case $ac_init_help in |
| 1403 |
short | recursive ) echo "Configuration of OpenSSH Portable:";; |
| 1404 |
esac |
| 1405 |
cat <<\_ACEOF |
| 1406 |
|
| 1407 |
Optional Features: |
| 1408 |
--disable-option-checking ignore unrecognized --enable/--with options |
| 1409 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1410 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1411 |
--disable-largefile omit support for large files |
| 1412 |
--disable-strip Disable calling strip(1) on install |
| 1413 |
--disable-etc-default-login Disable using PATH from /etc/default/login no |
| 1414 |
--disable-lastlog disable use of lastlog even if detected no |
| 1415 |
--disable-utmp disable use of utmp even if detected no |
| 1416 |
--disable-utmpx disable use of utmpx even if detected no |
| 1417 |
--disable-wtmp disable use of wtmp even if detected no |
| 1418 |
--disable-wtmpx disable use of wtmpx even if detected no |
| 1419 |
--disable-libutil disable use of libutil (login() etc.) no |
| 1420 |
--disable-pututline disable use of pututline() etc. (uwtmp) no |
| 1421 |
--disable-pututxline disable use of pututxline() etc. (uwtmpx) no |
| 1422 |
|
| 1423 |
Optional Packages: |
| 1424 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1425 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1426 |
--without-openssl Disable use of OpenSSL; use only limited internal crypto **EXPERIMENTAL** |
| 1427 |
--without-ssh1 Enable support for SSH protocol 1 |
| 1428 |
--without-stackprotect Don't use compiler's stack protection |
| 1429 |
--without-hardening Don't use toolchain hardening flags |
| 1430 |
--without-rpath Disable auto-added -R linker paths |
| 1431 |
--with-cflags Specify additional flags to pass to compiler |
| 1432 |
--with-cppflags Specify additional flags to pass to preprocessor |
| 1433 |
--with-ldflags Specify additional flags to pass to linker |
| 1434 |
--with-libs Specify additional libraries to link with |
| 1435 |
--with-Werror Build main code with -Werror |
| 1436 |
--with-solaris-contracts Enable Solaris process contracts (experimental) |
| 1437 |
--with-solaris-projects Enable Solaris projects (experimental) |
| 1438 |
--with-osfsia Enable Digital Unix SIA |
| 1439 |
--with-zlib=PATH Use zlib in PATH |
| 1440 |
--without-zlib-version-check Disable zlib version check |
| 1441 |
--with-skey[=PATH] Enable S/Key support (optionally in PATH) |
| 1442 |
--with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH) |
| 1443 |
--with-libedit[=PATH] Enable libedit support for sftp |
| 1444 |
--with-audit=module Enable audit support (modules=debug,bsm,linux) |
| 1445 |
--with-pie Build Position Independent Executables if possible |
| 1446 |
--with-openssl=PATH Specify path to OpenSSL installation |
| 1447 |
--without-openssl-header-check Disable OpenSSL version consistency check |
| 1448 |
--with-ssl-engine Enable OpenSSL (hardware) ENGINE support |
| 1449 |
--with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT |
| 1450 |
--with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) |
| 1451 |
--with-pam Enable PAM support |
| 1452 |
--with-privsep-user=user Specify non-privileged user for privilege separation |
| 1453 |
--with-sandbox=style Specify privilege separation sandbox (no, darwin, rlimit, systrace, seccomp_filter, capsicum) |
| 1454 |
--with-selinux Enable SELinux support |
| 1455 |
--with-kerberos5=PATH Enable Kerberos 5 support |
| 1456 |
--with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) |
| 1457 |
--with-xauth=PATH Specify path to xauth program |
| 1458 |
--with-maildir=/path/to/mail Specify your system mail directory |
| 1459 |
--with-mantype=man|cat|doc Set man page type |
| 1460 |
--with-md5-passwords Enable use of MD5 passwords |
| 1461 |
--without-shadow Disable shadow password support |
| 1462 |
--with-ipaddr-display Use ip address instead of hostname in $DISPLAY |
| 1463 |
--with-default-path= Specify default $PATH environment for server |
| 1464 |
--with-superuser-path= Specify different path for super-user |
| 1465 |
--with-4in6 Check for and convert IPv4 in IPv6 mapped addresses |
| 1466 |
--with-bsd-auth Enable BSD auth support |
| 1467 |
--with-pid-dir=PATH Specify location of ssh.pid file |
| 1468 |
--with-lastlog=FILE|DIR specify lastlog location common locations |
| 1469 |
|
| 1470 |
Some influential environment variables: |
| 1471 |
CC C compiler command |
| 1472 |
CFLAGS C compiler flags |
| 1473 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1474 |
nonstandard directory <lib dir> |
| 1475 |
LIBS libraries to pass to the linker, e.g. -l<library> |
| 1476 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1477 |
you have headers in a nonstandard directory <include dir> |
| 1478 |
CPP C preprocessor |
| 1479 |
|
| 1480 |
Use these variables to override the choices made by `configure' or to help |
| 1481 |
it to find libraries and programs with nonstandard names/locations. |
| 1482 |
|
| 1483 |
Report bugs to <[email protected]>. |
| 1484 |
_ACEOF |
| 1485 |
ac_status=$? |
| 1486 |
fi |
| 1487 |
|
| 1488 |
if test "$ac_init_help" = "recursive"; then |
| 1489 |
# If there are subdirs, report their specific --help. |
| 1490 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1491 |
test -d "$ac_dir" || |
| 1492 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1493 |
continue |
| 1494 |
ac_builddir=. |
| 1495 |
|
| 1496 |
case "$ac_dir" in |
| 1497 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1498 |
*) |
| 1499 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1500 |
# A ".." for each directory in $ac_dir_suffix. |
| 1501 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1502 |
case $ac_top_builddir_sub in |
| 1503 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1504 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1505 |
esac ;; |
| 1506 |
esac |
| 1507 |
ac_abs_top_builddir=$ac_pwd |
| 1508 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1509 |
# for backward compatibility: |
| 1510 |
ac_top_builddir=$ac_top_build_prefix |
| 1511 |
|
| 1512 |
case $srcdir in |
| 1513 |
.) # We are building in place. |
| 1514 |
ac_srcdir=. |
| 1515 |
ac_top_srcdir=$ac_top_builddir_sub |
| 1516 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 1517 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 1518 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 1519 |
ac_top_srcdir=$srcdir |
| 1520 |
ac_abs_top_srcdir=$srcdir ;; |
| 1521 |
*) # Relative name. |
| 1522 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1523 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1524 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1525 |
esac |
| 1526 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1527 |
|
| 1528 |
cd "$ac_dir" || { ac_status=$?; continue; } |
| 1529 |
# Check for guested configure. |
| 1530 |
if test -f "$ac_srcdir/configure.gnu"; then |
| 1531 |
echo && |
| 1532 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1533 |
elif test -f "$ac_srcdir/configure"; then |
| 1534 |
echo && |
| 1535 |
$SHELL "$ac_srcdir/configure" --help=recursive |
| 1536 |
else |
| 1537 |
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1538 |
fi || ac_status=$? |
| 1539 |
cd "$ac_pwd" || { ac_status=$?; break; } |
| 1540 |
done |
| 1541 |
fi |
| 1542 |
|
| 1543 |
test -n "$ac_init_help" && exit $ac_status |
| 1544 |
if $ac_init_version; then |
| 1545 |
cat <<\_ACEOF |
| 1546 |
OpenSSH configure Portable |
| 1547 |
generated by GNU Autoconf 2.69 |
| 1548 |
|
| 1549 |
Copyright (C) 2012 Free Software Foundation, Inc. |
| 1550 |
This configure script is free software; the Free Software Foundation |
| 1551 |
gives unlimited permission to copy, distribute and modify it. |
| 1552 |
_ACEOF |
| 1553 |
exit |
| 1554 |
fi |
| 1555 |
|
| 1556 |
## ------------------------ ## |
| 1557 |
## Autoconf initialization. ## |
| 1558 |
## ------------------------ ## |
| 1559 |
|
| 1560 |
# ac_fn_c_try_compile LINENO |
| 1561 |
# -------------------------- |
| 1562 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1563 |
ac_fn_c_try_compile () |
| 1564 |
{ |
| 1565 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1566 |
rm -f conftest.$ac_objext |
| 1567 |
if { { ac_try="$ac_compile" |
| 1568 |
case "(($ac_try" in |
| 1569 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1570 |
*) ac_try_echo=$ac_try;; |
| 1571 |
esac |
| 1572 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1573 |
$as_echo "$ac_try_echo"; } >&5 |
| 1574 |
(eval "$ac_compile") 2>conftest.err |
| 1575 |
ac_status=$? |
| 1576 |
if test -s conftest.err; then |
| 1577 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1578 |
cat conftest.er1 >&5 |
| 1579 |
mv -f conftest.er1 conftest.err |
| 1580 |
fi |
| 1581 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1582 |
test $ac_status = 0; } && { |
| 1583 |
test -z "$ac_c_werror_flag" || |
| 1584 |
test ! -s conftest.err |
| 1585 |
} && test -s conftest.$ac_objext; then : |
| 1586 |
ac_retval=0 |
| 1587 |
else |
| 1588 |
$as_echo "$as_me: failed program was:" >&5 |
| 1589 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1590 |
|
| 1591 |
ac_retval=1 |
| 1592 |
fi |
| 1593 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1594 |
as_fn_set_status $ac_retval |
| 1595 |
|
| 1596 |
} # ac_fn_c_try_compile |
| 1597 |
|
| 1598 |
# ac_fn_c_try_run LINENO |
| 1599 |
# ---------------------- |
| 1600 |
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1601 |
# that executables *can* be run. |
| 1602 |
ac_fn_c_try_run () |
| 1603 |
{ |
| 1604 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1605 |
if { { ac_try="$ac_link" |
| 1606 |
case "(($ac_try" in |
| 1607 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1608 |
*) ac_try_echo=$ac_try;; |
| 1609 |
esac |
| 1610 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1611 |
$as_echo "$ac_try_echo"; } >&5 |
| 1612 |
(eval "$ac_link") 2>&5 |
| 1613 |
ac_status=$? |
| 1614 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1615 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1616 |
{ { case "(($ac_try" in |
| 1617 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1618 |
*) ac_try_echo=$ac_try;; |
| 1619 |
esac |
| 1620 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1621 |
$as_echo "$ac_try_echo"; } >&5 |
| 1622 |
(eval "$ac_try") 2>&5 |
| 1623 |
ac_status=$? |
| 1624 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1625 |
test $ac_status = 0; }; }; then : |
| 1626 |
ac_retval=0 |
| 1627 |
else |
| 1628 |
$as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1629 |
$as_echo "$as_me: failed program was:" >&5 |
| 1630 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1631 |
|
| 1632 |
ac_retval=$ac_status |
| 1633 |
fi |
| 1634 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1635 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1636 |
as_fn_set_status $ac_retval |
| 1637 |
|
| 1638 |
} # ac_fn_c_try_run |
| 1639 |
|
| 1640 |
# ac_fn_c_try_cpp LINENO |
| 1641 |
# ---------------------- |
| 1642 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1643 |
ac_fn_c_try_cpp () |
| 1644 |
{ |
| 1645 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1646 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1647 |
case "(($ac_try" in |
| 1648 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1649 |
*) ac_try_echo=$ac_try;; |
| 1650 |
esac |
| 1651 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1652 |
$as_echo "$ac_try_echo"; } >&5 |
| 1653 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1654 |
ac_status=$? |
| 1655 |
if test -s conftest.err; then |
| 1656 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1657 |
cat conftest.er1 >&5 |
| 1658 |
mv -f conftest.er1 conftest.err |
| 1659 |
fi |
| 1660 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1661 |
test $ac_status = 0; } > conftest.i && { |
| 1662 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1663 |
test ! -s conftest.err |
| 1664 |
}; then : |
| 1665 |
ac_retval=0 |
| 1666 |
else |
| 1667 |
$as_echo "$as_me: failed program was:" >&5 |
| 1668 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1669 |
|
| 1670 |
ac_retval=1 |
| 1671 |
fi |
| 1672 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1673 |
as_fn_set_status $ac_retval |
| 1674 |
|
| 1675 |
} # ac_fn_c_try_cpp |
| 1676 |
|
| 1677 |
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1678 |
# ------------------------------------------------------- |
| 1679 |
# Tests whether HEADER exists and can be compiled using the include files in |
| 1680 |
# INCLUDES, setting the cache variable VAR accordingly. |
| 1681 |
ac_fn_c_check_header_compile () |
| 1682 |
{ |
| 1683 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1684 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1685 |
$as_echo_n "checking for $2... " >&6; } |
| 1686 |
if eval \${$3+:} false; then : |
| 1687 |
$as_echo_n "(cached) " >&6 |
| 1688 |
else |
| 1689 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1690 |
/* end confdefs.h. */ |
| 1691 |
$4 |
| 1692 |
#include <$2> |
| 1693 |
_ACEOF |
| 1694 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 1695 |
eval "$3=yes" |
| 1696 |
else |
| 1697 |
eval "$3=no" |
| 1698 |
fi |
| 1699 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1700 |
fi |
| 1701 |
eval ac_res=\$$3 |
| 1702 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1703 |
$as_echo "$ac_res" >&6; } |
| 1704 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1705 |
|
| 1706 |
} # ac_fn_c_check_header_compile |
| 1707 |
|
| 1708 |
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 1709 |
# --------------------------------------------- |
| 1710 |
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 1711 |
# accordingly. |
| 1712 |
ac_fn_c_check_decl () |
| 1713 |
{ |
| 1714 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1715 |
as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 1716 |
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 1717 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 1718 |
$as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 1719 |
if eval \${$3+:} false; then : |
| 1720 |
$as_echo_n "(cached) " >&6 |
| 1721 |
else |
| 1722 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1723 |
/* end confdefs.h. */ |
| 1724 |
$4 |
| 1725 |
int |
| 1726 |
main () |
| 1727 |
{ |
| 1728 |
#ifndef $as_decl_name |
| 1729 |
#ifdef __cplusplus |
| 1730 |
(void) $as_decl_use; |
| 1731 |
#else |
| 1732 |
(void) $as_decl_name; |
| 1733 |
#endif |
| 1734 |
#endif |
| 1735 |
|
| 1736 |
; |
| 1737 |
return 0; |
| 1738 |
} |
| 1739 |
_ACEOF |
| 1740 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 1741 |
eval "$3=yes" |
| 1742 |
else |
| 1743 |
eval "$3=no" |
| 1744 |
fi |
| 1745 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1746 |
fi |
| 1747 |
eval ac_res=\$$3 |
| 1748 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1749 |
$as_echo "$ac_res" >&6; } |
| 1750 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1751 |
|
| 1752 |
} # ac_fn_c_check_decl |
| 1753 |
|
| 1754 |
# ac_fn_c_try_link LINENO |
| 1755 |
# ----------------------- |
| 1756 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1757 |
ac_fn_c_try_link () |
| 1758 |
{ |
| 1759 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1760 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 1761 |
if { { ac_try="$ac_link" |
| 1762 |
case "(($ac_try" in |
| 1763 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1764 |
*) ac_try_echo=$ac_try;; |
| 1765 |
esac |
| 1766 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1767 |
$as_echo "$ac_try_echo"; } >&5 |
| 1768 |
(eval "$ac_link") 2>conftest.err |
| 1769 |
ac_status=$? |
| 1770 |
if test -s conftest.err; then |
| 1771 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1772 |
cat conftest.er1 >&5 |
| 1773 |
mv -f conftest.er1 conftest.err |
| 1774 |
fi |
| 1775 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1776 |
test $ac_status = 0; } && { |
| 1777 |
test -z "$ac_c_werror_flag" || |
| 1778 |
test ! -s conftest.err |
| 1779 |
} && test -s conftest$ac_exeext && { |
| 1780 |
test "$cross_compiling" = yes || |
| 1781 |
test -x conftest$ac_exeext |
| 1782 |
}; then : |
| 1783 |
ac_retval=0 |
| 1784 |
else |
| 1785 |
$as_echo "$as_me: failed program was:" >&5 |
| 1786 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1787 |
|
| 1788 |
ac_retval=1 |
| 1789 |
fi |
| 1790 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1791 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1792 |
# interfere with the next link command; also delete a directory that is |
| 1793 |
# left behind by Apple's compiler. We do this before executing the actions. |
| 1794 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1795 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1796 |
as_fn_set_status $ac_retval |
| 1797 |
|
| 1798 |
} # ac_fn_c_try_link |
| 1799 |
|
| 1800 |
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1801 |
# ------------------------------------------------------- |
| 1802 |
# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1803 |
# the include files in INCLUDES and setting the cache variable VAR |
| 1804 |
# accordingly. |
| 1805 |
ac_fn_c_check_header_mongrel () |
| 1806 |
{ |
| 1807 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1808 |
if eval \${$3+:} false; then : |
| 1809 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1810 |
$as_echo_n "checking for $2... " >&6; } |
| 1811 |
if eval \${$3+:} false; then : |
| 1812 |
$as_echo_n "(cached) " >&6 |
| 1813 |
fi |
| 1814 |
eval ac_res=\$$3 |
| 1815 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1816 |
$as_echo "$ac_res" >&6; } |
| 1817 |
else |
| 1818 |
# Is the header compilable? |
| 1819 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1820 |
$as_echo_n "checking $2 usability... " >&6; } |
| 1821 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1822 |
/* end confdefs.h. */ |
| 1823 |
$4 |
| 1824 |
#include <$2> |
| 1825 |
_ACEOF |
| 1826 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 1827 |
ac_header_compiler=yes |
| 1828 |
else |
| 1829 |
ac_header_compiler=no |
| 1830 |
fi |
| 1831 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1832 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1833 |
$as_echo "$ac_header_compiler" >&6; } |
| 1834 |
|
| 1835 |
# Is the header present? |
| 1836 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1837 |
$as_echo_n "checking $2 presence... " >&6; } |
| 1838 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1839 |
/* end confdefs.h. */ |
| 1840 |
#include <$2> |
| 1841 |
_ACEOF |
| 1842 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 1843 |
ac_header_preproc=yes |
| 1844 |
else |
| 1845 |
ac_header_preproc=no |
| 1846 |
fi |
| 1847 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 1848 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1849 |
$as_echo "$ac_header_preproc" >&6; } |
| 1850 |
|
| 1851 |
# So? What about this header? |
| 1852 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1853 |
yes:no: ) |
| 1854 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1855 |
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1856 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1857 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1858 |
;; |
| 1859 |
no:yes:* ) |
| 1860 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1861 |
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1862 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1863 |
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1864 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1865 |
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1866 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1867 |
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1868 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1869 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1870 |
( $as_echo "## ------------------------------------------- ## |
| 1871 |
## Report this to [email protected] ## |
| 1872 |
## ------------------------------------------- ##" |
| 1873 |
) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1874 |
;; |
| 1875 |
esac |
| 1876 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1877 |
$as_echo_n "checking for $2... " >&6; } |
| 1878 |
if eval \${$3+:} false; then : |
| 1879 |
$as_echo_n "(cached) " >&6 |
| 1880 |
else |
| 1881 |
eval "$3=\$ac_header_compiler" |
| 1882 |
fi |
| 1883 |
eval ac_res=\$$3 |
| 1884 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1885 |
$as_echo "$ac_res" >&6; } |
| 1886 |
fi |
| 1887 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1888 |
|
| 1889 |
} # ac_fn_c_check_header_mongrel |
| 1890 |
|
| 1891 |
# ac_fn_c_check_func LINENO FUNC VAR |
| 1892 |
# ---------------------------------- |
| 1893 |
# Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1894 |
ac_fn_c_check_func () |
| 1895 |
{ |
| 1896 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1897 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1898 |
$as_echo_n "checking for $2... " >&6; } |
| 1899 |
if eval \${$3+:} false; then : |
| 1900 |
$as_echo_n "(cached) " >&6 |
| 1901 |
else |
| 1902 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1903 |
/* end confdefs.h. */ |
| 1904 |
/* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1905 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1906 |
#define $2 innocuous_$2 |
| 1907 |
|
| 1908 |
/* System header to define __stub macros and hopefully few prototypes, |
| 1909 |
which can conflict with char $2 (); below. |
| 1910 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1911 |
<limits.h> exists even on freestanding compilers. */ |
| 1912 |
|
| 1913 |
#ifdef __STDC__ |
| 1914 |
# include <limits.h> |
| 1915 |
#else |
| 1916 |
# include <assert.h> |
| 1917 |
#endif |
| 1918 |
|
| 1919 |
#undef $2 |
| 1920 |
|
| 1921 |
/* Override any GCC internal prototype to avoid an error. |
| 1922 |
Use char because int might match the return type of a GCC |
| 1923 |
builtin and then its argument prototype would still apply. */ |
| 1924 |
#ifdef __cplusplus |
| 1925 |
extern "C" |
| 1926 |
#endif |
| 1927 |
char $2 (); |
| 1928 |
/* The GNU C library defines this for functions which it implements |
| 1929 |
to always fail with ENOSYS. Some functions are actually named |
| 1930 |
something starting with __ and the normal name is an alias. */ |
| 1931 |
#if defined __stub_$2 || defined __stub___$2 |
| 1932 |
choke me |
| 1933 |
#endif |
| 1934 |
|
| 1935 |
int |
| 1936 |
main () |
| 1937 |
{ |
| 1938 |
return $2 (); |
| 1939 |
; |
| 1940 |
return 0; |
| 1941 |
} |
| 1942 |
_ACEOF |
| 1943 |
if ac_fn_c_try_link "$LINENO"; then : |
| 1944 |
eval "$3=yes" |
| 1945 |
else |
| 1946 |
eval "$3=no" |
| 1947 |
fi |
| 1948 |
rm -f core conftest.err conftest.$ac_objext \ |
| 1949 |
conftest$ac_exeext conftest.$ac_ext |
| 1950 |
fi |
| 1951 |
eval ac_res=\$$3 |
| 1952 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1953 |
$as_echo "$ac_res" >&6; } |
| 1954 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1955 |
|
| 1956 |
} # ac_fn_c_check_func |
| 1957 |
|
| 1958 |
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1959 |
# ------------------------------------------- |
| 1960 |
# Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1961 |
# variable VAR accordingly. |
| 1962 |
ac_fn_c_check_type () |
| 1963 |
{ |
| 1964 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1965 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1966 |
$as_echo_n "checking for $2... " >&6; } |
| 1967 |
if eval \${$3+:} false; then : |
| 1968 |
$as_echo_n "(cached) " >&6 |
| 1969 |
else |
| 1970 |
eval "$3=no" |
| 1971 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1972 |
/* end confdefs.h. */ |
| 1973 |
$4 |
| 1974 |
int |
| 1975 |
main () |
| 1976 |
{ |
| 1977 |
if (sizeof ($2)) |
| 1978 |
return 0; |
| 1979 |
; |
| 1980 |
return 0; |
| 1981 |
} |
| 1982 |
_ACEOF |
| 1983 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 1984 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1985 |
/* end confdefs.h. */ |
| 1986 |
$4 |
| 1987 |
int |
| 1988 |
main () |
| 1989 |
{ |
| 1990 |
if (sizeof (($2))) |
| 1991 |
return 0; |
| 1992 |
; |
| 1993 |
return 0; |
| 1994 |
} |
| 1995 |
_ACEOF |
| 1996 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 1997 |
|
| 1998 |
else |
| 1999 |
eval "$3=yes" |
| 2000 |
fi |
| 2001 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2002 |
fi |
| 2003 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2004 |
fi |
| 2005 |
eval ac_res=\$$3 |
| 2006 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2007 |
$as_echo "$ac_res" >&6; } |
| 2008 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2009 |
|
| 2010 |
} # ac_fn_c_check_type |
| 2011 |
|
| 2012 |
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2013 |
# -------------------------------------------- |
| 2014 |
# Tries to find the compile-time value of EXPR in a program that includes |
| 2015 |
# INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2016 |
# computed |
| 2017 |
ac_fn_c_compute_int () |
| 2018 |
{ |
| 2019 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2020 |
if test "$cross_compiling" = yes; then |
| 2021 |
# Depending upon the size, compute the lo and hi bounds. |
| 2022 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2023 |
/* end confdefs.h. */ |
| 2024 |
$4 |
| 2025 |
int |
| 2026 |
main () |
| 2027 |
{ |
| 2028 |
static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2029 |
test_array [0] = 0; |
| 2030 |
return test_array [0]; |
| 2031 |
|
| 2032 |
; |
| 2033 |
return 0; |
| 2034 |
} |
| 2035 |
_ACEOF |
| 2036 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2037 |
ac_lo=0 ac_mid=0 |
| 2038 |
while :; do |
| 2039 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2040 |
/* end confdefs.h. */ |
| 2041 |
$4 |
| 2042 |
int |
| 2043 |
main () |
| 2044 |
{ |
| 2045 |
static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2046 |
test_array [0] = 0; |
| 2047 |
return test_array [0]; |
| 2048 |
|
| 2049 |
; |
| 2050 |
return 0; |
| 2051 |
} |
| 2052 |
_ACEOF |
| 2053 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2054 |
ac_hi=$ac_mid; break |
| 2055 |
else |
| 2056 |
as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2057 |
if test $ac_lo -le $ac_mid; then |
| 2058 |
ac_lo= ac_hi= |
| 2059 |
break |
| 2060 |
fi |
| 2061 |
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2062 |
fi |
| 2063 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2064 |
done |
| 2065 |
else |
| 2066 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2067 |
/* end confdefs.h. */ |
| 2068 |
$4 |
| 2069 |
int |
| 2070 |
main () |
| 2071 |
{ |
| 2072 |
static int test_array [1 - 2 * !(($2) < 0)]; |
| 2073 |
test_array [0] = 0; |
| 2074 |
return test_array [0]; |
| 2075 |
|
| 2076 |
; |
| 2077 |
return 0; |
| 2078 |
} |
| 2079 |
_ACEOF |
| 2080 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2081 |
ac_hi=-1 ac_mid=-1 |
| 2082 |
while :; do |
| 2083 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2084 |
/* end confdefs.h. */ |
| 2085 |
$4 |
| 2086 |
int |
| 2087 |
main () |
| 2088 |
{ |
| 2089 |
static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2090 |
test_array [0] = 0; |
| 2091 |
return test_array [0]; |
| 2092 |
|
| 2093 |
; |
| 2094 |
return 0; |
| 2095 |
} |
| 2096 |
_ACEOF |
| 2097 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2098 |
ac_lo=$ac_mid; break |
| 2099 |
else |
| 2100 |
as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2101 |
if test $ac_mid -le $ac_hi; then |
| 2102 |
ac_lo= ac_hi= |
| 2103 |
break |
| 2104 |
fi |
| 2105 |
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2106 |
fi |
| 2107 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2108 |
done |
| 2109 |
else |
| 2110 |
ac_lo= ac_hi= |
| 2111 |
fi |
| 2112 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2113 |
fi |
| 2114 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2115 |
# Binary search between lo and hi bounds. |
| 2116 |
while test "x$ac_lo" != "x$ac_hi"; do |
| 2117 |
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2118 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2119 |
/* end confdefs.h. */ |
| 2120 |
$4 |
| 2121 |
int |
| 2122 |
main () |
| 2123 |
{ |
| 2124 |
static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2125 |
test_array [0] = 0; |
| 2126 |
return test_array [0]; |
| 2127 |
|
| 2128 |
; |
| 2129 |
return 0; |
| 2130 |
} |
| 2131 |
_ACEOF |
| 2132 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2133 |
ac_hi=$ac_mid |
| 2134 |
else |
| 2135 |
as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2136 |
fi |
| 2137 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2138 |
done |
| 2139 |
case $ac_lo in #(( |
| 2140 |
?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2141 |
'') ac_retval=1 ;; |
| 2142 |
esac |
| 2143 |
else |
| 2144 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2145 |
/* end confdefs.h. */ |
| 2146 |
$4 |
| 2147 |
static long int longval () { return $2; } |
| 2148 |
static unsigned long int ulongval () { return $2; } |
| 2149 |
#include <stdio.h> |
| 2150 |
#include <stdlib.h> |
| 2151 |
int |
| 2152 |
main () |
| 2153 |
{ |
| 2154 |
|
| 2155 |
FILE *f = fopen ("conftest.val", "w"); |
| 2156 |
if (! f) |
| 2157 |
return 1; |
| 2158 |
if (($2) < 0) |
| 2159 |
{ |
| 2160 |
long int i = longval (); |
| 2161 |
if (i != ($2)) |
| 2162 |
return 1; |
| 2163 |
fprintf (f, "%ld", i); |
| 2164 |
} |
| 2165 |
else |
| 2166 |
{ |
| 2167 |
unsigned long int i = ulongval (); |
| 2168 |
if (i != ($2)) |
| 2169 |
return 1; |
| 2170 |
fprintf (f, "%lu", i); |
| 2171 |
} |
| 2172 |
/* Do not output a trailing newline, as this causes \r\n confusion |
| 2173 |
on some platforms. */ |
| 2174 |
return ferror (f) || fclose (f) != 0; |
| 2175 |
|
| 2176 |
; |
| 2177 |
return 0; |
| 2178 |
} |
| 2179 |
_ACEOF |
| 2180 |
if ac_fn_c_try_run "$LINENO"; then : |
| 2181 |
echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2182 |
else |
| 2183 |
ac_retval=1 |
| 2184 |
fi |
| 2185 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2186 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2187 |
rm -f conftest.val |
| 2188 |
|
| 2189 |
fi |
| 2190 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2191 |
as_fn_set_status $ac_retval |
| 2192 |
|
| 2193 |
} # ac_fn_c_compute_int |
| 2194 |
|
| 2195 |
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2196 |
# ---------------------------------------------------- |
| 2197 |
# Tries to find if the field MEMBER exists in type AGGR, after including |
| 2198 |
# INCLUDES, setting cache variable VAR accordingly. |
| 2199 |
ac_fn_c_check_member () |
| 2200 |
{ |
| 2201 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2202 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2203 |
$as_echo_n "checking for $2.$3... " >&6; } |
| 2204 |
if eval \${$4+:} false; then : |
| 2205 |
$as_echo_n "(cached) " >&6 |
| 2206 |
else |
| 2207 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2208 |
/* end confdefs.h. */ |
| 2209 |
$5 |
| 2210 |
int |
| 2211 |
main () |
| 2212 |
{ |
| 2213 |
static $2 ac_aggr; |
| 2214 |
if (ac_aggr.$3) |
| 2215 |
return 0; |
| 2216 |
; |
| 2217 |
return 0; |
| 2218 |
} |
| 2219 |
_ACEOF |
| 2220 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2221 |
eval "$4=yes" |
| 2222 |
else |
| 2223 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2224 |
/* end confdefs.h. */ |
| 2225 |
$5 |
| 2226 |
int |
| 2227 |
main () |
| 2228 |
{ |
| 2229 |
static $2 ac_aggr; |
| 2230 |
if (sizeof ac_aggr.$3) |
| 2231 |
return 0; |
| 2232 |
; |
| 2233 |
return 0; |
| 2234 |
} |
| 2235 |
_ACEOF |
| 2236 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2237 |
eval "$4=yes" |
| 2238 |
else |
| 2239 |
eval "$4=no" |
| 2240 |
fi |
| 2241 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2242 |
fi |
| 2243 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2244 |
fi |
| 2245 |
eval ac_res=\$$4 |
| 2246 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2247 |
$as_echo "$ac_res" >&6; } |
| 2248 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2249 |
|
| 2250 |
} # ac_fn_c_check_member |
| 2251 |
cat >config.log <<_ACEOF |
| 2252 |
This file contains any messages produced by compilers while |
| 2253 |
running configure, to aid debugging if configure makes a mistake. |
| 2254 |
|
| 2255 |
It was created by OpenSSH $as_me Portable, which was |
| 2256 |
generated by GNU Autoconf 2.69. Invocation command line was |
| 2257 |
|
| 2258 |
$ $0 $@ |
| 2259 |
|
| 2260 |
_ACEOF |
| 2261 |
exec 5>>config.log |
| 2262 |
{ |
| 2263 |
cat <<_ASUNAME |
| 2264 |
## --------- ## |
| 2265 |
## Platform. ## |
| 2266 |
## --------- ## |
| 2267 |
|
| 2268 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2269 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2270 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2271 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2272 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2273 |
|
| 2274 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2275 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2276 |
|
| 2277 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2278 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2279 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2280 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2281 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2282 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2283 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2284 |
|
| 2285 |
_ASUNAME |
| 2286 |
|
| 2287 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2288 |
for as_dir in $PATH |
| 2289 |
do |
| 2290 |
IFS=$as_save_IFS |
| 2291 |
test -z "$as_dir" && as_dir=. |
| 2292 |
$as_echo "PATH: $as_dir" |
| 2293 |
done |
| 2294 |
IFS=$as_save_IFS |
| 2295 |
|
| 2296 |
} >&5 |
| 2297 |
|
| 2298 |
cat >&5 <<_ACEOF |
| 2299 |
|
| 2300 |
|
| 2301 |
## ----------- ## |
| 2302 |
## Core tests. ## |
| 2303 |
## ----------- ## |
| 2304 |
|
| 2305 |
_ACEOF |
| 2306 |
|
| 2307 |
|
| 2308 |
# Keep a trace of the command line. |
| 2309 |
# Strip out --no-create and --no-recursion so they do not pile up. |
| 2310 |
# Strip out --silent because we don't want to record it for future runs. |
| 2311 |
# Also quote any args containing shell meta-characters. |
| 2312 |
# Make two passes to allow for proper duplicate-argument suppression. |
| 2313 |
ac_configure_args= |
| 2314 |
ac_configure_args0= |
| 2315 |
ac_configure_args1= |
| 2316 |
ac_must_keep_next=false |
| 2317 |
for ac_pass in 1 2 |
| 2318 |
do |
| 2319 |
for ac_arg |
| 2320 |
do |
| 2321 |
case $ac_arg in |
| 2322 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2323 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2324 |
| -silent | --silent | --silen | --sile | --sil) |
| 2325 |
continue ;; |
| 2326 |
*\'*) |
| 2327 |
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2328 |
esac |
| 2329 |
case $ac_pass in |
| 2330 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2331 |
2) |
| 2332 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2333 |
if test $ac_must_keep_next = true; then |
| 2334 |
ac_must_keep_next=false # Got value, back to normal. |
| 2335 |
else |
| 2336 |
case $ac_arg in |
| 2337 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2338 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2339 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2340 |
| -with-* | --with-* | -without-* | --without-* | --x) |
| 2341 |
case "$ac_configure_args0 " in |
| 2342 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2343 |
esac |
| 2344 |
;; |
| 2345 |
-* ) ac_must_keep_next=true ;; |
| 2346 |
esac |
| 2347 |
fi |
| 2348 |
as_fn_append ac_configure_args " '$ac_arg'" |
| 2349 |
;; |
| 2350 |
esac |
| 2351 |
done |
| 2352 |
done |
| 2353 |
{ ac_configure_args0=; unset ac_configure_args0;} |
| 2354 |
{ ac_configure_args1=; unset ac_configure_args1;} |
| 2355 |
|
| 2356 |
# When interrupted or exit'd, cleanup temporary files, and complete |
| 2357 |
# config.log. We remove comments because anyway the quotes in there |
| 2358 |
# would cause problems or look ugly. |
| 2359 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2360 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2361 |
trap 'exit_status=$? |
| 2362 |
# Save into config.log some information that might help in debugging. |
| 2363 |
{ |
| 2364 |
echo |
| 2365 |
|
| 2366 |
$as_echo "## ---------------- ## |
| 2367 |
## Cache variables. ## |
| 2368 |
## ---------------- ##" |
| 2369 |
echo |
| 2370 |
# The following way of writing the cache mishandles newlines in values, |
| 2371 |
( |
| 2372 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2373 |
eval ac_val=\$$ac_var |
| 2374 |
case $ac_val in #( |
| 2375 |
*${as_nl}*) |
| 2376 |
case $ac_var in #( |
| 2377 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2378 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2379 |
esac |
| 2380 |
case $ac_var in #( |
| 2381 |
_ | IFS | as_nl) ;; #( |
| 2382 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2383 |
*) { eval $ac_var=; unset $ac_var;} ;; |
| 2384 |
esac ;; |
| 2385 |
esac |
| 2386 |
done |
| 2387 |
(set) 2>&1 | |
| 2388 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2389 |
*${as_nl}ac_space=\ *) |
| 2390 |
sed -n \ |
| 2391 |
"s/'\''/'\''\\\\'\'''\''/g; |
| 2392 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2393 |
;; #( |
| 2394 |
*) |
| 2395 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2396 |
;; |
| 2397 |
esac | |
| 2398 |
sort |
| 2399 |
) |
| 2400 |
echo |
| 2401 |
|
| 2402 |
$as_echo "## ----------------- ## |
| 2403 |
## Output variables. ## |
| 2404 |
## ----------------- ##" |
| 2405 |
echo |
| 2406 |
for ac_var in $ac_subst_vars |
| 2407 |
do |
| 2408 |
eval ac_val=\$$ac_var |
| 2409 |
case $ac_val in |
| 2410 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2411 |
esac |
| 2412 |
$as_echo "$ac_var='\''$ac_val'\''" |
| 2413 |
done | sort |
| 2414 |
echo |
| 2415 |
|
| 2416 |
if test -n "$ac_subst_files"; then |
| 2417 |
$as_echo "## ------------------- ## |
| 2418 |
## File substitutions. ## |
| 2419 |
## ------------------- ##" |
| 2420 |
echo |
| 2421 |
for ac_var in $ac_subst_files |
| 2422 |
do |
| 2423 |
eval ac_val=\$$ac_var |
| 2424 |
case $ac_val in |
| 2425 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2426 |
esac |
| 2427 |
$as_echo "$ac_var='\''$ac_val'\''" |
| 2428 |
done | sort |
| 2429 |
echo |
| 2430 |
fi |
| 2431 |
|
| 2432 |
if test -s confdefs.h; then |
| 2433 |
$as_echo "## ----------- ## |
| 2434 |
## confdefs.h. ## |
| 2435 |
## ----------- ##" |
| 2436 |
echo |
| 2437 |
cat confdefs.h |
| 2438 |
echo |
| 2439 |
fi |
| 2440 |
test "$ac_signal" != 0 && |
| 2441 |
$as_echo "$as_me: caught signal $ac_signal" |
| 2442 |
$as_echo "$as_me: exit $exit_status" |
| 2443 |
} >&5 |
| 2444 |
rm -f core *.core core.conftest.* && |
| 2445 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2446 |
exit $exit_status |
| 2447 |
' 0 |
| 2448 |
for ac_signal in 1 2 13 15; do |
| 2449 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2450 |
done |
| 2451 |
ac_signal=0 |
| 2452 |
|
| 2453 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2454 |
rm -f -r conftest* confdefs.h |
| 2455 |
|
| 2456 |
$as_echo "/* confdefs.h */" > confdefs.h |
| 2457 |
|
| 2458 |
# Predefined preprocessor variables. |
| 2459 |
|
| 2460 |
cat >>confdefs.h <<_ACEOF |
| 2461 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
| 2462 |
_ACEOF |
| 2463 |
|
| 2464 |
cat >>confdefs.h <<_ACEOF |
| 2465 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2466 |
_ACEOF |
| 2467 |
|
| 2468 |
cat >>confdefs.h <<_ACEOF |
| 2469 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2470 |
_ACEOF |
| 2471 |
|
| 2472 |
cat >>confdefs.h <<_ACEOF |
| 2473 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
| 2474 |
_ACEOF |
| 2475 |
|
| 2476 |
cat >>confdefs.h <<_ACEOF |
| 2477 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2478 |
_ACEOF |
| 2479 |
|
| 2480 |
cat >>confdefs.h <<_ACEOF |
| 2481 |
#define PACKAGE_URL "$PACKAGE_URL" |
| 2482 |
_ACEOF |
| 2483 |
|
| 2484 |
|
| 2485 |
# Let the site file select an alternate cache file if it wants to. |
| 2486 |
# Prefer an explicitly selected file to automatically selected ones. |
| 2487 |
ac_site_file1=NONE |
| 2488 |
ac_site_file2=NONE |
| 2489 |
if test -n "$CONFIG_SITE"; then |
| 2490 |
# We do not want a PATH search for config.site. |
| 2491 |
case $CONFIG_SITE in #(( |
| 2492 |
-*) ac_site_file1=./$CONFIG_SITE;; |
| 2493 |
*/*) ac_site_file1=$CONFIG_SITE;; |
| 2494 |
*) ac_site_file1=./$CONFIG_SITE;; |
| 2495 |
esac |
| 2496 |
elif test "x$prefix" != xNONE; then |
| 2497 |
ac_site_file1=$prefix/share/config.site |
| 2498 |
ac_site_file2=$prefix/etc/config.site |
| 2499 |
else |
| 2500 |
ac_site_file1=$ac_default_prefix/share/config.site |
| 2501 |
ac_site_file2=$ac_default_prefix/etc/config.site |
| 2502 |
fi |
| 2503 |
for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2504 |
do |
| 2505 |
test "x$ac_site_file" = xNONE && continue |
| 2506 |
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2507 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2508 |
$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2509 |
sed 's/^/| /' "$ac_site_file" >&5 |
| 2510 |
. "$ac_site_file" \ |
| 2511 |
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2512 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2513 |
as_fn_error $? "failed to load site script $ac_site_file |
| 2514 |
See \`config.log' for more details" "$LINENO" 5; } |
| 2515 |
fi |
| 2516 |
done |
| 2517 |
|
| 2518 |
if test -r "$cache_file"; then |
| 2519 |
# Some versions of bash will fail to source /dev/null (special files |
| 2520 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2521 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2522 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2523 |
$as_echo "$as_me: loading cache $cache_file" >&6;} |
| 2524 |
case $cache_file in |
| 2525 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2526 |
*) . "./$cache_file";; |
| 2527 |
esac |
| 2528 |
fi |
| 2529 |
else |
| 2530 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2531 |
$as_echo "$as_me: creating cache $cache_file" >&6;} |
| 2532 |
>$cache_file |
| 2533 |
fi |
| 2534 |
|
| 2535 |
# Check that the precious variables saved in the cache have kept the same |
| 2536 |
# value. |
| 2537 |
ac_cache_corrupted=false |
| 2538 |
for ac_var in $ac_precious_vars; do |
| 2539 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2540 |
eval ac_new_set=\$ac_env_${ac_var}_set |
| 2541 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2542 |
eval ac_new_val=\$ac_env_${ac_var}_value |
| 2543 |
case $ac_old_set,$ac_new_set in |
| 2544 |
set,) |
| 2545 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2546 |
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2547 |
ac_cache_corrupted=: ;; |
| 2548 |
,set) |
| 2549 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2550 |
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2551 |
ac_cache_corrupted=: ;; |
| 2552 |
,);; |
| 2553 |
*) |
| 2554 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2555 |
# differences in whitespace do not lead to failure. |
| 2556 |
ac_old_val_w=`echo x $ac_old_val` |
| 2557 |
ac_new_val_w=`echo x $ac_new_val` |
| 2558 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2559 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2560 |
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2561 |
ac_cache_corrupted=: |
| 2562 |
else |
| 2563 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2564 |
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2565 |
eval $ac_var=\$ac_old_val |
| 2566 |
fi |
| 2567 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2568 |
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2569 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2570 |
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2571 |
fi;; |
| 2572 |
esac |
| 2573 |
# Pass precious variables to config.status. |
| 2574 |
if test "$ac_new_set" = set; then |
| 2575 |
case $ac_new_val in |
| 2576 |
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2577 |
*) ac_arg=$ac_var=$ac_new_val ;; |
| 2578 |
esac |
| 2579 |
case " $ac_configure_args " in |
| 2580 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2581 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2582 |
esac |
| 2583 |
fi |
| 2584 |
done |
| 2585 |
if $ac_cache_corrupted; then |
| 2586 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2587 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2588 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2589 |
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2590 |
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 2591 |
fi |
| 2592 |
## -------------------- ## |
| 2593 |
## Main body of script. ## |
| 2594 |
## -------------------- ## |
| 2595 |
|
| 2596 |
ac_ext=c |
| 2597 |
ac_cpp='$CPP $CPPFLAGS' |
| 2598 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2599 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2600 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2601 |
|
| 2602 |
|
| 2603 |
|
| 2604 |
|
| 2605 |
ac_ext=c |
| 2606 |
ac_cpp='$CPP $CPPFLAGS' |
| 2607 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2608 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2609 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2610 |
|
| 2611 |
|
| 2612 |
ac_config_headers="$ac_config_headers config.h" |
| 2613 |
|
| 2614 |
ac_ext=c |
| 2615 |
ac_cpp='$CPP $CPPFLAGS' |
| 2616 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2617 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2618 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2619 |
if test -n "$ac_tool_prefix"; then |
| 2620 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2621 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 2622 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2623 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 2624 |
if ${ac_cv_prog_CC+:} false; then : |
| 2625 |
$as_echo_n "(cached) " >&6 |
| 2626 |
else |
| 2627 |
if test -n "$CC"; then |
| 2628 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2629 |
else |
| 2630 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2631 |
for as_dir in $PATH |
| 2632 |
do |
| 2633 |
IFS=$as_save_IFS |
| 2634 |
test -z "$as_dir" && as_dir=. |
| 2635 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2636 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2637 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2638 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2639 |
break 2 |
| 2640 |
fi |
| 2641 |
done |
| 2642 |
done |
| 2643 |
IFS=$as_save_IFS |
| 2644 |
|
| 2645 |
fi |
| 2646 |
fi |
| 2647 |
CC=$ac_cv_prog_CC |
| 2648 |
if test -n "$CC"; then |
| 2649 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2650 |
$as_echo "$CC" >&6; } |
| 2651 |
else |
| 2652 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2653 |
$as_echo "no" >&6; } |
| 2654 |
fi |
| 2655 |
|
| 2656 |
|
| 2657 |
fi |
| 2658 |
if test -z "$ac_cv_prog_CC"; then |
| 2659 |
ac_ct_CC=$CC |
| 2660 |
# Extract the first word of "gcc", so it can be a program name with args. |
| 2661 |
set dummy gcc; ac_word=$2 |
| 2662 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2663 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 2664 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2665 |
$as_echo_n "(cached) " >&6 |
| 2666 |
else |
| 2667 |
if test -n "$ac_ct_CC"; then |
| 2668 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2669 |
else |
| 2670 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2671 |
for as_dir in $PATH |
| 2672 |
do |
| 2673 |
IFS=$as_save_IFS |
| 2674 |
test -z "$as_dir" && as_dir=. |
| 2675 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2676 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2677 |
ac_cv_prog_ac_ct_CC="gcc" |
| 2678 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2679 |
break 2 |
| 2680 |
fi |
| 2681 |
done |
| 2682 |
done |
| 2683 |
IFS=$as_save_IFS |
| 2684 |
|
| 2685 |
fi |
| 2686 |
fi |
| 2687 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2688 |
if test -n "$ac_ct_CC"; then |
| 2689 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2690 |
$as_echo "$ac_ct_CC" >&6; } |
| 2691 |
else |
| 2692 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2693 |
$as_echo "no" >&6; } |
| 2694 |
fi |
| 2695 |
|
| 2696 |
if test "x$ac_ct_CC" = x; then |
| 2697 |
CC="" |
| 2698 |
else |
| 2699 |
case $cross_compiling:$ac_tool_warned in |
| 2700 |
yes:) |
| 2701 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2702 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2703 |
ac_tool_warned=yes ;; |
| 2704 |
esac |
| 2705 |
CC=$ac_ct_CC |
| 2706 |
fi |
| 2707 |
else |
| 2708 |
CC="$ac_cv_prog_CC" |
| 2709 |
fi |
| 2710 |
|
| 2711 |
if test -z "$CC"; then |
| 2712 |
if test -n "$ac_tool_prefix"; then |
| 2713 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2714 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2715 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2716 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 2717 |
if ${ac_cv_prog_CC+:} false; then : |
| 2718 |
$as_echo_n "(cached) " >&6 |
| 2719 |
else |
| 2720 |
if test -n "$CC"; then |
| 2721 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2722 |
else |
| 2723 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2724 |
for as_dir in $PATH |
| 2725 |
do |
| 2726 |
IFS=$as_save_IFS |
| 2727 |
test -z "$as_dir" && as_dir=. |
| 2728 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2729 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2730 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2731 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2732 |
break 2 |
| 2733 |
fi |
| 2734 |
done |
| 2735 |
done |
| 2736 |
IFS=$as_save_IFS |
| 2737 |
|
| 2738 |
fi |
| 2739 |
fi |
| 2740 |
CC=$ac_cv_prog_CC |
| 2741 |
if test -n "$CC"; then |
| 2742 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2743 |
$as_echo "$CC" >&6; } |
| 2744 |
else |
| 2745 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2746 |
$as_echo "no" >&6; } |
| 2747 |
fi |
| 2748 |
|
| 2749 |
|
| 2750 |
fi |
| 2751 |
fi |
| 2752 |
if test -z "$CC"; then |
| 2753 |
# Extract the first word of "cc", so it can be a program name with args. |
| 2754 |
set dummy cc; ac_word=$2 |
| 2755 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2756 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 2757 |
if ${ac_cv_prog_CC+:} false; then : |
| 2758 |
$as_echo_n "(cached) " >&6 |
| 2759 |
else |
| 2760 |
if test -n "$CC"; then |
| 2761 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2762 |
else |
| 2763 |
ac_prog_rejected=no |
| 2764 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2765 |
for as_dir in $PATH |
| 2766 |
do |
| 2767 |
IFS=$as_save_IFS |
| 2768 |
test -z "$as_dir" && as_dir=. |
| 2769 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2770 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2771 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2772 |
ac_prog_rejected=yes |
| 2773 |
continue |
| 2774 |
fi |
| 2775 |
ac_cv_prog_CC="cc" |
| 2776 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2777 |
break 2 |
| 2778 |
fi |
| 2779 |
done |
| 2780 |
done |
| 2781 |
IFS=$as_save_IFS |
| 2782 |
|
| 2783 |
if test $ac_prog_rejected = yes; then |
| 2784 |
# We found a bogon in the path, so make sure we never use it. |
| 2785 |
set dummy $ac_cv_prog_CC |
| 2786 |
shift |
| 2787 |
if test $# != 0; then |
| 2788 |
# We chose a different compiler from the bogus one. |
| 2789 |
# However, it has the same basename, so the bogon will be chosen |
| 2790 |
# first if we set CC to just the basename; use the full file name. |
| 2791 |
shift |
| 2792 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2793 |
fi |
| 2794 |
fi |
| 2795 |
fi |
| 2796 |
fi |
| 2797 |
CC=$ac_cv_prog_CC |
| 2798 |
if test -n "$CC"; then |
| 2799 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2800 |
$as_echo "$CC" >&6; } |
| 2801 |
else |
| 2802 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2803 |
$as_echo "no" >&6; } |
| 2804 |
fi |
| 2805 |
|
| 2806 |
|
| 2807 |
fi |
| 2808 |
if test -z "$CC"; then |
| 2809 |
if test -n "$ac_tool_prefix"; then |
| 2810 |
for ac_prog in cl.exe |
| 2811 |
do |
| 2812 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2813 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2814 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2815 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 2816 |
if ${ac_cv_prog_CC+:} false; then : |
| 2817 |
$as_echo_n "(cached) " >&6 |
| 2818 |
else |
| 2819 |
if test -n "$CC"; then |
| 2820 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2821 |
else |
| 2822 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2823 |
for as_dir in $PATH |
| 2824 |
do |
| 2825 |
IFS=$as_save_IFS |
| 2826 |
test -z "$as_dir" && as_dir=. |
| 2827 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2828 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2829 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2830 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2831 |
break 2 |
| 2832 |
fi |
| 2833 |
done |
| 2834 |
done |
| 2835 |
IFS=$as_save_IFS |
| 2836 |
|
| 2837 |
fi |
| 2838 |
fi |
| 2839 |
CC=$ac_cv_prog_CC |
| 2840 |
if test -n "$CC"; then |
| 2841 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2842 |
$as_echo "$CC" >&6; } |
| 2843 |
else |
| 2844 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2845 |
$as_echo "no" >&6; } |
| 2846 |
fi |
| 2847 |
|
| 2848 |
|
| 2849 |
test -n "$CC" && break |
| 2850 |
done |
| 2851 |
fi |
| 2852 |
if test -z "$CC"; then |
| 2853 |
ac_ct_CC=$CC |
| 2854 |
for ac_prog in cl.exe |
| 2855 |
do |
| 2856 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2857 |
set dummy $ac_prog; ac_word=$2 |
| 2858 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2859 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 2860 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 2861 |
$as_echo_n "(cached) " >&6 |
| 2862 |
else |
| 2863 |
if test -n "$ac_ct_CC"; then |
| 2864 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2865 |
else |
| 2866 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2867 |
for as_dir in $PATH |
| 2868 |
do |
| 2869 |
IFS=$as_save_IFS |
| 2870 |
test -z "$as_dir" && as_dir=. |
| 2871 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2872 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2873 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2874 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2875 |
break 2 |
| 2876 |
fi |
| 2877 |
done |
| 2878 |
done |
| 2879 |
IFS=$as_save_IFS |
| 2880 |
|
| 2881 |
fi |
| 2882 |
fi |
| 2883 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2884 |
if test -n "$ac_ct_CC"; then |
| 2885 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2886 |
$as_echo "$ac_ct_CC" >&6; } |
| 2887 |
else |
| 2888 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2889 |
$as_echo "no" >&6; } |
| 2890 |
fi |
| 2891 |
|
| 2892 |
|
| 2893 |
test -n "$ac_ct_CC" && break |
| 2894 |
done |
| 2895 |
|
| 2896 |
if test "x$ac_ct_CC" = x; then |
| 2897 |
CC="" |
| 2898 |
else |
| 2899 |
case $cross_compiling:$ac_tool_warned in |
| 2900 |
yes:) |
| 2901 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2902 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2903 |
ac_tool_warned=yes ;; |
| 2904 |
esac |
| 2905 |
CC=$ac_ct_CC |
| 2906 |
fi |
| 2907 |
fi |
| 2908 |
|
| 2909 |
fi |
| 2910 |
|
| 2911 |
|
| 2912 |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2913 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2914 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
| 2915 |
See \`config.log' for more details" "$LINENO" 5; } |
| 2916 |
|
| 2917 |
# Provide some information about the compiler. |
| 2918 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 2919 |
set X $ac_compile |
| 2920 |
ac_compiler=$2 |
| 2921 |
for ac_option in --version -v -V -qversion; do |
| 2922 |
{ { ac_try="$ac_compiler $ac_option >&5" |
| 2923 |
case "(($ac_try" in |
| 2924 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2925 |
*) ac_try_echo=$ac_try;; |
| 2926 |
esac |
| 2927 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2928 |
$as_echo "$ac_try_echo"; } >&5 |
| 2929 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 2930 |
ac_status=$? |
| 2931 |
if test -s conftest.err; then |
| 2932 |
sed '10a\ |
| 2933 |
... rest of stderr output deleted ... |
| 2934 |
10q' conftest.err >conftest.er1 |
| 2935 |
cat conftest.er1 >&5 |
| 2936 |
fi |
| 2937 |
rm -f conftest.er1 conftest.err |
| 2938 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2939 |
test $ac_status = 0; } |
| 2940 |
done |
| 2941 |
|
| 2942 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2943 |
/* end confdefs.h. */ |
| 2944 |
|
| 2945 |
int |
| 2946 |
main () |
| 2947 |
{ |
| 2948 |
|
| 2949 |
; |
| 2950 |
return 0; |
| 2951 |
} |
| 2952 |
_ACEOF |
| 2953 |
ac_clean_files_save=$ac_clean_files |
| 2954 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 2955 |
# Try to create an executable without -o first, disregard a.out. |
| 2956 |
# It will help us diagnose broken compilers, and finding out an intuition |
| 2957 |
# of exeext. |
| 2958 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 2959 |
$as_echo_n "checking whether the C compiler works... " >&6; } |
| 2960 |
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2961 |
|
| 2962 |
# The possible output files: |
| 2963 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2964 |
|
| 2965 |
ac_rmfiles= |
| 2966 |
for ac_file in $ac_files |
| 2967 |
do |
| 2968 |
case $ac_file in |
| 2969 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2970 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2971 |
esac |
| 2972 |
done |
| 2973 |
rm -f $ac_rmfiles |
| 2974 |
|
| 2975 |
if { { ac_try="$ac_link_default" |
| 2976 |
case "(($ac_try" in |
| 2977 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2978 |
*) ac_try_echo=$ac_try;; |
| 2979 |
esac |
| 2980 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2981 |
$as_echo "$ac_try_echo"; } >&5 |
| 2982 |
(eval "$ac_link_default") 2>&5 |
| 2983 |
ac_status=$? |
| 2984 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2985 |
test $ac_status = 0; }; then : |
| 2986 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2987 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2988 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2989 |
# so that the user can short-circuit this test for compilers unknown to |
| 2990 |
# Autoconf. |
| 2991 |
for ac_file in $ac_files '' |
| 2992 |
do |
| 2993 |
test -f "$ac_file" || continue |
| 2994 |
case $ac_file in |
| 2995 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 2996 |
;; |
| 2997 |
[ab].out ) |
| 2998 |
# We found the default executable, but exeext='' is most |
| 2999 |
# certainly right. |
| 3000 |
break;; |
| 3001 |
*.* ) |
| 3002 |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 3003 |
then :; else |
| 3004 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3005 |
fi |
| 3006 |
# We set ac_cv_exeext here because the later test for it is not |
| 3007 |
# safe: cross compilers may not add the suffix if given an `-o' |
| 3008 |
# argument, so we may need to know it at that point already. |
| 3009 |
# Even if this section looks crufty: it has the advantage of |
| 3010 |
# actually working. |
| 3011 |
break;; |
| 3012 |
* ) |
| 3013 |
break;; |
| 3014 |
esac |
| 3015 |
done |
| 3016 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3017 |
|
| 3018 |
else |
| 3019 |
ac_file='' |
| 3020 |
fi |
| 3021 |
if test -z "$ac_file"; then : |
| 3022 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3023 |
$as_echo "no" >&6; } |
| 3024 |
$as_echo "$as_me: failed program was:" >&5 |
| 3025 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3026 |
|
| 3027 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3028 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3029 |
as_fn_error 77 "C compiler cannot create executables |
| 3030 |
See \`config.log' for more details" "$LINENO" 5; } |
| 3031 |
else |
| 3032 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3033 |
$as_echo "yes" >&6; } |
| 3034 |
fi |
| 3035 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3036 |
$as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3037 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3038 |
$as_echo "$ac_file" >&6; } |
| 3039 |
ac_exeext=$ac_cv_exeext |
| 3040 |
|
| 3041 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 3042 |
ac_clean_files=$ac_clean_files_save |
| 3043 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3044 |
$as_echo_n "checking for suffix of executables... " >&6; } |
| 3045 |
if { { ac_try="$ac_link" |
| 3046 |
case "(($ac_try" in |
| 3047 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3048 |
*) ac_try_echo=$ac_try;; |
| 3049 |
esac |
| 3050 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3051 |
$as_echo "$ac_try_echo"; } >&5 |
| 3052 |
(eval "$ac_link") 2>&5 |
| 3053 |
ac_status=$? |
| 3054 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3055 |
test $ac_status = 0; }; then : |
| 3056 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3057 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3058 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3059 |
# `rm'. |
| 3060 |
for ac_file in conftest.exe conftest conftest.*; do |
| 3061 |
test -f "$ac_file" || continue |
| 3062 |
case $ac_file in |
| 3063 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3064 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3065 |
break;; |
| 3066 |
* ) break;; |
| 3067 |
esac |
| 3068 |
done |
| 3069 |
else |
| 3070 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3071 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3072 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3073 |
See \`config.log' for more details" "$LINENO" 5; } |
| 3074 |
fi |
| 3075 |
rm -f conftest conftest$ac_cv_exeext |
| 3076 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3077 |
$as_echo "$ac_cv_exeext" >&6; } |
| 3078 |
|
| 3079 |
rm -f conftest.$ac_ext |
| 3080 |
EXEEXT=$ac_cv_exeext |
| 3081 |
ac_exeext=$EXEEXT |
| 3082 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3083 |
/* end confdefs.h. */ |
| 3084 |
#include <stdio.h> |
| 3085 |
int |
| 3086 |
main () |
| 3087 |
{ |
| 3088 |
FILE *f = fopen ("conftest.out", "w"); |
| 3089 |
return ferror (f) || fclose (f) != 0; |
| 3090 |
|
| 3091 |
; |
| 3092 |
return 0; |
| 3093 |
} |
| 3094 |
_ACEOF |
| 3095 |
ac_clean_files="$ac_clean_files conftest.out" |
| 3096 |
# Check that the compiler produces executables we can run. If not, either |
| 3097 |
# the compiler is broken, or we cross compile. |
| 3098 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3099 |
$as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3100 |
if test "$cross_compiling" != yes; then |
| 3101 |
{ { ac_try="$ac_link" |
| 3102 |
case "(($ac_try" in |
| 3103 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3104 |
*) ac_try_echo=$ac_try;; |
| 3105 |
esac |
| 3106 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3107 |
$as_echo "$ac_try_echo"; } >&5 |
| 3108 |
(eval "$ac_link") 2>&5 |
| 3109 |
ac_status=$? |
| 3110 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3111 |
test $ac_status = 0; } |
| 3112 |
if { ac_try='./conftest$ac_cv_exeext' |
| 3113 |
{ { case "(($ac_try" in |
| 3114 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3115 |
*) ac_try_echo=$ac_try;; |
| 3116 |
esac |
| 3117 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3118 |
$as_echo "$ac_try_echo"; } >&5 |
| 3119 |
(eval "$ac_try") 2>&5 |
| 3120 |
ac_status=$? |
| 3121 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3122 |
test $ac_status = 0; }; }; then |
| 3123 |
cross_compiling=no |
| 3124 |
else |
| 3125 |
if test "$cross_compiling" = maybe; then |
| 3126 |
cross_compiling=yes |
| 3127 |
else |
| 3128 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3129 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3130 |
as_fn_error $? "cannot run C compiled programs. |
| 3131 |
If you meant to cross compile, use \`--host'. |
| 3132 |
See \`config.log' for more details" "$LINENO" 5; } |
| 3133 |
fi |
| 3134 |
fi |
| 3135 |
fi |
| 3136 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3137 |
$as_echo "$cross_compiling" >&6; } |
| 3138 |
|
| 3139 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3140 |
ac_clean_files=$ac_clean_files_save |
| 3141 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3142 |
$as_echo_n "checking for suffix of object files... " >&6; } |
| 3143 |
if ${ac_cv_objext+:} false; then : |
| 3144 |
$as_echo_n "(cached) " >&6 |
| 3145 |
else |
| 3146 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3147 |
/* end confdefs.h. */ |
| 3148 |
|
| 3149 |
int |
| 3150 |
main () |
| 3151 |
{ |
| 3152 |
|
| 3153 |
; |
| 3154 |
return 0; |
| 3155 |
} |
| 3156 |
_ACEOF |
| 3157 |
rm -f conftest.o conftest.obj |
| 3158 |
if { { ac_try="$ac_compile" |
| 3159 |
case "(($ac_try" in |
| 3160 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3161 |
*) ac_try_echo=$ac_try;; |
| 3162 |
esac |
| 3163 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3164 |
$as_echo "$ac_try_echo"; } >&5 |
| 3165 |
(eval "$ac_compile") 2>&5 |
| 3166 |
ac_status=$? |
| 3167 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3168 |
test $ac_status = 0; }; then : |
| 3169 |
for ac_file in conftest.o conftest.obj conftest.*; do |
| 3170 |
test -f "$ac_file" || continue; |
| 3171 |
case $ac_file in |
| 3172 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 3173 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3174 |
break;; |
| 3175 |
esac |
| 3176 |
done |
| 3177 |
else |
| 3178 |
$as_echo "$as_me: failed program was:" >&5 |
| 3179 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3180 |
|
| 3181 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3182 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3183 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3184 |
See \`config.log' for more details" "$LINENO" 5; } |
| 3185 |
fi |
| 3186 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3187 |
fi |
| 3188 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3189 |
$as_echo "$ac_cv_objext" >&6; } |
| 3190 |
OBJEXT=$ac_cv_objext |
| 3191 |
ac_objext=$OBJEXT |
| 3192 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3193 |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3194 |
if ${ac_cv_c_compiler_gnu+:} false; then : |
| 3195 |
$as_echo_n "(cached) " >&6 |
| 3196 |
else |
| 3197 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3198 |
/* end confdefs.h. */ |
| 3199 |
|
| 3200 |
int |
| 3201 |
main () |
| 3202 |
{ |
| 3203 |
#ifndef __GNUC__ |
| 3204 |
choke me |
| 3205 |
#endif |
| 3206 |
|
| 3207 |
; |
| 3208 |
return 0; |
| 3209 |
} |
| 3210 |
_ACEOF |
| 3211 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 3212 |
ac_compiler_gnu=yes |
| 3213 |
else |
| 3214 |
ac_compiler_gnu=no |
| 3215 |
fi |
| 3216 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3217 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3218 |
|
| 3219 |
fi |
| 3220 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3221 |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3222 |
if test $ac_compiler_gnu = yes; then |
| 3223 |
GCC=yes |
| 3224 |
else |
| 3225 |
GCC= |
| 3226 |
fi |
| 3227 |
ac_test_CFLAGS=${CFLAGS+set} |
| 3228 |
ac_save_CFLAGS=$CFLAGS |
| 3229 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3230 |
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3231 |
if ${ac_cv_prog_cc_g+:} false; then : |
| 3232 |
$as_echo_n "(cached) " >&6 |
| 3233 |
else |
| 3234 |
ac_save_c_werror_flag=$ac_c_werror_flag |
| 3235 |
ac_c_werror_flag=yes |
| 3236 |
ac_cv_prog_cc_g=no |
| 3237 |
CFLAGS="-g" |
| 3238 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3239 |
/* end confdefs.h. */ |
| 3240 |
|
| 3241 |
int |
| 3242 |
main () |
| 3243 |
{ |
| 3244 |
|
| 3245 |
; |
| 3246 |
return 0; |
| 3247 |
} |
| 3248 |
_ACEOF |
| 3249 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 3250 |
ac_cv_prog_cc_g=yes |
| 3251 |
else |
| 3252 |
CFLAGS="" |
| 3253 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3254 |
/* end confdefs.h. */ |
| 3255 |
|
| 3256 |
int |
| 3257 |
main () |
| 3258 |
{ |
| 3259 |
|
| 3260 |
; |
| 3261 |
return 0; |
| 3262 |
} |
| 3263 |
_ACEOF |
| 3264 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 3265 |
|
| 3266 |
else |
| 3267 |
ac_c_werror_flag=$ac_save_c_werror_flag |
| 3268 |
CFLAGS="-g" |
| 3269 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3270 |
/* end confdefs.h. */ |
| 3271 |
|
| 3272 |
int |
| 3273 |
main () |
| 3274 |
{ |
| 3275 |
|
| 3276 |
; |
| 3277 |
return 0; |
| 3278 |
} |
| 3279 |
_ACEOF |
| 3280 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 3281 |
ac_cv_prog_cc_g=yes |
| 3282 |
fi |
| 3283 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3284 |
fi |
| 3285 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3286 |
fi |
| 3287 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3288 |
ac_c_werror_flag=$ac_save_c_werror_flag |
| 3289 |
fi |
| 3290 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3291 |
$as_echo "$ac_cv_prog_cc_g" >&6; } |
| 3292 |
if test "$ac_test_CFLAGS" = set; then |
| 3293 |
CFLAGS=$ac_save_CFLAGS |
| 3294 |
elif test $ac_cv_prog_cc_g = yes; then |
| 3295 |
if test "$GCC" = yes; then |
| 3296 |
CFLAGS="-g -O2" |
| 3297 |
else |
| 3298 |
CFLAGS="-g" |
| 3299 |
fi |
| 3300 |
else |
| 3301 |
if test "$GCC" = yes; then |
| 3302 |
CFLAGS="-O2" |
| 3303 |
else |
| 3304 |
CFLAGS= |
| 3305 |
fi |
| 3306 |
fi |
| 3307 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3308 |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3309 |
if ${ac_cv_prog_cc_c89+:} false; then : |
| 3310 |
$as_echo_n "(cached) " >&6 |
| 3311 |
else |
| 3312 |
ac_cv_prog_cc_c89=no |
| 3313 |
ac_save_CC=$CC |
| 3314 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3315 |
/* end confdefs.h. */ |
| 3316 |
#include <stdarg.h> |
| 3317 |
#include <stdio.h> |
| 3318 |
struct stat; |
| 3319 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3320 |
struct buf { int x; }; |
| 3321 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3322 |
static char *e (p, i) |
| 3323 |
char **p; |
| 3324 |
int i; |
| 3325 |
{ |
| 3326 |
return p[i]; |
| 3327 |
} |
| 3328 |
static char *f (char * (*g) (char **, int), char **p, ...) |
| 3329 |
{ |
| 3330 |
char *s; |
| 3331 |
va_list v; |
| 3332 |
va_start (v,p); |
| 3333 |
s = g (p, va_arg (v,int)); |
| 3334 |
va_end (v); |
| 3335 |
return s; |
| 3336 |
} |
| 3337 |
|
| 3338 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3339 |
function prototypes and stuff, but not '\xHH' hex character constants. |
| 3340 |
These don't provoke an error unfortunately, instead are silently treated |
| 3341 |
as 'x'. The following induces an error, until -std is added to get |
| 3342 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3343 |
array size at least. It's necessary to write '\x00'==0 to get something |
| 3344 |
that's true only with -std. */ |
| 3345 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3346 |
|
| 3347 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3348 |
inside strings and character constants. */ |
| 3349 |
#define FOO(x) 'x' |
| 3350 |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3351 |
|
| 3352 |
int test (int i, double x); |
| 3353 |
struct s1 {int (*f) (int a);}; |
| 3354 |
struct s2 {int (*f) (double a);}; |
| 3355 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3356 |
int argc; |
| 3357 |
char **argv; |
| 3358 |
int |
| 3359 |
main () |
| 3360 |
{ |
| 3361 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3362 |
; |
| 3363 |
return 0; |
| 3364 |
} |
| 3365 |
_ACEOF |
| 3366 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3367 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3368 |
do |
| 3369 |
CC="$ac_save_CC $ac_arg" |
| 3370 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 3371 |
ac_cv_prog_cc_c89=$ac_arg |
| 3372 |
fi |
| 3373 |
rm -f core conftest.err conftest.$ac_objext |
| 3374 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 3375 |
done |
| 3376 |
rm -f conftest.$ac_ext |
| 3377 |
CC=$ac_save_CC |
| 3378 |
|
| 3379 |
fi |
| 3380 |
# AC_CACHE_VAL |
| 3381 |
case "x$ac_cv_prog_cc_c89" in |
| 3382 |
x) |
| 3383 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3384 |
$as_echo "none needed" >&6; } ;; |
| 3385 |
xno) |
| 3386 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3387 |
$as_echo "unsupported" >&6; } ;; |
| 3388 |
*) |
| 3389 |
CC="$CC $ac_cv_prog_cc_c89" |
| 3390 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3391 |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 3392 |
esac |
| 3393 |
if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 3394 |
|
| 3395 |
fi |
| 3396 |
|
| 3397 |
ac_ext=c |
| 3398 |
ac_cpp='$CPP $CPPFLAGS' |
| 3399 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3400 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3401 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3402 |
|
| 3403 |
ac_aux_dir= |
| 3404 |
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 3405 |
if test -f "$ac_dir/install-sh"; then |
| 3406 |
ac_aux_dir=$ac_dir |
| 3407 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3408 |
break |
| 3409 |
elif test -f "$ac_dir/install.sh"; then |
| 3410 |
ac_aux_dir=$ac_dir |
| 3411 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3412 |
break |
| 3413 |
elif test -f "$ac_dir/shtool"; then |
| 3414 |
ac_aux_dir=$ac_dir |
| 3415 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3416 |
break |
| 3417 |
fi |
| 3418 |
done |
| 3419 |
if test -z "$ac_aux_dir"; then |
| 3420 |
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 3421 |
fi |
| 3422 |
|
| 3423 |
# These three variables are undocumented and unsupported, |
| 3424 |
# and are intended to be withdrawn in a future Autoconf release. |
| 3425 |
# They can cause serious problems if a builder's source tree is in a directory |
| 3426 |
# whose full name contains unusual characters. |
| 3427 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 3428 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 3429 |
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 3430 |
|
| 3431 |
|
| 3432 |
# Make sure we can run config.sub. |
| 3433 |
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 3434 |
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 3435 |
|
| 3436 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 3437 |
$as_echo_n "checking build system type... " >&6; } |
| 3438 |
if ${ac_cv_build+:} false; then : |
| 3439 |
$as_echo_n "(cached) " >&6 |
| 3440 |
else |
| 3441 |
ac_build_alias=$build_alias |
| 3442 |
test "x$ac_build_alias" = x && |
| 3443 |
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 3444 |
test "x$ac_build_alias" = x && |
| 3445 |
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 3446 |
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 3447 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 3448 |
|
| 3449 |
fi |
| 3450 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 3451 |
$as_echo "$ac_cv_build" >&6; } |
| 3452 |
case $ac_cv_build in |
| 3453 |
*-*-*) ;; |
| 3454 |
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 3455 |
esac |
| 3456 |
build=$ac_cv_build |
| 3457 |
ac_save_IFS=$IFS; IFS='-' |
| 3458 |
set x $ac_cv_build |
| 3459 |
shift |
| 3460 |
build_cpu=$1 |
| 3461 |
build_vendor=$2 |
| 3462 |
shift; shift |
| 3463 |
# Remember, the first character of IFS is used to create $*, |
| 3464 |
# except with old shells: |
| 3465 |
build_os=$* |
| 3466 |
IFS=$ac_save_IFS |
| 3467 |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3468 |
|
| 3469 |
|
| 3470 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 3471 |
$as_echo_n "checking host system type... " >&6; } |
| 3472 |
if ${ac_cv_host+:} false; then : |
| 3473 |
$as_echo_n "(cached) " >&6 |
| 3474 |
else |
| 3475 |
if test "x$host_alias" = x; then |
| 3476 |
ac_cv_host=$ac_cv_build |
| 3477 |
else |
| 3478 |
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 3479 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 3480 |
fi |
| 3481 |
|
| 3482 |
fi |
| 3483 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 3484 |
$as_echo "$ac_cv_host" >&6; } |
| 3485 |
case $ac_cv_host in |
| 3486 |
*-*-*) ;; |
| 3487 |
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 3488 |
esac |
| 3489 |
host=$ac_cv_host |
| 3490 |
ac_save_IFS=$IFS; IFS='-' |
| 3491 |
set x $ac_cv_host |
| 3492 |
shift |
| 3493 |
host_cpu=$1 |
| 3494 |
host_vendor=$2 |
| 3495 |
shift; shift |
| 3496 |
# Remember, the first character of IFS is used to create $*, |
| 3497 |
# except with old shells: |
| 3498 |
host_os=$* |
| 3499 |
IFS=$ac_save_IFS |
| 3500 |
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3501 |
|
| 3502 |
|
| 3503 |
|
| 3504 |
ac_ext=c |
| 3505 |
ac_cpp='$CPP $CPPFLAGS' |
| 3506 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3507 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3508 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3509 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 3510 |
$as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 3511 |
# On Suns, sometimes $CPP names a directory. |
| 3512 |
if test -n "$CPP" && test -d "$CPP"; then |
| 3513 |
CPP= |
| 3514 |
fi |
| 3515 |
if test -z "$CPP"; then |
| 3516 |
if ${ac_cv_prog_CPP+:} false; then : |
| 3517 |
$as_echo_n "(cached) " >&6 |
| 3518 |
else |
| 3519 |
# Double quotes because CPP needs to be expanded |
| 3520 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3521 |
do |
| 3522 |
ac_preproc_ok=false |
| 3523 |
for ac_c_preproc_warn_flag in '' yes |
| 3524 |
do |
| 3525 |
# Use a header file that comes with gcc, so configuring glibc |
| 3526 |
# with a fresh cross-compiler works. |
| 3527 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3528 |
# <limits.h> exists even on freestanding compilers. |
| 3529 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 3530 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 3531 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3532 |
/* end confdefs.h. */ |
| 3533 |
#ifdef __STDC__ |
| 3534 |
# include <limits.h> |
| 3535 |
#else |
| 3536 |
# include <assert.h> |
| 3537 |
#endif |
| 3538 |
Syntax error |
| 3539 |
_ACEOF |
| 3540 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 3541 |
|
| 3542 |
else |
| 3543 |
# Broken: fails on valid input. |
| 3544 |
continue |
| 3545 |
fi |
| 3546 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 3547 |
|
| 3548 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 3549 |
# can be detected and how. |
| 3550 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3551 |
/* end confdefs.h. */ |
| 3552 |
#include <ac_nonexistent.h> |
| 3553 |
_ACEOF |
| 3554 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 3555 |
# Broken: success on invalid input. |
| 3556 |
continue |
| 3557 |
else |
| 3558 |
# Passes both tests. |
| 3559 |
ac_preproc_ok=: |
| 3560 |
break |
| 3561 |
fi |
| 3562 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 3563 |
|
| 3564 |
done |
| 3565 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3566 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 3567 |
if $ac_preproc_ok; then : |
| 3568 |
break |
| 3569 |
fi |
| 3570 |
|
| 3571 |
done |
| 3572 |
ac_cv_prog_CPP=$CPP |
| 3573 |
|
| 3574 |
fi |
| 3575 |
CPP=$ac_cv_prog_CPP |
| 3576 |
else |
| 3577 |
ac_cv_prog_CPP=$CPP |
| 3578 |
fi |
| 3579 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 3580 |
$as_echo "$CPP" >&6; } |
| 3581 |
ac_preproc_ok=false |
| 3582 |
for ac_c_preproc_warn_flag in '' yes |
| 3583 |
do |
| 3584 |
# Use a header file that comes with gcc, so configuring glibc |
| 3585 |
# with a fresh cross-compiler works. |
| 3586 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3587 |
# <limits.h> exists even on freestanding compilers. |
| 3588 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 3589 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 3590 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3591 |
/* end confdefs.h. */ |
| 3592 |
#ifdef __STDC__ |
| 3593 |
# include <limits.h> |
| 3594 |
#else |
| 3595 |
# include <assert.h> |
| 3596 |
#endif |
| 3597 |
Syntax error |
| 3598 |
_ACEOF |
| 3599 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 3600 |
|
| 3601 |
else |
| 3602 |
# Broken: fails on valid input. |
| 3603 |
continue |
| 3604 |
fi |
| 3605 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 3606 |
|
| 3607 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 3608 |
# can be detected and how. |
| 3609 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3610 |
/* end confdefs.h. */ |
| 3611 |
#include <ac_nonexistent.h> |
| 3612 |
_ACEOF |
| 3613 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 3614 |
# Broken: success on invalid input. |
| 3615 |
continue |
| 3616 |
else |
| 3617 |
# Passes both tests. |
| 3618 |
ac_preproc_ok=: |
| 3619 |
break |
| 3620 |
fi |
| 3621 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 3622 |
|
| 3623 |
done |
| 3624 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3625 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 3626 |
if $ac_preproc_ok; then : |
| 3627 |
|
| 3628 |
else |
| 3629 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3630 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3631 |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 3632 |
See \`config.log' for more details" "$LINENO" 5; } |
| 3633 |
fi |
| 3634 |
|
| 3635 |
ac_ext=c |
| 3636 |
ac_cpp='$CPP $CPPFLAGS' |
| 3637 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3638 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3639 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3640 |
|
| 3641 |
|
| 3642 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 3643 |
$as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 3644 |
if ${ac_cv_path_GREP+:} false; then : |
| 3645 |
$as_echo_n "(cached) " >&6 |
| 3646 |
else |
| 3647 |
if test -z "$GREP"; then |
| 3648 |
ac_path_GREP_found=false |
| 3649 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 3650 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3651 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3652 |
do |
| 3653 |
IFS=$as_save_IFS |
| 3654 |
test -z "$as_dir" && as_dir=. |
| 3655 |
for ac_prog in grep ggrep; do |
| 3656 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3657 |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3658 |
as_fn_executable_p "$ac_path_GREP" || continue |
| 3659 |
# Check for GNU ac_path_GREP and select it if it is found. |
| 3660 |
# Check for GNU $ac_path_GREP |
| 3661 |
case `"$ac_path_GREP" --version 2>&1` in |
| 3662 |
*GNU*) |
| 3663 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3664 |
*) |
| 3665 |
ac_count=0 |
| 3666 |
$as_echo_n 0123456789 >"conftest.in" |
| 3667 |
while : |
| 3668 |
do |
| 3669 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3670 |
mv "conftest.tmp" "conftest.in" |
| 3671 |
cp "conftest.in" "conftest.nl" |
| 3672 |
$as_echo 'GREP' >> "conftest.nl" |
| 3673 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3674 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3675 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3676 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3677 |
# Best one so far, save it but keep looking for a better one |
| 3678 |
ac_cv_path_GREP="$ac_path_GREP" |
| 3679 |
ac_path_GREP_max=$ac_count |
| 3680 |
fi |
| 3681 |
# 10*(2^10) chars as input seems more than enough |
| 3682 |
test $ac_count -gt 10 && break |
| 3683 |
done |
| 3684 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3685 |
esac |
| 3686 |
|
| 3687 |
$ac_path_GREP_found && break 3 |
| 3688 |
done |
| 3689 |
done |
| 3690 |
done |
| 3691 |
IFS=$as_save_IFS |
| 3692 |
if test -z "$ac_cv_path_GREP"; then |
| 3693 |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3694 |
fi |
| 3695 |
else |
| 3696 |
ac_cv_path_GREP=$GREP |
| 3697 |
fi |
| 3698 |
|
| 3699 |
fi |
| 3700 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 3701 |
$as_echo "$ac_cv_path_GREP" >&6; } |
| 3702 |
GREP="$ac_cv_path_GREP" |
| 3703 |
|
| 3704 |
|
| 3705 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 3706 |
$as_echo_n "checking for egrep... " >&6; } |
| 3707 |
if ${ac_cv_path_EGREP+:} false; then : |
| 3708 |
$as_echo_n "(cached) " >&6 |
| 3709 |
else |
| 3710 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3711 |
then ac_cv_path_EGREP="$GREP -E" |
| 3712 |
else |
| 3713 |
if test -z "$EGREP"; then |
| 3714 |
ac_path_EGREP_found=false |
| 3715 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 3716 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3717 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3718 |
do |
| 3719 |
IFS=$as_save_IFS |
| 3720 |
test -z "$as_dir" && as_dir=. |
| 3721 |
for ac_prog in egrep; do |
| 3722 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3723 |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3724 |
as_fn_executable_p "$ac_path_EGREP" || continue |
| 3725 |
# Check for GNU ac_path_EGREP and select it if it is found. |
| 3726 |
# Check for GNU $ac_path_EGREP |
| 3727 |
case `"$ac_path_EGREP" --version 2>&1` in |
| 3728 |
*GNU*) |
| 3729 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3730 |
*) |
| 3731 |
ac_count=0 |
| 3732 |
$as_echo_n 0123456789 >"conftest.in" |
| 3733 |
while : |
| 3734 |
do |
| 3735 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3736 |
mv "conftest.tmp" "conftest.in" |
| 3737 |
cp "conftest.in" "conftest.nl" |
| 3738 |
$as_echo 'EGREP' >> "conftest.nl" |
| 3739 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3740 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3741 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3742 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3743 |
# Best one so far, save it but keep looking for a better one |
| 3744 |
ac_cv_path_EGREP="$ac_path_EGREP" |
| 3745 |
ac_path_EGREP_max=$ac_count |
| 3746 |
fi |
| 3747 |
# 10*(2^10) chars as input seems more than enough |
| 3748 |
test $ac_count -gt 10 && break |
| 3749 |
done |
| 3750 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3751 |
esac |
| 3752 |
|
| 3753 |
$ac_path_EGREP_found && break 3 |
| 3754 |
done |
| 3755 |
done |
| 3756 |
done |
| 3757 |
IFS=$as_save_IFS |
| 3758 |
if test -z "$ac_cv_path_EGREP"; then |
| 3759 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 3760 |
fi |
| 3761 |
else |
| 3762 |
ac_cv_path_EGREP=$EGREP |
| 3763 |
fi |
| 3764 |
|
| 3765 |
fi |
| 3766 |
fi |
| 3767 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 3768 |
$as_echo "$ac_cv_path_EGREP" >&6; } |
| 3769 |
EGREP="$ac_cv_path_EGREP" |
| 3770 |
|
| 3771 |
|
| 3772 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 3773 |
$as_echo_n "checking for ANSI C header files... " >&6; } |
| 3774 |
if ${ac_cv_header_stdc+:} false; then : |
| 3775 |
$as_echo_n "(cached) " >&6 |
| 3776 |
else |
| 3777 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3778 |
/* end confdefs.h. */ |
| 3779 |
#include <stdlib.h> |
| 3780 |
#include <stdarg.h> |
| 3781 |
#include <string.h> |
| 3782 |
#include <float.h> |
| 3783 |
|
| 3784 |
int |
| 3785 |
main () |
| 3786 |
{ |
| 3787 |
|
| 3788 |
; |
| 3789 |
return 0; |
| 3790 |
} |
| 3791 |
_ACEOF |
| 3792 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 3793 |
ac_cv_header_stdc=yes |
| 3794 |
else |
| 3795 |
ac_cv_header_stdc=no |
| 3796 |
fi |
| 3797 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3798 |
|
| 3799 |
if test $ac_cv_header_stdc = yes; then |
| 3800 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3801 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3802 |
/* end confdefs.h. */ |
| 3803 |
#include <string.h> |
| 3804 |
|
| 3805 |
_ACEOF |
| 3806 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3807 |
$EGREP "memchr" >/dev/null 2>&1; then : |
| 3808 |
|
| 3809 |
else |
| 3810 |
ac_cv_header_stdc=no |
| 3811 |
fi |
| 3812 |
rm -f conftest* |
| 3813 |
|
| 3814 |
fi |
| 3815 |
|
| 3816 |
if test $ac_cv_header_stdc = yes; then |
| 3817 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3818 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3819 |
/* end confdefs.h. */ |
| 3820 |
#include <stdlib.h> |
| 3821 |
|
| 3822 |
_ACEOF |
| 3823 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3824 |
$EGREP "free" >/dev/null 2>&1; then : |
| 3825 |
|
| 3826 |
else |
| 3827 |
ac_cv_header_stdc=no |
| 3828 |
fi |
| 3829 |
rm -f conftest* |
| 3830 |
|
| 3831 |
fi |
| 3832 |
|
| 3833 |
if test $ac_cv_header_stdc = yes; then |
| 3834 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3835 |
if test "$cross_compiling" = yes; then : |
| 3836 |
: |
| 3837 |
else |
| 3838 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3839 |
/* end confdefs.h. */ |
| 3840 |
#include <ctype.h> |
| 3841 |
#include <stdlib.h> |
| 3842 |
#if ((' ' & 0x0FF) == 0x020) |
| 3843 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3844 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3845 |
#else |
| 3846 |
# define ISLOWER(c) \ |
| 3847 |
(('a' <= (c) && (c) <= 'i') \ |
| 3848 |
|| ('j' <= (c) && (c) <= 'r') \ |
| 3849 |
|| ('s' <= (c) && (c) <= 'z')) |
| 3850 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3851 |
#endif |
| 3852 |
|
| 3853 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3854 |
int |
| 3855 |
main () |
| 3856 |
{ |
| 3857 |
int i; |
| 3858 |
for (i = 0; i < 256; i++) |
| 3859 |
if (XOR (islower (i), ISLOWER (i)) |
| 3860 |
|| toupper (i) != TOUPPER (i)) |
| 3861 |
return 2; |
| 3862 |
return 0; |
| 3863 |
} |
| 3864 |
_ACEOF |
| 3865 |
if ac_fn_c_try_run "$LINENO"; then : |
| 3866 |
|
| 3867 |
else |
| 3868 |
ac_cv_header_stdc=no |
| 3869 |
fi |
| 3870 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 3871 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3872 |
fi |
| 3873 |
|
| 3874 |
fi |
| 3875 |
fi |
| 3876 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 3877 |
$as_echo "$ac_cv_header_stdc" >&6; } |
| 3878 |
if test $ac_cv_header_stdc = yes; then |
| 3879 |
|
| 3880 |
$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 3881 |
|
| 3882 |
fi |
| 3883 |
|
| 3884 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3885 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3886 |
inttypes.h stdint.h unistd.h |
| 3887 |
do : |
| 3888 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3889 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 3890 |
" |
| 3891 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 3892 |
cat >>confdefs.h <<_ACEOF |
| 3893 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3894 |
_ACEOF |
| 3895 |
|
| 3896 |
fi |
| 3897 |
|
| 3898 |
done |
| 3899 |
|
| 3900 |
|
| 3901 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 3902 |
$as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| 3903 |
if ${ac_cv_c_bigendian+:} false; then : |
| 3904 |
$as_echo_n "(cached) " >&6 |
| 3905 |
else |
| 3906 |
ac_cv_c_bigendian=unknown |
| 3907 |
# See if we're dealing with a universal compiler. |
| 3908 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3909 |
/* end confdefs.h. */ |
| 3910 |
#ifndef __APPLE_CC__ |
| 3911 |
not a universal capable compiler |
| 3912 |
#endif |
| 3913 |
typedef int dummy; |
| 3914 |
|
| 3915 |
_ACEOF |
| 3916 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 3917 |
|
| 3918 |
# Check for potential -arch flags. It is not universal unless |
| 3919 |
# there are at least two -arch flags with different values. |
| 3920 |
ac_arch= |
| 3921 |
ac_prev= |
| 3922 |
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 3923 |
if test -n "$ac_prev"; then |
| 3924 |
case $ac_word in |
| 3925 |
i?86 | x86_64 | ppc | ppc64) |
| 3926 |
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 3927 |
ac_arch=$ac_word |
| 3928 |
else |
| 3929 |
ac_cv_c_bigendian=universal |
| 3930 |
break |
| 3931 |
fi |
| 3932 |
;; |
| 3933 |
esac |
| 3934 |
ac_prev= |
| 3935 |
elif test "x$ac_word" = "x-arch"; then |
| 3936 |
ac_prev=arch |
| 3937 |
fi |
| 3938 |
done |
| 3939 |
fi |
| 3940 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3941 |
if test $ac_cv_c_bigendian = unknown; then |
| 3942 |
# See if sys/param.h defines the BYTE_ORDER macro. |
| 3943 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3944 |
/* end confdefs.h. */ |
| 3945 |
#include <sys/types.h> |
| 3946 |
#include <sys/param.h> |
| 3947 |
|
| 3948 |
int |
| 3949 |
main () |
| 3950 |
{ |
| 3951 |
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 3952 |
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 3953 |
&& LITTLE_ENDIAN) |
| 3954 |
bogus endian macros |
| 3955 |
#endif |
| 3956 |
|
| 3957 |
; |
| 3958 |
return 0; |
| 3959 |
} |
| 3960 |
_ACEOF |
| 3961 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 3962 |
# It does; now see whether it defined to BIG_ENDIAN or not. |
| 3963 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3964 |
/* end confdefs.h. */ |
| 3965 |
#include <sys/types.h> |
| 3966 |
#include <sys/param.h> |
| 3967 |
|
| 3968 |
int |
| 3969 |
main () |
| 3970 |
{ |
| 3971 |
#if BYTE_ORDER != BIG_ENDIAN |
| 3972 |
not big endian |
| 3973 |
#endif |
| 3974 |
|
| 3975 |
; |
| 3976 |
return 0; |
| 3977 |
} |
| 3978 |
_ACEOF |
| 3979 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 3980 |
ac_cv_c_bigendian=yes |
| 3981 |
else |
| 3982 |
ac_cv_c_bigendian=no |
| 3983 |
fi |
| 3984 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3985 |
fi |
| 3986 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3987 |
fi |
| 3988 |
if test $ac_cv_c_bigendian = unknown; then |
| 3989 |
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 3990 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3991 |
/* end confdefs.h. */ |
| 3992 |
#include <limits.h> |
| 3993 |
|
| 3994 |
int |
| 3995 |
main () |
| 3996 |
{ |
| 3997 |
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 3998 |
bogus endian macros |
| 3999 |
#endif |
| 4000 |
|
| 4001 |
; |
| 4002 |
return 0; |
| 4003 |
} |
| 4004 |
_ACEOF |
| 4005 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 4006 |
# It does; now see whether it defined to _BIG_ENDIAN or not. |
| 4007 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4008 |
/* end confdefs.h. */ |
| 4009 |
#include <limits.h> |
| 4010 |
|
| 4011 |
int |
| 4012 |
main () |
| 4013 |
{ |
| 4014 |
#ifndef _BIG_ENDIAN |
| 4015 |
not big endian |
| 4016 |
#endif |
| 4017 |
|
| 4018 |
; |
| 4019 |
return 0; |
| 4020 |
} |
| 4021 |
_ACEOF |
| 4022 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 4023 |
ac_cv_c_bigendian=yes |
| 4024 |
else |
| 4025 |
ac_cv_c_bigendian=no |
| 4026 |
fi |
| 4027 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4028 |
fi |
| 4029 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4030 |
fi |
| 4031 |
if test $ac_cv_c_bigendian = unknown; then |
| 4032 |
# Compile a test program. |
| 4033 |
if test "$cross_compiling" = yes; then : |
| 4034 |
# Try to guess by grepping values from an object file. |
| 4035 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4036 |
/* end confdefs.h. */ |
| 4037 |
short int ascii_mm[] = |
| 4038 |
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4039 |
short int ascii_ii[] = |
| 4040 |
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4041 |
int use_ascii (int i) { |
| 4042 |
return ascii_mm[i] + ascii_ii[i]; |
| 4043 |
} |
| 4044 |
short int ebcdic_ii[] = |
| 4045 |
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4046 |
short int ebcdic_mm[] = |
| 4047 |
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4048 |
int use_ebcdic (int i) { |
| 4049 |
return ebcdic_mm[i] + ebcdic_ii[i]; |
| 4050 |
} |
| 4051 |
extern int foo; |
| 4052 |
|
| 4053 |
int |
| 4054 |
main () |
| 4055 |
{ |
| 4056 |
return use_ascii (foo) == use_ebcdic (foo); |
| 4057 |
; |
| 4058 |
return 0; |
| 4059 |
} |
| 4060 |
_ACEOF |
| 4061 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 4062 |
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 4063 |
ac_cv_c_bigendian=yes |
| 4064 |
fi |
| 4065 |
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4066 |
if test "$ac_cv_c_bigendian" = unknown; then |
| 4067 |
ac_cv_c_bigendian=no |
| 4068 |
else |
| 4069 |
# finding both strings is unlikely to happen, but who knows? |
| 4070 |
ac_cv_c_bigendian=unknown |
| 4071 |
fi |
| 4072 |
fi |
| 4073 |
fi |
| 4074 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4075 |
else |
| 4076 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4077 |
/* end confdefs.h. */ |
| 4078 |
$ac_includes_default |
| 4079 |
int |
| 4080 |
main () |
| 4081 |
{ |
| 4082 |
|
| 4083 |
/* Are we little or big endian? From Harbison&Steele. */ |
| 4084 |
union |
| 4085 |
{ |
| 4086 |
long int l; |
| 4087 |
char c[sizeof (long int)]; |
| 4088 |
} u; |
| 4089 |
u.l = 1; |
| 4090 |
return u.c[sizeof (long int) - 1] == 1; |
| 4091 |
|
| 4092 |
; |
| 4093 |
return 0; |
| 4094 |
} |
| 4095 |
_ACEOF |
| 4096 |
if ac_fn_c_try_run "$LINENO"; then : |
| 4097 |
ac_cv_c_bigendian=no |
| 4098 |
else |
| 4099 |
ac_cv_c_bigendian=yes |
| 4100 |
fi |
| 4101 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4102 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4103 |
fi |
| 4104 |
|
| 4105 |
fi |
| 4106 |
fi |
| 4107 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 4108 |
$as_echo "$ac_cv_c_bigendian" >&6; } |
| 4109 |
case $ac_cv_c_bigendian in #( |
| 4110 |
yes) |
| 4111 |
$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 4112 |
;; #( |
| 4113 |
no) |
| 4114 |
;; #( |
| 4115 |
universal) |
| 4116 |
|
| 4117 |
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| 4118 |
|
| 4119 |
;; #( |
| 4120 |
*) |
| 4121 |
as_fn_error $? "unknown endianness |
| 4122 |
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 4123 |
esac |
| 4124 |
|
| 4125 |
|
| 4126 |
# Checks for programs. |
| 4127 |
for ac_prog in gawk mawk nawk awk |
| 4128 |
do |
| 4129 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4130 |
set dummy $ac_prog; ac_word=$2 |
| 4131 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4132 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4133 |
if ${ac_cv_prog_AWK+:} false; then : |
| 4134 |
$as_echo_n "(cached) " >&6 |
| 4135 |
else |
| 4136 |
if test -n "$AWK"; then |
| 4137 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 4138 |
else |
| 4139 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4140 |
for as_dir in $PATH |
| 4141 |
do |
| 4142 |
IFS=$as_save_IFS |
| 4143 |
test -z "$as_dir" && as_dir=. |
| 4144 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4145 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4146 |
ac_cv_prog_AWK="$ac_prog" |
| 4147 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4148 |
break 2 |
| 4149 |
fi |
| 4150 |
done |
| 4151 |
done |
| 4152 |
IFS=$as_save_IFS |
| 4153 |
|
| 4154 |
fi |
| 4155 |
fi |
| 4156 |
AWK=$ac_cv_prog_AWK |
| 4157 |
if test -n "$AWK"; then |
| 4158 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 4159 |
$as_echo "$AWK" >&6; } |
| 4160 |
else |
| 4161 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4162 |
$as_echo "no" >&6; } |
| 4163 |
fi |
| 4164 |
|
| 4165 |
|
| 4166 |
test -n "$AWK" && break |
| 4167 |
done |
| 4168 |
|
| 4169 |
ac_ext=c |
| 4170 |
ac_cpp='$CPP $CPPFLAGS' |
| 4171 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4172 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4173 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4174 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4175 |
$as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 4176 |
# On Suns, sometimes $CPP names a directory. |
| 4177 |
if test -n "$CPP" && test -d "$CPP"; then |
| 4178 |
CPP= |
| 4179 |
fi |
| 4180 |
if test -z "$CPP"; then |
| 4181 |
if ${ac_cv_prog_CPP+:} false; then : |
| 4182 |
$as_echo_n "(cached) " >&6 |
| 4183 |
else |
| 4184 |
# Double quotes because CPP needs to be expanded |
| 4185 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4186 |
do |
| 4187 |
ac_preproc_ok=false |
| 4188 |
for ac_c_preproc_warn_flag in '' yes |
| 4189 |
do |
| 4190 |
# Use a header file that comes with gcc, so configuring glibc |
| 4191 |
# with a fresh cross-compiler works. |
| 4192 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4193 |
# <limits.h> exists even on freestanding compilers. |
| 4194 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 4195 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 4196 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4197 |
/* end confdefs.h. */ |
| 4198 |
#ifdef __STDC__ |
| 4199 |
# include <limits.h> |
| 4200 |
#else |
| 4201 |
# include <assert.h> |
| 4202 |
#endif |
| 4203 |
Syntax error |
| 4204 |
_ACEOF |
| 4205 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 4206 |
|
| 4207 |
else |
| 4208 |
# Broken: fails on valid input. |
| 4209 |
continue |
| 4210 |
fi |
| 4211 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 4212 |
|
| 4213 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 4214 |
# can be detected and how. |
| 4215 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4216 |
/* end confdefs.h. */ |
| 4217 |
#include <ac_nonexistent.h> |
| 4218 |
_ACEOF |
| 4219 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 4220 |
# Broken: success on invalid input. |
| 4221 |
continue |
| 4222 |
else |
| 4223 |
# Passes both tests. |
| 4224 |
ac_preproc_ok=: |
| 4225 |
break |
| 4226 |
fi |
| 4227 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 4228 |
|
| 4229 |
done |
| 4230 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4231 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 4232 |
if $ac_preproc_ok; then : |
| 4233 |
break |
| 4234 |
fi |
| 4235 |
|
| 4236 |
done |
| 4237 |
ac_cv_prog_CPP=$CPP |
| 4238 |
|
| 4239 |
fi |
| 4240 |
CPP=$ac_cv_prog_CPP |
| 4241 |
else |
| 4242 |
ac_cv_prog_CPP=$CPP |
| 4243 |
fi |
| 4244 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4245 |
$as_echo "$CPP" >&6; } |
| 4246 |
ac_preproc_ok=false |
| 4247 |
for ac_c_preproc_warn_flag in '' yes |
| 4248 |
do |
| 4249 |
# Use a header file that comes with gcc, so configuring glibc |
| 4250 |
# with a fresh cross-compiler works. |
| 4251 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4252 |
# <limits.h> exists even on freestanding compilers. |
| 4253 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 4254 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 4255 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4256 |
/* end confdefs.h. */ |
| 4257 |
#ifdef __STDC__ |
| 4258 |
# include <limits.h> |
| 4259 |
#else |
| 4260 |
# include <assert.h> |
| 4261 |
#endif |
| 4262 |
Syntax error |
| 4263 |
_ACEOF |
| 4264 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 4265 |
|
| 4266 |
else |
| 4267 |
# Broken: fails on valid input. |
| 4268 |
continue |
| 4269 |
fi |
| 4270 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 4271 |
|
| 4272 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 4273 |
# can be detected and how. |
| 4274 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4275 |
/* end confdefs.h. */ |
| 4276 |
#include <ac_nonexistent.h> |
| 4277 |
_ACEOF |
| 4278 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 4279 |
# Broken: success on invalid input. |
| 4280 |
continue |
| 4281 |
else |
| 4282 |
# Passes both tests. |
| 4283 |
ac_preproc_ok=: |
| 4284 |
break |
| 4285 |
fi |
| 4286 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 4287 |
|
| 4288 |
done |
| 4289 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4290 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 4291 |
if $ac_preproc_ok; then : |
| 4292 |
|
| 4293 |
else |
| 4294 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4295 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4296 |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4297 |
See \`config.log' for more details" "$LINENO" 5; } |
| 4298 |
fi |
| 4299 |
|
| 4300 |
ac_ext=c |
| 4301 |
ac_cpp='$CPP $CPPFLAGS' |
| 4302 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4303 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4304 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4305 |
|
| 4306 |
if test -n "$ac_tool_prefix"; then |
| 4307 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4308 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 4309 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4310 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4311 |
if ${ac_cv_prog_RANLIB+:} false; then : |
| 4312 |
$as_echo_n "(cached) " >&6 |
| 4313 |
else |
| 4314 |
if test -n "$RANLIB"; then |
| 4315 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4316 |
else |
| 4317 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4318 |
for as_dir in $PATH |
| 4319 |
do |
| 4320 |
IFS=$as_save_IFS |
| 4321 |
test -z "$as_dir" && as_dir=. |
| 4322 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4323 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4324 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4325 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4326 |
break 2 |
| 4327 |
fi |
| 4328 |
done |
| 4329 |
done |
| 4330 |
IFS=$as_save_IFS |
| 4331 |
|
| 4332 |
fi |
| 4333 |
fi |
| 4334 |
RANLIB=$ac_cv_prog_RANLIB |
| 4335 |
if test -n "$RANLIB"; then |
| 4336 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 4337 |
$as_echo "$RANLIB" >&6; } |
| 4338 |
else |
| 4339 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4340 |
$as_echo "no" >&6; } |
| 4341 |
fi |
| 4342 |
|
| 4343 |
|
| 4344 |
fi |
| 4345 |
if test -z "$ac_cv_prog_RANLIB"; then |
| 4346 |
ac_ct_RANLIB=$RANLIB |
| 4347 |
# Extract the first word of "ranlib", so it can be a program name with args. |
| 4348 |
set dummy ranlib; ac_word=$2 |
| 4349 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4350 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4351 |
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 4352 |
$as_echo_n "(cached) " >&6 |
| 4353 |
else |
| 4354 |
if test -n "$ac_ct_RANLIB"; then |
| 4355 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4356 |
else |
| 4357 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4358 |
for as_dir in $PATH |
| 4359 |
do |
| 4360 |
IFS=$as_save_IFS |
| 4361 |
test -z "$as_dir" && as_dir=. |
| 4362 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4363 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4364 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4365 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4366 |
break 2 |
| 4367 |
fi |
| 4368 |
done |
| 4369 |
done |
| 4370 |
IFS=$as_save_IFS |
| 4371 |
|
| 4372 |
fi |
| 4373 |
fi |
| 4374 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4375 |
if test -n "$ac_ct_RANLIB"; then |
| 4376 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 4377 |
$as_echo "$ac_ct_RANLIB" >&6; } |
| 4378 |
else |
| 4379 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4380 |
$as_echo "no" >&6; } |
| 4381 |
fi |
| 4382 |
|
| 4383 |
if test "x$ac_ct_RANLIB" = x; then |
| 4384 |
RANLIB=":" |
| 4385 |
else |
| 4386 |
case $cross_compiling:$ac_tool_warned in |
| 4387 |
yes:) |
| 4388 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4389 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4390 |
ac_tool_warned=yes ;; |
| 4391 |
esac |
| 4392 |
RANLIB=$ac_ct_RANLIB |
| 4393 |
fi |
| 4394 |
else |
| 4395 |
RANLIB="$ac_cv_prog_RANLIB" |
| 4396 |
fi |
| 4397 |
|
| 4398 |
# Find a good install program. We prefer a C program (faster), |
| 4399 |
# so one script is as good as another. But avoid the broken or |
| 4400 |
# incompatible versions: |
| 4401 |
# SysV /etc/install, /usr/sbin/install |
| 4402 |
# SunOS /usr/etc/install |
| 4403 |
# IRIX /sbin/install |
| 4404 |
# AIX /bin/install |
| 4405 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4406 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4407 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4408 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4409 |
# OS/2's system install, which has a completely different semantic |
| 4410 |
# ./install, which can be erroneously created by make from ./install.sh. |
| 4411 |
# Reject install programs that cannot install multiple files. |
| 4412 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 4413 |
$as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 4414 |
if test -z "$INSTALL"; then |
| 4415 |
if ${ac_cv_path_install+:} false; then : |
| 4416 |
$as_echo_n "(cached) " >&6 |
| 4417 |
else |
| 4418 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4419 |
for as_dir in $PATH |
| 4420 |
do |
| 4421 |
IFS=$as_save_IFS |
| 4422 |
test -z "$as_dir" && as_dir=. |
| 4423 |
# Account for people who put trailing slashes in PATH elements. |
| 4424 |
case $as_dir/ in #(( |
| 4425 |
./ | .// | /[cC]/* | \ |
| 4426 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4427 |
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 4428 |
/usr/ucb/* ) ;; |
| 4429 |
*) |
| 4430 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
| 4431 |
# Don't use installbsd from OSF since it installs stuff as root |
| 4432 |
# by default. |
| 4433 |
for ac_prog in ginstall scoinst install; do |
| 4434 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4435 |
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 4436 |
if test $ac_prog = install && |
| 4437 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4438 |
# AIX install. It has an incompatible calling convention. |
| 4439 |
: |
| 4440 |
elif test $ac_prog = install && |
| 4441 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4442 |
# program-specific install script used by HP pwplus--don't use. |
| 4443 |
: |
| 4444 |
else |
| 4445 |
rm -rf conftest.one conftest.two conftest.dir |
| 4446 |
echo one > conftest.one |
| 4447 |
echo two > conftest.two |
| 4448 |
mkdir conftest.dir |
| 4449 |
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 4450 |
test -s conftest.one && test -s conftest.two && |
| 4451 |
test -s conftest.dir/conftest.one && |
| 4452 |
test -s conftest.dir/conftest.two |
| 4453 |
then |
| 4454 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4455 |
break 3 |
| 4456 |
fi |
| 4457 |
fi |
| 4458 |
fi |
| 4459 |
done |
| 4460 |
done |
| 4461 |
;; |
| 4462 |
esac |
| 4463 |
|
| 4464 |
done |
| 4465 |
IFS=$as_save_IFS |
| 4466 |
|
| 4467 |
rm -rf conftest.one conftest.two conftest.dir |
| 4468 |
|
| 4469 |
fi |
| 4470 |
if test "${ac_cv_path_install+set}" = set; then |
| 4471 |
INSTALL=$ac_cv_path_install |
| 4472 |
else |
| 4473 |
# As a last resort, use the slow shell script. Don't cache a |
| 4474 |
# value for INSTALL within a source directory, because that will |
| 4475 |
# break other packages using the cache if that directory is |
| 4476 |
# removed, or if the value is a relative name. |
| 4477 |
INSTALL=$ac_install_sh |
| 4478 |
fi |
| 4479 |
fi |
| 4480 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 4481 |
$as_echo "$INSTALL" >&6; } |
| 4482 |
|
| 4483 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4484 |
# It thinks the first close brace ends the variable substitution. |
| 4485 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4486 |
|
| 4487 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4488 |
|
| 4489 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4490 |
|
| 4491 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4492 |
$as_echo_n "checking for egrep... " >&6; } |
| 4493 |
if ${ac_cv_path_EGREP+:} false; then : |
| 4494 |
$as_echo_n "(cached) " >&6 |
| 4495 |
else |
| 4496 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4497 |
then ac_cv_path_EGREP="$GREP -E" |
| 4498 |
else |
| 4499 |
if test -z "$EGREP"; then |
| 4500 |
ac_path_EGREP_found=false |
| 4501 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 4502 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4503 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4504 |
do |
| 4505 |
IFS=$as_save_IFS |
| 4506 |
test -z "$as_dir" && as_dir=. |
| 4507 |
for ac_prog in egrep; do |
| 4508 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4509 |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4510 |
as_fn_executable_p "$ac_path_EGREP" || continue |
| 4511 |
# Check for GNU ac_path_EGREP and select it if it is found. |
| 4512 |
# Check for GNU $ac_path_EGREP |
| 4513 |
case `"$ac_path_EGREP" --version 2>&1` in |
| 4514 |
*GNU*) |
| 4515 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4516 |
*) |
| 4517 |
ac_count=0 |
| 4518 |
$as_echo_n 0123456789 >"conftest.in" |
| 4519 |
while : |
| 4520 |
do |
| 4521 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4522 |
mv "conftest.tmp" "conftest.in" |
| 4523 |
cp "conftest.in" "conftest.nl" |
| 4524 |
$as_echo 'EGREP' >> "conftest.nl" |
| 4525 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4526 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4527 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4528 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4529 |
# Best one so far, save it but keep looking for a better one |
| 4530 |
ac_cv_path_EGREP="$ac_path_EGREP" |
| 4531 |
ac_path_EGREP_max=$ac_count |
| 4532 |
fi |
| 4533 |
# 10*(2^10) chars as input seems more than enough |
| 4534 |
test $ac_count -gt 10 && break |
| 4535 |
done |
| 4536 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4537 |
esac |
| 4538 |
|
| 4539 |
$ac_path_EGREP_found && break 3 |
| 4540 |
done |
| 4541 |
done |
| 4542 |
done |
| 4543 |
IFS=$as_save_IFS |
| 4544 |
if test -z "$ac_cv_path_EGREP"; then |
| 4545 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4546 |
fi |
| 4547 |
else |
| 4548 |
ac_cv_path_EGREP=$EGREP |
| 4549 |
fi |
| 4550 |
|
| 4551 |
fi |
| 4552 |
fi |
| 4553 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4554 |
$as_echo "$ac_cv_path_EGREP" >&6; } |
| 4555 |
EGREP="$ac_cv_path_EGREP" |
| 4556 |
|
| 4557 |
|
| 4558 |
if test -n "$ac_tool_prefix"; then |
| 4559 |
for ac_prog in ar |
| 4560 |
do |
| 4561 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4562 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4563 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4564 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4565 |
if ${ac_cv_prog_AR+:} false; then : |
| 4566 |
$as_echo_n "(cached) " >&6 |
| 4567 |
else |
| 4568 |
if test -n "$AR"; then |
| 4569 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4570 |
else |
| 4571 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4572 |
for as_dir in $PATH |
| 4573 |
do |
| 4574 |
IFS=$as_save_IFS |
| 4575 |
test -z "$as_dir" && as_dir=. |
| 4576 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4577 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4578 |
ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 4579 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4580 |
break 2 |
| 4581 |
fi |
| 4582 |
done |
| 4583 |
done |
| 4584 |
IFS=$as_save_IFS |
| 4585 |
|
| 4586 |
fi |
| 4587 |
fi |
| 4588 |
AR=$ac_cv_prog_AR |
| 4589 |
if test -n "$AR"; then |
| 4590 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 4591 |
$as_echo "$AR" >&6; } |
| 4592 |
else |
| 4593 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4594 |
$as_echo "no" >&6; } |
| 4595 |
fi |
| 4596 |
|
| 4597 |
|
| 4598 |
test -n "$AR" && break |
| 4599 |
done |
| 4600 |
fi |
| 4601 |
if test -z "$AR"; then |
| 4602 |
ac_ct_AR=$AR |
| 4603 |
for ac_prog in ar |
| 4604 |
do |
| 4605 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4606 |
set dummy $ac_prog; ac_word=$2 |
| 4607 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4608 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4609 |
if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 4610 |
$as_echo_n "(cached) " >&6 |
| 4611 |
else |
| 4612 |
if test -n "$ac_ct_AR"; then |
| 4613 |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 4614 |
else |
| 4615 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4616 |
for as_dir in $PATH |
| 4617 |
do |
| 4618 |
IFS=$as_save_IFS |
| 4619 |
test -z "$as_dir" && as_dir=. |
| 4620 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4621 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4622 |
ac_cv_prog_ac_ct_AR="$ac_prog" |
| 4623 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4624 |
break 2 |
| 4625 |
fi |
| 4626 |
done |
| 4627 |
done |
| 4628 |
IFS=$as_save_IFS |
| 4629 |
|
| 4630 |
fi |
| 4631 |
fi |
| 4632 |
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 4633 |
if test -n "$ac_ct_AR"; then |
| 4634 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 4635 |
$as_echo "$ac_ct_AR" >&6; } |
| 4636 |
else |
| 4637 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4638 |
$as_echo "no" >&6; } |
| 4639 |
fi |
| 4640 |
|
| 4641 |
|
| 4642 |
test -n "$ac_ct_AR" && break |
| 4643 |
done |
| 4644 |
|
| 4645 |
if test "x$ac_ct_AR" = x; then |
| 4646 |
AR="" |
| 4647 |
else |
| 4648 |
case $cross_compiling:$ac_tool_warned in |
| 4649 |
yes:) |
| 4650 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4651 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4652 |
ac_tool_warned=yes ;; |
| 4653 |
esac |
| 4654 |
AR=$ac_ct_AR |
| 4655 |
fi |
| 4656 |
fi |
| 4657 |
|
| 4658 |
# Extract the first word of "cat", so it can be a program name with args. |
| 4659 |
set dummy cat; ac_word=$2 |
| 4660 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4661 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4662 |
if ${ac_cv_path_CAT+:} false; then : |
| 4663 |
$as_echo_n "(cached) " >&6 |
| 4664 |
else |
| 4665 |
case $CAT in |
| 4666 |
[\\/]* | ?:[\\/]*) |
| 4667 |
ac_cv_path_CAT="$CAT" # Let the user override the test with a path. |
| 4668 |
;; |
| 4669 |
*) |
| 4670 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4671 |
for as_dir in $PATH |
| 4672 |
do |
| 4673 |
IFS=$as_save_IFS |
| 4674 |
test -z "$as_dir" && as_dir=. |
| 4675 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4676 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4677 |
ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" |
| 4678 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4679 |
break 2 |
| 4680 |
fi |
| 4681 |
done |
| 4682 |
done |
| 4683 |
IFS=$as_save_IFS |
| 4684 |
|
| 4685 |
;; |
| 4686 |
esac |
| 4687 |
fi |
| 4688 |
CAT=$ac_cv_path_CAT |
| 4689 |
if test -n "$CAT"; then |
| 4690 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 |
| 4691 |
$as_echo "$CAT" >&6; } |
| 4692 |
else |
| 4693 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4694 |
$as_echo "no" >&6; } |
| 4695 |
fi |
| 4696 |
|
| 4697 |
|
| 4698 |
# Extract the first word of "kill", so it can be a program name with args. |
| 4699 |
set dummy kill; ac_word=$2 |
| 4700 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4701 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4702 |
if ${ac_cv_path_KILL+:} false; then : |
| 4703 |
$as_echo_n "(cached) " >&6 |
| 4704 |
else |
| 4705 |
case $KILL in |
| 4706 |
[\\/]* | ?:[\\/]*) |
| 4707 |
ac_cv_path_KILL="$KILL" # Let the user override the test with a path. |
| 4708 |
;; |
| 4709 |
*) |
| 4710 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4711 |
for as_dir in $PATH |
| 4712 |
do |
| 4713 |
IFS=$as_save_IFS |
| 4714 |
test -z "$as_dir" && as_dir=. |
| 4715 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4716 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4717 |
ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" |
| 4718 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4719 |
break 2 |
| 4720 |
fi |
| 4721 |
done |
| 4722 |
done |
| 4723 |
IFS=$as_save_IFS |
| 4724 |
|
| 4725 |
;; |
| 4726 |
esac |
| 4727 |
fi |
| 4728 |
KILL=$ac_cv_path_KILL |
| 4729 |
if test -n "$KILL"; then |
| 4730 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5 |
| 4731 |
$as_echo "$KILL" >&6; } |
| 4732 |
else |
| 4733 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4734 |
$as_echo "no" >&6; } |
| 4735 |
fi |
| 4736 |
|
| 4737 |
|
| 4738 |
for ac_prog in perl5 perl |
| 4739 |
do |
| 4740 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4741 |
set dummy $ac_prog; ac_word=$2 |
| 4742 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4743 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4744 |
if ${ac_cv_path_PERL+:} false; then : |
| 4745 |
$as_echo_n "(cached) " >&6 |
| 4746 |
else |
| 4747 |
case $PERL in |
| 4748 |
[\\/]* | ?:[\\/]*) |
| 4749 |
ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 4750 |
;; |
| 4751 |
*) |
| 4752 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4753 |
for as_dir in $PATH |
| 4754 |
do |
| 4755 |
IFS=$as_save_IFS |
| 4756 |
test -z "$as_dir" && as_dir=. |
| 4757 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4758 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4759 |
ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 4760 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4761 |
break 2 |
| 4762 |
fi |
| 4763 |
done |
| 4764 |
done |
| 4765 |
IFS=$as_save_IFS |
| 4766 |
|
| 4767 |
;; |
| 4768 |
esac |
| 4769 |
fi |
| 4770 |
PERL=$ac_cv_path_PERL |
| 4771 |
if test -n "$PERL"; then |
| 4772 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
| 4773 |
$as_echo "$PERL" >&6; } |
| 4774 |
else |
| 4775 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4776 |
$as_echo "no" >&6; } |
| 4777 |
fi |
| 4778 |
|
| 4779 |
|
| 4780 |
test -n "$PERL" && break |
| 4781 |
done |
| 4782 |
|
| 4783 |
# Extract the first word of "sed", so it can be a program name with args. |
| 4784 |
set dummy sed; ac_word=$2 |
| 4785 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4786 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4787 |
if ${ac_cv_path_SED+:} false; then : |
| 4788 |
$as_echo_n "(cached) " >&6 |
| 4789 |
else |
| 4790 |
case $SED in |
| 4791 |
[\\/]* | ?:[\\/]*) |
| 4792 |
ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 4793 |
;; |
| 4794 |
*) |
| 4795 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4796 |
for as_dir in $PATH |
| 4797 |
do |
| 4798 |
IFS=$as_save_IFS |
| 4799 |
test -z "$as_dir" && as_dir=. |
| 4800 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4801 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4802 |
ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 4803 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4804 |
break 2 |
| 4805 |
fi |
| 4806 |
done |
| 4807 |
done |
| 4808 |
IFS=$as_save_IFS |
| 4809 |
|
| 4810 |
;; |
| 4811 |
esac |
| 4812 |
fi |
| 4813 |
SED=$ac_cv_path_SED |
| 4814 |
if test -n "$SED"; then |
| 4815 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
| 4816 |
$as_echo "$SED" >&6; } |
| 4817 |
else |
| 4818 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4819 |
$as_echo "no" >&6; } |
| 4820 |
fi |
| 4821 |
|
| 4822 |
|
| 4823 |
|
| 4824 |
# Extract the first word of "ent", so it can be a program name with args. |
| 4825 |
set dummy ent; ac_word=$2 |
| 4826 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4827 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4828 |
if ${ac_cv_path_ENT+:} false; then : |
| 4829 |
$as_echo_n "(cached) " >&6 |
| 4830 |
else |
| 4831 |
case $ENT in |
| 4832 |
[\\/]* | ?:[\\/]*) |
| 4833 |
ac_cv_path_ENT="$ENT" # Let the user override the test with a path. |
| 4834 |
;; |
| 4835 |
*) |
| 4836 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4837 |
for as_dir in $PATH |
| 4838 |
do |
| 4839 |
IFS=$as_save_IFS |
| 4840 |
test -z "$as_dir" && as_dir=. |
| 4841 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4842 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4843 |
ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" |
| 4844 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4845 |
break 2 |
| 4846 |
fi |
| 4847 |
done |
| 4848 |
done |
| 4849 |
IFS=$as_save_IFS |
| 4850 |
|
| 4851 |
;; |
| 4852 |
esac |
| 4853 |
fi |
| 4854 |
ENT=$ac_cv_path_ENT |
| 4855 |
if test -n "$ENT"; then |
| 4856 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5 |
| 4857 |
$as_echo "$ENT" >&6; } |
| 4858 |
else |
| 4859 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4860 |
$as_echo "no" >&6; } |
| 4861 |
fi |
| 4862 |
|
| 4863 |
|
| 4864 |
|
| 4865 |
# Extract the first word of "bash", so it can be a program name with args. |
| 4866 |
set dummy bash; ac_word=$2 |
| 4867 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4868 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4869 |
if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : |
| 4870 |
$as_echo_n "(cached) " >&6 |
| 4871 |
else |
| 4872 |
case $TEST_MINUS_S_SH in |
| 4873 |
[\\/]* | ?:[\\/]*) |
| 4874 |
ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. |
| 4875 |
;; |
| 4876 |
*) |
| 4877 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4878 |
for as_dir in $PATH |
| 4879 |
do |
| 4880 |
IFS=$as_save_IFS |
| 4881 |
test -z "$as_dir" && as_dir=. |
| 4882 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4883 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4884 |
ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" |
| 4885 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4886 |
break 2 |
| 4887 |
fi |
| 4888 |
done |
| 4889 |
done |
| 4890 |
IFS=$as_save_IFS |
| 4891 |
|
| 4892 |
;; |
| 4893 |
esac |
| 4894 |
fi |
| 4895 |
TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH |
| 4896 |
if test -n "$TEST_MINUS_S_SH"; then |
| 4897 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 |
| 4898 |
$as_echo "$TEST_MINUS_S_SH" >&6; } |
| 4899 |
else |
| 4900 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4901 |
$as_echo "no" >&6; } |
| 4902 |
fi |
| 4903 |
|
| 4904 |
|
| 4905 |
# Extract the first word of "ksh", so it can be a program name with args. |
| 4906 |
set dummy ksh; ac_word=$2 |
| 4907 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4908 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4909 |
if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : |
| 4910 |
$as_echo_n "(cached) " >&6 |
| 4911 |
else |
| 4912 |
case $TEST_MINUS_S_SH in |
| 4913 |
[\\/]* | ?:[\\/]*) |
| 4914 |
ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. |
| 4915 |
;; |
| 4916 |
*) |
| 4917 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4918 |
for as_dir in $PATH |
| 4919 |
do |
| 4920 |
IFS=$as_save_IFS |
| 4921 |
test -z "$as_dir" && as_dir=. |
| 4922 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4923 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4924 |
ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" |
| 4925 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4926 |
break 2 |
| 4927 |
fi |
| 4928 |
done |
| 4929 |
done |
| 4930 |
IFS=$as_save_IFS |
| 4931 |
|
| 4932 |
;; |
| 4933 |
esac |
| 4934 |
fi |
| 4935 |
TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH |
| 4936 |
if test -n "$TEST_MINUS_S_SH"; then |
| 4937 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 |
| 4938 |
$as_echo "$TEST_MINUS_S_SH" >&6; } |
| 4939 |
else |
| 4940 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4941 |
$as_echo "no" >&6; } |
| 4942 |
fi |
| 4943 |
|
| 4944 |
|
| 4945 |
# Extract the first word of "sh", so it can be a program name with args. |
| 4946 |
set dummy sh; ac_word=$2 |
| 4947 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4948 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4949 |
if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : |
| 4950 |
$as_echo_n "(cached) " >&6 |
| 4951 |
else |
| 4952 |
case $TEST_MINUS_S_SH in |
| 4953 |
[\\/]* | ?:[\\/]*) |
| 4954 |
ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. |
| 4955 |
;; |
| 4956 |
*) |
| 4957 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4958 |
for as_dir in $PATH |
| 4959 |
do |
| 4960 |
IFS=$as_save_IFS |
| 4961 |
test -z "$as_dir" && as_dir=. |
| 4962 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4963 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4964 |
ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" |
| 4965 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4966 |
break 2 |
| 4967 |
fi |
| 4968 |
done |
| 4969 |
done |
| 4970 |
IFS=$as_save_IFS |
| 4971 |
|
| 4972 |
;; |
| 4973 |
esac |
| 4974 |
fi |
| 4975 |
TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH |
| 4976 |
if test -n "$TEST_MINUS_S_SH"; then |
| 4977 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 |
| 4978 |
$as_echo "$TEST_MINUS_S_SH" >&6; } |
| 4979 |
else |
| 4980 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4981 |
$as_echo "no" >&6; } |
| 4982 |
fi |
| 4983 |
|
| 4984 |
|
| 4985 |
# Extract the first word of "sh", so it can be a program name with args. |
| 4986 |
set dummy sh; ac_word=$2 |
| 4987 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4988 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4989 |
if ${ac_cv_path_SH+:} false; then : |
| 4990 |
$as_echo_n "(cached) " >&6 |
| 4991 |
else |
| 4992 |
case $SH in |
| 4993 |
[\\/]* | ?:[\\/]*) |
| 4994 |
ac_cv_path_SH="$SH" # Let the user override the test with a path. |
| 4995 |
;; |
| 4996 |
*) |
| 4997 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4998 |
for as_dir in $PATH |
| 4999 |
do |
| 5000 |
IFS=$as_save_IFS |
| 5001 |
test -z "$as_dir" && as_dir=. |
| 5002 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5003 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5004 |
ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" |
| 5005 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5006 |
break 2 |
| 5007 |
fi |
| 5008 |
done |
| 5009 |
done |
| 5010 |
IFS=$as_save_IFS |
| 5011 |
|
| 5012 |
;; |
| 5013 |
esac |
| 5014 |
fi |
| 5015 |
SH=$ac_cv_path_SH |
| 5016 |
if test -n "$SH"; then |
| 5017 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 |
| 5018 |
$as_echo "$SH" >&6; } |
| 5019 |
else |
| 5020 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5021 |
$as_echo "no" >&6; } |
| 5022 |
fi |
| 5023 |
|
| 5024 |
|
| 5025 |
# Extract the first word of "groff", so it can be a program name with args. |
| 5026 |
set dummy groff; ac_word=$2 |
| 5027 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5028 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5029 |
if ${ac_cv_path_GROFF+:} false; then : |
| 5030 |
$as_echo_n "(cached) " >&6 |
| 5031 |
else |
| 5032 |
case $GROFF in |
| 5033 |
[\\/]* | ?:[\\/]*) |
| 5034 |
ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 5035 |
;; |
| 5036 |
*) |
| 5037 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5038 |
for as_dir in $PATH |
| 5039 |
do |
| 5040 |
IFS=$as_save_IFS |
| 5041 |
test -z "$as_dir" && as_dir=. |
| 5042 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5043 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5044 |
ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 5045 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5046 |
break 2 |
| 5047 |
fi |
| 5048 |
done |
| 5049 |
done |
| 5050 |
IFS=$as_save_IFS |
| 5051 |
|
| 5052 |
;; |
| 5053 |
esac |
| 5054 |
fi |
| 5055 |
GROFF=$ac_cv_path_GROFF |
| 5056 |
if test -n "$GROFF"; then |
| 5057 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 |
| 5058 |
$as_echo "$GROFF" >&6; } |
| 5059 |
else |
| 5060 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5061 |
$as_echo "no" >&6; } |
| 5062 |
fi |
| 5063 |
|
| 5064 |
|
| 5065 |
# Extract the first word of "nroff", so it can be a program name with args. |
| 5066 |
set dummy nroff; ac_word=$2 |
| 5067 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5068 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5069 |
if ${ac_cv_path_NROFF+:} false; then : |
| 5070 |
$as_echo_n "(cached) " >&6 |
| 5071 |
else |
| 5072 |
case $NROFF in |
| 5073 |
[\\/]* | ?:[\\/]*) |
| 5074 |
ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. |
| 5075 |
;; |
| 5076 |
*) |
| 5077 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5078 |
for as_dir in $PATH |
| 5079 |
do |
| 5080 |
IFS=$as_save_IFS |
| 5081 |
test -z "$as_dir" && as_dir=. |
| 5082 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5083 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5084 |
ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" |
| 5085 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5086 |
break 2 |
| 5087 |
fi |
| 5088 |
done |
| 5089 |
done |
| 5090 |
IFS=$as_save_IFS |
| 5091 |
|
| 5092 |
;; |
| 5093 |
esac |
| 5094 |
fi |
| 5095 |
NROFF=$ac_cv_path_NROFF |
| 5096 |
if test -n "$NROFF"; then |
| 5097 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 |
| 5098 |
$as_echo "$NROFF" >&6; } |
| 5099 |
else |
| 5100 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5101 |
$as_echo "no" >&6; } |
| 5102 |
fi |
| 5103 |
|
| 5104 |
|
| 5105 |
# Extract the first word of "mandoc", so it can be a program name with args. |
| 5106 |
set dummy mandoc; ac_word=$2 |
| 5107 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5108 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5109 |
if ${ac_cv_path_MANDOC+:} false; then : |
| 5110 |
$as_echo_n "(cached) " >&6 |
| 5111 |
else |
| 5112 |
case $MANDOC in |
| 5113 |
[\\/]* | ?:[\\/]*) |
| 5114 |
ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path. |
| 5115 |
;; |
| 5116 |
*) |
| 5117 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5118 |
for as_dir in $PATH |
| 5119 |
do |
| 5120 |
IFS=$as_save_IFS |
| 5121 |
test -z "$as_dir" && as_dir=. |
| 5122 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5123 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5124 |
ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext" |
| 5125 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5126 |
break 2 |
| 5127 |
fi |
| 5128 |
done |
| 5129 |
done |
| 5130 |
IFS=$as_save_IFS |
| 5131 |
|
| 5132 |
;; |
| 5133 |
esac |
| 5134 |
fi |
| 5135 |
MANDOC=$ac_cv_path_MANDOC |
| 5136 |
if test -n "$MANDOC"; then |
| 5137 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5 |
| 5138 |
$as_echo "$MANDOC" >&6; } |
| 5139 |
else |
| 5140 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5141 |
$as_echo "no" >&6; } |
| 5142 |
fi |
| 5143 |
|
| 5144 |
|
| 5145 |
TEST_SHELL=sh |
| 5146 |
|
| 5147 |
|
| 5148 |
if test "x$MANDOC" != "x" ; then |
| 5149 |
MANFMT="$MANDOC" |
| 5150 |
elif test "x$NROFF" != "x" ; then |
| 5151 |
MANFMT="$NROFF -mandoc" |
| 5152 |
elif test "x$GROFF" != "x" ; then |
| 5153 |
MANFMT="$GROFF -mandoc -Tascii" |
| 5154 |
else |
| 5155 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5 |
| 5156 |
$as_echo "$as_me: WARNING: no manpage formatted found" >&2;} |
| 5157 |
MANFMT="false" |
| 5158 |
fi |
| 5159 |
|
| 5160 |
|
| 5161 |
# Extract the first word of "groupadd", so it can be a program name with args. |
| 5162 |
set dummy groupadd; ac_word=$2 |
| 5163 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5164 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5165 |
if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then : |
| 5166 |
$as_echo_n "(cached) " >&6 |
| 5167 |
else |
| 5168 |
case $PATH_GROUPADD_PROG in |
| 5169 |
[\\/]* | ?:[\\/]*) |
| 5170 |
ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. |
| 5171 |
;; |
| 5172 |
*) |
| 5173 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5174 |
for as_dir in /usr/sbin${PATH_SEPARATOR}/etc |
| 5175 |
do |
| 5176 |
IFS=$as_save_IFS |
| 5177 |
test -z "$as_dir" && as_dir=. |
| 5178 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5179 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5180 |
ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" |
| 5181 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5182 |
break 2 |
| 5183 |
fi |
| 5184 |
done |
| 5185 |
done |
| 5186 |
IFS=$as_save_IFS |
| 5187 |
|
| 5188 |
test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" |
| 5189 |
;; |
| 5190 |
esac |
| 5191 |
fi |
| 5192 |
PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG |
| 5193 |
if test -n "$PATH_GROUPADD_PROG"; then |
| 5194 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5 |
| 5195 |
$as_echo "$PATH_GROUPADD_PROG" >&6; } |
| 5196 |
else |
| 5197 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5198 |
$as_echo "no" >&6; } |
| 5199 |
fi |
| 5200 |
|
| 5201 |
|
| 5202 |
# Extract the first word of "useradd", so it can be a program name with args. |
| 5203 |
set dummy useradd; ac_word=$2 |
| 5204 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5205 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5206 |
if ${ac_cv_path_PATH_USERADD_PROG+:} false; then : |
| 5207 |
$as_echo_n "(cached) " >&6 |
| 5208 |
else |
| 5209 |
case $PATH_USERADD_PROG in |
| 5210 |
[\\/]* | ?:[\\/]*) |
| 5211 |
ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. |
| 5212 |
;; |
| 5213 |
*) |
| 5214 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5215 |
for as_dir in /usr/sbin${PATH_SEPARATOR}/etc |
| 5216 |
do |
| 5217 |
IFS=$as_save_IFS |
| 5218 |
test -z "$as_dir" && as_dir=. |
| 5219 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5220 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5221 |
ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" |
| 5222 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5223 |
break 2 |
| 5224 |
fi |
| 5225 |
done |
| 5226 |
done |
| 5227 |
IFS=$as_save_IFS |
| 5228 |
|
| 5229 |
test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" |
| 5230 |
;; |
| 5231 |
esac |
| 5232 |
fi |
| 5233 |
PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG |
| 5234 |
if test -n "$PATH_USERADD_PROG"; then |
| 5235 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5 |
| 5236 |
$as_echo "$PATH_USERADD_PROG" >&6; } |
| 5237 |
else |
| 5238 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5239 |
$as_echo "no" >&6; } |
| 5240 |
fi |
| 5241 |
|
| 5242 |
|
| 5243 |
# Extract the first word of "pkgmk", so it can be a program name with args. |
| 5244 |
set dummy pkgmk; ac_word=$2 |
| 5245 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5246 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5247 |
if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then : |
| 5248 |
$as_echo_n "(cached) " >&6 |
| 5249 |
else |
| 5250 |
if test -n "$MAKE_PACKAGE_SUPPORTED"; then |
| 5251 |
ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. |
| 5252 |
else |
| 5253 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5254 |
for as_dir in $PATH |
| 5255 |
do |
| 5256 |
IFS=$as_save_IFS |
| 5257 |
test -z "$as_dir" && as_dir=. |
| 5258 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5259 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5260 |
ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" |
| 5261 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5262 |
break 2 |
| 5263 |
fi |
| 5264 |
done |
| 5265 |
done |
| 5266 |
IFS=$as_save_IFS |
| 5267 |
|
| 5268 |
test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" |
| 5269 |
fi |
| 5270 |
fi |
| 5271 |
MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED |
| 5272 |
if test -n "$MAKE_PACKAGE_SUPPORTED"; then |
| 5273 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5 |
| 5274 |
$as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; } |
| 5275 |
else |
| 5276 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5277 |
$as_echo "no" >&6; } |
| 5278 |
fi |
| 5279 |
|
| 5280 |
|
| 5281 |
if test -x /sbin/sh; then |
| 5282 |
STARTUP_SCRIPT_SHELL=/sbin/sh |
| 5283 |
|
| 5284 |
else |
| 5285 |
STARTUP_SCRIPT_SHELL=/bin/sh |
| 5286 |
|
| 5287 |
fi |
| 5288 |
|
| 5289 |
# System features |
| 5290 |
# Check whether --enable-largefile was given. |
| 5291 |
if test "${enable_largefile+set}" = set; then : |
| 5292 |
enableval=$enable_largefile; |
| 5293 |
fi |
| 5294 |
|
| 5295 |
if test "$enable_largefile" != no; then |
| 5296 |
|
| 5297 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
| 5298 |
$as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
| 5299 |
if ${ac_cv_sys_largefile_CC+:} false; then : |
| 5300 |
$as_echo_n "(cached) " >&6 |
| 5301 |
else |
| 5302 |
ac_cv_sys_largefile_CC=no |
| 5303 |
if test "$GCC" != yes; then |
| 5304 |
ac_save_CC=$CC |
| 5305 |
while :; do |
| 5306 |
# IRIX 6.2 and later do not support large files by default, |
| 5307 |
# so use the C compiler's -n32 option if that helps. |
| 5308 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5309 |
/* end confdefs.h. */ |
| 5310 |
#include <sys/types.h> |
| 5311 |
/* Check that off_t can represent 2**63 - 1 correctly. |
| 5312 |
We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5313 |
since some C++ compilers masquerading as C compilers |
| 5314 |
incorrectly reject 9223372036854775807. */ |
| 5315 |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5316 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5317 |
&& LARGE_OFF_T % 2147483647 == 1) |
| 5318 |
? 1 : -1]; |
| 5319 |
int |
| 5320 |
main () |
| 5321 |
{ |
| 5322 |
|
| 5323 |
; |
| 5324 |
return 0; |
| 5325 |
} |
| 5326 |
_ACEOF |
| 5327 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5328 |
break |
| 5329 |
fi |
| 5330 |
rm -f core conftest.err conftest.$ac_objext |
| 5331 |
CC="$CC -n32" |
| 5332 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5333 |
ac_cv_sys_largefile_CC=' -n32'; break |
| 5334 |
fi |
| 5335 |
rm -f core conftest.err conftest.$ac_objext |
| 5336 |
break |
| 5337 |
done |
| 5338 |
CC=$ac_save_CC |
| 5339 |
rm -f conftest.$ac_ext |
| 5340 |
fi |
| 5341 |
fi |
| 5342 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| 5343 |
$as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 5344 |
if test "$ac_cv_sys_largefile_CC" != no; then |
| 5345 |
CC=$CC$ac_cv_sys_largefile_CC |
| 5346 |
fi |
| 5347 |
|
| 5348 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 5349 |
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
| 5350 |
if ${ac_cv_sys_file_offset_bits+:} false; then : |
| 5351 |
$as_echo_n "(cached) " >&6 |
| 5352 |
else |
| 5353 |
while :; do |
| 5354 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5355 |
/* end confdefs.h. */ |
| 5356 |
#include <sys/types.h> |
| 5357 |
/* Check that off_t can represent 2**63 - 1 correctly. |
| 5358 |
We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5359 |
since some C++ compilers masquerading as C compilers |
| 5360 |
incorrectly reject 9223372036854775807. */ |
| 5361 |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5362 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5363 |
&& LARGE_OFF_T % 2147483647 == 1) |
| 5364 |
? 1 : -1]; |
| 5365 |
int |
| 5366 |
main () |
| 5367 |
{ |
| 5368 |
|
| 5369 |
; |
| 5370 |
return 0; |
| 5371 |
} |
| 5372 |
_ACEOF |
| 5373 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5374 |
ac_cv_sys_file_offset_bits=no; break |
| 5375 |
fi |
| 5376 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5377 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5378 |
/* end confdefs.h. */ |
| 5379 |
#define _FILE_OFFSET_BITS 64 |
| 5380 |
#include <sys/types.h> |
| 5381 |
/* Check that off_t can represent 2**63 - 1 correctly. |
| 5382 |
We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5383 |
since some C++ compilers masquerading as C compilers |
| 5384 |
incorrectly reject 9223372036854775807. */ |
| 5385 |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5386 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5387 |
&& LARGE_OFF_T % 2147483647 == 1) |
| 5388 |
? 1 : -1]; |
| 5389 |
int |
| 5390 |
main () |
| 5391 |
{ |
| 5392 |
|
| 5393 |
; |
| 5394 |
return 0; |
| 5395 |
} |
| 5396 |
_ACEOF |
| 5397 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5398 |
ac_cv_sys_file_offset_bits=64; break |
| 5399 |
fi |
| 5400 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5401 |
ac_cv_sys_file_offset_bits=unknown |
| 5402 |
break |
| 5403 |
done |
| 5404 |
fi |
| 5405 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
| 5406 |
$as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 5407 |
case $ac_cv_sys_file_offset_bits in #( |
| 5408 |
no | unknown) ;; |
| 5409 |
*) |
| 5410 |
cat >>confdefs.h <<_ACEOF |
| 5411 |
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 5412 |
_ACEOF |
| 5413 |
;; |
| 5414 |
esac |
| 5415 |
rm -rf conftest* |
| 5416 |
if test $ac_cv_sys_file_offset_bits = unknown; then |
| 5417 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
| 5418 |
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
| 5419 |
if ${ac_cv_sys_large_files+:} false; then : |
| 5420 |
$as_echo_n "(cached) " >&6 |
| 5421 |
else |
| 5422 |
while :; do |
| 5423 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5424 |
/* end confdefs.h. */ |
| 5425 |
#include <sys/types.h> |
| 5426 |
/* Check that off_t can represent 2**63 - 1 correctly. |
| 5427 |
We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5428 |
since some C++ compilers masquerading as C compilers |
| 5429 |
incorrectly reject 9223372036854775807. */ |
| 5430 |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5431 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5432 |
&& LARGE_OFF_T % 2147483647 == 1) |
| 5433 |
? 1 : -1]; |
| 5434 |
int |
| 5435 |
main () |
| 5436 |
{ |
| 5437 |
|
| 5438 |
; |
| 5439 |
return 0; |
| 5440 |
} |
| 5441 |
_ACEOF |
| 5442 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5443 |
ac_cv_sys_large_files=no; break |
| 5444 |
fi |
| 5445 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5446 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5447 |
/* end confdefs.h. */ |
| 5448 |
#define _LARGE_FILES 1 |
| 5449 |
#include <sys/types.h> |
| 5450 |
/* Check that off_t can represent 2**63 - 1 correctly. |
| 5451 |
We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 5452 |
since some C++ compilers masquerading as C compilers |
| 5453 |
incorrectly reject 9223372036854775807. */ |
| 5454 |
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 5455 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 5456 |
&& LARGE_OFF_T % 2147483647 == 1) |
| 5457 |
? 1 : -1]; |
| 5458 |
int |
| 5459 |
main () |
| 5460 |
{ |
| 5461 |
|
| 5462 |
; |
| 5463 |
return 0; |
| 5464 |
} |
| 5465 |
_ACEOF |
| 5466 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5467 |
ac_cv_sys_large_files=1; break |
| 5468 |
fi |
| 5469 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5470 |
ac_cv_sys_large_files=unknown |
| 5471 |
break |
| 5472 |
done |
| 5473 |
fi |
| 5474 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| 5475 |
$as_echo "$ac_cv_sys_large_files" >&6; } |
| 5476 |
case $ac_cv_sys_large_files in #( |
| 5477 |
no | unknown) ;; |
| 5478 |
*) |
| 5479 |
cat >>confdefs.h <<_ACEOF |
| 5480 |
#define _LARGE_FILES $ac_cv_sys_large_files |
| 5481 |
_ACEOF |
| 5482 |
;; |
| 5483 |
esac |
| 5484 |
rm -rf conftest* |
| 5485 |
fi |
| 5486 |
|
| 5487 |
|
| 5488 |
fi |
| 5489 |
|
| 5490 |
|
| 5491 |
if test -z "$AR" ; then |
| 5492 |
as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5 |
| 5493 |
fi |
| 5494 |
|
| 5495 |
# Use LOGIN_PROGRAM from environment if possible |
| 5496 |
if test ! -z "$LOGIN_PROGRAM" ; then |
| 5497 |
|
| 5498 |
cat >>confdefs.h <<_ACEOF |
| 5499 |
#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" |
| 5500 |
_ACEOF |
| 5501 |
|
| 5502 |
else |
| 5503 |
# Search for login |
| 5504 |
# Extract the first word of "login", so it can be a program name with args. |
| 5505 |
set dummy login; ac_word=$2 |
| 5506 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5507 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5508 |
if ${ac_cv_path_LOGIN_PROGRAM_FALLBACK+:} false; then : |
| 5509 |
$as_echo_n "(cached) " >&6 |
| 5510 |
else |
| 5511 |
case $LOGIN_PROGRAM_FALLBACK in |
| 5512 |
[\\/]* | ?:[\\/]*) |
| 5513 |
ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. |
| 5514 |
;; |
| 5515 |
*) |
| 5516 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5517 |
for as_dir in $PATH |
| 5518 |
do |
| 5519 |
IFS=$as_save_IFS |
| 5520 |
test -z "$as_dir" && as_dir=. |
| 5521 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5522 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5523 |
ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" |
| 5524 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5525 |
break 2 |
| 5526 |
fi |
| 5527 |
done |
| 5528 |
done |
| 5529 |
IFS=$as_save_IFS |
| 5530 |
|
| 5531 |
;; |
| 5532 |
esac |
| 5533 |
fi |
| 5534 |
LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK |
| 5535 |
if test -n "$LOGIN_PROGRAM_FALLBACK"; then |
| 5536 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOGIN_PROGRAM_FALLBACK" >&5 |
| 5537 |
$as_echo "$LOGIN_PROGRAM_FALLBACK" >&6; } |
| 5538 |
else |
| 5539 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5540 |
$as_echo "no" >&6; } |
| 5541 |
fi |
| 5542 |
|
| 5543 |
|
| 5544 |
if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then |
| 5545 |
cat >>confdefs.h <<_ACEOF |
| 5546 |
#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" |
| 5547 |
_ACEOF |
| 5548 |
|
| 5549 |
fi |
| 5550 |
fi |
| 5551 |
|
| 5552 |
# Extract the first word of "passwd", so it can be a program name with args. |
| 5553 |
set dummy passwd; ac_word=$2 |
| 5554 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5555 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5556 |
if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then : |
| 5557 |
$as_echo_n "(cached) " >&6 |
| 5558 |
else |
| 5559 |
case $PATH_PASSWD_PROG in |
| 5560 |
[\\/]* | ?:[\\/]*) |
| 5561 |
ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. |
| 5562 |
;; |
| 5563 |
*) |
| 5564 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5565 |
for as_dir in $PATH |
| 5566 |
do |
| 5567 |
IFS=$as_save_IFS |
| 5568 |
test -z "$as_dir" && as_dir=. |
| 5569 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5570 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5571 |
ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" |
| 5572 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5573 |
break 2 |
| 5574 |
fi |
| 5575 |
done |
| 5576 |
done |
| 5577 |
IFS=$as_save_IFS |
| 5578 |
|
| 5579 |
;; |
| 5580 |
esac |
| 5581 |
fi |
| 5582 |
PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG |
| 5583 |
if test -n "$PATH_PASSWD_PROG"; then |
| 5584 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5 |
| 5585 |
$as_echo "$PATH_PASSWD_PROG" >&6; } |
| 5586 |
else |
| 5587 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5588 |
$as_echo "no" >&6; } |
| 5589 |
fi |
| 5590 |
|
| 5591 |
|
| 5592 |
if test ! -z "$PATH_PASSWD_PROG" ; then |
| 5593 |
|
| 5594 |
cat >>confdefs.h <<_ACEOF |
| 5595 |
#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" |
| 5596 |
_ACEOF |
| 5597 |
|
| 5598 |
fi |
| 5599 |
|
| 5600 |
if test -z "$LD" ; then |
| 5601 |
LD=$CC |
| 5602 |
fi |
| 5603 |
|
| 5604 |
|
| 5605 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 5606 |
$as_echo_n "checking for inline... " >&6; } |
| 5607 |
if ${ac_cv_c_inline+:} false; then : |
| 5608 |
$as_echo_n "(cached) " >&6 |
| 5609 |
else |
| 5610 |
ac_cv_c_inline=no |
| 5611 |
for ac_kw in inline __inline__ __inline; do |
| 5612 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5613 |
/* end confdefs.h. */ |
| 5614 |
#ifndef __cplusplus |
| 5615 |
typedef int foo_t; |
| 5616 |
static $ac_kw foo_t static_foo () {return 0; } |
| 5617 |
$ac_kw foo_t foo () {return 0; } |
| 5618 |
#endif |
| 5619 |
|
| 5620 |
_ACEOF |
| 5621 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5622 |
ac_cv_c_inline=$ac_kw |
| 5623 |
fi |
| 5624 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5625 |
test "$ac_cv_c_inline" != no && break |
| 5626 |
done |
| 5627 |
|
| 5628 |
fi |
| 5629 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 5630 |
$as_echo "$ac_cv_c_inline" >&6; } |
| 5631 |
|
| 5632 |
case $ac_cv_c_inline in |
| 5633 |
inline | yes) ;; |
| 5634 |
*) |
| 5635 |
case $ac_cv_c_inline in |
| 5636 |
no) ac_val=;; |
| 5637 |
*) ac_val=$ac_cv_c_inline;; |
| 5638 |
esac |
| 5639 |
cat >>confdefs.h <<_ACEOF |
| 5640 |
#ifndef __cplusplus |
| 5641 |
#define inline $ac_val |
| 5642 |
#endif |
| 5643 |
_ACEOF |
| 5644 |
;; |
| 5645 |
esac |
| 5646 |
|
| 5647 |
|
| 5648 |
ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> |
| 5649 |
" |
| 5650 |
if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : |
| 5651 |
have_llong_max=1 |
| 5652 |
fi |
| 5653 |
|
| 5654 |
ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" " |
| 5655 |
#include <sys/types.h> |
| 5656 |
#include <sys/param.h> |
| 5657 |
#include <dev/systrace.h> |
| 5658 |
|
| 5659 |
" |
| 5660 |
if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then : |
| 5661 |
have_systr_policy_kill=1 |
| 5662 |
fi |
| 5663 |
|
| 5664 |
ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" " |
| 5665 |
#include <sys/types.h> |
| 5666 |
#include <sys/resource.h> |
| 5667 |
|
| 5668 |
" |
| 5669 |
if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then : |
| 5670 |
|
| 5671 |
$as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h |
| 5672 |
|
| 5673 |
fi |
| 5674 |
|
| 5675 |
ac_fn_c_check_decl "$LINENO" "PR_SET_NO_NEW_PRIVS" "ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" " |
| 5676 |
#include <sys/types.h> |
| 5677 |
#include <linux/prctl.h> |
| 5678 |
|
| 5679 |
" |
| 5680 |
if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then : |
| 5681 |
have_linux_no_new_privs=1 |
| 5682 |
fi |
| 5683 |
|
| 5684 |
|
| 5685 |
openssl=yes |
| 5686 |
ssh1=no |
| 5687 |
|
| 5688 |
# Check whether --with-openssl was given. |
| 5689 |
if test "${with_openssl+set}" = set; then : |
| 5690 |
withval=$with_openssl; if test "x$withval" = "xno" ; then |
| 5691 |
openssl=no |
| 5692 |
ssh1=no |
| 5693 |
fi |
| 5694 |
|
| 5695 |
|
| 5696 |
fi |
| 5697 |
|
| 5698 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL will be used for cryptography" >&5 |
| 5699 |
$as_echo_n "checking whether OpenSSL will be used for cryptography... " >&6; } |
| 5700 |
if test "x$openssl" = "xyes" ; then |
| 5701 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5702 |
$as_echo "yes" >&6; } |
| 5703 |
|
| 5704 |
cat >>confdefs.h <<_ACEOF |
| 5705 |
#define WITH_OPENSSL 1 |
| 5706 |
_ACEOF |
| 5707 |
|
| 5708 |
else |
| 5709 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5710 |
$as_echo "no" >&6; } |
| 5711 |
fi |
| 5712 |
|
| 5713 |
|
| 5714 |
# Check whether --with-ssh1 was given. |
| 5715 |
if test "${with_ssh1+set}" = set; then : |
| 5716 |
withval=$with_ssh1; |
| 5717 |
if test "x$withval" = "xyes" ; then |
| 5718 |
if test "x$openssl" = "xno" ; then |
| 5719 |
as_fn_error $? "Cannot enable SSH protocol 1 with OpenSSL disabled" "$LINENO" 5 |
| 5720 |
fi |
| 5721 |
ssh1=yes |
| 5722 |
elif test "x$withval" = "xno" ; then |
| 5723 |
ssh1=no |
| 5724 |
else |
| 5725 |
as_fn_error $? "unknown --with-ssh1 argument" "$LINENO" 5 |
| 5726 |
fi |
| 5727 |
|
| 5728 |
|
| 5729 |
fi |
| 5730 |
|
| 5731 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SSH protocol 1 support is enabled" >&5 |
| 5732 |
$as_echo_n "checking whether SSH protocol 1 support is enabled... " >&6; } |
| 5733 |
if test "x$ssh1" = "xyes" ; then |
| 5734 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5735 |
$as_echo "yes" >&6; } |
| 5736 |
|
| 5737 |
cat >>confdefs.h <<_ACEOF |
| 5738 |
#define WITH_SSH1 1 |
| 5739 |
_ACEOF |
| 5740 |
|
| 5741 |
else |
| 5742 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5743 |
$as_echo "no" >&6; } |
| 5744 |
fi |
| 5745 |
|
| 5746 |
use_stack_protector=1 |
| 5747 |
use_toolchain_hardening=1 |
| 5748 |
|
| 5749 |
# Check whether --with-stackprotect was given. |
| 5750 |
if test "${with_stackprotect+set}" = set; then : |
| 5751 |
withval=$with_stackprotect; |
| 5752 |
if test "x$withval" = "xno"; then |
| 5753 |
use_stack_protector=0 |
| 5754 |
fi |
| 5755 |
fi |
| 5756 |
|
| 5757 |
|
| 5758 |
# Check whether --with-hardening was given. |
| 5759 |
if test "${with_hardening+set}" = set; then : |
| 5760 |
withval=$with_hardening; |
| 5761 |
if test "x$withval" = "xno"; then |
| 5762 |
use_toolchain_hardening=0 |
| 5763 |
fi |
| 5764 |
fi |
| 5765 |
|
| 5766 |
|
| 5767 |
# We use -Werror for the tests only so that we catch warnings like "this is |
| 5768 |
# on by default" for things like -fPIE. |
| 5769 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 |
| 5770 |
$as_echo_n "checking if $CC supports -Werror... " >&6; } |
| 5771 |
saved_CFLAGS="$CFLAGS" |
| 5772 |
CFLAGS="$CFLAGS -Werror" |
| 5773 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5774 |
/* end confdefs.h. */ |
| 5775 |
int main(void) { return 0; } |
| 5776 |
_ACEOF |
| 5777 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5778 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5779 |
$as_echo "yes" >&6; } |
| 5780 |
WERROR="-Werror" |
| 5781 |
else |
| 5782 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5783 |
$as_echo "no" >&6; } |
| 5784 |
WERROR="" |
| 5785 |
|
| 5786 |
fi |
| 5787 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5788 |
CFLAGS="$saved_CFLAGS" |
| 5789 |
|
| 5790 |
if test "$GCC" = "yes" || test "$GCC" = "egcs"; then |
| 5791 |
{ |
| 5792 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Qunused-arguments" >&5 |
| 5793 |
$as_echo_n "checking if $CC supports compile flag -Qunused-arguments... " >&6; } |
| 5794 |
saved_CFLAGS="$CFLAGS" |
| 5795 |
CFLAGS="$CFLAGS $WERROR -Qunused-arguments" |
| 5796 |
_define_flag="" |
| 5797 |
test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments" |
| 5798 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5799 |
/* end confdefs.h. */ |
| 5800 |
|
| 5801 |
#include <stdlib.h> |
| 5802 |
#include <stdio.h> |
| 5803 |
int main(int argc, char **argv) { |
| 5804 |
/* Some math to catch -ftrapv problems in the toolchain */ |
| 5805 |
int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 5806 |
float l = i * 2.1; |
| 5807 |
double m = l / 0.5; |
| 5808 |
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 5809 |
printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 5810 |
exit(0); |
| 5811 |
} |
| 5812 |
|
| 5813 |
_ACEOF |
| 5814 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5815 |
|
| 5816 |
if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 5817 |
then |
| 5818 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5819 |
$as_echo "no" >&6; } |
| 5820 |
CFLAGS="$saved_CFLAGS" |
| 5821 |
else |
| 5822 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5823 |
$as_echo "yes" >&6; } |
| 5824 |
CFLAGS="$saved_CFLAGS $_define_flag" |
| 5825 |
fi |
| 5826 |
else |
| 5827 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5828 |
$as_echo "no" >&6; } |
| 5829 |
CFLAGS="$saved_CFLAGS" |
| 5830 |
|
| 5831 |
fi |
| 5832 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5833 |
} |
| 5834 |
{ |
| 5835 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunknown-warning-option" >&5 |
| 5836 |
$as_echo_n "checking if $CC supports compile flag -Wunknown-warning-option... " >&6; } |
| 5837 |
saved_CFLAGS="$CFLAGS" |
| 5838 |
CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option" |
| 5839 |
_define_flag="" |
| 5840 |
test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option" |
| 5841 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5842 |
/* end confdefs.h. */ |
| 5843 |
|
| 5844 |
#include <stdlib.h> |
| 5845 |
#include <stdio.h> |
| 5846 |
int main(int argc, char **argv) { |
| 5847 |
/* Some math to catch -ftrapv problems in the toolchain */ |
| 5848 |
int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 5849 |
float l = i * 2.1; |
| 5850 |
double m = l / 0.5; |
| 5851 |
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 5852 |
printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 5853 |
exit(0); |
| 5854 |
} |
| 5855 |
|
| 5856 |
_ACEOF |
| 5857 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5858 |
|
| 5859 |
if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 5860 |
then |
| 5861 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5862 |
$as_echo "no" >&6; } |
| 5863 |
CFLAGS="$saved_CFLAGS" |
| 5864 |
else |
| 5865 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5866 |
$as_echo "yes" >&6; } |
| 5867 |
CFLAGS="$saved_CFLAGS $_define_flag" |
| 5868 |
fi |
| 5869 |
else |
| 5870 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5871 |
$as_echo "no" >&6; } |
| 5872 |
CFLAGS="$saved_CFLAGS" |
| 5873 |
|
| 5874 |
fi |
| 5875 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5876 |
} |
| 5877 |
{ |
| 5878 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wall" >&5 |
| 5879 |
$as_echo_n "checking if $CC supports compile flag -Wall... " >&6; } |
| 5880 |
saved_CFLAGS="$CFLAGS" |
| 5881 |
CFLAGS="$CFLAGS $WERROR -Wall" |
| 5882 |
_define_flag="" |
| 5883 |
test "x$_define_flag" = "x" && _define_flag="-Wall" |
| 5884 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5885 |
/* end confdefs.h. */ |
| 5886 |
|
| 5887 |
#include <stdlib.h> |
| 5888 |
#include <stdio.h> |
| 5889 |
int main(int argc, char **argv) { |
| 5890 |
/* Some math to catch -ftrapv problems in the toolchain */ |
| 5891 |
int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 5892 |
float l = i * 2.1; |
| 5893 |
double m = l / 0.5; |
| 5894 |
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 5895 |
printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 5896 |
exit(0); |
| 5897 |
} |
| 5898 |
|
| 5899 |
_ACEOF |
| 5900 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5901 |
|
| 5902 |
if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 5903 |
then |
| 5904 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5905 |
$as_echo "no" >&6; } |
| 5906 |
CFLAGS="$saved_CFLAGS" |
| 5907 |
else |
| 5908 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5909 |
$as_echo "yes" >&6; } |
| 5910 |
CFLAGS="$saved_CFLAGS $_define_flag" |
| 5911 |
fi |
| 5912 |
else |
| 5913 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5914 |
$as_echo "no" >&6; } |
| 5915 |
CFLAGS="$saved_CFLAGS" |
| 5916 |
|
| 5917 |
fi |
| 5918 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5919 |
} |
| 5920 |
{ |
| 5921 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-arith" >&5 |
| 5922 |
$as_echo_n "checking if $CC supports compile flag -Wpointer-arith... " >&6; } |
| 5923 |
saved_CFLAGS="$CFLAGS" |
| 5924 |
CFLAGS="$CFLAGS $WERROR -Wpointer-arith" |
| 5925 |
_define_flag="" |
| 5926 |
test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith" |
| 5927 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5928 |
/* end confdefs.h. */ |
| 5929 |
|
| 5930 |
#include <stdlib.h> |
| 5931 |
#include <stdio.h> |
| 5932 |
int main(int argc, char **argv) { |
| 5933 |
/* Some math to catch -ftrapv problems in the toolchain */ |
| 5934 |
int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 5935 |
float l = i * 2.1; |
| 5936 |
double m = l / 0.5; |
| 5937 |
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 5938 |
printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 5939 |
exit(0); |
| 5940 |
} |
| 5941 |
|
| 5942 |
_ACEOF |
| 5943 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5944 |
|
| 5945 |
if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 5946 |
then |
| 5947 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5948 |
$as_echo "no" >&6; } |
| 5949 |
CFLAGS="$saved_CFLAGS" |
| 5950 |
else |
| 5951 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5952 |
$as_echo "yes" >&6; } |
| 5953 |
CFLAGS="$saved_CFLAGS $_define_flag" |
| 5954 |
fi |
| 5955 |
else |
| 5956 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5957 |
$as_echo "no" >&6; } |
| 5958 |
CFLAGS="$saved_CFLAGS" |
| 5959 |
|
| 5960 |
fi |
| 5961 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5962 |
} |
| 5963 |
{ |
| 5964 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wuninitialized" >&5 |
| 5965 |
$as_echo_n "checking if $CC supports compile flag -Wuninitialized... " >&6; } |
| 5966 |
saved_CFLAGS="$CFLAGS" |
| 5967 |
CFLAGS="$CFLAGS $WERROR -Wuninitialized" |
| 5968 |
_define_flag="" |
| 5969 |
test "x$_define_flag" = "x" && _define_flag="-Wuninitialized" |
| 5970 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5971 |
/* end confdefs.h. */ |
| 5972 |
|
| 5973 |
#include <stdlib.h> |
| 5974 |
#include <stdio.h> |
| 5975 |
int main(int argc, char **argv) { |
| 5976 |
/* Some math to catch -ftrapv problems in the toolchain */ |
| 5977 |
int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 5978 |
float l = i * 2.1; |
| 5979 |
double m = l / 0.5; |
| 5980 |
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 5981 |
printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 5982 |
exit(0); |
| 5983 |
} |
| 5984 |
|
| 5985 |
_ACEOF |
| 5986 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 5987 |
|
| 5988 |
if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 5989 |
then |
| 5990 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5991 |
$as_echo "no" >&6; } |
| 5992 |
CFLAGS="$saved_CFLAGS" |
| 5993 |
else |
| 5994 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5995 |
$as_echo "yes" >&6; } |
| 5996 |
CFLAGS="$saved_CFLAGS $_define_flag" |
| 5997 |
fi |
| 5998 |
else |
| 5999 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6000 |
$as_echo "no" >&6; } |
| 6001 |
CFLAGS="$saved_CFLAGS" |
| 6002 |
|
| 6003 |
fi |
| 6004 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6005 |
} |
| 6006 |
{ |
| 6007 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsign-compare" >&5 |
| 6008 |
$as_echo_n "checking if $CC supports compile flag -Wsign-compare... " >&6; } |
| 6009 |
saved_CFLAGS="$CFLAGS" |
| 6010 |
CFLAGS="$CFLAGS $WERROR -Wsign-compare" |
| 6011 |
_define_flag="" |
| 6012 |
test "x$_define_flag" = "x" && _define_flag="-Wsign-compare" |
| 6013 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6014 |
/* end confdefs.h. */ |
| 6015 |
|
| 6016 |
#include <stdlib.h> |
| 6017 |
#include <stdio.h> |
| 6018 |
int main(int argc, char **argv) { |
| 6019 |
/* Some math to catch -ftrapv problems in the toolchain */ |
| 6020 |
int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 6021 |
float l = i * 2.1; |
| 6022 |
double m = l / 0.5; |
| 6023 |
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 6024 |
printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 6025 |
exit(0); |
| 6026 |
} |
| 6027 |
|
| 6028 |
_ACEOF |
| 6029 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 6030 |
|
| 6031 |
if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 6032 |
then |
| 6033 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6034 |
$as_echo "no" >&6; } |
| 6035 |
CFLAGS="$saved_CFLAGS" |
| 6036 |
else |
| 6037 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6038 |
$as_echo "yes" >&6; } |
| 6039 |
CFLAGS="$saved_CFLAGS $_define_flag" |
| 6040 |
fi |
| 6041 |
else |
| 6042 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6043 |
$as_echo "no" >&6; } |
| 6044 |
CFLAGS="$saved_CFLAGS" |
| 6045 |
|
| 6046 |
fi |
| 6047 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6048 |
} |
| 6049 |
{ |
| 6050 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wformat-security" >&5 |
| 6051 |
$as_echo_n "checking if $CC supports compile flag -Wformat-security... " >&6; } |
| 6052 |
saved_CFLAGS="$CFLAGS" |
| 6053 |
CFLAGS="$CFLAGS $WERROR -Wformat-security" |
| 6054 |
_define_flag="" |
| 6055 |
test "x$_define_flag" = "x" && _define_flag="-Wformat-security" |
| 6056 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6057 |
/* end confdefs.h. */ |
| 6058 |
|
| 6059 |
#include <stdlib.h> |
| 6060 |
#include <stdio.h> |
| 6061 |
int main(int argc, char **argv) { |
| 6062 |
/* Some math to catch -ftrapv problems in the toolchain */ |
| 6063 |
int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 6064 |
float l = i * 2.1; |
| 6065 |
double m = l / 0.5; |
| 6066 |
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 6067 |
printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 6068 |
exit(0); |
| 6069 |
} |
| 6070 |
|
| 6071 |
_ACEOF |
| 6072 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 6073 |
|
| 6074 |
if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 6075 |
then |
| 6076 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6077 |
$as_echo "no" >&6; } |
| 6078 |
CFLAGS="$saved_CFLAGS" |
| 6079 |
else |
| 6080 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6081 |
$as_echo "yes" >&6; } |
| 6082 |
CFLAGS="$saved_CFLAGS $_define_flag" |
| 6083 |
fi |
| 6084 |
else |
| 6085 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6086 |
$as_echo "no" >&6; } |
| 6087 |
CFLAGS="$saved_CFLAGS" |
| 6088 |
|
| 6089 |
fi |
| 6090 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6091 |
} |
| 6092 |
{ |
| 6093 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5 |
| 6094 |
$as_echo_n "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... " >&6; } |
| 6095 |
saved_CFLAGS="$CFLAGS" |
| 6096 |
CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess" |
| 6097 |
_define_flag="" |
| 6098 |
test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess" |
| 6099 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6100 |
/* end confdefs.h. */ |
| 6101 |
|
| 6102 |
#include <stdlib.h> |
| 6103 |
#include <stdio.h> |
| 6104 |
int main(int argc, char **argv) { |
| 6105 |
/* Some math to catch -ftrapv problems in the toolchain */ |
| 6106 |
int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 6107 |
float l = i * 2.1; |
| 6108 |
double m = l / 0.5; |
| 6109 |
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 6110 |
printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 6111 |
exit(0); |
| 6112 |
} |
| 6113 |
|
| 6114 |
_ACEOF |
| 6115 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 6116 |
|
| 6117 |
if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 6118 |
then |
| 6119 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6120 |
$as_echo "no" >&6; } |
| 6121 |
CFLAGS="$saved_CFLAGS" |
| 6122 |
else |
| 6123 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6124 |
$as_echo "yes" >&6; } |
| 6125 |
CFLAGS="$saved_CFLAGS $_define_flag" |
| 6126 |
fi |
| 6127 |
else |
| 6128 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6129 |
$as_echo "no" >&6; } |
| 6130 |
CFLAGS="$saved_CFLAGS" |
| 6131 |
|
| 6132 |
fi |
| 6133 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6134 |
} |
| 6135 |
{ |
| 6136 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-sign" >&5 |
| 6137 |
$as_echo_n "checking if $CC supports compile flag -Wpointer-sign... " >&6; } |
| 6138 |
saved_CFLAGS="$CFLAGS" |
| 6139 |
CFLAGS="$CFLAGS $WERROR -Wpointer-sign" |
| 6140 |
_define_flag="-Wno-pointer-sign" |
| 6141 |
test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign" |
| 6142 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6143 |
/* end confdefs.h. */ |
| 6144 |
|
| 6145 |
#include <stdlib.h> |
| 6146 |
#include <stdio.h> |
| 6147 |
int main(int argc, char **argv) { |
| 6148 |
/* Some math to catch -ftrapv problems in the toolchain */ |
| 6149 |
int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 6150 |
float l = i * 2.1; |
| 6151 |
double m = l / 0.5; |
| 6152 |
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 6153 |
printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 6154 |
exit(0); |
| 6155 |
} |
| 6156 |
|
| 6157 |
_ACEOF |
| 6158 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 6159 |
|
| 6160 |
if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 6161 |
then |
| 6162 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6163 |
$as_echo "no" >&6; } |
| 6164 |
CFLAGS="$saved_CFLAGS" |
| 6165 |
else |
| 6166 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6167 |
$as_echo "yes" >&6; } |
| 6168 |
CFLAGS="$saved_CFLAGS $_define_flag" |
| 6169 |
fi |
| 6170 |
else |
| 6171 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6172 |
$as_echo "no" >&6; } |
| 6173 |
CFLAGS="$saved_CFLAGS" |
| 6174 |
|
| 6175 |
fi |
| 6176 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6177 |
} |
| 6178 |
{ |
| 6179 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunused-result" >&5 |
| 6180 |
$as_echo_n "checking if $CC supports compile flag -Wunused-result... " >&6; } |
| 6181 |
saved_CFLAGS="$CFLAGS" |
| 6182 |
CFLAGS="$CFLAGS $WERROR -Wunused-result" |
| 6183 |
_define_flag="-Wno-unused-result" |
| 6184 |
test "x$_define_flag" = "x" && _define_flag="-Wunused-result" |
| 6185 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6186 |
/* end confdefs.h. */ |
| 6187 |
|
| 6188 |
#include <stdlib.h> |
| 6189 |
#include <stdio.h> |
| 6190 |
int main(int argc, char **argv) { |
| 6191 |
/* Some math to catch -ftrapv problems in the toolchain */ |
| 6192 |
int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 6193 |
float l = i * 2.1; |
| 6194 |
double m = l / 0.5; |
| 6195 |
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 6196 |
printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 6197 |
exit(0); |
| 6198 |
} |
| 6199 |
|
| 6200 |
_ACEOF |
| 6201 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 6202 |
|
| 6203 |
if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 6204 |
then |
| 6205 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6206 |
$as_echo "no" >&6; } |
| 6207 |
CFLAGS="$saved_CFLAGS" |
| 6208 |
else |
| 6209 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6210 |
$as_echo "yes" >&6; } |
| 6211 |
CFLAGS="$saved_CFLAGS $_define_flag" |
| 6212 |
fi |
| 6213 |
else |
| 6214 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6215 |
$as_echo "no" >&6; } |
| 6216 |
CFLAGS="$saved_CFLAGS" |
| 6217 |
|
| 6218 |
fi |
| 6219 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6220 |
} |
| 6221 |
{ |
| 6222 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fno-strict-aliasing" >&5 |
| 6223 |
$as_echo_n "checking if $CC supports compile flag -fno-strict-aliasing... " >&6; } |
| 6224 |
saved_CFLAGS="$CFLAGS" |
| 6225 |
CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing" |
| 6226 |
_define_flag="" |
| 6227 |
test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing" |
| 6228 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6229 |
/* end confdefs.h. */ |
| 6230 |
|
| 6231 |
#include <stdlib.h> |
| 6232 |
#include <stdio.h> |
| 6233 |
int main(int argc, char **argv) { |
| 6234 |
/* Some math to catch -ftrapv problems in the toolchain */ |
| 6235 |
int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 6236 |
float l = i * 2.1; |
| 6237 |
double m = l / 0.5; |
| 6238 |
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 6239 |
printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 6240 |
exit(0); |
| 6241 |
} |
| 6242 |
|
| 6243 |
_ACEOF |
| 6244 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 6245 |
|
| 6246 |
if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 6247 |
then |
| 6248 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6249 |
$as_echo "no" >&6; } |
| 6250 |
CFLAGS="$saved_CFLAGS" |
| 6251 |
else |
| 6252 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6253 |
$as_echo "yes" >&6; } |
| 6254 |
CFLAGS="$saved_CFLAGS $_define_flag" |
| 6255 |
fi |
| 6256 |
else |
| 6257 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6258 |
$as_echo "no" >&6; } |
| 6259 |
CFLAGS="$saved_CFLAGS" |
| 6260 |
|
| 6261 |
fi |
| 6262 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6263 |
} |
| 6264 |
{ |
| 6265 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5 |
| 6266 |
$as_echo_n "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... " >&6; } |
| 6267 |
saved_CFLAGS="$CFLAGS" |
| 6268 |
CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2" |
| 6269 |
_define_flag="" |
| 6270 |
test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2" |
| 6271 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6272 |
/* end confdefs.h. */ |
| 6273 |
|
| 6274 |
#include <stdlib.h> |
| 6275 |
#include <stdio.h> |
| 6276 |
int main(int argc, char **argv) { |
| 6277 |
/* Some math to catch -ftrapv problems in the toolchain */ |
| 6278 |
int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 6279 |
float l = i * 2.1; |
| 6280 |
double m = l / 0.5; |
| 6281 |
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 6282 |
printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 6283 |
exit(0); |
| 6284 |
} |
| 6285 |
|
| 6286 |
_ACEOF |
| 6287 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 6288 |
|
| 6289 |
if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 6290 |
then |
| 6291 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6292 |
$as_echo "no" >&6; } |
| 6293 |
CFLAGS="$saved_CFLAGS" |
| 6294 |
else |
| 6295 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6296 |
$as_echo "yes" >&6; } |
| 6297 |
CFLAGS="$saved_CFLAGS $_define_flag" |
| 6298 |
fi |
| 6299 |
else |
| 6300 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6301 |
$as_echo "no" >&6; } |
| 6302 |
CFLAGS="$saved_CFLAGS" |
| 6303 |
|
| 6304 |
fi |
| 6305 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6306 |
} |
| 6307 |
if test "x$use_toolchain_hardening" = "x1"; then |
| 6308 |
{ |
| 6309 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,relro" >&5 |
| 6310 |
$as_echo_n "checking if $LD supports link flag -Wl,-z,relro... " >&6; } |
| 6311 |
saved_LDFLAGS="$LDFLAGS" |
| 6312 |
LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro" |
| 6313 |
_define_flag="" |
| 6314 |
test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro" |
| 6315 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6316 |
/* end confdefs.h. */ |
| 6317 |
|
| 6318 |
#include <stdlib.h> |
| 6319 |
#include <stdio.h> |
| 6320 |
int main(int argc, char **argv) { |
| 6321 |
/* Some math to catch -ftrapv problems in the toolchain */ |
| 6322 |
int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 6323 |
float l = i * 2.1; |
| 6324 |
double m = l / 0.5; |
| 6325 |
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 6326 |
printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 6327 |
exit(0); |
| 6328 |
} |
| 6329 |
|
| 6330 |
_ACEOF |
| 6331 |
if ac_fn_c_try_link "$LINENO"; then : |
| 6332 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6333 |
$as_echo "yes" >&6; } |
| 6334 |
LDFLAGS="$saved_LDFLAGS $_define_flag" |
| 6335 |
else |
| 6336 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6337 |
$as_echo "no" >&6; } |
| 6338 |
LDFLAGS="$saved_LDFLAGS" |
| 6339 |
|
| 6340 |
fi |
| 6341 |
rm -f core conftest.err conftest.$ac_objext \ |
| 6342 |
conftest$ac_exeext conftest.$ac_ext |
| 6343 |
} |
| 6344 |
{ |
| 6345 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,now" >&5 |
| 6346 |
$as_echo_n "checking if $LD supports link flag -Wl,-z,now... " >&6; } |
| 6347 |
saved_LDFLAGS="$LDFLAGS" |
| 6348 |
LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now" |
| 6349 |
_define_flag="" |
| 6350 |
test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now" |
| 6351 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6352 |
/* end confdefs.h. */ |
| 6353 |
|
| 6354 |
#include <stdlib.h> |
| 6355 |
#include <stdio.h> |
| 6356 |
int main(int argc, char **argv) { |
| 6357 |
/* Some math to catch -ftrapv problems in the toolchain */ |
| 6358 |
int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 6359 |
float l = i * 2.1; |
| 6360 |
double m = l / 0.5; |
| 6361 |
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 6362 |
printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 6363 |
exit(0); |
| 6364 |
} |
| 6365 |
|
| 6366 |
_ACEOF |
| 6367 |
if ac_fn_c_try_link "$LINENO"; then : |
| 6368 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6369 |
$as_echo "yes" >&6; } |
| 6370 |
LDFLAGS="$saved_LDFLAGS $_define_flag" |
| 6371 |
else |
| 6372 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6373 |
$as_echo "no" >&6; } |
| 6374 |
LDFLAGS="$saved_LDFLAGS" |
| 6375 |
|
| 6376 |
fi |
| 6377 |
rm -f core conftest.err conftest.$ac_objext \ |
| 6378 |
conftest$ac_exeext conftest.$ac_ext |
| 6379 |
} |
| 6380 |
{ |
| 6381 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,noexecstack" >&5 |
| 6382 |
$as_echo_n "checking if $LD supports link flag -Wl,-z,noexecstack... " >&6; } |
| 6383 |
saved_LDFLAGS="$LDFLAGS" |
| 6384 |
LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack" |
| 6385 |
_define_flag="" |
| 6386 |
test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack" |
| 6387 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6388 |
/* end confdefs.h. */ |
| 6389 |
|
| 6390 |
#include <stdlib.h> |
| 6391 |
#include <stdio.h> |
| 6392 |
int main(int argc, char **argv) { |
| 6393 |
/* Some math to catch -ftrapv problems in the toolchain */ |
| 6394 |
int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 6395 |
float l = i * 2.1; |
| 6396 |
double m = l / 0.5; |
| 6397 |
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 6398 |
printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 6399 |
exit(0); |
| 6400 |
} |
| 6401 |
|
| 6402 |
_ACEOF |
| 6403 |
if ac_fn_c_try_link "$LINENO"; then : |
| 6404 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6405 |
$as_echo "yes" >&6; } |
| 6406 |
LDFLAGS="$saved_LDFLAGS $_define_flag" |
| 6407 |
else |
| 6408 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6409 |
$as_echo "no" >&6; } |
| 6410 |
LDFLAGS="$saved_LDFLAGS" |
| 6411 |
|
| 6412 |
fi |
| 6413 |
rm -f core conftest.err conftest.$ac_objext \ |
| 6414 |
conftest$ac_exeext conftest.$ac_ext |
| 6415 |
} |
| 6416 |
# NB. -ftrapv expects certain support functions to be present in |
| 6417 |
# the compiler library (libgcc or similar) to detect integer operations |
| 6418 |
# that can overflow. We must check that the result of enabling it |
| 6419 |
# actually links. The test program compiled/linked includes a number |
| 6420 |
# of integer operations that should exercise this. |
| 6421 |
{ |
| 6422 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5 |
| 6423 |
$as_echo_n "checking if $CC supports compile flag -ftrapv and linking succeeds... " >&6; } |
| 6424 |
saved_CFLAGS="$CFLAGS" |
| 6425 |
CFLAGS="$CFLAGS $WERROR -ftrapv" |
| 6426 |
_define_flag="" |
| 6427 |
test "x$_define_flag" = "x" && _define_flag="-ftrapv" |
| 6428 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6429 |
/* end confdefs.h. */ |
| 6430 |
|
| 6431 |
#include <stdlib.h> |
| 6432 |
#include <stdio.h> |
| 6433 |
int main(int argc, char **argv) { |
| 6434 |
/* Some math to catch -ftrapv problems in the toolchain */ |
| 6435 |
int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 6436 |
float l = i * 2.1; |
| 6437 |
double m = l / 0.5; |
| 6438 |
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 6439 |
printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 6440 |
exit(0); |
| 6441 |
} |
| 6442 |
|
| 6443 |
_ACEOF |
| 6444 |
if ac_fn_c_try_link "$LINENO"; then : |
| 6445 |
|
| 6446 |
if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 6447 |
then |
| 6448 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6449 |
$as_echo "no" >&6; } |
| 6450 |
CFLAGS="$saved_CFLAGS" |
| 6451 |
else |
| 6452 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6453 |
$as_echo "yes" >&6; } |
| 6454 |
CFLAGS="$saved_CFLAGS $_define_flag" |
| 6455 |
fi |
| 6456 |
else |
| 6457 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6458 |
$as_echo "no" >&6; } |
| 6459 |
CFLAGS="$saved_CFLAGS" |
| 6460 |
|
| 6461 |
fi |
| 6462 |
rm -f core conftest.err conftest.$ac_objext \ |
| 6463 |
conftest$ac_exeext conftest.$ac_ext |
| 6464 |
} |
| 6465 |
fi |
| 6466 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5 |
| 6467 |
$as_echo_n "checking gcc version... " >&6; } |
| 6468 |
GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` |
| 6469 |
case $GCC_VER in |
| 6470 |
1.*) no_attrib_nonnull=1 ;; |
| 6471 |
2.8* | 2.9*) |
| 6472 |
no_attrib_nonnull=1 |
| 6473 |
;; |
| 6474 |
2.*) no_attrib_nonnull=1 ;; |
| 6475 |
*) ;; |
| 6476 |
esac |
| 6477 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5 |
| 6478 |
$as_echo "$GCC_VER" >&6; } |
| 6479 |
|
| 6480 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5 |
| 6481 |
$as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; } |
| 6482 |
saved_CFLAGS="$CFLAGS" |
| 6483 |
CFLAGS="$CFLAGS -fno-builtin-memset" |
| 6484 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6485 |
/* end confdefs.h. */ |
| 6486 |
#include <string.h> |
| 6487 |
int |
| 6488 |
main () |
| 6489 |
{ |
| 6490 |
char b[10]; memset(b, 0, sizeof(b)); |
| 6491 |
; |
| 6492 |
return 0; |
| 6493 |
} |
| 6494 |
_ACEOF |
| 6495 |
if ac_fn_c_try_link "$LINENO"; then : |
| 6496 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6497 |
$as_echo "yes" >&6; } |
| 6498 |
else |
| 6499 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6500 |
$as_echo "no" >&6; } |
| 6501 |
CFLAGS="$saved_CFLAGS" |
| 6502 |
|
| 6503 |
fi |
| 6504 |
rm -f core conftest.err conftest.$ac_objext \ |
| 6505 |
conftest$ac_exeext conftest.$ac_ext |
| 6506 |
|
| 6507 |
# -fstack-protector-all doesn't always work for some GCC versions |
| 6508 |
# and/or platforms, so we test if we can. If it's not supported |
| 6509 |
# on a given platform gcc will emit a warning so we use -Werror. |
| 6510 |
if test "x$use_stack_protector" = "x1"; then |
| 6511 |
for t in -fstack-protector-strong -fstack-protector-all \ |
| 6512 |
-fstack-protector; do |
| 6513 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5 |
| 6514 |
$as_echo_n "checking if $CC supports $t... " >&6; } |
| 6515 |
saved_CFLAGS="$CFLAGS" |
| 6516 |
saved_LDFLAGS="$LDFLAGS" |
| 6517 |
CFLAGS="$CFLAGS $t -Werror" |
| 6518 |
LDFLAGS="$LDFLAGS $t -Werror" |
| 6519 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6520 |
/* end confdefs.h. */ |
| 6521 |
#include <stdio.h> |
| 6522 |
int |
| 6523 |
main () |
| 6524 |
{ |
| 6525 |
|
| 6526 |
char x[256]; |
| 6527 |
snprintf(x, sizeof(x), "XXX"); |
| 6528 |
|
| 6529 |
; |
| 6530 |
return 0; |
| 6531 |
} |
| 6532 |
_ACEOF |
| 6533 |
if ac_fn_c_try_link "$LINENO"; then : |
| 6534 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6535 |
$as_echo "yes" >&6; } |
| 6536 |
CFLAGS="$saved_CFLAGS $t" |
| 6537 |
LDFLAGS="$saved_LDFLAGS $t" |
| 6538 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5 |
| 6539 |
$as_echo_n "checking if $t works... " >&6; } |
| 6540 |
if test "$cross_compiling" = yes; then : |
| 6541 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5 |
| 6542 |
$as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;} |
| 6543 |
break |
| 6544 |
|
| 6545 |
else |
| 6546 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6547 |
/* end confdefs.h. */ |
| 6548 |
#include <stdio.h> |
| 6549 |
int |
| 6550 |
main () |
| 6551 |
{ |
| 6552 |
|
| 6553 |
char x[256]; |
| 6554 |
snprintf(x, sizeof(x), "XXX"); |
| 6555 |
|
| 6556 |
; |
| 6557 |
return 0; |
| 6558 |
} |
| 6559 |
_ACEOF |
| 6560 |
if ac_fn_c_try_run "$LINENO"; then : |
| 6561 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6562 |
$as_echo "yes" >&6; } |
| 6563 |
break |
| 6564 |
else |
| 6565 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6566 |
$as_echo "no" >&6; } |
| 6567 |
fi |
| 6568 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6569 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6570 |
fi |
| 6571 |
|
| 6572 |
|
| 6573 |
else |
| 6574 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6575 |
$as_echo "no" >&6; } |
| 6576 |
|
| 6577 |
fi |
| 6578 |
rm -f core conftest.err conftest.$ac_objext \ |
| 6579 |
conftest$ac_exeext conftest.$ac_ext |
| 6580 |
CFLAGS="$saved_CFLAGS" |
| 6581 |
LDFLAGS="$saved_LDFLAGS" |
| 6582 |
done |
| 6583 |
fi |
| 6584 |
|
| 6585 |
if test -z "$have_llong_max"; then |
| 6586 |
# retry LLONG_MAX with -std=gnu99, needed on some Linuxes |
| 6587 |
unset ac_cv_have_decl_LLONG_MAX |
| 6588 |
saved_CFLAGS="$CFLAGS" |
| 6589 |
CFLAGS="$CFLAGS -std=gnu99" |
| 6590 |
ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> |
| 6591 |
|
| 6592 |
" |
| 6593 |
if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : |
| 6594 |
have_llong_max=1 |
| 6595 |
else |
| 6596 |
CFLAGS="$saved_CFLAGS" |
| 6597 |
fi |
| 6598 |
|
| 6599 |
fi |
| 6600 |
fi |
| 6601 |
|
| 6602 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ on return types" >&5 |
| 6603 |
$as_echo_n "checking if compiler allows __attribute__ on return types... " >&6; } |
| 6604 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6605 |
/* end confdefs.h. */ |
| 6606 |
|
| 6607 |
#include <stdlib.h> |
| 6608 |
__attribute__((__unused__)) static void foo(void){return;} |
| 6609 |
int |
| 6610 |
main () |
| 6611 |
{ |
| 6612 |
exit(0); |
| 6613 |
; |
| 6614 |
return 0; |
| 6615 |
} |
| 6616 |
_ACEOF |
| 6617 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 6618 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6619 |
$as_echo "yes" >&6; } |
| 6620 |
else |
| 6621 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6622 |
$as_echo "no" >&6; } |
| 6623 |
|
| 6624 |
$as_echo "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h |
| 6625 |
|
| 6626 |
|
| 6627 |
fi |
| 6628 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6629 |
|
| 6630 |
if test "x$no_attrib_nonnull" != "x1" ; then |
| 6631 |
|
| 6632 |
$as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h |
| 6633 |
|
| 6634 |
fi |
| 6635 |
|
| 6636 |
|
| 6637 |
# Check whether --with-rpath was given. |
| 6638 |
if test "${with_rpath+set}" = set; then : |
| 6639 |
withval=$with_rpath; |
| 6640 |
if test "x$withval" = "xno" ; then |
| 6641 |
need_dash_r="" |
| 6642 |
fi |
| 6643 |
if test "x$withval" = "xyes" ; then |
| 6644 |
need_dash_r=1 |
| 6645 |
fi |
| 6646 |
|
| 6647 |
|
| 6648 |
fi |
| 6649 |
|
| 6650 |
|
| 6651 |
# Allow user to specify flags |
| 6652 |
|
| 6653 |
# Check whether --with-cflags was given. |
| 6654 |
if test "${with_cflags+set}" = set; then : |
| 6655 |
withval=$with_cflags; |
| 6656 |
if test -n "$withval" && test "x$withval" != "xno" && \ |
| 6657 |
test "x${withval}" != "xyes"; then |
| 6658 |
CFLAGS="$CFLAGS $withval" |
| 6659 |
fi |
| 6660 |
|
| 6661 |
|
| 6662 |
fi |
| 6663 |
|
| 6664 |
|
| 6665 |
# Check whether --with-cppflags was given. |
| 6666 |
if test "${with_cppflags+set}" = set; then : |
| 6667 |
withval=$with_cppflags; |
| 6668 |
if test -n "$withval" && test "x$withval" != "xno" && \ |
| 6669 |
test "x${withval}" != "xyes"; then |
| 6670 |
CPPFLAGS="$CPPFLAGS $withval" |
| 6671 |
fi |
| 6672 |
|
| 6673 |
|
| 6674 |
fi |
| 6675 |
|
| 6676 |
|
| 6677 |
# Check whether --with-ldflags was given. |
| 6678 |
if test "${with_ldflags+set}" = set; then : |
| 6679 |
withval=$with_ldflags; |
| 6680 |
if test -n "$withval" && test "x$withval" != "xno" && \ |
| 6681 |
test "x${withval}" != "xyes"; then |
| 6682 |
LDFLAGS="$LDFLAGS $withval" |
| 6683 |
fi |
| 6684 |
|
| 6685 |
|
| 6686 |
fi |
| 6687 |
|
| 6688 |
|
| 6689 |
# Check whether --with-libs was given. |
| 6690 |
if test "${with_libs+set}" = set; then : |
| 6691 |
withval=$with_libs; |
| 6692 |
if test -n "$withval" && test "x$withval" != "xno" && \ |
| 6693 |
test "x${withval}" != "xyes"; then |
| 6694 |
LIBS="$LIBS $withval" |
| 6695 |
fi |
| 6696 |
|
| 6697 |
|
| 6698 |
fi |
| 6699 |
|
| 6700 |
|
| 6701 |
# Check whether --with-Werror was given. |
| 6702 |
if test "${with_Werror+set}" = set; then : |
| 6703 |
withval=$with_Werror; |
| 6704 |
if test -n "$withval" && test "x$withval" != "xno"; then |
| 6705 |
werror_flags="-Werror" |
| 6706 |
if test "x${withval}" != "xyes"; then |
| 6707 |
werror_flags="$withval" |
| 6708 |
fi |
| 6709 |
fi |
| 6710 |
|
| 6711 |
|
| 6712 |
fi |
| 6713 |
|
| 6714 |
|
| 6715 |
for ac_header in \ |
| 6716 |
blf.h \ |
| 6717 |
bstring.h \ |
| 6718 |
crypt.h \ |
| 6719 |
crypto/sha2.h \ |
| 6720 |
dirent.h \ |
| 6721 |
endian.h \ |
| 6722 |
elf.h \ |
| 6723 |
features.h \ |
| 6724 |
fcntl.h \ |
| 6725 |
floatingpoint.h \ |
| 6726 |
getopt.h \ |
| 6727 |
glob.h \ |
| 6728 |
ia.h \ |
| 6729 |
iaf.h \ |
| 6730 |
inttypes.h \ |
| 6731 |
limits.h \ |
| 6732 |
locale.h \ |
| 6733 |
login.h \ |
| 6734 |
maillock.h \ |
| 6735 |
ndir.h \ |
| 6736 |
net/if_tun.h \ |
| 6737 |
netdb.h \ |
| 6738 |
netgroup.h \ |
| 6739 |
pam/pam_appl.h \ |
| 6740 |
paths.h \ |
| 6741 |
poll.h \ |
| 6742 |
pty.h \ |
| 6743 |
readpassphrase.h \ |
| 6744 |
rpc/types.h \ |
| 6745 |
security/pam_appl.h \ |
| 6746 |
sha2.h \ |
| 6747 |
shadow.h \ |
| 6748 |
stddef.h \ |
| 6749 |
stdint.h \ |
| 6750 |
string.h \ |
| 6751 |
strings.h \ |
| 6752 |
sys/audit.h \ |
| 6753 |
sys/bitypes.h \ |
| 6754 |
sys/bsdtty.h \ |
| 6755 |
sys/capability.h \ |
| 6756 |
sys/cdefs.h \ |
| 6757 |
sys/dir.h \ |
| 6758 |
sys/mman.h \ |
| 6759 |
sys/ndir.h \ |
| 6760 |
sys/poll.h \ |
| 6761 |
sys/prctl.h \ |
| 6762 |
sys/pstat.h \ |
| 6763 |
sys/select.h \ |
| 6764 |
sys/stat.h \ |
| 6765 |
sys/stream.h \ |
| 6766 |
sys/stropts.h \ |
| 6767 |
sys/strtio.h \ |
| 6768 |
sys/statvfs.h \ |
| 6769 |
sys/sysmacros.h \ |
| 6770 |
sys/time.h \ |
| 6771 |
sys/timers.h \ |
| 6772 |
time.h \ |
| 6773 |
tmpdir.h \ |
| 6774 |
ttyent.h \ |
| 6775 |
ucred.h \ |
| 6776 |
unistd.h \ |
| 6777 |
usersec.h \ |
| 6778 |
util.h \ |
| 6779 |
utime.h \ |
| 6780 |
utmp.h \ |
| 6781 |
utmpx.h \ |
| 6782 |
vis.h \ |
| 6783 |
|
| 6784 |
do : |
| 6785 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6786 |
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 6787 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 6788 |
cat >>confdefs.h <<_ACEOF |
| 6789 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6790 |
_ACEOF |
| 6791 |
|
| 6792 |
fi |
| 6793 |
|
| 6794 |
done |
| 6795 |
|
| 6796 |
|
| 6797 |
# lastlog.h requires sys/time.h to be included first on Solaris |
| 6798 |
for ac_header in lastlog.h |
| 6799 |
do : |
| 6800 |
ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" " |
| 6801 |
#ifdef HAVE_SYS_TIME_H |
| 6802 |
# include <sys/time.h> |
| 6803 |
#endif |
| 6804 |
|
| 6805 |
" |
| 6806 |
if test "x$ac_cv_header_lastlog_h" = xyes; then : |
| 6807 |
cat >>confdefs.h <<_ACEOF |
| 6808 |
#define HAVE_LASTLOG_H 1 |
| 6809 |
_ACEOF |
| 6810 |
|
| 6811 |
fi |
| 6812 |
|
| 6813 |
done |
| 6814 |
|
| 6815 |
|
| 6816 |
# sys/ptms.h requires sys/stream.h to be included first on Solaris |
| 6817 |
for ac_header in sys/ptms.h |
| 6818 |
do : |
| 6819 |
ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" " |
| 6820 |
#ifdef HAVE_SYS_STREAM_H |
| 6821 |
# include <sys/stream.h> |
| 6822 |
#endif |
| 6823 |
|
| 6824 |
" |
| 6825 |
if test "x$ac_cv_header_sys_ptms_h" = xyes; then : |
| 6826 |
cat >>confdefs.h <<_ACEOF |
| 6827 |
#define HAVE_SYS_PTMS_H 1 |
| 6828 |
_ACEOF |
| 6829 |
|
| 6830 |
fi |
| 6831 |
|
| 6832 |
done |
| 6833 |
|
| 6834 |
|
| 6835 |
# login_cap.h requires sys/types.h on NetBSD |
| 6836 |
for ac_header in login_cap.h |
| 6837 |
do : |
| 6838 |
ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" " |
| 6839 |
#include <sys/types.h> |
| 6840 |
|
| 6841 |
" |
| 6842 |
if test "x$ac_cv_header_login_cap_h" = xyes; then : |
| 6843 |
cat >>confdefs.h <<_ACEOF |
| 6844 |
#define HAVE_LOGIN_CAP_H 1 |
| 6845 |
_ACEOF |
| 6846 |
|
| 6847 |
fi |
| 6848 |
|
| 6849 |
done |
| 6850 |
|
| 6851 |
|
| 6852 |
# older BSDs need sys/param.h before sys/mount.h |
| 6853 |
for ac_header in sys/mount.h |
| 6854 |
do : |
| 6855 |
ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" " |
| 6856 |
#include <sys/param.h> |
| 6857 |
|
| 6858 |
" |
| 6859 |
if test "x$ac_cv_header_sys_mount_h" = xyes; then : |
| 6860 |
cat >>confdefs.h <<_ACEOF |
| 6861 |
#define HAVE_SYS_MOUNT_H 1 |
| 6862 |
_ACEOF |
| 6863 |
|
| 6864 |
fi |
| 6865 |
|
| 6866 |
done |
| 6867 |
|
| 6868 |
|
| 6869 |
# Android requires sys/socket.h to be included before sys/un.h |
| 6870 |
for ac_header in sys/un.h |
| 6871 |
do : |
| 6872 |
ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" " |
| 6873 |
#include <sys/types.h> |
| 6874 |
#include <sys/socket.h> |
| 6875 |
|
| 6876 |
" |
| 6877 |
if test "x$ac_cv_header_sys_un_h" = xyes; then : |
| 6878 |
cat >>confdefs.h <<_ACEOF |
| 6879 |
#define HAVE_SYS_UN_H 1 |
| 6880 |
_ACEOF |
| 6881 |
|
| 6882 |
fi |
| 6883 |
|
| 6884 |
done |
| 6885 |
|
| 6886 |
|
| 6887 |
# Messages for features tested for in target-specific section |
| 6888 |
SIA_MSG="no" |
| 6889 |
SPC_MSG="no" |
| 6890 |
SP_MSG="no" |
| 6891 |
|
| 6892 |
# Check for some target-specific stuff |
| 6893 |
case "$host" in |
| 6894 |
*-*-aix*) |
| 6895 |
# Some versions of VAC won't allow macro redefinitions at |
| 6896 |
# -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that |
| 6897 |
# particularly with older versions of vac or xlc. |
| 6898 |
# It also throws errors about null macro argments, but these are |
| 6899 |
# not fatal. |
| 6900 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5 |
| 6901 |
$as_echo_n "checking if compiler allows macro redefinitions... " >&6; } |
| 6902 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6903 |
/* end confdefs.h. */ |
| 6904 |
|
| 6905 |
#define testmacro foo |
| 6906 |
#define testmacro bar |
| 6907 |
int |
| 6908 |
main () |
| 6909 |
{ |
| 6910 |
exit(0); |
| 6911 |
; |
| 6912 |
return 0; |
| 6913 |
} |
| 6914 |
_ACEOF |
| 6915 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 6916 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6917 |
$as_echo "yes" >&6; } |
| 6918 |
else |
| 6919 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6920 |
$as_echo "no" >&6; } |
| 6921 |
CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`" |
| 6922 |
LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`" |
| 6923 |
CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`" |
| 6924 |
CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`" |
| 6925 |
|
| 6926 |
|
| 6927 |
fi |
| 6928 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6929 |
|
| 6930 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5 |
| 6931 |
$as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; } |
| 6932 |
if (test -z "$blibpath"); then |
| 6933 |
blibpath="/usr/lib:/lib" |
| 6934 |
fi |
| 6935 |
saved_LDFLAGS="$LDFLAGS" |
| 6936 |
if test "$GCC" = "yes"; then |
| 6937 |
flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:" |
| 6938 |
else |
| 6939 |
flags="-blibpath: -Wl,-blibpath: -Wl,-rpath," |
| 6940 |
fi |
| 6941 |
for tryflags in $flags ;do |
| 6942 |
if (test -z "$blibflags"); then |
| 6943 |
LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" |
| 6944 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6945 |
/* end confdefs.h. */ |
| 6946 |
|
| 6947 |
int |
| 6948 |
main () |
| 6949 |
{ |
| 6950 |
|
| 6951 |
; |
| 6952 |
return 0; |
| 6953 |
} |
| 6954 |
_ACEOF |
| 6955 |
if ac_fn_c_try_link "$LINENO"; then : |
| 6956 |
blibflags=$tryflags |
| 6957 |
fi |
| 6958 |
rm -f core conftest.err conftest.$ac_objext \ |
| 6959 |
conftest$ac_exeext conftest.$ac_ext |
| 6960 |
fi |
| 6961 |
done |
| 6962 |
if (test -z "$blibflags"); then |
| 6963 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 6964 |
$as_echo "not found" >&6; } |
| 6965 |
as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5 |
| 6966 |
else |
| 6967 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5 |
| 6968 |
$as_echo "$blibflags" >&6; } |
| 6969 |
fi |
| 6970 |
LDFLAGS="$saved_LDFLAGS" |
| 6971 |
ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate" |
| 6972 |
if test "x$ac_cv_func_authenticate" = xyes; then : |
| 6973 |
|
| 6974 |
$as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h |
| 6975 |
|
| 6976 |
else |
| 6977 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5 |
| 6978 |
$as_echo_n "checking for authenticate in -ls... " >&6; } |
| 6979 |
if ${ac_cv_lib_s_authenticate+:} false; then : |
| 6980 |
$as_echo_n "(cached) " >&6 |
| 6981 |
else |
| 6982 |
ac_check_lib_save_LIBS=$LIBS |
| 6983 |
LIBS="-ls $LIBS" |
| 6984 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6985 |
/* end confdefs.h. */ |
| 6986 |
|
| 6987 |
/* Override any GCC internal prototype to avoid an error. |
| 6988 |
Use char because int might match the return type of a GCC |
| 6989 |
builtin and then its argument prototype would still apply. */ |
| 6990 |
#ifdef __cplusplus |
| 6991 |
extern "C" |
| 6992 |
#endif |
| 6993 |
char authenticate (); |
| 6994 |
int |
| 6995 |
main () |
| 6996 |
{ |
| 6997 |
return authenticate (); |
| 6998 |
; |
| 6999 |
return 0; |
| 7000 |
} |
| 7001 |
_ACEOF |
| 7002 |
if ac_fn_c_try_link "$LINENO"; then : |
| 7003 |
ac_cv_lib_s_authenticate=yes |
| 7004 |
else |
| 7005 |
ac_cv_lib_s_authenticate=no |
| 7006 |
fi |
| 7007 |
rm -f core conftest.err conftest.$ac_objext \ |
| 7008 |
conftest$ac_exeext conftest.$ac_ext |
| 7009 |
LIBS=$ac_check_lib_save_LIBS |
| 7010 |
fi |
| 7011 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5 |
| 7012 |
$as_echo "$ac_cv_lib_s_authenticate" >&6; } |
| 7013 |
if test "x$ac_cv_lib_s_authenticate" = xyes; then : |
| 7014 |
$as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h |
| 7015 |
|
| 7016 |
LIBS="$LIBS -ls" |
| 7017 |
|
| 7018 |
fi |
| 7019 |
|
| 7020 |
|
| 7021 |
fi |
| 7022 |
|
| 7023 |
ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h> |
| 7024 |
" |
| 7025 |
if test "x$ac_cv_have_decl_authenticate" = xyes; then : |
| 7026 |
ac_have_decl=1 |
| 7027 |
else |
| 7028 |
ac_have_decl=0 |
| 7029 |
fi |
| 7030 |
|
| 7031 |
cat >>confdefs.h <<_ACEOF |
| 7032 |
#define HAVE_DECL_AUTHENTICATE $ac_have_decl |
| 7033 |
_ACEOF |
| 7034 |
ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h> |
| 7035 |
" |
| 7036 |
if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then : |
| 7037 |
ac_have_decl=1 |
| 7038 |
else |
| 7039 |
ac_have_decl=0 |
| 7040 |
fi |
| 7041 |
|
| 7042 |
cat >>confdefs.h <<_ACEOF |
| 7043 |
#define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl |
| 7044 |
_ACEOF |
| 7045 |
ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h> |
| 7046 |
" |
| 7047 |
if test "x$ac_cv_have_decl_loginsuccess" = xyes; then : |
| 7048 |
ac_have_decl=1 |
| 7049 |
else |
| 7050 |
ac_have_decl=0 |
| 7051 |
fi |
| 7052 |
|
| 7053 |
cat >>confdefs.h <<_ACEOF |
| 7054 |
#define HAVE_DECL_LOGINSUCCESS $ac_have_decl |
| 7055 |
_ACEOF |
| 7056 |
ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h> |
| 7057 |
" |
| 7058 |
if test "x$ac_cv_have_decl_passwdexpired" = xyes; then : |
| 7059 |
ac_have_decl=1 |
| 7060 |
else |
| 7061 |
ac_have_decl=0 |
| 7062 |
fi |
| 7063 |
|
| 7064 |
cat >>confdefs.h <<_ACEOF |
| 7065 |
#define HAVE_DECL_PASSWDEXPIRED $ac_have_decl |
| 7066 |
_ACEOF |
| 7067 |
ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h> |
| 7068 |
" |
| 7069 |
if test "x$ac_cv_have_decl_setauthdb" = xyes; then : |
| 7070 |
ac_have_decl=1 |
| 7071 |
else |
| 7072 |
ac_have_decl=0 |
| 7073 |
fi |
| 7074 |
|
| 7075 |
cat >>confdefs.h <<_ACEOF |
| 7076 |
#define HAVE_DECL_SETAUTHDB $ac_have_decl |
| 7077 |
_ACEOF |
| 7078 |
|
| 7079 |
ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h> |
| 7080 |
|
| 7081 |
" |
| 7082 |
if test "x$ac_cv_have_decl_loginfailed" = xyes; then : |
| 7083 |
ac_have_decl=1 |
| 7084 |
else |
| 7085 |
ac_have_decl=0 |
| 7086 |
fi |
| 7087 |
|
| 7088 |
cat >>confdefs.h <<_ACEOF |
| 7089 |
#define HAVE_DECL_LOGINFAILED $ac_have_decl |
| 7090 |
_ACEOF |
| 7091 |
if test $ac_have_decl = 1; then : |
| 7092 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5 |
| 7093 |
$as_echo_n "checking if loginfailed takes 4 arguments... " >&6; } |
| 7094 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7095 |
/* end confdefs.h. */ |
| 7096 |
#include <usersec.h> |
| 7097 |
int |
| 7098 |
main () |
| 7099 |
{ |
| 7100 |
(void)loginfailed("user","host","tty",0); |
| 7101 |
; |
| 7102 |
return 0; |
| 7103 |
} |
| 7104 |
_ACEOF |
| 7105 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 7106 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7107 |
$as_echo "yes" >&6; } |
| 7108 |
|
| 7109 |
$as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h |
| 7110 |
|
| 7111 |
else |
| 7112 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7113 |
$as_echo "no" >&6; } |
| 7114 |
|
| 7115 |
fi |
| 7116 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7117 |
fi |
| 7118 |
|
| 7119 |
for ac_func in getgrset setauthdb |
| 7120 |
do : |
| 7121 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 7122 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 7123 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 7124 |
cat >>confdefs.h <<_ACEOF |
| 7125 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 7126 |
_ACEOF |
| 7127 |
|
| 7128 |
fi |
| 7129 |
done |
| 7130 |
|
| 7131 |
ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h> |
| 7132 |
#include <fcntl.h> |
| 7133 |
|
| 7134 |
" |
| 7135 |
if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then : |
| 7136 |
|
| 7137 |
$as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h |
| 7138 |
|
| 7139 |
fi |
| 7140 |
|
| 7141 |
check_for_aix_broken_getaddrinfo=1 |
| 7142 |
|
| 7143 |
$as_echo "#define BROKEN_REALPATH 1" >>confdefs.h |
| 7144 |
|
| 7145 |
|
| 7146 |
$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 7147 |
|
| 7148 |
|
| 7149 |
$as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 7150 |
|
| 7151 |
|
| 7152 |
$as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 7153 |
|
| 7154 |
|
| 7155 |
$as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h |
| 7156 |
|
| 7157 |
|
| 7158 |
$as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h |
| 7159 |
|
| 7160 |
|
| 7161 |
$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h |
| 7162 |
|
| 7163 |
|
| 7164 |
$as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h |
| 7165 |
|
| 7166 |
|
| 7167 |
$as_echo "#define PTY_ZEROREAD 1" >>confdefs.h |
| 7168 |
|
| 7169 |
|
| 7170 |
$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h |
| 7171 |
|
| 7172 |
;; |
| 7173 |
*-*-android*) |
| 7174 |
|
| 7175 |
$as_echo "#define DISABLE_UTMP 1" >>confdefs.h |
| 7176 |
|
| 7177 |
|
| 7178 |
$as_echo "#define DISABLE_WTMP 1" >>confdefs.h |
| 7179 |
|
| 7180 |
;; |
| 7181 |
*-*-cygwin*) |
| 7182 |
check_for_libcrypt_later=1 |
| 7183 |
LIBS="$LIBS /usr/lib/textreadmode.o" |
| 7184 |
|
| 7185 |
$as_echo "#define HAVE_CYGWIN 1" >>confdefs.h |
| 7186 |
|
| 7187 |
|
| 7188 |
$as_echo "#define USE_PIPES 1" >>confdefs.h |
| 7189 |
|
| 7190 |
|
| 7191 |
$as_echo "#define DISABLE_SHADOW 1" >>confdefs.h |
| 7192 |
|
| 7193 |
|
| 7194 |
$as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h |
| 7195 |
|
| 7196 |
|
| 7197 |
$as_echo "#define NO_IPPORT_RESERVED_CONCEPT 1" >>confdefs.h |
| 7198 |
|
| 7199 |
|
| 7200 |
$as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h |
| 7201 |
|
| 7202 |
|
| 7203 |
$as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h |
| 7204 |
|
| 7205 |
|
| 7206 |
$as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h |
| 7207 |
|
| 7208 |
# Cygwin defines optargs, optargs as declspec(dllimport) for historical |
| 7209 |
# reasons which cause compile warnings, so we disable those warnings. |
| 7210 |
{ |
| 7211 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wno-attributes" >&5 |
| 7212 |
$as_echo_n "checking if $CC supports compile flag -Wno-attributes... " >&6; } |
| 7213 |
saved_CFLAGS="$CFLAGS" |
| 7214 |
CFLAGS="$CFLAGS $WERROR -Wno-attributes" |
| 7215 |
_define_flag="" |
| 7216 |
test "x$_define_flag" = "x" && _define_flag="-Wno-attributes" |
| 7217 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7218 |
/* end confdefs.h. */ |
| 7219 |
|
| 7220 |
#include <stdlib.h> |
| 7221 |
#include <stdio.h> |
| 7222 |
int main(int argc, char **argv) { |
| 7223 |
/* Some math to catch -ftrapv problems in the toolchain */ |
| 7224 |
int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 7225 |
float l = i * 2.1; |
| 7226 |
double m = l / 0.5; |
| 7227 |
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 7228 |
printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 7229 |
exit(0); |
| 7230 |
} |
| 7231 |
|
| 7232 |
_ACEOF |
| 7233 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 7234 |
|
| 7235 |
if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 7236 |
then |
| 7237 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7238 |
$as_echo "no" >&6; } |
| 7239 |
CFLAGS="$saved_CFLAGS" |
| 7240 |
else |
| 7241 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7242 |
$as_echo "yes" >&6; } |
| 7243 |
CFLAGS="$saved_CFLAGS $_define_flag" |
| 7244 |
fi |
| 7245 |
else |
| 7246 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7247 |
$as_echo "no" >&6; } |
| 7248 |
CFLAGS="$saved_CFLAGS" |
| 7249 |
|
| 7250 |
fi |
| 7251 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7252 |
} |
| 7253 |
;; |
| 7254 |
*-*-dgux*) |
| 7255 |
|
| 7256 |
$as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h |
| 7257 |
|
| 7258 |
$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 7259 |
|
| 7260 |
$as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 7261 |
|
| 7262 |
$as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 7263 |
|
| 7264 |
;; |
| 7265 |
*-*-darwin*) |
| 7266 |
use_pie=auto |
| 7267 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5 |
| 7268 |
$as_echo_n "checking if we have working getaddrinfo... " >&6; } |
| 7269 |
if test "$cross_compiling" = yes; then : |
| 7270 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5 |
| 7271 |
$as_echo "assume it is working" >&6; } |
| 7272 |
else |
| 7273 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7274 |
/* end confdefs.h. */ |
| 7275 |
#include <mach-o/dyld.h> |
| 7276 |
main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) |
| 7277 |
exit(0); |
| 7278 |
else |
| 7279 |
exit(1); |
| 7280 |
} |
| 7281 |
|
| 7282 |
_ACEOF |
| 7283 |
if ac_fn_c_try_run "$LINENO"; then : |
| 7284 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5 |
| 7285 |
$as_echo "working" >&6; } |
| 7286 |
else |
| 7287 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5 |
| 7288 |
$as_echo "buggy" >&6; } |
| 7289 |
|
| 7290 |
$as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h |
| 7291 |
|
| 7292 |
|
| 7293 |
fi |
| 7294 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7295 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7296 |
fi |
| 7297 |
|
| 7298 |
$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 7299 |
|
| 7300 |
$as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 7301 |
|
| 7302 |
$as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 7303 |
|
| 7304 |
|
| 7305 |
$as_echo "#define BROKEN_GLOB 1" >>confdefs.h |
| 7306 |
|
| 7307 |
|
| 7308 |
cat >>confdefs.h <<_ACEOF |
| 7309 |
#define BIND_8_COMPAT 1 |
| 7310 |
_ACEOF |
| 7311 |
|
| 7312 |
|
| 7313 |
$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h |
| 7314 |
|
| 7315 |
|
| 7316 |
$as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h |
| 7317 |
|
| 7318 |
|
| 7319 |
$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h |
| 7320 |
|
| 7321 |
|
| 7322 |
ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default" |
| 7323 |
if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then : |
| 7324 |
|
| 7325 |
else |
| 7326 |
|
| 7327 |
$as_echo "#define AU_IPv4 0" >>confdefs.h |
| 7328 |
|
| 7329 |
#include <bsm/audit.h> |
| 7330 |
|
| 7331 |
$as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h |
| 7332 |
|
| 7333 |
|
| 7334 |
fi |
| 7335 |
|
| 7336 |
|
| 7337 |
$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h |
| 7338 |
|
| 7339 |
for ac_func in sandbox_init |
| 7340 |
do : |
| 7341 |
ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init" |
| 7342 |
if test "x$ac_cv_func_sandbox_init" = xyes; then : |
| 7343 |
cat >>confdefs.h <<_ACEOF |
| 7344 |
#define HAVE_SANDBOX_INIT 1 |
| 7345 |
_ACEOF |
| 7346 |
|
| 7347 |
fi |
| 7348 |
done |
| 7349 |
|
| 7350 |
for ac_header in sandbox.h |
| 7351 |
do : |
| 7352 |
ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default" |
| 7353 |
if test "x$ac_cv_header_sandbox_h" = xyes; then : |
| 7354 |
cat >>confdefs.h <<_ACEOF |
| 7355 |
#define HAVE_SANDBOX_H 1 |
| 7356 |
_ACEOF |
| 7357 |
|
| 7358 |
fi |
| 7359 |
|
| 7360 |
done |
| 7361 |
|
| 7362 |
;; |
| 7363 |
*-*-dragonfly*) |
| 7364 |
SSHDLIBS="$SSHDLIBS -lcrypt" |
| 7365 |
TEST_MALLOC_OPTIONS="AFGJPRX" |
| 7366 |
;; |
| 7367 |
*-*-haiku*) |
| 7368 |
LIBS="$LIBS -lbsd " |
| 7369 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5 |
| 7370 |
$as_echo_n "checking for socket in -lnetwork... " >&6; } |
| 7371 |
if ${ac_cv_lib_network_socket+:} false; then : |
| 7372 |
$as_echo_n "(cached) " >&6 |
| 7373 |
else |
| 7374 |
ac_check_lib_save_LIBS=$LIBS |
| 7375 |
LIBS="-lnetwork $LIBS" |
| 7376 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7377 |
/* end confdefs.h. */ |
| 7378 |
|
| 7379 |
/* Override any GCC internal prototype to avoid an error. |
| 7380 |
Use char because int might match the return type of a GCC |
| 7381 |
builtin and then its argument prototype would still apply. */ |
| 7382 |
#ifdef __cplusplus |
| 7383 |
extern "C" |
| 7384 |
#endif |
| 7385 |
char socket (); |
| 7386 |
int |
| 7387 |
main () |
| 7388 |
{ |
| 7389 |
return socket (); |
| 7390 |
; |
| 7391 |
return 0; |
| 7392 |
} |
| 7393 |
_ACEOF |
| 7394 |
if ac_fn_c_try_link "$LINENO"; then : |
| 7395 |
ac_cv_lib_network_socket=yes |
| 7396 |
else |
| 7397 |
ac_cv_lib_network_socket=no |
| 7398 |
fi |
| 7399 |
rm -f core conftest.err conftest.$ac_objext \ |
| 7400 |
conftest$ac_exeext conftest.$ac_ext |
| 7401 |
LIBS=$ac_check_lib_save_LIBS |
| 7402 |
fi |
| 7403 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5 |
| 7404 |
$as_echo "$ac_cv_lib_network_socket" >&6; } |
| 7405 |
if test "x$ac_cv_lib_network_socket" = xyes; then : |
| 7406 |
cat >>confdefs.h <<_ACEOF |
| 7407 |
#define HAVE_LIBNETWORK 1 |
| 7408 |
_ACEOF |
| 7409 |
|
| 7410 |
LIBS="-lnetwork $LIBS" |
| 7411 |
|
| 7412 |
fi |
| 7413 |
|
| 7414 |
$as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h |
| 7415 |
|
| 7416 |
MANTYPE=man |
| 7417 |
;; |
| 7418 |
*-*-hpux*) |
| 7419 |
# first we define all of the options common to all HP-UX releases |
| 7420 |
CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" |
| 7421 |
IPADDR_IN_DISPLAY=yes |
| 7422 |
$as_echo "#define USE_PIPES 1" >>confdefs.h |
| 7423 |
|
| 7424 |
|
| 7425 |
$as_echo "#define LOGIN_NO_ENDOPT 1" >>confdefs.h |
| 7426 |
|
| 7427 |
$as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h |
| 7428 |
|
| 7429 |
|
| 7430 |
$as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h |
| 7431 |
|
| 7432 |
$as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h |
| 7433 |
|
| 7434 |
|
| 7435 |
$as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h |
| 7436 |
|
| 7437 |
maildir="/var/mail" |
| 7438 |
LIBS="$LIBS -lsec" |
| 7439 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5 |
| 7440 |
$as_echo_n "checking for t_error in -lxnet... " >&6; } |
| 7441 |
if ${ac_cv_lib_xnet_t_error+:} false; then : |
| 7442 |
$as_echo_n "(cached) " >&6 |
| 7443 |
else |
| 7444 |
ac_check_lib_save_LIBS=$LIBS |
| 7445 |
LIBS="-lxnet $LIBS" |
| 7446 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7447 |
/* end confdefs.h. */ |
| 7448 |
|
| 7449 |
/* Override any GCC internal prototype to avoid an error. |
| 7450 |
Use char because int might match the return type of a GCC |
| 7451 |
builtin and then its argument prototype would still apply. */ |
| 7452 |
#ifdef __cplusplus |
| 7453 |
extern "C" |
| 7454 |
#endif |
| 7455 |
char t_error (); |
| 7456 |
int |
| 7457 |
main () |
| 7458 |
{ |
| 7459 |
return t_error (); |
| 7460 |
; |
| 7461 |
return 0; |
| 7462 |
} |
| 7463 |
_ACEOF |
| 7464 |
if ac_fn_c_try_link "$LINENO"; then : |
| 7465 |
ac_cv_lib_xnet_t_error=yes |
| 7466 |
else |
| 7467 |
ac_cv_lib_xnet_t_error=no |
| 7468 |
fi |
| 7469 |
rm -f core conftest.err conftest.$ac_objext \ |
| 7470 |
conftest$ac_exeext conftest.$ac_ext |
| 7471 |
LIBS=$ac_check_lib_save_LIBS |
| 7472 |
fi |
| 7473 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5 |
| 7474 |
$as_echo "$ac_cv_lib_xnet_t_error" >&6; } |
| 7475 |
if test "x$ac_cv_lib_xnet_t_error" = xyes; then : |
| 7476 |
cat >>confdefs.h <<_ACEOF |
| 7477 |
#define HAVE_LIBXNET 1 |
| 7478 |
_ACEOF |
| 7479 |
|
| 7480 |
LIBS="-lxnet $LIBS" |
| 7481 |
|
| 7482 |
else |
| 7483 |
as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5 |
| 7484 |
fi |
| 7485 |
|
| 7486 |
|
| 7487 |
# next, we define all of the options specific to major releases |
| 7488 |
case "$host" in |
| 7489 |
*-*-hpux10*) |
| 7490 |
if test -z "$GCC"; then |
| 7491 |
CFLAGS="$CFLAGS -Ae" |
| 7492 |
fi |
| 7493 |
;; |
| 7494 |
*-*-hpux11*) |
| 7495 |
|
| 7496 |
$as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h |
| 7497 |
|
| 7498 |
|
| 7499 |
$as_echo "#define DISABLE_UTMP 1" >>confdefs.h |
| 7500 |
|
| 7501 |
|
| 7502 |
$as_echo "#define USE_BTMP 1" >>confdefs.h |
| 7503 |
|
| 7504 |
check_for_hpux_broken_getaddrinfo=1 |
| 7505 |
check_for_conflicting_getspnam=1 |
| 7506 |
;; |
| 7507 |
esac |
| 7508 |
|
| 7509 |
# lastly, we define options specific to minor releases |
| 7510 |
case "$host" in |
| 7511 |
*-*-hpux10.26) |
| 7512 |
|
| 7513 |
$as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h |
| 7514 |
|
| 7515 |
disable_ptmx_check=yes |
| 7516 |
LIBS="$LIBS -lsecpw" |
| 7517 |
;; |
| 7518 |
esac |
| 7519 |
;; |
| 7520 |
*-*-irix5*) |
| 7521 |
PATH="$PATH:/usr/etc" |
| 7522 |
|
| 7523 |
$as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h |
| 7524 |
|
| 7525 |
$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 7526 |
|
| 7527 |
$as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 7528 |
|
| 7529 |
$as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 7530 |
|
| 7531 |
|
| 7532 |
$as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h |
| 7533 |
|
| 7534 |
$as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h |
| 7535 |
|
| 7536 |
;; |
| 7537 |
*-*-irix6*) |
| 7538 |
PATH="$PATH:/usr/etc" |
| 7539 |
|
| 7540 |
$as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h |
| 7541 |
|
| 7542 |
|
| 7543 |
$as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h |
| 7544 |
|
| 7545 |
|
| 7546 |
$as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h |
| 7547 |
|
| 7548 |
ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob" |
| 7549 |
if test "x$ac_cv_func_jlimit_startjob" = xyes; then : |
| 7550 |
|
| 7551 |
$as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h |
| 7552 |
|
| 7553 |
fi |
| 7554 |
|
| 7555 |
$as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h |
| 7556 |
|
| 7557 |
$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 7558 |
|
| 7559 |
$as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 7560 |
|
| 7561 |
$as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 7562 |
|
| 7563 |
|
| 7564 |
$as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h |
| 7565 |
|
| 7566 |
$as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h |
| 7567 |
|
| 7568 |
$as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h |
| 7569 |
|
| 7570 |
;; |
| 7571 |
*-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
| 7572 |
check_for_libcrypt_later=1 |
| 7573 |
$as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h |
| 7574 |
|
| 7575 |
$as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h |
| 7576 |
|
| 7577 |
$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h |
| 7578 |
|
| 7579 |
|
| 7580 |
$as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h |
| 7581 |
|
| 7582 |
|
| 7583 |
$as_echo "#define USE_BTMP 1" >>confdefs.h |
| 7584 |
|
| 7585 |
;; |
| 7586 |
*-*-linux*) |
| 7587 |
no_dev_ptmx=1 |
| 7588 |
use_pie=auto |
| 7589 |
check_for_libcrypt_later=1 |
| 7590 |
check_for_openpty_ctty_bug=1 |
| 7591 |
|
| 7592 |
$as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h |
| 7593 |
|
| 7594 |
|
| 7595 |
$as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h |
| 7596 |
|
| 7597 |
$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h |
| 7598 |
|
| 7599 |
|
| 7600 |
$as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h |
| 7601 |
|
| 7602 |
|
| 7603 |
$as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h |
| 7604 |
|
| 7605 |
$as_echo "#define USE_BTMP 1" >>confdefs.h |
| 7606 |
|
| 7607 |
|
| 7608 |
$as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h |
| 7609 |
|
| 7610 |
inet6_default_4in6=yes |
| 7611 |
case `uname -r` in |
| 7612 |
1.*|2.0.*) |
| 7613 |
|
| 7614 |
$as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h |
| 7615 |
|
| 7616 |
;; |
| 7617 |
esac |
| 7618 |
# tun(4) forwarding compat code |
| 7619 |
for ac_header in linux/if_tun.h |
| 7620 |
do : |
| 7621 |
ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default" |
| 7622 |
if test "x$ac_cv_header_linux_if_tun_h" = xyes; then : |
| 7623 |
cat >>confdefs.h <<_ACEOF |
| 7624 |
#define HAVE_LINUX_IF_TUN_H 1 |
| 7625 |
_ACEOF |
| 7626 |
|
| 7627 |
fi |
| 7628 |
|
| 7629 |
done |
| 7630 |
|
| 7631 |
if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then |
| 7632 |
|
| 7633 |
$as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h |
| 7634 |
|
| 7635 |
|
| 7636 |
$as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h |
| 7637 |
|
| 7638 |
|
| 7639 |
$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h |
| 7640 |
|
| 7641 |
fi |
| 7642 |
for ac_header in linux/seccomp.h linux/filter.h linux/audit.h |
| 7643 |
do : |
| 7644 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7645 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <linux/types.h> |
| 7646 |
" |
| 7647 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 7648 |
cat >>confdefs.h <<_ACEOF |
| 7649 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7650 |
_ACEOF |
| 7651 |
|
| 7652 |
fi |
| 7653 |
|
| 7654 |
done |
| 7655 |
|
| 7656 |
for ac_func in prctl |
| 7657 |
do : |
| 7658 |
ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl" |
| 7659 |
if test "x$ac_cv_func_prctl" = xyes; then : |
| 7660 |
cat >>confdefs.h <<_ACEOF |
| 7661 |
#define HAVE_PRCTL 1 |
| 7662 |
_ACEOF |
| 7663 |
|
| 7664 |
fi |
| 7665 |
done |
| 7666 |
|
| 7667 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp architecture" >&5 |
| 7668 |
$as_echo_n "checking for seccomp architecture... " >&6; } |
| 7669 |
seccomp_audit_arch= |
| 7670 |
case "$host" in |
| 7671 |
x86_64-*) |
| 7672 |
seccomp_audit_arch=AUDIT_ARCH_X86_64 |
| 7673 |
;; |
| 7674 |
i*86-*) |
| 7675 |
seccomp_audit_arch=AUDIT_ARCH_I386 |
| 7676 |
;; |
| 7677 |
arm*-*) |
| 7678 |
seccomp_audit_arch=AUDIT_ARCH_ARM |
| 7679 |
;; |
| 7680 |
aarch64*-*) |
| 7681 |
seccomp_audit_arch=AUDIT_ARCH_AARCH64 |
| 7682 |
;; |
| 7683 |
esac |
| 7684 |
if test "x$seccomp_audit_arch" != "x" ; then |
| 7685 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5 |
| 7686 |
$as_echo "\"$seccomp_audit_arch\"" >&6; } |
| 7687 |
|
| 7688 |
cat >>confdefs.h <<_ACEOF |
| 7689 |
#define SECCOMP_AUDIT_ARCH $seccomp_audit_arch |
| 7690 |
_ACEOF |
| 7691 |
|
| 7692 |
else |
| 7693 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: architecture not supported" >&5 |
| 7694 |
$as_echo "architecture not supported" >&6; } |
| 7695 |
fi |
| 7696 |
;; |
| 7697 |
mips-sony-bsd|mips-sony-newsos4) |
| 7698 |
|
| 7699 |
$as_echo "#define NEED_SETPGRP 1" >>confdefs.h |
| 7700 |
|
| 7701 |
SONY=1 |
| 7702 |
;; |
| 7703 |
*-*-netbsd*) |
| 7704 |
check_for_libcrypt_before=1 |
| 7705 |
if test "x$withval" != "xno" ; then |
| 7706 |
need_dash_r=1 |
| 7707 |
fi |
| 7708 |
|
| 7709 |
$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h |
| 7710 |
|
| 7711 |
ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default" |
| 7712 |
if test "x$ac_cv_header_net_if_tap_h" = xyes; then : |
| 7713 |
|
| 7714 |
else |
| 7715 |
|
| 7716 |
$as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h |
| 7717 |
|
| 7718 |
fi |
| 7719 |
|
| 7720 |
|
| 7721 |
|
| 7722 |
$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h |
| 7723 |
|
| 7724 |
TEST_MALLOC_OPTIONS="AJRX" |
| 7725 |
|
| 7726 |
$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h |
| 7727 |
|
| 7728 |
|
| 7729 |
$as_echo "#define BROKEN_READ_COMPARISON 1" >>confdefs.h |
| 7730 |
|
| 7731 |
;; |
| 7732 |
*-*-freebsd*) |
| 7733 |
check_for_libcrypt_later=1 |
| 7734 |
|
| 7735 |
$as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h |
| 7736 |
|
| 7737 |
|
| 7738 |
$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h |
| 7739 |
|
| 7740 |
ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default" |
| 7741 |
if test "x$ac_cv_header_net_if_tap_h" = xyes; then : |
| 7742 |
|
| 7743 |
else |
| 7744 |
|
| 7745 |
$as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h |
| 7746 |
|
| 7747 |
fi |
| 7748 |
|
| 7749 |
|
| 7750 |
|
| 7751 |
$as_echo "#define BROKEN_GLOB 1" >>confdefs.h |
| 7752 |
|
| 7753 |
|
| 7754 |
$as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h |
| 7755 |
|
| 7756 |
TEST_MALLOC_OPTIONS="AJRX" |
| 7757 |
# Preauth crypto occasionally uses file descriptors for crypto offload |
| 7758 |
# and will crash if they cannot be opened. |
| 7759 |
|
| 7760 |
$as_echo "#define SANDBOX_SKIP_RLIMIT_NOFILE 1" >>confdefs.h |
| 7761 |
|
| 7762 |
;; |
| 7763 |
*-*-bsdi*) |
| 7764 |
$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 7765 |
|
| 7766 |
$as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 7767 |
|
| 7768 |
$as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 7769 |
|
| 7770 |
;; |
| 7771 |
*-next-*) |
| 7772 |
conf_lastlog_location="/usr/adm/lastlog" |
| 7773 |
conf_utmp_location=/etc/utmp |
| 7774 |
conf_wtmp_location=/usr/adm/wtmp |
| 7775 |
maildir=/usr/spool/mail |
| 7776 |
|
| 7777 |
$as_echo "#define HAVE_NEXT 1" >>confdefs.h |
| 7778 |
|
| 7779 |
$as_echo "#define BROKEN_REALPATH 1" >>confdefs.h |
| 7780 |
|
| 7781 |
$as_echo "#define USE_PIPES 1" >>confdefs.h |
| 7782 |
|
| 7783 |
|
| 7784 |
$as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h |
| 7785 |
|
| 7786 |
;; |
| 7787 |
*-*-openbsd*) |
| 7788 |
use_pie=auto |
| 7789 |
|
| 7790 |
$as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h |
| 7791 |
|
| 7792 |
|
| 7793 |
$as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h |
| 7794 |
|
| 7795 |
|
| 7796 |
$as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h |
| 7797 |
|
| 7798 |
|
| 7799 |
$as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h |
| 7800 |
|
| 7801 |
TEST_MALLOC_OPTIONS="AFGJPRX" |
| 7802 |
;; |
| 7803 |
*-*-solaris*) |
| 7804 |
if test "x$withval" != "xno" ; then |
| 7805 |
need_dash_r=1 |
| 7806 |
fi |
| 7807 |
$as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h |
| 7808 |
|
| 7809 |
$as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h |
| 7810 |
|
| 7811 |
|
| 7812 |
$as_echo "#define LOGIN_NEEDS_TERM 1" >>confdefs.h |
| 7813 |
|
| 7814 |
$as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h |
| 7815 |
|
| 7816 |
|
| 7817 |
$as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h |
| 7818 |
|
| 7819 |
$as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h |
| 7820 |
|
| 7821 |
# Pushing STREAMS modules will cause sshd to acquire a controlling tty. |
| 7822 |
|
| 7823 |
$as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h |
| 7824 |
|
| 7825 |
|
| 7826 |
$as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h |
| 7827 |
|
| 7828 |
|
| 7829 |
$as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h |
| 7830 |
|
| 7831 |
external_path_file=/etc/default/login |
| 7832 |
# hardwire lastlog location (can't detect it on some versions) |
| 7833 |
conf_lastlog_location="/var/adm/lastlog" |
| 7834 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5 |
| 7835 |
$as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; } |
| 7836 |
sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` |
| 7837 |
if test "$sol2ver" -ge 8; then |
| 7838 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7839 |
$as_echo "yes" >&6; } |
| 7840 |
$as_echo "#define DISABLE_UTMP 1" >>confdefs.h |
| 7841 |
|
| 7842 |
|
| 7843 |
$as_echo "#define DISABLE_WTMP 1" >>confdefs.h |
| 7844 |
|
| 7845 |
else |
| 7846 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7847 |
$as_echo "no" >&6; } |
| 7848 |
fi |
| 7849 |
|
| 7850 |
# Check whether --with-solaris-contracts was given. |
| 7851 |
if test "${with_solaris_contracts+set}" = set; then : |
| 7852 |
withval=$with_solaris_contracts; |
| 7853 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5 |
| 7854 |
$as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; } |
| 7855 |
if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then : |
| 7856 |
$as_echo_n "(cached) " >&6 |
| 7857 |
else |
| 7858 |
ac_check_lib_save_LIBS=$LIBS |
| 7859 |
LIBS="-lcontract $LIBS" |
| 7860 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7861 |
/* end confdefs.h. */ |
| 7862 |
|
| 7863 |
/* Override any GCC internal prototype to avoid an error. |
| 7864 |
Use char because int might match the return type of a GCC |
| 7865 |
builtin and then its argument prototype would still apply. */ |
| 7866 |
#ifdef __cplusplus |
| 7867 |
extern "C" |
| 7868 |
#endif |
| 7869 |
char ct_tmpl_activate (); |
| 7870 |
int |
| 7871 |
main () |
| 7872 |
{ |
| 7873 |
return ct_tmpl_activate (); |
| 7874 |
; |
| 7875 |
return 0; |
| 7876 |
} |
| 7877 |
_ACEOF |
| 7878 |
if ac_fn_c_try_link "$LINENO"; then : |
| 7879 |
ac_cv_lib_contract_ct_tmpl_activate=yes |
| 7880 |
else |
| 7881 |
ac_cv_lib_contract_ct_tmpl_activate=no |
| 7882 |
fi |
| 7883 |
rm -f core conftest.err conftest.$ac_objext \ |
| 7884 |
conftest$ac_exeext conftest.$ac_ext |
| 7885 |
LIBS=$ac_check_lib_save_LIBS |
| 7886 |
fi |
| 7887 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5 |
| 7888 |
$as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; } |
| 7889 |
if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then : |
| 7890 |
|
| 7891 |
$as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h |
| 7892 |
|
| 7893 |
SSHDLIBS="$SSHDLIBS -lcontract" |
| 7894 |
SPC_MSG="yes" |
| 7895 |
fi |
| 7896 |
|
| 7897 |
|
| 7898 |
fi |
| 7899 |
|
| 7900 |
|
| 7901 |
# Check whether --with-solaris-projects was given. |
| 7902 |
if test "${with_solaris_projects+set}" = set; then : |
| 7903 |
withval=$with_solaris_projects; |
| 7904 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5 |
| 7905 |
$as_echo_n "checking for setproject in -lproject... " >&6; } |
| 7906 |
if ${ac_cv_lib_project_setproject+:} false; then : |
| 7907 |
$as_echo_n "(cached) " >&6 |
| 7908 |
else |
| 7909 |
ac_check_lib_save_LIBS=$LIBS |
| 7910 |
LIBS="-lproject $LIBS" |
| 7911 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7912 |
/* end confdefs.h. */ |
| 7913 |
|
| 7914 |
/* Override any GCC internal prototype to avoid an error. |
| 7915 |
Use char because int might match the return type of a GCC |
| 7916 |
builtin and then its argument prototype would still apply. */ |
| 7917 |
#ifdef __cplusplus |
| 7918 |
extern "C" |
| 7919 |
#endif |
| 7920 |
char setproject (); |
| 7921 |
int |
| 7922 |
main () |
| 7923 |
{ |
| 7924 |
return setproject (); |
| 7925 |
; |
| 7926 |
return 0; |
| 7927 |
} |
| 7928 |
_ACEOF |
| 7929 |
if ac_fn_c_try_link "$LINENO"; then : |
| 7930 |
ac_cv_lib_project_setproject=yes |
| 7931 |
else |
| 7932 |
ac_cv_lib_project_setproject=no |
| 7933 |
fi |
| 7934 |
rm -f core conftest.err conftest.$ac_objext \ |
| 7935 |
conftest$ac_exeext conftest.$ac_ext |
| 7936 |
LIBS=$ac_check_lib_save_LIBS |
| 7937 |
fi |
| 7938 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5 |
| 7939 |
$as_echo "$ac_cv_lib_project_setproject" >&6; } |
| 7940 |
if test "x$ac_cv_lib_project_setproject" = xyes; then : |
| 7941 |
|
| 7942 |
$as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h |
| 7943 |
|
| 7944 |
SSHDLIBS="$SSHDLIBS -lproject" |
| 7945 |
SP_MSG="yes" |
| 7946 |
fi |
| 7947 |
|
| 7948 |
|
| 7949 |
fi |
| 7950 |
|
| 7951 |
TEST_SHELL=$SHELL # let configure find us a capable shell |
| 7952 |
;; |
| 7953 |
*-*-sunos4*) |
| 7954 |
CPPFLAGS="$CPPFLAGS -DSUNOS4" |
| 7955 |
for ac_func in getpwanam |
| 7956 |
do : |
| 7957 |
ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam" |
| 7958 |
if test "x$ac_cv_func_getpwanam" = xyes; then : |
| 7959 |
cat >>confdefs.h <<_ACEOF |
| 7960 |
#define HAVE_GETPWANAM 1 |
| 7961 |
_ACEOF |
| 7962 |
|
| 7963 |
fi |
| 7964 |
done |
| 7965 |
|
| 7966 |
$as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h |
| 7967 |
|
| 7968 |
conf_utmp_location=/etc/utmp |
| 7969 |
conf_wtmp_location=/var/adm/wtmp |
| 7970 |
conf_lastlog_location=/var/adm/lastlog |
| 7971 |
$as_echo "#define USE_PIPES 1" >>confdefs.h |
| 7972 |
|
| 7973 |
;; |
| 7974 |
*-ncr-sysv*) |
| 7975 |
LIBS="$LIBS -lc89" |
| 7976 |
$as_echo "#define USE_PIPES 1" >>confdefs.h |
| 7977 |
|
| 7978 |
$as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h |
| 7979 |
|
| 7980 |
$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 7981 |
|
| 7982 |
$as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 7983 |
|
| 7984 |
$as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 7985 |
|
| 7986 |
;; |
| 7987 |
*-sni-sysv*) |
| 7988 |
# /usr/ucblib MUST NOT be searched on ReliantUNIX |
| 7989 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 |
| 7990 |
$as_echo_n "checking for dlsym in -ldl... " >&6; } |
| 7991 |
if ${ac_cv_lib_dl_dlsym+:} false; then : |
| 7992 |
$as_echo_n "(cached) " >&6 |
| 7993 |
else |
| 7994 |
ac_check_lib_save_LIBS=$LIBS |
| 7995 |
LIBS="-ldl $LIBS" |
| 7996 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7997 |
/* end confdefs.h. */ |
| 7998 |
|
| 7999 |
/* Override any GCC internal prototype to avoid an error. |
| 8000 |
Use char because int might match the return type of a GCC |
| 8001 |
builtin and then its argument prototype would still apply. */ |
| 8002 |
#ifdef __cplusplus |
| 8003 |
extern "C" |
| 8004 |
#endif |
| 8005 |
char dlsym (); |
| 8006 |
int |
| 8007 |
main () |
| 8008 |
{ |
| 8009 |
return dlsym (); |
| 8010 |
; |
| 8011 |
return 0; |
| 8012 |
} |
| 8013 |
_ACEOF |
| 8014 |
if ac_fn_c_try_link "$LINENO"; then : |
| 8015 |
ac_cv_lib_dl_dlsym=yes |
| 8016 |
else |
| 8017 |
ac_cv_lib_dl_dlsym=no |
| 8018 |
fi |
| 8019 |
rm -f core conftest.err conftest.$ac_objext \ |
| 8020 |
conftest$ac_exeext conftest.$ac_ext |
| 8021 |
LIBS=$ac_check_lib_save_LIBS |
| 8022 |
fi |
| 8023 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 |
| 8024 |
$as_echo "$ac_cv_lib_dl_dlsym" >&6; } |
| 8025 |
if test "x$ac_cv_lib_dl_dlsym" = xyes; then : |
| 8026 |
cat >>confdefs.h <<_ACEOF |
| 8027 |
#define HAVE_LIBDL 1 |
| 8028 |
_ACEOF |
| 8029 |
|
| 8030 |
LIBS="-ldl $LIBS" |
| 8031 |
|
| 8032 |
fi |
| 8033 |
|
| 8034 |
# -lresolv needs to be at the end of LIBS or DNS lookups break |
| 8035 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5 |
| 8036 |
$as_echo_n "checking for res_query in -lresolv... " >&6; } |
| 8037 |
if ${ac_cv_lib_resolv_res_query+:} false; then : |
| 8038 |
$as_echo_n "(cached) " >&6 |
| 8039 |
else |
| 8040 |
ac_check_lib_save_LIBS=$LIBS |
| 8041 |
LIBS="-lresolv $LIBS" |
| 8042 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8043 |
/* end confdefs.h. */ |
| 8044 |
|
| 8045 |
/* Override any GCC internal prototype to avoid an error. |
| 8046 |
Use char because int might match the return type of a GCC |
| 8047 |
builtin and then its argument prototype would still apply. */ |
| 8048 |
#ifdef __cplusplus |
| 8049 |
extern "C" |
| 8050 |
#endif |
| 8051 |
char res_query (); |
| 8052 |
int |
| 8053 |
main () |
| 8054 |
{ |
| 8055 |
return res_query (); |
| 8056 |
; |
| 8057 |
return 0; |
| 8058 |
} |
| 8059 |
_ACEOF |
| 8060 |
if ac_fn_c_try_link "$LINENO"; then : |
| 8061 |
ac_cv_lib_resolv_res_query=yes |
| 8062 |
else |
| 8063 |
ac_cv_lib_resolv_res_query=no |
| 8064 |
fi |
| 8065 |
rm -f core conftest.err conftest.$ac_objext \ |
| 8066 |
conftest$ac_exeext conftest.$ac_ext |
| 8067 |
LIBS=$ac_check_lib_save_LIBS |
| 8068 |
fi |
| 8069 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5 |
| 8070 |
$as_echo "$ac_cv_lib_resolv_res_query" >&6; } |
| 8071 |
if test "x$ac_cv_lib_resolv_res_query" = xyes; then : |
| 8072 |
LIBS="$LIBS -lresolv" |
| 8073 |
fi |
| 8074 |
|
| 8075 |
IPADDR_IN_DISPLAY=yes |
| 8076 |
$as_echo "#define USE_PIPES 1" >>confdefs.h |
| 8077 |
|
| 8078 |
$as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h |
| 8079 |
|
| 8080 |
$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 8081 |
|
| 8082 |
$as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 8083 |
|
| 8084 |
$as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 8085 |
|
| 8086 |
$as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h |
| 8087 |
|
| 8088 |
external_path_file=/etc/default/login |
| 8089 |
# /usr/ucblib/libucb.a no longer needed on ReliantUNIX |
| 8090 |
# Attention: always take care to bind libsocket and libnsl before libc, |
| 8091 |
# otherwise you will find lots of "SIOCGPGRP errno 22" on syslog |
| 8092 |
;; |
| 8093 |
# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. |
| 8094 |
*-*-sysv4.2*) |
| 8095 |
$as_echo "#define USE_PIPES 1" >>confdefs.h |
| 8096 |
|
| 8097 |
$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 8098 |
|
| 8099 |
$as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 8100 |
|
| 8101 |
$as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 8102 |
|
| 8103 |
|
| 8104 |
$as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h |
| 8105 |
|
| 8106 |
$as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h |
| 8107 |
|
| 8108 |
TEST_SHELL=$SHELL # let configure find us a capable shell |
| 8109 |
;; |
| 8110 |
# UnixWare 7.x, OpenUNIX 8 |
| 8111 |
*-*-sysv5*) |
| 8112 |
CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf" |
| 8113 |
|
| 8114 |
$as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h |
| 8115 |
|
| 8116 |
$as_echo "#define USE_PIPES 1" >>confdefs.h |
| 8117 |
|
| 8118 |
$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 8119 |
|
| 8120 |
$as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h |
| 8121 |
|
| 8122 |
$as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 8123 |
|
| 8124 |
$as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 8125 |
|
| 8126 |
$as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h |
| 8127 |
|
| 8128 |
TEST_SHELL=$SHELL # let configure find us a capable shell |
| 8129 |
case "$host" in |
| 8130 |
*-*-sysv5SCO_SV*) # SCO OpenServer 6.x |
| 8131 |
maildir=/var/spool/mail |
| 8132 |
|
| 8133 |
$as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h |
| 8134 |
|
| 8135 |
$as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h |
| 8136 |
|
| 8137 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5 |
| 8138 |
$as_echo_n "checking for getluid in -lprot... " >&6; } |
| 8139 |
if ${ac_cv_lib_prot_getluid+:} false; then : |
| 8140 |
$as_echo_n "(cached) " >&6 |
| 8141 |
else |
| 8142 |
ac_check_lib_save_LIBS=$LIBS |
| 8143 |
LIBS="-lprot $LIBS" |
| 8144 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8145 |
/* end confdefs.h. */ |
| 8146 |
|
| 8147 |
/* Override any GCC internal prototype to avoid an error. |
| 8148 |
Use char because int might match the return type of a GCC |
| 8149 |
builtin and then its argument prototype would still apply. */ |
| 8150 |
#ifdef __cplusplus |
| 8151 |
extern "C" |
| 8152 |
#endif |
| 8153 |
char getluid (); |
| 8154 |
int |
| 8155 |
main () |
| 8156 |
{ |
| 8157 |
return getluid (); |
| 8158 |
; |
| 8159 |
return 0; |
| 8160 |
} |
| 8161 |
_ACEOF |
| 8162 |
if ac_fn_c_try_link "$LINENO"; then : |
| 8163 |
ac_cv_lib_prot_getluid=yes |
| 8164 |
else |
| 8165 |
ac_cv_lib_prot_getluid=no |
| 8166 |
fi |
| 8167 |
rm -f core conftest.err conftest.$ac_objext \ |
| 8168 |
conftest$ac_exeext conftest.$ac_ext |
| 8169 |
LIBS=$ac_check_lib_save_LIBS |
| 8170 |
fi |
| 8171 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5 |
| 8172 |
$as_echo "$ac_cv_lib_prot_getluid" >&6; } |
| 8173 |
if test "x$ac_cv_lib_prot_getluid" = xyes; then : |
| 8174 |
LIBS="$LIBS -lprot" |
| 8175 |
for ac_func in getluid setluid |
| 8176 |
do : |
| 8177 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8178 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 8179 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 8180 |
cat >>confdefs.h <<_ACEOF |
| 8181 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 8182 |
_ACEOF |
| 8183 |
|
| 8184 |
fi |
| 8185 |
done |
| 8186 |
|
| 8187 |
$as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h |
| 8188 |
|
| 8189 |
$as_echo "#define DISABLE_SHADOW 1" >>confdefs.h |
| 8190 |
|
| 8191 |
|
| 8192 |
fi |
| 8193 |
|
| 8194 |
;; |
| 8195 |
*) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h |
| 8196 |
|
| 8197 |
check_for_libcrypt_later=1 |
| 8198 |
;; |
| 8199 |
esac |
| 8200 |
;; |
| 8201 |
*-*-sysv*) |
| 8202 |
;; |
| 8203 |
# SCO UNIX and OEM versions of SCO UNIX |
| 8204 |
*-*-sco3.2v4*) |
| 8205 |
as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5 |
| 8206 |
;; |
| 8207 |
# SCO OpenServer 5.x |
| 8208 |
*-*-sco3.2v5*) |
| 8209 |
if test -z "$GCC"; then |
| 8210 |
CFLAGS="$CFLAGS -belf" |
| 8211 |
fi |
| 8212 |
LIBS="$LIBS -lprot -lx -ltinfo -lm" |
| 8213 |
no_dev_ptmx=1 |
| 8214 |
$as_echo "#define USE_PIPES 1" >>confdefs.h |
| 8215 |
|
| 8216 |
$as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h |
| 8217 |
|
| 8218 |
$as_echo "#define DISABLE_SHADOW 1" >>confdefs.h |
| 8219 |
|
| 8220 |
$as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h |
| 8221 |
|
| 8222 |
$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 8223 |
|
| 8224 |
$as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h |
| 8225 |
|
| 8226 |
$as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 8227 |
|
| 8228 |
$as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 8229 |
|
| 8230 |
$as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h |
| 8231 |
|
| 8232 |
$as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h |
| 8233 |
|
| 8234 |
$as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h |
| 8235 |
|
| 8236 |
for ac_func in getluid setluid |
| 8237 |
do : |
| 8238 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8239 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 8240 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 8241 |
cat >>confdefs.h <<_ACEOF |
| 8242 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 8243 |
_ACEOF |
| 8244 |
|
| 8245 |
fi |
| 8246 |
done |
| 8247 |
|
| 8248 |
MANTYPE=man |
| 8249 |
TEST_SHELL=$SHELL # let configure find us a capable shell |
| 8250 |
SKIP_DISABLE_LASTLOG_DEFINE=yes |
| 8251 |
;; |
| 8252 |
*-*-unicosmk*) |
| 8253 |
|
| 8254 |
$as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h |
| 8255 |
|
| 8256 |
$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 8257 |
|
| 8258 |
$as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 8259 |
|
| 8260 |
$as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 8261 |
|
| 8262 |
$as_echo "#define USE_PIPES 1" >>confdefs.h |
| 8263 |
|
| 8264 |
$as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h |
| 8265 |
|
| 8266 |
LDFLAGS="$LDFLAGS" |
| 8267 |
LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" |
| 8268 |
MANTYPE=cat |
| 8269 |
;; |
| 8270 |
*-*-unicosmp*) |
| 8271 |
$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 8272 |
|
| 8273 |
$as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 8274 |
|
| 8275 |
$as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 8276 |
|
| 8277 |
$as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h |
| 8278 |
|
| 8279 |
$as_echo "#define USE_PIPES 1" >>confdefs.h |
| 8280 |
|
| 8281 |
$as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h |
| 8282 |
|
| 8283 |
LDFLAGS="$LDFLAGS" |
| 8284 |
LIBS="$LIBS -lgen -lacid -ldb" |
| 8285 |
MANTYPE=cat |
| 8286 |
;; |
| 8287 |
*-*-unicos*) |
| 8288 |
$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 8289 |
|
| 8290 |
$as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 8291 |
|
| 8292 |
$as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 8293 |
|
| 8294 |
$as_echo "#define USE_PIPES 1" >>confdefs.h |
| 8295 |
|
| 8296 |
$as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h |
| 8297 |
|
| 8298 |
$as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h |
| 8299 |
|
| 8300 |
LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" |
| 8301 |
LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" |
| 8302 |
MANTYPE=cat |
| 8303 |
;; |
| 8304 |
*-dec-osf*) |
| 8305 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5 |
| 8306 |
$as_echo_n "checking for Digital Unix SIA... " >&6; } |
| 8307 |
no_osfsia="" |
| 8308 |
|
| 8309 |
# Check whether --with-osfsia was given. |
| 8310 |
if test "${with_osfsia+set}" = set; then : |
| 8311 |
withval=$with_osfsia; |
| 8312 |
if test "x$withval" = "xno" ; then |
| 8313 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
| 8314 |
$as_echo "disabled" >&6; } |
| 8315 |
no_osfsia=1 |
| 8316 |
fi |
| 8317 |
|
| 8318 |
fi |
| 8319 |
|
| 8320 |
if test -z "$no_osfsia" ; then |
| 8321 |
if test -f /etc/sia/matrix.conf; then |
| 8322 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8323 |
$as_echo "yes" >&6; } |
| 8324 |
|
| 8325 |
$as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h |
| 8326 |
|
| 8327 |
|
| 8328 |
$as_echo "#define DISABLE_LOGIN 1" >>confdefs.h |
| 8329 |
|
| 8330 |
$as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h |
| 8331 |
|
| 8332 |
LIBS="$LIBS -lsecurity -ldb -lm -laud" |
| 8333 |
SIA_MSG="yes" |
| 8334 |
else |
| 8335 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8336 |
$as_echo "no" >&6; } |
| 8337 |
|
| 8338 |
$as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h |
| 8339 |
|
| 8340 |
fi |
| 8341 |
fi |
| 8342 |
$as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h |
| 8343 |
|
| 8344 |
$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h |
| 8345 |
|
| 8346 |
$as_echo "#define BROKEN_SETREUID 1" >>confdefs.h |
| 8347 |
|
| 8348 |
$as_echo "#define BROKEN_SETREGID 1" >>confdefs.h |
| 8349 |
|
| 8350 |
|
| 8351 |
$as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h |
| 8352 |
|
| 8353 |
;; |
| 8354 |
|
| 8355 |
*-*-nto-qnx*) |
| 8356 |
$as_echo "#define USE_PIPES 1" >>confdefs.h |
| 8357 |
|
| 8358 |
$as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h |
| 8359 |
|
| 8360 |
$as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h |
| 8361 |
|
| 8362 |
$as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h |
| 8363 |
|
| 8364 |
|
| 8365 |
$as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h |
| 8366 |
|
| 8367 |
enable_etc_default_login=no # has incompatible /etc/default/login |
| 8368 |
case "$host" in |
| 8369 |
*-*-nto-qnx6*) |
| 8370 |
$as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h |
| 8371 |
|
| 8372 |
;; |
| 8373 |
esac |
| 8374 |
;; |
| 8375 |
|
| 8376 |
*-*-ultrix*) |
| 8377 |
|
| 8378 |
$as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h |
| 8379 |
|
| 8380 |
|
| 8381 |
$as_echo "#define BROKEN_MMAP 1" >>confdefs.h |
| 8382 |
|
| 8383 |
$as_echo "#define NEED_SETPGRP 1" >>confdefs.h |
| 8384 |
|
| 8385 |
|
| 8386 |
$as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h |
| 8387 |
|
| 8388 |
;; |
| 8389 |
|
| 8390 |
*-*-lynxos) |
| 8391 |
CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" |
| 8392 |
|
| 8393 |
$as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h |
| 8394 |
|
| 8395 |
;; |
| 8396 |
esac |
| 8397 |
|
| 8398 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5 |
| 8399 |
$as_echo_n "checking compiler and flags for sanity... " >&6; } |
| 8400 |
if test "$cross_compiling" = yes; then : |
| 8401 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5 |
| 8402 |
$as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} |
| 8403 |
|
| 8404 |
else |
| 8405 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8406 |
/* end confdefs.h. */ |
| 8407 |
#include <stdio.h> |
| 8408 |
int |
| 8409 |
main () |
| 8410 |
{ |
| 8411 |
exit(0); |
| 8412 |
; |
| 8413 |
return 0; |
| 8414 |
} |
| 8415 |
_ACEOF |
| 8416 |
if ac_fn_c_try_run "$LINENO"; then : |
| 8417 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8418 |
$as_echo "yes" >&6; } |
| 8419 |
else |
| 8420 |
|
| 8421 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8422 |
$as_echo "no" >&6; } |
| 8423 |
as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5 |
| 8424 |
|
| 8425 |
fi |
| 8426 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8427 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8428 |
fi |
| 8429 |
|
| 8430 |
|
| 8431 |
# Checks for libraries. |
| 8432 |
ac_fn_c_check_func "$LINENO" "yp_match" "ac_cv_func_yp_match" |
| 8433 |
if test "x$ac_cv_func_yp_match" = xyes; then : |
| 8434 |
|
| 8435 |
else |
| 8436 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5 |
| 8437 |
$as_echo_n "checking for yp_match in -lnsl... " >&6; } |
| 8438 |
if ${ac_cv_lib_nsl_yp_match+:} false; then : |
| 8439 |
$as_echo_n "(cached) " >&6 |
| 8440 |
else |
| 8441 |
ac_check_lib_save_LIBS=$LIBS |
| 8442 |
LIBS="-lnsl $LIBS" |
| 8443 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8444 |
/* end confdefs.h. */ |
| 8445 |
|
| 8446 |
/* Override any GCC internal prototype to avoid an error. |
| 8447 |
Use char because int might match the return type of a GCC |
| 8448 |
builtin and then its argument prototype would still apply. */ |
| 8449 |
#ifdef __cplusplus |
| 8450 |
extern "C" |
| 8451 |
#endif |
| 8452 |
char yp_match (); |
| 8453 |
int |
| 8454 |
main () |
| 8455 |
{ |
| 8456 |
return yp_match (); |
| 8457 |
; |
| 8458 |
return 0; |
| 8459 |
} |
| 8460 |
_ACEOF |
| 8461 |
if ac_fn_c_try_link "$LINENO"; then : |
| 8462 |
ac_cv_lib_nsl_yp_match=yes |
| 8463 |
else |
| 8464 |
ac_cv_lib_nsl_yp_match=no |
| 8465 |
fi |
| 8466 |
rm -f core conftest.err conftest.$ac_objext \ |
| 8467 |
conftest$ac_exeext conftest.$ac_ext |
| 8468 |
LIBS=$ac_check_lib_save_LIBS |
| 8469 |
fi |
| 8470 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5 |
| 8471 |
$as_echo "$ac_cv_lib_nsl_yp_match" >&6; } |
| 8472 |
if test "x$ac_cv_lib_nsl_yp_match" = xyes; then : |
| 8473 |
cat >>confdefs.h <<_ACEOF |
| 8474 |
#define HAVE_LIBNSL 1 |
| 8475 |
_ACEOF |
| 8476 |
|
| 8477 |
LIBS="-lnsl $LIBS" |
| 8478 |
|
| 8479 |
fi |
| 8480 |
|
| 8481 |
fi |
| 8482 |
|
| 8483 |
ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" |
| 8484 |
if test "x$ac_cv_func_setsockopt" = xyes; then : |
| 8485 |
|
| 8486 |
else |
| 8487 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5 |
| 8488 |
$as_echo_n "checking for setsockopt in -lsocket... " >&6; } |
| 8489 |
if ${ac_cv_lib_socket_setsockopt+:} false; then : |
| 8490 |
$as_echo_n "(cached) " >&6 |
| 8491 |
else |
| 8492 |
ac_check_lib_save_LIBS=$LIBS |
| 8493 |
LIBS="-lsocket $LIBS" |
| 8494 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8495 |
/* end confdefs.h. */ |
| 8496 |
|
| 8497 |
/* Override any GCC internal prototype to avoid an error. |
| 8498 |
Use char because int might match the return type of a GCC |
| 8499 |
builtin and then its argument prototype would still apply. */ |
| 8500 |
#ifdef __cplusplus |
| 8501 |
extern "C" |
| 8502 |
#endif |
| 8503 |
char setsockopt (); |
| 8504 |
int |
| 8505 |
main () |
| 8506 |
{ |
| 8507 |
return setsockopt (); |
| 8508 |
; |
| 8509 |
return 0; |
| 8510 |
} |
| 8511 |
_ACEOF |
| 8512 |
if ac_fn_c_try_link "$LINENO"; then : |
| 8513 |
ac_cv_lib_socket_setsockopt=yes |
| 8514 |
else |
| 8515 |
ac_cv_lib_socket_setsockopt=no |
| 8516 |
fi |
| 8517 |
rm -f core conftest.err conftest.$ac_objext \ |
| 8518 |
conftest$ac_exeext conftest.$ac_ext |
| 8519 |
LIBS=$ac_check_lib_save_LIBS |
| 8520 |
fi |
| 8521 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5 |
| 8522 |
$as_echo "$ac_cv_lib_socket_setsockopt" >&6; } |
| 8523 |
if test "x$ac_cv_lib_socket_setsockopt" = xyes; then : |
| 8524 |
cat >>confdefs.h <<_ACEOF |
| 8525 |
#define HAVE_LIBSOCKET 1 |
| 8526 |
_ACEOF |
| 8527 |
|
| 8528 |
LIBS="-lsocket $LIBS" |
| 8529 |
|
| 8530 |
fi |
| 8531 |
|
| 8532 |
fi |
| 8533 |
|
| 8534 |
|
| 8535 |
for ac_func in dirname |
| 8536 |
do : |
| 8537 |
ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname" |
| 8538 |
if test "x$ac_cv_func_dirname" = xyes; then : |
| 8539 |
cat >>confdefs.h <<_ACEOF |
| 8540 |
#define HAVE_DIRNAME 1 |
| 8541 |
_ACEOF |
| 8542 |
for ac_header in libgen.h |
| 8543 |
do : |
| 8544 |
ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" |
| 8545 |
if test "x$ac_cv_header_libgen_h" = xyes; then : |
| 8546 |
cat >>confdefs.h <<_ACEOF |
| 8547 |
#define HAVE_LIBGEN_H 1 |
| 8548 |
_ACEOF |
| 8549 |
|
| 8550 |
fi |
| 8551 |
|
| 8552 |
done |
| 8553 |
|
| 8554 |
else |
| 8555 |
|
| 8556 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5 |
| 8557 |
$as_echo_n "checking for dirname in -lgen... " >&6; } |
| 8558 |
if ${ac_cv_lib_gen_dirname+:} false; then : |
| 8559 |
$as_echo_n "(cached) " >&6 |
| 8560 |
else |
| 8561 |
ac_check_lib_save_LIBS=$LIBS |
| 8562 |
LIBS="-lgen $LIBS" |
| 8563 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8564 |
/* end confdefs.h. */ |
| 8565 |
|
| 8566 |
/* Override any GCC internal prototype to avoid an error. |
| 8567 |
Use char because int might match the return type of a GCC |
| 8568 |
builtin and then its argument prototype would still apply. */ |
| 8569 |
#ifdef __cplusplus |
| 8570 |
extern "C" |
| 8571 |
#endif |
| 8572 |
char dirname (); |
| 8573 |
int |
| 8574 |
main () |
| 8575 |
{ |
| 8576 |
return dirname (); |
| 8577 |
; |
| 8578 |
return 0; |
| 8579 |
} |
| 8580 |
_ACEOF |
| 8581 |
if ac_fn_c_try_link "$LINENO"; then : |
| 8582 |
ac_cv_lib_gen_dirname=yes |
| 8583 |
else |
| 8584 |
ac_cv_lib_gen_dirname=no |
| 8585 |
fi |
| 8586 |
rm -f core conftest.err conftest.$ac_objext \ |
| 8587 |
conftest$ac_exeext conftest.$ac_ext |
| 8588 |
LIBS=$ac_check_lib_save_LIBS |
| 8589 |
fi |
| 8590 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5 |
| 8591 |
$as_echo "$ac_cv_lib_gen_dirname" >&6; } |
| 8592 |
if test "x$ac_cv_lib_gen_dirname" = xyes; then : |
| 8593 |
|
| 8594 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5 |
| 8595 |
$as_echo_n "checking for broken dirname... " >&6; } |
| 8596 |
if ${ac_cv_have_broken_dirname+:} false; then : |
| 8597 |
$as_echo_n "(cached) " >&6 |
| 8598 |
else |
| 8599 |
|
| 8600 |
save_LIBS="$LIBS" |
| 8601 |
LIBS="$LIBS -lgen" |
| 8602 |
if test "$cross_compiling" = yes; then : |
| 8603 |
ac_cv_have_broken_dirname="no" |
| 8604 |
else |
| 8605 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8606 |
/* end confdefs.h. */ |
| 8607 |
|
| 8608 |
#include <libgen.h> |
| 8609 |
#include <string.h> |
| 8610 |
|
| 8611 |
int main(int argc, char **argv) { |
| 8612 |
char *s, buf[32]; |
| 8613 |
|
| 8614 |
strncpy(buf,"/etc", 32); |
| 8615 |
s = dirname(buf); |
| 8616 |
if (!s || strncmp(s, "/", 32) != 0) { |
| 8617 |
exit(1); |
| 8618 |
} else { |
| 8619 |
exit(0); |
| 8620 |
} |
| 8621 |
} |
| 8622 |
|
| 8623 |
_ACEOF |
| 8624 |
if ac_fn_c_try_run "$LINENO"; then : |
| 8625 |
ac_cv_have_broken_dirname="no" |
| 8626 |
else |
| 8627 |
ac_cv_have_broken_dirname="yes" |
| 8628 |
fi |
| 8629 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8630 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8631 |
fi |
| 8632 |
|
| 8633 |
LIBS="$save_LIBS" |
| 8634 |
|
| 8635 |
fi |
| 8636 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5 |
| 8637 |
$as_echo "$ac_cv_have_broken_dirname" >&6; } |
| 8638 |
if test "x$ac_cv_have_broken_dirname" = "xno" ; then |
| 8639 |
LIBS="$LIBS -lgen" |
| 8640 |
$as_echo "#define HAVE_DIRNAME 1" >>confdefs.h |
| 8641 |
|
| 8642 |
for ac_header in libgen.h |
| 8643 |
do : |
| 8644 |
ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" |
| 8645 |
if test "x$ac_cv_header_libgen_h" = xyes; then : |
| 8646 |
cat >>confdefs.h <<_ACEOF |
| 8647 |
#define HAVE_LIBGEN_H 1 |
| 8648 |
_ACEOF |
| 8649 |
|
| 8650 |
fi |
| 8651 |
|
| 8652 |
done |
| 8653 |
|
| 8654 |
fi |
| 8655 |
|
| 8656 |
fi |
| 8657 |
|
| 8658 |
|
| 8659 |
fi |
| 8660 |
done |
| 8661 |
|
| 8662 |
|
| 8663 |
ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam" |
| 8664 |
if test "x$ac_cv_func_getspnam" = xyes; then : |
| 8665 |
|
| 8666 |
else |
| 8667 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5 |
| 8668 |
$as_echo_n "checking for getspnam in -lgen... " >&6; } |
| 8669 |
if ${ac_cv_lib_gen_getspnam+:} false; then : |
| 8670 |
$as_echo_n "(cached) " >&6 |
| 8671 |
else |
| 8672 |
ac_check_lib_save_LIBS=$LIBS |
| 8673 |
LIBS="-lgen $LIBS" |
| 8674 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8675 |
/* end confdefs.h. */ |
| 8676 |
|
| 8677 |
/* Override any GCC internal prototype to avoid an error. |
| 8678 |
Use char because int might match the return type of a GCC |
| 8679 |
builtin and then its argument prototype would still apply. */ |
| 8680 |
#ifdef __cplusplus |
| 8681 |
extern "C" |
| 8682 |
#endif |
| 8683 |
char getspnam (); |
| 8684 |
int |
| 8685 |
main () |
| 8686 |
{ |
| 8687 |
return getspnam (); |
| 8688 |
; |
| 8689 |
return 0; |
| 8690 |
} |
| 8691 |
_ACEOF |
| 8692 |
if ac_fn_c_try_link "$LINENO"; then : |
| 8693 |
ac_cv_lib_gen_getspnam=yes |
| 8694 |
else |
| 8695 |
ac_cv_lib_gen_getspnam=no |
| 8696 |
fi |
| 8697 |
rm -f core conftest.err conftest.$ac_objext \ |
| 8698 |
conftest$ac_exeext conftest.$ac_ext |
| 8699 |
LIBS=$ac_check_lib_save_LIBS |
| 8700 |
fi |
| 8701 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5 |
| 8702 |
$as_echo "$ac_cv_lib_gen_getspnam" >&6; } |
| 8703 |
if test "x$ac_cv_lib_gen_getspnam" = xyes; then : |
| 8704 |
LIBS="$LIBS -lgen" |
| 8705 |
fi |
| 8706 |
|
| 8707 |
fi |
| 8708 |
|
| 8709 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5 |
| 8710 |
$as_echo_n "checking for library containing basename... " >&6; } |
| 8711 |
if ${ac_cv_search_basename+:} false; then : |
| 8712 |
$as_echo_n "(cached) " >&6 |
| 8713 |
else |
| 8714 |
ac_func_search_save_LIBS=$LIBS |
| 8715 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8716 |
/* end confdefs.h. */ |
| 8717 |
|
| 8718 |
/* Override any GCC internal prototype to avoid an error. |
| 8719 |
Use char because int might match the return type of a GCC |
| 8720 |
builtin and then its argument prototype would still apply. */ |
| 8721 |
#ifdef __cplusplus |
| 8722 |
extern "C" |
| 8723 |
#endif |
| 8724 |
char basename (); |
| 8725 |
int |
| 8726 |
main () |
| 8727 |
{ |
| 8728 |
return basename (); |
| 8729 |
; |
| 8730 |
return 0; |
| 8731 |
} |
| 8732 |
_ACEOF |
| 8733 |
for ac_lib in '' gen; do |
| 8734 |
if test -z "$ac_lib"; then |
| 8735 |
ac_res="none required" |
| 8736 |
else |
| 8737 |
ac_res=-l$ac_lib |
| 8738 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8739 |
fi |
| 8740 |
if ac_fn_c_try_link "$LINENO"; then : |
| 8741 |
ac_cv_search_basename=$ac_res |
| 8742 |
fi |
| 8743 |
rm -f core conftest.err conftest.$ac_objext \ |
| 8744 |
conftest$ac_exeext |
| 8745 |
if ${ac_cv_search_basename+:} false; then : |
| 8746 |
break |
| 8747 |
fi |
| 8748 |
done |
| 8749 |
if ${ac_cv_search_basename+:} false; then : |
| 8750 |
|
| 8751 |
else |
| 8752 |
ac_cv_search_basename=no |
| 8753 |
fi |
| 8754 |
rm conftest.$ac_ext |
| 8755 |
LIBS=$ac_func_search_save_LIBS |
| 8756 |
fi |
| 8757 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5 |
| 8758 |
$as_echo "$ac_cv_search_basename" >&6; } |
| 8759 |
ac_res=$ac_cv_search_basename |
| 8760 |
if test "$ac_res" != no; then : |
| 8761 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8762 |
|
| 8763 |
$as_echo "#define HAVE_BASENAME 1" >>confdefs.h |
| 8764 |
|
| 8765 |
fi |
| 8766 |
|
| 8767 |
|
| 8768 |
|
| 8769 |
# Check whether --with-zlib was given. |
| 8770 |
if test "${with_zlib+set}" = set; then : |
| 8771 |
withval=$with_zlib; if test "x$withval" = "xno" ; then |
| 8772 |
as_fn_error $? "*** zlib is required ***" "$LINENO" 5 |
| 8773 |
elif test "x$withval" != "xyes"; then |
| 8774 |
if test -d "$withval/lib"; then |
| 8775 |
if test -n "${need_dash_r}"; then |
| 8776 |
LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" |
| 8777 |
else |
| 8778 |
LDFLAGS="-L${withval}/lib ${LDFLAGS}" |
| 8779 |
fi |
| 8780 |
else |
| 8781 |
if test -n "${need_dash_r}"; then |
| 8782 |
LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" |
| 8783 |
else |
| 8784 |
LDFLAGS="-L${withval} ${LDFLAGS}" |
| 8785 |
fi |
| 8786 |
fi |
| 8787 |
if test -d "$withval/include"; then |
| 8788 |
CPPFLAGS="-I${withval}/include ${CPPFLAGS}" |
| 8789 |
else |
| 8790 |
CPPFLAGS="-I${withval} ${CPPFLAGS}" |
| 8791 |
fi |
| 8792 |
fi |
| 8793 |
|
| 8794 |
fi |
| 8795 |
|
| 8796 |
|
| 8797 |
ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
| 8798 |
if test "x$ac_cv_header_zlib_h" = xyes; then : |
| 8799 |
|
| 8800 |
else |
| 8801 |
as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5 |
| 8802 |
fi |
| 8803 |
|
| 8804 |
|
| 8805 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 |
| 8806 |
$as_echo_n "checking for deflate in -lz... " >&6; } |
| 8807 |
if ${ac_cv_lib_z_deflate+:} false; then : |
| 8808 |
$as_echo_n "(cached) " >&6 |
| 8809 |
else |
| 8810 |
ac_check_lib_save_LIBS=$LIBS |
| 8811 |
LIBS="-lz $LIBS" |
| 8812 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8813 |
/* end confdefs.h. */ |
| 8814 |
|
| 8815 |
/* Override any GCC internal prototype to avoid an error. |
| 8816 |
Use char because int might match the return type of a GCC |
| 8817 |
builtin and then its argument prototype would still apply. */ |
| 8818 |
#ifdef __cplusplus |
| 8819 |
extern "C" |
| 8820 |
#endif |
| 8821 |
char deflate (); |
| 8822 |
int |
| 8823 |
main () |
| 8824 |
{ |
| 8825 |
return deflate (); |
| 8826 |
; |
| 8827 |
return 0; |
| 8828 |
} |
| 8829 |
_ACEOF |
| 8830 |
if ac_fn_c_try_link "$LINENO"; then : |
| 8831 |
ac_cv_lib_z_deflate=yes |
| 8832 |
else |
| 8833 |
ac_cv_lib_z_deflate=no |
| 8834 |
fi |
| 8835 |
rm -f core conftest.err conftest.$ac_objext \ |
| 8836 |
conftest$ac_exeext conftest.$ac_ext |
| 8837 |
LIBS=$ac_check_lib_save_LIBS |
| 8838 |
fi |
| 8839 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 |
| 8840 |
$as_echo "$ac_cv_lib_z_deflate" >&6; } |
| 8841 |
if test "x$ac_cv_lib_z_deflate" = xyes; then : |
| 8842 |
cat >>confdefs.h <<_ACEOF |
| 8843 |
#define HAVE_LIBZ 1 |
| 8844 |
_ACEOF |
| 8845 |
|
| 8846 |
LIBS="-lz $LIBS" |
| 8847 |
|
| 8848 |
else |
| 8849 |
|
| 8850 |
saved_CPPFLAGS="$CPPFLAGS" |
| 8851 |
saved_LDFLAGS="$LDFLAGS" |
| 8852 |
save_LIBS="$LIBS" |
| 8853 |
if test -n "${need_dash_r}"; then |
| 8854 |
LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" |
| 8855 |
else |
| 8856 |
LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" |
| 8857 |
fi |
| 8858 |
CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" |
| 8859 |
LIBS="$LIBS -lz" |
| 8860 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8861 |
/* end confdefs.h. */ |
| 8862 |
|
| 8863 |
/* Override any GCC internal prototype to avoid an error. |
| 8864 |
Use char because int might match the return type of a GCC |
| 8865 |
builtin and then its argument prototype would still apply. */ |
| 8866 |
#ifdef __cplusplus |
| 8867 |
extern "C" |
| 8868 |
#endif |
| 8869 |
char deflate (); |
| 8870 |
int |
| 8871 |
main () |
| 8872 |
{ |
| 8873 |
return deflate (); |
| 8874 |
; |
| 8875 |
return 0; |
| 8876 |
} |
| 8877 |
_ACEOF |
| 8878 |
if ac_fn_c_try_link "$LINENO"; then : |
| 8879 |
$as_echo "#define HAVE_LIBZ 1" >>confdefs.h |
| 8880 |
|
| 8881 |
else |
| 8882 |
|
| 8883 |
as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5 |
| 8884 |
|
| 8885 |
|
| 8886 |
fi |
| 8887 |
rm -f core conftest.err conftest.$ac_objext \ |
| 8888 |
conftest$ac_exeext conftest.$ac_ext |
| 8889 |
|
| 8890 |
|
| 8891 |
fi |
| 8892 |
|
| 8893 |
|
| 8894 |
|
| 8895 |
# Check whether --with-zlib-version-check was given. |
| 8896 |
if test "${with_zlib_version_check+set}" = set; then : |
| 8897 |
withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then |
| 8898 |
zlib_check_nonfatal=1 |
| 8899 |
fi |
| 8900 |
|
| 8901 |
|
| 8902 |
fi |
| 8903 |
|
| 8904 |
|
| 8905 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5 |
| 8906 |
$as_echo_n "checking for possibly buggy zlib... " >&6; } |
| 8907 |
if test "$cross_compiling" = yes; then : |
| 8908 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5 |
| 8909 |
$as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} |
| 8910 |
|
| 8911 |
else |
| 8912 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8913 |
/* end confdefs.h. */ |
| 8914 |
|
| 8915 |
#include <stdio.h> |
| 8916 |
#include <stdlib.h> |
| 8917 |
#include <zlib.h> |
| 8918 |
|
| 8919 |
int |
| 8920 |
main () |
| 8921 |
{ |
| 8922 |
|
| 8923 |
int a=0, b=0, c=0, d=0, n, v; |
| 8924 |
n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); |
| •8925 |
if (n != 2 && n != 3 && n != 4) |
| 8926 |
exit(1); |
| 8927 |
v = a*1000000 + b*10000 + c*100 + d; |
| 8928 |
fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); |
| 8929 |
|
| 8930 |
/* 1.1.4 is OK */ |
| 8931 |
if (a == 1 && b == 1 && c >= 4) |
| 8932 |
exit(0); |
| 8933 |
|
| 8934 |
/* 1.2.3 and up are OK */ |
| 8935 |
if (v >= 1020300) |
| 8936 |
exit(0); |
| 8937 |
|
| 8938 |
exit(2); |
| 8939 |
|
| 8940 |
; |
| 8941 |
return 0; |
| 8942 |
} |
| 8943 |
_ACEOF |
| 8944 |
if ac_fn_c_try_run "$LINENO"; then : |
| 8945 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8946 |
$as_echo "no" >&6; } |
| 8947 |
else |
| 8948 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8949 |
$as_echo "yes" >&6; } |
| 8950 |
if test -z "$zlib_check_nonfatal" ; then |
| 8951 |
as_fn_error $? "*** zlib too old - check config.log *** |
| 8952 |
Your reported zlib version has known security problems. It's possible your |
| 8953 |
vendor has fixed these problems without changing the version number. If you |
| 8954 |
are sure this is the case, you can disable the check by running |
| 8955 |
\"./configure --without-zlib-version-check\". |
| 8956 |
If you are in doubt, upgrade zlib to version 1.2.3 or greater. |
| 8957 |
See http://www.gzip.org/zlib/ for details." "$LINENO" 5 |
| 8958 |
else |
| 8959 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5 |
| 8960 |
$as_echo "$as_me: WARNING: zlib version may have security problems" >&2;} |
| 8961 |
fi |
| 8962 |
|
| 8963 |
fi |
| 8964 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8965 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8966 |
fi |
| 8967 |
|
| 8968 |
|
| 8969 |
ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" |
| 8970 |
if test "x$ac_cv_func_strcasecmp" = xyes; then : |
| 8971 |
|
| 8972 |
else |
| 8973 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5 |
| 8974 |
$as_echo_n "checking for strcasecmp in -lresolv... " >&6; } |
| 8975 |
if ${ac_cv_lib_resolv_strcasecmp+:} false; then : |
| 8976 |
$as_echo_n "(cached) " >&6 |
| 8977 |
else |
| 8978 |
ac_check_lib_save_LIBS=$LIBS |
| 8979 |
LIBS="-lresolv $LIBS" |
| 8980 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8981 |
/* end confdefs.h. */ |
| 8982 |
|
| 8983 |
/* Override any GCC internal prototype to avoid an error. |
| 8984 |
Use char because int might match the return type of a GCC |
| 8985 |
builtin and then its argument prototype would still apply. */ |
| 8986 |
#ifdef __cplusplus |
| 8987 |
extern "C" |
| 8988 |
#endif |
| 8989 |
char strcasecmp (); |
| 8990 |
int |
| 8991 |
main () |
| 8992 |
{ |
| 8993 |
return strcasecmp (); |
| 8994 |
; |
| 8995 |
return 0; |
| 8996 |
} |
| 8997 |
_ACEOF |
| 8998 |
if ac_fn_c_try_link "$LINENO"; then : |
| 8999 |
ac_cv_lib_resolv_strcasecmp=yes |
| 9000 |
else |
| 9001 |
ac_cv_lib_resolv_strcasecmp=no |
| 9002 |
fi |
| 9003 |
rm -f core conftest.err conftest.$ac_objext \ |
| 9004 |
conftest$ac_exeext conftest.$ac_ext |
| 9005 |
LIBS=$ac_check_lib_save_LIBS |
| 9006 |
fi |
| 9007 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5 |
| 9008 |
$as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; } |
| 9009 |
if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then : |
| 9010 |
LIBS="$LIBS -lresolv" |
| 9011 |
fi |
| 9012 |
|
| 9013 |
|
| 9014 |
fi |
| 9015 |
|
| 9016 |
for ac_func in utimes |
| 9017 |
do : |
| 9018 |
ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" |
| 9019 |
if test "x$ac_cv_func_utimes" = xyes; then : |
| 9020 |
cat >>confdefs.h <<_ACEOF |
| 9021 |
#define HAVE_UTIMES 1 |
| 9022 |
_ACEOF |
| 9023 |
|
| 9024 |
else |
| 9025 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5 |
| 9026 |
$as_echo_n "checking for utimes in -lc89... " >&6; } |
| 9027 |
if ${ac_cv_lib_c89_utimes+:} false; then : |
| 9028 |
$as_echo_n "(cached) " >&6 |
| 9029 |
else |
| 9030 |
ac_check_lib_save_LIBS=$LIBS |
| 9031 |
LIBS="-lc89 $LIBS" |
| 9032 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9033 |
/* end confdefs.h. */ |
| 9034 |
|
| 9035 |
/* Override any GCC internal prototype to avoid an error. |
| 9036 |
Use char because int might match the return type of a GCC |
| 9037 |
builtin and then its argument prototype would still apply. */ |
| 9038 |
#ifdef __cplusplus |
| 9039 |
extern "C" |
| 9040 |
#endif |
| 9041 |
char utimes (); |
| 9042 |
int |
| 9043 |
main () |
| 9044 |
{ |
| 9045 |
return utimes (); |
| 9046 |
; |
| 9047 |
return 0; |
| 9048 |
} |
| 9049 |
_ACEOF |
| 9050 |
if ac_fn_c_try_link "$LINENO"; then : |
| 9051 |
ac_cv_lib_c89_utimes=yes |
| 9052 |
else |
| 9053 |
ac_cv_lib_c89_utimes=no |
| 9054 |
fi |
| 9055 |
rm -f core conftest.err conftest.$ac_objext \ |
| 9056 |
conftest$ac_exeext conftest.$ac_ext |
| 9057 |
LIBS=$ac_check_lib_save_LIBS |
| 9058 |
fi |
| 9059 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5 |
| 9060 |
$as_echo "$ac_cv_lib_c89_utimes" >&6; } |
| 9061 |
if test "x$ac_cv_lib_c89_utimes" = xyes; then : |
| 9062 |
$as_echo "#define HAVE_UTIMES 1" >>confdefs.h |
| 9063 |
|
| 9064 |
LIBS="$LIBS -lc89" |
| 9065 |
fi |
| 9066 |
|
| 9067 |
|
| 9068 |
fi |
| 9069 |
done |
| 9070 |
|
| 9071 |
|
| 9072 |
for ac_header in bsd/libutil.h libutil.h |
| 9073 |
do : |
| 9074 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9075 |
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 9076 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 9077 |
cat >>confdefs.h <<_ACEOF |
| 9078 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9079 |
_ACEOF |
| 9080 |
|
| 9081 |
fi |
| 9082 |
|
| 9083 |
done |
| 9084 |
|
| 9085 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5 |
| 9086 |
$as_echo_n "checking for library containing fmt_scaled... " >&6; } |
| 9087 |
if ${ac_cv_search_fmt_scaled+:} false; then : |
| 9088 |
$as_echo_n "(cached) " >&6 |
| 9089 |
else |
| 9090 |
ac_func_search_save_LIBS=$LIBS |
| 9091 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9092 |
/* end confdefs.h. */ |
| 9093 |
|
| 9094 |
/* Override any GCC internal prototype to avoid an error. |
| 9095 |
Use char because int might match the return type of a GCC |
| 9096 |
builtin and then its argument prototype would still apply. */ |
| 9097 |
#ifdef __cplusplus |
| 9098 |
extern "C" |
| 9099 |
#endif |
| 9100 |
char fmt_scaled (); |
| 9101 |
int |
| 9102 |
main () |
| 9103 |
{ |
| 9104 |
return fmt_scaled (); |
| 9105 |
; |
| 9106 |
return 0; |
| 9107 |
} |
| 9108 |
_ACEOF |
| 9109 |
for ac_lib in '' util bsd; do |
| 9110 |
if test -z "$ac_lib"; then |
| 9111 |
ac_res="none required" |
| 9112 |
else |
| 9113 |
ac_res=-l$ac_lib |
| 9114 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9115 |
fi |
| 9116 |
if ac_fn_c_try_link "$LINENO"; then : |
| 9117 |
ac_cv_search_fmt_scaled=$ac_res |
| 9118 |
fi |
| 9119 |
rm -f core conftest.err conftest.$ac_objext \ |
| 9120 |
conftest$ac_exeext |
| 9121 |
if ${ac_cv_search_fmt_scaled+:} false; then : |
| 9122 |
break |
| 9123 |
fi |
| 9124 |
done |
| 9125 |
if ${ac_cv_search_fmt_scaled+:} false; then : |
| 9126 |
|
| 9127 |
else |
| 9128 |
ac_cv_search_fmt_scaled=no |
| 9129 |
fi |
| 9130 |
rm conftest.$ac_ext |
| 9131 |
LIBS=$ac_func_search_save_LIBS |
| 9132 |
fi |
| 9133 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5 |
| 9134 |
$as_echo "$ac_cv_search_fmt_scaled" >&6; } |
| 9135 |
ac_res=$ac_cv_search_fmt_scaled |
| 9136 |
if test "$ac_res" != no; then : |
| 9137 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9138 |
|
| 9139 |
fi |
| 9140 |
|
| 9141 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing scan_scaled" >&5 |
| 9142 |
$as_echo_n "checking for library containing scan_scaled... " >&6; } |
| 9143 |
if ${ac_cv_search_scan_scaled+:} false; then : |
| 9144 |
$as_echo_n "(cached) " >&6 |
| 9145 |
else |
| 9146 |
ac_func_search_save_LIBS=$LIBS |
| 9147 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9148 |
/* end confdefs.h. */ |
| 9149 |
|
| 9150 |
/* Override any GCC internal prototype to avoid an error. |
| 9151 |
Use char because int might match the return type of a GCC |
| 9152 |
builtin and then its argument prototype would still apply. */ |
| 9153 |
#ifdef __cplusplus |
| 9154 |
extern "C" |
| 9155 |
#endif |
| 9156 |
char scan_scaled (); |
| 9157 |
int |
| 9158 |
main () |
| 9159 |
{ |
| 9160 |
return scan_scaled (); |
| 9161 |
; |
| 9162 |
return 0; |
| 9163 |
} |
| 9164 |
_ACEOF |
| 9165 |
for ac_lib in '' util bsd; do |
| 9166 |
if test -z "$ac_lib"; then |
| 9167 |
ac_res="none required" |
| 9168 |
else |
| 9169 |
ac_res=-l$ac_lib |
| 9170 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9171 |
fi |
| 9172 |
if ac_fn_c_try_link "$LINENO"; then : |
| 9173 |
ac_cv_search_scan_scaled=$ac_res |
| 9174 |
fi |
| 9175 |
rm -f core conftest.err conftest.$ac_objext \ |
| 9176 |
conftest$ac_exeext |
| 9177 |
if ${ac_cv_search_scan_scaled+:} false; then : |
| 9178 |
break |
| 9179 |
fi |
| 9180 |
done |
| 9181 |
if ${ac_cv_search_scan_scaled+:} false; then : |
| 9182 |
|
| 9183 |
else |
| 9184 |
ac_cv_search_scan_scaled=no |
| 9185 |
fi |
| 9186 |
rm conftest.$ac_ext |
| 9187 |
LIBS=$ac_func_search_save_LIBS |
| 9188 |
fi |
| 9189 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_scan_scaled" >&5 |
| 9190 |
$as_echo "$ac_cv_search_scan_scaled" >&6; } |
| 9191 |
ac_res=$ac_cv_search_scan_scaled |
| 9192 |
if test "$ac_res" != no; then : |
| 9193 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9194 |
|
| 9195 |
fi |
| 9196 |
|
| 9197 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5 |
| 9198 |
$as_echo_n "checking for library containing login... " >&6; } |
| 9199 |
if ${ac_cv_search_login+:} false; then : |
| 9200 |
$as_echo_n "(cached) " >&6 |
| 9201 |
else |
| 9202 |
ac_func_search_save_LIBS=$LIBS |
| 9203 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9204 |
/* end confdefs.h. */ |
| 9205 |
|
| 9206 |
/* Override any GCC internal prototype to avoid an error. |
| 9207 |
Use char because int might match the return type of a GCC |
| 9208 |
builtin and then its argument prototype would still apply. */ |
| 9209 |
#ifdef __cplusplus |
| 9210 |
extern "C" |
| 9211 |
#endif |
| 9212 |
char login (); |
| 9213 |
int |
| 9214 |
main () |
| 9215 |
{ |
| 9216 |
return login (); |
| 9217 |
; |
| 9218 |
return 0; |
| 9219 |
} |
| 9220 |
_ACEOF |
| 9221 |
for ac_lib in '' util bsd; do |
| 9222 |
if test -z "$ac_lib"; then |
| 9223 |
ac_res="none required" |
| 9224 |
else |
| 9225 |
ac_res=-l$ac_lib |
| 9226 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9227 |
fi |
| 9228 |
if ac_fn_c_try_link "$LINENO"; then : |
| 9229 |
ac_cv_search_login=$ac_res |
| 9230 |
fi |
| 9231 |
rm -f core conftest.err conftest.$ac_objext \ |
| 9232 |
conftest$ac_exeext |
| 9233 |
if ${ac_cv_search_login+:} false; then : |
| 9234 |
break |
| 9235 |
fi |
| 9236 |
done |
| 9237 |
if ${ac_cv_search_login+:} false; then : |
| 9238 |
|
| 9239 |
else |
| 9240 |
ac_cv_search_login=no |
| 9241 |
fi |
| 9242 |
rm conftest.$ac_ext |
| 9243 |
LIBS=$ac_func_search_save_LIBS |
| 9244 |
fi |
| 9245 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5 |
| 9246 |
$as_echo "$ac_cv_search_login" >&6; } |
| 9247 |
ac_res=$ac_cv_search_login |
| 9248 |
if test "$ac_res" != no; then : |
| 9249 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9250 |
|
| 9251 |
fi |
| 9252 |
|
| 9253 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logout" >&5 |
| 9254 |
$as_echo_n "checking for library containing logout... " >&6; } |
| 9255 |
if ${ac_cv_search_logout+:} false; then : |
| 9256 |
$as_echo_n "(cached) " >&6 |
| 9257 |
else |
| 9258 |
ac_func_search_save_LIBS=$LIBS |
| 9259 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9260 |
/* end confdefs.h. */ |
| 9261 |
|
| 9262 |
/* Override any GCC internal prototype to avoid an error. |
| 9263 |
Use char because int might match the return type of a GCC |
| 9264 |
builtin and then its argument prototype would still apply. */ |
| 9265 |
#ifdef __cplusplus |
| 9266 |
extern "C" |
| 9267 |
#endif |
| 9268 |
char logout (); |
| 9269 |
int |
| 9270 |
main () |
| 9271 |
{ |
| 9272 |
return logout (); |
| 9273 |
; |
| 9274 |
return 0; |
| 9275 |
} |
| 9276 |
_ACEOF |
| 9277 |
for ac_lib in '' util bsd; do |
| 9278 |
if test -z "$ac_lib"; then |
| 9279 |
ac_res="none required" |
| 9280 |
else |
| 9281 |
ac_res=-l$ac_lib |
| 9282 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9283 |
fi |
| 9284 |
if ac_fn_c_try_link "$LINENO"; then : |
| 9285 |
ac_cv_search_logout=$ac_res |
| 9286 |
fi |
| 9287 |
rm -f core conftest.err conftest.$ac_objext \ |
| 9288 |
conftest$ac_exeext |
| 9289 |
if ${ac_cv_search_logout+:} false; then : |
| 9290 |
break |
| 9291 |
fi |
| 9292 |
done |
| 9293 |
if ${ac_cv_search_logout+:} false; then : |
| 9294 |
|
| 9295 |
else |
| 9296 |
ac_cv_search_logout=no |
| 9297 |
fi |
| 9298 |
rm conftest.$ac_ext |
| 9299 |
LIBS=$ac_func_search_save_LIBS |
| 9300 |
fi |
| 9301 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logout" >&5 |
| 9302 |
$as_echo "$ac_cv_search_logout" >&6; } |
| 9303 |
ac_res=$ac_cv_search_logout |
| 9304 |
if test "$ac_res" != no; then : |
| 9305 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9306 |
|
| 9307 |
fi |
| 9308 |
|
| 9309 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logwtmp" >&5 |
| 9310 |
$as_echo_n "checking for library containing logwtmp... " >&6; } |
| 9311 |
if ${ac_cv_search_logwtmp+:} false; then : |
| 9312 |
$as_echo_n "(cached) " >&6 |
| 9313 |
else |
| 9314 |
ac_func_search_save_LIBS=$LIBS |
| 9315 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9316 |
/* end confdefs.h. */ |
| 9317 |
|
| 9318 |
/* Override any GCC internal prototype to avoid an error. |
| 9319 |
Use char because int might match the return type of a GCC |
| 9320 |
builtin and then its argument prototype would still apply. */ |
| 9321 |
#ifdef __cplusplus |
| 9322 |
extern "C" |
| 9323 |
#endif |
| 9324 |
char logwtmp (); |
| 9325 |
int |
| 9326 |
main () |
| 9327 |
{ |
| 9328 |
return logwtmp (); |
| 9329 |
; |
| 9330 |
return 0; |
| 9331 |
} |
| 9332 |
_ACEOF |
| 9333 |
for ac_lib in '' util bsd; do |
| 9334 |
if test -z "$ac_lib"; then |
| 9335 |
ac_res="none required" |
| 9336 |
else |
| 9337 |
ac_res=-l$ac_lib |
| 9338 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9339 |
fi |
| 9340 |
if ac_fn_c_try_link "$LINENO"; then : |
| 9341 |
ac_cv_search_logwtmp=$ac_res |
| 9342 |
fi |
| 9343 |
rm -f core conftest.err conftest.$ac_objext \ |
| 9344 |
conftest$ac_exeext |
| 9345 |
if ${ac_cv_search_logwtmp+:} false; then : |
| 9346 |
break |
| 9347 |
fi |
| 9348 |
done |
| 9349 |
if ${ac_cv_search_logwtmp+:} false; then : |
| 9350 |
|
| 9351 |
else |
| 9352 |
ac_cv_search_logwtmp=no |
| 9353 |
fi |
| 9354 |
rm conftest.$ac_ext |
| 9355 |
LIBS=$ac_func_search_save_LIBS |
| 9356 |
fi |
| 9357 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logwtmp" >&5 |
| 9358 |
$as_echo "$ac_cv_search_logwtmp" >&6; } |
| 9359 |
ac_res=$ac_cv_search_logwtmp |
| 9360 |
if test "$ac_res" != no; then : |
| 9361 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9362 |
|
| 9363 |
fi |
| 9364 |
|
| 9365 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 |
| 9366 |
$as_echo_n "checking for library containing openpty... " >&6; } |
| 9367 |
if ${ac_cv_search_openpty+:} false; then : |
| 9368 |
$as_echo_n "(cached) " >&6 |
| 9369 |
else |
| 9370 |
ac_func_search_save_LIBS=$LIBS |
| 9371 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9372 |
/* end confdefs.h. */ |
| 9373 |
|
| 9374 |
/* Override any GCC internal prototype to avoid an error. |
| 9375 |
Use char because int might match the return type of a GCC |
| 9376 |
builtin and then its argument prototype would still apply. */ |
| 9377 |
#ifdef __cplusplus |
| 9378 |
extern "C" |
| 9379 |
#endif |
| 9380 |
char openpty (); |
| 9381 |
int |
| 9382 |
main () |
| 9383 |
{ |
| 9384 |
return openpty (); |
| 9385 |
; |
| 9386 |
return 0; |
| 9387 |
} |
| 9388 |
_ACEOF |
| 9389 |
for ac_lib in '' util bsd; do |
| 9390 |
if test -z "$ac_lib"; then |
| 9391 |
ac_res="none required" |
| 9392 |
else |
| 9393 |
ac_res=-l$ac_lib |
| 9394 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9395 |
fi |
| 9396 |
if ac_fn_c_try_link "$LINENO"; then : |
| 9397 |
ac_cv_search_openpty=$ac_res |
| 9398 |
fi |
| 9399 |
rm -f core conftest.err conftest.$ac_objext \ |
| 9400 |
conftest$ac_exeext |
| 9401 |
if ${ac_cv_search_openpty+:} false; then : |
| 9402 |
break |
| 9403 |
fi |
| 9404 |
done |
| 9405 |
if ${ac_cv_search_openpty+:} false; then : |
| 9406 |
|
| 9407 |
else |
| 9408 |
ac_cv_search_openpty=no |
| 9409 |
fi |
| 9410 |
rm conftest.$ac_ext |
| 9411 |
LIBS=$ac_func_search_save_LIBS |
| 9412 |
fi |
| 9413 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 |
| 9414 |
$as_echo "$ac_cv_search_openpty" >&6; } |
| 9415 |
ac_res=$ac_cv_search_openpty |
| 9416 |
if test "$ac_res" != no; then : |
| 9417 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9418 |
|
| 9419 |
fi |
| 9420 |
|
| 9421 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing updwtmp" >&5 |
| 9422 |
$as_echo_n "checking for library containing updwtmp... " >&6; } |
| 9423 |
if ${ac_cv_search_updwtmp+:} false; then : |
| 9424 |
$as_echo_n "(cached) " >&6 |
| 9425 |
else |
| 9426 |
ac_func_search_save_LIBS=$LIBS |
| 9427 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9428 |
/* end confdefs.h. */ |
| 9429 |
|
| 9430 |
/* Override any GCC internal prototype to avoid an error. |
| 9431 |
Use char because int might match the return type of a GCC |
| 9432 |
builtin and then its argument prototype would still apply. */ |
| 9433 |
#ifdef __cplusplus |
| 9434 |
extern "C" |
| 9435 |
#endif |
| 9436 |
char updwtmp (); |
| 9437 |
int |
| 9438 |
main () |
| 9439 |
{ |
| 9440 |
return updwtmp (); |
| 9441 |
; |
| 9442 |
return 0; |
| 9443 |
} |
| 9444 |
_ACEOF |
| 9445 |
for ac_lib in '' util bsd; do |
| 9446 |
if test -z "$ac_lib"; then |
| 9447 |
ac_res="none required" |
| 9448 |
else |
| 9449 |
ac_res=-l$ac_lib |
| 9450 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9451 |
fi |
| 9452 |
if ac_fn_c_try_link "$LINENO"; then : |
| 9453 |
ac_cv_search_updwtmp=$ac_res |
| 9454 |
fi |
| 9455 |
rm -f core conftest.err conftest.$ac_objext \ |
| 9456 |
conftest$ac_exeext |
| 9457 |
if ${ac_cv_search_updwtmp+:} false; then : |
| 9458 |
break |
| 9459 |
fi |
| 9460 |
done |
| 9461 |
if ${ac_cv_search_updwtmp+:} false; then : |
| 9462 |
|
| 9463 |
else |
| 9464 |
ac_cv_search_updwtmp=no |
| 9465 |
fi |
| 9466 |
rm conftest.$ac_ext |
| 9467 |
LIBS=$ac_func_search_save_LIBS |
| 9468 |
fi |
| 9469 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_updwtmp" >&5 |
| 9470 |
$as_echo "$ac_cv_search_updwtmp" >&6; } |
| 9471 |
ac_res=$ac_cv_search_updwtmp |
| 9472 |
if test "$ac_res" != no; then : |
| 9473 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9474 |
|
| 9475 |
fi |
| 9476 |
|
| 9477 |
for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp |
| 9478 |
do : |
| 9479 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9480 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9481 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 9482 |
cat >>confdefs.h <<_ACEOF |
| 9483 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9484 |
_ACEOF |
| 9485 |
|
| 9486 |
fi |
| 9487 |
done |
| 9488 |
|
| 9489 |
|
| 9490 |
# On some platforms, inet_ntop may be found in libresolv or libnsl. |
| 9491 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 |
| 9492 |
$as_echo_n "checking for library containing inet_ntop... " >&6; } |
| 9493 |
if ${ac_cv_search_inet_ntop+:} false; then : |
| 9494 |
$as_echo_n "(cached) " >&6 |
| 9495 |
else |
| 9496 |
ac_func_search_save_LIBS=$LIBS |
| 9497 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9498 |
/* end confdefs.h. */ |
| 9499 |
|
| 9500 |
/* Override any GCC internal prototype to avoid an error. |
| 9501 |
Use char because int might match the return type of a GCC |
| 9502 |
builtin and then its argument prototype would still apply. */ |
| 9503 |
#ifdef __cplusplus |
| 9504 |
extern "C" |
| 9505 |
#endif |
| 9506 |
char inet_ntop (); |
| 9507 |
int |
| 9508 |
main () |
| 9509 |
{ |
| 9510 |
return inet_ntop (); |
| 9511 |
; |
| 9512 |
return 0; |
| 9513 |
} |
| 9514 |
_ACEOF |
| 9515 |
for ac_lib in '' resolv nsl; do |
| 9516 |
if test -z "$ac_lib"; then |
| 9517 |
ac_res="none required" |
| 9518 |
else |
| 9519 |
ac_res=-l$ac_lib |
| 9520 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9521 |
fi |
| 9522 |
if ac_fn_c_try_link "$LINENO"; then : |
| 9523 |
ac_cv_search_inet_ntop=$ac_res |
| 9524 |
fi |
| 9525 |
rm -f core conftest.err conftest.$ac_objext \ |
| 9526 |
conftest$ac_exeext |
| 9527 |
if ${ac_cv_search_inet_ntop+:} false; then : |
| 9528 |
break |
| 9529 |
fi |
| 9530 |
done |
| 9531 |
if ${ac_cv_search_inet_ntop+:} false; then : |
| 9532 |
|
| 9533 |
else |
| 9534 |
ac_cv_search_inet_ntop=no |
| 9535 |
fi |
| 9536 |
rm conftest.$ac_ext |
| 9537 |
LIBS=$ac_func_search_save_LIBS |
| 9538 |
fi |
| 9539 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 |
| 9540 |
$as_echo "$ac_cv_search_inet_ntop" >&6; } |
| 9541 |
ac_res=$ac_cv_search_inet_ntop |
| 9542 |
if test "$ac_res" != no; then : |
| 9543 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9544 |
|
| 9545 |
fi |
| 9546 |
|
| 9547 |
|
| 9548 |
for ac_func in strftime |
| 9549 |
do : |
| 9550 |
ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" |
| 9551 |
if test "x$ac_cv_func_strftime" = xyes; then : |
| 9552 |
cat >>confdefs.h <<_ACEOF |
| 9553 |
#define HAVE_STRFTIME 1 |
| 9554 |
_ACEOF |
| 9555 |
|
| 9556 |
else |
| 9557 |
# strftime is in -lintl on SCO UNIX. |
| 9558 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 |
| 9559 |
$as_echo_n "checking for strftime in -lintl... " >&6; } |
| 9560 |
if ${ac_cv_lib_intl_strftime+:} false; then : |
| 9561 |
$as_echo_n "(cached) " >&6 |
| 9562 |
else |
| 9563 |
ac_check_lib_save_LIBS=$LIBS |
| 9564 |
LIBS="-lintl $LIBS" |
| 9565 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9566 |
/* end confdefs.h. */ |
| 9567 |
|
| 9568 |
/* Override any GCC internal prototype to avoid an error. |
| 9569 |
Use char because int might match the return type of a GCC |
| 9570 |
builtin and then its argument prototype would still apply. */ |
| 9571 |
#ifdef __cplusplus |
| 9572 |
extern "C" |
| 9573 |
#endif |
| 9574 |
char strftime (); |
| 9575 |
int |
| 9576 |
main () |
| 9577 |
{ |
| 9578 |
return strftime (); |
| 9579 |
; |
| 9580 |
return 0; |
| 9581 |
} |
| 9582 |
_ACEOF |
| 9583 |
if ac_fn_c_try_link "$LINENO"; then : |
| 9584 |
ac_cv_lib_intl_strftime=yes |
| 9585 |
else |
| 9586 |
ac_cv_lib_intl_strftime=no |
| 9587 |
fi |
| 9588 |
rm -f core conftest.err conftest.$ac_objext \ |
| 9589 |
conftest$ac_exeext conftest.$ac_ext |
| 9590 |
LIBS=$ac_check_lib_save_LIBS |
| 9591 |
fi |
| 9592 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 |
| 9593 |
$as_echo "$ac_cv_lib_intl_strftime" >&6; } |
| 9594 |
if test "x$ac_cv_lib_intl_strftime" = xyes; then : |
| 9595 |
$as_echo "#define HAVE_STRFTIME 1" >>confdefs.h |
| 9596 |
|
| 9597 |
LIBS="-lintl $LIBS" |
| 9598 |
fi |
| 9599 |
|
| 9600 |
fi |
| 9601 |
done |
| 9602 |
|
| 9603 |
|
| 9604 |
# Check for ALTDIRFUNC glob() extension |
| 9605 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5 |
| 9606 |
$as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; } |
| 9607 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9608 |
/* end confdefs.h. */ |
| 9609 |
|
| 9610 |
#include <glob.h> |
| 9611 |
#ifdef GLOB_ALTDIRFUNC |
| 9612 |
FOUNDIT |
| 9613 |
#endif |
| 9614 |
|
| 9615 |
_ACEOF |
| 9616 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9617 |
$EGREP "FOUNDIT" >/dev/null 2>&1; then : |
| 9618 |
|
| 9619 |
|
| 9620 |
$as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h |
| 9621 |
|
| 9622 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9623 |
$as_echo "yes" >&6; } |
| 9624 |
|
| 9625 |
else |
| 9626 |
|
| 9627 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9628 |
$as_echo "no" >&6; } |
| 9629 |
|
| 9630 |
|
| 9631 |
fi |
| 9632 |
rm -f conftest* |
| 9633 |
|
| 9634 |
|
| 9635 |
# Check for g.gl_matchc glob() extension |
| 9636 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5 |
| 9637 |
$as_echo_n "checking for gl_matchc field in glob_t... " >&6; } |
| 9638 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9639 |
/* end confdefs.h. */ |
| 9640 |
#include <glob.h> |
| 9641 |
int |
| 9642 |
main () |
| 9643 |
{ |
| 9644 |
glob_t g; g.gl_matchc = 1; |
| 9645 |
; |
| 9646 |
return 0; |
| 9647 |
} |
| 9648 |
_ACEOF |
| 9649 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 9650 |
|
| 9651 |
|
| 9652 |
$as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h |
| 9653 |
|
| 9654 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9655 |
$as_echo "yes" >&6; } |
| 9656 |
|
| 9657 |
else |
| 9658 |
|
| 9659 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9660 |
$as_echo "no" >&6; } |
| 9661 |
|
| 9662 |
fi |
| 9663 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9664 |
|
| 9665 |
# Check for g.gl_statv glob() extension |
| 9666 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5 |
| 9667 |
$as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; } |
| 9668 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9669 |
/* end confdefs.h. */ |
| 9670 |
#include <glob.h> |
| 9671 |
int |
| 9672 |
main () |
| 9673 |
{ |
| 9674 |
|
| 9675 |
#ifndef GLOB_KEEPSTAT |
| 9676 |
#error "glob does not support GLOB_KEEPSTAT extension" |
| 9677 |
#endif |
| 9678 |
glob_t g; |
| 9679 |
g.gl_statv = NULL; |
| 9680 |
|
| 9681 |
; |
| 9682 |
return 0; |
| 9683 |
} |
| 9684 |
_ACEOF |
| 9685 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 9686 |
|
| 9687 |
|
| 9688 |
$as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h |
| 9689 |
|
| 9690 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9691 |
$as_echo "yes" >&6; } |
| 9692 |
|
| 9693 |
else |
| 9694 |
|
| 9695 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9696 |
$as_echo "no" >&6; } |
| 9697 |
|
| 9698 |
|
| 9699 |
fi |
| 9700 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9701 |
|
| 9702 |
ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h> |
| 9703 |
" |
| 9704 |
if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then : |
| 9705 |
ac_have_decl=1 |
| 9706 |
else |
| 9707 |
ac_have_decl=0 |
| 9708 |
fi |
| 9709 |
|
| 9710 |
cat >>confdefs.h <<_ACEOF |
| 9711 |
#define HAVE_DECL_GLOB_NOMATCH $ac_have_decl |
| 9712 |
_ACEOF |
| 9713 |
|
| 9714 |
|
| 9715 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5 |
| 9716 |
$as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; } |
| 9717 |
if test "$cross_compiling" = yes; then : |
| 9718 |
|
| 9719 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 |
| 9720 |
$as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} |
| 9721 |
$as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h |
| 9722 |
|
| 9723 |
|
| 9724 |
|
| 9725 |
else |
| 9726 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9727 |
/* end confdefs.h. */ |
| 9728 |
|
| 9729 |
#include <sys/types.h> |
| 9730 |
#include <dirent.h> |
| 9731 |
int |
| 9732 |
main () |
| 9733 |
{ |
| 9734 |
|
| 9735 |
struct dirent d; |
| 9736 |
exit(sizeof(d.d_name)<=sizeof(char)); |
| 9737 |
|
| 9738 |
; |
| 9739 |
return 0; |
| 9740 |
} |
| 9741 |
_ACEOF |
| 9742 |
if ac_fn_c_try_run "$LINENO"; then : |
| 9743 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9744 |
$as_echo "yes" >&6; } |
| 9745 |
else |
| 9746 |
|
| 9747 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9748 |
$as_echo "no" >&6; } |
| 9749 |
|
| 9750 |
$as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h |
| 9751 |
|
| 9752 |
|
| 9753 |
fi |
| 9754 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9755 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9756 |
fi |
| 9757 |
|
| 9758 |
|
| 9759 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5 |
| 9760 |
$as_echo_n "checking for /proc/pid/fd directory... " >&6; } |
| 9761 |
if test -d "/proc/$$/fd" ; then |
| 9762 |
|
| 9763 |
$as_echo "#define HAVE_PROC_PID 1" >>confdefs.h |
| 9764 |
|
| 9765 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9766 |
$as_echo "yes" >&6; } |
| 9767 |
else |
| 9768 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9769 |
$as_echo "no" >&6; } |
| 9770 |
fi |
| 9771 |
|
| 9772 |
# Check whether user wants S/Key support |
| 9773 |
SKEY_MSG="no" |
| 9774 |
|
| 9775 |
# Check whether --with-skey was given. |
| 9776 |
if test "${with_skey+set}" = set; then : |
| 9777 |
withval=$with_skey; |
| 9778 |
if test "x$withval" != "xno" ; then |
| 9779 |
|
| 9780 |
if test "x$withval" != "xyes" ; then |
| 9781 |
CPPFLAGS="$CPPFLAGS -I${withval}/include" |
| 9782 |
LDFLAGS="$LDFLAGS -L${withval}/lib" |
| 9783 |
fi |
| 9784 |
|
| 9785 |
|
| 9786 |
$as_echo "#define SKEY 1" >>confdefs.h |
| 9787 |
|
| 9788 |
LIBS="-lskey $LIBS" |
| 9789 |
SKEY_MSG="yes" |
| 9790 |
|
| 9791 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5 |
| 9792 |
$as_echo_n "checking for s/key support... " >&6; } |
| 9793 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9794 |
/* end confdefs.h. */ |
| 9795 |
|
| 9796 |
#include <stdio.h> |
| 9797 |
#include <skey.h> |
| 9798 |
|
| 9799 |
int |
| 9800 |
main () |
| 9801 |
{ |
| 9802 |
|
| 9803 |
char *ff = skey_keyinfo(""); ff=""; |
| 9804 |
exit(0); |
| 9805 |
|
| 9806 |
; |
| 9807 |
return 0; |
| 9808 |
} |
| 9809 |
_ACEOF |
| 9810 |
if ac_fn_c_try_link "$LINENO"; then : |
| 9811 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9812 |
$as_echo "yes" >&6; } |
| 9813 |
else |
| 9814 |
|
| 9815 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9816 |
$as_echo "no" >&6; } |
| 9817 |
as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5 |
| 9818 |
|
| 9819 |
fi |
| 9820 |
rm -f core conftest.err conftest.$ac_objext \ |
| 9821 |
conftest$ac_exeext conftest.$ac_ext |
| 9822 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5 |
| 9823 |
$as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; } |
| 9824 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9825 |
/* end confdefs.h. */ |
| 9826 |
|
| 9827 |
#include <stdio.h> |
| 9828 |
#include <skey.h> |
| 9829 |
|
| 9830 |
int |
| 9831 |
main () |
| 9832 |
{ |
| 9833 |
|
| 9834 |
(void)skeychallenge(NULL,"name","",0); |
| 9835 |
|
| 9836 |
; |
| 9837 |
return 0; |
| 9838 |
} |
| 9839 |
_ACEOF |
| 9840 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 9841 |
|
| 9842 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9843 |
$as_echo "yes" >&6; } |
| 9844 |
|
| 9845 |
$as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h |
| 9846 |
|
| 9847 |
else |
| 9848 |
|
| 9849 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9850 |
$as_echo "no" >&6; } |
| 9851 |
|
| 9852 |
fi |
| 9853 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9854 |
fi |
| 9855 |
|
| 9856 |
|
| 9857 |
fi |
| 9858 |
|
| 9859 |
|
| 9860 |
# Check whether user wants to use ldns |
| 9861 |
LDNS_MSG="no" |
| 9862 |
|
| 9863 |
# Check whether --with-ldns was given. |
| 9864 |
if test "${with_ldns+set}" = set; then : |
| 9865 |
withval=$with_ldns; |
| 9866 |
if test "x$withval" != "xno" ; then |
| 9867 |
|
| 9868 |
if test "x$withval" != "xyes" ; then |
| 9869 |
CPPFLAGS="$CPPFLAGS -I${withval}/include" |
| 9870 |
LDFLAGS="$LDFLAGS -L${withval}/lib" |
| 9871 |
fi |
| 9872 |
|
| 9873 |
|
| 9874 |
$as_echo "#define HAVE_LDNS 1" >>confdefs.h |
| 9875 |
|
| 9876 |
LIBS="-lldns $LIBS" |
| 9877 |
LDNS_MSG="yes" |
| 9878 |
|
| 9879 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns support" >&5 |
| 9880 |
$as_echo_n "checking for ldns support... " >&6; } |
| 9881 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9882 |
/* end confdefs.h. */ |
| 9883 |
|
| 9884 |
#include <stdio.h> |
| 9885 |
#include <stdlib.h> |
| 9886 |
#include <stdint.h> |
| 9887 |
#include <ldns/ldns.h> |
| 9888 |
int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); } |
| 9889 |
|
| 9890 |
|
| 9891 |
_ACEOF |
| 9892 |
if ac_fn_c_try_link "$LINENO"; then : |
| 9893 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9894 |
$as_echo "yes" >&6; } |
| 9895 |
else |
| 9896 |
|
| 9897 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9898 |
$as_echo "no" >&6; } |
| 9899 |
as_fn_error $? "** Incomplete or missing ldns libraries." "$LINENO" 5 |
| 9900 |
|
| 9901 |
fi |
| 9902 |
rm -f core conftest.err conftest.$ac_objext \ |
| 9903 |
conftest$ac_exeext conftest.$ac_ext |
| 9904 |
fi |
| 9905 |
|
| 9906 |
|
| 9907 |
fi |
| 9908 |
|
| 9909 |
|
| 9910 |
# Check whether user wants libedit support |
| 9911 |
LIBEDIT_MSG="no" |
| 9912 |
|
| 9913 |
# Check whether --with-libedit was given. |
| 9914 |
if test "${with_libedit+set}" = set; then : |
| 9915 |
withval=$with_libedit; if test "x$withval" != "xno" ; then |
| 9916 |
if test "x$withval" = "xyes" ; then |
| 9917 |
if test -n "$ac_tool_prefix"; then |
| 9918 |
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 9919 |
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 9920 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9921 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 9922 |
if ${ac_cv_path_PKGCONFIG+:} false; then : |
| 9923 |
$as_echo_n "(cached) " >&6 |
| 9924 |
else |
| 9925 |
case $PKGCONFIG in |
| 9926 |
[\\/]* | ?:[\\/]*) |
| 9927 |
ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. |
| 9928 |
;; |
| 9929 |
*) |
| 9930 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9931 |
for as_dir in $PATH |
| 9932 |
do |
| 9933 |
IFS=$as_save_IFS |
| 9934 |
test -z "$as_dir" && as_dir=. |
| 9935 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9936 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9937 |
ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 9938 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9939 |
break 2 |
| 9940 |
fi |
| 9941 |
done |
| 9942 |
done |
| 9943 |
IFS=$as_save_IFS |
| 9944 |
|
| 9945 |
;; |
| 9946 |
esac |
| 9947 |
fi |
| 9948 |
PKGCONFIG=$ac_cv_path_PKGCONFIG |
| 9949 |
if test -n "$PKGCONFIG"; then |
| 9950 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 |
| 9951 |
$as_echo "$PKGCONFIG" >&6; } |
| 9952 |
else |
| 9953 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9954 |
$as_echo "no" >&6; } |
| 9955 |
fi |
| 9956 |
|
| 9957 |
|
| 9958 |
fi |
| 9959 |
if test -z "$ac_cv_path_PKGCONFIG"; then |
| 9960 |
ac_pt_PKGCONFIG=$PKGCONFIG |
| 9961 |
# Extract the first word of "pkg-config", so it can be a program name with args. |
| 9962 |
set dummy pkg-config; ac_word=$2 |
| 9963 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9964 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 9965 |
if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : |
| 9966 |
$as_echo_n "(cached) " >&6 |
| 9967 |
else |
| 9968 |
case $ac_pt_PKGCONFIG in |
| 9969 |
[\\/]* | ?:[\\/]*) |
| 9970 |
ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. |
| 9971 |
;; |
| 9972 |
*) |
| 9973 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9974 |
for as_dir in $PATH |
| 9975 |
do |
| 9976 |
IFS=$as_save_IFS |
| 9977 |
test -z "$as_dir" && as_dir=. |
| 9978 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9979 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9980 |
ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 9981 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9982 |
break 2 |
| 9983 |
fi |
| 9984 |
done |
| 9985 |
done |
| 9986 |
IFS=$as_save_IFS |
| 9987 |
|
| 9988 |
;; |
| 9989 |
esac |
| 9990 |
fi |
| 9991 |
ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG |
| 9992 |
if test -n "$ac_pt_PKGCONFIG"; then |
| 9993 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 |
| 9994 |
$as_echo "$ac_pt_PKGCONFIG" >&6; } |
| 9995 |
else |
| 9996 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9997 |
$as_echo "no" >&6; } |
| 9998 |
fi |
| 9999 |
|
| 10000 |
if test "x$ac_pt_PKGCONFIG" = x; then |
| 10001 |
PKGCONFIG="no" |
| 10002 |
else |
| 10003 |
case $cross_compiling:$ac_tool_warned in |
| 10004 |
yes:) |
| 10005 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10006 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10007 |
ac_tool_warned=yes ;; |
| 10008 |
esac |
| 10009 |
PKGCONFIG=$ac_pt_PKGCONFIG |
| 10010 |
fi |
| 10011 |
else |
| 10012 |
PKGCONFIG="$ac_cv_path_PKGCONFIG" |
| 10013 |
fi |
| 10014 |
|
| 10015 |
if test "x$PKGCONFIG" != "xno"; then |
| 10016 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5 |
| 10017 |
$as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; } |
| 10018 |
if "$PKGCONFIG" libedit; then |
| 10019 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10020 |
$as_echo "yes" >&6; } |
| 10021 |
use_pkgconfig_for_libedit=yes |
| 10022 |
else |
| 10023 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10024 |
$as_echo "no" >&6; } |
| 10025 |
fi |
| 10026 |
fi |
| 10027 |
else |
| 10028 |
CPPFLAGS="$CPPFLAGS -I${withval}/include" |
| 10029 |
if test -n "${need_dash_r}"; then |
| 10030 |
LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" |
| 10031 |
else |
| 10032 |
LDFLAGS="-L${withval}/lib ${LDFLAGS}" |
| 10033 |
fi |
| 10034 |
fi |
| 10035 |
if test "x$use_pkgconfig_for_libedit" = "xyes"; then |
| 10036 |
LIBEDIT=`$PKGCONFIG --libs libedit` |
| 10037 |
CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`" |
| 10038 |
else |
| 10039 |
LIBEDIT="-ledit -lcurses" |
| 10040 |
fi |
| 10041 |
OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'` |
| 10042 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5 |
| 10043 |
$as_echo_n "checking for el_init in -ledit... " >&6; } |
| 10044 |
if ${ac_cv_lib_edit_el_init+:} false; then : |
| 10045 |
$as_echo_n "(cached) " >&6 |
| 10046 |
else |
| 10047 |
ac_check_lib_save_LIBS=$LIBS |
| 10048 |
LIBS="-ledit $OTHERLIBS |
| 10049 |
$LIBS" |
| 10050 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10051 |
/* end confdefs.h. */ |
| 10052 |
|
| 10053 |
/* Override any GCC internal prototype to avoid an error. |
| 10054 |
Use char because int might match the return type of a GCC |
| 10055 |
builtin and then its argument prototype would still apply. */ |
| 10056 |
#ifdef __cplusplus |
| 10057 |
extern "C" |
| 10058 |
#endif |
| 10059 |
char el_init (); |
| 10060 |
int |
| 10061 |
main () |
| 10062 |
{ |
| 10063 |
return el_init (); |
| 10064 |
; |
| 10065 |
return 0; |
| 10066 |
} |
| 10067 |
_ACEOF |
| 10068 |
if ac_fn_c_try_link "$LINENO"; then : |
| 10069 |
ac_cv_lib_edit_el_init=yes |
| 10070 |
else |
| 10071 |
ac_cv_lib_edit_el_init=no |
| 10072 |
fi |
| 10073 |
rm -f core conftest.err conftest.$ac_objext \ |
| 10074 |
conftest$ac_exeext conftest.$ac_ext |
| 10075 |
LIBS=$ac_check_lib_save_LIBS |
| 10076 |
fi |
| 10077 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5 |
| 10078 |
$as_echo "$ac_cv_lib_edit_el_init" >&6; } |
| 10079 |
if test "x$ac_cv_lib_edit_el_init" = xyes; then : |
| 10080 |
|
| 10081 |
$as_echo "#define USE_LIBEDIT 1" >>confdefs.h |
| 10082 |
|
| 10083 |
LIBEDIT_MSG="yes" |
| 10084 |
|
| 10085 |
|
| 10086 |
else |
| 10087 |
as_fn_error $? "libedit not found" "$LINENO" 5 |
| 10088 |
fi |
| 10089 |
|
| 10090 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5 |
| 10091 |
$as_echo_n "checking if libedit version is compatible... " >&6; } |
| 10092 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10093 |
/* end confdefs.h. */ |
| 10094 |
#include <histedit.h> |
| 10095 |
int |
| 10096 |
main () |
| 10097 |
{ |
| 10098 |
|
| 10099 |
int i = H_SETSIZE; |
| 10100 |
el_init("", NULL, NULL, NULL); |
| 10101 |
exit(0); |
| 10102 |
|
| 10103 |
; |
| 10104 |
return 0; |
| 10105 |
} |
| 10106 |
_ACEOF |
| 10107 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 10108 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10109 |
$as_echo "yes" >&6; } |
| 10110 |
else |
| 10111 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10112 |
$as_echo "no" >&6; } |
| 10113 |
as_fn_error $? "libedit version is not compatible" "$LINENO" 5 |
| 10114 |
|
| 10115 |
fi |
| 10116 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10117 |
fi |
| 10118 |
|
| 10119 |
fi |
| 10120 |
|
| 10121 |
|
| 10122 |
AUDIT_MODULE=none |
| 10123 |
|
| 10124 |
# Check whether --with-audit was given. |
| 10125 |
if test "${with_audit+set}" = set; then : |
| 10126 |
withval=$with_audit; |
| 10127 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5 |
| 10128 |
$as_echo_n "checking for supported audit module... " >&6; } |
| 10129 |
case "$withval" in |
| 10130 |
bsm) |
| 10131 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5 |
| 10132 |
$as_echo "bsm" >&6; } |
| 10133 |
AUDIT_MODULE=bsm |
| 10134 |
for ac_header in bsm/audit.h |
| 10135 |
do : |
| 10136 |
ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" " |
| 10137 |
#ifdef HAVE_TIME_H |
| 10138 |
# include <time.h> |
| 10139 |
#endif |
| 10140 |
|
| 10141 |
|
| 10142 |
" |
| 10143 |
if test "x$ac_cv_header_bsm_audit_h" = xyes; then : |
| 10144 |
cat >>confdefs.h <<_ACEOF |
| 10145 |
#define HAVE_BSM_AUDIT_H 1 |
| 10146 |
_ACEOF |
| 10147 |
|
| 10148 |
else |
| 10149 |
as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5 |
| 10150 |
fi |
| 10151 |
|
| 10152 |
done |
| 10153 |
|
| 10154 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5 |
| 10155 |
$as_echo_n "checking for getaudit in -lbsm... " >&6; } |
| 10156 |
if ${ac_cv_lib_bsm_getaudit+:} false; then : |
| 10157 |
$as_echo_n "(cached) " >&6 |
| 10158 |
else |
| 10159 |
ac_check_lib_save_LIBS=$LIBS |
| 10160 |
LIBS="-lbsm $LIBS" |
| 10161 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10162 |
/* end confdefs.h. */ |
| 10163 |
|
| 10164 |
/* Override any GCC internal prototype to avoid an error. |
| 10165 |
Use char because int might match the return type of a GCC |
| 10166 |
builtin and then its argument prototype would still apply. */ |
| 10167 |
#ifdef __cplusplus |
| 10168 |
extern "C" |
| 10169 |
#endif |
| 10170 |
char getaudit (); |
| 10171 |
int |
| 10172 |
main () |
| 10173 |
{ |
| 10174 |
return getaudit (); |
| 10175 |
; |
| 10176 |
return 0; |
| 10177 |
} |
| 10178 |
_ACEOF |
| 10179 |
if ac_fn_c_try_link "$LINENO"; then : |
| 10180 |
ac_cv_lib_bsm_getaudit=yes |
| 10181 |
else |
| 10182 |
ac_cv_lib_bsm_getaudit=no |
| 10183 |
fi |
| 10184 |
rm -f core conftest.err conftest.$ac_objext \ |
| 10185 |
conftest$ac_exeext conftest.$ac_ext |
| 10186 |
LIBS=$ac_check_lib_save_LIBS |
| 10187 |
fi |
| 10188 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5 |
| 10189 |
$as_echo "$ac_cv_lib_bsm_getaudit" >&6; } |
| 10190 |
if test "x$ac_cv_lib_bsm_getaudit" = xyes; then : |
| 10191 |
cat >>confdefs.h <<_ACEOF |
| 10192 |
#define HAVE_LIBBSM 1 |
| 10193 |
_ACEOF |
| 10194 |
|
| 10195 |
LIBS="-lbsm $LIBS" |
| 10196 |
|
| 10197 |
else |
| 10198 |
as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5 |
| 10199 |
fi |
| 10200 |
|
| 10201 |
for ac_func in getaudit |
| 10202 |
do : |
| 10203 |
ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit" |
| 10204 |
if test "x$ac_cv_func_getaudit" = xyes; then : |
| 10205 |
cat >>confdefs.h <<_ACEOF |
| 10206 |
#define HAVE_GETAUDIT 1 |
| 10207 |
_ACEOF |
| 10208 |
|
| 10209 |
else |
| 10210 |
as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5 |
| 10211 |
fi |
| 10212 |
done |
| 10213 |
|
| 10214 |
# These are optional |
| 10215 |
for ac_func in getaudit_addr aug_get_machine |
| 10216 |
do : |
| 10217 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10218 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10219 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 10220 |
cat >>confdefs.h <<_ACEOF |
| 10221 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10222 |
_ACEOF |
| 10223 |
|
| 10224 |
fi |
| 10225 |
done |
| 10226 |
|
| 10227 |
|
| 10228 |
$as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h |
| 10229 |
|
| 10230 |
if test "$sol2ver" -ge 11; then |
| 10231 |
SSHDLIBS="$SSHDLIBS -lscf" |
| 10232 |
|
| 10233 |
$as_echo "#define BROKEN_BSM_API 1" >>confdefs.h |
| 10234 |
|
| 10235 |
fi |
| 10236 |
;; |
| 10237 |
linux) |
| 10238 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5 |
| 10239 |
$as_echo "linux" >&6; } |
| 10240 |
AUDIT_MODULE=linux |
| 10241 |
for ac_header in libaudit.h |
| 10242 |
do : |
| 10243 |
ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default" |
| 10244 |
if test "x$ac_cv_header_libaudit_h" = xyes; then : |
| 10245 |
cat >>confdefs.h <<_ACEOF |
| 10246 |
#define HAVE_LIBAUDIT_H 1 |
| 10247 |
_ACEOF |
| 10248 |
|
| 10249 |
fi |
| 10250 |
|
| 10251 |
done |
| 10252 |
|
| 10253 |
SSHDLIBS="$SSHDLIBS -laudit" |
| 10254 |
|
| 10255 |
$as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h |
| 10256 |
|
| 10257 |
;; |
| 10258 |
debug) |
| 10259 |
AUDIT_MODULE=debug |
| 10260 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5 |
| 10261 |
$as_echo "debug" >&6; } |
| 10262 |
|
| 10263 |
$as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h |
| 10264 |
|
| 10265 |
;; |
| 10266 |
no) |
| 10267 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10268 |
$as_echo "no" >&6; } |
| 10269 |
;; |
| 10270 |
*) |
| 10271 |
as_fn_error $? "Unknown audit module $withval" "$LINENO" 5 |
| 10272 |
;; |
| 10273 |
esac |
| 10274 |
|
| 10275 |
fi |
| 10276 |
|
| 10277 |
|
| 10278 |
|
| 10279 |
# Check whether --with-pie was given. |
| 10280 |
if test "${with_pie+set}" = set; then : |
| 10281 |
withval=$with_pie; |
| 10282 |
if test "x$withval" = "xno"; then |
| 10283 |
use_pie=no |
| 10284 |
fi |
| 10285 |
if test "x$withval" = "xyes"; then |
| 10286 |
use_pie=yes |
| 10287 |
fi |
| 10288 |
|
| 10289 |
|
| 10290 |
fi |
| 10291 |
|
| 10292 |
if test "x$use_pie" = "x"; then |
| 10293 |
use_pie=no |
| 10294 |
fi |
| 10295 |
if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then |
| 10296 |
# Turn off automatic PIE when toolchain hardening is off. |
| 10297 |
use_pie=no |
| 10298 |
fi |
| 10299 |
if test "x$use_pie" = "xauto"; then |
| 10300 |
# Automatic PIE requires gcc >= 4.x |
| 10301 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.x" >&5 |
| 10302 |
$as_echo_n "checking for gcc >= 4.x... " >&6; } |
| 10303 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10304 |
/* end confdefs.h. */ |
| 10305 |
|
| 10306 |
#if !defined(__GNUC__) || __GNUC__ < 4 |
| 10307 |
#error gcc is too old |
| 10308 |
#endif |
| 10309 |
|
| 10310 |
_ACEOF |
| 10311 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 10312 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10313 |
$as_echo "yes" >&6; } |
| 10314 |
else |
| 10315 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10316 |
$as_echo "no" >&6; } |
| 10317 |
use_pie=no |
| 10318 |
|
| 10319 |
fi |
| 10320 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10321 |
fi |
| 10322 |
if test "x$use_pie" != "xno"; then |
| 10323 |
SAVED_CFLAGS="$CFLAGS" |
| 10324 |
SAVED_LDFLAGS="$LDFLAGS" |
| 10325 |
{ |
| 10326 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fPIE" >&5 |
| 10327 |
$as_echo_n "checking if $CC supports compile flag -fPIE... " >&6; } |
| 10328 |
saved_CFLAGS="$CFLAGS" |
| 10329 |
CFLAGS="$CFLAGS $WERROR -fPIE" |
| 10330 |
_define_flag="" |
| 10331 |
test "x$_define_flag" = "x" && _define_flag="-fPIE" |
| 10332 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10333 |
/* end confdefs.h. */ |
| 10334 |
|
| 10335 |
#include <stdlib.h> |
| 10336 |
#include <stdio.h> |
| 10337 |
int main(int argc, char **argv) { |
| 10338 |
/* Some math to catch -ftrapv problems in the toolchain */ |
| 10339 |
int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 10340 |
float l = i * 2.1; |
| 10341 |
double m = l / 0.5; |
| 10342 |
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 10343 |
printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 10344 |
exit(0); |
| 10345 |
} |
| 10346 |
|
| 10347 |
_ACEOF |
| 10348 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 10349 |
|
| 10350 |
if `grep -i "unrecognized option" conftest.err >/dev/null` |
| 10351 |
then |
| 10352 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10353 |
$as_echo "no" >&6; } |
| 10354 |
CFLAGS="$saved_CFLAGS" |
| 10355 |
else |
| 10356 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10357 |
$as_echo "yes" >&6; } |
| 10358 |
CFLAGS="$saved_CFLAGS $_define_flag" |
| 10359 |
fi |
| 10360 |
else |
| 10361 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10362 |
$as_echo "no" >&6; } |
| 10363 |
CFLAGS="$saved_CFLAGS" |
| 10364 |
|
| 10365 |
fi |
| 10366 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10367 |
} |
| 10368 |
{ |
| 10369 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -pie" >&5 |
| 10370 |
$as_echo_n "checking if $LD supports link flag -pie... " >&6; } |
| 10371 |
saved_LDFLAGS="$LDFLAGS" |
| 10372 |
LDFLAGS="$LDFLAGS $WERROR -pie" |
| 10373 |
_define_flag="" |
| 10374 |
test "x$_define_flag" = "x" && _define_flag="-pie" |
| 10375 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10376 |
/* end confdefs.h. */ |
| 10377 |
|
| 10378 |
#include <stdlib.h> |
| 10379 |
#include <stdio.h> |
| 10380 |
int main(int argc, char **argv) { |
| 10381 |
/* Some math to catch -ftrapv problems in the toolchain */ |
| 10382 |
int i = 123 * argc, j = 456 + argc, k = 789 - argc; |
| 10383 |
float l = i * 2.1; |
| 10384 |
double m = l / 0.5; |
| 10385 |
long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; |
| 10386 |
printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); |
| 10387 |
exit(0); |
| 10388 |
} |
| 10389 |
|
| 10390 |
_ACEOF |
| 10391 |
if ac_fn_c_try_link "$LINENO"; then : |
| 10392 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10393 |
$as_echo "yes" >&6; } |
| 10394 |
LDFLAGS="$saved_LDFLAGS $_define_flag" |
| 10395 |
else |
| 10396 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10397 |
$as_echo "no" >&6; } |
| 10398 |
LDFLAGS="$saved_LDFLAGS" |
| 10399 |
|
| 10400 |
fi |
| 10401 |
rm -f core conftest.err conftest.$ac_objext \ |
| 10402 |
conftest$ac_exeext conftest.$ac_ext |
| 10403 |
} |
| 10404 |
# We use both -fPIE and -pie or neither. |
| 10405 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether both -fPIE and -pie are supported" >&5 |
| 10406 |
$as_echo_n "checking whether both -fPIE and -pie are supported... " >&6; } |
| 10407 |
if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \ |
| 10408 |
echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then |
| 10409 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10410 |
$as_echo "yes" >&6; } |
| 10411 |
else |
| 10412 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10413 |
$as_echo "no" >&6; } |
| 10414 |
CFLAGS="$SAVED_CFLAGS" |
| 10415 |
LDFLAGS="$SAVED_LDFLAGS" |
| 10416 |
fi |
| 10417 |
fi |
| 10418 |
|
| 10419 |
for ac_func in \ |
| 10420 |
Blowfish_initstate \ |
| 10421 |
Blowfish_expandstate \ |
| 10422 |
Blowfish_expand0state \ |
| 10423 |
Blowfish_stream2word \ |
| 10424 |
asprintf \ |
| 10425 |
b64_ntop \ |
| 10426 |
__b64_ntop \ |
| 10427 |
b64_pton \ |
| 10428 |
__b64_pton \ |
| 10429 |
bcopy \ |
| 10430 |
bcrypt_pbkdf \ |
| 10431 |
bindresvport_sa \ |
| 10432 |
blf_enc \ |
| 10433 |
cap_rights_limit \ |
| 10434 |
clock \ |
| 10435 |
closefrom \ |
| 10436 |
dirfd \ |
| 10437 |
endgrent \ |
| 10438 |
explicit_bzero \ |
| 10439 |
fchmod \ |
| 10440 |
fchown \ |
| 10441 |
freeaddrinfo \ |
| 10442 |
fstatfs \ |
| 10443 |
fstatvfs \ |
| 10444 |
futimes \ |
| 10445 |
getaddrinfo \ |
| 10446 |
getcwd \ |
| 10447 |
getgrouplist \ |
| 10448 |
getnameinfo \ |
| 10449 |
getopt \ |
| 10450 |
getpeereid \ |
| 10451 |
getpeerucred \ |
| 10452 |
getpgid \ |
| 10453 |
getpgrp \ |
| 10454 |
_getpty \ |
| 10455 |
getrlimit \ |
| 10456 |
getttyent \ |
| 10457 |
glob \ |
| 10458 |
group_from_gid \ |
| 10459 |
inet_aton \ |
| 10460 |
inet_ntoa \ |
| 10461 |
inet_ntop \ |
| 10462 |
innetgr \ |
| 10463 |
login_getcapbool \ |
| 10464 |
mblen \ |
| 10465 |
md5_crypt \ |
| 10466 |
memmove \ |
| 10467 |
memset_s \ |
| 10468 |
mkdtemp \ |
| 10469 |
mmap \ |
| 10470 |
ngetaddrinfo \ |
| 10471 |
nsleep \ |
| 10472 |
ogetaddrinfo \ |
| 10473 |
openlog_r \ |
| 10474 |
poll \ |
| 10475 |
prctl \ |
| 10476 |
pstat \ |
| 10477 |
readpassphrase \ |
| 10478 |
reallocarray \ |
| 10479 |
recvmsg \ |
| 10480 |
rresvport_af \ |
| 10481 |
sendmsg \ |
| 10482 |
setdtablesize \ |
| 10483 |
setegid \ |
| 10484 |
setenv \ |
| 10485 |
seteuid \ |
| 10486 |
setgroupent \ |
| 10487 |
setgroups \ |
| 10488 |
setlinebuf \ |
| 10489 |
setlogin \ |
| 10490 |
setpassent\ |
| 10491 |
setpcred \ |
| 10492 |
setproctitle \ |
| 10493 |
setregid \ |
| 10494 |
setreuid \ |
| 10495 |
setrlimit \ |
| 10496 |
setsid \ |
| 10497 |
setvbuf \ |
| 10498 |
sigaction \ |
| 10499 |
sigvec \ |
| 10500 |
snprintf \ |
| 10501 |
socketpair \ |
| 10502 |
statfs \ |
| 10503 |
statvfs \ |
| 10504 |
strdup \ |
| 10505 |
strerror \ |
| 10506 |
strlcat \ |
| 10507 |
strlcpy \ |
| 10508 |
strmode \ |
| 10509 |
strnlen \ |
| 10510 |
strnvis \ |
| 10511 |
strptime \ |
| 10512 |
strtonum \ |
| 10513 |
strtoll \ |
| 10514 |
strtoul \ |
| 10515 |
strtoull \ |
| 10516 |
swap32 \ |
| 10517 |
sysconf \ |
| 10518 |
tcgetpgrp \ |
| 10519 |
timingsafe_bcmp \ |
| 10520 |
truncate \ |
| 10521 |
unsetenv \ |
| 10522 |
updwtmpx \ |
| 10523 |
user_from_uid \ |
| 10524 |
usleep \ |
| 10525 |
vasprintf \ |
| 10526 |
vsnprintf \ |
| 10527 |
waitpid \ |
| 10528 |
|
| 10529 |
do : |
| 10530 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10531 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10532 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 10533 |
cat >>confdefs.h <<_ACEOF |
| 10534 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10535 |
_ACEOF |
| 10536 |
|
| 10537 |
fi |
| 10538 |
done |
| 10539 |
|
| 10540 |
|
| 10541 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10542 |
/* end confdefs.h. */ |
| 10543 |
#include <ctype.h> |
| 10544 |
int |
| 10545 |
main () |
| 10546 |
{ |
| 10547 |
return (isblank('a')); |
| 10548 |
; |
| 10549 |
return 0; |
| 10550 |
} |
| 10551 |
_ACEOF |
| 10552 |
if ac_fn_c_try_link "$LINENO"; then : |
| 10553 |
|
| 10554 |
$as_echo "#define HAVE_ISBLANK 1" >>confdefs.h |
| 10555 |
|
| 10556 |
|
| 10557 |
fi |
| 10558 |
rm -f core conftest.err conftest.$ac_objext \ |
| 10559 |
conftest$ac_exeext conftest.$ac_ext |
| 10560 |
|
| 10561 |
# PKCS11 depends on OpenSSL. |
| 10562 |
if test "x$openssl" = "xyes" ; then |
| 10563 |
# PKCS#11 support requires dlopen() and co |
| 10564 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
| 10565 |
$as_echo_n "checking for library containing dlopen... " >&6; } |
| 10566 |
if ${ac_cv_search_dlopen+:} false; then : |
| 10567 |
$as_echo_n "(cached) " >&6 |
| 10568 |
else |
| 10569 |
ac_func_search_save_LIBS=$LIBS |
| 10570 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10571 |
/* end confdefs.h. */ |
| 10572 |
|
| 10573 |
/* Override any GCC internal prototype to avoid an error. |
| 10574 |
Use char because int might match the return type of a GCC |
| 10575 |
builtin and then its argument prototype would still apply. */ |
| 10576 |
#ifdef __cplusplus |
| 10577 |
extern "C" |
| 10578 |
#endif |
| 10579 |
char dlopen (); |
| 10580 |
int |
| 10581 |
main () |
| 10582 |
{ |
| 10583 |
return dlopen (); |
| 10584 |
; |
| 10585 |
return 0; |
| 10586 |
} |
| 10587 |
_ACEOF |
| 10588 |
for ac_lib in '' dl; do |
| 10589 |
if test -z "$ac_lib"; then |
| 10590 |
ac_res="none required" |
| 10591 |
else |
| 10592 |
ac_res=-l$ac_lib |
| 10593 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10594 |
fi |
| 10595 |
if ac_fn_c_try_link "$LINENO"; then : |
| 10596 |
ac_cv_search_dlopen=$ac_res |
| 10597 |
fi |
| 10598 |
rm -f core conftest.err conftest.$ac_objext \ |
| 10599 |
conftest$ac_exeext |
| 10600 |
if ${ac_cv_search_dlopen+:} false; then : |
| 10601 |
break |
| 10602 |
fi |
| 10603 |
done |
| 10604 |
if ${ac_cv_search_dlopen+:} false; then : |
| 10605 |
|
| 10606 |
else |
| 10607 |
ac_cv_search_dlopen=no |
| 10608 |
fi |
| 10609 |
rm conftest.$ac_ext |
| 10610 |
LIBS=$ac_func_search_save_LIBS |
| 10611 |
fi |
| 10612 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
| 10613 |
$as_echo "$ac_cv_search_dlopen" >&6; } |
| 10614 |
ac_res=$ac_cv_search_dlopen |
| 10615 |
if test "$ac_res" != no; then : |
| 10616 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 10617 |
|
| 10618 |
$as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h |
| 10619 |
|
| 10620 |
|
| 10621 |
fi |
| 10622 |
|
| 10623 |
fi |
| 10624 |
|
| 10625 |
# IRIX has a const char return value for gai_strerror() |
| 10626 |
for ac_func in gai_strerror |
| 10627 |
do : |
| 10628 |
ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" |
| 10629 |
if test "x$ac_cv_func_gai_strerror" = xyes; then : |
| 10630 |
cat >>confdefs.h <<_ACEOF |
| 10631 |
#define HAVE_GAI_STRERROR 1 |
| 10632 |
_ACEOF |
| 10633 |
|
| 10634 |
$as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h |
| 10635 |
|
| 10636 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10637 |
/* end confdefs.h. */ |
| 10638 |
|
| 10639 |
#include <sys/types.h> |
| 10640 |
#include <sys/socket.h> |
| 10641 |
#include <netdb.h> |
| 10642 |
|
| 10643 |
const char *gai_strerror(int); |
| 10644 |
|
| 10645 |
int |
| 10646 |
main () |
| 10647 |
{ |
| 10648 |
|
| 10649 |
char *str; |
| 10650 |
str = gai_strerror(0); |
| 10651 |
|
| 10652 |
; |
| 10653 |
return 0; |
| 10654 |
} |
| 10655 |
_ACEOF |
| 10656 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 10657 |
|
| 10658 |
|
| 10659 |
$as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h |
| 10660 |
|
| 10661 |
fi |
| 10662 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10663 |
fi |
| 10664 |
done |
| 10665 |
|
| 10666 |
|
| 10667 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 |
| 10668 |
$as_echo_n "checking for library containing nanosleep... " >&6; } |
| 10669 |
if ${ac_cv_search_nanosleep+:} false; then : |
| 10670 |
$as_echo_n "(cached) " >&6 |
| 10671 |
else |
| 10672 |
ac_func_search_save_LIBS=$LIBS |
| 10673 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10674 |
/* end confdefs.h. */ |
| 10675 |
|
| 10676 |
/* Override any GCC internal prototype to avoid an error. |
| 10677 |
Use char because int might match the return type of a GCC |
| 10678 |
builtin and then its argument prototype would still apply. */ |
| 10679 |
#ifdef __cplusplus |
| 10680 |
extern "C" |
| 10681 |
#endif |
| 10682 |
char nanosleep (); |
| 10683 |
int |
| 10684 |
main () |
| 10685 |
{ |
| 10686 |
return nanosleep (); |
| 10687 |
; |
| 10688 |
return 0; |
| 10689 |
} |
| 10690 |
_ACEOF |
| 10691 |
for ac_lib in '' rt posix4; do |
| 10692 |
if test -z "$ac_lib"; then |
| 10693 |
ac_res="none required" |
| 10694 |
else |
| 10695 |
ac_res=-l$ac_lib |
| 10696 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10697 |
fi |
| 10698 |
if ac_fn_c_try_link "$LINENO"; then : |
| 10699 |
ac_cv_search_nanosleep=$ac_res |
| 10700 |
fi |
| 10701 |
rm -f core conftest.err conftest.$ac_objext \ |
| 10702 |
conftest$ac_exeext |
| 10703 |
if ${ac_cv_search_nanosleep+:} false; then : |
| 10704 |
break |
| 10705 |
fi |
| 10706 |
done |
| 10707 |
if ${ac_cv_search_nanosleep+:} false; then : |
| 10708 |
|
| 10709 |
else |
| 10710 |
ac_cv_search_nanosleep=no |
| 10711 |
fi |
| 10712 |
rm conftest.$ac_ext |
| 10713 |
LIBS=$ac_func_search_save_LIBS |
| 10714 |
fi |
| 10715 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 |
| 10716 |
$as_echo "$ac_cv_search_nanosleep" >&6; } |
| 10717 |
ac_res=$ac_cv_search_nanosleep |
| 10718 |
if test "$ac_res" != no; then : |
| 10719 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 10720 |
|
| 10721 |
$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h |
| 10722 |
|
| 10723 |
fi |
| 10724 |
|
| 10725 |
|
| 10726 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 |
| 10727 |
$as_echo_n "checking for library containing clock_gettime... " >&6; } |
| 10728 |
if ${ac_cv_search_clock_gettime+:} false; then : |
| 10729 |
$as_echo_n "(cached) " >&6 |
| 10730 |
else |
| 10731 |
ac_func_search_save_LIBS=$LIBS |
| 10732 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10733 |
/* end confdefs.h. */ |
| 10734 |
|
| 10735 |
/* Override any GCC internal prototype to avoid an error. |
| 10736 |
Use char because int might match the return type of a GCC |
| 10737 |
builtin and then its argument prototype would still apply. */ |
| 10738 |
#ifdef __cplusplus |
| 10739 |
extern "C" |
| 10740 |
#endif |
| 10741 |
char clock_gettime (); |
| 10742 |
int |
| 10743 |
main () |
| 10744 |
{ |
| 10745 |
return clock_gettime (); |
| 10746 |
; |
| 10747 |
return 0; |
| 10748 |
} |
| 10749 |
_ACEOF |
| 10750 |
for ac_lib in '' rt; do |
| 10751 |
if test -z "$ac_lib"; then |
| 10752 |
ac_res="none required" |
| 10753 |
else |
| 10754 |
ac_res=-l$ac_lib |
| 10755 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10756 |
fi |
| 10757 |
if ac_fn_c_try_link "$LINENO"; then : |
| 10758 |
ac_cv_search_clock_gettime=$ac_res |
| 10759 |
fi |
| 10760 |
rm -f core conftest.err conftest.$ac_objext \ |
| 10761 |
conftest$ac_exeext |
| 10762 |
if ${ac_cv_search_clock_gettime+:} false; then : |
| 10763 |
break |
| 10764 |
fi |
| 10765 |
done |
| 10766 |
if ${ac_cv_search_clock_gettime+:} false; then : |
| 10767 |
|
| 10768 |
else |
| 10769 |
ac_cv_search_clock_gettime=no |
| 10770 |
fi |
| 10771 |
rm conftest.$ac_ext |
| 10772 |
LIBS=$ac_func_search_save_LIBS |
| 10773 |
fi |
| 10774 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 |
| 10775 |
$as_echo "$ac_cv_search_clock_gettime" >&6; } |
| 10776 |
ac_res=$ac_cv_search_clock_gettime |
| 10777 |
if test "$ac_res" != no; then : |
| 10778 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 10779 |
|
| 10780 |
$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
| 10781 |
|
| 10782 |
fi |
| 10783 |
|
| 10784 |
|
| 10785 |
ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default" |
| 10786 |
if test "x$ac_cv_have_decl_getrusage" = xyes; then : |
| 10787 |
for ac_func in getrusage |
| 10788 |
do : |
| 10789 |
ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" |
| 10790 |
if test "x$ac_cv_func_getrusage" = xyes; then : |
| 10791 |
cat >>confdefs.h <<_ACEOF |
| 10792 |
#define HAVE_GETRUSAGE 1 |
| 10793 |
_ACEOF |
| 10794 |
|
| 10795 |
fi |
| 10796 |
done |
| 10797 |
|
| 10798 |
fi |
| 10799 |
|
| 10800 |
ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" " |
| 10801 |
#ifdef HAVE_STRING_H |
| 10802 |
# include <string.h> |
| 10803 |
#endif |
| 10804 |
|
| 10805 |
" |
| 10806 |
if test "x$ac_cv_have_decl_strsep" = xyes; then : |
| 10807 |
for ac_func in strsep |
| 10808 |
do : |
| 10809 |
ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" |
| 10810 |
if test "x$ac_cv_func_strsep" = xyes; then : |
| 10811 |
cat >>confdefs.h <<_ACEOF |
| 10812 |
#define HAVE_STRSEP 1 |
| 10813 |
_ACEOF |
| 10814 |
|
| 10815 |
fi |
| 10816 |
done |
| 10817 |
|
| 10818 |
fi |
| 10819 |
|
| 10820 |
|
| 10821 |
ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h> |
| 10822 |
|
| 10823 |
" |
| 10824 |
if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then : |
| 10825 |
$as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h |
| 10826 |
|
| 10827 |
else |
| 10828 |
for ac_func in tcsendbreak |
| 10829 |
do : |
| 10830 |
ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak" |
| 10831 |
if test "x$ac_cv_func_tcsendbreak" = xyes; then : |
| 10832 |
cat >>confdefs.h <<_ACEOF |
| 10833 |
#define HAVE_TCSENDBREAK 1 |
| 10834 |
_ACEOF |
| 10835 |
|
| 10836 |
fi |
| 10837 |
done |
| 10838 |
|
| 10839 |
fi |
| 10840 |
|
| 10841 |
|
| 10842 |
ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h> |
| 10843 |
" |
| 10844 |
if test "x$ac_cv_have_decl_h_errno" = xyes; then : |
| 10845 |
ac_have_decl=1 |
| 10846 |
else |
| 10847 |
ac_have_decl=0 |
| 10848 |
fi |
| 10849 |
|
| 10850 |
cat >>confdefs.h <<_ACEOF |
| 10851 |
#define HAVE_DECL_H_ERRNO $ac_have_decl |
| 10852 |
_ACEOF |
| 10853 |
|
| 10854 |
|
| 10855 |
ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" " |
| 10856 |
#include <sys/types.h> |
| 10857 |
#include <sys/socket.h> |
| 10858 |
|
| 10859 |
" |
| 10860 |
if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then : |
| 10861 |
ac_have_decl=1 |
| 10862 |
else |
| 10863 |
ac_have_decl=0 |
| 10864 |
fi |
| 10865 |
|
| 10866 |
cat >>confdefs.h <<_ACEOF |
| 10867 |
#define HAVE_DECL_SHUT_RD $ac_have_decl |
| 10868 |
_ACEOF |
| 10869 |
|
| 10870 |
|
| 10871 |
ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" " |
| 10872 |
#include <sys/types.h> |
| 10873 |
#ifdef HAVE_SYS_STAT_H |
| 10874 |
# include <sys/stat.h> |
| 10875 |
#endif |
| 10876 |
#ifdef HAVE_FCNTL_H |
| 10877 |
# include <fcntl.h> |
| 10878 |
#endif |
| 10879 |
|
| 10880 |
" |
| 10881 |
if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then : |
| 10882 |
ac_have_decl=1 |
| 10883 |
else |
| 10884 |
ac_have_decl=0 |
| 10885 |
fi |
| 10886 |
|
| 10887 |
cat >>confdefs.h <<_ACEOF |
| 10888 |
#define HAVE_DECL_O_NONBLOCK $ac_have_decl |
| 10889 |
_ACEOF |
| 10890 |
|
| 10891 |
|
| 10892 |
ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" " |
| 10893 |
#include <sys/types.h> |
| 10894 |
#include <sys/uio.h> |
| 10895 |
#include <unistd.h> |
| 10896 |
|
| 10897 |
" |
| 10898 |
if test "x$ac_cv_have_decl_writev" = xyes; then : |
| 10899 |
ac_have_decl=1 |
| 10900 |
else |
| 10901 |
ac_have_decl=0 |
| 10902 |
fi |
| 10903 |
|
| 10904 |
cat >>confdefs.h <<_ACEOF |
| 10905 |
#define HAVE_DECL_WRITEV $ac_have_decl |
| 10906 |
_ACEOF |
| 10907 |
|
| 10908 |
|
| 10909 |
ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" " |
| 10910 |
#include <sys/param.h> |
| 10911 |
|
| 10912 |
" |
| 10913 |
if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then : |
| 10914 |
ac_have_decl=1 |
| 10915 |
else |
| 10916 |
ac_have_decl=0 |
| 10917 |
fi |
| 10918 |
|
| 10919 |
cat >>confdefs.h <<_ACEOF |
| 10920 |
#define HAVE_DECL_MAXSYMLINKS $ac_have_decl |
| 10921 |
_ACEOF |
| 10922 |
|
| 10923 |
|
| 10924 |
ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" " |
| 10925 |
#include <stddef.h> |
| 10926 |
|
| 10927 |
" |
| 10928 |
if test "x$ac_cv_have_decl_offsetof" = xyes; then : |
| 10929 |
ac_have_decl=1 |
| 10930 |
else |
| 10931 |
ac_have_decl=0 |
| 10932 |
fi |
| 10933 |
|
| 10934 |
cat >>confdefs.h <<_ACEOF |
| 10935 |
#define HAVE_DECL_OFFSETOF $ac_have_decl |
| 10936 |
_ACEOF |
| 10937 |
|
| 10938 |
|
| 10939 |
# extra bits for select(2) |
| 10940 |
ac_fn_c_check_decl "$LINENO" "howmany" "ac_cv_have_decl_howmany" " |
| 10941 |
#include <sys/param.h> |
| 10942 |
#include <sys/types.h> |
| 10943 |
#ifdef HAVE_SYS_SYSMACROS_H |
| 10944 |
#include <sys/sysmacros.h> |
| 10945 |
#endif |
| 10946 |
#ifdef HAVE_SYS_SELECT_H |
| 10947 |
#include <sys/select.h> |
| 10948 |
#endif |
| 10949 |
#ifdef HAVE_SYS_TIME_H |
| 10950 |
#include <sys/time.h> |
| 10951 |
#endif |
| 10952 |
#ifdef HAVE_UNISTD_H |
| 10953 |
#include <unistd.h> |
| 10954 |
#endif |
| 10955 |
|
| 10956 |
" |
| 10957 |
if test "x$ac_cv_have_decl_howmany" = xyes; then : |
| 10958 |
ac_have_decl=1 |
| 10959 |
else |
| 10960 |
ac_have_decl=0 |
| 10961 |
fi |
| 10962 |
|
| 10963 |
cat >>confdefs.h <<_ACEOF |
| 10964 |
#define HAVE_DECL_HOWMANY $ac_have_decl |
| 10965 |
_ACEOF |
| 10966 |
ac_fn_c_check_decl "$LINENO" "NFDBITS" "ac_cv_have_decl_NFDBITS" " |
| 10967 |
#include <sys/param.h> |
| 10968 |
#include <sys/types.h> |
| 10969 |
#ifdef HAVE_SYS_SYSMACROS_H |
| 10970 |
#include <sys/sysmacros.h> |
| 10971 |
#endif |
| 10972 |
#ifdef HAVE_SYS_SELECT_H |
| 10973 |
#include <sys/select.h> |
| 10974 |
#endif |
| 10975 |
#ifdef HAVE_SYS_TIME_H |
| 10976 |
#include <sys/time.h> |
| 10977 |
#endif |
| 10978 |
#ifdef HAVE_UNISTD_H |
| 10979 |
#include <unistd.h> |
| 10980 |
#endif |
| 10981 |
|
| 10982 |
" |
| 10983 |
if test "x$ac_cv_have_decl_NFDBITS" = xyes; then : |
| 10984 |
ac_have_decl=1 |
| 10985 |
else |
| 10986 |
ac_have_decl=0 |
| 10987 |
fi |
| 10988 |
|
| 10989 |
cat >>confdefs.h <<_ACEOF |
| 10990 |
#define HAVE_DECL_NFDBITS $ac_have_decl |
| 10991 |
_ACEOF |
| 10992 |
|
| 10993 |
ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" " |
| 10994 |
#include <sys/param.h> |
| 10995 |
#include <sys/types.h> |
| 10996 |
#ifdef HAVE_SYS_SELECT_H |
| 10997 |
#include <sys/select.h> |
| 10998 |
#endif |
| 10999 |
#ifdef HAVE_SYS_TIME_H |
| 11000 |
#include <sys/time.h> |
| 11001 |
#endif |
| 11002 |
#ifdef HAVE_UNISTD_H |
| 11003 |
#include <unistd.h> |
| 11004 |
#endif |
| 11005 |
|
| 11006 |
" |
| 11007 |
if test "x$ac_cv_type_fd_mask" = xyes; then : |
| 11008 |
|
| 11009 |
cat >>confdefs.h <<_ACEOF |
| 11010 |
#define HAVE_FD_MASK 1 |
| 11011 |
_ACEOF |
| 11012 |
|
| 11013 |
|
| 11014 |
fi |
| 11015 |
|
| 11016 |
|
| 11017 |
for ac_func in setresuid |
| 11018 |
do : |
| 11019 |
ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" |
| 11020 |
if test "x$ac_cv_func_setresuid" = xyes; then : |
| 11021 |
cat >>confdefs.h <<_ACEOF |
| 11022 |
#define HAVE_SETRESUID 1 |
| 11023 |
_ACEOF |
| 11024 |
|
| 11025 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5 |
| 11026 |
$as_echo_n "checking if setresuid seems to work... " >&6; } |
| 11027 |
if test "$cross_compiling" = yes; then : |
| 11028 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5 |
| 11029 |
$as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} |
| 11030 |
|
| 11031 |
else |
| 11032 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11033 |
/* end confdefs.h. */ |
| 11034 |
|
| 11035 |
#include <stdlib.h> |
| 11036 |
#include <errno.h> |
| 11037 |
|
| 11038 |
int |
| 11039 |
main () |
| 11040 |
{ |
| 11041 |
|
| 11042 |
errno=0; |
| 11043 |
setresuid(0,0,0); |
| 11044 |
if (errno==ENOSYS) |
| 11045 |
exit(1); |
| 11046 |
else |
| 11047 |
exit(0); |
| 11048 |
|
| 11049 |
; |
| 11050 |
return 0; |
| 11051 |
} |
| 11052 |
_ACEOF |
| 11053 |
if ac_fn_c_try_run "$LINENO"; then : |
| 11054 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11055 |
$as_echo "yes" >&6; } |
| 11056 |
else |
| 11057 |
|
| 11058 |
$as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h |
| 11059 |
|
| 11060 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5 |
| 11061 |
$as_echo "not implemented" >&6; } |
| 11062 |
fi |
| 11063 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11064 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11065 |
fi |
| 11066 |
|
| 11067 |
|
| 11068 |
fi |
| 11069 |
done |
| 11070 |
|
| 11071 |
|
| 11072 |
for ac_func in setresgid |
| 11073 |
do : |
| 11074 |
ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" |
| 11075 |
if test "x$ac_cv_func_setresgid" = xyes; then : |
| 11076 |
cat >>confdefs.h <<_ACEOF |
| 11077 |
#define HAVE_SETRESGID 1 |
| 11078 |
_ACEOF |
| 11079 |
|
| 11080 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5 |
| 11081 |
$as_echo_n "checking if setresgid seems to work... " >&6; } |
| 11082 |
if test "$cross_compiling" = yes; then : |
| 11083 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5 |
| 11084 |
$as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} |
| 11085 |
|
| 11086 |
else |
| 11087 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11088 |
/* end confdefs.h. */ |
| 11089 |
|
| 11090 |
#include <stdlib.h> |
| 11091 |
#include <errno.h> |
| 11092 |
|
| 11093 |
int |
| 11094 |
main () |
| 11095 |
{ |
| 11096 |
|
| 11097 |
errno=0; |
| 11098 |
setresgid(0,0,0); |
| 11099 |
if (errno==ENOSYS) |
| 11100 |
exit(1); |
| 11101 |
else |
| 11102 |
exit(0); |
| 11103 |
|
| 11104 |
; |
| 11105 |
return 0; |
| 11106 |
} |
| 11107 |
_ACEOF |
| 11108 |
if ac_fn_c_try_run "$LINENO"; then : |
| 11109 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11110 |
$as_echo "yes" >&6; } |
| 11111 |
else |
| 11112 |
|
| 11113 |
$as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h |
| 11114 |
|
| 11115 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5 |
| 11116 |
$as_echo "not implemented" >&6; } |
| 11117 |
fi |
| 11118 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11119 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11120 |
fi |
| 11121 |
|
| 11122 |
|
| 11123 |
fi |
| 11124 |
done |
| 11125 |
|
| 11126 |
|
| 11127 |
for ac_func in realpath |
| 11128 |
do : |
| 11129 |
ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath" |
| 11130 |
if test "x$ac_cv_func_realpath" = xyes; then : |
| 11131 |
cat >>confdefs.h <<_ACEOF |
| 11132 |
#define HAVE_REALPATH 1 |
| 11133 |
_ACEOF |
| 11134 |
|
| 11135 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if realpath works with non-existent files" >&5 |
| 11136 |
$as_echo_n "checking if realpath works with non-existent files... " >&6; } |
| 11137 |
if test "$cross_compiling" = yes; then : |
| 11138 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming working" >&5 |
| 11139 |
$as_echo "$as_me: WARNING: cross compiling: assuming working" >&2;} |
| 11140 |
|
| 11141 |
else |
| 11142 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11143 |
/* end confdefs.h. */ |
| 11144 |
|
| 11145 |
#include <limits.h> |
| 11146 |
#include <stdlib.h> |
| 11147 |
#include <errno.h> |
| 11148 |
|
| 11149 |
int |
| 11150 |
main () |
| 11151 |
{ |
| 11152 |
|
| 11153 |
char buf[PATH_MAX]; |
| 11154 |
if (realpath("/opensshnonexistentfilename1234", buf) == NULL) |
| 11155 |
if (errno == ENOENT) |
| 11156 |
exit(1); |
| 11157 |
exit(0); |
| 11158 |
|
| 11159 |
; |
| 11160 |
return 0; |
| 11161 |
} |
| 11162 |
_ACEOF |
| 11163 |
if ac_fn_c_try_run "$LINENO"; then : |
| 11164 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11165 |
$as_echo "yes" >&6; } |
| 11166 |
else |
| 11167 |
|
| 11168 |
$as_echo "#define BROKEN_REALPATH 1" >>confdefs.h |
| 11169 |
|
| 11170 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11171 |
$as_echo "no" >&6; } |
| 11172 |
fi |
| 11173 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11174 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11175 |
fi |
| 11176 |
|
| 11177 |
|
| 11178 |
fi |
| 11179 |
done |
| 11180 |
|
| 11181 |
|
| 11182 |
for ac_func in gettimeofday time |
| 11183 |
do : |
| 11184 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11185 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11186 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 11187 |
cat >>confdefs.h <<_ACEOF |
| 11188 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11189 |
_ACEOF |
| 11190 |
|
| 11191 |
fi |
| 11192 |
done |
| 11193 |
|
| 11194 |
for ac_func in endutent getutent getutid getutline pututline setutent |
| 11195 |
do : |
| 11196 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11197 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11198 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 11199 |
cat >>confdefs.h <<_ACEOF |
| 11200 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11201 |
_ACEOF |
| 11202 |
|
| 11203 |
fi |
| 11204 |
done |
| 11205 |
|
| 11206 |
for ac_func in utmpname |
| 11207 |
do : |
| 11208 |
ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname" |
| 11209 |
if test "x$ac_cv_func_utmpname" = xyes; then : |
| 11210 |
cat >>confdefs.h <<_ACEOF |
| 11211 |
#define HAVE_UTMPNAME 1 |
| 11212 |
_ACEOF |
| 11213 |
|
| 11214 |
fi |
| 11215 |
done |
| 11216 |
|
| 11217 |
for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline |
| 11218 |
do : |
| 11219 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11220 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11221 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 11222 |
cat >>confdefs.h <<_ACEOF |
| 11223 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11224 |
_ACEOF |
| 11225 |
|
| 11226 |
fi |
| 11227 |
done |
| 11228 |
|
| 11229 |
for ac_func in setutxdb setutxent utmpxname |
| 11230 |
do : |
| 11231 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11232 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 11233 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 11234 |
cat >>confdefs.h <<_ACEOF |
| 11235 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11236 |
_ACEOF |
| 11237 |
|
| 11238 |
fi |
| 11239 |
done |
| 11240 |
|
| 11241 |
for ac_func in getlastlogxbyname |
| 11242 |
do : |
| 11243 |
ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname" |
| 11244 |
if test "x$ac_cv_func_getlastlogxbyname" = xyes; then : |
| 11245 |
cat >>confdefs.h <<_ACEOF |
| 11246 |
#define HAVE_GETLASTLOGXBYNAME 1 |
| 11247 |
_ACEOF |
| 11248 |
|
| 11249 |
fi |
| 11250 |
done |
| 11251 |
|
| 11252 |
|
| 11253 |
ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" |
| 11254 |
if test "x$ac_cv_func_daemon" = xyes; then : |
| 11255 |
|
| 11256 |
$as_echo "#define HAVE_DAEMON 1" >>confdefs.h |
| 11257 |
|
| 11258 |
else |
| 11259 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5 |
| 11260 |
$as_echo_n "checking for daemon in -lbsd... " >&6; } |
| 11261 |
if ${ac_cv_lib_bsd_daemon+:} false; then : |
| 11262 |
$as_echo_n "(cached) " >&6 |
| 11263 |
else |
| 11264 |
ac_check_lib_save_LIBS=$LIBS |
| 11265 |
LIBS="-lbsd $LIBS" |
| 11266 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11267 |
/* end confdefs.h. */ |
| 11268 |
|
| 11269 |
/* Override any GCC internal prototype to avoid an error. |
| 11270 |
Use char because int might match the return type of a GCC |
| 11271 |
builtin and then its argument prototype would still apply. */ |
| 11272 |
#ifdef __cplusplus |
| 11273 |
extern "C" |
| 11274 |
#endif |
| 11275 |
char daemon (); |
| 11276 |
int |
| 11277 |
main () |
| 11278 |
{ |
| 11279 |
return daemon (); |
| 11280 |
; |
| 11281 |
return 0; |
| 11282 |
} |
| 11283 |
_ACEOF |
| 11284 |
if ac_fn_c_try_link "$LINENO"; then : |
| 11285 |
ac_cv_lib_bsd_daemon=yes |
| 11286 |
else |
| 11287 |
ac_cv_lib_bsd_daemon=no |
| 11288 |
fi |
| 11289 |
rm -f core conftest.err conftest.$ac_objext \ |
| 11290 |
conftest$ac_exeext conftest.$ac_ext |
| 11291 |
LIBS=$ac_check_lib_save_LIBS |
| 11292 |
fi |
| 11293 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5 |
| 11294 |
$as_echo "$ac_cv_lib_bsd_daemon" >&6; } |
| 11295 |
if test "x$ac_cv_lib_bsd_daemon" = xyes; then : |
| 11296 |
LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h |
| 11297 |
|
| 11298 |
fi |
| 11299 |
|
| 11300 |
|
| 11301 |
fi |
| 11302 |
|
| 11303 |
|
| 11304 |
ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
| 11305 |
if test "x$ac_cv_func_getpagesize" = xyes; then : |
| 11306 |
|
| 11307 |
$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
| 11308 |
|
| 11309 |
else |
| 11310 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5 |
| 11311 |
$as_echo_n "checking for getpagesize in -lucb... " >&6; } |
| 11312 |
if ${ac_cv_lib_ucb_getpagesize+:} false; then : |
| 11313 |
$as_echo_n "(cached) " >&6 |
| 11314 |
else |
| 11315 |
ac_check_lib_save_LIBS=$LIBS |
| 11316 |
LIBS="-lucb $LIBS" |
| 11317 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11318 |
/* end confdefs.h. */ |
| 11319 |
|
| 11320 |
/* Override any GCC internal prototype to avoid an error. |
| 11321 |
Use char because int might match the return type of a GCC |
| 11322 |
builtin and then its argument prototype would still apply. */ |
| 11323 |
#ifdef __cplusplus |
| 11324 |
extern "C" |
| 11325 |
#endif |
| 11326 |
char getpagesize (); |
| 11327 |
int |
| 11328 |
main () |
| 11329 |
{ |
| 11330 |
return getpagesize (); |
| 11331 |
; |
| 11332 |
return 0; |
| 11333 |
} |
| 11334 |
_ACEOF |
| 11335 |
if ac_fn_c_try_link "$LINENO"; then : |
| 11336 |
ac_cv_lib_ucb_getpagesize=yes |
| 11337 |
else |
| 11338 |
ac_cv_lib_ucb_getpagesize=no |
| 11339 |
fi |
| 11340 |
rm -f core conftest.err conftest.$ac_objext \ |
| 11341 |
conftest$ac_exeext conftest.$ac_ext |
| 11342 |
LIBS=$ac_check_lib_save_LIBS |
| 11343 |
fi |
| 11344 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5 |
| 11345 |
$as_echo "$ac_cv_lib_ucb_getpagesize" >&6; } |
| 11346 |
if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then : |
| 11347 |
LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h |
| 11348 |
|
| 11349 |
fi |
| 11350 |
|
| 11351 |
|
| 11352 |
fi |
| 11353 |
|
| 11354 |
|
| 11355 |
# Check for broken snprintf |
| 11356 |
if test "x$ac_cv_func_snprintf" = "xyes" ; then |
| 11357 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5 |
| 11358 |
$as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; } |
| 11359 |
if test "$cross_compiling" = yes; then : |
| 11360 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 |
| 11361 |
$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} |
| 11362 |
|
| 11363 |
else |
| 11364 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11365 |
/* end confdefs.h. */ |
| 11366 |
#include <stdio.h> |
| 11367 |
int |
| 11368 |
main () |
| 11369 |
{ |
| 11370 |
|
| 11371 |
char b[5]; |
| 11372 |
snprintf(b,5,"123456789"); |
| 11373 |
exit(b[4]!='\0'); |
| 11374 |
|
| 11375 |
; |
| 11376 |
return 0; |
| 11377 |
} |
| 11378 |
_ACEOF |
| 11379 |
if ac_fn_c_try_run "$LINENO"; then : |
| 11380 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11381 |
$as_echo "yes" >&6; } |
| 11382 |
else |
| 11383 |
|
| 11384 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11385 |
$as_echo "no" >&6; } |
| 11386 |
|
| 11387 |
$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h |
| 11388 |
|
| 11389 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 |
| 11390 |
$as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} |
| 11391 |
|
| 11392 |
fi |
| 11393 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11394 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11395 |
fi |
| 11396 |
|
| 11397 |
fi |
| 11398 |
|
| 11399 |
# We depend on vsnprintf returning the right thing on overflow: the |
| 11400 |
# number of characters it tried to create (as per SUSv3) |
| 11401 |
if test "x$ac_cv_func_vsnprintf" = "xyes" ; then |
| 11402 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5 |
| 11403 |
$as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; } |
| 11404 |
if test "$cross_compiling" = yes; then : |
| 11405 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5 |
| 11406 |
$as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;} |
| 11407 |
|
| 11408 |
else |
| 11409 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11410 |
/* end confdefs.h. */ |
| 11411 |
|
| 11412 |
#include <sys/types.h> |
| 11413 |
#include <stdio.h> |
| 11414 |
#include <stdarg.h> |
| 11415 |
|
| 11416 |
int x_snprintf(char *str, size_t count, const char *fmt, ...) |
| 11417 |
{ |
| 11418 |
size_t ret; |
| 11419 |
va_list ap; |
| 11420 |
|
| 11421 |
va_start(ap, fmt); |
| 11422 |
ret = vsnprintf(str, count, fmt, ap); |
| 11423 |
va_end(ap); |
| 11424 |
return ret; |
| 11425 |
} |
| 11426 |
|
| 11427 |
int |
| 11428 |
main () |
| 11429 |
{ |
| 11430 |
|
| 11431 |
char x[1]; |
| 11432 |
if (x_snprintf(x, 1, "%s %d", "hello", 12345) != 11) |
| 11433 |
return 1; |
| 11434 |
if (x_snprintf(NULL, 0, "%s %d", "hello", 12345) != 11) |
| 11435 |
return 1; |
| 11436 |
return 0; |
| 11437 |
|
| 11438 |
; |
| 11439 |
return 0; |
| 11440 |
} |
| 11441 |
_ACEOF |
| 11442 |
if ac_fn_c_try_run "$LINENO"; then : |
| 11443 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11444 |
$as_echo "yes" >&6; } |
| 11445 |
else |
| 11446 |
|
| 11447 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11448 |
$as_echo "no" >&6; } |
| 11449 |
|
| 11450 |
$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h |
| 11451 |
|
| 11452 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5 |
| 11453 |
$as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;} |
| 11454 |
|
| 11455 |
fi |
| 11456 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11457 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11458 |
fi |
| 11459 |
|
| 11460 |
fi |
| 11461 |
|
| 11462 |
# On systems where [v]snprintf is broken, but is declared in stdio, |
| 11463 |
# check that the fmt argument is const char * or just char *. |
| 11464 |
# This is only useful for when BROKEN_SNPRINTF |
| 11465 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5 |
| 11466 |
$as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; } |
| 11467 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11468 |
/* end confdefs.h. */ |
| 11469 |
|
| 11470 |
#include <stdio.h> |
| 11471 |
int snprintf(char *a, size_t b, const char *c, ...) { return 0; } |
| 11472 |
|
| 11473 |
int |
| 11474 |
main () |
| 11475 |
{ |
| 11476 |
|
| 11477 |
snprintf(0, 0, 0); |
| 11478 |
|
| 11479 |
; |
| 11480 |
return 0; |
| 11481 |
} |
| 11482 |
_ACEOF |
| 11483 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 11484 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11485 |
$as_echo "yes" >&6; } |
| 11486 |
|
| 11487 |
$as_echo "#define SNPRINTF_CONST const" >>confdefs.h |
| 11488 |
|
| 11489 |
else |
| 11490 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11491 |
$as_echo "no" >&6; } |
| 11492 |
$as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h |
| 11493 |
|
| 11494 |
fi |
| 11495 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11496 |
|
| 11497 |
# Check for missing getpeereid (or equiv) support |
| 11498 |
NO_PEERCHECK="" |
| 11499 |
if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then |
| 11500 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5 |
| 11501 |
$as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; } |
| 11502 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11503 |
/* end confdefs.h. */ |
| 11504 |
|
| 11505 |
#include <sys/types.h> |
| 11506 |
#include <sys/socket.h> |
| 11507 |
int |
| 11508 |
main () |
| 11509 |
{ |
| 11510 |
int i = SO_PEERCRED; |
| 11511 |
; |
| 11512 |
return 0; |
| 11513 |
} |
| 11514 |
_ACEOF |
| 11515 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 11516 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11517 |
$as_echo "yes" >&6; } |
| 11518 |
|
| 11519 |
$as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h |
| 11520 |
|
| 11521 |
|
| 11522 |
else |
| 11523 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11524 |
$as_echo "no" >&6; } |
| 11525 |
NO_PEERCHECK=1 |
| 11526 |
|
| 11527 |
fi |
| 11528 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11529 |
fi |
| 11530 |
|
| 11531 |
if test "x$ac_cv_func_mkdtemp" = "xyes" ; then |
| 11532 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5 |
| 11533 |
$as_echo_n "checking for (overly) strict mkstemp... " >&6; } |
| 11534 |
if test "$cross_compiling" = yes; then : |
| 11535 |
|
| 11536 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11537 |
$as_echo "yes" >&6; } |
| 11538 |
$as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h |
| 11539 |
|
| 11540 |
|
| 11541 |
|
| 11542 |
else |
| 11543 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11544 |
/* end confdefs.h. */ |
| 11545 |
|
| 11546 |
#include <stdlib.h> |
| 11547 |
|
| 11548 |
int |
| 11549 |
main () |
| 11550 |
{ |
| 11551 |
|
| 11552 |
char template[]="conftest.mkstemp-test"; |
| 11553 |
if (mkstemp(template) == -1) |
| 11554 |
exit(1); |
| 11555 |
unlink(template); |
| 11556 |
exit(0); |
| 11557 |
|
| 11558 |
; |
| 11559 |
return 0; |
| 11560 |
} |
| 11561 |
_ACEOF |
| 11562 |
if ac_fn_c_try_run "$LINENO"; then : |
| 11563 |
|
| 11564 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11565 |
$as_echo "no" >&6; } |
| 11566 |
|
| 11567 |
else |
| 11568 |
|
| 11569 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11570 |
$as_echo "yes" >&6; } |
| 11571 |
|
| 11572 |
$as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h |
| 11573 |
|
| 11574 |
|
| 11575 |
fi |
| 11576 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11577 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11578 |
fi |
| 11579 |
|
| 11580 |
fi |
| 11581 |
|
| 11582 |
if test ! -z "$check_for_openpty_ctty_bug"; then |
| 11583 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5 |
| 11584 |
$as_echo_n "checking if openpty correctly handles controlling tty... " >&6; } |
| 11585 |
if test "$cross_compiling" = yes; then : |
| 11586 |
|
| 11587 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 |
| 11588 |
$as_echo "cross-compiling, assuming yes" >&6; } |
| 11589 |
|
| 11590 |
|
| 11591 |
else |
| 11592 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11593 |
/* end confdefs.h. */ |
| 11594 |
|
| 11595 |
#include <stdio.h> |
| 11596 |
#include <sys/fcntl.h> |
| 11597 |
#include <sys/types.h> |
| 11598 |
#include <sys/wait.h> |
| 11599 |
|
| 11600 |
int |
| 11601 |
main () |
| 11602 |
{ |
| 11603 |
|
| 11604 |
pid_t pid; |
| 11605 |
int fd, ptyfd, ttyfd, status; |
| 11606 |
|
| 11607 |
pid = fork(); |
| 11608 |
if (pid < 0) { /* failed */ |
| 11609 |
exit(1); |
| 11610 |
} else if (pid > 0) { /* parent */ |
| 11611 |
waitpid(pid, &status, 0); |
| 11612 |
if (WIFEXITED(status)) |
| 11613 |
exit(WEXITSTATUS(status)); |
| 11614 |
else |
| 11615 |
exit(2); |
| 11616 |
} else { /* child */ |
| 11617 |
close(0); close(1); close(2); |
| 11618 |
setsid(); |
| 11619 |
openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); |
| 11620 |
fd = open("/dev/tty", O_RDWR | O_NOCTTY); |
| 11621 |
if (fd >= 0) |
| 11622 |
exit(3); /* Acquired ctty: broken */ |
| 11623 |
else |
| 11624 |
exit(0); /* Did not acquire ctty: OK */ |
| 11625 |
} |
| 11626 |
|
| 11627 |
; |
| 11628 |
return 0; |
| 11629 |
} |
| 11630 |
_ACEOF |
| 11631 |
if ac_fn_c_try_run "$LINENO"; then : |
| 11632 |
|
| 11633 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11634 |
$as_echo "yes" >&6; } |
| 11635 |
|
| 11636 |
else |
| 11637 |
|
| 11638 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11639 |
$as_echo "no" >&6; } |
| 11640 |
$as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h |
| 11641 |
|
| 11642 |
|
| 11643 |
fi |
| 11644 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11645 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11646 |
fi |
| 11647 |
|
| 11648 |
fi |
| 11649 |
|
| 11650 |
if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ |
| 11651 |
test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then |
| 11652 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 |
| 11653 |
$as_echo_n "checking if getaddrinfo seems to work... " >&6; } |
| 11654 |
if test "$cross_compiling" = yes; then : |
| 11655 |
|
| 11656 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 |
| 11657 |
$as_echo "cross-compiling, assuming yes" >&6; } |
| 11658 |
|
| 11659 |
|
| 11660 |
else |
| 11661 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11662 |
/* end confdefs.h. */ |
| 11663 |
|
| 11664 |
#include <stdio.h> |
| 11665 |
#include <sys/socket.h> |
| 11666 |
#include <netdb.h> |
| 11667 |
#include <errno.h> |
| 11668 |
#include <netinet/in.h> |
| 11669 |
|
| 11670 |
#define TEST_PORT "2222" |
| 11671 |
|
| 11672 |
int |
| 11673 |
main () |
| 11674 |
{ |
| 11675 |
|
| 11676 |
int err, sock; |
| 11677 |
struct addrinfo *gai_ai, *ai, hints; |
| 11678 |
char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; |
| 11679 |
|
| 11680 |
memset(&hints, 0, sizeof(hints)); |
| 11681 |
hints.ai_family = PF_UNSPEC; |
| 11682 |
hints.ai_socktype = SOCK_STREAM; |
| 11683 |
hints.ai_flags = AI_PASSIVE; |
| 11684 |
|
| 11685 |
err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); |
| 11686 |
if (err != 0) { |
| 11687 |
fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); |
| 11688 |
exit(1); |
| 11689 |
} |
| 11690 |
|
| 11691 |
for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { |
| 11692 |
if (ai->ai_family != AF_INET6) |
| 11693 |
continue; |
| 11694 |
|
| 11695 |
err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, |
| 11696 |
sizeof(ntop), strport, sizeof(strport), |
| 11697 |
NI_NUMERICHOST|NI_NUMERICSERV); |
| 11698 |
|
| 11699 |
if (err != 0) { |
| 11700 |
if (err == EAI_SYSTEM) |
| 11701 |
perror("getnameinfo EAI_SYSTEM"); |
| 11702 |
else |
| 11703 |
fprintf(stderr, "getnameinfo failed: %s\n", |
| 11704 |
gai_strerror(err)); |
| 11705 |
exit(2); |
| 11706 |
} |
| 11707 |
|
| 11708 |
sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); |
| 11709 |
if (sock < 0) |
| 11710 |
perror("socket"); |
| 11711 |
if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { |
| 11712 |
if (errno == EBADF) |
| 11713 |
exit(3); |
| 11714 |
} |
| 11715 |
} |
| 11716 |
exit(0); |
| 11717 |
|
| 11718 |
; |
| 11719 |
return 0; |
| 11720 |
} |
| 11721 |
_ACEOF |
| 11722 |
if ac_fn_c_try_run "$LINENO"; then : |
| 11723 |
|
| 11724 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11725 |
$as_echo "yes" >&6; } |
| 11726 |
|
| 11727 |
else |
| 11728 |
|
| 11729 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11730 |
$as_echo "no" >&6; } |
| 11731 |
$as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h |
| 11732 |
|
| 11733 |
|
| 11734 |
fi |
| 11735 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11736 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11737 |
fi |
| 11738 |
|
| 11739 |
fi |
| 11740 |
|
| 11741 |
if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ |
| 11742 |
test "x$check_for_aix_broken_getaddrinfo" = "x1"; then |
| 11743 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 |
| 11744 |
$as_echo_n "checking if getaddrinfo seems to work... " >&6; } |
| 11745 |
if test "$cross_compiling" = yes; then : |
| 11746 |
|
| 11747 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5 |
| 11748 |
$as_echo "cross-compiling, assuming no" >&6; } |
| 11749 |
|
| 11750 |
|
| 11751 |
else |
| 11752 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11753 |
/* end confdefs.h. */ |
| 11754 |
|
| 11755 |
#include <stdio.h> |
| 11756 |
#include <sys/socket.h> |
| 11757 |
#include <netdb.h> |
| 11758 |
#include <errno.h> |
| 11759 |
#include <netinet/in.h> |
| 11760 |
|
| 11761 |
#define TEST_PORT "2222" |
| 11762 |
|
| 11763 |
int |
| 11764 |
main () |
| 11765 |
{ |
| 11766 |
|
| 11767 |
int err, sock; |
| 11768 |
struct addrinfo *gai_ai, *ai, hints; |
| 11769 |
char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; |
| 11770 |
|
| 11771 |
memset(&hints, 0, sizeof(hints)); |
| 11772 |
hints.ai_family = PF_UNSPEC; |
| 11773 |
hints.ai_socktype = SOCK_STREAM; |
| 11774 |
hints.ai_flags = AI_PASSIVE; |
| 11775 |
|
| 11776 |
err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); |
| 11777 |
if (err != 0) { |
| 11778 |
fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); |
| 11779 |
exit(1); |
| 11780 |
} |
| 11781 |
|
| 11782 |
for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { |
| 11783 |
if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) |
| 11784 |
continue; |
| 11785 |
|
| 11786 |
err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, |
| 11787 |
sizeof(ntop), strport, sizeof(strport), |
| 11788 |
NI_NUMERICHOST|NI_NUMERICSERV); |
| 11789 |
|
| 11790 |
if (ai->ai_family == AF_INET && err != 0) { |
| 11791 |
perror("getnameinfo"); |
| 11792 |
exit(2); |
| 11793 |
} |
| 11794 |
} |
| 11795 |
exit(0); |
| 11796 |
|
| 11797 |
; |
| 11798 |
return 0; |
| 11799 |
} |
| 11800 |
_ACEOF |
| 11801 |
if ac_fn_c_try_run "$LINENO"; then : |
| 11802 |
|
| 11803 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11804 |
$as_echo "yes" >&6; } |
| 11805 |
|
| 11806 |
$as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h |
| 11807 |
|
| 11808 |
|
| 11809 |
else |
| 11810 |
|
| 11811 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11812 |
$as_echo "no" >&6; } |
| 11813 |
$as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h |
| 11814 |
|
| 11815 |
|
| 11816 |
fi |
| 11817 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 11818 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11819 |
fi |
| 11820 |
|
| 11821 |
fi |
| 11822 |
|
| 11823 |
if test "x$ac_cv_func_getaddrinfo" = "xyes"; then |
| 11824 |
ac_fn_c_check_decl "$LINENO" "AI_NUMERICSERV" "ac_cv_have_decl_AI_NUMERICSERV" "#include <sys/types.h> |
| 11825 |
#include <sys/socket.h> |
| 11826 |
#include <netdb.h> |
| 11827 |
" |
| 11828 |
if test "x$ac_cv_have_decl_AI_NUMERICSERV" = xyes; then : |
| 11829 |
ac_have_decl=1 |
| 11830 |
else |
| 11831 |
ac_have_decl=0 |
| 11832 |
fi |
| 11833 |
|
| 11834 |
cat >>confdefs.h <<_ACEOF |
| 11835 |
#define HAVE_DECL_AI_NUMERICSERV $ac_have_decl |
| 11836 |
_ACEOF |
| 11837 |
|
| 11838 |
fi |
| 11839 |
|
| 11840 |
if test "x$check_for_conflicting_getspnam" = "x1"; then |
| 11841 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5 |
| 11842 |
$as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; } |
| 11843 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11844 |
/* end confdefs.h. */ |
| 11845 |
#include <shadow.h> |
| 11846 |
int |
| 11847 |
main () |
| 11848 |
{ |
| 11849 |
exit(0); |
| 11850 |
; |
| 11851 |
return 0; |
| 11852 |
} |
| 11853 |
_ACEOF |
| 11854 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 11855 |
|
| 11856 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11857 |
$as_echo "no" >&6; } |
| 11858 |
|
| 11859 |
else |
| 11860 |
|
| 11861 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11862 |
$as_echo "yes" >&6; } |
| 11863 |
|
| 11864 |
$as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h |
| 11865 |
|
| 11866 |
|
| 11867 |
|
| 11868 |
fi |
| 11869 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11870 |
fi |
| 11871 |
|
| 11872 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 |
| 11873 |
$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } |
| 11874 |
if ${ac_cv_func_getpgrp_void+:} false; then : |
| 11875 |
$as_echo_n "(cached) " >&6 |
| 11876 |
else |
| 11877 |
# Use it with a single arg. |
| 11878 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11879 |
/* end confdefs.h. */ |
| 11880 |
$ac_includes_default |
| 11881 |
int |
| 11882 |
main () |
| 11883 |
{ |
| 11884 |
getpgrp (0); |
| 11885 |
; |
| 11886 |
return 0; |
| 11887 |
} |
| 11888 |
_ACEOF |
| 11889 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 11890 |
ac_cv_func_getpgrp_void=no |
| 11891 |
else |
| 11892 |
ac_cv_func_getpgrp_void=yes |
| 11893 |
fi |
| 11894 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11895 |
|
| 11896 |
fi |
| 11897 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 |
| 11898 |
$as_echo "$ac_cv_func_getpgrp_void" >&6; } |
| 11899 |
if test $ac_cv_func_getpgrp_void = yes; then |
| 11900 |
|
| 11901 |
$as_echo "#define GETPGRP_VOID 1" >>confdefs.h |
| 11902 |
|
| 11903 |
fi |
| 11904 |
|
| 11905 |
|
| 11906 |
# Search for OpenSSL |
| 11907 |
saved_CPPFLAGS="$CPPFLAGS" |
| 11908 |
saved_LDFLAGS="$LDFLAGS" |
| 11909 |
|
| 11910 |
# Check whether --with-ssl-dir was given. |
| 11911 |
if test "${with_ssl_dir+set}" = set; then : |
| 11912 |
withval=$with_ssl_dir; |
| 11913 |
if test "x$openssl" = "xno" ; then |
| 11914 |
as_fn_error $? "cannot use --with-openssl when OpenSSL disabled" "$LINENO" 5 |
| 11915 |
fi |
| 11916 |
if test "x$withval" != "xno" ; then |
| 11917 |
case "$withval" in |
| 11918 |
# Relative paths |
| 11919 |
./*|../*) withval="`pwd`/$withval" |
| 11920 |
esac |
| 11921 |
if test -d "$withval/lib"; then |
| 11922 |
if test -n "${need_dash_r}"; then |
| 11923 |
LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" |
| 11924 |
else |
| 11925 |
LDFLAGS="-L${withval}/lib ${LDFLAGS}" |
| 11926 |
fi |
| 11927 |
elif test -d "$withval/lib64"; then |
| 11928 |
if test -n "${need_dash_r}"; then |
| 11929 |
LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}" |
| 11930 |
else |
| 11931 |
LDFLAGS="-L${withval}/lib64 ${LDFLAGS}" |
| 11932 |
fi |
| 11933 |
else |
| 11934 |
if test -n "${need_dash_r}"; then |
| 11935 |
LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" |
| 11936 |
else |
| 11937 |
LDFLAGS="-L${withval} ${LDFLAGS}" |
| 11938 |
fi |
| 11939 |
fi |
| 11940 |
if test -d "$withval/include"; then |
| 11941 |
CPPFLAGS="-I${withval}/include ${CPPFLAGS}" |
| 11942 |
else |
| 11943 |
CPPFLAGS="-I${withval} ${CPPFLAGS}" |
| 11944 |
fi |
| 11945 |
fi |
| 11946 |
|
| 11947 |
|
| 11948 |
fi |
| 11949 |
|
| 11950 |
|
| 11951 |
|
| 11952 |
# Check whether --with-openssl-header-check was given. |
| 11953 |
if test "${with_openssl_header_check+set}" = set; then : |
| 11954 |
withval=$with_openssl_header_check; |
| 11955 |
if test "x$withval" = "xno" ; then |
| 11956 |
openssl_check_nonfatal=1 |
| 11957 |
fi |
| 11958 |
|
| 11959 |
|
| 11960 |
fi |
| 11961 |
|
| 11962 |
|
| 11963 |
openssl_engine=no |
| 11964 |
|
| 11965 |
# Check whether --with-ssl-engine was given. |
| 11966 |
if test "${with_ssl_engine+set}" = set; then : |
| 11967 |
withval=$with_ssl_engine; |
| 11968 |
if test "x$openssl" = "xno" ; then |
| 11969 |
as_fn_error $? "cannot use --with-ssl-engine when OpenSSL disabled" "$LINENO" 5 |
| 11970 |
fi |
| 11971 |
if test "x$withval" != "xno" ; then |
| 11972 |
openssl_engine=yes |
| 11973 |
fi |
| 11974 |
|
| 11975 |
|
| 11976 |
fi |
| 11977 |
|
| 11978 |
|
| 11979 |
if test "x$openssl" = "xyes" ; then |
| 11980 |
LIBS="-lcrypto $LIBS" |
| 11981 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11982 |
/* end confdefs.h. */ |
| 11983 |
|
| 11984 |
/* Override any GCC internal prototype to avoid an error. |
| 11985 |
Use char because int might match the return type of a GCC |
| 11986 |
builtin and then its argument prototype would still apply. */ |
| 11987 |
#ifdef __cplusplus |
| 11988 |
extern "C" |
| 11989 |
#endif |
| 11990 |
char RAND_add (); |
| 11991 |
int |
| 11992 |
main () |
| 11993 |
{ |
| 11994 |
return RAND_add (); |
| 11995 |
; |
| 11996 |
return 0; |
| 11997 |
} |
| 11998 |
_ACEOF |
| 11999 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12000 |
|
| 12001 |
$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h |
| 12002 |
|
| 12003 |
else |
| 12004 |
|
| 12005 |
if test -n "${need_dash_r}"; then |
| 12006 |
LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" |
| 12007 |
else |
| 12008 |
LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" |
| 12009 |
fi |
| 12010 |
CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" |
| 12011 |
ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default" |
| 12012 |
if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then : |
| 12013 |
|
| 12014 |
else |
| 12015 |
as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5 |
| 12016 |
fi |
| 12017 |
|
| 12018 |
|
| 12019 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12020 |
/* end confdefs.h. */ |
| 12021 |
|
| 12022 |
/* Override any GCC internal prototype to avoid an error. |
| 12023 |
Use char because int might match the return type of a GCC |
| 12024 |
builtin and then its argument prototype would still apply. */ |
| 12025 |
#ifdef __cplusplus |
| 12026 |
extern "C" |
| 12027 |
#endif |
| 12028 |
char RAND_add (); |
| 12029 |
int |
| 12030 |
main () |
| 12031 |
{ |
| 12032 |
return RAND_add (); |
| 12033 |
; |
| 12034 |
return 0; |
| 12035 |
} |
| 12036 |
_ACEOF |
| 12037 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12038 |
$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h |
| 12039 |
|
| 12040 |
else |
| 12041 |
|
| 12042 |
as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5 |
| 12043 |
|
| 12044 |
|
| 12045 |
fi |
| 12046 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12047 |
conftest$ac_exeext conftest.$ac_ext |
| 12048 |
|
| 12049 |
|
| 12050 |
fi |
| 12051 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12052 |
conftest$ac_exeext conftest.$ac_ext |
| 12053 |
|
| 12054 |
# Determine OpenSSL header version |
| 12055 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5 |
| 12056 |
$as_echo_n "checking OpenSSL header version... " >&6; } |
| 12057 |
if test "$cross_compiling" = yes; then : |
| 12058 |
|
| 12059 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 |
| 12060 |
$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} |
| 12061 |
|
| 12062 |
|
| 12063 |
else |
| 12064 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12065 |
/* end confdefs.h. */ |
| 12066 |
|
| 12067 |
#include <stdio.h> |
| 12068 |
#include <string.h> |
| 12069 |
#include <openssl/opensslv.h> |
| 12070 |
#define DATA "conftest.sslincver" |
| 12071 |
|
| 12072 |
int |
| 12073 |
main () |
| 12074 |
{ |
| 12075 |
|
| 12076 |
FILE *fd; |
| 12077 |
int rc; |
| 12078 |
|
| 12079 |
fd = fopen(DATA,"w"); |
| 12080 |
if(fd == NULL) |
| 12081 |
exit(1); |
| 12082 |
|
| 12083 |
if ((rc = fprintf(fd ,"%08x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) |
| 12084 |
exit(1); |
| 12085 |
|
| 12086 |
exit(0); |
| 12087 |
|
| 12088 |
; |
| 12089 |
return 0; |
| 12090 |
} |
| 12091 |
_ACEOF |
| 12092 |
if ac_fn_c_try_run "$LINENO"; then : |
| 12093 |
|
| 12094 |
ssl_header_ver=`cat conftest.sslincver` |
| 12095 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5 |
| 12096 |
$as_echo "$ssl_header_ver" >&6; } |
| 12097 |
|
| 12098 |
else |
| 12099 |
|
| 12100 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 12101 |
$as_echo "not found" >&6; } |
| 12102 |
as_fn_error $? "OpenSSL version header not found." "$LINENO" 5 |
| 12103 |
|
| 12104 |
fi |
| 12105 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12106 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12107 |
fi |
| 12108 |
|
| 12109 |
|
| 12110 |
# Determine OpenSSL library version |
| 12111 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5 |
| 12112 |
$as_echo_n "checking OpenSSL library version... " >&6; } |
| 12113 |
if test "$cross_compiling" = yes; then : |
| 12114 |
|
| 12115 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 |
| 12116 |
$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} |
| 12117 |
|
| 12118 |
|
| 12119 |
else |
| 12120 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12121 |
/* end confdefs.h. */ |
| 12122 |
|
| 12123 |
#include <stdio.h> |
| 12124 |
#include <string.h> |
| 12125 |
#define OPENSSL_API_COMPAT 0x10000000L |
| 12126 |
#include <openssl/opensslv.h> |
| 12127 |
#include <openssl/crypto.h> |
| 12128 |
#define DATA "conftest.ssllibver" |
| 12129 |
|
| 12130 |
int |
| 12131 |
main () |
| 12132 |
{ |
| 12133 |
|
| 12134 |
FILE *fd; |
| 12135 |
int rc; |
| 12136 |
|
| 12137 |
fd = fopen(DATA,"w"); |
| 12138 |
if(fd == NULL) |
| 12139 |
exit(1); |
| 12140 |
|
| 12141 |
if ((rc = fprintf(fd ,"%08x (%s)\n", SSLeay(), |
| 12142 |
SSLeay_version(SSLEAY_VERSION))) <0) |
| 12143 |
exit(1); |
| 12144 |
|
| 12145 |
exit(0); |
| 12146 |
|
| 12147 |
; |
| 12148 |
return 0; |
| 12149 |
} |
| 12150 |
_ACEOF |
| 12151 |
if ac_fn_c_try_run "$LINENO"; then : |
| 12152 |
|
| 12153 |
ssl_library_ver=`cat conftest.ssllibver` |
| 12154 |
# Check version is supported. |
| 12155 |
case "$ssl_library_ver" in |
| 12156 |
0090[0-7]*|009080[0-5]*) |
| 12157 |
as_fn_error $? "OpenSSL >= 0.9.8f required (have \"$ssl_library_ver\")" "$LINENO" 5 |
| 12158 |
;; |
| 12159 |
*) ;; |
| 12160 |
esac |
| 12161 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5 |
| 12162 |
$as_echo "$ssl_library_ver" >&6; } |
| 12163 |
|
| 12164 |
else |
| 12165 |
|
| 12166 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 12167 |
$as_echo "not found" >&6; } |
| 12168 |
as_fn_error $? "OpenSSL library not found." "$LINENO" 5 |
| 12169 |
|
| 12170 |
fi |
| 12171 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12172 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12173 |
fi |
| 12174 |
|
| 12175 |
|
| 12176 |
# Sanity check OpenSSL headers |
| 12177 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5 |
| 12178 |
$as_echo_n "checking whether OpenSSL's headers match the library... " >&6; } |
| 12179 |
if test "$cross_compiling" = yes; then : |
| 12180 |
|
| 12181 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 |
| 12182 |
$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} |
| 12183 |
|
| 12184 |
|
| 12185 |
else |
| 12186 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12187 |
/* end confdefs.h. */ |
| 12188 |
|
| 12189 |
#include <string.h> |
| 12190 |
#define OPENSSL_API_COMPAT 0x10000000L |
| 12191 |
#include <openssl/crypto.h> |
| 12192 |
#include <openssl/opensslv.h> |
| 12193 |
|
| 12194 |
int |
| 12195 |
main () |
| 12196 |
{ |
| 12197 |
|
| 12198 |
exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); |
| 12199 |
|
| 12200 |
; |
| 12201 |
return 0; |
| 12202 |
} |
| 12203 |
_ACEOF |
| 12204 |
if ac_fn_c_try_run "$LINENO"; then : |
| 12205 |
|
| 12206 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12207 |
$as_echo "yes" >&6; } |
| 12208 |
|
| 12209 |
else |
| 12210 |
|
| 12211 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12212 |
$as_echo "no" >&6; } |
| 12213 |
if test "x$openssl_check_nonfatal" = "x"; then |
| 12214 |
as_fn_error $? "Your OpenSSL headers do not match your |
| 12215 |
library. Check config.log for details. |
| 12216 |
If you are sure your installation is consistent, you can disable the check |
| 12217 |
by running \"./configure --without-openssl-header-check\". |
| 12218 |
Also see contrib/findssl.sh for help identifying header/library mismatches. |
| 12219 |
" "$LINENO" 5 |
| 12220 |
else |
| 12221 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your |
| 12222 |
library. Check config.log for details. |
| 12223 |
Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 |
| 12224 |
$as_echo "$as_me: WARNING: Your OpenSSL headers do not match your |
| 12225 |
library. Check config.log for details. |
| 12226 |
Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} |
| 12227 |
fi |
| 12228 |
|
| 12229 |
fi |
| 12230 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12231 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12232 |
fi |
| 12233 |
|
| 12234 |
|
| 12235 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5 |
| 12236 |
$as_echo_n "checking if programs using OpenSSL functions will link... " >&6; } |
| 12237 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12238 |
/* end confdefs.h. */ |
| 12239 |
|
| 12240 |
#define OPENSSL_API_COMPAT 0x10000000L |
| 12241 |
#include <openssl/evp.h> |
| 12242 |
|
| 12243 |
int |
| 12244 |
main () |
| 12245 |
{ |
| 12246 |
SSLeay_add_all_algorithms(); |
| 12247 |
; |
| 12248 |
return 0; |
| 12249 |
} |
| 12250 |
_ACEOF |
| 12251 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12252 |
|
| 12253 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12254 |
$as_echo "yes" >&6; } |
| 12255 |
|
| 12256 |
else |
| 12257 |
|
| 12258 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12259 |
$as_echo "no" >&6; } |
| 12260 |
saved_LIBS="$LIBS" |
| 12261 |
LIBS="$LIBS -ldl" |
| 12262 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5 |
| 12263 |
$as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; } |
| 12264 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12265 |
/* end confdefs.h. */ |
| 12266 |
#include <openssl/evp.h> |
| 12267 |
int |
| 12268 |
main () |
| 12269 |
{ |
| 12270 |
SSLeay_add_all_algorithms(); |
| 12271 |
; |
| 12272 |
return 0; |
| 12273 |
} |
| 12274 |
_ACEOF |
| 12275 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12276 |
|
| 12277 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12278 |
$as_echo "yes" >&6; } |
| 12279 |
|
| 12280 |
else |
| 12281 |
|
| 12282 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12283 |
$as_echo "no" >&6; } |
| 12284 |
LIBS="$saved_LIBS" |
| 12285 |
|
| 12286 |
|
| 12287 |
fi |
| 12288 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12289 |
conftest$ac_exeext conftest.$ac_ext |
| 12290 |
|
| 12291 |
|
| 12292 |
fi |
| 12293 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12294 |
conftest$ac_exeext conftest.$ac_ext |
| 12295 |
|
| 12296 |
for ac_func in \ |
| 12297 |
BN_is_prime_ex \ |
| 12298 |
DSA_generate_parameters_ex \ |
| 12299 |
EVP_DigestInit_ex \ |
| 12300 |
EVP_DigestFinal_ex \ |
| 12301 |
EVP_MD_CTX_init \ |
| 12302 |
EVP_MD_CTX_cleanup \ |
| 12303 |
EVP_MD_CTX_copy_ex \ |
| 12304 |
HMAC_CTX_init \ |
| 12305 |
RSA_generate_key_ex \ |
| 12306 |
RSA_get_default_method \ |
| 12307 |
|
| 12308 |
do : |
| 12309 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12310 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 12311 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 12312 |
cat >>confdefs.h <<_ACEOF |
| 12313 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12314 |
_ACEOF |
| 12315 |
|
| 12316 |
fi |
| 12317 |
done |
| 12318 |
|
| 12319 |
|
| 12320 |
if test "x$openssl_engine" = "xyes" ; then |
| 12321 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5 |
| 12322 |
$as_echo_n "checking for OpenSSL ENGINE support... " >&6; } |
| 12323 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12324 |
/* end confdefs.h. */ |
| 12325 |
|
| 12326 |
#include <openssl/engine.h> |
| 12327 |
|
| 12328 |
int |
| 12329 |
main () |
| 12330 |
{ |
| 12331 |
|
| 12332 |
ENGINE_load_builtin_engines(); |
| 12333 |
ENGINE_register_all_complete(); |
| 12334 |
|
| 12335 |
; |
| 12336 |
return 0; |
| 12337 |
} |
| 12338 |
_ACEOF |
| 12339 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 12340 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12341 |
$as_echo "yes" >&6; } |
| 12342 |
|
| 12343 |
$as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h |
| 12344 |
|
| 12345 |
|
| 12346 |
else |
| 12347 |
as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5 |
| 12348 |
|
| 12349 |
fi |
| 12350 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12351 |
fi |
| 12352 |
|
| 12353 |
# Check for OpenSSL without EVP_aes_{192,256}_cbc |
| 12354 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5 |
| 12355 |
$as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; } |
| 12356 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12357 |
/* end confdefs.h. */ |
| 12358 |
|
| 12359 |
#include <string.h> |
| 12360 |
#include <openssl/evp.h> |
| 12361 |
|
| 12362 |
int |
| 12363 |
main () |
| 12364 |
{ |
| 12365 |
|
| 12366 |
exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL); |
| 12367 |
|
| 12368 |
; |
| 12369 |
return 0; |
| 12370 |
} |
| 12371 |
_ACEOF |
| 12372 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12373 |
|
| 12374 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12375 |
$as_echo "no" >&6; } |
| 12376 |
|
| 12377 |
else |
| 12378 |
|
| 12379 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12380 |
$as_echo "yes" >&6; } |
| 12381 |
|
| 12382 |
$as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h |
| 12383 |
|
| 12384 |
|
| 12385 |
|
| 12386 |
fi |
| 12387 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12388 |
conftest$ac_exeext conftest.$ac_ext |
| 12389 |
|
| 12390 |
# Check for OpenSSL with EVP_aes_*ctr |
| 12391 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES CTR via EVP" >&5 |
| 12392 |
$as_echo_n "checking whether OpenSSL has AES CTR via EVP... " >&6; } |
| 12393 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12394 |
/* end confdefs.h. */ |
| 12395 |
|
| 12396 |
#include <string.h> |
| 12397 |
#include <openssl/evp.h> |
| 12398 |
|
| 12399 |
int |
| 12400 |
main () |
| 12401 |
{ |
| 12402 |
|
| 12403 |
exit(EVP_aes_128_ctr() == NULL || |
| 12404 |
EVP_aes_192_cbc() == NULL || |
| 12405 |
EVP_aes_256_cbc() == NULL); |
| 12406 |
|
| 12407 |
; |
| 12408 |
return 0; |
| 12409 |
} |
| 12410 |
_ACEOF |
| 12411 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12412 |
|
| 12413 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12414 |
$as_echo "yes" >&6; } |
| 12415 |
|
| 12416 |
$as_echo "#define OPENSSL_HAVE_EVPCTR 1" >>confdefs.h |
| 12417 |
|
| 12418 |
|
| 12419 |
else |
| 12420 |
|
| 12421 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12422 |
$as_echo "no" >&6; } |
| 12423 |
|
| 12424 |
|
| 12425 |
fi |
| 12426 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12427 |
conftest$ac_exeext conftest.$ac_ext |
| 12428 |
|
| 12429 |
# Check for OpenSSL with EVP_aes_*gcm |
| 12430 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES GCM via EVP" >&5 |
| 12431 |
$as_echo_n "checking whether OpenSSL has AES GCM via EVP... " >&6; } |
| 12432 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12433 |
/* end confdefs.h. */ |
| 12434 |
|
| 12435 |
#include <string.h> |
| 12436 |
#include <openssl/evp.h> |
| 12437 |
|
| 12438 |
int |
| 12439 |
main () |
| 12440 |
{ |
| 12441 |
|
| 12442 |
exit(EVP_aes_128_gcm() == NULL || |
| 12443 |
EVP_aes_256_gcm() == NULL || |
| 12444 |
EVP_CTRL_GCM_SET_IV_FIXED == 0 || |
| 12445 |
EVP_CTRL_GCM_IV_GEN == 0 || |
| 12446 |
EVP_CTRL_GCM_SET_TAG == 0 || |
| 12447 |
EVP_CTRL_GCM_GET_TAG == 0 || |
| 12448 |
EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0); |
| 12449 |
|
| 12450 |
; |
| 12451 |
return 0; |
| 12452 |
} |
| 12453 |
_ACEOF |
| 12454 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12455 |
|
| 12456 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12457 |
$as_echo "yes" >&6; } |
| 12458 |
|
| 12459 |
$as_echo "#define OPENSSL_HAVE_EVPGCM 1" >>confdefs.h |
| 12460 |
|
| 12461 |
|
| 12462 |
else |
| 12463 |
|
| 12464 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12465 |
$as_echo "no" >&6; } |
| 12466 |
unsupported_algorithms="$unsupported_cipers \ |
| 12467 |
[email protected] [email protected]" |
| 12468 |
|
| 12469 |
|
| 12470 |
fi |
| 12471 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12472 |
conftest$ac_exeext conftest.$ac_ext |
| 12473 |
|
| 12474 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_ctrl" >&5 |
| 12475 |
$as_echo_n "checking for library containing EVP_CIPHER_CTX_ctrl... " >&6; } |
| 12476 |
if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : |
| 12477 |
$as_echo_n "(cached) " >&6 |
| 12478 |
else |
| 12479 |
ac_func_search_save_LIBS=$LIBS |
| 12480 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12481 |
/* end confdefs.h. */ |
| 12482 |
|
| 12483 |
/* Override any GCC internal prototype to avoid an error. |
| 12484 |
Use char because int might match the return type of a GCC |
| 12485 |
builtin and then its argument prototype would still apply. */ |
| 12486 |
#ifdef __cplusplus |
| 12487 |
extern "C" |
| 12488 |
#endif |
| 12489 |
char EVP_CIPHER_CTX_ctrl (); |
| 12490 |
int |
| 12491 |
main () |
| 12492 |
{ |
| 12493 |
return EVP_CIPHER_CTX_ctrl (); |
| 12494 |
; |
| 12495 |
return 0; |
| 12496 |
} |
| 12497 |
_ACEOF |
| 12498 |
for ac_lib in '' crypto; do |
| 12499 |
if test -z "$ac_lib"; then |
| 12500 |
ac_res="none required" |
| 12501 |
else |
| 12502 |
ac_res=-l$ac_lib |
| 12503 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12504 |
fi |
| 12505 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12506 |
ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res |
| 12507 |
fi |
| 12508 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12509 |
conftest$ac_exeext |
| 12510 |
if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : |
| 12511 |
break |
| 12512 |
fi |
| 12513 |
done |
| 12514 |
if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : |
| 12515 |
|
| 12516 |
else |
| 12517 |
ac_cv_search_EVP_CIPHER_CTX_ctrl=no |
| 12518 |
fi |
| 12519 |
rm conftest.$ac_ext |
| 12520 |
LIBS=$ac_func_search_save_LIBS |
| 12521 |
fi |
| 12522 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5 |
| 12523 |
$as_echo "$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; } |
| 12524 |
ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl |
| 12525 |
if test "$ac_res" != no; then : |
| 12526 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 12527 |
|
| 12528 |
$as_echo "#define HAVE_EVP_CIPHER_CTX_CTRL 1" >>confdefs.h |
| 12529 |
|
| 12530 |
fi |
| 12531 |
|
| 12532 |
|
| 12533 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5 |
| 12534 |
$as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; } |
| 12535 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12536 |
/* end confdefs.h. */ |
| 12537 |
|
| 12538 |
#include <string.h> |
| 12539 |
#include <openssl/evp.h> |
| 12540 |
|
| 12541 |
int |
| 12542 |
main () |
| 12543 |
{ |
| 12544 |
|
| 12545 |
if(EVP_DigestUpdate(NULL, NULL,0)) |
| 12546 |
exit(0); |
| 12547 |
|
| 12548 |
; |
| 12549 |
return 0; |
| 12550 |
} |
| 12551 |
_ACEOF |
| 12552 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12553 |
|
| 12554 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12555 |
$as_echo "yes" >&6; } |
| 12556 |
|
| 12557 |
else |
| 12558 |
|
| 12559 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12560 |
$as_echo "no" >&6; } |
| 12561 |
|
| 12562 |
$as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h |
| 12563 |
|
| 12564 |
|
| 12565 |
|
| 12566 |
fi |
| 12567 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12568 |
conftest$ac_exeext conftest.$ac_ext |
| 12569 |
|
| 12570 |
# Some systems want crypt() from libcrypt, *not* the version in OpenSSL, |
| 12571 |
# because the system crypt() is more featureful. |
| 12572 |
if test "x$check_for_libcrypt_before" = "x1"; then |
| 12573 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 |
| 12574 |
$as_echo_n "checking for crypt in -lcrypt... " >&6; } |
| 12575 |
if ${ac_cv_lib_crypt_crypt+:} false; then : |
| 12576 |
$as_echo_n "(cached) " >&6 |
| 12577 |
else |
| 12578 |
ac_check_lib_save_LIBS=$LIBS |
| 12579 |
LIBS="-lcrypt $LIBS" |
| 12580 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12581 |
/* end confdefs.h. */ |
| 12582 |
|
| 12583 |
/* Override any GCC internal prototype to avoid an error. |
| 12584 |
Use char because int might match the return type of a GCC |
| 12585 |
builtin and then its argument prototype would still apply. */ |
| 12586 |
#ifdef __cplusplus |
| 12587 |
extern "C" |
| 12588 |
#endif |
| 12589 |
char crypt (); |
| 12590 |
int |
| 12591 |
main () |
| 12592 |
{ |
| 12593 |
return crypt (); |
| 12594 |
; |
| 12595 |
return 0; |
| 12596 |
} |
| 12597 |
_ACEOF |
| 12598 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12599 |
ac_cv_lib_crypt_crypt=yes |
| 12600 |
else |
| 12601 |
ac_cv_lib_crypt_crypt=no |
| 12602 |
fi |
| 12603 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12604 |
conftest$ac_exeext conftest.$ac_ext |
| 12605 |
LIBS=$ac_check_lib_save_LIBS |
| 12606 |
fi |
| 12607 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 |
| 12608 |
$as_echo "$ac_cv_lib_crypt_crypt" >&6; } |
| 12609 |
if test "x$ac_cv_lib_crypt_crypt" = xyes; then : |
| 12610 |
cat >>confdefs.h <<_ACEOF |
| 12611 |
#define HAVE_LIBCRYPT 1 |
| 12612 |
_ACEOF |
| 12613 |
|
| 12614 |
LIBS="-lcrypt $LIBS" |
| 12615 |
|
| 12616 |
fi |
| 12617 |
|
| 12618 |
fi |
| 12619 |
|
| 12620 |
# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the |
| 12621 |
# version in OpenSSL. |
| 12622 |
if test "x$check_for_libcrypt_later" = "x1"; then |
| 12623 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 |
| 12624 |
$as_echo_n "checking for crypt in -lcrypt... " >&6; } |
| 12625 |
if ${ac_cv_lib_crypt_crypt+:} false; then : |
| 12626 |
$as_echo_n "(cached) " >&6 |
| 12627 |
else |
| 12628 |
ac_check_lib_save_LIBS=$LIBS |
| 12629 |
LIBS="-lcrypt $LIBS" |
| 12630 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12631 |
/* end confdefs.h. */ |
| 12632 |
|
| 12633 |
/* Override any GCC internal prototype to avoid an error. |
| 12634 |
Use char because int might match the return type of a GCC |
| 12635 |
builtin and then its argument prototype would still apply. */ |
| 12636 |
#ifdef __cplusplus |
| 12637 |
extern "C" |
| 12638 |
#endif |
| 12639 |
char crypt (); |
| 12640 |
int |
| 12641 |
main () |
| 12642 |
{ |
| 12643 |
return crypt (); |
| 12644 |
; |
| 12645 |
return 0; |
| 12646 |
} |
| 12647 |
_ACEOF |
| 12648 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12649 |
ac_cv_lib_crypt_crypt=yes |
| 12650 |
else |
| 12651 |
ac_cv_lib_crypt_crypt=no |
| 12652 |
fi |
| 12653 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12654 |
conftest$ac_exeext conftest.$ac_ext |
| 12655 |
LIBS=$ac_check_lib_save_LIBS |
| 12656 |
fi |
| 12657 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 |
| 12658 |
$as_echo "$ac_cv_lib_crypt_crypt" >&6; } |
| 12659 |
if test "x$ac_cv_lib_crypt_crypt" = xyes; then : |
| 12660 |
LIBS="$LIBS -lcrypt" |
| 12661 |
fi |
| 12662 |
|
| 12663 |
fi |
| 12664 |
for ac_func in crypt DES_crypt |
| 12665 |
do : |
| 12666 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12667 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 12668 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 12669 |
cat >>confdefs.h <<_ACEOF |
| 12670 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12671 |
_ACEOF |
| 12672 |
|
| 12673 |
fi |
| 12674 |
done |
| 12675 |
|
| 12676 |
|
| 12677 |
# Search for SHA256 support in libc and/or OpenSSL |
| 12678 |
for ac_func in SHA256_Update EVP_sha256 |
| 12679 |
do : |
| 12680 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12681 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 12682 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 12683 |
cat >>confdefs.h <<_ACEOF |
| 12684 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12685 |
_ACEOF |
| 12686 |
|
| 12687 |
else |
| 12688 |
unsupported_algorithms="$unsupported_algorithms \ |
| 12689 |
hmac-sha2-256 hmac-sha2-512 \ |
| 12690 |
diffie-hellman-group-exchange-sha256 \ |
| 12691 |
[email protected] [email protected]" |
| 12692 |
|
| 12693 |
|
| 12694 |
fi |
| 12695 |
done |
| 12696 |
|
| 12697 |
# Search for RIPE-MD support in OpenSSL |
| 12698 |
for ac_func in EVP_ripemd160 |
| 12699 |
do : |
| 12700 |
ac_fn_c_check_func "$LINENO" "EVP_ripemd160" "ac_cv_func_EVP_ripemd160" |
| 12701 |
if test "x$ac_cv_func_EVP_ripemd160" = xyes; then : |
| 12702 |
cat >>confdefs.h <<_ACEOF |
| 12703 |
#define HAVE_EVP_RIPEMD160 1 |
| 12704 |
_ACEOF |
| 12705 |
|
| 12706 |
else |
| 12707 |
unsupported_algorithms="$unsupported_algorithms \ |
| 12708 |
hmac-ripemd160 |
| 12709 |
[email protected] |
| 12710 |
[email protected]" |
| 12711 |
|
| 12712 |
|
| 12713 |
fi |
| 12714 |
done |
| 12715 |
|
| 12716 |
|
| 12717 |
# Check complete ECC support in OpenSSL |
| 12718 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_X9_62_prime256v1" >&5 |
| 12719 |
$as_echo_n "checking whether OpenSSL has NID_X9_62_prime256v1... " >&6; } |
| 12720 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12721 |
/* end confdefs.h. */ |
| 12722 |
|
| 12723 |
#include <openssl/ec.h> |
| 12724 |
#include <openssl/ecdh.h> |
| 12725 |
#include <openssl/ecdsa.h> |
| 12726 |
#include <openssl/evp.h> |
| 12727 |
#include <openssl/objects.h> |
| 12728 |
#include <openssl/opensslv.h> |
| 12729 |
#if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ |
| 12730 |
# error "OpenSSL < 0.9.8g has unreliable ECC code" |
| 12731 |
#endif |
| 12732 |
|
| 12733 |
int |
| 12734 |
main () |
| 12735 |
{ |
| 12736 |
|
| 12737 |
EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); |
| 12738 |
const EVP_MD *m = EVP_sha256(); /* We need this too */ |
| 12739 |
|
| 12740 |
; |
| 12741 |
return 0; |
| 12742 |
} |
| 12743 |
_ACEOF |
| 12744 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12745 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12746 |
$as_echo "yes" >&6; } |
| 12747 |
enable_nistp256=1 |
| 12748 |
else |
| 12749 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12750 |
$as_echo "no" >&6; } |
| 12751 |
|
| 12752 |
fi |
| 12753 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12754 |
conftest$ac_exeext conftest.$ac_ext |
| 12755 |
|
| 12756 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp384r1" >&5 |
| 12757 |
$as_echo_n "checking whether OpenSSL has NID_secp384r1... " >&6; } |
| 12758 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12759 |
/* end confdefs.h. */ |
| 12760 |
|
| 12761 |
#include <openssl/ec.h> |
| 12762 |
#include <openssl/ecdh.h> |
| 12763 |
#include <openssl/ecdsa.h> |
| 12764 |
#include <openssl/evp.h> |
| 12765 |
#include <openssl/objects.h> |
| 12766 |
#include <openssl/opensslv.h> |
| 12767 |
#if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ |
| 12768 |
# error "OpenSSL < 0.9.8g has unreliable ECC code" |
| 12769 |
#endif |
| 12770 |
|
| 12771 |
int |
| 12772 |
main () |
| 12773 |
{ |
| 12774 |
|
| 12775 |
EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1); |
| 12776 |
const EVP_MD *m = EVP_sha384(); /* We need this too */ |
| 12777 |
|
| 12778 |
; |
| 12779 |
return 0; |
| 12780 |
} |
| 12781 |
_ACEOF |
| 12782 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12783 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12784 |
$as_echo "yes" >&6; } |
| 12785 |
enable_nistp384=1 |
| 12786 |
else |
| 12787 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12788 |
$as_echo "no" >&6; } |
| 12789 |
|
| 12790 |
fi |
| 12791 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12792 |
conftest$ac_exeext conftest.$ac_ext |
| 12793 |
|
| 12794 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp521r1" >&5 |
| 12795 |
$as_echo_n "checking whether OpenSSL has NID_secp521r1... " >&6; } |
| 12796 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12797 |
/* end confdefs.h. */ |
| 12798 |
|
| 12799 |
#include <openssl/ec.h> |
| 12800 |
#include <openssl/ecdh.h> |
| 12801 |
#include <openssl/ecdsa.h> |
| 12802 |
#include <openssl/evp.h> |
| 12803 |
#include <openssl/objects.h> |
| 12804 |
#include <openssl/opensslv.h> |
| 12805 |
#if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ |
| 12806 |
# error "OpenSSL < 0.9.8g has unreliable ECC code" |
| 12807 |
#endif |
| 12808 |
|
| 12809 |
int |
| 12810 |
main () |
| 12811 |
{ |
| 12812 |
|
| 12813 |
EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); |
| 12814 |
const EVP_MD *m = EVP_sha512(); /* We need this too */ |
| 12815 |
|
| 12816 |
; |
| 12817 |
return 0; |
| 12818 |
} |
| 12819 |
_ACEOF |
| 12820 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12821 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12822 |
$as_echo "yes" >&6; } |
| 12823 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL's NID_secp521r1 is functional" >&5 |
| 12824 |
$as_echo_n "checking if OpenSSL's NID_secp521r1 is functional... " >&6; } |
| 12825 |
if test "$cross_compiling" = yes; then : |
| 12826 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: assuming yes" >&5 |
| 12827 |
$as_echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;} |
| 12828 |
enable_nistp521=1 |
| 12829 |
|
| 12830 |
else |
| 12831 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12832 |
/* end confdefs.h. */ |
| 12833 |
|
| 12834 |
#include <openssl/ec.h> |
| 12835 |
#include <openssl/ecdh.h> |
| 12836 |
#include <openssl/ecdsa.h> |
| 12837 |
#include <openssl/evp.h> |
| 12838 |
#include <openssl/objects.h> |
| 12839 |
#include <openssl/opensslv.h> |
| 12840 |
|
| 12841 |
int |
| 12842 |
main () |
| 12843 |
{ |
| 12844 |
|
| 12845 |
EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); |
| 12846 |
const EVP_MD *m = EVP_sha512(); /* We need this too */ |
| 12847 |
exit(e == NULL || m == NULL); |
| 12848 |
|
| 12849 |
; |
| 12850 |
return 0; |
| 12851 |
} |
| 12852 |
_ACEOF |
| 12853 |
if ac_fn_c_try_run "$LINENO"; then : |
| 12854 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12855 |
$as_echo "yes" >&6; } |
| 12856 |
enable_nistp521=1 |
| 12857 |
else |
| 12858 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12859 |
$as_echo "no" >&6; } |
| 12860 |
fi |
| 12861 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12862 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12863 |
fi |
| 12864 |
|
| 12865 |
else |
| 12866 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12867 |
$as_echo "no" >&6; } |
| 12868 |
|
| 12869 |
fi |
| 12870 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12871 |
conftest$ac_exeext conftest.$ac_ext |
| 12872 |
|
| 12873 |
COMMENT_OUT_ECC="#no ecc#" |
| 12874 |
TEST_SSH_ECC=no |
| 12875 |
|
| 12876 |
if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \ |
| 12877 |
test x$enable_nistp521 = x1; then |
| 12878 |
|
| 12879 |
$as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h |
| 12880 |
|
| 12881 |
fi |
| 12882 |
if test x$enable_nistp256 = x1; then |
| 12883 |
|
| 12884 |
$as_echo "#define OPENSSL_HAS_NISTP256 1" >>confdefs.h |
| 12885 |
|
| 12886 |
TEST_SSH_ECC=yes |
| 12887 |
COMMENT_OUT_ECC="" |
| 12888 |
else |
| 12889 |
unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp256 \ |
| 12890 |
ecdh-sha2-nistp256 [email protected]" |
| 12891 |
fi |
| 12892 |
if test x$enable_nistp384 = x1; then |
| 12893 |
|
| 12894 |
$as_echo "#define OPENSSL_HAS_NISTP384 1" >>confdefs.h |
| 12895 |
|
| 12896 |
TEST_SSH_ECC=yes |
| 12897 |
COMMENT_OUT_ECC="" |
| 12898 |
else |
| 12899 |
unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp384 \ |
| 12900 |
ecdh-sha2-nistp384 [email protected]" |
| 12901 |
fi |
| 12902 |
if test x$enable_nistp521 = x1; then |
| 12903 |
|
| 12904 |
$as_echo "#define OPENSSL_HAS_NISTP521 1" >>confdefs.h |
| 12905 |
|
| 12906 |
TEST_SSH_ECC=yes |
| 12907 |
COMMENT_OUT_ECC="" |
| 12908 |
else |
| 12909 |
unsupported_algorithms="$unsupported_algorithms ecdh-sha2-nistp521 \ |
| 12910 |
ecdsa-sha2-nistp521 [email protected]" |
| 12911 |
fi |
| 12912 |
|
| 12913 |
|
| 12914 |
|
| 12915 |
else |
| 12916 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 |
| 12917 |
$as_echo_n "checking for crypt in -lcrypt... " >&6; } |
| 12918 |
if ${ac_cv_lib_crypt_crypt+:} false; then : |
| 12919 |
$as_echo_n "(cached) " >&6 |
| 12920 |
else |
| 12921 |
ac_check_lib_save_LIBS=$LIBS |
| 12922 |
LIBS="-lcrypt $LIBS" |
| 12923 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12924 |
/* end confdefs.h. */ |
| 12925 |
|
| 12926 |
/* Override any GCC internal prototype to avoid an error. |
| 12927 |
Use char because int might match the return type of a GCC |
| 12928 |
builtin and then its argument prototype would still apply. */ |
| 12929 |
#ifdef __cplusplus |
| 12930 |
extern "C" |
| 12931 |
#endif |
| 12932 |
char crypt (); |
| 12933 |
int |
| 12934 |
main () |
| 12935 |
{ |
| 12936 |
return crypt (); |
| 12937 |
; |
| 12938 |
return 0; |
| 12939 |
} |
| 12940 |
_ACEOF |
| 12941 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12942 |
ac_cv_lib_crypt_crypt=yes |
| 12943 |
else |
| 12944 |
ac_cv_lib_crypt_crypt=no |
| 12945 |
fi |
| 12946 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12947 |
conftest$ac_exeext conftest.$ac_ext |
| 12948 |
LIBS=$ac_check_lib_save_LIBS |
| 12949 |
fi |
| 12950 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 |
| 12951 |
$as_echo "$ac_cv_lib_crypt_crypt" >&6; } |
| 12952 |
if test "x$ac_cv_lib_crypt_crypt" = xyes; then : |
| 12953 |
LIBS="$LIBS -lcrypt" |
| 12954 |
fi |
| 12955 |
|
| 12956 |
for ac_func in crypt |
| 12957 |
do : |
| 12958 |
ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" |
| 12959 |
if test "x$ac_cv_func_crypt" = xyes; then : |
| 12960 |
cat >>confdefs.h <<_ACEOF |
| 12961 |
#define HAVE_CRYPT 1 |
| 12962 |
_ACEOF |
| 12963 |
|
| 12964 |
fi |
| 12965 |
done |
| 12966 |
|
| 12967 |
fi |
| 12968 |
|
| 12969 |
for ac_func in \ |
| 12970 |
arc4random \ |
| 12971 |
arc4random_buf \ |
| 12972 |
arc4random_stir \ |
| 12973 |
arc4random_uniform \ |
| 12974 |
|
| 12975 |
do : |
| 12976 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12977 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 12978 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 12979 |
cat >>confdefs.h <<_ACEOF |
| 12980 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12981 |
_ACEOF |
| 12982 |
|
| 12983 |
fi |
| 12984 |
done |
| 12985 |
|
| 12986 |
|
| 12987 |
saved_LIBS="$LIBS" |
| 12988 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5 |
| 12989 |
$as_echo_n "checking for ia_openinfo in -liaf... " >&6; } |
| 12990 |
if ${ac_cv_lib_iaf_ia_openinfo+:} false; then : |
| 12991 |
$as_echo_n "(cached) " >&6 |
| 12992 |
else |
| 12993 |
ac_check_lib_save_LIBS=$LIBS |
| 12994 |
LIBS="-liaf $LIBS" |
| 12995 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12996 |
/* end confdefs.h. */ |
| 12997 |
|
| 12998 |
/* Override any GCC internal prototype to avoid an error. |
| 12999 |
Use char because int might match the return type of a GCC |
| 13000 |
builtin and then its argument prototype would still apply. */ |
| 13001 |
#ifdef __cplusplus |
| 13002 |
extern "C" |
| 13003 |
#endif |
| 13004 |
char ia_openinfo (); |
| 13005 |
int |
| 13006 |
main () |
| 13007 |
{ |
| 13008 |
return ia_openinfo (); |
| 13009 |
; |
| 13010 |
return 0; |
| 13011 |
} |
| 13012 |
_ACEOF |
| 13013 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13014 |
ac_cv_lib_iaf_ia_openinfo=yes |
| 13015 |
else |
| 13016 |
ac_cv_lib_iaf_ia_openinfo=no |
| 13017 |
fi |
| 13018 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13019 |
conftest$ac_exeext conftest.$ac_ext |
| 13020 |
LIBS=$ac_check_lib_save_LIBS |
| 13021 |
fi |
| 13022 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5 |
| 13023 |
$as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; } |
| 13024 |
if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then : |
| 13025 |
|
| 13026 |
LIBS="$LIBS -liaf" |
| 13027 |
for ac_func in set_id |
| 13028 |
do : |
| 13029 |
ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id" |
| 13030 |
if test "x$ac_cv_func_set_id" = xyes; then : |
| 13031 |
cat >>confdefs.h <<_ACEOF |
| 13032 |
#define HAVE_SET_ID 1 |
| 13033 |
_ACEOF |
| 13034 |
SSHDLIBS="$SSHDLIBS -liaf" |
| 13035 |
|
| 13036 |
$as_echo "#define HAVE_LIBIAF 1" >>confdefs.h |
| 13037 |
|
| 13038 |
|
| 13039 |
fi |
| 13040 |
done |
| 13041 |
|
| 13042 |
|
| 13043 |
fi |
| 13044 |
|
| 13045 |
LIBS="$saved_LIBS" |
| 13046 |
|
| 13047 |
### Configure cryptographic random number support |
| 13048 |
|
| 13049 |
# Check wheter OpenSSL seeds itself |
| 13050 |
if test "x$openssl" = "xyes" ; then |
| 13051 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5 |
| 13052 |
$as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; } |
| 13053 |
if test "$cross_compiling" = yes; then : |
| 13054 |
|
| 13055 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 |
| 13056 |
$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} |
| 13057 |
# This is safe, since we will fatal() at runtime if |
| 13058 |
# OpenSSL is not seeded correctly. |
| 13059 |
OPENSSL_SEEDS_ITSELF=yes |
| 13060 |
|
| 13061 |
|
| 13062 |
else |
| 13063 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13064 |
/* end confdefs.h. */ |
| 13065 |
|
| 13066 |
#include <string.h> |
| 13067 |
#include <openssl/rand.h> |
| 13068 |
|
| 13069 |
int |
| 13070 |
main () |
| 13071 |
{ |
| 13072 |
|
| 13073 |
exit(RAND_status() == 1 ? 0 : 1); |
| 13074 |
|
| 13075 |
; |
| 13076 |
return 0; |
| 13077 |
} |
| 13078 |
_ACEOF |
| 13079 |
if ac_fn_c_try_run "$LINENO"; then : |
| 13080 |
|
| 13081 |
OPENSSL_SEEDS_ITSELF=yes |
| 13082 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13083 |
$as_echo "yes" >&6; } |
| 13084 |
|
| 13085 |
else |
| 13086 |
|
| 13087 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13088 |
$as_echo "no" >&6; } |
| 13089 |
|
| 13090 |
fi |
| 13091 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13092 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13093 |
fi |
| 13094 |
|
| 13095 |
fi |
| 13096 |
|
| 13097 |
# PRNGD TCP socket |
| 13098 |
|
| 13099 |
# Check whether --with-prngd-port was given. |
| 13100 |
if test "${with_prngd_port+set}" = set; then : |
| 13101 |
withval=$with_prngd_port; |
| 13102 |
case "$withval" in |
| 13103 |
no) |
| 13104 |
withval="" |
| 13105 |
;; |
| 13106 |
[0-9]*) |
| 13107 |
;; |
| 13108 |
*) |
| 13109 |
as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5 |
| 13110 |
;; |
| 13111 |
esac |
| 13112 |
if test ! -z "$withval" ; then |
| 13113 |
PRNGD_PORT="$withval" |
| 13114 |
|
| 13115 |
cat >>confdefs.h <<_ACEOF |
| 13116 |
#define PRNGD_PORT $PRNGD_PORT |
| 13117 |
_ACEOF |
| 13118 |
|
| 13119 |
fi |
| 13120 |
|
| 13121 |
|
| 13122 |
fi |
| 13123 |
|
| 13124 |
|
| 13125 |
# PRNGD Unix domain socket |
| 13126 |
|
| 13127 |
# Check whether --with-prngd-socket was given. |
| 13128 |
if test "${with_prngd_socket+set}" = set; then : |
| 13129 |
withval=$with_prngd_socket; |
| 13130 |
case "$withval" in |
| 13131 |
yes) |
| 13132 |
withval="/var/run/egd-pool" |
| 13133 |
;; |
| 13134 |
no) |
| 13135 |
withval="" |
| 13136 |
;; |
| 13137 |
/*) |
| 13138 |
;; |
| 13139 |
*) |
| 13140 |
as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5 |
| 13141 |
;; |
| 13142 |
esac |
| 13143 |
|
| 13144 |
if test ! -z "$withval" ; then |
| 13145 |
if test ! -z "$PRNGD_PORT" ; then |
| 13146 |
as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5 |
| 13147 |
fi |
| 13148 |
if test ! -r "$withval" ; then |
| 13149 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5 |
| 13150 |
$as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;} |
| 13151 |
fi |
| 13152 |
PRNGD_SOCKET="$withval" |
| 13153 |
|
| 13154 |
cat >>confdefs.h <<_ACEOF |
| 13155 |
#define PRNGD_SOCKET "$PRNGD_SOCKET" |
| 13156 |
_ACEOF |
| 13157 |
|
| 13158 |
fi |
| 13159 |
|
| 13160 |
else |
| 13161 |
|
| 13162 |
# Check for existing socket only if we don't have a random device already |
| 13163 |
if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then |
| 13164 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5 |
| 13165 |
$as_echo_n "checking for PRNGD/EGD socket... " >&6; } |
| 13166 |
# Insert other locations here |
| 13167 |
for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do |
| 13168 |
if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then |
| 13169 |
PRNGD_SOCKET="$sock" |
| 13170 |
cat >>confdefs.h <<_ACEOF |
| 13171 |
#define PRNGD_SOCKET "$PRNGD_SOCKET" |
| 13172 |
_ACEOF |
| 13173 |
|
| 13174 |
break; |
| 13175 |
fi |
| 13176 |
done |
| 13177 |
if test ! -z "$PRNGD_SOCKET" ; then |
| 13178 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5 |
| 13179 |
$as_echo "$PRNGD_SOCKET" >&6; } |
| 13180 |
else |
| 13181 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 13182 |
$as_echo "not found" >&6; } |
| 13183 |
fi |
| 13184 |
fi |
| 13185 |
|
| 13186 |
|
| 13187 |
fi |
| 13188 |
|
| 13189 |
|
| 13190 |
# Which randomness source do we use? |
| 13191 |
if test ! -z "$PRNGD_PORT" ; then |
| 13192 |
RAND_MSG="PRNGd port $PRNGD_PORT" |
| 13193 |
elif test ! -z "$PRNGD_SOCKET" ; then |
| 13194 |
RAND_MSG="PRNGd socket $PRNGD_SOCKET" |
| 13195 |
elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then |
| 13196 |
|
| 13197 |
$as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h |
| 13198 |
|
| 13199 |
RAND_MSG="OpenSSL internal ONLY" |
| 13200 |
elif test "x$openssl" = "xno" ; then |
| 13201 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&5 |
| 13202 |
$as_echo "$as_me: WARNING: OpenSSH will use /dev/urandom as a source of random numbers. It will fail if this device is not supported or accessible" >&2;} |
| 13203 |
else |
| 13204 |
as_fn_error $? "OpenSSH has no source of random numbers. Please configure OpenSSL with an entropy source or re-run configure using one of the --with-prngd-port or --with-prngd-socket options" "$LINENO" 5 |
| 13205 |
fi |
| 13206 |
|
| 13207 |
# Check for PAM libs |
| 13208 |
PAM_MSG="no" |
| 13209 |
|
| 13210 |
# Check whether --with-pam was given. |
| 13211 |
if test "${with_pam+set}" = set; then : |
| 13212 |
withval=$with_pam; |
| 13213 |
if test "x$withval" != "xno" ; then |
| 13214 |
if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ |
| 13215 |
test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then |
| 13216 |
as_fn_error $? "PAM headers not found" "$LINENO" 5 |
| 13217 |
fi |
| 13218 |
|
| 13219 |
saved_LIBS="$LIBS" |
| 13220 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 13221 |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 13222 |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 13223 |
$as_echo_n "(cached) " >&6 |
| 13224 |
else |
| 13225 |
ac_check_lib_save_LIBS=$LIBS |
| 13226 |
LIBS="-ldl $LIBS" |
| 13227 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13228 |
/* end confdefs.h. */ |
| 13229 |
|
| 13230 |
/* Override any GCC internal prototype to avoid an error. |
| 13231 |
Use char because int might match the return type of a GCC |
| 13232 |
builtin and then its argument prototype would still apply. */ |
| 13233 |
#ifdef __cplusplus |
| 13234 |
extern "C" |
| 13235 |
#endif |
| 13236 |
char dlopen (); |
| 13237 |
int |
| 13238 |
main () |
| 13239 |
{ |
| 13240 |
return dlopen (); |
| 13241 |
; |
| 13242 |
return 0; |
| 13243 |
} |
| 13244 |
_ACEOF |
| 13245 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13246 |
ac_cv_lib_dl_dlopen=yes |
| 13247 |
else |
| 13248 |
ac_cv_lib_dl_dlopen=no |
| 13249 |
fi |
| 13250 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13251 |
conftest$ac_exeext conftest.$ac_ext |
| 13252 |
LIBS=$ac_check_lib_save_LIBS |
| 13253 |
fi |
| 13254 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13255 |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 13256 |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 13257 |
cat >>confdefs.h <<_ACEOF |
| 13258 |
#define HAVE_LIBDL 1 |
| 13259 |
_ACEOF |
| 13260 |
|
| 13261 |
LIBS="-ldl $LIBS" |
| 13262 |
|
| 13263 |
fi |
| 13264 |
|
| 13265 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5 |
| 13266 |
$as_echo_n "checking for pam_set_item in -lpam... " >&6; } |
| 13267 |
if ${ac_cv_lib_pam_pam_set_item+:} false; then : |
| 13268 |
$as_echo_n "(cached) " >&6 |
| 13269 |
else |
| 13270 |
ac_check_lib_save_LIBS=$LIBS |
| 13271 |
LIBS="-lpam $LIBS" |
| 13272 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13273 |
/* end confdefs.h. */ |
| 13274 |
|
| 13275 |
/* Override any GCC internal prototype to avoid an error. |
| 13276 |
Use char because int might match the return type of a GCC |
| 13277 |
builtin and then its argument prototype would still apply. */ |
| 13278 |
#ifdef __cplusplus |
| 13279 |
extern "C" |
| 13280 |
#endif |
| 13281 |
char pam_set_item (); |
| 13282 |
int |
| 13283 |
main () |
| 13284 |
{ |
| 13285 |
return pam_set_item (); |
| 13286 |
; |
| 13287 |
return 0; |
| 13288 |
} |
| 13289 |
_ACEOF |
| 13290 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13291 |
ac_cv_lib_pam_pam_set_item=yes |
| 13292 |
else |
| 13293 |
ac_cv_lib_pam_pam_set_item=no |
| 13294 |
fi |
| 13295 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13296 |
conftest$ac_exeext conftest.$ac_ext |
| 13297 |
LIBS=$ac_check_lib_save_LIBS |
| 13298 |
fi |
| 13299 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5 |
| 13300 |
$as_echo "$ac_cv_lib_pam_pam_set_item" >&6; } |
| 13301 |
if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then : |
| 13302 |
cat >>confdefs.h <<_ACEOF |
| 13303 |
#define HAVE_LIBPAM 1 |
| 13304 |
_ACEOF |
| 13305 |
|
| 13306 |
LIBS="-lpam $LIBS" |
| 13307 |
|
| 13308 |
else |
| 13309 |
as_fn_error $? "*** libpam missing" "$LINENO" 5 |
| 13310 |
fi |
| 13311 |
|
| 13312 |
for ac_func in pam_getenvlist |
| 13313 |
do : |
| 13314 |
ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist" |
| 13315 |
if test "x$ac_cv_func_pam_getenvlist" = xyes; then : |
| 13316 |
cat >>confdefs.h <<_ACEOF |
| 13317 |
#define HAVE_PAM_GETENVLIST 1 |
| 13318 |
_ACEOF |
| 13319 |
|
| 13320 |
fi |
| 13321 |
done |
| 13322 |
|
| 13323 |
for ac_func in pam_putenv |
| 13324 |
do : |
| 13325 |
ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv" |
| 13326 |
if test "x$ac_cv_func_pam_putenv" = xyes; then : |
| 13327 |
cat >>confdefs.h <<_ACEOF |
| 13328 |
#define HAVE_PAM_PUTENV 1 |
| 13329 |
_ACEOF |
| 13330 |
|
| 13331 |
fi |
| 13332 |
done |
| 13333 |
|
| 13334 |
LIBS="$saved_LIBS" |
| 13335 |
|
| 13336 |
PAM_MSG="yes" |
| 13337 |
|
| 13338 |
SSHDLIBS="$SSHDLIBS -lpam" |
| 13339 |
|
| 13340 |
$as_echo "#define USE_PAM 1" >>confdefs.h |
| 13341 |
|
| 13342 |
|
| 13343 |
if test $ac_cv_lib_dl_dlopen = yes; then |
| 13344 |
case "$LIBS" in |
| 13345 |
*-ldl*) |
| 13346 |
# libdl already in LIBS |
| 13347 |
;; |
| 13348 |
*) |
| 13349 |
SSHDLIBS="$SSHDLIBS -ldl" |
| 13350 |
;; |
| 13351 |
esac |
| 13352 |
fi |
| 13353 |
fi |
| 13354 |
|
| 13355 |
|
| 13356 |
fi |
| 13357 |
|
| 13358 |
|
| 13359 |
# Check for older PAM |
| 13360 |
if test "x$PAM_MSG" = "xyes" ; then |
| 13361 |
# Check PAM strerror arguments (old PAM) |
| 13362 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5 |
| 13363 |
$as_echo_n "checking whether pam_strerror takes only one argument... " >&6; } |
| 13364 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13365 |
/* end confdefs.h. */ |
| 13366 |
|
| 13367 |
#include <stdlib.h> |
| 13368 |
#if defined(HAVE_SECURITY_PAM_APPL_H) |
| 13369 |
#include <security/pam_appl.h> |
| 13370 |
#elif defined (HAVE_PAM_PAM_APPL_H) |
| 13371 |
#include <pam/pam_appl.h> |
| 13372 |
#endif |
| 13373 |
|
| 13374 |
int |
| 13375 |
main () |
| 13376 |
{ |
| 13377 |
|
| 13378 |
(void)pam_strerror((pam_handle_t *)NULL, -1); |
| 13379 |
|
| 13380 |
; |
| 13381 |
return 0; |
| 13382 |
} |
| 13383 |
_ACEOF |
| 13384 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 13385 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13386 |
$as_echo "no" >&6; } |
| 13387 |
else |
| 13388 |
|
| 13389 |
|
| 13390 |
$as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h |
| 13391 |
|
| 13392 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13393 |
$as_echo "yes" >&6; } |
| 13394 |
PAM_MSG="yes (old library)" |
| 13395 |
|
| 13396 |
|
| 13397 |
fi |
| 13398 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13399 |
fi |
| 13400 |
|
| 13401 |
case "$host" in |
| 13402 |
*-*-cygwin*) |
| 13403 |
SSH_PRIVSEP_USER=CYGWIN_SSH_PRIVSEP_USER |
| 13404 |
;; |
| 13405 |
*) |
| 13406 |
SSH_PRIVSEP_USER=sshd |
| 13407 |
;; |
| 13408 |
esac |
| 13409 |
|
| 13410 |
# Check whether --with-privsep-user was given. |
| 13411 |
if test "${with_privsep_user+set}" = set; then : |
| 13412 |
withval=$with_privsep_user; |
| 13413 |
if test -n "$withval" && test "x$withval" != "xno" && \ |
| 13414 |
test "x${withval}" != "xyes"; then |
| 13415 |
SSH_PRIVSEP_USER=$withval |
| 13416 |
fi |
| 13417 |
|
| 13418 |
|
| 13419 |
fi |
| 13420 |
|
| 13421 |
if test "x$SSH_PRIVSEP_USER" = "xCYGWIN_SSH_PRIVSEP_USER" ; then |
| 13422 |
|
| 13423 |
cat >>confdefs.h <<_ACEOF |
| 13424 |
#define SSH_PRIVSEP_USER CYGWIN_SSH_PRIVSEP_USER |
| 13425 |
_ACEOF |
| 13426 |
|
| 13427 |
else |
| 13428 |
|
| 13429 |
cat >>confdefs.h <<_ACEOF |
| 13430 |
#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" |
| 13431 |
_ACEOF |
| 13432 |
|
| 13433 |
fi |
| 13434 |
|
| 13435 |
|
| 13436 |
if test "x$have_linux_no_new_privs" = "x1" ; then |
| 13437 |
ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" " |
| 13438 |
#include <sys/types.h> |
| 13439 |
#include <linux/seccomp.h> |
| 13440 |
|
| 13441 |
" |
| 13442 |
if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then : |
| 13443 |
have_seccomp_filter=1 |
| 13444 |
fi |
| 13445 |
|
| 13446 |
fi |
| 13447 |
if test "x$have_seccomp_filter" = "x1" ; then |
| 13448 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5 |
| 13449 |
$as_echo_n "checking kernel for seccomp_filter support... " >&6; } |
| 13450 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13451 |
/* end confdefs.h. */ |
| 13452 |
|
| 13453 |
#include <errno.h> |
| 13454 |
#include <elf.h> |
| 13455 |
#include <linux/audit.h> |
| 13456 |
#include <linux/seccomp.h> |
| 13457 |
#include <stdlib.h> |
| 13458 |
#include <sys/prctl.h> |
| 13459 |
|
| 13460 |
int |
| 13461 |
main () |
| 13462 |
{ |
| 13463 |
int i = $seccomp_audit_arch; |
| 13464 |
errno = 0; |
| 13465 |
prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0); |
| 13466 |
exit(errno == EFAULT ? 0 : 1); |
| 13467 |
; |
| 13468 |
return 0; |
| 13469 |
} |
| 13470 |
_ACEOF |
| 13471 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13472 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13473 |
$as_echo "yes" >&6; } |
| 13474 |
else |
| 13475 |
|
| 13476 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13477 |
$as_echo "no" >&6; } |
| 13478 |
# Disable seccomp filter as a target |
| 13479 |
have_seccomp_filter=0 |
| 13480 |
|
| 13481 |
|
| 13482 |
fi |
| 13483 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13484 |
conftest$ac_exeext conftest.$ac_ext |
| 13485 |
fi |
| 13486 |
|
| 13487 |
# Decide which sandbox style to use |
| 13488 |
sandbox_arg="" |
| 13489 |
|
| 13490 |
# Check whether --with-sandbox was given. |
| 13491 |
if test "${with_sandbox+set}" = set; then : |
| 13492 |
withval=$with_sandbox; |
| 13493 |
if test "x$withval" = "xyes" ; then |
| 13494 |
sandbox_arg="" |
| 13495 |
else |
| 13496 |
sandbox_arg="$withval" |
| 13497 |
fi |
| 13498 |
|
| 13499 |
|
| 13500 |
fi |
| 13501 |
|
| 13502 |
|
| 13503 |
# Some platforms (seems to be the ones that have a kernel poll(2)-type |
| 13504 |
# function with which they implement select(2)) use an extra file descriptor |
| 13505 |
# when calling select(2), which means we can't use the rlimit sandbox. |
| 13506 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select works with descriptor rlimit" >&5 |
| 13507 |
$as_echo_n "checking if select works with descriptor rlimit... " >&6; } |
| 13508 |
if test "$cross_compiling" = yes; then : |
| 13509 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 |
| 13510 |
$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} |
| 13511 |
|
| 13512 |
else |
| 13513 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13514 |
/* end confdefs.h. */ |
| 13515 |
|
| 13516 |
#include <sys/types.h> |
| 13517 |
#ifdef HAVE_SYS_TIME_H |
| 13518 |
# include <sys/time.h> |
| 13519 |
#endif |
| 13520 |
#include <sys/resource.h> |
| 13521 |
#ifdef HAVE_SYS_SELECT_H |
| 13522 |
# include <sys/select.h> |
| 13523 |
#endif |
| 13524 |
#include <errno.h> |
| 13525 |
#include <fcntl.h> |
| 13526 |
#include <stdlib.h> |
| 13527 |
|
| 13528 |
int |
| 13529 |
main () |
| 13530 |
{ |
| 13531 |
|
| 13532 |
struct rlimit rl_zero; |
| 13533 |
int fd, r; |
| 13534 |
fd_set fds; |
| 13535 |
struct timeval tv; |
| 13536 |
|
| 13537 |
fd = open("/dev/null", O_RDONLY); |
| 13538 |
FD_ZERO(&fds); |
| 13539 |
FD_SET(fd, &fds); |
| 13540 |
rl_zero.rlim_cur = rl_zero.rlim_max = 0; |
| 13541 |
setrlimit(RLIMIT_FSIZE, &rl_zero); |
| 13542 |
setrlimit(RLIMIT_NOFILE, &rl_zero); |
| 13543 |
tv.tv_sec = 1; |
| 13544 |
tv.tv_usec = 0; |
| 13545 |
r = select(fd+1, &fds, NULL, NULL, &tv); |
| 13546 |
exit (r == -1 ? 1 : 0); |
| 13547 |
|
| 13548 |
; |
| 13549 |
return 0; |
| 13550 |
} |
| 13551 |
_ACEOF |
| 13552 |
if ac_fn_c_try_run "$LINENO"; then : |
| 13553 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13554 |
$as_echo "yes" >&6; } |
| 13555 |
select_works_with_rlimit=yes |
| 13556 |
else |
| 13557 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13558 |
$as_echo "no" >&6; } |
| 13559 |
select_works_with_rlimit=no |
| 13560 |
fi |
| 13561 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13562 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13563 |
fi |
| 13564 |
|
| 13565 |
|
| 13566 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5 |
| 13567 |
$as_echo_n "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... " >&6; } |
| 13568 |
if test "$cross_compiling" = yes; then : |
| 13569 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 |
| 13570 |
$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} |
| 13571 |
|
| 13572 |
else |
| 13573 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13574 |
/* end confdefs.h. */ |
| 13575 |
|
| 13576 |
#include <sys/types.h> |
| 13577 |
#ifdef HAVE_SYS_TIME_H |
| 13578 |
# include <sys/time.h> |
| 13579 |
#endif |
| 13580 |
#include <sys/resource.h> |
| 13581 |
#include <errno.h> |
| 13582 |
#include <stdlib.h> |
| 13583 |
|
| 13584 |
int |
| 13585 |
main () |
| 13586 |
{ |
| 13587 |
|
| 13588 |
struct rlimit rl_zero; |
| 13589 |
int fd, r; |
| 13590 |
fd_set fds; |
| 13591 |
|
| 13592 |
rl_zero.rlim_cur = rl_zero.rlim_max = 0; |
| 13593 |
r = setrlimit(RLIMIT_NOFILE, &rl_zero); |
| 13594 |
exit (r == -1 ? 1 : 0); |
| 13595 |
|
| 13596 |
; |
| 13597 |
return 0; |
| 13598 |
} |
| 13599 |
_ACEOF |
| 13600 |
if ac_fn_c_try_run "$LINENO"; then : |
| 13601 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13602 |
$as_echo "yes" >&6; } |
| 13603 |
rlimit_nofile_zero_works=yes |
| 13604 |
else |
| 13605 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13606 |
$as_echo "no" >&6; } |
| 13607 |
rlimit_nofile_zero_works=no |
| 13608 |
fi |
| 13609 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13610 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13611 |
fi |
| 13612 |
|
| 13613 |
|
| 13614 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5 |
| 13615 |
$as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; } |
| 13616 |
if test "$cross_compiling" = yes; then : |
| 13617 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 |
| 13618 |
$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} |
| 13619 |
|
| 13620 |
else |
| 13621 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13622 |
/* end confdefs.h. */ |
| 13623 |
|
| 13624 |
#include <sys/types.h> |
| 13625 |
#include <sys/resource.h> |
| 13626 |
#include <stdlib.h> |
| 13627 |
|
| 13628 |
int |
| 13629 |
main () |
| 13630 |
{ |
| 13631 |
|
| 13632 |
struct rlimit rl_zero; |
| 13633 |
|
| 13634 |
rl_zero.rlim_cur = rl_zero.rlim_max = 0; |
| 13635 |
exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0); |
| 13636 |
|
| 13637 |
; |
| 13638 |
return 0; |
| 13639 |
} |
| 13640 |
_ACEOF |
| 13641 |
if ac_fn_c_try_run "$LINENO"; then : |
| 13642 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13643 |
$as_echo "yes" >&6; } |
| 13644 |
else |
| 13645 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13646 |
$as_echo "no" >&6; } |
| 13647 |
|
| 13648 |
$as_echo "#define SANDBOX_SKIP_RLIMIT_FSIZE 1" >>confdefs.h |
| 13649 |
|
| 13650 |
fi |
| 13651 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13652 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13653 |
fi |
| 13654 |
|
| 13655 |
|
| 13656 |
if test "x$sandbox_arg" = "xsystrace" || \ |
| 13657 |
( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then |
| 13658 |
test "x$have_systr_policy_kill" != "x1" && \ |
| 13659 |
as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5 |
| 13660 |
SANDBOX_STYLE="systrace" |
| 13661 |
|
| 13662 |
$as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h |
| 13663 |
|
| 13664 |
elif test "x$sandbox_arg" = "xdarwin" || \ |
| 13665 |
( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \ |
| 13666 |
test "x$ac_cv_header_sandbox_h" = "xyes") ; then |
| 13667 |
test "x$ac_cv_func_sandbox_init" != "xyes" -o \ |
| 13668 |
"x$ac_cv_header_sandbox_h" != "xyes" && \ |
| 13669 |
as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5 |
| 13670 |
SANDBOX_STYLE="darwin" |
| 13671 |
|
| 13672 |
$as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h |
| 13673 |
|
| 13674 |
elif test "x$sandbox_arg" = "xseccomp_filter" || \ |
| 13675 |
( test -z "$sandbox_arg" && \ |
| 13676 |
test "x$have_seccomp_filter" = "x1" && \ |
| 13677 |
test "x$ac_cv_header_elf_h" = "xyes" && \ |
| 13678 |
test "x$ac_cv_header_linux_audit_h" = "xyes" && \ |
| 13679 |
test "x$ac_cv_header_linux_filter_h" = "xyes" && \ |
| 13680 |
test "x$seccomp_audit_arch" != "x" && \ |
| 13681 |
test "x$have_linux_no_new_privs" = "x1" && \ |
| 13682 |
test "x$ac_cv_func_prctl" = "xyes" ) ; then |
| 13683 |
test "x$seccomp_audit_arch" = "x" && \ |
| 13684 |
as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5 |
| 13685 |
test "x$have_linux_no_new_privs" != "x1" && \ |
| 13686 |
as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5 |
| 13687 |
test "x$have_seccomp_filter" != "x1" && \ |
| 13688 |
as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5 |
| 13689 |
test "x$ac_cv_func_prctl" != "xyes" && \ |
| 13690 |
as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5 |
| 13691 |
SANDBOX_STYLE="seccomp_filter" |
| 13692 |
|
| 13693 |
$as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h |
| 13694 |
|
| 13695 |
elif test "x$sandbox_arg" = "xcapsicum" || \ |
| 13696 |
( test -z "$sandbox_arg" && \ |
| 13697 |
test "x$ac_cv_header_sys_capability_h" = "xyes" && \ |
| 13698 |
test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then |
| 13699 |
test "x$ac_cv_header_sys_capability_h" != "xyes" && \ |
| 13700 |
as_fn_error $? "capsicum sandbox requires sys/capability.h header" "$LINENO" 5 |
| 13701 |
test "x$ac_cv_func_cap_rights_limit" != "xyes" && \ |
| 13702 |
as_fn_error $? "capsicum sandbox requires cap_rights_limit function" "$LINENO" 5 |
| 13703 |
SANDBOX_STYLE="capsicum" |
| 13704 |
|
| 13705 |
$as_echo "#define SANDBOX_CAPSICUM 1" >>confdefs.h |
| 13706 |
|
| 13707 |
elif test "x$sandbox_arg" = "xrlimit" || \ |
| 13708 |
( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \ |
| 13709 |
test "x$select_works_with_rlimit" = "xyes" && \ |
| 13710 |
test "x$rlimit_nofile_zero_works" = "xyes" ) ; then |
| 13711 |
test "x$ac_cv_func_setrlimit" != "xyes" && \ |
| 13712 |
as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5 |
| 13713 |
test "x$select_works_with_rlimit" != "xyes" && \ |
| 13714 |
as_fn_error $? "rlimit sandbox requires select to work with rlimit" "$LINENO" 5 |
| 13715 |
SANDBOX_STYLE="rlimit" |
| 13716 |
|
| 13717 |
$as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h |
| 13718 |
|
| 13719 |
elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \ |
| 13720 |
test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then |
| 13721 |
SANDBOX_STYLE="none" |
| 13722 |
|
| 13723 |
$as_echo "#define SANDBOX_NULL 1" >>confdefs.h |
| 13724 |
|
| 13725 |
else |
| 13726 |
as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5 |
| 13727 |
fi |
| 13728 |
|
| 13729 |
# Cheap hack to ensure NEWS-OS libraries are arranged right. |
| 13730 |
if test ! -z "$SONY" ; then |
| 13731 |
LIBS="$LIBS -liberty"; |
| 13732 |
fi |
| 13733 |
|
| 13734 |
# Check for long long datatypes |
| 13735 |
ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" |
| 13736 |
if test "x$ac_cv_type_long_long" = xyes; then : |
| 13737 |
|
| 13738 |
cat >>confdefs.h <<_ACEOF |
| 13739 |
#define HAVE_LONG_LONG 1 |
| 13740 |
_ACEOF |
| 13741 |
|
| 13742 |
|
| 13743 |
fi |
| 13744 |
ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default" |
| 13745 |
if test "x$ac_cv_type_unsigned_long_long" = xyes; then : |
| 13746 |
|
| 13747 |
cat >>confdefs.h <<_ACEOF |
| 13748 |
#define HAVE_UNSIGNED_LONG_LONG 1 |
| 13749 |
_ACEOF |
| 13750 |
|
| 13751 |
|
| 13752 |
fi |
| 13753 |
ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default" |
| 13754 |
if test "x$ac_cv_type_long_double" = xyes; then : |
| 13755 |
|
| 13756 |
cat >>confdefs.h <<_ACEOF |
| 13757 |
#define HAVE_LONG_DOUBLE 1 |
| 13758 |
_ACEOF |
| 13759 |
|
| 13760 |
|
| 13761 |
fi |
| 13762 |
|
| 13763 |
|
| 13764 |
# Check datatype sizes |
| 13765 |
# The cast to long int works around a bug in the HP C Compiler |
| 13766 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13767 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13768 |
# This bug is HP SR number 8606223364. |
| 13769 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5 |
| 13770 |
$as_echo_n "checking size of short int... " >&6; } |
| 13771 |
if ${ac_cv_sizeof_short_int+:} false; then : |
| 13772 |
$as_echo_n "(cached) " >&6 |
| 13773 |
else |
| 13774 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then : |
| 13775 |
|
| 13776 |
else |
| 13777 |
if test "$ac_cv_type_short_int" = yes; then |
| 13778 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 13779 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13780 |
as_fn_error 77 "cannot compute sizeof (short int) |
| 13781 |
See \`config.log' for more details" "$LINENO" 5; } |
| 13782 |
else |
| 13783 |
ac_cv_sizeof_short_int=0 |
| 13784 |
fi |
| 13785 |
fi |
| 13786 |
|
| 13787 |
fi |
| 13788 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5 |
| 13789 |
$as_echo "$ac_cv_sizeof_short_int" >&6; } |
| 13790 |
|
| 13791 |
|
| 13792 |
|
| 13793 |
cat >>confdefs.h <<_ACEOF |
| 13794 |
#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int |
| 13795 |
_ACEOF |
| 13796 |
|
| 13797 |
|
| 13798 |
# The cast to long int works around a bug in the HP C Compiler |
| 13799 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13800 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13801 |
# This bug is HP SR number 8606223364. |
| 13802 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
| 13803 |
$as_echo_n "checking size of int... " >&6; } |
| 13804 |
if ${ac_cv_sizeof_int+:} false; then : |
| 13805 |
$as_echo_n "(cached) " >&6 |
| 13806 |
else |
| 13807 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
| 13808 |
|
| 13809 |
else |
| 13810 |
if test "$ac_cv_type_int" = yes; then |
| 13811 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 13812 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13813 |
as_fn_error 77 "cannot compute sizeof (int) |
| 13814 |
See \`config.log' for more details" "$LINENO" 5; } |
| 13815 |
else |
| 13816 |
ac_cv_sizeof_int=0 |
| 13817 |
fi |
| 13818 |
fi |
| 13819 |
|
| 13820 |
fi |
| 13821 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
| 13822 |
$as_echo "$ac_cv_sizeof_int" >&6; } |
| 13823 |
|
| 13824 |
|
| 13825 |
|
| 13826 |
cat >>confdefs.h <<_ACEOF |
| 13827 |
#define SIZEOF_INT $ac_cv_sizeof_int |
| 13828 |
_ACEOF |
| 13829 |
|
| 13830 |
|
| 13831 |
# The cast to long int works around a bug in the HP C Compiler |
| 13832 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13833 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13834 |
# This bug is HP SR number 8606223364. |
| 13835 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 |
| 13836 |
$as_echo_n "checking size of long int... " >&6; } |
| 13837 |
if ${ac_cv_sizeof_long_int+:} false; then : |
| 13838 |
$as_echo_n "(cached) " >&6 |
| 13839 |
else |
| 13840 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : |
| 13841 |
|
| 13842 |
else |
| 13843 |
if test "$ac_cv_type_long_int" = yes; then |
| 13844 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 13845 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13846 |
as_fn_error 77 "cannot compute sizeof (long int) |
| 13847 |
See \`config.log' for more details" "$LINENO" 5; } |
| 13848 |
else |
| 13849 |
ac_cv_sizeof_long_int=0 |
| 13850 |
fi |
| 13851 |
fi |
| 13852 |
|
| 13853 |
fi |
| 13854 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 |
| 13855 |
$as_echo "$ac_cv_sizeof_long_int" >&6; } |
| 13856 |
|
| 13857 |
|
| 13858 |
|
| 13859 |
cat >>confdefs.h <<_ACEOF |
| 13860 |
#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int |
| 13861 |
_ACEOF |
| 13862 |
|
| 13863 |
|
| 13864 |
# The cast to long int works around a bug in the HP C Compiler |
| 13865 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13866 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13867 |
# This bug is HP SR number 8606223364. |
| 13868 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5 |
| 13869 |
$as_echo_n "checking size of long long int... " >&6; } |
| 13870 |
if ${ac_cv_sizeof_long_long_int+:} false; then : |
| 13871 |
$as_echo_n "(cached) " >&6 |
| 13872 |
else |
| 13873 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then : |
| 13874 |
|
| 13875 |
else |
| 13876 |
if test "$ac_cv_type_long_long_int" = yes; then |
| 13877 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 13878 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13879 |
as_fn_error 77 "cannot compute sizeof (long long int) |
| 13880 |
See \`config.log' for more details" "$LINENO" 5; } |
| 13881 |
else |
| 13882 |
ac_cv_sizeof_long_long_int=0 |
| 13883 |
fi |
| 13884 |
fi |
| 13885 |
|
| 13886 |
fi |
| 13887 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5 |
| 13888 |
$as_echo "$ac_cv_sizeof_long_long_int" >&6; } |
| 13889 |
|
| 13890 |
|
| 13891 |
|
| 13892 |
cat >>confdefs.h <<_ACEOF |
| 13893 |
#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int |
| 13894 |
_ACEOF |
| 13895 |
|
| 13896 |
|
| 13897 |
|
| 13898 |
# Sanity check long long for some platforms (AIX) |
| 13899 |
if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then |
| 13900 |
ac_cv_sizeof_long_long_int=0 |
| 13901 |
fi |
| 13902 |
|
| 13903 |
# compute LLONG_MIN and LLONG_MAX if we don't know them. |
| 13904 |
if test -z "$have_llong_max"; then |
| 13905 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5 |
| 13906 |
$as_echo_n "checking for max value of long long... " >&6; } |
| 13907 |
if test "$cross_compiling" = yes; then : |
| 13908 |
|
| 13909 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 |
| 13910 |
$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} |
| 13911 |
|
| 13912 |
|
| 13913 |
else |
| 13914 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13915 |
/* end confdefs.h. */ |
| 13916 |
|
| 13917 |
#include <stdio.h> |
| 13918 |
/* Why is this so damn hard? */ |
| 13919 |
#ifdef __GNUC__ |
| 13920 |
# undef __GNUC__ |
| 13921 |
#endif |
| 13922 |
#define __USE_ISOC99 |
| 13923 |
#include <limits.h> |
| 13924 |
#define DATA "conftest.llminmax" |
| 13925 |
#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a)) |
| 13926 |
|
| 13927 |
/* |
| 13928 |
* printf in libc on some platforms (eg old Tru64) does not understand %lld so |
| 13929 |
* we do this the hard way. |
| 13930 |
*/ |
| 13931 |
static int |
| 13932 |
fprint_ll(FILE *f, long long n) |
| 13933 |
{ |
| 13934 |
unsigned int i; |
| 13935 |
int l[sizeof(long long) * 8]; |
| 13936 |
|
| 13937 |
if (n < 0) |
| 13938 |
if (fprintf(f, "-") < 0) |
| 13939 |
return -1; |
| 13940 |
for (i = 0; n != 0; i++) { |
| 13941 |
l[i] = my_abs(n % 10); |
| 13942 |
n /= 10; |
| 13943 |
} |
| 13944 |
do { |
| 13945 |
if (fprintf(f, "%d", l[--i]) < 0) |
| 13946 |
return -1; |
| 13947 |
} while (i != 0); |
| 13948 |
if (fprintf(f, " ") < 0) |
| 13949 |
return -1; |
| 13950 |
return 0; |
| 13951 |
} |
| 13952 |
|
| 13953 |
int |
| 13954 |
main () |
| 13955 |
{ |
| 13956 |
|
| 13957 |
FILE *f; |
| 13958 |
long long i, llmin, llmax = 0; |
| 13959 |
|
| 13960 |
if((f = fopen(DATA,"w")) == NULL) |
| 13961 |
exit(1); |
| 13962 |
|
| 13963 |
#if defined(LLONG_MIN) && defined(LLONG_MAX) |
| 13964 |
fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n"); |
| 13965 |
llmin = LLONG_MIN; |
| 13966 |
llmax = LLONG_MAX; |
| 13967 |
#else |
| 13968 |
fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n"); |
| 13969 |
/* This will work on one's complement and two's complement */ |
| 13970 |
for (i = 1; i > llmax; i <<= 1, i++) |
| 13971 |
llmax = i; |
| 13972 |
llmin = llmax + 1LL; /* wrap */ |
| 13973 |
#endif |
| 13974 |
|
| 13975 |
/* Sanity check */ |
| 13976 |
if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax |
| 13977 |
|| llmax - 1 > llmax || llmin == llmax || llmin == 0 |
| 13978 |
|| llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) { |
| 13979 |
fprintf(f, "unknown unknown\n"); |
| 13980 |
exit(2); |
| 13981 |
} |
| 13982 |
|
| 13983 |
if (fprint_ll(f, llmin) < 0) |
| 13984 |
exit(3); |
| 13985 |
if (fprint_ll(f, llmax) < 0) |
| 13986 |
exit(4); |
| 13987 |
if (fclose(f) < 0) |
| 13988 |
exit(5); |
| 13989 |
exit(0); |
| 13990 |
|
| 13991 |
; |
| 13992 |
return 0; |
| 13993 |
} |
| 13994 |
_ACEOF |
| 13995 |
if ac_fn_c_try_run "$LINENO"; then : |
| 13996 |
|
| 13997 |
llong_min=`$AWK '{print $1}' conftest.llminmax` |
| 13998 |
llong_max=`$AWK '{print $2}' conftest.llminmax` |
| 13999 |
|
| 14000 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5 |
| 14001 |
$as_echo "$llong_max" >&6; } |
| 14002 |
|
| 14003 |
cat >>confdefs.h <<_ACEOF |
| 14004 |
#define LLONG_MAX ${llong_max}LL |
| 14005 |
_ACEOF |
| 14006 |
|
| 14007 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5 |
| 14008 |
$as_echo_n "checking for min value of long long... " >&6; } |
| 14009 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5 |
| 14010 |
$as_echo "$llong_min" >&6; } |
| 14011 |
|
| 14012 |
cat >>confdefs.h <<_ACEOF |
| 14013 |
#define LLONG_MIN ${llong_min}LL |
| 14014 |
_ACEOF |
| 14015 |
|
| 14016 |
|
| 14017 |
else |
| 14018 |
|
| 14019 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 14020 |
$as_echo "not found" >&6; } |
| 14021 |
|
| 14022 |
fi |
| 14023 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14024 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14025 |
fi |
| 14026 |
|
| 14027 |
fi |
| 14028 |
|
| 14029 |
|
| 14030 |
# More checks for data types |
| 14031 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5 |
| 14032 |
$as_echo_n "checking for u_int type... " >&6; } |
| 14033 |
if ${ac_cv_have_u_int+:} false; then : |
| 14034 |
$as_echo_n "(cached) " >&6 |
| 14035 |
else |
| 14036 |
|
| 14037 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14038 |
/* end confdefs.h. */ |
| 14039 |
#include <sys/types.h> |
| 14040 |
int |
| 14041 |
main () |
| 14042 |
{ |
| 14043 |
u_int a; a = 1; |
| 14044 |
; |
| 14045 |
return 0; |
| 14046 |
} |
| 14047 |
_ACEOF |
| 14048 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14049 |
ac_cv_have_u_int="yes" |
| 14050 |
else |
| 14051 |
ac_cv_have_u_int="no" |
| 14052 |
|
| 14053 |
fi |
| 14054 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14055 |
|
| 14056 |
fi |
| 14057 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5 |
| 14058 |
$as_echo "$ac_cv_have_u_int" >&6; } |
| 14059 |
if test "x$ac_cv_have_u_int" = "xyes" ; then |
| 14060 |
|
| 14061 |
$as_echo "#define HAVE_U_INT 1" >>confdefs.h |
| 14062 |
|
| 14063 |
have_u_int=1 |
| 14064 |
fi |
| 14065 |
|
| 14066 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5 |
| 14067 |
$as_echo_n "checking for intXX_t types... " >&6; } |
| 14068 |
if ${ac_cv_have_intxx_t+:} false; then : |
| 14069 |
$as_echo_n "(cached) " >&6 |
| 14070 |
else |
| 14071 |
|
| 14072 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14073 |
/* end confdefs.h. */ |
| 14074 |
#include <sys/types.h> |
| 14075 |
int |
| 14076 |
main () |
| 14077 |
{ |
| 14078 |
int8_t a; int16_t b; int32_t c; a = b = c = 1; |
| 14079 |
; |
| 14080 |
return 0; |
| 14081 |
} |
| 14082 |
_ACEOF |
| 14083 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14084 |
ac_cv_have_intxx_t="yes" |
| 14085 |
else |
| 14086 |
ac_cv_have_intxx_t="no" |
| 14087 |
|
| 14088 |
fi |
| 14089 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14090 |
|
| 14091 |
fi |
| 14092 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5 |
| 14093 |
$as_echo "$ac_cv_have_intxx_t" >&6; } |
| 14094 |
if test "x$ac_cv_have_intxx_t" = "xyes" ; then |
| 14095 |
|
| 14096 |
$as_echo "#define HAVE_INTXX_T 1" >>confdefs.h |
| 14097 |
|
| 14098 |
have_intxx_t=1 |
| 14099 |
fi |
| 14100 |
|
| 14101 |
if (test -z "$have_intxx_t" && \ |
| 14102 |
test "x$ac_cv_header_stdint_h" = "xyes") |
| 14103 |
then |
| 14104 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5 |
| 14105 |
$as_echo_n "checking for intXX_t types in stdint.h... " >&6; } |
| 14106 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14107 |
/* end confdefs.h. */ |
| 14108 |
#include <stdint.h> |
| 14109 |
int |
| 14110 |
main () |
| 14111 |
{ |
| 14112 |
int8_t a; int16_t b; int32_t c; a = b = c = 1; |
| 14113 |
; |
| 14114 |
return 0; |
| 14115 |
} |
| 14116 |
_ACEOF |
| 14117 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14118 |
|
| 14119 |
$as_echo "#define HAVE_INTXX_T 1" >>confdefs.h |
| 14120 |
|
| 14121 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14122 |
$as_echo "yes" >&6; } |
| 14123 |
|
| 14124 |
else |
| 14125 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14126 |
$as_echo "no" >&6; } |
| 14127 |
|
| 14128 |
fi |
| 14129 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14130 |
fi |
| 14131 |
|
| 14132 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5 |
| 14133 |
$as_echo_n "checking for int64_t type... " >&6; } |
| 14134 |
if ${ac_cv_have_int64_t+:} false; then : |
| 14135 |
$as_echo_n "(cached) " >&6 |
| 14136 |
else |
| 14137 |
|
| 14138 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14139 |
/* end confdefs.h. */ |
| 14140 |
|
| 14141 |
#include <sys/types.h> |
| 14142 |
#ifdef HAVE_STDINT_H |
| 14143 |
# include <stdint.h> |
| 14144 |
#endif |
| 14145 |
#include <sys/socket.h> |
| 14146 |
#ifdef HAVE_SYS_BITYPES_H |
| 14147 |
# include <sys/bitypes.h> |
| 14148 |
#endif |
| 14149 |
|
| 14150 |
int |
| 14151 |
main () |
| 14152 |
{ |
| 14153 |
|
| 14154 |
int64_t a; a = 1; |
| 14155 |
|
| 14156 |
; |
| 14157 |
return 0; |
| 14158 |
} |
| 14159 |
_ACEOF |
| 14160 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14161 |
ac_cv_have_int64_t="yes" |
| 14162 |
else |
| 14163 |
ac_cv_have_int64_t="no" |
| 14164 |
|
| 14165 |
fi |
| 14166 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14167 |
|
| 14168 |
fi |
| 14169 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5 |
| 14170 |
$as_echo "$ac_cv_have_int64_t" >&6; } |
| 14171 |
if test "x$ac_cv_have_int64_t" = "xyes" ; then |
| 14172 |
|
| 14173 |
$as_echo "#define HAVE_INT64_T 1" >>confdefs.h |
| 14174 |
|
| 14175 |
fi |
| 14176 |
|
| 14177 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5 |
| 14178 |
$as_echo_n "checking for u_intXX_t types... " >&6; } |
| 14179 |
if ${ac_cv_have_u_intxx_t+:} false; then : |
| 14180 |
$as_echo_n "(cached) " >&6 |
| 14181 |
else |
| 14182 |
|
| 14183 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14184 |
/* end confdefs.h. */ |
| 14185 |
#include <sys/types.h> |
| 14186 |
int |
| 14187 |
main () |
| 14188 |
{ |
| 14189 |
u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; |
| 14190 |
; |
| 14191 |
return 0; |
| 14192 |
} |
| 14193 |
_ACEOF |
| 14194 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14195 |
ac_cv_have_u_intxx_t="yes" |
| 14196 |
else |
| 14197 |
ac_cv_have_u_intxx_t="no" |
| 14198 |
|
| 14199 |
fi |
| 14200 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14201 |
|
| 14202 |
fi |
| 14203 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5 |
| 14204 |
$as_echo "$ac_cv_have_u_intxx_t" >&6; } |
| 14205 |
if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then |
| 14206 |
|
| 14207 |
$as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h |
| 14208 |
|
| 14209 |
have_u_intxx_t=1 |
| 14210 |
fi |
| 14211 |
|
| 14212 |
if test -z "$have_u_intxx_t" ; then |
| 14213 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5 |
| 14214 |
$as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; } |
| 14215 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14216 |
/* end confdefs.h. */ |
| 14217 |
#include <sys/socket.h> |
| 14218 |
int |
| 14219 |
main () |
| 14220 |
{ |
| 14221 |
u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; |
| 14222 |
; |
| 14223 |
return 0; |
| 14224 |
} |
| 14225 |
_ACEOF |
| 14226 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14227 |
|
| 14228 |
$as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h |
| 14229 |
|
| 14230 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14231 |
$as_echo "yes" >&6; } |
| 14232 |
|
| 14233 |
else |
| 14234 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14235 |
$as_echo "no" >&6; } |
| 14236 |
|
| 14237 |
fi |
| 14238 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14239 |
fi |
| 14240 |
|
| 14241 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5 |
| 14242 |
$as_echo_n "checking for u_int64_t types... " >&6; } |
| 14243 |
if ${ac_cv_have_u_int64_t+:} false; then : |
| 14244 |
$as_echo_n "(cached) " >&6 |
| 14245 |
else |
| 14246 |
|
| 14247 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14248 |
/* end confdefs.h. */ |
| 14249 |
#include <sys/types.h> |
| 14250 |
int |
| 14251 |
main () |
| 14252 |
{ |
| 14253 |
u_int64_t a; a = 1; |
| 14254 |
; |
| 14255 |
return 0; |
| 14256 |
} |
| 14257 |
_ACEOF |
| 14258 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14259 |
ac_cv_have_u_int64_t="yes" |
| 14260 |
else |
| 14261 |
ac_cv_have_u_int64_t="no" |
| 14262 |
|
| 14263 |
fi |
| 14264 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14265 |
|
| 14266 |
fi |
| 14267 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5 |
| 14268 |
$as_echo "$ac_cv_have_u_int64_t" >&6; } |
| 14269 |
if test "x$ac_cv_have_u_int64_t" = "xyes" ; then |
| 14270 |
|
| 14271 |
$as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h |
| 14272 |
|
| 14273 |
have_u_int64_t=1 |
| 14274 |
fi |
| 14275 |
|
| 14276 |
if (test -z "$have_u_int64_t" && \ |
| 14277 |
test "x$ac_cv_header_sys_bitypes_h" = "xyes") |
| 14278 |
then |
| 14279 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5 |
| 14280 |
$as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; } |
| 14281 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14282 |
/* end confdefs.h. */ |
| 14283 |
#include <sys/bitypes.h> |
| 14284 |
int |
| 14285 |
main () |
| 14286 |
{ |
| 14287 |
u_int64_t a; a = 1 |
| 14288 |
; |
| 14289 |
return 0; |
| 14290 |
} |
| 14291 |
_ACEOF |
| 14292 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14293 |
|
| 14294 |
$as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h |
| 14295 |
|
| 14296 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14297 |
$as_echo "yes" >&6; } |
| 14298 |
|
| 14299 |
else |
| 14300 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14301 |
$as_echo "no" >&6; } |
| 14302 |
|
| 14303 |
fi |
| 14304 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14305 |
fi |
| 14306 |
|
| 14307 |
if test -z "$have_u_intxx_t" ; then |
| 14308 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5 |
| 14309 |
$as_echo_n "checking for uintXX_t types... " >&6; } |
| 14310 |
if ${ac_cv_have_uintxx_t+:} false; then : |
| 14311 |
$as_echo_n "(cached) " >&6 |
| 14312 |
else |
| 14313 |
|
| 14314 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14315 |
/* end confdefs.h. */ |
| 14316 |
|
| 14317 |
#include <sys/types.h> |
| 14318 |
|
| 14319 |
int |
| 14320 |
main () |
| 14321 |
{ |
| 14322 |
|
| 14323 |
uint8_t a; |
| 14324 |
uint16_t b; |
| 14325 |
uint32_t c; |
| 14326 |
a = b = c = 1; |
| 14327 |
|
| 14328 |
; |
| 14329 |
return 0; |
| 14330 |
} |
| 14331 |
_ACEOF |
| 14332 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14333 |
ac_cv_have_uintxx_t="yes" |
| 14334 |
else |
| 14335 |
ac_cv_have_uintxx_t="no" |
| 14336 |
|
| 14337 |
fi |
| 14338 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14339 |
|
| 14340 |
fi |
| 14341 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5 |
| 14342 |
$as_echo "$ac_cv_have_uintxx_t" >&6; } |
| 14343 |
if test "x$ac_cv_have_uintxx_t" = "xyes" ; then |
| 14344 |
|
| 14345 |
$as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h |
| 14346 |
|
| 14347 |
fi |
| 14348 |
fi |
| 14349 |
|
| 14350 |
if (test -z "$have_uintxx_t" && \ |
| 14351 |
test "x$ac_cv_header_stdint_h" = "xyes") |
| 14352 |
then |
| 14353 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5 |
| 14354 |
$as_echo_n "checking for uintXX_t types in stdint.h... " >&6; } |
| 14355 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14356 |
/* end confdefs.h. */ |
| 14357 |
#include <stdint.h> |
| 14358 |
int |
| 14359 |
main () |
| 14360 |
{ |
| 14361 |
uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; |
| 14362 |
; |
| 14363 |
return 0; |
| 14364 |
} |
| 14365 |
_ACEOF |
| 14366 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14367 |
|
| 14368 |
$as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h |
| 14369 |
|
| 14370 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14371 |
$as_echo "yes" >&6; } |
| 14372 |
|
| 14373 |
else |
| 14374 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14375 |
$as_echo "no" >&6; } |
| 14376 |
|
| 14377 |
fi |
| 14378 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14379 |
fi |
| 14380 |
|
| 14381 |
if (test -z "$have_uintxx_t" && \ |
| 14382 |
test "x$ac_cv_header_inttypes_h" = "xyes") |
| 14383 |
then |
| 14384 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in inttypes.h" >&5 |
| 14385 |
$as_echo_n "checking for uintXX_t types in inttypes.h... " >&6; } |
| 14386 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14387 |
/* end confdefs.h. */ |
| 14388 |
#include <inttypes.h> |
| 14389 |
int |
| 14390 |
main () |
| 14391 |
{ |
| 14392 |
uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; |
| 14393 |
; |
| 14394 |
return 0; |
| 14395 |
} |
| 14396 |
_ACEOF |
| 14397 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14398 |
|
| 14399 |
$as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h |
| 14400 |
|
| 14401 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14402 |
$as_echo "yes" >&6; } |
| 14403 |
|
| 14404 |
else |
| 14405 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14406 |
$as_echo "no" >&6; } |
| 14407 |
|
| 14408 |
fi |
| 14409 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14410 |
fi |
| 14411 |
|
| 14412 |
if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ |
| 14413 |
test "x$ac_cv_header_sys_bitypes_h" = "xyes") |
| 14414 |
then |
| 14415 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 |
| 14416 |
$as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; } |
| 14417 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14418 |
/* end confdefs.h. */ |
| 14419 |
|
| 14420 |
#include <sys/bitypes.h> |
| 14421 |
|
| 14422 |
int |
| 14423 |
main () |
| 14424 |
{ |
| 14425 |
|
| 14426 |
int8_t a; int16_t b; int32_t c; |
| 14427 |
u_int8_t e; u_int16_t f; u_int32_t g; |
| 14428 |
a = b = c = e = f = g = 1; |
| 14429 |
|
| 14430 |
; |
| 14431 |
return 0; |
| 14432 |
} |
| 14433 |
_ACEOF |
| 14434 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14435 |
|
| 14436 |
$as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h |
| 14437 |
|
| 14438 |
$as_echo "#define HAVE_INTXX_T 1" >>confdefs.h |
| 14439 |
|
| 14440 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14441 |
$as_echo "yes" >&6; } |
| 14442 |
|
| 14443 |
else |
| 14444 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14445 |
$as_echo "no" >&6; } |
| 14446 |
|
| 14447 |
fi |
| 14448 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14449 |
fi |
| 14450 |
|
| 14451 |
|
| 14452 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5 |
| 14453 |
$as_echo_n "checking for u_char... " >&6; } |
| 14454 |
if ${ac_cv_have_u_char+:} false; then : |
| 14455 |
$as_echo_n "(cached) " >&6 |
| 14456 |
else |
| 14457 |
|
| 14458 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14459 |
/* end confdefs.h. */ |
| 14460 |
#include <sys/types.h> |
| 14461 |
int |
| 14462 |
main () |
| 14463 |
{ |
| 14464 |
u_char foo; foo = 125; |
| 14465 |
; |
| 14466 |
return 0; |
| 14467 |
} |
| 14468 |
_ACEOF |
| 14469 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14470 |
ac_cv_have_u_char="yes" |
| 14471 |
else |
| 14472 |
ac_cv_have_u_char="no" |
| 14473 |
|
| 14474 |
fi |
| 14475 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14476 |
|
| 14477 |
fi |
| 14478 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5 |
| 14479 |
$as_echo "$ac_cv_have_u_char" >&6; } |
| 14480 |
if test "x$ac_cv_have_u_char" = "xyes" ; then |
| 14481 |
|
| 14482 |
$as_echo "#define HAVE_U_CHAR 1" >>confdefs.h |
| 14483 |
|
| 14484 |
fi |
| 14485 |
|
| 14486 |
ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" " |
| 14487 |
#include <sys/types.h> |
| 14488 |
#include <stdint.h> |
| 14489 |
|
| 14490 |
" |
| 14491 |
if test "x$ac_cv_type_intmax_t" = xyes; then : |
| 14492 |
|
| 14493 |
cat >>confdefs.h <<_ACEOF |
| 14494 |
#define HAVE_INTMAX_T 1 |
| 14495 |
_ACEOF |
| 14496 |
|
| 14497 |
|
| 14498 |
fi |
| 14499 |
ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" " |
| 14500 |
#include <sys/types.h> |
| 14501 |
#include <stdint.h> |
| 14502 |
|
| 14503 |
" |
| 14504 |
if test "x$ac_cv_type_uintmax_t" = xyes; then : |
| 14505 |
|
| 14506 |
cat >>confdefs.h <<_ACEOF |
| 14507 |
#define HAVE_UINTMAX_T 1 |
| 14508 |
_ACEOF |
| 14509 |
|
| 14510 |
|
| 14511 |
fi |
| 14512 |
|
| 14513 |
|
| 14514 |
|
| 14515 |
ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> |
| 14516 |
#include <sys/socket.h> |
| 14517 |
" |
| 14518 |
if test "x$ac_cv_type_socklen_t" = xyes; then : |
| 14519 |
|
| 14520 |
else |
| 14521 |
|
| 14522 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 |
| 14523 |
$as_echo_n "checking for socklen_t equivalent... " >&6; } |
| 14524 |
if ${curl_cv_socklen_t_equiv+:} false; then : |
| 14525 |
$as_echo_n "(cached) " >&6 |
| 14526 |
else |
| 14527 |
|
| 14528 |
# Systems have either "struct sockaddr *" or |
| 14529 |
# "void *" as the second argument to getpeername |
| 14530 |
curl_cv_socklen_t_equiv= |
| 14531 |
for arg2 in "struct sockaddr" void; do |
| 14532 |
for t in int size_t unsigned long "unsigned long"; do |
| 14533 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14534 |
/* end confdefs.h. */ |
| 14535 |
|
| 14536 |
#include <sys/types.h> |
| 14537 |
#include <sys/socket.h> |
| 14538 |
|
| 14539 |
int getpeername (int, $arg2 *, $t *); |
| 14540 |
|
| 14541 |
int |
| 14542 |
main () |
| 14543 |
{ |
| 14544 |
|
| 14545 |
$t len; |
| 14546 |
getpeername(0,0,&len); |
| 14547 |
|
| 14548 |
; |
| 14549 |
return 0; |
| 14550 |
} |
| 14551 |
_ACEOF |
| 14552 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14553 |
|
| 14554 |
curl_cv_socklen_t_equiv="$t" |
| 14555 |
break |
| 14556 |
|
| 14557 |
fi |
| 14558 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14559 |
done |
| 14560 |
done |
| 14561 |
|
| 14562 |
if test "x$curl_cv_socklen_t_equiv" = x; then |
| 14563 |
as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5 |
| 14564 |
fi |
| 14565 |
|
| 14566 |
fi |
| 14567 |
|
| 14568 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5 |
| 14569 |
$as_echo "$curl_cv_socklen_t_equiv" >&6; } |
| 14570 |
|
| 14571 |
cat >>confdefs.h <<_ACEOF |
| 14572 |
#define socklen_t $curl_cv_socklen_t_equiv |
| 14573 |
_ACEOF |
| 14574 |
|
| 14575 |
fi |
| 14576 |
|
| 14577 |
|
| 14578 |
|
| 14579 |
ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h> |
| 14580 |
" |
| 14581 |
if test "x$ac_cv_type_sig_atomic_t" = xyes; then : |
| 14582 |
|
| 14583 |
cat >>confdefs.h <<_ACEOF |
| 14584 |
#define HAVE_SIG_ATOMIC_T 1 |
| 14585 |
_ACEOF |
| 14586 |
|
| 14587 |
|
| 14588 |
fi |
| 14589 |
|
| 14590 |
ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" " |
| 14591 |
#include <sys/types.h> |
| 14592 |
#ifdef HAVE_SYS_BITYPES_H |
| 14593 |
#include <sys/bitypes.h> |
| 14594 |
#endif |
| 14595 |
#ifdef HAVE_SYS_STATFS_H |
| 14596 |
#include <sys/statfs.h> |
| 14597 |
#endif |
| 14598 |
#ifdef HAVE_SYS_STATVFS_H |
| 14599 |
#include <sys/statvfs.h> |
| 14600 |
#endif |
| 14601 |
|
| 14602 |
" |
| 14603 |
if test "x$ac_cv_type_fsblkcnt_t" = xyes; then : |
| 14604 |
|
| 14605 |
cat >>confdefs.h <<_ACEOF |
| 14606 |
#define HAVE_FSBLKCNT_T 1 |
| 14607 |
_ACEOF |
| 14608 |
|
| 14609 |
|
| 14610 |
fi |
| 14611 |
ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" " |
| 14612 |
#include <sys/types.h> |
| 14613 |
#ifdef HAVE_SYS_BITYPES_H |
| 14614 |
#include <sys/bitypes.h> |
| 14615 |
#endif |
| 14616 |
#ifdef HAVE_SYS_STATFS_H |
| 14617 |
#include <sys/statfs.h> |
| 14618 |
#endif |
| 14619 |
#ifdef HAVE_SYS_STATVFS_H |
| 14620 |
#include <sys/statvfs.h> |
| 14621 |
#endif |
| 14622 |
|
| 14623 |
" |
| 14624 |
if test "x$ac_cv_type_fsfilcnt_t" = xyes; then : |
| 14625 |
|
| 14626 |
cat >>confdefs.h <<_ACEOF |
| 14627 |
#define HAVE_FSFILCNT_T 1 |
| 14628 |
_ACEOF |
| 14629 |
|
| 14630 |
|
| 14631 |
fi |
| 14632 |
|
| 14633 |
|
| 14634 |
ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h> |
| 14635 |
#include <netinet/in.h> |
| 14636 |
" |
| 14637 |
if test "x$ac_cv_type_in_addr_t" = xyes; then : |
| 14638 |
|
| 14639 |
cat >>confdefs.h <<_ACEOF |
| 14640 |
#define HAVE_IN_ADDR_T 1 |
| 14641 |
_ACEOF |
| 14642 |
|
| 14643 |
|
| 14644 |
fi |
| 14645 |
ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h> |
| 14646 |
#include <netinet/in.h> |
| 14647 |
" |
| 14648 |
if test "x$ac_cv_type_in_port_t" = xyes; then : |
| 14649 |
|
| 14650 |
cat >>confdefs.h <<_ACEOF |
| 14651 |
#define HAVE_IN_PORT_T 1 |
| 14652 |
_ACEOF |
| 14653 |
|
| 14654 |
|
| 14655 |
fi |
| 14656 |
|
| 14657 |
|
| 14658 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5 |
| 14659 |
$as_echo_n "checking for size_t... " >&6; } |
| 14660 |
if ${ac_cv_have_size_t+:} false; then : |
| 14661 |
$as_echo_n "(cached) " >&6 |
| 14662 |
else |
| 14663 |
|
| 14664 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14665 |
/* end confdefs.h. */ |
| 14666 |
#include <sys/types.h> |
| 14667 |
int |
| 14668 |
main () |
| 14669 |
{ |
| 14670 |
size_t foo; foo = 1235; |
| 14671 |
; |
| 14672 |
return 0; |
| 14673 |
} |
| 14674 |
_ACEOF |
| 14675 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14676 |
ac_cv_have_size_t="yes" |
| 14677 |
else |
| 14678 |
ac_cv_have_size_t="no" |
| 14679 |
|
| 14680 |
fi |
| 14681 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14682 |
|
| 14683 |
fi |
| 14684 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5 |
| 14685 |
$as_echo "$ac_cv_have_size_t" >&6; } |
| 14686 |
if test "x$ac_cv_have_size_t" = "xyes" ; then |
| 14687 |
|
| 14688 |
$as_echo "#define HAVE_SIZE_T 1" >>confdefs.h |
| 14689 |
|
| 14690 |
fi |
| 14691 |
|
| 14692 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 |
| 14693 |
$as_echo_n "checking for ssize_t... " >&6; } |
| 14694 |
if ${ac_cv_have_ssize_t+:} false; then : |
| 14695 |
$as_echo_n "(cached) " >&6 |
| 14696 |
else |
| 14697 |
|
| 14698 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14699 |
/* end confdefs.h. */ |
| 14700 |
#include <sys/types.h> |
| 14701 |
int |
| 14702 |
main () |
| 14703 |
{ |
| 14704 |
ssize_t foo; foo = 1235; |
| 14705 |
; |
| 14706 |
return 0; |
| 14707 |
} |
| 14708 |
_ACEOF |
| 14709 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14710 |
ac_cv_have_ssize_t="yes" |
| 14711 |
else |
| 14712 |
ac_cv_have_ssize_t="no" |
| 14713 |
|
| 14714 |
fi |
| 14715 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14716 |
|
| 14717 |
fi |
| 14718 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5 |
| 14719 |
$as_echo "$ac_cv_have_ssize_t" >&6; } |
| 14720 |
if test "x$ac_cv_have_ssize_t" = "xyes" ; then |
| 14721 |
|
| 14722 |
$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h |
| 14723 |
|
| 14724 |
fi |
| 14725 |
|
| 14726 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5 |
| 14727 |
$as_echo_n "checking for clock_t... " >&6; } |
| 14728 |
if ${ac_cv_have_clock_t+:} false; then : |
| 14729 |
$as_echo_n "(cached) " >&6 |
| 14730 |
else |
| 14731 |
|
| 14732 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14733 |
/* end confdefs.h. */ |
| 14734 |
#include <time.h> |
| 14735 |
int |
| 14736 |
main () |
| 14737 |
{ |
| 14738 |
clock_t foo; foo = 1235; |
| 14739 |
; |
| 14740 |
return 0; |
| 14741 |
} |
| 14742 |
_ACEOF |
| 14743 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14744 |
ac_cv_have_clock_t="yes" |
| 14745 |
else |
| 14746 |
ac_cv_have_clock_t="no" |
| 14747 |
|
| 14748 |
fi |
| 14749 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14750 |
|
| 14751 |
fi |
| 14752 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5 |
| 14753 |
$as_echo "$ac_cv_have_clock_t" >&6; } |
| 14754 |
if test "x$ac_cv_have_clock_t" = "xyes" ; then |
| 14755 |
|
| 14756 |
$as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h |
| 14757 |
|
| 14758 |
fi |
| 14759 |
|
| 14760 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5 |
| 14761 |
$as_echo_n "checking for sa_family_t... " >&6; } |
| 14762 |
if ${ac_cv_have_sa_family_t+:} false; then : |
| 14763 |
$as_echo_n "(cached) " >&6 |
| 14764 |
else |
| 14765 |
|
| 14766 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14767 |
/* end confdefs.h. */ |
| 14768 |
|
| 14769 |
#include <sys/types.h> |
| 14770 |
#include <sys/socket.h> |
| 14771 |
|
| 14772 |
int |
| 14773 |
main () |
| 14774 |
{ |
| 14775 |
sa_family_t foo; foo = 1235; |
| 14776 |
; |
| 14777 |
return 0; |
| 14778 |
} |
| 14779 |
_ACEOF |
| 14780 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14781 |
ac_cv_have_sa_family_t="yes" |
| 14782 |
else |
| 14783 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14784 |
/* end confdefs.h. */ |
| 14785 |
|
| 14786 |
#include <sys/types.h> |
| 14787 |
#include <sys/socket.h> |
| 14788 |
#include <netinet/in.h> |
| 14789 |
|
| 14790 |
int |
| 14791 |
main () |
| 14792 |
{ |
| 14793 |
sa_family_t foo; foo = 1235; |
| 14794 |
; |
| 14795 |
return 0; |
| 14796 |
} |
| 14797 |
_ACEOF |
| 14798 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14799 |
ac_cv_have_sa_family_t="yes" |
| 14800 |
else |
| 14801 |
ac_cv_have_sa_family_t="no" |
| 14802 |
|
| 14803 |
fi |
| 14804 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14805 |
|
| 14806 |
fi |
| 14807 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14808 |
|
| 14809 |
fi |
| 14810 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5 |
| 14811 |
$as_echo "$ac_cv_have_sa_family_t" >&6; } |
| 14812 |
if test "x$ac_cv_have_sa_family_t" = "xyes" ; then |
| 14813 |
|
| 14814 |
$as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h |
| 14815 |
|
| 14816 |
fi |
| 14817 |
|
| 14818 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5 |
| 14819 |
$as_echo_n "checking for pid_t... " >&6; } |
| 14820 |
if ${ac_cv_have_pid_t+:} false; then : |
| 14821 |
$as_echo_n "(cached) " >&6 |
| 14822 |
else |
| 14823 |
|
| 14824 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14825 |
/* end confdefs.h. */ |
| 14826 |
#include <sys/types.h> |
| 14827 |
int |
| 14828 |
main () |
| 14829 |
{ |
| 14830 |
pid_t foo; foo = 1235; |
| 14831 |
; |
| 14832 |
return 0; |
| 14833 |
} |
| 14834 |
_ACEOF |
| 14835 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14836 |
ac_cv_have_pid_t="yes" |
| 14837 |
else |
| 14838 |
ac_cv_have_pid_t="no" |
| 14839 |
|
| 14840 |
fi |
| 14841 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14842 |
|
| 14843 |
fi |
| 14844 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5 |
| 14845 |
$as_echo "$ac_cv_have_pid_t" >&6; } |
| 14846 |
if test "x$ac_cv_have_pid_t" = "xyes" ; then |
| 14847 |
|
| 14848 |
$as_echo "#define HAVE_PID_T 1" >>confdefs.h |
| 14849 |
|
| 14850 |
fi |
| 14851 |
|
| 14852 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5 |
| 14853 |
$as_echo_n "checking for mode_t... " >&6; } |
| 14854 |
if ${ac_cv_have_mode_t+:} false; then : |
| 14855 |
$as_echo_n "(cached) " >&6 |
| 14856 |
else |
| 14857 |
|
| 14858 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14859 |
/* end confdefs.h. */ |
| 14860 |
#include <sys/types.h> |
| 14861 |
int |
| 14862 |
main () |
| 14863 |
{ |
| 14864 |
mode_t foo; foo = 1235; |
| 14865 |
; |
| 14866 |
return 0; |
| 14867 |
} |
| 14868 |
_ACEOF |
| 14869 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14870 |
ac_cv_have_mode_t="yes" |
| 14871 |
else |
| 14872 |
ac_cv_have_mode_t="no" |
| 14873 |
|
| 14874 |
fi |
| 14875 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14876 |
|
| 14877 |
fi |
| 14878 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5 |
| 14879 |
$as_echo "$ac_cv_have_mode_t" >&6; } |
| 14880 |
if test "x$ac_cv_have_mode_t" = "xyes" ; then |
| 14881 |
|
| 14882 |
$as_echo "#define HAVE_MODE_T 1" >>confdefs.h |
| 14883 |
|
| 14884 |
fi |
| 14885 |
|
| 14886 |
|
| 14887 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 |
| 14888 |
$as_echo_n "checking for struct sockaddr_storage... " >&6; } |
| 14889 |
if ${ac_cv_have_struct_sockaddr_storage+:} false; then : |
| 14890 |
$as_echo_n "(cached) " >&6 |
| 14891 |
else |
| 14892 |
|
| 14893 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14894 |
/* end confdefs.h. */ |
| 14895 |
|
| 14896 |
#include <sys/types.h> |
| 14897 |
#include <sys/socket.h> |
| 14898 |
|
| 14899 |
int |
| 14900 |
main () |
| 14901 |
{ |
| 14902 |
struct sockaddr_storage s; |
| 14903 |
; |
| 14904 |
return 0; |
| 14905 |
} |
| 14906 |
_ACEOF |
| 14907 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14908 |
ac_cv_have_struct_sockaddr_storage="yes" |
| 14909 |
else |
| 14910 |
ac_cv_have_struct_sockaddr_storage="no" |
| 14911 |
|
| 14912 |
fi |
| 14913 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14914 |
|
| 14915 |
fi |
| 14916 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5 |
| 14917 |
$as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; } |
| 14918 |
if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then |
| 14919 |
|
| 14920 |
$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h |
| 14921 |
|
| 14922 |
fi |
| 14923 |
|
| 14924 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5 |
| 14925 |
$as_echo_n "checking for struct sockaddr_in6... " >&6; } |
| 14926 |
if ${ac_cv_have_struct_sockaddr_in6+:} false; then : |
| 14927 |
$as_echo_n "(cached) " >&6 |
| 14928 |
else |
| 14929 |
|
| 14930 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14931 |
/* end confdefs.h. */ |
| 14932 |
|
| 14933 |
#include <sys/types.h> |
| 14934 |
#include <netinet/in.h> |
| 14935 |
|
| 14936 |
int |
| 14937 |
main () |
| 14938 |
{ |
| 14939 |
struct sockaddr_in6 s; s.sin6_family = 0; |
| 14940 |
; |
| 14941 |
return 0; |
| 14942 |
} |
| 14943 |
_ACEOF |
| 14944 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14945 |
ac_cv_have_struct_sockaddr_in6="yes" |
| 14946 |
else |
| 14947 |
ac_cv_have_struct_sockaddr_in6="no" |
| 14948 |
|
| 14949 |
fi |
| 14950 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14951 |
|
| 14952 |
fi |
| 14953 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5 |
| 14954 |
$as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; } |
| 14955 |
if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then |
| 14956 |
|
| 14957 |
$as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h |
| 14958 |
|
| 14959 |
fi |
| 14960 |
|
| 14961 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5 |
| 14962 |
$as_echo_n "checking for struct in6_addr... " >&6; } |
| 14963 |
if ${ac_cv_have_struct_in6_addr+:} false; then : |
| 14964 |
$as_echo_n "(cached) " >&6 |
| 14965 |
else |
| 14966 |
|
| 14967 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14968 |
/* end confdefs.h. */ |
| 14969 |
|
| 14970 |
#include <sys/types.h> |
| 14971 |
#include <netinet/in.h> |
| 14972 |
|
| 14973 |
int |
| 14974 |
main () |
| 14975 |
{ |
| 14976 |
struct in6_addr s; s.s6_addr[0] = 0; |
| 14977 |
; |
| 14978 |
return 0; |
| 14979 |
} |
| 14980 |
_ACEOF |
| 14981 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14982 |
ac_cv_have_struct_in6_addr="yes" |
| 14983 |
else |
| 14984 |
ac_cv_have_struct_in6_addr="no" |
| 14985 |
|
| 14986 |
fi |
| 14987 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14988 |
|
| 14989 |
fi |
| 14990 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5 |
| 14991 |
$as_echo "$ac_cv_have_struct_in6_addr" >&6; } |
| 14992 |
if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then |
| 14993 |
|
| 14994 |
$as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h |
| 14995 |
|
| 14996 |
|
| 14997 |
ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" " |
| 14998 |
#ifdef HAVE_SYS_TYPES_H |
| 14999 |
#include <sys/types.h> |
| 15000 |
#endif |
| 15001 |
#include <netinet/in.h> |
| 15002 |
|
| 15003 |
" |
| 15004 |
if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then : |
| 15005 |
|
| 15006 |
cat >>confdefs.h <<_ACEOF |
| 15007 |
#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 |
| 15008 |
_ACEOF |
| 15009 |
|
| 15010 |
|
| 15011 |
fi |
| 15012 |
|
| 15013 |
fi |
| 15014 |
|
| 15015 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5 |
| 15016 |
$as_echo_n "checking for struct addrinfo... " >&6; } |
| 15017 |
if ${ac_cv_have_struct_addrinfo+:} false; then : |
| 15018 |
$as_echo_n "(cached) " >&6 |
| 15019 |
else |
| 15020 |
|
| 15021 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15022 |
/* end confdefs.h. */ |
| 15023 |
|
| 15024 |
#include <sys/types.h> |
| 15025 |
#include <sys/socket.h> |
| 15026 |
#include <netdb.h> |
| 15027 |
|
| 15028 |
int |
| 15029 |
main () |
| 15030 |
{ |
| 15031 |
struct addrinfo s; s.ai_flags = AI_PASSIVE; |
| 15032 |
; |
| 15033 |
return 0; |
| 15034 |
} |
| 15035 |
_ACEOF |
| 15036 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15037 |
ac_cv_have_struct_addrinfo="yes" |
| 15038 |
else |
| 15039 |
ac_cv_have_struct_addrinfo="no" |
| 15040 |
|
| 15041 |
fi |
| 15042 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15043 |
|
| 15044 |
fi |
| 15045 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5 |
| 15046 |
$as_echo "$ac_cv_have_struct_addrinfo" >&6; } |
| 15047 |
if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then |
| 15048 |
|
| 15049 |
$as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h |
| 15050 |
|
| 15051 |
fi |
| 15052 |
|
| 15053 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 |
| 15054 |
$as_echo_n "checking for struct timeval... " >&6; } |
| 15055 |
if ${ac_cv_have_struct_timeval+:} false; then : |
| 15056 |
$as_echo_n "(cached) " >&6 |
| 15057 |
else |
| 15058 |
|
| 15059 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15060 |
/* end confdefs.h. */ |
| 15061 |
#include <sys/time.h> |
| 15062 |
int |
| 15063 |
main () |
| 15064 |
{ |
| 15065 |
struct timeval tv; tv.tv_sec = 1; |
| 15066 |
; |
| 15067 |
return 0; |
| 15068 |
} |
| 15069 |
_ACEOF |
| 15070 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15071 |
ac_cv_have_struct_timeval="yes" |
| 15072 |
else |
| 15073 |
ac_cv_have_struct_timeval="no" |
| 15074 |
|
| 15075 |
fi |
| 15076 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15077 |
|
| 15078 |
fi |
| 15079 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5 |
| 15080 |
$as_echo "$ac_cv_have_struct_timeval" >&6; } |
| 15081 |
if test "x$ac_cv_have_struct_timeval" = "xyes" ; then |
| 15082 |
|
| 15083 |
$as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h |
| 15084 |
|
| 15085 |
have_struct_timeval=1 |
| 15086 |
fi |
| 15087 |
|
| 15088 |
ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default" |
| 15089 |
if test "x$ac_cv_type_struct_timespec" = xyes; then : |
| 15090 |
|
| 15091 |
cat >>confdefs.h <<_ACEOF |
| 15092 |
#define HAVE_STRUCT_TIMESPEC 1 |
| 15093 |
_ACEOF |
| 15094 |
|
| 15095 |
|
| 15096 |
fi |
| 15097 |
|
| 15098 |
|
| 15099 |
# We need int64_t or else certian parts of the compile will fail. |
| 15100 |
if test "x$ac_cv_have_int64_t" = "xno" && \ |
| 15101 |
test "x$ac_cv_sizeof_long_int" != "x8" && \ |
| 15102 |
test "x$ac_cv_sizeof_long_long_int" = "x0" ; then |
| 15103 |
echo "OpenSSH requires int64_t support. Contact your vendor or install" |
| 15104 |
echo "an alternative compiler (I.E., GCC) before continuing." |
| 15105 |
echo "" |
| 15106 |
exit 1; |
| 15107 |
else |
| 15108 |
if test "$cross_compiling" = yes; then : |
| 15109 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 |
| 15110 |
$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} |
| 15111 |
|
| 15112 |
else |
| 15113 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15114 |
/* end confdefs.h. */ |
| 15115 |
|
| 15116 |
#include <stdio.h> |
| 15117 |
#include <string.h> |
| 15118 |
#ifdef HAVE_SNPRINTF |
| 15119 |
main() |
| 15120 |
{ |
| 15121 |
char buf[50]; |
| 15122 |
char expected_out[50]; |
| 15123 |
int mazsize = 50 ; |
| 15124 |
#if (SIZEOF_LONG_INT == 8) |
| 15125 |
long int num = 0x7fffffffffffffff; |
| 15126 |
#else |
| 15127 |
long long num = 0x7fffffffffffffffll; |
| 15128 |
#endif |
| 15129 |
strcpy(expected_out, "9223372036854775807"); |
| 15130 |
snprintf(buf, mazsize, "%lld", num); |
| 15131 |
if(strcmp(buf, expected_out) != 0) |
| 15132 |
exit(1); |
| 15133 |
exit(0); |
| 15134 |
} |
| 15135 |
#else |
| 15136 |
main() { exit(0); } |
| 15137 |
#endif |
| 15138 |
|
| 15139 |
_ACEOF |
| 15140 |
if ac_fn_c_try_run "$LINENO"; then : |
| 15141 |
true |
| 15142 |
else |
| 15143 |
$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h |
| 15144 |
|
| 15145 |
fi |
| 15146 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 15147 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15148 |
fi |
| 15149 |
|
| 15150 |
fi |
| 15151 |
|
| 15152 |
|
| 15153 |
# look for field 'ut_host' in header 'utmp.h' |
| 15154 |
ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 15155 |
ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host |
| 15156 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5 |
| 15157 |
$as_echo_n "checking for ut_host field in utmp.h... " >&6; } |
| 15158 |
if eval \${$ossh_varname+:} false; then : |
| 15159 |
$as_echo_n "(cached) " >&6 |
| 15160 |
else |
| 15161 |
|
| 15162 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15163 |
/* end confdefs.h. */ |
| 15164 |
#include <utmp.h> |
| 15165 |
|
| 15166 |
_ACEOF |
| 15167 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15168 |
$EGREP "ut_host" >/dev/null 2>&1; then : |
| 15169 |
eval "$ossh_varname=yes" |
| 15170 |
else |
| 15171 |
eval "$ossh_varname=no" |
| 15172 |
fi |
| 15173 |
rm -f conftest* |
| 15174 |
|
| 15175 |
fi |
| 15176 |
|
| 15177 |
ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15178 |
if test -n "`echo $ossh_varname`"; then |
| 15179 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15180 |
$as_echo "$ossh_result" >&6; } |
| 15181 |
if test "x$ossh_result" = "xyes"; then |
| 15182 |
|
| 15183 |
$as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h |
| 15184 |
|
| 15185 |
fi |
| 15186 |
else |
| 15187 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15188 |
$as_echo "no" >&6; } |
| 15189 |
fi |
| 15190 |
|
| 15191 |
|
| 15192 |
# look for field 'ut_host' in header 'utmpx.h' |
| 15193 |
ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` |
| 15194 |
ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host |
| 15195 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5 |
| 15196 |
$as_echo_n "checking for ut_host field in utmpx.h... " >&6; } |
| 15197 |
if eval \${$ossh_varname+:} false; then : |
| 15198 |
$as_echo_n "(cached) " >&6 |
| 15199 |
else |
| 15200 |
|
| 15201 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15202 |
/* end confdefs.h. */ |
| 15203 |
#include <utmpx.h> |
| 15204 |
|
| 15205 |
_ACEOF |
| 15206 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15207 |
$EGREP "ut_host" >/dev/null 2>&1; then : |
| 15208 |
eval "$ossh_varname=yes" |
| 15209 |
else |
| 15210 |
eval "$ossh_varname=no" |
| 15211 |
fi |
| 15212 |
rm -f conftest* |
| 15213 |
|
| 15214 |
fi |
| 15215 |
|
| 15216 |
ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15217 |
if test -n "`echo $ossh_varname`"; then |
| 15218 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15219 |
$as_echo "$ossh_result" >&6; } |
| 15220 |
if test "x$ossh_result" = "xyes"; then |
| 15221 |
|
| 15222 |
$as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h |
| 15223 |
|
| 15224 |
fi |
| 15225 |
else |
| 15226 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15227 |
$as_echo "no" >&6; } |
| 15228 |
fi |
| 15229 |
|
| 15230 |
|
| 15231 |
# look for field 'syslen' in header 'utmpx.h' |
| 15232 |
ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` |
| 15233 |
ossh_varname="ossh_cv_$ossh_safe""_has_"syslen |
| 15234 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5 |
| 15235 |
$as_echo_n "checking for syslen field in utmpx.h... " >&6; } |
| 15236 |
if eval \${$ossh_varname+:} false; then : |
| 15237 |
$as_echo_n "(cached) " >&6 |
| 15238 |
else |
| 15239 |
|
| 15240 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15241 |
/* end confdefs.h. */ |
| 15242 |
#include <utmpx.h> |
| 15243 |
|
| 15244 |
_ACEOF |
| 15245 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15246 |
$EGREP "syslen" >/dev/null 2>&1; then : |
| 15247 |
eval "$ossh_varname=yes" |
| 15248 |
else |
| 15249 |
eval "$ossh_varname=no" |
| 15250 |
fi |
| 15251 |
rm -f conftest* |
| 15252 |
|
| 15253 |
fi |
| 15254 |
|
| 15255 |
ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15256 |
if test -n "`echo $ossh_varname`"; then |
| 15257 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15258 |
$as_echo "$ossh_result" >&6; } |
| 15259 |
if test "x$ossh_result" = "xyes"; then |
| 15260 |
|
| 15261 |
$as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h |
| 15262 |
|
| 15263 |
fi |
| 15264 |
else |
| 15265 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15266 |
$as_echo "no" >&6; } |
| 15267 |
fi |
| 15268 |
|
| 15269 |
|
| 15270 |
# look for field 'ut_pid' in header 'utmp.h' |
| 15271 |
ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 15272 |
ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid |
| 15273 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5 |
| 15274 |
$as_echo_n "checking for ut_pid field in utmp.h... " >&6; } |
| 15275 |
if eval \${$ossh_varname+:} false; then : |
| 15276 |
$as_echo_n "(cached) " >&6 |
| 15277 |
else |
| 15278 |
|
| 15279 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15280 |
/* end confdefs.h. */ |
| 15281 |
#include <utmp.h> |
| 15282 |
|
| 15283 |
_ACEOF |
| 15284 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15285 |
$EGREP "ut_pid" >/dev/null 2>&1; then : |
| 15286 |
eval "$ossh_varname=yes" |
| 15287 |
else |
| 15288 |
eval "$ossh_varname=no" |
| 15289 |
fi |
| 15290 |
rm -f conftest* |
| 15291 |
|
| 15292 |
fi |
| 15293 |
|
| 15294 |
ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15295 |
if test -n "`echo $ossh_varname`"; then |
| 15296 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15297 |
$as_echo "$ossh_result" >&6; } |
| 15298 |
if test "x$ossh_result" = "xyes"; then |
| 15299 |
|
| 15300 |
$as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h |
| 15301 |
|
| 15302 |
fi |
| 15303 |
else |
| 15304 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15305 |
$as_echo "no" >&6; } |
| 15306 |
fi |
| 15307 |
|
| 15308 |
|
| 15309 |
# look for field 'ut_type' in header 'utmp.h' |
| 15310 |
ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 15311 |
ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type |
| 15312 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5 |
| 15313 |
$as_echo_n "checking for ut_type field in utmp.h... " >&6; } |
| 15314 |
if eval \${$ossh_varname+:} false; then : |
| 15315 |
$as_echo_n "(cached) " >&6 |
| 15316 |
else |
| 15317 |
|
| 15318 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15319 |
/* end confdefs.h. */ |
| 15320 |
#include <utmp.h> |
| 15321 |
|
| 15322 |
_ACEOF |
| 15323 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15324 |
$EGREP "ut_type" >/dev/null 2>&1; then : |
| 15325 |
eval "$ossh_varname=yes" |
| 15326 |
else |
| 15327 |
eval "$ossh_varname=no" |
| 15328 |
fi |
| 15329 |
rm -f conftest* |
| 15330 |
|
| 15331 |
fi |
| 15332 |
|
| 15333 |
ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15334 |
if test -n "`echo $ossh_varname`"; then |
| 15335 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15336 |
$as_echo "$ossh_result" >&6; } |
| 15337 |
if test "x$ossh_result" = "xyes"; then |
| 15338 |
|
| 15339 |
$as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h |
| 15340 |
|
| 15341 |
fi |
| 15342 |
else |
| 15343 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15344 |
$as_echo "no" >&6; } |
| 15345 |
fi |
| 15346 |
|
| 15347 |
|
| 15348 |
# look for field 'ut_type' in header 'utmpx.h' |
| 15349 |
ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` |
| 15350 |
ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type |
| 15351 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5 |
| 15352 |
$as_echo_n "checking for ut_type field in utmpx.h... " >&6; } |
| 15353 |
if eval \${$ossh_varname+:} false; then : |
| 15354 |
$as_echo_n "(cached) " >&6 |
| 15355 |
else |
| 15356 |
|
| 15357 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15358 |
/* end confdefs.h. */ |
| 15359 |
#include <utmpx.h> |
| 15360 |
|
| 15361 |
_ACEOF |
| 15362 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15363 |
$EGREP "ut_type" >/dev/null 2>&1; then : |
| 15364 |
eval "$ossh_varname=yes" |
| 15365 |
else |
| 15366 |
eval "$ossh_varname=no" |
| 15367 |
fi |
| 15368 |
rm -f conftest* |
| 15369 |
|
| 15370 |
fi |
| 15371 |
|
| 15372 |
ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15373 |
if test -n "`echo $ossh_varname`"; then |
| 15374 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15375 |
$as_echo "$ossh_result" >&6; } |
| 15376 |
if test "x$ossh_result" = "xyes"; then |
| 15377 |
|
| 15378 |
$as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h |
| 15379 |
|
| 15380 |
fi |
| 15381 |
else |
| 15382 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15383 |
$as_echo "no" >&6; } |
| 15384 |
fi |
| 15385 |
|
| 15386 |
|
| 15387 |
# look for field 'ut_tv' in header 'utmp.h' |
| 15388 |
ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 15389 |
ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv |
| 15390 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5 |
| 15391 |
$as_echo_n "checking for ut_tv field in utmp.h... " >&6; } |
| 15392 |
if eval \${$ossh_varname+:} false; then : |
| 15393 |
$as_echo_n "(cached) " >&6 |
| 15394 |
else |
| 15395 |
|
| 15396 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15397 |
/* end confdefs.h. */ |
| 15398 |
#include <utmp.h> |
| 15399 |
|
| 15400 |
_ACEOF |
| 15401 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15402 |
$EGREP "ut_tv" >/dev/null 2>&1; then : |
| 15403 |
eval "$ossh_varname=yes" |
| 15404 |
else |
| 15405 |
eval "$ossh_varname=no" |
| 15406 |
fi |
| 15407 |
rm -f conftest* |
| 15408 |
|
| 15409 |
fi |
| 15410 |
|
| 15411 |
ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15412 |
if test -n "`echo $ossh_varname`"; then |
| 15413 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15414 |
$as_echo "$ossh_result" >&6; } |
| 15415 |
if test "x$ossh_result" = "xyes"; then |
| 15416 |
|
| 15417 |
$as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h |
| 15418 |
|
| 15419 |
fi |
| 15420 |
else |
| 15421 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15422 |
$as_echo "no" >&6; } |
| 15423 |
fi |
| 15424 |
|
| 15425 |
|
| 15426 |
# look for field 'ut_id' in header 'utmp.h' |
| 15427 |
ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 15428 |
ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id |
| 15429 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5 |
| 15430 |
$as_echo_n "checking for ut_id field in utmp.h... " >&6; } |
| 15431 |
if eval \${$ossh_varname+:} false; then : |
| 15432 |
$as_echo_n "(cached) " >&6 |
| 15433 |
else |
| 15434 |
|
| 15435 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15436 |
/* end confdefs.h. */ |
| 15437 |
#include <utmp.h> |
| 15438 |
|
| 15439 |
_ACEOF |
| 15440 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15441 |
$EGREP "ut_id" >/dev/null 2>&1; then : |
| 15442 |
eval "$ossh_varname=yes" |
| 15443 |
else |
| 15444 |
eval "$ossh_varname=no" |
| 15445 |
fi |
| 15446 |
rm -f conftest* |
| 15447 |
|
| 15448 |
fi |
| 15449 |
|
| 15450 |
ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15451 |
if test -n "`echo $ossh_varname`"; then |
| 15452 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15453 |
$as_echo "$ossh_result" >&6; } |
| 15454 |
if test "x$ossh_result" = "xyes"; then |
| 15455 |
|
| 15456 |
$as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h |
| 15457 |
|
| 15458 |
fi |
| 15459 |
else |
| 15460 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15461 |
$as_echo "no" >&6; } |
| 15462 |
fi |
| 15463 |
|
| 15464 |
|
| 15465 |
# look for field 'ut_id' in header 'utmpx.h' |
| 15466 |
ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` |
| 15467 |
ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id |
| 15468 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5 |
| 15469 |
$as_echo_n "checking for ut_id field in utmpx.h... " >&6; } |
| 15470 |
if eval \${$ossh_varname+:} false; then : |
| 15471 |
$as_echo_n "(cached) " >&6 |
| 15472 |
else |
| 15473 |
|
| 15474 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15475 |
/* end confdefs.h. */ |
| 15476 |
#include <utmpx.h> |
| 15477 |
|
| 15478 |
_ACEOF |
| 15479 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15480 |
$EGREP "ut_id" >/dev/null 2>&1; then : |
| 15481 |
eval "$ossh_varname=yes" |
| 15482 |
else |
| 15483 |
eval "$ossh_varname=no" |
| 15484 |
fi |
| 15485 |
rm -f conftest* |
| 15486 |
|
| 15487 |
fi |
| 15488 |
|
| 15489 |
ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15490 |
if test -n "`echo $ossh_varname`"; then |
| 15491 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15492 |
$as_echo "$ossh_result" >&6; } |
| 15493 |
if test "x$ossh_result" = "xyes"; then |
| 15494 |
|
| 15495 |
$as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h |
| 15496 |
|
| 15497 |
fi |
| 15498 |
else |
| 15499 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15500 |
$as_echo "no" >&6; } |
| 15501 |
fi |
| 15502 |
|
| 15503 |
|
| 15504 |
# look for field 'ut_addr' in header 'utmp.h' |
| 15505 |
ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 15506 |
ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr |
| 15507 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5 |
| 15508 |
$as_echo_n "checking for ut_addr field in utmp.h... " >&6; } |
| 15509 |
if eval \${$ossh_varname+:} false; then : |
| 15510 |
$as_echo_n "(cached) " >&6 |
| 15511 |
else |
| 15512 |
|
| 15513 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15514 |
/* end confdefs.h. */ |
| 15515 |
#include <utmp.h> |
| 15516 |
|
| 15517 |
_ACEOF |
| 15518 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15519 |
$EGREP "ut_addr" >/dev/null 2>&1; then : |
| 15520 |
eval "$ossh_varname=yes" |
| 15521 |
else |
| 15522 |
eval "$ossh_varname=no" |
| 15523 |
fi |
| 15524 |
rm -f conftest* |
| 15525 |
|
| 15526 |
fi |
| 15527 |
|
| 15528 |
ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15529 |
if test -n "`echo $ossh_varname`"; then |
| 15530 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15531 |
$as_echo "$ossh_result" >&6; } |
| 15532 |
if test "x$ossh_result" = "xyes"; then |
| 15533 |
|
| 15534 |
$as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h |
| 15535 |
|
| 15536 |
fi |
| 15537 |
else |
| 15538 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15539 |
$as_echo "no" >&6; } |
| 15540 |
fi |
| 15541 |
|
| 15542 |
|
| 15543 |
# look for field 'ut_addr' in header 'utmpx.h' |
| 15544 |
ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` |
| 15545 |
ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr |
| 15546 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5 |
| 15547 |
$as_echo_n "checking for ut_addr field in utmpx.h... " >&6; } |
| 15548 |
if eval \${$ossh_varname+:} false; then : |
| 15549 |
$as_echo_n "(cached) " >&6 |
| 15550 |
else |
| 15551 |
|
| 15552 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15553 |
/* end confdefs.h. */ |
| 15554 |
#include <utmpx.h> |
| 15555 |
|
| 15556 |
_ACEOF |
| 15557 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15558 |
$EGREP "ut_addr" >/dev/null 2>&1; then : |
| 15559 |
eval "$ossh_varname=yes" |
| 15560 |
else |
| 15561 |
eval "$ossh_varname=no" |
| 15562 |
fi |
| 15563 |
rm -f conftest* |
| 15564 |
|
| 15565 |
fi |
| 15566 |
|
| 15567 |
ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15568 |
if test -n "`echo $ossh_varname`"; then |
| 15569 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15570 |
$as_echo "$ossh_result" >&6; } |
| 15571 |
if test "x$ossh_result" = "xyes"; then |
| 15572 |
|
| 15573 |
$as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h |
| 15574 |
|
| 15575 |
fi |
| 15576 |
else |
| 15577 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15578 |
$as_echo "no" >&6; } |
| 15579 |
fi |
| 15580 |
|
| 15581 |
|
| 15582 |
# look for field 'ut_addr_v6' in header 'utmp.h' |
| 15583 |
ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 15584 |
ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 |
| 15585 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5 |
| 15586 |
$as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; } |
| 15587 |
if eval \${$ossh_varname+:} false; then : |
| 15588 |
$as_echo_n "(cached) " >&6 |
| 15589 |
else |
| 15590 |
|
| 15591 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15592 |
/* end confdefs.h. */ |
| 15593 |
#include <utmp.h> |
| 15594 |
|
| 15595 |
_ACEOF |
| 15596 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15597 |
$EGREP "ut_addr_v6" >/dev/null 2>&1; then : |
| 15598 |
eval "$ossh_varname=yes" |
| 15599 |
else |
| 15600 |
eval "$ossh_varname=no" |
| 15601 |
fi |
| 15602 |
rm -f conftest* |
| 15603 |
|
| 15604 |
fi |
| 15605 |
|
| 15606 |
ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15607 |
if test -n "`echo $ossh_varname`"; then |
| 15608 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15609 |
$as_echo "$ossh_result" >&6; } |
| 15610 |
if test "x$ossh_result" = "xyes"; then |
| 15611 |
|
| 15612 |
$as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h |
| 15613 |
|
| 15614 |
fi |
| 15615 |
else |
| 15616 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15617 |
$as_echo "no" >&6; } |
| 15618 |
fi |
| 15619 |
|
| 15620 |
|
| 15621 |
# look for field 'ut_addr_v6' in header 'utmpx.h' |
| 15622 |
ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` |
| 15623 |
ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 |
| 15624 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5 |
| 15625 |
$as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; } |
| 15626 |
if eval \${$ossh_varname+:} false; then : |
| 15627 |
$as_echo_n "(cached) " >&6 |
| 15628 |
else |
| 15629 |
|
| 15630 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15631 |
/* end confdefs.h. */ |
| 15632 |
#include <utmpx.h> |
| 15633 |
|
| 15634 |
_ACEOF |
| 15635 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15636 |
$EGREP "ut_addr_v6" >/dev/null 2>&1; then : |
| 15637 |
eval "$ossh_varname=yes" |
| 15638 |
else |
| 15639 |
eval "$ossh_varname=no" |
| 15640 |
fi |
| 15641 |
rm -f conftest* |
| 15642 |
|
| 15643 |
fi |
| 15644 |
|
| 15645 |
ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15646 |
if test -n "`echo $ossh_varname`"; then |
| 15647 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15648 |
$as_echo "$ossh_result" >&6; } |
| 15649 |
if test "x$ossh_result" = "xyes"; then |
| 15650 |
|
| 15651 |
$as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h |
| 15652 |
|
| 15653 |
fi |
| 15654 |
else |
| 15655 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15656 |
$as_echo "no" >&6; } |
| 15657 |
fi |
| 15658 |
|
| 15659 |
|
| 15660 |
# look for field 'ut_exit' in header 'utmp.h' |
| 15661 |
ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 15662 |
ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit |
| 15663 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5 |
| 15664 |
$as_echo_n "checking for ut_exit field in utmp.h... " >&6; } |
| 15665 |
if eval \${$ossh_varname+:} false; then : |
| 15666 |
$as_echo_n "(cached) " >&6 |
| 15667 |
else |
| 15668 |
|
| 15669 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15670 |
/* end confdefs.h. */ |
| 15671 |
#include <utmp.h> |
| 15672 |
|
| 15673 |
_ACEOF |
| 15674 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15675 |
$EGREP "ut_exit" >/dev/null 2>&1; then : |
| 15676 |
eval "$ossh_varname=yes" |
| 15677 |
else |
| 15678 |
eval "$ossh_varname=no" |
| 15679 |
fi |
| 15680 |
rm -f conftest* |
| 15681 |
|
| 15682 |
fi |
| 15683 |
|
| 15684 |
ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15685 |
if test -n "`echo $ossh_varname`"; then |
| 15686 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15687 |
$as_echo "$ossh_result" >&6; } |
| 15688 |
if test "x$ossh_result" = "xyes"; then |
| 15689 |
|
| 15690 |
$as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h |
| 15691 |
|
| 15692 |
fi |
| 15693 |
else |
| 15694 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15695 |
$as_echo "no" >&6; } |
| 15696 |
fi |
| 15697 |
|
| 15698 |
|
| 15699 |
# look for field 'ut_time' in header 'utmp.h' |
| 15700 |
ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` |
| 15701 |
ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time |
| 15702 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5 |
| 15703 |
$as_echo_n "checking for ut_time field in utmp.h... " >&6; } |
| 15704 |
if eval \${$ossh_varname+:} false; then : |
| 15705 |
$as_echo_n "(cached) " >&6 |
| 15706 |
else |
| 15707 |
|
| 15708 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15709 |
/* end confdefs.h. */ |
| 15710 |
#include <utmp.h> |
| 15711 |
|
| 15712 |
_ACEOF |
| 15713 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15714 |
$EGREP "ut_time" >/dev/null 2>&1; then : |
| 15715 |
eval "$ossh_varname=yes" |
| 15716 |
else |
| 15717 |
eval "$ossh_varname=no" |
| 15718 |
fi |
| 15719 |
rm -f conftest* |
| 15720 |
|
| 15721 |
fi |
| 15722 |
|
| 15723 |
ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15724 |
if test -n "`echo $ossh_varname`"; then |
| 15725 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15726 |
$as_echo "$ossh_result" >&6; } |
| 15727 |
if test "x$ossh_result" = "xyes"; then |
| 15728 |
|
| 15729 |
$as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h |
| 15730 |
|
| 15731 |
fi |
| 15732 |
else |
| 15733 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15734 |
$as_echo "no" >&6; } |
| 15735 |
fi |
| 15736 |
|
| 15737 |
|
| 15738 |
# look for field 'ut_time' in header 'utmpx.h' |
| 15739 |
ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` |
| 15740 |
ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time |
| 15741 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5 |
| 15742 |
$as_echo_n "checking for ut_time field in utmpx.h... " >&6; } |
| 15743 |
if eval \${$ossh_varname+:} false; then : |
| 15744 |
$as_echo_n "(cached) " >&6 |
| 15745 |
else |
| 15746 |
|
| 15747 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15748 |
/* end confdefs.h. */ |
| 15749 |
#include <utmpx.h> |
| 15750 |
|
| 15751 |
_ACEOF |
| 15752 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15753 |
$EGREP "ut_time" >/dev/null 2>&1; then : |
| 15754 |
eval "$ossh_varname=yes" |
| 15755 |
else |
| 15756 |
eval "$ossh_varname=no" |
| 15757 |
fi |
| 15758 |
rm -f conftest* |
| 15759 |
|
| 15760 |
fi |
| 15761 |
|
| 15762 |
ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15763 |
if test -n "`echo $ossh_varname`"; then |
| 15764 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15765 |
$as_echo "$ossh_result" >&6; } |
| 15766 |
if test "x$ossh_result" = "xyes"; then |
| 15767 |
|
| 15768 |
$as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h |
| 15769 |
|
| 15770 |
fi |
| 15771 |
else |
| 15772 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15773 |
$as_echo "no" >&6; } |
| 15774 |
fi |
| 15775 |
|
| 15776 |
|
| 15777 |
# look for field 'ut_tv' in header 'utmpx.h' |
| 15778 |
ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` |
| 15779 |
ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv |
| 15780 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5 |
| 15781 |
$as_echo_n "checking for ut_tv field in utmpx.h... " >&6; } |
| 15782 |
if eval \${$ossh_varname+:} false; then : |
| 15783 |
$as_echo_n "(cached) " >&6 |
| 15784 |
else |
| 15785 |
|
| 15786 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15787 |
/* end confdefs.h. */ |
| 15788 |
#include <utmpx.h> |
| 15789 |
|
| 15790 |
_ACEOF |
| 15791 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15792 |
$EGREP "ut_tv" >/dev/null 2>&1; then : |
| 15793 |
eval "$ossh_varname=yes" |
| 15794 |
else |
| 15795 |
eval "$ossh_varname=no" |
| 15796 |
fi |
| 15797 |
rm -f conftest* |
| 15798 |
|
| 15799 |
fi |
| 15800 |
|
| 15801 |
ossh_result=`eval 'echo $'"$ossh_varname"` |
| 15802 |
if test -n "`echo $ossh_varname`"; then |
| 15803 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 |
| 15804 |
$as_echo "$ossh_result" >&6; } |
| 15805 |
if test "x$ossh_result" = "xyes"; then |
| 15806 |
|
| 15807 |
$as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h |
| 15808 |
|
| 15809 |
fi |
| 15810 |
else |
| 15811 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15812 |
$as_echo "no" >&6; } |
| 15813 |
fi |
| 15814 |
|
| 15815 |
|
| 15816 |
ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" |
| 15817 |
if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : |
| 15818 |
|
| 15819 |
cat >>confdefs.h <<_ACEOF |
| 15820 |
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 15821 |
_ACEOF |
| 15822 |
|
| 15823 |
|
| 15824 |
fi |
| 15825 |
|
| 15826 |
ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " |
| 15827 |
#include <sys/types.h> |
| 15828 |
#include <pwd.h> |
| 15829 |
|
| 15830 |
" |
| 15831 |
if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : |
| 15832 |
|
| 15833 |
cat >>confdefs.h <<_ACEOF |
| 15834 |
#define HAVE_STRUCT_PASSWD_PW_GECOS 1 |
| 15835 |
_ACEOF |
| 15836 |
|
| 15837 |
|
| 15838 |
fi |
| 15839 |
ac_fn_c_check_member "$LINENO" "struct passwd" "pw_class" "ac_cv_member_struct_passwd_pw_class" " |
| 15840 |
#include <sys/types.h> |
| 15841 |
#include <pwd.h> |
| 15842 |
|
| 15843 |
" |
| 15844 |
if test "x$ac_cv_member_struct_passwd_pw_class" = xyes; then : |
| 15845 |
|
| 15846 |
cat >>confdefs.h <<_ACEOF |
| 15847 |
#define HAVE_STRUCT_PASSWD_PW_CLASS 1 |
| 15848 |
_ACEOF |
| 15849 |
|
| 15850 |
|
| 15851 |
fi |
| 15852 |
ac_fn_c_check_member "$LINENO" "struct passwd" "pw_change" "ac_cv_member_struct_passwd_pw_change" " |
| 15853 |
#include <sys/types.h> |
| 15854 |
#include <pwd.h> |
| 15855 |
|
| 15856 |
" |
| 15857 |
if test "x$ac_cv_member_struct_passwd_pw_change" = xyes; then : |
| 15858 |
|
| 15859 |
cat >>confdefs.h <<_ACEOF |
| 15860 |
#define HAVE_STRUCT_PASSWD_PW_CHANGE 1 |
| 15861 |
_ACEOF |
| 15862 |
|
| 15863 |
|
| 15864 |
fi |
| 15865 |
ac_fn_c_check_member "$LINENO" "struct passwd" "pw_expire" "ac_cv_member_struct_passwd_pw_expire" " |
| 15866 |
#include <sys/types.h> |
| 15867 |
#include <pwd.h> |
| 15868 |
|
| 15869 |
" |
| 15870 |
if test "x$ac_cv_member_struct_passwd_pw_expire" = xyes; then : |
| 15871 |
|
| 15872 |
cat >>confdefs.h <<_ACEOF |
| 15873 |
#define HAVE_STRUCT_PASSWD_PW_EXPIRE 1 |
| 15874 |
_ACEOF |
| 15875 |
|
| 15876 |
|
| 15877 |
fi |
| 15878 |
|
| 15879 |
|
| 15880 |
ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" " |
| 15881 |
#include <stdio.h> |
| 15882 |
#if HAVE_SYS_TYPES_H |
| 15883 |
# include <sys/types.h> |
| 15884 |
#endif |
| 15885 |
#include <netinet/in.h> |
| 15886 |
#include <arpa/nameser.h> |
| 15887 |
#include <resolv.h> |
| 15888 |
|
| 15889 |
" |
| 15890 |
if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then : |
| 15891 |
|
| 15892 |
else |
| 15893 |
|
| 15894 |
$as_echo "#define __res_state state" >>confdefs.h |
| 15895 |
|
| 15896 |
fi |
| 15897 |
|
| 15898 |
|
| 15899 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5 |
| 15900 |
$as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; } |
| 15901 |
if ${ac_cv_have_ss_family_in_struct_ss+:} false; then : |
| 15902 |
$as_echo_n "(cached) " >&6 |
| 15903 |
else |
| 15904 |
|
| 15905 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15906 |
/* end confdefs.h. */ |
| 15907 |
|
| 15908 |
#include <sys/types.h> |
| 15909 |
#include <sys/socket.h> |
| 15910 |
|
| 15911 |
int |
| 15912 |
main () |
| 15913 |
{ |
| 15914 |
struct sockaddr_storage s; s.ss_family = 1; |
| 15915 |
; |
| 15916 |
return 0; |
| 15917 |
} |
| 15918 |
_ACEOF |
| 15919 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15920 |
ac_cv_have_ss_family_in_struct_ss="yes" |
| 15921 |
else |
| 15922 |
ac_cv_have_ss_family_in_struct_ss="no" |
| 15923 |
fi |
| 15924 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15925 |
|
| 15926 |
fi |
| 15927 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5 |
| 15928 |
$as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; } |
| 15929 |
if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then |
| 15930 |
|
| 15931 |
$as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h |
| 15932 |
|
| 15933 |
fi |
| 15934 |
|
| 15935 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5 |
| 15936 |
$as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; } |
| 15937 |
if ${ac_cv_have___ss_family_in_struct_ss+:} false; then : |
| 15938 |
$as_echo_n "(cached) " >&6 |
| 15939 |
else |
| 15940 |
|
| 15941 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15942 |
/* end confdefs.h. */ |
| 15943 |
|
| 15944 |
#include <sys/types.h> |
| 15945 |
#include <sys/socket.h> |
| 15946 |
|
| 15947 |
int |
| 15948 |
main () |
| 15949 |
{ |
| 15950 |
struct sockaddr_storage s; s.__ss_family = 1; |
| 15951 |
; |
| 15952 |
return 0; |
| 15953 |
} |
| 15954 |
_ACEOF |
| 15955 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 15956 |
ac_cv_have___ss_family_in_struct_ss="yes" |
| 15957 |
else |
| 15958 |
ac_cv_have___ss_family_in_struct_ss="no" |
| 15959 |
|
| 15960 |
fi |
| 15961 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15962 |
|
| 15963 |
fi |
| 15964 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5 |
| 15965 |
$as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; } |
| 15966 |
if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then |
| 15967 |
|
| 15968 |
$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h |
| 15969 |
|
| 15970 |
fi |
| 15971 |
|
| 15972 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5 |
| 15973 |
$as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; } |
| 15974 |
if ${ac_cv_have_accrights_in_msghdr+:} false; then : |
| 15975 |
$as_echo_n "(cached) " >&6 |
| 15976 |
else |
| 15977 |
|
| 15978 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15979 |
/* end confdefs.h. */ |
| 15980 |
|
| 15981 |
#include <sys/types.h> |
| 15982 |
#include <sys/socket.h> |
| 15983 |
#include <sys/uio.h> |
| 15984 |
|
| 15985 |
int |
| 15986 |
main () |
| 15987 |
{ |
| 15988 |
|
| 15989 |
#ifdef msg_accrights |
| 15990 |
#error "msg_accrights is a macro" |
| 15991 |
exit(1); |
| 15992 |
#endif |
| 15993 |
struct msghdr m; |
| 15994 |
m.msg_accrights = 0; |
| 15995 |
exit(0); |
| 15996 |
|
| 15997 |
; |
| 15998 |
return 0; |
| 15999 |
} |
| 16000 |
_ACEOF |
| 16001 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 16002 |
ac_cv_have_accrights_in_msghdr="yes" |
| 16003 |
else |
| 16004 |
ac_cv_have_accrights_in_msghdr="no" |
| 16005 |
|
| 16006 |
fi |
| 16007 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16008 |
|
| 16009 |
fi |
| 16010 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5 |
| 16011 |
$as_echo "$ac_cv_have_accrights_in_msghdr" >&6; } |
| 16012 |
if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then |
| 16013 |
|
| 16014 |
$as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h |
| 16015 |
|
| 16016 |
fi |
| 16017 |
|
| 16018 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5 |
| 16019 |
$as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; } |
| 16020 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16021 |
/* end confdefs.h. */ |
| 16022 |
|
| 16023 |
#include <sys/param.h> |
| 16024 |
#include <sys/stat.h> |
| 16025 |
#ifdef HAVE_SYS_TIME_H |
| 16026 |
# include <sys/time.h> |
| 16027 |
#endif |
| 16028 |
#ifdef HAVE_SYS_MOUNT_H |
| 16029 |
#include <sys/mount.h> |
| 16030 |
#endif |
| 16031 |
#ifdef HAVE_SYS_STATVFS_H |
| 16032 |
#include <sys/statvfs.h> |
| 16033 |
#endif |
| 16034 |
|
| 16035 |
int |
| 16036 |
main () |
| 16037 |
{ |
| 16038 |
struct statvfs s; s.f_fsid = 0; |
| 16039 |
; |
| 16040 |
return 0; |
| 16041 |
} |
| 16042 |
_ACEOF |
| 16043 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 16044 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16045 |
$as_echo "yes" >&6; } |
| 16046 |
else |
| 16047 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16048 |
$as_echo "no" >&6; } |
| 16049 |
|
| 16050 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5 |
| 16051 |
$as_echo_n "checking if fsid_t has member val... " >&6; } |
| 16052 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16053 |
/* end confdefs.h. */ |
| 16054 |
|
| 16055 |
#include <sys/types.h> |
| 16056 |
#include <sys/statvfs.h> |
| 16057 |
|
| 16058 |
int |
| 16059 |
main () |
| 16060 |
{ |
| 16061 |
fsid_t t; t.val[0] = 0; |
| 16062 |
; |
| 16063 |
return 0; |
| 16064 |
} |
| 16065 |
_ACEOF |
| 16066 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 16067 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16068 |
$as_echo "yes" >&6; } |
| 16069 |
|
| 16070 |
$as_echo "#define FSID_HAS_VAL 1" >>confdefs.h |
| 16071 |
|
| 16072 |
else |
| 16073 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16074 |
$as_echo "no" >&6; } |
| 16075 |
fi |
| 16076 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16077 |
|
| 16078 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5 |
| 16079 |
$as_echo_n "checking if f_fsid has member __val... " >&6; } |
| 16080 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16081 |
/* end confdefs.h. */ |
| 16082 |
|
| 16083 |
#include <sys/types.h> |
| 16084 |
#include <sys/statvfs.h> |
| 16085 |
|
| 16086 |
int |
| 16087 |
main () |
| 16088 |
{ |
| 16089 |
fsid_t t; t.__val[0] = 0; |
| 16090 |
; |
| 16091 |
return 0; |
| 16092 |
} |
| 16093 |
_ACEOF |
| 16094 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 16095 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16096 |
$as_echo "yes" >&6; } |
| 16097 |
|
| 16098 |
$as_echo "#define FSID_HAS___VAL 1" >>confdefs.h |
| 16099 |
|
| 16100 |
else |
| 16101 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16102 |
$as_echo "no" >&6; } |
| 16103 |
fi |
| 16104 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16105 |
|
| 16106 |
fi |
| 16107 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16108 |
|
| 16109 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5 |
| 16110 |
$as_echo_n "checking for msg_control field in struct msghdr... " >&6; } |
| 16111 |
if ${ac_cv_have_control_in_msghdr+:} false; then : |
| 16112 |
$as_echo_n "(cached) " >&6 |
| 16113 |
else |
| 16114 |
|
| 16115 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16116 |
/* end confdefs.h. */ |
| 16117 |
|
| 16118 |
#include <sys/types.h> |
| 16119 |
#include <sys/socket.h> |
| 16120 |
#include <sys/uio.h> |
| 16121 |
|
| 16122 |
int |
| 16123 |
main () |
| 16124 |
{ |
| 16125 |
|
| 16126 |
#ifdef msg_control |
| 16127 |
#error "msg_control is a macro" |
| 16128 |
exit(1); |
| 16129 |
#endif |
| 16130 |
struct msghdr m; |
| 16131 |
m.msg_control = 0; |
| 16132 |
exit(0); |
| 16133 |
|
| 16134 |
; |
| 16135 |
return 0; |
| 16136 |
} |
| 16137 |
_ACEOF |
| 16138 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 16139 |
ac_cv_have_control_in_msghdr="yes" |
| 16140 |
else |
| 16141 |
ac_cv_have_control_in_msghdr="no" |
| 16142 |
|
| 16143 |
fi |
| 16144 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16145 |
|
| 16146 |
fi |
| 16147 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5 |
| 16148 |
$as_echo "$ac_cv_have_control_in_msghdr" >&6; } |
| 16149 |
if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then |
| 16150 |
|
| 16151 |
$as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h |
| 16152 |
|
| 16153 |
fi |
| 16154 |
|
| 16155 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5 |
| 16156 |
$as_echo_n "checking if libc defines __progname... " >&6; } |
| 16157 |
if ${ac_cv_libc_defines___progname+:} false; then : |
| 16158 |
$as_echo_n "(cached) " >&6 |
| 16159 |
else |
| 16160 |
|
| 16161 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16162 |
/* end confdefs.h. */ |
| 16163 |
|
| 16164 |
int |
| 16165 |
main () |
| 16166 |
{ |
| 16167 |
extern char *__progname; printf("%s", __progname); |
| 16168 |
; |
| 16169 |
return 0; |
| 16170 |
} |
| 16171 |
_ACEOF |
| 16172 |
if ac_fn_c_try_link "$LINENO"; then : |
| 16173 |
ac_cv_libc_defines___progname="yes" |
| 16174 |
else |
| 16175 |
ac_cv_libc_defines___progname="no" |
| 16176 |
|
| 16177 |
fi |
| 16178 |
rm -f core conftest.err conftest.$ac_objext \ |
| 16179 |
conftest$ac_exeext conftest.$ac_ext |
| 16180 |
|
| 16181 |
fi |
| 16182 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5 |
| 16183 |
$as_echo "$ac_cv_libc_defines___progname" >&6; } |
| 16184 |
if test "x$ac_cv_libc_defines___progname" = "xyes" ; then |
| 16185 |
|
| 16186 |
$as_echo "#define HAVE___PROGNAME 1" >>confdefs.h |
| 16187 |
|
| 16188 |
fi |
| 16189 |
|
| 16190 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5 |
| 16191 |
$as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; } |
| 16192 |
if ${ac_cv_cc_implements___FUNCTION__+:} false; then : |
| 16193 |
$as_echo_n "(cached) " >&6 |
| 16194 |
else |
| 16195 |
|
| 16196 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16197 |
/* end confdefs.h. */ |
| 16198 |
#include <stdio.h> |
| 16199 |
int |
| 16200 |
main () |
| 16201 |
{ |
| 16202 |
printf("%s", __FUNCTION__); |
| 16203 |
; |
| 16204 |
return 0; |
| 16205 |
} |
| 16206 |
_ACEOF |
| 16207 |
if ac_fn_c_try_link "$LINENO"; then : |
| 16208 |
ac_cv_cc_implements___FUNCTION__="yes" |
| 16209 |
else |
| 16210 |
ac_cv_cc_implements___FUNCTION__="no" |
| 16211 |
|
| 16212 |
fi |
| 16213 |
rm -f core conftest.err conftest.$ac_objext \ |
| 16214 |
conftest$ac_exeext conftest.$ac_ext |
| 16215 |
|
| 16216 |
fi |
| 16217 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5 |
| 16218 |
$as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; } |
| 16219 |
if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then |
| 16220 |
|
| 16221 |
$as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h |
| 16222 |
|
| 16223 |
fi |
| 16224 |
|
| 16225 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5 |
| 16226 |
$as_echo_n "checking whether $CC implements __func__... " >&6; } |
| 16227 |
if ${ac_cv_cc_implements___func__+:} false; then : |
| 16228 |
$as_echo_n "(cached) " >&6 |
| 16229 |
else |
| 16230 |
|
| 16231 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16232 |
/* end confdefs.h. */ |
| 16233 |
#include <stdio.h> |
| 16234 |
int |
| 16235 |
main () |
| 16236 |
{ |
| 16237 |
printf("%s", __func__); |
| 16238 |
; |
| 16239 |
return 0; |
| 16240 |
} |
| 16241 |
_ACEOF |
| 16242 |
if ac_fn_c_try_link "$LINENO"; then : |
| 16243 |
ac_cv_cc_implements___func__="yes" |
| 16244 |
else |
| 16245 |
ac_cv_cc_implements___func__="no" |
| 16246 |
|
| 16247 |
fi |
| 16248 |
rm -f core conftest.err conftest.$ac_objext \ |
| 16249 |
conftest$ac_exeext conftest.$ac_ext |
| 16250 |
|
| 16251 |
fi |
| 16252 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5 |
| 16253 |
$as_echo "$ac_cv_cc_implements___func__" >&6; } |
| 16254 |
if test "x$ac_cv_cc_implements___func__" = "xyes" ; then |
| 16255 |
|
| 16256 |
$as_echo "#define HAVE___func__ 1" >>confdefs.h |
| 16257 |
|
| 16258 |
fi |
| 16259 |
|
| 16260 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5 |
| 16261 |
$as_echo_n "checking whether va_copy exists... " >&6; } |
| 16262 |
if ${ac_cv_have_va_copy+:} false; then : |
| 16263 |
$as_echo_n "(cached) " >&6 |
| 16264 |
else |
| 16265 |
|
| 16266 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16267 |
/* end confdefs.h. */ |
| 16268 |
|
| 16269 |
#include <stdarg.h> |
| 16270 |
va_list x,y; |
| 16271 |
|
| 16272 |
int |
| 16273 |
main () |
| 16274 |
{ |
| 16275 |
va_copy(x,y); |
| 16276 |
; |
| 16277 |
return 0; |
| 16278 |
} |
| 16279 |
_ACEOF |
| 16280 |
if ac_fn_c_try_link "$LINENO"; then : |
| 16281 |
ac_cv_have_va_copy="yes" |
| 16282 |
else |
| 16283 |
ac_cv_have_va_copy="no" |
| 16284 |
|
| 16285 |
fi |
| 16286 |
rm -f core conftest.err conftest.$ac_objext \ |
| 16287 |
conftest$ac_exeext conftest.$ac_ext |
| 16288 |
|
| 16289 |
fi |
| 16290 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5 |
| 16291 |
$as_echo "$ac_cv_have_va_copy" >&6; } |
| 16292 |
if test "x$ac_cv_have_va_copy" = "xyes" ; then |
| 16293 |
|
| 16294 |
$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h |
| 16295 |
|
| 16296 |
fi |
| 16297 |
|
| 16298 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5 |
| 16299 |
$as_echo_n "checking whether __va_copy exists... " >&6; } |
| 16300 |
if ${ac_cv_have___va_copy+:} false; then : |
| 16301 |
$as_echo_n "(cached) " >&6 |
| 16302 |
else |
| 16303 |
|
| 16304 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16305 |
/* end confdefs.h. */ |
| 16306 |
|
| 16307 |
#include <stdarg.h> |
| 16308 |
va_list x,y; |
| 16309 |
|
| 16310 |
int |
| 16311 |
main () |
| 16312 |
{ |
| 16313 |
__va_copy(x,y); |
| 16314 |
; |
| 16315 |
return 0; |
| 16316 |
} |
| 16317 |
_ACEOF |
| 16318 |
if ac_fn_c_try_link "$LINENO"; then : |
| 16319 |
ac_cv_have___va_copy="yes" |
| 16320 |
else |
| 16321 |
ac_cv_have___va_copy="no" |
| 16322 |
|
| 16323 |
fi |
| 16324 |
rm -f core conftest.err conftest.$ac_objext \ |
| 16325 |
conftest$ac_exeext conftest.$ac_ext |
| 16326 |
|
| 16327 |
fi |
| 16328 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5 |
| 16329 |
$as_echo "$ac_cv_have___va_copy" >&6; } |
| 16330 |
if test "x$ac_cv_have___va_copy" = "xyes" ; then |
| 16331 |
|
| 16332 |
$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h |
| 16333 |
|
| 16334 |
fi |
| 16335 |
|
| 16336 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5 |
| 16337 |
$as_echo_n "checking whether getopt has optreset support... " >&6; } |
| 16338 |
if ${ac_cv_have_getopt_optreset+:} false; then : |
| 16339 |
$as_echo_n "(cached) " >&6 |
| 16340 |
else |
| 16341 |
|
| 16342 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16343 |
/* end confdefs.h. */ |
| 16344 |
#include <getopt.h> |
| 16345 |
int |
| 16346 |
main () |
| 16347 |
{ |
| 16348 |
extern int optreset; optreset = 0; |
| 16349 |
; |
| 16350 |
return 0; |
| 16351 |
} |
| 16352 |
_ACEOF |
| 16353 |
if ac_fn_c_try_link "$LINENO"; then : |
| 16354 |
ac_cv_have_getopt_optreset="yes" |
| 16355 |
else |
| 16356 |
ac_cv_have_getopt_optreset="no" |
| 16357 |
|
| 16358 |
fi |
| 16359 |
rm -f core conftest.err conftest.$ac_objext \ |
| 16360 |
conftest$ac_exeext conftest.$ac_ext |
| 16361 |
|
| 16362 |
fi |
| 16363 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5 |
| 16364 |
$as_echo "$ac_cv_have_getopt_optreset" >&6; } |
| 16365 |
if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then |
| 16366 |
|
| 16367 |
$as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h |
| 16368 |
|
| 16369 |
fi |
| 16370 |
|
| 16371 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5 |
| 16372 |
$as_echo_n "checking if libc defines sys_errlist... " >&6; } |
| 16373 |
if ${ac_cv_libc_defines_sys_errlist+:} false; then : |
| 16374 |
$as_echo_n "(cached) " >&6 |
| 16375 |
else |
| 16376 |
|
| 16377 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16378 |
/* end confdefs.h. */ |
| 16379 |
|
| 16380 |
int |
| 16381 |
main () |
| 16382 |
{ |
| 16383 |
extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); |
| 16384 |
; |
| 16385 |
return 0; |
| 16386 |
} |
| 16387 |
_ACEOF |
| 16388 |
if ac_fn_c_try_link "$LINENO"; then : |
| 16389 |
ac_cv_libc_defines_sys_errlist="yes" |
| 16390 |
else |
| 16391 |
ac_cv_libc_defines_sys_errlist="no" |
| 16392 |
|
| 16393 |
fi |
| 16394 |
rm -f core conftest.err conftest.$ac_objext \ |
| 16395 |
conftest$ac_exeext conftest.$ac_ext |
| 16396 |
|
| 16397 |
fi |
| 16398 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5 |
| 16399 |
$as_echo "$ac_cv_libc_defines_sys_errlist" >&6; } |
| 16400 |
if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then |
| 16401 |
|
| 16402 |
$as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h |
| 16403 |
|
| 16404 |
fi |
| 16405 |
|
| 16406 |
|
| 16407 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5 |
| 16408 |
$as_echo_n "checking if libc defines sys_nerr... " >&6; } |
| 16409 |
if ${ac_cv_libc_defines_sys_nerr+:} false; then : |
| 16410 |
$as_echo_n "(cached) " >&6 |
| 16411 |
else |
| 16412 |
|
| 16413 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16414 |
/* end confdefs.h. */ |
| 16415 |
|
| 16416 |
int |
| 16417 |
main () |
| 16418 |
{ |
| 16419 |
extern int sys_nerr; printf("%i", sys_nerr); |
| 16420 |
; |
| 16421 |
return 0; |
| 16422 |
} |
| 16423 |
_ACEOF |
| 16424 |
if ac_fn_c_try_link "$LINENO"; then : |
| 16425 |
ac_cv_libc_defines_sys_nerr="yes" |
| 16426 |
else |
| 16427 |
ac_cv_libc_defines_sys_nerr="no" |
| 16428 |
|
| 16429 |
fi |
| 16430 |
rm -f core conftest.err conftest.$ac_objext \ |
| 16431 |
conftest$ac_exeext conftest.$ac_ext |
| 16432 |
|
| 16433 |
fi |
| 16434 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5 |
| 16435 |
$as_echo "$ac_cv_libc_defines_sys_nerr" >&6; } |
| 16436 |
if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then |
| 16437 |
|
| 16438 |
$as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h |
| 16439 |
|
| 16440 |
fi |
| 16441 |
|
| 16442 |
# Check libraries needed by DNS fingerprint support |
| 16443 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5 |
| 16444 |
$as_echo_n "checking for library containing getrrsetbyname... " >&6; } |
| 16445 |
if ${ac_cv_search_getrrsetbyname+:} false; then : |
| 16446 |
$as_echo_n "(cached) " >&6 |
| 16447 |
else |
| 16448 |
ac_func_search_save_LIBS=$LIBS |
| 16449 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16450 |
/* end confdefs.h. */ |
| 16451 |
|
| 16452 |
/* Override any GCC internal prototype to avoid an error. |
| 16453 |
Use char because int might match the return type of a GCC |
| 16454 |
builtin and then its argument prototype would still apply. */ |
| 16455 |
#ifdef __cplusplus |
| 16456 |
extern "C" |
| 16457 |
#endif |
| 16458 |
char getrrsetbyname (); |
| 16459 |
int |
| 16460 |
main () |
| 16461 |
{ |
| 16462 |
return getrrsetbyname (); |
| 16463 |
; |
| 16464 |
return 0; |
| 16465 |
} |
| 16466 |
_ACEOF |
| 16467 |
for ac_lib in '' resolv; do |
| 16468 |
if test -z "$ac_lib"; then |
| 16469 |
ac_res="none required" |
| 16470 |
else |
| 16471 |
ac_res=-l$ac_lib |
| 16472 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 16473 |
fi |
| 16474 |
if ac_fn_c_try_link "$LINENO"; then : |
| 16475 |
ac_cv_search_getrrsetbyname=$ac_res |
| 16476 |
fi |
| 16477 |
rm -f core conftest.err conftest.$ac_objext \ |
| 16478 |
conftest$ac_exeext |
| 16479 |
if ${ac_cv_search_getrrsetbyname+:} false; then : |
| 16480 |
break |
| 16481 |
fi |
| 16482 |
done |
| 16483 |
if ${ac_cv_search_getrrsetbyname+:} false; then : |
| 16484 |
|
| 16485 |
else |
| 16486 |
ac_cv_search_getrrsetbyname=no |
| 16487 |
fi |
| 16488 |
rm conftest.$ac_ext |
| 16489 |
LIBS=$ac_func_search_save_LIBS |
| 16490 |
fi |
| 16491 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5 |
| 16492 |
$as_echo "$ac_cv_search_getrrsetbyname" >&6; } |
| 16493 |
ac_res=$ac_cv_search_getrrsetbyname |
| 16494 |
if test "$ac_res" != no; then : |
| 16495 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 16496 |
|
| 16497 |
$as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h |
| 16498 |
|
| 16499 |
else |
| 16500 |
|
| 16501 |
# Needed by our getrrsetbyname() |
| 16502 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5 |
| 16503 |
$as_echo_n "checking for library containing res_query... " >&6; } |
| 16504 |
if ${ac_cv_search_res_query+:} false; then : |
| 16505 |
$as_echo_n "(cached) " >&6 |
| 16506 |
else |
| 16507 |
ac_func_search_save_LIBS=$LIBS |
| 16508 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16509 |
/* end confdefs.h. */ |
| 16510 |
|
| 16511 |
/* Override any GCC internal prototype to avoid an error. |
| 16512 |
Use char because int might match the return type of a GCC |
| 16513 |
builtin and then its argument prototype would still apply. */ |
| 16514 |
#ifdef __cplusplus |
| 16515 |
extern "C" |
| 16516 |
#endif |
| 16517 |
char res_query (); |
| 16518 |
int |
| 16519 |
main () |
| 16520 |
{ |
| 16521 |
return res_query (); |
| 16522 |
; |
| 16523 |
return 0; |
| 16524 |
} |
| 16525 |
_ACEOF |
| 16526 |
for ac_lib in '' resolv; do |
| 16527 |
if test -z "$ac_lib"; then |
| 16528 |
ac_res="none required" |
| 16529 |
else |
| 16530 |
ac_res=-l$ac_lib |
| 16531 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 16532 |
fi |
| 16533 |
if ac_fn_c_try_link "$LINENO"; then : |
| 16534 |
ac_cv_search_res_query=$ac_res |
| 16535 |
fi |
| 16536 |
rm -f core conftest.err conftest.$ac_objext \ |
| 16537 |
conftest$ac_exeext |
| 16538 |
if ${ac_cv_search_res_query+:} false; then : |
| 16539 |
break |
| 16540 |
fi |
| 16541 |
done |
| 16542 |
if ${ac_cv_search_res_query+:} false; then : |
| 16543 |
|
| 16544 |
else |
| 16545 |
ac_cv_search_res_query=no |
| 16546 |
fi |
| 16547 |
rm conftest.$ac_ext |
| 16548 |
LIBS=$ac_func_search_save_LIBS |
| 16549 |
fi |
| 16550 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5 |
| 16551 |
$as_echo "$ac_cv_search_res_query" >&6; } |
| 16552 |
ac_res=$ac_cv_search_res_query |
| 16553 |
if test "$ac_res" != no; then : |
| 16554 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 16555 |
|
| 16556 |
fi |
| 16557 |
|
| 16558 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5 |
| 16559 |
$as_echo_n "checking for library containing dn_expand... " >&6; } |
| 16560 |
if ${ac_cv_search_dn_expand+:} false; then : |
| 16561 |
$as_echo_n "(cached) " >&6 |
| 16562 |
else |
| 16563 |
ac_func_search_save_LIBS=$LIBS |
| 16564 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16565 |
/* end confdefs.h. */ |
| 16566 |
|
| 16567 |
/* Override any GCC internal prototype to avoid an error. |
| 16568 |
Use char because int might match the return type of a GCC |
| 16569 |
builtin and then its argument prototype would still apply. */ |
| 16570 |
#ifdef __cplusplus |
| 16571 |
extern "C" |
| 16572 |
#endif |
| 16573 |
char dn_expand (); |
| 16574 |
int |
| 16575 |
main () |
| 16576 |
{ |
| 16577 |
return dn_expand (); |
| 16578 |
; |
| 16579 |
return 0; |
| 16580 |
} |
| 16581 |
_ACEOF |
| 16582 |
for ac_lib in '' resolv; do |
| 16583 |
if test -z "$ac_lib"; then |
| 16584 |
ac_res="none required" |
| 16585 |
else |
| 16586 |
ac_res=-l$ac_lib |
| 16587 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 16588 |
fi |
| 16589 |
if ac_fn_c_try_link "$LINENO"; then : |
| 16590 |
ac_cv_search_dn_expand=$ac_res |
| 16591 |
fi |
| 16592 |
rm -f core conftest.err conftest.$ac_objext \ |
| 16593 |
conftest$ac_exeext |
| 16594 |
if ${ac_cv_search_dn_expand+:} false; then : |
| 16595 |
break |
| 16596 |
fi |
| 16597 |
done |
| 16598 |
if ${ac_cv_search_dn_expand+:} false; then : |
| 16599 |
|
| 16600 |
else |
| 16601 |
ac_cv_search_dn_expand=no |
| 16602 |
fi |
| 16603 |
rm conftest.$ac_ext |
| 16604 |
LIBS=$ac_func_search_save_LIBS |
| 16605 |
fi |
| 16606 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5 |
| 16607 |
$as_echo "$ac_cv_search_dn_expand" >&6; } |
| 16608 |
ac_res=$ac_cv_search_dn_expand |
| 16609 |
if test "$ac_res" != no; then : |
| 16610 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 16611 |
|
| 16612 |
fi |
| 16613 |
|
| 16614 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5 |
| 16615 |
$as_echo_n "checking if res_query will link... " >&6; } |
| 16616 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16617 |
/* end confdefs.h. */ |
| 16618 |
|
| 16619 |
#include <sys/types.h> |
| 16620 |
#include <netinet/in.h> |
| 16621 |
#include <arpa/nameser.h> |
| 16622 |
#include <netdb.h> |
| 16623 |
#include <resolv.h> |
| 16624 |
|
| 16625 |
int |
| 16626 |
main () |
| 16627 |
{ |
| 16628 |
|
| 16629 |
res_query (0, 0, 0, 0, 0); |
| 16630 |
|
| 16631 |
; |
| 16632 |
return 0; |
| 16633 |
} |
| 16634 |
_ACEOF |
| 16635 |
if ac_fn_c_try_link "$LINENO"; then : |
| 16636 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16637 |
$as_echo "yes" >&6; } |
| 16638 |
else |
| 16639 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16640 |
$as_echo "no" >&6; } |
| 16641 |
saved_LIBS="$LIBS" |
| 16642 |
LIBS="$LIBS -lresolv" |
| 16643 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5 |
| 16644 |
$as_echo_n "checking for res_query in -lresolv... " >&6; } |
| 16645 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16646 |
/* end confdefs.h. */ |
| 16647 |
|
| 16648 |
#include <sys/types.h> |
| 16649 |
#include <netinet/in.h> |
| 16650 |
#include <arpa/nameser.h> |
| 16651 |
#include <netdb.h> |
| 16652 |
#include <resolv.h> |
| 16653 |
|
| 16654 |
int |
| 16655 |
main () |
| 16656 |
{ |
| 16657 |
|
| 16658 |
res_query (0, 0, 0, 0, 0); |
| 16659 |
|
| 16660 |
; |
| 16661 |
return 0; |
| 16662 |
} |
| 16663 |
_ACEOF |
| 16664 |
if ac_fn_c_try_link "$LINENO"; then : |
| 16665 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16666 |
$as_echo "yes" >&6; } |
| 16667 |
else |
| 16668 |
LIBS="$saved_LIBS" |
| 16669 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16670 |
$as_echo "no" >&6; } |
| 16671 |
fi |
| 16672 |
rm -f core conftest.err conftest.$ac_objext \ |
| 16673 |
conftest$ac_exeext conftest.$ac_ext |
| 16674 |
|
| 16675 |
fi |
| 16676 |
rm -f core conftest.err conftest.$ac_objext \ |
| 16677 |
conftest$ac_exeext conftest.$ac_ext |
| 16678 |
for ac_func in _getshort _getlong |
| 16679 |
do : |
| 16680 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16681 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 16682 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 16683 |
cat >>confdefs.h <<_ACEOF |
| 16684 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16685 |
_ACEOF |
| 16686 |
|
| 16687 |
fi |
| 16688 |
done |
| 16689 |
|
| 16690 |
ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h> |
| 16691 |
#include <arpa/nameser.h> |
| 16692 |
" |
| 16693 |
if test "x$ac_cv_have_decl__getshort" = xyes; then : |
| 16694 |
ac_have_decl=1 |
| 16695 |
else |
| 16696 |
ac_have_decl=0 |
| 16697 |
fi |
| 16698 |
|
| 16699 |
cat >>confdefs.h <<_ACEOF |
| 16700 |
#define HAVE_DECL__GETSHORT $ac_have_decl |
| 16701 |
_ACEOF |
| 16702 |
ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h> |
| 16703 |
#include <arpa/nameser.h> |
| 16704 |
" |
| 16705 |
if test "x$ac_cv_have_decl__getlong" = xyes; then : |
| 16706 |
ac_have_decl=1 |
| 16707 |
else |
| 16708 |
ac_have_decl=0 |
| 16709 |
fi |
| 16710 |
|
| 16711 |
cat >>confdefs.h <<_ACEOF |
| 16712 |
#define HAVE_DECL__GETLONG $ac_have_decl |
| 16713 |
_ACEOF |
| 16714 |
|
| 16715 |
ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h> |
| 16716 |
" |
| 16717 |
if test "x$ac_cv_member_HEADER_ad" = xyes; then : |
| 16718 |
|
| 16719 |
$as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h |
| 16720 |
|
| 16721 |
fi |
| 16722 |
|
| 16723 |
|
| 16724 |
fi |
| 16725 |
|
| 16726 |
|
| 16727 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5 |
| 16728 |
$as_echo_n "checking if struct __res_state _res is an extern... " >&6; } |
| 16729 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16730 |
/* end confdefs.h. */ |
| 16731 |
|
| 16732 |
#include <stdio.h> |
| 16733 |
#if HAVE_SYS_TYPES_H |
| 16734 |
# include <sys/types.h> |
| 16735 |
#endif |
| 16736 |
#include <netinet/in.h> |
| 16737 |
#include <arpa/nameser.h> |
| 16738 |
#include <resolv.h> |
| 16739 |
extern struct __res_state _res; |
| 16740 |
|
| 16741 |
int |
| 16742 |
main () |
| 16743 |
{ |
| 16744 |
|
| 16745 |
; |
| 16746 |
return 0; |
| 16747 |
} |
| 16748 |
_ACEOF |
| 16749 |
if ac_fn_c_try_link "$LINENO"; then : |
| 16750 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16751 |
$as_echo "yes" >&6; } |
| 16752 |
|
| 16753 |
$as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h |
| 16754 |
|
| 16755 |
|
| 16756 |
else |
| 16757 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16758 |
$as_echo "no" >&6; } |
| 16759 |
|
| 16760 |
fi |
| 16761 |
rm -f core conftest.err conftest.$ac_objext \ |
| 16762 |
conftest$ac_exeext conftest.$ac_ext |
| 16763 |
|
| 16764 |
# Check whether user wants SELinux support |
| 16765 |
SELINUX_MSG="no" |
| 16766 |
LIBSELINUX="" |
| 16767 |
|
| 16768 |
# Check whether --with-selinux was given. |
| 16769 |
if test "${with_selinux+set}" = set; then : |
| 16770 |
withval=$with_selinux; if test "x$withval" != "xno" ; then |
| 16771 |
save_LIBS="$LIBS" |
| 16772 |
|
| 16773 |
$as_echo "#define WITH_SELINUX 1" >>confdefs.h |
| 16774 |
|
| 16775 |
SELINUX_MSG="yes" |
| 16776 |
ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" |
| 16777 |
if test "x$ac_cv_header_selinux_selinux_h" = xyes; then : |
| 16778 |
|
| 16779 |
else |
| 16780 |
as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5 |
| 16781 |
fi |
| 16782 |
|
| 16783 |
|
| 16784 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5 |
| 16785 |
$as_echo_n "checking for setexeccon in -lselinux... " >&6; } |
| 16786 |
if ${ac_cv_lib_selinux_setexeccon+:} false; then : |
| 16787 |
$as_echo_n "(cached) " >&6 |
| 16788 |
else |
| 16789 |
ac_check_lib_save_LIBS=$LIBS |
| 16790 |
LIBS="-lselinux $LIBS" |
| 16791 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16792 |
/* end confdefs.h. */ |
| 16793 |
|
| 16794 |
/* Override any GCC internal prototype to avoid an error. |
| 16795 |
Use char because int might match the return type of a GCC |
| 16796 |
builtin and then its argument prototype would still apply. */ |
| 16797 |
#ifdef __cplusplus |
| 16798 |
extern "C" |
| 16799 |
#endif |
| 16800 |
char setexeccon (); |
| 16801 |
int |
| 16802 |
main () |
| 16803 |
{ |
| 16804 |
return setexeccon (); |
| 16805 |
; |
| 16806 |
return 0; |
| 16807 |
} |
| 16808 |
_ACEOF |
| 16809 |
if ac_fn_c_try_link "$LINENO"; then : |
| 16810 |
ac_cv_lib_selinux_setexeccon=yes |
| 16811 |
else |
| 16812 |
ac_cv_lib_selinux_setexeccon=no |
| 16813 |
fi |
| 16814 |
rm -f core conftest.err conftest.$ac_objext \ |
| 16815 |
conftest$ac_exeext conftest.$ac_ext |
| 16816 |
LIBS=$ac_check_lib_save_LIBS |
| 16817 |
fi |
| 16818 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5 |
| 16819 |
$as_echo "$ac_cv_lib_selinux_setexeccon" >&6; } |
| 16820 |
if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then : |
| 16821 |
LIBSELINUX="-lselinux" |
| 16822 |
LIBS="$LIBS -lselinux" |
| 16823 |
|
| 16824 |
else |
| 16825 |
as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5 |
| 16826 |
fi |
| 16827 |
|
| 16828 |
SSHLIBS="$SSHLIBS $LIBSELINUX" |
| 16829 |
SSHDLIBS="$SSHDLIBS $LIBSELINUX" |
| 16830 |
for ac_func in getseuserbyname get_default_context_with_level |
| 16831 |
do : |
| 16832 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16833 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 16834 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 16835 |
cat >>confdefs.h <<_ACEOF |
| 16836 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16837 |
_ACEOF |
| 16838 |
|
| 16839 |
fi |
| 16840 |
done |
| 16841 |
|
| 16842 |
LIBS="$save_LIBS" |
| 16843 |
fi |
| 16844 |
|
| 16845 |
fi |
| 16846 |
|
| 16847 |
|
| 16848 |
|
| 16849 |
|
| 16850 |
# Check whether user wants Kerberos 5 support |
| 16851 |
KRB5_MSG="no" |
| 16852 |
|
| 16853 |
# Check whether --with-kerberos5 was given. |
| 16854 |
if test "${with_kerberos5+set}" = set; then : |
| 16855 |
withval=$with_kerberos5; if test "x$withval" != "xno" ; then |
| 16856 |
if test "x$withval" = "xyes" ; then |
| 16857 |
KRB5ROOT="/usr/local" |
| 16858 |
else |
| 16859 |
KRB5ROOT=${withval} |
| 16860 |
fi |
| 16861 |
|
| 16862 |
|
| 16863 |
$as_echo "#define KRB5 1" >>confdefs.h |
| 16864 |
|
| 16865 |
KRB5_MSG="yes" |
| 16866 |
|
| 16867 |
# Extract the first word of "krb5-config", so it can be a program name with args. |
| 16868 |
set dummy krb5-config; ac_word=$2 |
| 16869 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16870 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 16871 |
if ${ac_cv_path_KRB5CONF+:} false; then : |
| 16872 |
$as_echo_n "(cached) " >&6 |
| 16873 |
else |
| 16874 |
case $KRB5CONF in |
| 16875 |
[\\/]* | ?:[\\/]*) |
| 16876 |
ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path. |
| 16877 |
;; |
| 16878 |
*) |
| 16879 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16880 |
as_dummy="$KRB5ROOT/bin:$PATH" |
| 16881 |
for as_dir in $as_dummy |
| 16882 |
do |
| 16883 |
IFS=$as_save_IFS |
| 16884 |
test -z "$as_dir" && as_dir=. |
| 16885 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 16886 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 16887 |
ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext" |
| 16888 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16889 |
break 2 |
| 16890 |
fi |
| 16891 |
done |
| 16892 |
done |
| 16893 |
IFS=$as_save_IFS |
| 16894 |
|
| 16895 |
test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config" |
| 16896 |
;; |
| 16897 |
esac |
| 16898 |
fi |
| 16899 |
KRB5CONF=$ac_cv_path_KRB5CONF |
| 16900 |
if test -n "$KRB5CONF"; then |
| 16901 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5 |
| 16902 |
$as_echo "$KRB5CONF" >&6; } |
| 16903 |
else |
| 16904 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16905 |
$as_echo "no" >&6; } |
| 16906 |
fi |
| 16907 |
|
| 16908 |
|
| 16909 |
if test -x $KRB5CONF ; then |
| 16910 |
K5CFLAGS="`$KRB5CONF --cflags`" |
| 16911 |
K5LIBS="`$KRB5CONF --libs`" |
| 16912 |
CPPFLAGS="$CPPFLAGS $K5CFLAGS" |
| 16913 |
|
| 16914 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5 |
| 16915 |
$as_echo_n "checking for gssapi support... " >&6; } |
| 16916 |
if $KRB5CONF | grep gssapi >/dev/null ; then |
| 16917 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16918 |
$as_echo "yes" >&6; } |
| 16919 |
|
| 16920 |
$as_echo "#define GSSAPI 1" >>confdefs.h |
| 16921 |
|
| 16922 |
GSSCFLAGS="`$KRB5CONF --cflags gssapi`" |
| 16923 |
GSSLIBS="`$KRB5CONF --libs gssapi`" |
| 16924 |
CPPFLAGS="$CPPFLAGS $GSSCFLAGS" |
| 16925 |
else |
| 16926 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16927 |
$as_echo "no" >&6; } |
| 16928 |
fi |
| 16929 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 |
| 16930 |
$as_echo_n "checking whether we are using Heimdal... " >&6; } |
| 16931 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16932 |
/* end confdefs.h. */ |
| 16933 |
#include <krb5.h> |
| 16934 |
|
| 16935 |
int |
| 16936 |
main () |
| 16937 |
{ |
| 16938 |
char *tmp = heimdal_version; |
| 16939 |
; |
| 16940 |
return 0; |
| 16941 |
} |
| 16942 |
_ACEOF |
| 16943 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 16944 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16945 |
$as_echo "yes" >&6; } |
| 16946 |
|
| 16947 |
$as_echo "#define HEIMDAL 1" >>confdefs.h |
| 16948 |
|
| 16949 |
else |
| 16950 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16951 |
$as_echo "no" >&6; } |
| 16952 |
|
| 16953 |
fi |
| 16954 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16955 |
else |
| 16956 |
CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" |
| 16957 |
LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" |
| 16958 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 |
| 16959 |
$as_echo_n "checking whether we are using Heimdal... " >&6; } |
| 16960 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16961 |
/* end confdefs.h. */ |
| 16962 |
#include <krb5.h> |
| 16963 |
|
| 16964 |
int |
| 16965 |
main () |
| 16966 |
{ |
| 16967 |
char *tmp = heimdal_version; |
| 16968 |
; |
| 16969 |
return 0; |
| 16970 |
} |
| 16971 |
_ACEOF |
| 16972 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 16973 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16974 |
$as_echo "yes" >&6; } |
| 16975 |
$as_echo "#define HEIMDAL 1" >>confdefs.h |
| 16976 |
|
| 16977 |
K5LIBS="-lkrb5" |
| 16978 |
K5LIBS="$K5LIBS -lcom_err -lasn1" |
| 16979 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5 |
| 16980 |
$as_echo_n "checking for net_write in -lroken... " >&6; } |
| 16981 |
if ${ac_cv_lib_roken_net_write+:} false; then : |
| 16982 |
$as_echo_n "(cached) " >&6 |
| 16983 |
else |
| 16984 |
ac_check_lib_save_LIBS=$LIBS |
| 16985 |
LIBS="-lroken $LIBS" |
| 16986 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16987 |
/* end confdefs.h. */ |
| 16988 |
|
| 16989 |
/* Override any GCC internal prototype to avoid an error. |
| 16990 |
Use char because int might match the return type of a GCC |
| 16991 |
builtin and then its argument prototype would still apply. */ |
| 16992 |
#ifdef __cplusplus |
| 16993 |
extern "C" |
| 16994 |
#endif |
| 16995 |
char net_write (); |
| 16996 |
int |
| 16997 |
main () |
| 16998 |
{ |
| 16999 |
return net_write (); |
| 17000 |
; |
| 17001 |
return 0; |
| 17002 |
} |
| 17003 |
_ACEOF |
| 17004 |
if ac_fn_c_try_link "$LINENO"; then : |
| 17005 |
ac_cv_lib_roken_net_write=yes |
| 17006 |
else |
| 17007 |
ac_cv_lib_roken_net_write=no |
| 17008 |
fi |
| 17009 |
rm -f core conftest.err conftest.$ac_objext \ |
| 17010 |
conftest$ac_exeext conftest.$ac_ext |
| 17011 |
LIBS=$ac_check_lib_save_LIBS |
| 17012 |
fi |
| 17013 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5 |
| 17014 |
$as_echo "$ac_cv_lib_roken_net_write" >&6; } |
| 17015 |
if test "x$ac_cv_lib_roken_net_write" = xyes; then : |
| 17016 |
K5LIBS="$K5LIBS -lroken" |
| 17017 |
fi |
| 17018 |
|
| 17019 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 |
| 17020 |
$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } |
| 17021 |
if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then : |
| 17022 |
$as_echo_n "(cached) " >&6 |
| 17023 |
else |
| 17024 |
ac_check_lib_save_LIBS=$LIBS |
| 17025 |
LIBS="-ldes $LIBS" |
| 17026 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17027 |
/* end confdefs.h. */ |
| 17028 |
|
| 17029 |
/* Override any GCC internal prototype to avoid an error. |
| 17030 |
Use char because int might match the return type of a GCC |
| 17031 |
builtin and then its argument prototype would still apply. */ |
| 17032 |
#ifdef __cplusplus |
| 17033 |
extern "C" |
| 17034 |
#endif |
| 17035 |
char des_cbc_encrypt (); |
| 17036 |
int |
| 17037 |
main () |
| 17038 |
{ |
| 17039 |
return des_cbc_encrypt (); |
| 17040 |
; |
| 17041 |
return 0; |
| 17042 |
} |
| 17043 |
_ACEOF |
| 17044 |
if ac_fn_c_try_link "$LINENO"; then : |
| 17045 |
ac_cv_lib_des_des_cbc_encrypt=yes |
| 17046 |
else |
| 17047 |
ac_cv_lib_des_des_cbc_encrypt=no |
| 17048 |
fi |
| 17049 |
rm -f core conftest.err conftest.$ac_objext \ |
| 17050 |
conftest$ac_exeext conftest.$ac_ext |
| 17051 |
LIBS=$ac_check_lib_save_LIBS |
| 17052 |
fi |
| 17053 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
| 17054 |
$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } |
| 17055 |
if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then : |
| 17056 |
K5LIBS="$K5LIBS -ldes" |
| 17057 |
fi |
| 17058 |
|
| 17059 |
|
| 17060 |
else |
| 17061 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17062 |
$as_echo "no" >&6; } |
| 17063 |
K5LIBS="-lkrb5 -lk5crypto -lcom_err" |
| 17064 |
|
| 17065 |
|
| 17066 |
fi |
| 17067 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17068 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5 |
| 17069 |
$as_echo_n "checking for library containing dn_expand... " >&6; } |
| 17070 |
if ${ac_cv_search_dn_expand+:} false; then : |
| 17071 |
$as_echo_n "(cached) " >&6 |
| 17072 |
else |
| 17073 |
ac_func_search_save_LIBS=$LIBS |
| 17074 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17075 |
/* end confdefs.h. */ |
| 17076 |
|
| 17077 |
/* Override any GCC internal prototype to avoid an error. |
| 17078 |
Use char because int might match the return type of a GCC |
| 17079 |
builtin and then its argument prototype would still apply. */ |
| 17080 |
#ifdef __cplusplus |
| 17081 |
extern "C" |
| 17082 |
#endif |
| 17083 |
char dn_expand (); |
| 17084 |
int |
| 17085 |
main () |
| 17086 |
{ |
| 17087 |
return dn_expand (); |
| 17088 |
; |
| 17089 |
return 0; |
| 17090 |
} |
| 17091 |
_ACEOF |
| 17092 |
for ac_lib in '' resolv; do |
| 17093 |
if test -z "$ac_lib"; then |
| 17094 |
ac_res="none required" |
| 17095 |
else |
| 17096 |
ac_res=-l$ac_lib |
| 17097 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 17098 |
fi |
| 17099 |
if ac_fn_c_try_link "$LINENO"; then : |
| 17100 |
ac_cv_search_dn_expand=$ac_res |
| 17101 |
fi |
| 17102 |
rm -f core conftest.err conftest.$ac_objext \ |
| 17103 |
conftest$ac_exeext |
| 17104 |
if ${ac_cv_search_dn_expand+:} false; then : |
| 17105 |
break |
| 17106 |
fi |
| 17107 |
done |
| 17108 |
if ${ac_cv_search_dn_expand+:} false; then : |
| 17109 |
|
| 17110 |
else |
| 17111 |
ac_cv_search_dn_expand=no |
| 17112 |
fi |
| 17113 |
rm conftest.$ac_ext |
| 17114 |
LIBS=$ac_func_search_save_LIBS |
| 17115 |
fi |
| 17116 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5 |
| 17117 |
$as_echo "$ac_cv_search_dn_expand" >&6; } |
| 17118 |
ac_res=$ac_cv_search_dn_expand |
| 17119 |
if test "$ac_res" != no; then : |
| 17120 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 17121 |
|
| 17122 |
fi |
| 17123 |
|
| 17124 |
|
| 17125 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5 |
| 17126 |
$as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; } |
| 17127 |
if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then : |
| 17128 |
$as_echo_n "(cached) " >&6 |
| 17129 |
else |
| 17130 |
ac_check_lib_save_LIBS=$LIBS |
| 17131 |
LIBS="-lgssapi_krb5 $LIBS" |
| 17132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17133 |
/* end confdefs.h. */ |
| 17134 |
|
| 17135 |
/* Override any GCC internal prototype to avoid an error. |
| 17136 |
Use char because int might match the return type of a GCC |
| 17137 |
builtin and then its argument prototype would still apply. */ |
| 17138 |
#ifdef __cplusplus |
| 17139 |
extern "C" |
| 17140 |
#endif |
| 17141 |
char gss_init_sec_context (); |
| 17142 |
int |
| 17143 |
main () |
| 17144 |
{ |
| 17145 |
return gss_init_sec_context (); |
| 17146 |
; |
| 17147 |
return 0; |
| 17148 |
} |
| 17149 |
_ACEOF |
| 17150 |
if ac_fn_c_try_link "$LINENO"; then : |
| 17151 |
ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes |
| 17152 |
else |
| 17153 |
ac_cv_lib_gssapi_krb5_gss_init_sec_context=no |
| 17154 |
fi |
| 17155 |
rm -f core conftest.err conftest.$ac_objext \ |
| 17156 |
conftest$ac_exeext conftest.$ac_ext |
| 17157 |
LIBS=$ac_check_lib_save_LIBS |
| 17158 |
fi |
| 17159 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 |
| 17160 |
$as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } |
| 17161 |
if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then : |
| 17162 |
$as_echo "#define GSSAPI 1" >>confdefs.h |
| 17163 |
|
| 17164 |
GSSLIBS="-lgssapi_krb5" |
| 17165 |
else |
| 17166 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5 |
| 17167 |
$as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; } |
| 17168 |
if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then : |
| 17169 |
$as_echo_n "(cached) " >&6 |
| 17170 |
else |
| 17171 |
ac_check_lib_save_LIBS=$LIBS |
| 17172 |
LIBS="-lgssapi $LIBS" |
| 17173 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17174 |
/* end confdefs.h. */ |
| 17175 |
|
| 17176 |
/* Override any GCC internal prototype to avoid an error. |
| 17177 |
Use char because int might match the return type of a GCC |
| 17178 |
builtin and then its argument prototype would still apply. */ |
| 17179 |
#ifdef __cplusplus |
| 17180 |
extern "C" |
| 17181 |
#endif |
| 17182 |
char gss_init_sec_context (); |
| 17183 |
int |
| 17184 |
main () |
| 17185 |
{ |
| 17186 |
return gss_init_sec_context (); |
| 17187 |
; |
| 17188 |
return 0; |
| 17189 |
} |
| 17190 |
_ACEOF |
| 17191 |
if ac_fn_c_try_link "$LINENO"; then : |
| 17192 |
ac_cv_lib_gssapi_gss_init_sec_context=yes |
| 17193 |
else |
| 17194 |
ac_cv_lib_gssapi_gss_init_sec_context=no |
| 17195 |
fi |
| 17196 |
rm -f core conftest.err conftest.$ac_objext \ |
| 17197 |
conftest$ac_exeext conftest.$ac_ext |
| 17198 |
LIBS=$ac_check_lib_save_LIBS |
| 17199 |
fi |
| 17200 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 |
| 17201 |
$as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } |
| 17202 |
if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then : |
| 17203 |
$as_echo "#define GSSAPI 1" >>confdefs.h |
| 17204 |
|
| 17205 |
GSSLIBS="-lgssapi" |
| 17206 |
else |
| 17207 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgss" >&5 |
| 17208 |
$as_echo_n "checking for gss_init_sec_context in -lgss... " >&6; } |
| 17209 |
if ${ac_cv_lib_gss_gss_init_sec_context+:} false; then : |
| 17210 |
$as_echo_n "(cached) " >&6 |
| 17211 |
else |
| 17212 |
ac_check_lib_save_LIBS=$LIBS |
| 17213 |
LIBS="-lgss $LIBS" |
| 17214 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17215 |
/* end confdefs.h. */ |
| 17216 |
|
| 17217 |
/* Override any GCC internal prototype to avoid an error. |
| 17218 |
Use char because int might match the return type of a GCC |
| 17219 |
builtin and then its argument prototype would still apply. */ |
| 17220 |
#ifdef __cplusplus |
| 17221 |
extern "C" |
| 17222 |
#endif |
| 17223 |
char gss_init_sec_context (); |
| 17224 |
int |
| 17225 |
main () |
| 17226 |
{ |
| 17227 |
return gss_init_sec_context (); |
| 17228 |
; |
| 17229 |
return 0; |
| 17230 |
} |
| 17231 |
_ACEOF |
| 17232 |
if ac_fn_c_try_link "$LINENO"; then : |
| 17233 |
ac_cv_lib_gss_gss_init_sec_context=yes |
| 17234 |
else |
| 17235 |
ac_cv_lib_gss_gss_init_sec_context=no |
| 17236 |
fi |
| 17237 |
rm -f core conftest.err conftest.$ac_objext \ |
| 17238 |
conftest$ac_exeext conftest.$ac_ext |
| 17239 |
LIBS=$ac_check_lib_save_LIBS |
| 17240 |
fi |
| 17241 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_init_sec_context" >&5 |
| 17242 |
$as_echo "$ac_cv_lib_gss_gss_init_sec_context" >&6; } |
| 17243 |
if test "x$ac_cv_lib_gss_gss_init_sec_context" = xyes; then : |
| 17244 |
$as_echo "#define GSSAPI 1" >>confdefs.h |
| 17245 |
|
| 17246 |
GSSLIBS="-lgss" |
| 17247 |
else |
| 17248 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 |
| 17249 |
$as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} |
| 17250 |
fi |
| 17251 |
|
| 17252 |
|
| 17253 |
fi |
| 17254 |
|
| 17255 |
|
| 17256 |
fi |
| 17257 |
|
| 17258 |
|
| 17259 |
ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" |
| 17260 |
if test "x$ac_cv_header_gssapi_h" = xyes; then : |
| 17261 |
|
| 17262 |
else |
| 17263 |
unset ac_cv_header_gssapi_h |
| 17264 |
CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" |
| 17265 |
for ac_header in gssapi.h |
| 17266 |
do : |
| 17267 |
ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" |
| 17268 |
if test "x$ac_cv_header_gssapi_h" = xyes; then : |
| 17269 |
cat >>confdefs.h <<_ACEOF |
| 17270 |
#define HAVE_GSSAPI_H 1 |
| 17271 |
_ACEOF |
| 17272 |
|
| 17273 |
else |
| 17274 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 |
| 17275 |
$as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} |
| 17276 |
|
| 17277 |
fi |
| 17278 |
|
| 17279 |
done |
| 17280 |
|
| 17281 |
|
| 17282 |
|
| 17283 |
fi |
| 17284 |
|
| 17285 |
|
| 17286 |
|
| 17287 |
oldCPP="$CPPFLAGS" |
| 17288 |
CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" |
| 17289 |
ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default" |
| 17290 |
if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then : |
| 17291 |
|
| 17292 |
else |
| 17293 |
CPPFLAGS="$oldCPP" |
| 17294 |
fi |
| 17295 |
|
| 17296 |
|
| 17297 |
|
| 17298 |
fi |
| 17299 |
if test ! -z "$need_dash_r" ; then |
| 17300 |
LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" |
| 17301 |
fi |
| 17302 |
if test ! -z "$blibpath" ; then |
| 17303 |
blibpath="$blibpath:${KRB5ROOT}/lib" |
| 17304 |
fi |
| 17305 |
|
| 17306 |
for ac_header in gssapi.h gssapi/gssapi.h |
| 17307 |
do : |
| 17308 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 17309 |
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 17310 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 17311 |
cat >>confdefs.h <<_ACEOF |
| 17312 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 17313 |
_ACEOF |
| 17314 |
|
| 17315 |
fi |
| 17316 |
|
| 17317 |
done |
| 17318 |
|
| 17319 |
for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h |
| 17320 |
do : |
| 17321 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 17322 |
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 17323 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 17324 |
cat >>confdefs.h <<_ACEOF |
| 17325 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 17326 |
_ACEOF |
| 17327 |
|
| 17328 |
fi |
| 17329 |
|
| 17330 |
done |
| 17331 |
|
| 17332 |
for ac_header in gssapi_generic.h gssapi/gssapi_generic.h |
| 17333 |
do : |
| 17334 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 17335 |
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 17336 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 17337 |
cat >>confdefs.h <<_ACEOF |
| 17338 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 17339 |
_ACEOF |
| 17340 |
|
| 17341 |
fi |
| 17342 |
|
| 17343 |
done |
| 17344 |
|
| 17345 |
|
| 17346 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5 |
| 17347 |
$as_echo_n "checking for library containing k_hasafs... " >&6; } |
| 17348 |
if ${ac_cv_search_k_hasafs+:} false; then : |
| 17349 |
$as_echo_n "(cached) " >&6 |
| 17350 |
else |
| 17351 |
ac_func_search_save_LIBS=$LIBS |
| 17352 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17353 |
/* end confdefs.h. */ |
| 17354 |
|
| 17355 |
/* Override any GCC internal prototype to avoid an error. |
| 17356 |
Use char because int might match the return type of a GCC |
| 17357 |
builtin and then its argument prototype would still apply. */ |
| 17358 |
#ifdef __cplusplus |
| 17359 |
extern "C" |
| 17360 |
#endif |
| 17361 |
char k_hasafs (); |
| 17362 |
int |
| 17363 |
main () |
| 17364 |
{ |
| 17365 |
return k_hasafs (); |
| 17366 |
; |
| 17367 |
return 0; |
| 17368 |
} |
| 17369 |
_ACEOF |
| 17370 |
for ac_lib in '' kafs; do |
| 17371 |
if test -z "$ac_lib"; then |
| 17372 |
ac_res="none required" |
| 17373 |
else |
| 17374 |
ac_res=-l$ac_lib |
| 17375 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 17376 |
fi |
| 17377 |
if ac_fn_c_try_link "$LINENO"; then : |
| 17378 |
ac_cv_search_k_hasafs=$ac_res |
| 17379 |
fi |
| 17380 |
rm -f core conftest.err conftest.$ac_objext \ |
| 17381 |
conftest$ac_exeext |
| 17382 |
if ${ac_cv_search_k_hasafs+:} false; then : |
| 17383 |
break |
| 17384 |
fi |
| 17385 |
done |
| 17386 |
if ${ac_cv_search_k_hasafs+:} false; then : |
| 17387 |
|
| 17388 |
else |
| 17389 |
ac_cv_search_k_hasafs=no |
| 17390 |
fi |
| 17391 |
rm conftest.$ac_ext |
| 17392 |
LIBS=$ac_func_search_save_LIBS |
| 17393 |
fi |
| 17394 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5 |
| 17395 |
$as_echo "$ac_cv_search_k_hasafs" >&6; } |
| 17396 |
ac_res=$ac_cv_search_k_hasafs |
| 17397 |
if test "$ac_res" != no; then : |
| 17398 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 17399 |
|
| 17400 |
$as_echo "#define USE_AFS 1" >>confdefs.h |
| 17401 |
|
| 17402 |
fi |
| 17403 |
|
| 17404 |
|
| 17405 |
ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" " |
| 17406 |
#ifdef HAVE_GSSAPI_H |
| 17407 |
# include <gssapi.h> |
| 17408 |
#elif defined(HAVE_GSSAPI_GSSAPI_H) |
| 17409 |
# include <gssapi/gssapi.h> |
| 17410 |
#endif |
| 17411 |
|
| 17412 |
#ifdef HAVE_GSSAPI_GENERIC_H |
| 17413 |
# include <gssapi_generic.h> |
| 17414 |
#elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H) |
| 17415 |
# include <gssapi/gssapi_generic.h> |
| 17416 |
#endif |
| 17417 |
|
| 17418 |
" |
| 17419 |
if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then : |
| 17420 |
ac_have_decl=1 |
| 17421 |
else |
| 17422 |
ac_have_decl=0 |
| 17423 |
fi |
| 17424 |
|
| 17425 |
cat >>confdefs.h <<_ACEOF |
| 17426 |
#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE $ac_have_decl |
| 17427 |
_ACEOF |
| 17428 |
|
| 17429 |
saved_LIBS="$LIBS" |
| 17430 |
LIBS="$LIBS $K5LIBS" |
| 17431 |
for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message |
| 17432 |
do : |
| 17433 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17434 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 17435 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 17436 |
cat >>confdefs.h <<_ACEOF |
| 17437 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17438 |
_ACEOF |
| 17439 |
|
| 17440 |
fi |
| 17441 |
done |
| 17442 |
|
| 17443 |
LIBS="$saved_LIBS" |
| 17444 |
|
| 17445 |
fi |
| 17446 |
|
| 17447 |
|
| 17448 |
fi |
| 17449 |
|
| 17450 |
|
| 17451 |
|
| 17452 |
|
| 17453 |
# Looking for programs, paths and files |
| 17454 |
|
| 17455 |
PRIVSEP_PATH=/var/empty |
| 17456 |
|
| 17457 |
# Check whether --with-privsep-path was given. |
| 17458 |
if test "${with_privsep_path+set}" = set; then : |
| 17459 |
withval=$with_privsep_path; |
| 17460 |
if test -n "$withval" && test "x$withval" != "xno" && \ |
| 17461 |
test "x${withval}" != "xyes"; then |
| 17462 |
PRIVSEP_PATH=$withval |
| 17463 |
fi |
| 17464 |
|
| 17465 |
|
| 17466 |
fi |
| 17467 |
|
| 17468 |
|
| 17469 |
|
| 17470 |
|
| 17471 |
# Check whether --with-xauth was given. |
| 17472 |
if test "${with_xauth+set}" = set; then : |
| 17473 |
withval=$with_xauth; |
| 17474 |
if test -n "$withval" && test "x$withval" != "xno" && \ |
| 17475 |
test "x${withval}" != "xyes"; then |
| 17476 |
xauth_path=$withval |
| 17477 |
fi |
| 17478 |
|
| 17479 |
else |
| 17480 |
|
| 17481 |
TestPath="$PATH" |
| 17482 |
TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" |
| 17483 |
TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" |
| 17484 |
TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" |
| 17485 |
TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" |
| 17486 |
# Extract the first word of "xauth", so it can be a program name with args. |
| 17487 |
set dummy xauth; ac_word=$2 |
| 17488 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17489 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 17490 |
if ${ac_cv_path_xauth_path+:} false; then : |
| 17491 |
$as_echo_n "(cached) " >&6 |
| 17492 |
else |
| 17493 |
case $xauth_path in |
| 17494 |
[\\/]* | ?:[\\/]*) |
| 17495 |
ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. |
| 17496 |
;; |
| 17497 |
*) |
| 17498 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17499 |
for as_dir in $TestPath |
| 17500 |
do |
| 17501 |
IFS=$as_save_IFS |
| 17502 |
test -z "$as_dir" && as_dir=. |
| 17503 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 17504 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17505 |
ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" |
| 17506 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17507 |
break 2 |
| 17508 |
fi |
| 17509 |
done |
| 17510 |
done |
| 17511 |
IFS=$as_save_IFS |
| 17512 |
|
| 17513 |
;; |
| 17514 |
esac |
| 17515 |
fi |
| 17516 |
xauth_path=$ac_cv_path_xauth_path |
| 17517 |
if test -n "$xauth_path"; then |
| 17518 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5 |
| 17519 |
$as_echo "$xauth_path" >&6; } |
| 17520 |
else |
| 17521 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17522 |
$as_echo "no" >&6; } |
| 17523 |
fi |
| 17524 |
|
| 17525 |
|
| 17526 |
if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then |
| 17527 |
xauth_path="/usr/openwin/bin/xauth" |
| 17528 |
fi |
| 17529 |
|
| 17530 |
|
| 17531 |
fi |
| 17532 |
|
| 17533 |
|
| 17534 |
STRIP_OPT=-s |
| 17535 |
# Check whether --enable-strip was given. |
| 17536 |
if test "${enable_strip+set}" = set; then : |
| 17537 |
enableval=$enable_strip; |
| 17538 |
if test "x$enableval" = "xno" ; then |
| 17539 |
STRIP_OPT= |
| 17540 |
fi |
| 17541 |
|
| 17542 |
|
| 17543 |
fi |
| 17544 |
|
| 17545 |
|
| 17546 |
|
| 17547 |
if test -z "$xauth_path" ; then |
| 17548 |
XAUTH_PATH="undefined" |
| 17549 |
|
| 17550 |
else |
| 17551 |
|
| 17552 |
cat >>confdefs.h <<_ACEOF |
| 17553 |
#define XAUTH_PATH "$xauth_path" |
| 17554 |
_ACEOF |
| 17555 |
|
| 17556 |
XAUTH_PATH=$xauth_path |
| 17557 |
|
| 17558 |
fi |
| 17559 |
|
| 17560 |
# Check for mail directory |
| 17561 |
|
| 17562 |
# Check whether --with-maildir was given. |
| 17563 |
if test "${with_maildir+set}" = set; then : |
| 17564 |
withval=$with_maildir; |
| 17565 |
if test "X$withval" != X && test "x$withval" != xno && \ |
| 17566 |
test "x${withval}" != xyes; then |
| 17567 |
|
| 17568 |
cat >>confdefs.h <<_ACEOF |
| 17569 |
#define MAIL_DIRECTORY "$withval" |
| 17570 |
_ACEOF |
| 17571 |
|
| 17572 |
fi |
| 17573 |
|
| 17574 |
else |
| 17575 |
|
| 17576 |
if test "X$maildir" != "X"; then |
| 17577 |
cat >>confdefs.h <<_ACEOF |
| 17578 |
#define MAIL_DIRECTORY "$maildir" |
| 17579 |
_ACEOF |
| 17580 |
|
| 17581 |
else |
| 17582 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5 |
| 17583 |
$as_echo_n "checking Discovering system mail directory... " >&6; } |
| 17584 |
if test "$cross_compiling" = yes; then : |
| 17585 |
|
| 17586 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5 |
| 17587 |
$as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;} |
| 17588 |
|
| 17589 |
|
| 17590 |
else |
| 17591 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17592 |
/* end confdefs.h. */ |
| 17593 |
|
| 17594 |
#include <stdio.h> |
| 17595 |
#include <string.h> |
| 17596 |
#ifdef HAVE_PATHS_H |
| 17597 |
#include <paths.h> |
| 17598 |
#endif |
| 17599 |
#ifdef HAVE_MAILLOCK_H |
| 17600 |
#include <maillock.h> |
| 17601 |
#endif |
| 17602 |
#define DATA "conftest.maildir" |
| 17603 |
|
| 17604 |
int |
| 17605 |
main () |
| 17606 |
{ |
| 17607 |
|
| 17608 |
FILE *fd; |
| 17609 |
int rc; |
| 17610 |
|
| 17611 |
fd = fopen(DATA,"w"); |
| 17612 |
if(fd == NULL) |
| 17613 |
exit(1); |
| 17614 |
|
| 17615 |
#if defined (_PATH_MAILDIR) |
| 17616 |
if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0) |
| 17617 |
exit(1); |
| 17618 |
#elif defined (MAILDIR) |
| 17619 |
if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0) |
| 17620 |
exit(1); |
| 17621 |
#elif defined (_PATH_MAIL) |
| 17622 |
if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0) |
| 17623 |
exit(1); |
| 17624 |
#else |
| 17625 |
exit (2); |
| 17626 |
#endif |
| 17627 |
|
| 17628 |
exit(0); |
| 17629 |
|
| 17630 |
; |
| 17631 |
return 0; |
| 17632 |
} |
| 17633 |
_ACEOF |
| 17634 |
if ac_fn_c_try_run "$LINENO"; then : |
| 17635 |
|
| 17636 |
maildir_what=`awk -F: '{print $1}' conftest.maildir` |
| 17637 |
maildir=`awk -F: '{print $2}' conftest.maildir \ |
| 17638 |
| sed 's|/$||'` |
| 17639 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5 |
| 17640 |
$as_echo "Using: $maildir from $maildir_what" >&6; } |
| 17641 |
if test "x$maildir_what" != "x_PATH_MAILDIR"; then |
| 17642 |
cat >>confdefs.h <<_ACEOF |
| 17643 |
#define MAIL_DIRECTORY "$maildir" |
| 17644 |
_ACEOF |
| 17645 |
|
| 17646 |
fi |
| 17647 |
|
| 17648 |
else |
| 17649 |
|
| 17650 |
if test "X$ac_status" = "X2";then |
| 17651 |
# our test program didn't find it. Default to /var/spool/mail |
| 17652 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5 |
| 17653 |
$as_echo "Using: default value of /var/spool/mail" >&6; } |
| 17654 |
cat >>confdefs.h <<_ACEOF |
| 17655 |
#define MAIL_DIRECTORY "/var/spool/mail" |
| 17656 |
_ACEOF |
| 17657 |
|
| 17658 |
else |
| 17659 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5 |
| 17660 |
$as_echo "*** not found ***" >&6; } |
| 17661 |
fi |
| 17662 |
|
| 17663 |
fi |
| 17664 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17665 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17666 |
fi |
| 17667 |
|
| 17668 |
fi |
| 17669 |
|
| 17670 |
|
| 17671 |
fi |
| 17672 |
# maildir |
| 17673 |
|
| 17674 |
if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then |
| 17675 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 |
| 17676 |
$as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} |
| 17677 |
disable_ptmx_check=yes |
| 17678 |
fi |
| 17679 |
if test -z "$no_dev_ptmx" ; then |
| 17680 |
if test "x$disable_ptmx_check" != "xyes" ; then |
| 17681 |
as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh` |
| 17682 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5 |
| 17683 |
$as_echo_n "checking for \"/dev/ptmx\"... " >&6; } |
| 17684 |
if eval \${$as_ac_File+:} false; then : |
| 17685 |
$as_echo_n "(cached) " >&6 |
| 17686 |
else |
| 17687 |
test "$cross_compiling" = yes && |
| 17688 |
as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 17689 |
if test -r ""/dev/ptmx""; then |
| 17690 |
eval "$as_ac_File=yes" |
| 17691 |
else |
| 17692 |
eval "$as_ac_File=no" |
| 17693 |
fi |
| 17694 |
fi |
| 17695 |
eval ac_res=\$$as_ac_File |
| 17696 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 17697 |
$as_echo "$ac_res" >&6; } |
| 17698 |
if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
| 17699 |
|
| 17700 |
|
| 17701 |
cat >>confdefs.h <<_ACEOF |
| 17702 |
#define HAVE_DEV_PTMX 1 |
| 17703 |
_ACEOF |
| 17704 |
|
| 17705 |
have_dev_ptmx=1 |
| 17706 |
|
| 17707 |
|
| 17708 |
fi |
| 17709 |
|
| 17710 |
fi |
| 17711 |
fi |
| 17712 |
|
| 17713 |
if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then |
| 17714 |
as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh` |
| 17715 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5 |
| 17716 |
$as_echo_n "checking for \"/dev/ptc\"... " >&6; } |
| 17717 |
if eval \${$as_ac_File+:} false; then : |
| 17718 |
$as_echo_n "(cached) " >&6 |
| 17719 |
else |
| 17720 |
test "$cross_compiling" = yes && |
| 17721 |
as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 17722 |
if test -r ""/dev/ptc""; then |
| 17723 |
eval "$as_ac_File=yes" |
| 17724 |
else |
| 17725 |
eval "$as_ac_File=no" |
| 17726 |
fi |
| 17727 |
fi |
| 17728 |
eval ac_res=\$$as_ac_File |
| 17729 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 17730 |
$as_echo "$ac_res" >&6; } |
| 17731 |
if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
| 17732 |
|
| 17733 |
|
| 17734 |
cat >>confdefs.h <<_ACEOF |
| 17735 |
#define HAVE_DEV_PTS_AND_PTC 1 |
| 17736 |
_ACEOF |
| 17737 |
|
| 17738 |
have_dev_ptc=1 |
| 17739 |
|
| 17740 |
|
| 17741 |
fi |
| 17742 |
|
| 17743 |
else |
| 17744 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5 |
| 17745 |
$as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} |
| 17746 |
fi |
| 17747 |
|
| 17748 |
# Options from here on. Some of these are preset by platform above |
| 17749 |
|
| 17750 |
# Check whether --with-mantype was given. |
| 17751 |
if test "${with_mantype+set}" = set; then : |
| 17752 |
withval=$with_mantype; |
| 17753 |
case "$withval" in |
| 17754 |
man|cat|doc) |
| 17755 |
MANTYPE=$withval |
| 17756 |
;; |
| 17757 |
*) |
| 17758 |
as_fn_error $? "invalid man type: $withval" "$LINENO" 5 |
| 17759 |
;; |
| 17760 |
esac |
| 17761 |
|
| 17762 |
|
| 17763 |
fi |
| 17764 |
|
| 17765 |
if test -z "$MANTYPE"; then |
| 17766 |
TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" |
| 17767 |
for ac_prog in nroff awf |
| 17768 |
do |
| 17769 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 17770 |
set dummy $ac_prog; ac_word=$2 |
| 17771 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17772 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 17773 |
if ${ac_cv_path_NROFF+:} false; then : |
| 17774 |
$as_echo_n "(cached) " >&6 |
| 17775 |
else |
| 17776 |
case $NROFF in |
| 17777 |
[\\/]* | ?:[\\/]*) |
| 17778 |
ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. |
| 17779 |
;; |
| 17780 |
*) |
| 17781 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17782 |
for as_dir in $TestPath |
| 17783 |
do |
| 17784 |
IFS=$as_save_IFS |
| 17785 |
test -z "$as_dir" && as_dir=. |
| 17786 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 17787 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17788 |
ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" |
| 17789 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17790 |
break 2 |
| 17791 |
fi |
| 17792 |
done |
| 17793 |
done |
| 17794 |
IFS=$as_save_IFS |
| 17795 |
|
| 17796 |
;; |
| 17797 |
esac |
| 17798 |
fi |
| 17799 |
NROFF=$ac_cv_path_NROFF |
| 17800 |
if test -n "$NROFF"; then |
| 17801 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 |
| 17802 |
$as_echo "$NROFF" >&6; } |
| 17803 |
else |
| 17804 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17805 |
$as_echo "no" >&6; } |
| 17806 |
fi |
| 17807 |
|
| 17808 |
|
| 17809 |
test -n "$NROFF" && break |
| 17810 |
done |
| 17811 |
test -n "$NROFF" || NROFF="/bin/false" |
| 17812 |
|
| 17813 |
if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then |
| 17814 |
MANTYPE=doc |
| 17815 |
elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then |
| 17816 |
MANTYPE=man |
| 17817 |
else |
| 17818 |
MANTYPE=cat |
| 17819 |
fi |
| 17820 |
fi |
| 17821 |
|
| 17822 |
if test "$MANTYPE" = "doc"; then |
| 17823 |
mansubdir=man; |
| 17824 |
else |
| 17825 |
mansubdir=$MANTYPE; |
| 17826 |
fi |
| 17827 |
|
| 17828 |
|
| 17829 |
# Check whether to enable MD5 passwords |
| 17830 |
MD5_MSG="no" |
| 17831 |
|
| 17832 |
# Check whether --with-md5-passwords was given. |
| 17833 |
if test "${with_md5_passwords+set}" = set; then : |
| 17834 |
withval=$with_md5_passwords; |
| 17835 |
if test "x$withval" != "xno" ; then |
| 17836 |
|
| 17837 |
$as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h |
| 17838 |
|
| 17839 |
MD5_MSG="yes" |
| 17840 |
fi |
| 17841 |
|
| 17842 |
|
| 17843 |
fi |
| 17844 |
|
| 17845 |
|
| 17846 |
# Whether to disable shadow password support |
| 17847 |
|
| 17848 |
# Check whether --with-shadow was given. |
| 17849 |
if test "${with_shadow+set}" = set; then : |
| 17850 |
withval=$with_shadow; |
| 17851 |
if test "x$withval" = "xno" ; then |
| 17852 |
$as_echo "#define DISABLE_SHADOW 1" >>confdefs.h |
| 17853 |
|
| 17854 |
disable_shadow=yes |
| 17855 |
fi |
| 17856 |
|
| 17857 |
|
| 17858 |
fi |
| 17859 |
|
| 17860 |
|
| 17861 |
if test -z "$disable_shadow" ; then |
| 17862 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5 |
| 17863 |
$as_echo_n "checking if the systems has expire shadow information... " >&6; } |
| 17864 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17865 |
/* end confdefs.h. */ |
| 17866 |
|
| 17867 |
#include <sys/types.h> |
| 17868 |
#include <shadow.h> |
| 17869 |
struct spwd sp; |
| 17870 |
|
| 17871 |
int |
| 17872 |
main () |
| 17873 |
{ |
| 17874 |
sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; |
| 17875 |
; |
| 17876 |
return 0; |
| 17877 |
} |
| 17878 |
_ACEOF |
| 17879 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 17880 |
sp_expire_available=yes |
| 17881 |
fi |
| 17882 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17883 |
|
| 17884 |
if test "x$sp_expire_available" = "xyes" ; then |
| 17885 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17886 |
$as_echo "yes" >&6; } |
| 17887 |
|
| 17888 |
$as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h |
| 17889 |
|
| 17890 |
else |
| 17891 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17892 |
$as_echo "no" >&6; } |
| 17893 |
fi |
| 17894 |
fi |
| 17895 |
|
| 17896 |
# Use ip address instead of hostname in $DISPLAY |
| 17897 |
if test ! -z "$IPADDR_IN_DISPLAY" ; then |
| 17898 |
DISPLAY_HACK_MSG="yes" |
| 17899 |
|
| 17900 |
$as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h |
| 17901 |
|
| 17902 |
else |
| 17903 |
DISPLAY_HACK_MSG="no" |
| 17904 |
|
| 17905 |
# Check whether --with-ipaddr-display was given. |
| 17906 |
if test "${with_ipaddr_display+set}" = set; then : |
| 17907 |
withval=$with_ipaddr_display; |
| 17908 |
if test "x$withval" != "xno" ; then |
| 17909 |
$as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h |
| 17910 |
|
| 17911 |
DISPLAY_HACK_MSG="yes" |
| 17912 |
fi |
| 17913 |
|
| 17914 |
|
| 17915 |
fi |
| 17916 |
|
| 17917 |
fi |
| 17918 |
|
| 17919 |
# check for /etc/default/login and use it if present. |
| 17920 |
# Check whether --enable-etc-default-login was given. |
| 17921 |
if test "${enable_etc_default_login+set}" = set; then : |
| 17922 |
enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then |
| 17923 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5 |
| 17924 |
$as_echo "$as_me: /etc/default/login handling disabled" >&6;} |
| 17925 |
etc_default_login=no |
| 17926 |
else |
| 17927 |
etc_default_login=yes |
| 17928 |
fi |
| 17929 |
else |
| 17930 |
if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; |
| 17931 |
then |
| 17932 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5 |
| 17933 |
$as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;} |
| 17934 |
etc_default_login=no |
| 17935 |
else |
| 17936 |
etc_default_login=yes |
| 17937 |
fi |
| 17938 |
|
| 17939 |
fi |
| 17940 |
|
| 17941 |
|
| 17942 |
if test "x$etc_default_login" != "xno"; then |
| 17943 |
as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh` |
| 17944 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5 |
| 17945 |
$as_echo_n "checking for \"/etc/default/login\"... " >&6; } |
| 17946 |
if eval \${$as_ac_File+:} false; then : |
| 17947 |
$as_echo_n "(cached) " >&6 |
| 17948 |
else |
| 17949 |
test "$cross_compiling" = yes && |
| 17950 |
as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 17951 |
if test -r ""/etc/default/login""; then |
| 17952 |
eval "$as_ac_File=yes" |
| 17953 |
else |
| 17954 |
eval "$as_ac_File=no" |
| 17955 |
fi |
| 17956 |
fi |
| 17957 |
eval ac_res=\$$as_ac_File |
| 17958 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 17959 |
$as_echo "$ac_res" >&6; } |
| 17960 |
if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
| 17961 |
external_path_file=/etc/default/login |
| 17962 |
fi |
| 17963 |
|
| 17964 |
if test "x$external_path_file" = "x/etc/default/login"; then |
| 17965 |
|
| 17966 |
$as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h |
| 17967 |
|
| 17968 |
fi |
| 17969 |
fi |
| 17970 |
|
| 17971 |
if test $ac_cv_func_login_getcapbool = "yes" && \ |
| 17972 |
test $ac_cv_header_login_cap_h = "yes" ; then |
| 17973 |
external_path_file=/etc/login.conf |
| 17974 |
fi |
| 17975 |
|
| 17976 |
# Whether to mess with the default path |
| 17977 |
SERVER_PATH_MSG="(default)" |
| 17978 |
|
| 17979 |
# Check whether --with-default-path was given. |
| 17980 |
if test "${with_default_path+set}" = set; then : |
| 17981 |
withval=$with_default_path; |
| 17982 |
if test "x$external_path_file" = "x/etc/login.conf" ; then |
| 17983 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
| 17984 |
--with-default-path=PATH has no effect on this system. |
| 17985 |
Edit /etc/login.conf instead." >&5 |
| 17986 |
$as_echo "$as_me: WARNING: |
| 17987 |
--with-default-path=PATH has no effect on this system. |
| 17988 |
Edit /etc/login.conf instead." >&2;} |
| 17989 |
elif test "x$withval" != "xno" ; then |
| 17990 |
if test ! -z "$external_path_file" ; then |
| 17991 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
| 17992 |
--with-default-path=PATH will only be used if PATH is not defined in |
| 17993 |
$external_path_file ." >&5 |
| 17994 |
$as_echo "$as_me: WARNING: |
| 17995 |
--with-default-path=PATH will only be used if PATH is not defined in |
| 17996 |
$external_path_file ." >&2;} |
| 17997 |
fi |
| 17998 |
user_path="$withval" |
| 17999 |
SERVER_PATH_MSG="$withval" |
| 18000 |
fi |
| 18001 |
|
| 18002 |
else |
| 18003 |
if test "x$external_path_file" = "x/etc/login.conf" ; then |
| 18004 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 |
| 18005 |
$as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} |
| 18006 |
else |
| 18007 |
if test ! -z "$external_path_file" ; then |
| 18008 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
| 18009 |
If PATH is defined in $external_path_file, ensure the path to scp is included, |
| 18010 |
otherwise scp will not work." >&5 |
| 18011 |
$as_echo "$as_me: WARNING: |
| 18012 |
If PATH is defined in $external_path_file, ensure the path to scp is included, |
| 18013 |
otherwise scp will not work." >&2;} |
| 18014 |
fi |
| 18015 |
if test "$cross_compiling" = yes; then : |
| 18016 |
user_path="/usr/bin:/bin:/usr/sbin:/sbin" |
| 18017 |
|
| 18018 |
else |
| 18019 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18020 |
/* end confdefs.h. */ |
| 18021 |
|
| 18022 |
/* find out what STDPATH is */ |
| 18023 |
#include <stdio.h> |
| 18024 |
#ifdef HAVE_PATHS_H |
| 18025 |
# include <paths.h> |
| 18026 |
#endif |
| 18027 |
#ifndef _PATH_STDPATH |
| 18028 |
# ifdef _PATH_USERPATH /* Irix */ |
| 18029 |
# define _PATH_STDPATH _PATH_USERPATH |
| 18030 |
# else |
| 18031 |
# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" |
| 18032 |
# endif |
| 18033 |
#endif |
| 18034 |
#include <sys/types.h> |
| 18035 |
#include <sys/stat.h> |
| 18036 |
#include <fcntl.h> |
| 18037 |
#define DATA "conftest.stdpath" |
| 18038 |
|
| 18039 |
int |
| 18040 |
main () |
| 18041 |
{ |
| 18042 |
|
| 18043 |
FILE *fd; |
| 18044 |
int rc; |
| 18045 |
|
| 18046 |
fd = fopen(DATA,"w"); |
| 18047 |
if(fd == NULL) |
| 18048 |
exit(1); |
| 18049 |
|
| 18050 |
if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) |
| 18051 |
exit(1); |
| 18052 |
|
| 18053 |
exit(0); |
| 18054 |
|
| 18055 |
; |
| 18056 |
return 0; |
| 18057 |
} |
| 18058 |
_ACEOF |
| 18059 |
if ac_fn_c_try_run "$LINENO"; then : |
| 18060 |
user_path=`cat conftest.stdpath` |
| 18061 |
else |
| 18062 |
user_path="/usr/bin:/bin:/usr/sbin:/sbin" |
| 18063 |
fi |
| 18064 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 18065 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18066 |
fi |
| 18067 |
|
| 18068 |
# make sure $bindir is in USER_PATH so scp will work |
| 18069 |
t_bindir="${bindir}" |
| 18070 |
while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do |
| 18071 |
t_bindir=`eval echo ${t_bindir}` |
| 18072 |
case $t_bindir in |
| 18073 |
NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; |
| 18074 |
esac |
| 18075 |
case $t_bindir in |
| 18076 |
NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; |
| 18077 |
esac |
| 18078 |
done |
| 18079 |
echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 |
| 18080 |
if test $? -ne 0 ; then |
| 18081 |
echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 |
| 18082 |
if test $? -ne 0 ; then |
| 18083 |
user_path=$user_path:$t_bindir |
| 18084 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5 |
| 18085 |
$as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; } |
| 18086 |
fi |
| 18087 |
fi |
| 18088 |
fi |
| 18089 |
|
| 18090 |
fi |
| 18091 |
|
| 18092 |
if test "x$external_path_file" != "x/etc/login.conf" ; then |
| 18093 |
|
| 18094 |
cat >>confdefs.h <<_ACEOF |
| 18095 |
#define USER_PATH "$user_path" |
| 18096 |
_ACEOF |
| 18097 |
|
| 18098 |
|
| 18099 |
fi |
| 18100 |
|
| 18101 |
# Set superuser path separately to user path |
| 18102 |
|
| 18103 |
# Check whether --with-superuser-path was given. |
| 18104 |
if test "${with_superuser_path+set}" = set; then : |
| 18105 |
withval=$with_superuser_path; |
| 18106 |
if test -n "$withval" && test "x$withval" != "xno" && \ |
| 18107 |
test "x${withval}" != "xyes"; then |
| 18108 |
|
| 18109 |
cat >>confdefs.h <<_ACEOF |
| 18110 |
#define SUPERUSER_PATH "$withval" |
| 18111 |
_ACEOF |
| 18112 |
|
| 18113 |
superuser_path=$withval |
| 18114 |
fi |
| 18115 |
|
| 18116 |
|
| 18117 |
fi |
| 18118 |
|
| 18119 |
|
| 18120 |
|
| 18121 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 |
| 18122 |
$as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; } |
| 18123 |
IPV4_IN6_HACK_MSG="no" |
| 18124 |
|
| 18125 |
# Check whether --with-4in6 was given. |
| 18126 |
if test "${with_4in6+set}" = set; then : |
| 18127 |
withval=$with_4in6; |
| 18128 |
if test "x$withval" != "xno" ; then |
| 18129 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18130 |
$as_echo "yes" >&6; } |
| 18131 |
|
| 18132 |
$as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h |
| 18133 |
|
| 18134 |
IPV4_IN6_HACK_MSG="yes" |
| 18135 |
else |
| 18136 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18137 |
$as_echo "no" >&6; } |
| 18138 |
fi |
| 18139 |
|
| 18140 |
else |
| 18141 |
|
| 18142 |
if test "x$inet6_default_4in6" = "xyes"; then |
| 18143 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 |
| 18144 |
$as_echo "yes (default)" >&6; } |
| 18145 |
$as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h |
| 18146 |
|
| 18147 |
IPV4_IN6_HACK_MSG="yes" |
| 18148 |
else |
| 18149 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 |
| 18150 |
$as_echo "no (default)" >&6; } |
| 18151 |
fi |
| 18152 |
|
| 18153 |
|
| 18154 |
fi |
| 18155 |
|
| 18156 |
|
| 18157 |
# Whether to enable BSD auth support |
| 18158 |
BSD_AUTH_MSG=no |
| 18159 |
|
| 18160 |
# Check whether --with-bsd-auth was given. |
| 18161 |
if test "${with_bsd_auth+set}" = set; then : |
| 18162 |
withval=$with_bsd_auth; |
| 18163 |
if test "x$withval" != "xno" ; then |
| 18164 |
|
| 18165 |
$as_echo "#define BSD_AUTH 1" >>confdefs.h |
| 18166 |
|
| 18167 |
BSD_AUTH_MSG=yes |
| 18168 |
fi |
| 18169 |
|
| 18170 |
|
| 18171 |
fi |
| 18172 |
|
| 18173 |
|
| 18174 |
# Where to place sshd.pid |
| 18175 |
piddir=/var/run |
| 18176 |
# make sure the directory exists |
| 18177 |
if test ! -d $piddir ; then |
| 18178 |
piddir=`eval echo ${sysconfdir}` |
| 18179 |
case $piddir in |
| 18180 |
NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; |
| 18181 |
esac |
| 18182 |
fi |
| 18183 |
|
| 18184 |
|
| 18185 |
# Check whether --with-pid-dir was given. |
| 18186 |
if test "${with_pid_dir+set}" = set; then : |
| 18187 |
withval=$with_pid_dir; |
| 18188 |
if test -n "$withval" && test "x$withval" != "xno" && \ |
| 18189 |
test "x${withval}" != "xyes"; then |
| 18190 |
piddir=$withval |
| 18191 |
if test ! -d $piddir ; then |
| 18192 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5 |
| 18193 |
$as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} |
| 18194 |
fi |
| 18195 |
fi |
| 18196 |
|
| 18197 |
|
| 18198 |
fi |
| 18199 |
|
| 18200 |
|
| 18201 |
|
| 18202 |
cat >>confdefs.h <<_ACEOF |
| 18203 |
#define _PATH_SSH_PIDDIR "$piddir" |
| 18204 |
_ACEOF |
| 18205 |
|
| 18206 |
|
| 18207 |
|
| 18208 |
# Check whether --enable-lastlog was given. |
| 18209 |
if test "${enable_lastlog+set}" = set; then : |
| 18210 |
enableval=$enable_lastlog; |
| 18211 |
if test "x$enableval" = "xno" ; then |
| 18212 |
$as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h |
| 18213 |
|
| 18214 |
fi |
| 18215 |
|
| 18216 |
|
| 18217 |
fi |
| 18218 |
|
| 18219 |
# Check whether --enable-utmp was given. |
| 18220 |
if test "${enable_utmp+set}" = set; then : |
| 18221 |
enableval=$enable_utmp; |
| 18222 |
if test "x$enableval" = "xno" ; then |
| 18223 |
$as_echo "#define DISABLE_UTMP 1" >>confdefs.h |
| 18224 |
|
| 18225 |
fi |
| 18226 |
|
| 18227 |
|
| 18228 |
fi |
| 18229 |
|
| 18230 |
# Check whether --enable-utmpx was given. |
| 18231 |
if test "${enable_utmpx+set}" = set; then : |
| 18232 |
enableval=$enable_utmpx; |
| 18233 |
if test "x$enableval" = "xno" ; then |
| 18234 |
|
| 18235 |
$as_echo "#define DISABLE_UTMPX 1" >>confdefs.h |
| 18236 |
|
| 18237 |
fi |
| 18238 |
|
| 18239 |
|
| 18240 |
fi |
| 18241 |
|
| 18242 |
# Check whether --enable-wtmp was given. |
| 18243 |
if test "${enable_wtmp+set}" = set; then : |
| 18244 |
enableval=$enable_wtmp; |
| 18245 |
if test "x$enableval" = "xno" ; then |
| 18246 |
$as_echo "#define DISABLE_WTMP 1" >>confdefs.h |
| 18247 |
|
| 18248 |
fi |
| 18249 |
|
| 18250 |
|
| 18251 |
fi |
| 18252 |
|
| 18253 |
# Check whether --enable-wtmpx was given. |
| 18254 |
if test "${enable_wtmpx+set}" = set; then : |
| 18255 |
enableval=$enable_wtmpx; |
| 18256 |
if test "x$enableval" = "xno" ; then |
| 18257 |
|
| 18258 |
$as_echo "#define DISABLE_WTMPX 1" >>confdefs.h |
| 18259 |
|
| 18260 |
fi |
| 18261 |
|
| 18262 |
|
| 18263 |
fi |
| 18264 |
|
| 18265 |
# Check whether --enable-libutil was given. |
| 18266 |
if test "${enable_libutil+set}" = set; then : |
| 18267 |
enableval=$enable_libutil; |
| 18268 |
if test "x$enableval" = "xno" ; then |
| 18269 |
$as_echo "#define DISABLE_LOGIN 1" >>confdefs.h |
| 18270 |
|
| 18271 |
fi |
| 18272 |
|
| 18273 |
|
| 18274 |
fi |
| 18275 |
|
| 18276 |
# Check whether --enable-pututline was given. |
| 18277 |
if test "${enable_pututline+set}" = set; then : |
| 18278 |
enableval=$enable_pututline; |
| 18279 |
if test "x$enableval" = "xno" ; then |
| 18280 |
|
| 18281 |
$as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h |
| 18282 |
|
| 18283 |
fi |
| 18284 |
|
| 18285 |
|
| 18286 |
fi |
| 18287 |
|
| 18288 |
# Check whether --enable-pututxline was given. |
| 18289 |
if test "${enable_pututxline+set}" = set; then : |
| 18290 |
enableval=$enable_pututxline; |
| 18291 |
if test "x$enableval" = "xno" ; then |
| 18292 |
|
| 18293 |
$as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h |
| 18294 |
|
| 18295 |
fi |
| 18296 |
|
| 18297 |
|
| 18298 |
fi |
| 18299 |
|
| 18300 |
|
| 18301 |
# Check whether --with-lastlog was given. |
| 18302 |
if test "${with_lastlog+set}" = set; then : |
| 18303 |
withval=$with_lastlog; |
| 18304 |
if test "x$withval" = "xno" ; then |
| 18305 |
$as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h |
| 18306 |
|
| 18307 |
elif test -n "$withval" && test "x${withval}" != "xyes"; then |
| 18308 |
conf_lastlog_location=$withval |
| 18309 |
fi |
| 18310 |
|
| 18311 |
|
| 18312 |
fi |
| 18313 |
|
| 18314 |
|
| 18315 |
|
| 18316 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5 |
| 18317 |
$as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; } |
| 18318 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18319 |
/* end confdefs.h. */ |
| 18320 |
|
| 18321 |
#include <sys/types.h> |
| 18322 |
#include <utmp.h> |
| 18323 |
#ifdef HAVE_LASTLOG_H |
| 18324 |
# include <lastlog.h> |
| 18325 |
#endif |
| 18326 |
#ifdef HAVE_PATHS_H |
| 18327 |
# include <paths.h> |
| 18328 |
#endif |
| 18329 |
#ifdef HAVE_LOGIN_H |
| 18330 |
# include <login.h> |
| 18331 |
#endif |
| 18332 |
|
| 18333 |
int |
| 18334 |
main () |
| 18335 |
{ |
| 18336 |
char *lastlog = LASTLOG_FILE; |
| 18337 |
; |
| 18338 |
return 0; |
| 18339 |
} |
| 18340 |
_ACEOF |
| 18341 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 18342 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18343 |
$as_echo "yes" >&6; } |
| 18344 |
else |
| 18345 |
|
| 18346 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18347 |
$as_echo "no" >&6; } |
| 18348 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5 |
| 18349 |
$as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; } |
| 18350 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18351 |
/* end confdefs.h. */ |
| 18352 |
|
| 18353 |
#include <sys/types.h> |
| 18354 |
#include <utmp.h> |
| 18355 |
#ifdef HAVE_LASTLOG_H |
| 18356 |
# include <lastlog.h> |
| 18357 |
#endif |
| 18358 |
#ifdef HAVE_PATHS_H |
| 18359 |
# include <paths.h> |
| 18360 |
#endif |
| 18361 |
|
| 18362 |
int |
| 18363 |
main () |
| 18364 |
{ |
| 18365 |
char *lastlog = _PATH_LASTLOG; |
| 18366 |
; |
| 18367 |
return 0; |
| 18368 |
} |
| 18369 |
_ACEOF |
| 18370 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 18371 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18372 |
$as_echo "yes" >&6; } |
| 18373 |
else |
| 18374 |
|
| 18375 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18376 |
$as_echo "no" >&6; } |
| 18377 |
system_lastlog_path=no |
| 18378 |
|
| 18379 |
fi |
| 18380 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18381 |
|
| 18382 |
fi |
| 18383 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18384 |
|
| 18385 |
if test -z "$conf_lastlog_location"; then |
| 18386 |
if test x"$system_lastlog_path" = x"no" ; then |
| 18387 |
for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do |
| 18388 |
if (test -d "$f" || test -f "$f") ; then |
| 18389 |
conf_lastlog_location=$f |
| 18390 |
fi |
| 18391 |
done |
| 18392 |
if test -z "$conf_lastlog_location"; then |
| 18393 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5 |
| 18394 |
$as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} |
| 18395 |
fi |
| 18396 |
fi |
| 18397 |
fi |
| 18398 |
|
| 18399 |
if test -n "$conf_lastlog_location"; then |
| 18400 |
|
| 18401 |
cat >>confdefs.h <<_ACEOF |
| 18402 |
#define CONF_LASTLOG_FILE "$conf_lastlog_location" |
| 18403 |
_ACEOF |
| 18404 |
|
| 18405 |
fi |
| 18406 |
|
| 18407 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5 |
| 18408 |
$as_echo_n "checking if your system defines UTMP_FILE... " >&6; } |
| 18409 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18410 |
/* end confdefs.h. */ |
| 18411 |
|
| 18412 |
#include <sys/types.h> |
| 18413 |
#include <utmp.h> |
| 18414 |
#ifdef HAVE_PATHS_H |
| 18415 |
# include <paths.h> |
| 18416 |
#endif |
| 18417 |
|
| 18418 |
int |
| 18419 |
main () |
| 18420 |
{ |
| 18421 |
char *utmp = UTMP_FILE; |
| 18422 |
; |
| 18423 |
return 0; |
| 18424 |
} |
| 18425 |
_ACEOF |
| 18426 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 18427 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18428 |
$as_echo "yes" >&6; } |
| 18429 |
else |
| 18430 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18431 |
$as_echo "no" >&6; } |
| 18432 |
system_utmp_path=no |
| 18433 |
|
| 18434 |
fi |
| 18435 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18436 |
if test -z "$conf_utmp_location"; then |
| 18437 |
if test x"$system_utmp_path" = x"no" ; then |
| 18438 |
for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do |
| 18439 |
if test -f $f ; then |
| 18440 |
conf_utmp_location=$f |
| 18441 |
fi |
| 18442 |
done |
| 18443 |
if test -z "$conf_utmp_location"; then |
| 18444 |
$as_echo "#define DISABLE_UTMP 1" >>confdefs.h |
| 18445 |
|
| 18446 |
fi |
| 18447 |
fi |
| 18448 |
fi |
| 18449 |
if test -n "$conf_utmp_location"; then |
| 18450 |
|
| 18451 |
cat >>confdefs.h <<_ACEOF |
| 18452 |
#define CONF_UTMP_FILE "$conf_utmp_location" |
| 18453 |
_ACEOF |
| 18454 |
|
| 18455 |
fi |
| 18456 |
|
| 18457 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5 |
| 18458 |
$as_echo_n "checking if your system defines WTMP_FILE... " >&6; } |
| 18459 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18460 |
/* end confdefs.h. */ |
| 18461 |
|
| 18462 |
#include <sys/types.h> |
| 18463 |
#include <utmp.h> |
| 18464 |
#ifdef HAVE_PATHS_H |
| 18465 |
# include <paths.h> |
| 18466 |
#endif |
| 18467 |
|
| 18468 |
int |
| 18469 |
main () |
| 18470 |
{ |
| 18471 |
char *wtmp = WTMP_FILE; |
| 18472 |
; |
| 18473 |
return 0; |
| 18474 |
} |
| 18475 |
_ACEOF |
| 18476 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 18477 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18478 |
$as_echo "yes" >&6; } |
| 18479 |
else |
| 18480 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18481 |
$as_echo "no" >&6; } |
| 18482 |
system_wtmp_path=no |
| 18483 |
|
| 18484 |
fi |
| 18485 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18486 |
if test -z "$conf_wtmp_location"; then |
| 18487 |
if test x"$system_wtmp_path" = x"no" ; then |
| 18488 |
for f in /usr/adm/wtmp /var/log/wtmp; do |
| 18489 |
if test -f $f ; then |
| 18490 |
conf_wtmp_location=$f |
| 18491 |
fi |
| 18492 |
done |
| 18493 |
if test -z "$conf_wtmp_location"; then |
| 18494 |
$as_echo "#define DISABLE_WTMP 1" >>confdefs.h |
| 18495 |
|
| 18496 |
fi |
| 18497 |
fi |
| 18498 |
fi |
| 18499 |
if test -n "$conf_wtmp_location"; then |
| 18500 |
|
| 18501 |
cat >>confdefs.h <<_ACEOF |
| 18502 |
#define CONF_WTMP_FILE "$conf_wtmp_location" |
| 18503 |
_ACEOF |
| 18504 |
|
| 18505 |
fi |
| 18506 |
|
| 18507 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5 |
| 18508 |
$as_echo_n "checking if your system defines WTMPX_FILE... " >&6; } |
| 18509 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18510 |
/* end confdefs.h. */ |
| 18511 |
|
| 18512 |
#include <sys/types.h> |
| 18513 |
#include <utmp.h> |
| 18514 |
#ifdef HAVE_UTMPX_H |
| 18515 |
#include <utmpx.h> |
| 18516 |
#endif |
| 18517 |
#ifdef HAVE_PATHS_H |
| 18518 |
# include <paths.h> |
| 18519 |
#endif |
| 18520 |
|
| 18521 |
int |
| 18522 |
main () |
| 18523 |
{ |
| 18524 |
char *wtmpx = WTMPX_FILE; |
| 18525 |
; |
| 18526 |
return 0; |
| 18527 |
} |
| 18528 |
_ACEOF |
| 18529 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 18530 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18531 |
$as_echo "yes" >&6; } |
| 18532 |
else |
| 18533 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18534 |
$as_echo "no" >&6; } |
| 18535 |
system_wtmpx_path=no |
| 18536 |
|
| 18537 |
fi |
| 18538 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18539 |
if test -z "$conf_wtmpx_location"; then |
| 18540 |
if test x"$system_wtmpx_path" = x"no" ; then |
| 18541 |
$as_echo "#define DISABLE_WTMPX 1" >>confdefs.h |
| 18542 |
|
| 18543 |
fi |
| 18544 |
else |
| 18545 |
|
| 18546 |
cat >>confdefs.h <<_ACEOF |
| 18547 |
#define CONF_WTMPX_FILE "$conf_wtmpx_location" |
| 18548 |
_ACEOF |
| 18549 |
|
| 18550 |
fi |
| 18551 |
|
| 18552 |
|
| 18553 |
if test ! -z "$blibpath" ; then |
| 18554 |
LDFLAGS="$LDFLAGS $blibflags$blibpath" |
| 18555 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 |
| 18556 |
$as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} |
| 18557 |
fi |
| 18558 |
|
| 18559 |
ac_fn_c_check_member "$LINENO" "struct lastlog" "ll_line" "ac_cv_member_struct_lastlog_ll_line" " |
| 18560 |
#ifdef HAVE_SYS_TYPES_H |
| 18561 |
#include <sys/types.h> |
| 18562 |
#endif |
| 18563 |
#ifdef HAVE_UTMP_H |
| 18564 |
#include <utmp.h> |
| 18565 |
#endif |
| 18566 |
#ifdef HAVE_UTMPX_H |
| 18567 |
#include <utmpx.h> |
| 18568 |
#endif |
| 18569 |
#ifdef HAVE_LASTLOG_H |
| 18570 |
#include <lastlog.h> |
| 18571 |
#endif |
| 18572 |
|
| 18573 |
" |
| 18574 |
if test "x$ac_cv_member_struct_lastlog_ll_line" = xyes; then : |
| 18575 |
|
| 18576 |
else |
| 18577 |
|
| 18578 |
if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then |
| 18579 |
$as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h |
| 18580 |
|
| 18581 |
fi |
| 18582 |
|
| 18583 |
fi |
| 18584 |
|
| 18585 |
|
| 18586 |
ac_fn_c_check_member "$LINENO" "struct utmp" "ut_line" "ac_cv_member_struct_utmp_ut_line" " |
| 18587 |
#ifdef HAVE_SYS_TYPES_H |
| 18588 |
#include <sys/types.h> |
| 18589 |
#endif |
| 18590 |
#ifdef HAVE_UTMP_H |
| 18591 |
#include <utmp.h> |
| 18592 |
#endif |
| 18593 |
#ifdef HAVE_UTMPX_H |
| 18594 |
#include <utmpx.h> |
| 18595 |
#endif |
| 18596 |
#ifdef HAVE_LASTLOG_H |
| 18597 |
#include <lastlog.h> |
| 18598 |
#endif |
| 18599 |
|
| 18600 |
" |
| 18601 |
if test "x$ac_cv_member_struct_utmp_ut_line" = xyes; then : |
| 18602 |
|
| 18603 |
else |
| 18604 |
|
| 18605 |
$as_echo "#define DISABLE_UTMP 1" >>confdefs.h |
| 18606 |
|
| 18607 |
$as_echo "#define DISABLE_WTMP 1" >>confdefs.h |
| 18608 |
|
| 18609 |
|
| 18610 |
fi |
| 18611 |
|
| 18612 |
|
| 18613 |
CFLAGS="$CFLAGS $werror_flags" |
| 18614 |
|
| 18615 |
if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then |
| 18616 |
TEST_SSH_IPV6=no |
| 18617 |
else |
| 18618 |
TEST_SSH_IPV6=yes |
| 18619 |
fi |
| 18620 |
ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default" |
| 18621 |
if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then : |
| 18622 |
TEST_SSH_IPV6=no |
| 18623 |
fi |
| 18624 |
|
| 18625 |
TEST_SSH_IPV6=$TEST_SSH_IPV6 |
| 18626 |
|
| 18627 |
TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS |
| 18628 |
|
| 18629 |
UNSUPPORTED_ALGORITHMS=$unsupported_algorithms |
| 18630 |
|
| 18631 |
|
| 18632 |
|
| 18633 |
ac_config_files="$ac_config_files Makefile buildpkg.sh" |
| 18634 |
|
| 18635 |
cat >confcache <<\_ACEOF |
| 18636 |
# This file is a shell script that caches the results of configure |
| 18637 |
# tests run on this system so they can be shared between configure |
| 18638 |
# scripts and configure runs, see configure's option --config-cache. |
| 18639 |
# It is not useful on other systems. If it contains results you don't |
| 18640 |
# want to keep, you may remove or edit it. |
| 18641 |
# |
| 18642 |
# config.status only pays attention to the cache file if you give it |
| 18643 |
# the --recheck option to rerun configure. |
| 18644 |
# |
| 18645 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 18646 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 18647 |
# following values. |
| 18648 |
|
| 18649 |
_ACEOF |
| 18650 |
|
| 18651 |
# The following way of writing the cache mishandles newlines in values, |
| 18652 |
# but we know of no workaround that is simple, portable, and efficient. |
| 18653 |
# So, we kill variables containing newlines. |
| 18654 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
| 18655 |
# and sets the high bit in the cache file unless we assign to the vars. |
| 18656 |
( |
| 18657 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 18658 |
eval ac_val=\$$ac_var |
| 18659 |
case $ac_val in #( |
| 18660 |
*${as_nl}*) |
| 18661 |
case $ac_var in #( |
| 18662 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 18663 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 18664 |
esac |
| 18665 |
case $ac_var in #( |
| 18666 |
_ | IFS | as_nl) ;; #( |
| 18667 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 18668 |
*) { eval $ac_var=; unset $ac_var;} ;; |
| 18669 |
esac ;; |
| 18670 |
esac |
| 18671 |
done |
| 18672 |
|
| 18673 |
(set) 2>&1 | |
| 18674 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 18675 |
*${as_nl}ac_space=\ *) |
| 18676 |
# `set' does not quote correctly, so add quotes: double-quote |
| 18677 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
| 18678 |
sed -n \ |
| 18679 |
"s/'/'\\\\''/g; |
| 18680 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 18681 |
;; #( |
| 18682 |
*) |
| 18683 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
| 18684 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 18685 |
;; |
| 18686 |
esac | |
| 18687 |
sort |
| 18688 |
) | |
| 18689 |
sed ' |
| 18690 |
/^ac_cv_env_/b end |
| 18691 |
t clear |
| 18692 |
:clear |
| 18693 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 18694 |
t end |
| 18695 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 18696 |
:end' >>confcache |
| 18697 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 18698 |
if test -w "$cache_file"; then |
| 18699 |
if test "x$cache_file" != "x/dev/null"; then |
| 18700 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 18701 |
$as_echo "$as_me: updating cache $cache_file" >&6;} |
| 18702 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 18703 |
cat confcache >"$cache_file" |
| 18704 |
else |
| 18705 |
case $cache_file in #( |
| 18706 |
*/* | ?:*) |
| 18707 |
mv -f confcache "$cache_file"$$ && |
| 18708 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 18709 |
*) |
| 18710 |
mv -f confcache "$cache_file" ;; |
| 18711 |
esac |
| 18712 |
fi |
| 18713 |
fi |
| 18714 |
else |
| 18715 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 18716 |
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 18717 |
fi |
| 18718 |
fi |
| 18719 |
rm -f confcache |
| 18720 |
|
| 18721 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 18722 |
# Let make expand exec_prefix. |
| 18723 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 18724 |
|
| 18725 |
DEFS=-DHAVE_CONFIG_H |
| 18726 |
|
| 18727 |
ac_libobjs= |
| 18728 |
ac_ltlibobjs= |
| 18729 |
U= |
| 18730 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 18731 |
# 1. Remove the extension, and $U if already installed. |
| 18732 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 18733 |
ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 18734 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 18735 |
# will be set to the directory where LIBOBJS objects are built. |
| 18736 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 18737 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 18738 |
done |
| 18739 |
LIBOBJS=$ac_libobjs |
| 18740 |
|
| 18741 |
LTLIBOBJS=$ac_ltlibobjs |
| 18742 |
|
| 18743 |
|
| 18744 |
|
| 18745 |
|
| 18746 |
: "${CONFIG_STATUS=./config.status}" |
| 18747 |
ac_write_fail=0 |
| 18748 |
ac_clean_files_save=$ac_clean_files |
| 18749 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 18750 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 18751 |
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 18752 |
as_write_fail=0 |
| 18753 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 18754 |
#! $SHELL |
| 18755 |
# Generated by $as_me. |
| 18756 |
# Run this file to recreate the current configuration. |
| 18757 |
# Compiler output produced by configure, useful for debugging |
| 18758 |
# configure, is in config.log if it exists. |
| 18759 |
|
| 18760 |
debug=false |
| 18761 |
ac_cs_recheck=false |
| 18762 |
ac_cs_silent=false |
| 18763 |
|
| 18764 |
SHELL=\${CONFIG_SHELL-$SHELL} |
| 18765 |
export SHELL |
| 18766 |
_ASEOF |
| 18767 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 18768 |
## -------------------- ## |
| 18769 |
## M4sh Initialization. ## |
| 18770 |
## -------------------- ## |
| 18771 |
|
| 18772 |
# Be more Bourne compatible |
| 18773 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 18774 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 18775 |
emulate sh |
| 18776 |
NULLCMD=: |
| 18777 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 18778 |
# is contrary to our usage. Disable this feature. |
| 18779 |
alias -g '${1+"$@"}'='"$@"' |
| 18780 |
setopt NO_GLOB_SUBST |
| 18781 |
else |
| 18782 |
case `(set -o) 2>/dev/null` in #( |
| 18783 |
*posix*) : |
| 18784 |
set -o posix ;; #( |
| 18785 |
*) : |
| 18786 |
;; |
| 18787 |
esac |
| 18788 |
fi |
| 18789 |
|
| 18790 |
|
| 18791 |
as_nl=' |
| 18792 |
' |
| 18793 |
export as_nl |
| 18794 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 18795 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 18796 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 18797 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 18798 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
| 18799 |
# but without wasting forks for bash or zsh. |
| 18800 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 18801 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 18802 |
as_echo='print -r --' |
| 18803 |
as_echo_n='print -rn --' |
| 18804 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 18805 |
as_echo='printf %s\n' |
| 18806 |
as_echo_n='printf %s' |
| 18807 |
else |
| 18808 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 18809 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 18810 |
as_echo_n='/usr/ucb/echo -n' |
| 18811 |
else |
| 18812 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 18813 |
as_echo_n_body='eval |
| 18814 |
arg=$1; |
| 18815 |
case $arg in #( |
| 18816 |
*"$as_nl"*) |
| 18817 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 18818 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 18819 |
esac; |
| 18820 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 18821 |
' |
| 18822 |
export as_echo_n_body |
| 18823 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
| 18824 |
fi |
| 18825 |
export as_echo_body |
| 18826 |
as_echo='sh -c $as_echo_body as_echo' |
| 18827 |
fi |
| 18828 |
|
| 18829 |
# The user is always right. |
| 18830 |
if test "${PATH_SEPARATOR+set}" != set; then |
| 18831 |
PATH_SEPARATOR=: |
| 18832 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 18833 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 18834 |
PATH_SEPARATOR=';' |
| 18835 |
} |
| 18836 |
fi |
| 18837 |
|
| 18838 |
|
| 18839 |
# IFS |
| 18840 |
# We need space, tab and new line, in precisely that order. Quoting is |
| 18841 |
# there to prevent editors from complaining about space-tab. |
| 18842 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 18843 |
# splitting by setting IFS to empty value.) |
| 18844 |
IFS=" "" $as_nl" |
| 18845 |
|
| 18846 |
# Find who we are. Look in the path if we contain no directory separator. |
| 18847 |
as_myself= |
| 18848 |
case $0 in #(( |
| 18849 |
*[\\/]* ) as_myself=$0 ;; |
| 18850 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18851 |
for as_dir in $PATH |
| 18852 |
do |
| 18853 |
IFS=$as_save_IFS |
| 18854 |
test -z "$as_dir" && as_dir=. |
| 18855 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 18856 |
done |
| 18857 |
IFS=$as_save_IFS |
| 18858 |
|
| 18859 |
;; |
| 18860 |
esac |
| 18861 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
| 18862 |
# in which case we are not to be found in the path. |
| 18863 |
if test "x$as_myself" = x; then |
| 18864 |
as_myself=$0 |
| 18865 |
fi |
| 18866 |
if test ! -f "$as_myself"; then |
| 18867 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 18868 |
exit 1 |
| 18869 |
fi |
| 18870 |
|
| 18871 |
# Unset variables that we do not need and which cause bugs (e.g. in |
| 18872 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 18873 |
# suppresses any "Segmentation fault" message there. '((' could |
| 18874 |
# trigger a bug in pdksh 5.2.14. |
| 18875 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
| 18876 |
do eval test x\${$as_var+set} = xset \ |
| 18877 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 18878 |
done |
| 18879 |
PS1='$ ' |
| 18880 |
PS2='> ' |
| 18881 |
PS4='+ ' |
| 18882 |
|
| 18883 |
# NLS nuisances. |
| 18884 |
LC_ALL=C |
| 18885 |
export LC_ALL |
| 18886 |
LANGUAGE=C |
| 18887 |
export LANGUAGE |
| 18888 |
|
| 18889 |
# CDPATH. |
| 18890 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 18891 |
|
| 18892 |
|
| 18893 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 18894 |
# ---------------------------------------- |
| 18895 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 18896 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 18897 |
# script with STATUS, using 1 if that was 0. |
| 18898 |
as_fn_error () |
| 18899 |
{ |
| 18900 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 18901 |
if test "$4"; then |
| 18902 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 18903 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 18904 |
fi |
| 18905 |
$as_echo "$as_me: error: $2" >&2 |
| 18906 |
as_fn_exit $as_status |
| 18907 |
} # as_fn_error |
| 18908 |
|
| 18909 |
|
| 18910 |
# as_fn_set_status STATUS |
| 18911 |
# ----------------------- |
| 18912 |
# Set $? to STATUS, without forking. |
| 18913 |
as_fn_set_status () |
| 18914 |
{ |
| 18915 |
return $1 |
| 18916 |
} # as_fn_set_status |
| 18917 |
|
| 18918 |
# as_fn_exit STATUS |
| 18919 |
# ----------------- |
| 18920 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 18921 |
as_fn_exit () |
| 18922 |
{ |
| 18923 |
set +e |
| 18924 |
as_fn_set_status $1 |
| 18925 |
exit $1 |
| 18926 |
} # as_fn_exit |
| 18927 |
|
| 18928 |
# as_fn_unset VAR |
| 18929 |
# --------------- |
| 18930 |
# Portably unset VAR. |
| 18931 |
as_fn_unset () |
| 18932 |
{ |
| 18933 |
{ eval $1=; unset $1;} |
| 18934 |
} |
| 18935 |
as_unset=as_fn_unset |
| 18936 |
# as_fn_append VAR VALUE |
| 18937 |
# ---------------------- |
| 18938 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 18939 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 18940 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 18941 |
# implementations. |
| 18942 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 18943 |
eval 'as_fn_append () |
| 18944 |
{ |
| 18945 |
eval $1+=\$2 |
| 18946 |
}' |
| 18947 |
else |
| 18948 |
as_fn_append () |
| 18949 |
{ |
| 18950 |
eval $1=\$$1\$2 |
| 18951 |
} |
| 18952 |
fi # as_fn_append |
| 18953 |
|
| 18954 |
# as_fn_arith ARG... |
| 18955 |
# ------------------ |
| 18956 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 18957 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 18958 |
# must be portable across $(()) and expr. |
| 18959 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 18960 |
eval 'as_fn_arith () |
| 18961 |
{ |
| 18962 |
as_val=$(( $* )) |
| 18963 |
}' |
| 18964 |
else |
| 18965 |
as_fn_arith () |
| 18966 |
{ |
| 18967 |
as_val=`expr "$@" || test $? -eq 1` |
| 18968 |
} |
| 18969 |
fi # as_fn_arith |
| 18970 |
|
| 18971 |
|
| 18972 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 18973 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 18974 |
as_expr=expr |
| 18975 |
else |
| 18976 |
as_expr=false |
| 18977 |
fi |
| 18978 |
|
| 18979 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 18980 |
as_basename=basename |
| 18981 |
else |
| 18982 |
as_basename=false |
| 18983 |
fi |
| 18984 |
|
| 18985 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 18986 |
as_dirname=dirname |
| 18987 |
else |
| 18988 |
as_dirname=false |
| 18989 |
fi |
| 18990 |
|
| 18991 |
as_me=`$as_basename -- "$0" || |
| 18992 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 18993 |
X"$0" : 'X\(//\)$' \| \ |
| 18994 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 18995 |
$as_echo X/"$0" | |
| 18996 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 18997 |
s//\1/ |
| 18998 |
q |
| 18999 |
} |
| 19000 |
/^X\/\(\/\/\)$/{ |
| 19001 |
s//\1/ |
| 19002 |
q |
| 19003 |
} |
| 19004 |
/^X\/\(\/\).*/{ |
| 19005 |
s//\1/ |
| 19006 |
q |
| 19007 |
} |
| 19008 |
s/.*/./; q'` |
| 19009 |
|
| 19010 |
# Avoid depending upon Character Ranges. |
| 19011 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 19012 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 19013 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 19014 |
as_cr_digits='0123456789' |
| 19015 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 19016 |
|
| 19017 |
ECHO_C= ECHO_N= ECHO_T= |
| 19018 |
case `echo -n x` in #((((( |
| 19019 |
-n*) |
| 19020 |
case `echo 'xy\c'` in |
| 19021 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 19022 |
xy) ECHO_C='\c';; |
| 19023 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 19024 |
ECHO_T=' ';; |
| 19025 |
esac;; |
| 19026 |
*) |
| 19027 |
ECHO_N='-n';; |
| 19028 |
esac |
| 19029 |
|
| 19030 |
rm -f conf$$ conf$$.exe conf$$.file |
| 19031 |
if test -d conf$$.dir; then |
| 19032 |
rm -f conf$$.dir/conf$$.file |
| 19033 |
else |
| 19034 |
rm -f conf$$.dir |
| 19035 |
mkdir conf$$.dir 2>/dev/null |
| 19036 |
fi |
| 19037 |
if (echo >conf$$.file) 2>/dev/null; then |
| 19038 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 19039 |
as_ln_s='ln -s' |
| 19040 |
# ... but there are two gotchas: |
| 19041 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 19042 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 19043 |
# In both cases, we have to default to `cp -pR'. |
| 19044 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 19045 |
as_ln_s='cp -pR' |
| 19046 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 19047 |
as_ln_s=ln |
| 19048 |
else |
| 19049 |
as_ln_s='cp -pR' |
| 19050 |
fi |
| 19051 |
else |
| 19052 |
as_ln_s='cp -pR' |
| 19053 |
fi |
| 19054 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 19055 |
rmdir conf$$.dir 2>/dev/null |
| 19056 |
|
| 19057 |
|
| 19058 |
# as_fn_mkdir_p |
| 19059 |
# ------------- |
| 19060 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 19061 |
as_fn_mkdir_p () |
| 19062 |
{ |
| 19063 |
|
| 19064 |
case $as_dir in #( |
| 19065 |
-*) as_dir=./$as_dir;; |
| 19066 |
esac |
| 19067 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 19068 |
as_dirs= |
| 19069 |
while :; do |
| 19070 |
case $as_dir in #( |
| 19071 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 19072 |
*) as_qdir=$as_dir;; |
| 19073 |
esac |
| 19074 |
as_dirs="'$as_qdir' $as_dirs" |
| 19075 |
as_dir=`$as_dirname -- "$as_dir" || |
| 19076 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19077 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 19078 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 19079 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 19080 |
$as_echo X"$as_dir" | |
| 19081 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 19082 |
s//\1/ |
| 19083 |
q |
| 19084 |
} |
| 19085 |
/^X\(\/\/\)[^/].*/{ |
| 19086 |
s//\1/ |
| 19087 |
q |
| 19088 |
} |
| 19089 |
/^X\(\/\/\)$/{ |
| 19090 |
s//\1/ |
| 19091 |
q |
| 19092 |
} |
| 19093 |
/^X\(\/\).*/{ |
| 19094 |
s//\1/ |
| 19095 |
q |
| 19096 |
} |
| 19097 |
s/.*/./; q'` |
| 19098 |
test -d "$as_dir" && break |
| 19099 |
done |
| 19100 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 19101 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 19102 |
|
| 19103 |
|
| 19104 |
} # as_fn_mkdir_p |
| 19105 |
if mkdir -p . 2>/dev/null; then |
| 19106 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 19107 |
else |
| 19108 |
test -d ./-p && rmdir ./-p |
| 19109 |
as_mkdir_p=false |
| 19110 |
fi |
| 19111 |
|
| 19112 |
|
| 19113 |
# as_fn_executable_p FILE |
| 19114 |
# ----------------------- |
| 19115 |
# Test if FILE is an executable regular file. |
| 19116 |
as_fn_executable_p () |
| 19117 |
{ |
| 19118 |
test -f "$1" && test -x "$1" |
| 19119 |
} # as_fn_executable_p |
| 19120 |
as_test_x='test -x' |
| 19121 |
as_executable_p=as_fn_executable_p |
| 19122 |
|
| 19123 |
# Sed expression to map a string onto a valid CPP name. |
| 19124 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 19125 |
|
| 19126 |
# Sed expression to map a string onto a valid variable name. |
| 19127 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 19128 |
|
| 19129 |
|
| 19130 |
exec 6>&1 |
| 19131 |
## ----------------------------------- ## |
| 19132 |
## Main body of $CONFIG_STATUS script. ## |
| 19133 |
## ----------------------------------- ## |
| 19134 |
_ASEOF |
| 19135 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 19136 |
|
| 19137 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19138 |
# Save the log message, to keep $0 and so on meaningful, and to |
| 19139 |
# report actual input values of CONFIG_FILES etc. instead of their |
| 19140 |
# values after options handling. |
| 19141 |
ac_log=" |
| 19142 |
This file was extended by OpenSSH $as_me Portable, which was |
| 19143 |
generated by GNU Autoconf 2.69. Invocation command line was |
| 19144 |
|
| 19145 |
CONFIG_FILES = $CONFIG_FILES |
| 19146 |
CONFIG_HEADERS = $CONFIG_HEADERS |
| 19147 |
CONFIG_LINKS = $CONFIG_LINKS |
| 19148 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 19149 |
$ $0 $@ |
| 19150 |
|
| 19151 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 19152 |
" |
| 19153 |
|
| 19154 |
_ACEOF |
| 19155 |
|
| 19156 |
case $ac_config_files in *" |
| 19157 |
"*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 19158 |
esac |
| 19159 |
|
| 19160 |
case $ac_config_headers in *" |
| 19161 |
"*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 19162 |
esac |
| 19163 |
|
| 19164 |
|
| 19165 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19166 |
# Files that config.status was made for. |
| 19167 |
config_files="$ac_config_files" |
| 19168 |
config_headers="$ac_config_headers" |
| 19169 |
|
| 19170 |
_ACEOF |
| 19171 |
|
| 19172 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19173 |
ac_cs_usage="\ |
| 19174 |
\`$as_me' instantiates files and other configuration actions |
| 19175 |
from templates according to the current configuration. Unless the files |
| 19176 |
and actions are specified as TAGs, all are instantiated by default. |
| 19177 |
|
| 19178 |
Usage: $0 [OPTION]... [TAG]... |
| 19179 |
|
| 19180 |
-h, --help print this help, then exit |
| 19181 |
-V, --version print version number and configuration settings, then exit |
| 19182 |
--config print configuration, then exit |
| 19183 |
-q, --quiet, --silent |
| 19184 |
do not print progress messages |
| 19185 |
-d, --debug don't remove temporary files |
| 19186 |
--recheck update $as_me by reconfiguring in the same conditions |
| 19187 |
--file=FILE[:TEMPLATE] |
| 19188 |
instantiate the configuration file FILE |
| 19189 |
--header=FILE[:TEMPLATE] |
| 19190 |
instantiate the configuration header FILE |
| 19191 |
|
| 19192 |
Configuration files: |
| 19193 |
$config_files |
| 19194 |
|
| 19195 |
Configuration headers: |
| 19196 |
$config_headers |
| 19197 |
|
| 19198 |
Report bugs to <[email protected]>." |
| 19199 |
|
| 19200 |
_ACEOF |
| 19201 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19202 |
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 19203 |
ac_cs_version="\\ |
| 19204 |
OpenSSH config.status Portable |
| 19205 |
configured by $0, generated by GNU Autoconf 2.69, |
| 19206 |
with options \\"\$ac_cs_config\\" |
| 19207 |
|
| 19208 |
Copyright (C) 2012 Free Software Foundation, Inc. |
| 19209 |
This config.status script is free software; the Free Software Foundation |
| 19210 |
gives unlimited permission to copy, distribute and modify it." |
| 19211 |
|
| 19212 |
ac_pwd='$ac_pwd' |
| 19213 |
srcdir='$srcdir' |
| 19214 |
INSTALL='$INSTALL' |
| 19215 |
AWK='$AWK' |
| 19216 |
test -n "\$AWK" || AWK=awk |
| 19217 |
_ACEOF |
| 19218 |
|
| 19219 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19220 |
# The default lists apply if the user does not specify any file. |
| 19221 |
ac_need_defaults=: |
| 19222 |
while test $# != 0 |
| 19223 |
do |
| 19224 |
case $1 in |
| 19225 |
--*=?*) |
| 19226 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 19227 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 19228 |
ac_shift=: |
| 19229 |
;; |
| 19230 |
--*=) |
| 19231 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 19232 |
ac_optarg= |
| 19233 |
ac_shift=: |
| 19234 |
;; |
| 19235 |
*) |
| 19236 |
ac_option=$1 |
| 19237 |
ac_optarg=$2 |
| 19238 |
ac_shift=shift |
| 19239 |
;; |
| 19240 |
esac |
| 19241 |
|
| 19242 |
case $ac_option in |
| 19243 |
# Handling of the options. |
| 19244 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 19245 |
ac_cs_recheck=: ;; |
| 19246 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 19247 |
$as_echo "$ac_cs_version"; exit ;; |
| 19248 |
--config | --confi | --conf | --con | --co | --c ) |
| 19249 |
$as_echo "$ac_cs_config"; exit ;; |
| 19250 |
--debug | --debu | --deb | --de | --d | -d ) |
| 19251 |
debug=: ;; |
| 19252 |
--file | --fil | --fi | --f ) |
| 19253 |
$ac_shift |
| 19254 |
case $ac_optarg in |
| 19255 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 19256 |
'') as_fn_error $? "missing file argument" ;; |
| 19257 |
esac |
| 19258 |
as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 19259 |
ac_need_defaults=false;; |
| 19260 |
--header | --heade | --head | --hea ) |
| 19261 |
$ac_shift |
| 19262 |
case $ac_optarg in |
| 19263 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 19264 |
esac |
| 19265 |
as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 19266 |
ac_need_defaults=false;; |
| 19267 |
--he | --h) |
| 19268 |
# Conflict between --help and --header |
| 19269 |
as_fn_error $? "ambiguous option: \`$1' |
| 19270 |
Try \`$0 --help' for more information.";; |
| 19271 |
--help | --hel | -h ) |
| 19272 |
$as_echo "$ac_cs_usage"; exit ;; |
| 19273 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 19274 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 19275 |
ac_cs_silent=: ;; |
| 19276 |
|
| 19277 |
# This is an error. |
| 19278 |
-*) as_fn_error $? "unrecognized option: \`$1' |
| 19279 |
Try \`$0 --help' for more information." ;; |
| 19280 |
|
| 19281 |
*) as_fn_append ac_config_targets " $1" |
| 19282 |
ac_need_defaults=false ;; |
| 19283 |
|
| 19284 |
esac |
| 19285 |
shift |
| 19286 |
done |
| 19287 |
|
| 19288 |
ac_configure_extra_args= |
| 19289 |
|
| 19290 |
if $ac_cs_silent; then |
| 19291 |
exec 6>/dev/null |
| 19292 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 19293 |
fi |
| 19294 |
|
| 19295 |
_ACEOF |
| 19296 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19297 |
if \$ac_cs_recheck; then |
| 19298 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 19299 |
shift |
| 19300 |
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 19301 |
CONFIG_SHELL='$SHELL' |
| 19302 |
export CONFIG_SHELL |
| 19303 |
exec "\$@" |
| 19304 |
fi |
| 19305 |
|
| 19306 |
_ACEOF |
| 19307 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19308 |
exec 5>>config.log |
| 19309 |
{ |
| 19310 |
echo |
| 19311 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 19312 |
## Running $as_me. ## |
| 19313 |
_ASBOX |
| 19314 |
$as_echo "$ac_log" |
| 19315 |
} >&5 |
| 19316 |
|
| 19317 |
_ACEOF |
| 19318 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19319 |
_ACEOF |
| 19320 |
|
| 19321 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19322 |
|
| 19323 |
# Handling of arguments. |
| 19324 |
for ac_config_target in $ac_config_targets |
| 19325 |
do |
| 19326 |
case $ac_config_target in |
| 19327 |
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 19328 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 19329 |
"buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; |
| 19330 |
|
| 19331 |
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 19332 |
esac |
| 19333 |
done |
| 19334 |
|
| 19335 |
|
| 19336 |
# If the user did not use the arguments to specify the items to instantiate, |
| 19337 |
# then the envvar interface is used. Set only those that are not. |
| 19338 |
# We use the long form for the default assignment because of an extremely |
| 19339 |
# bizarre bug on SunOS 4.1.3. |
| 19340 |
if $ac_need_defaults; then |
| 19341 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 19342 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 19343 |
fi |
| 19344 |
|
| 19345 |
# Have a temporary directory for convenience. Make it in the build tree |
| 19346 |
# simply because there is no reason against having it here, and in addition, |
| 19347 |
# creating and moving files from /tmp can sometimes cause problems. |
| 19348 |
# Hook for its removal unless debugging. |
| 19349 |
# Note that there is a small window in which the directory will not be cleaned: |
| 19350 |
# after its creation but before its name has been assigned to `$tmp'. |
| 19351 |
$debug || |
| 19352 |
{ |
| 19353 |
tmp= ac_tmp= |
| 19354 |
trap 'exit_status=$? |
| 19355 |
: "${ac_tmp:=$tmp}" |
| 19356 |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 19357 |
' 0 |
| 19358 |
trap 'as_fn_exit 1' 1 2 13 15 |
| 19359 |
} |
| 19360 |
# Create a (secure) tmp directory for tmp files. |
| 19361 |
|
| 19362 |
{ |
| 19363 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 19364 |
test -d "$tmp" |
| 19365 |
} || |
| 19366 |
{ |
| 19367 |
tmp=./conf$$-$RANDOM |
| 19368 |
(umask 077 && mkdir "$tmp") |
| 19369 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 19370 |
ac_tmp=$tmp |
| 19371 |
|
| 19372 |
# Set up the scripts for CONFIG_FILES section. |
| 19373 |
# No need to generate them if there are no CONFIG_FILES. |
| 19374 |
# This happens for instance with `./config.status config.h'. |
| 19375 |
if test -n "$CONFIG_FILES"; then |
| 19376 |
|
| 19377 |
|
| 19378 |
ac_cr=`echo X | tr X '\015'` |
| 19379 |
# On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 19380 |
# But we know of no other shell where ac_cr would be empty at this |
| 19381 |
# point, so we can use a bashism as a fallback. |
| 19382 |
if test "x$ac_cr" = x; then |
| 19383 |
eval ac_cr=\$\'\\r\' |
| 19384 |
fi |
| 19385 |
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 19386 |
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 19387 |
ac_cs_awk_cr='\\r' |
| 19388 |
else |
| 19389 |
ac_cs_awk_cr=$ac_cr |
| 19390 |
fi |
| 19391 |
|
| 19392 |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 19393 |
_ACEOF |
| 19394 |
|
| 19395 |
|
| 19396 |
{ |
| 19397 |
echo "cat >conf$$subs.awk <<_ACEOF" && |
| 19398 |
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 19399 |
echo "_ACEOF" |
| 19400 |
} >conf$$subs.sh || |
| 19401 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 19402 |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 19403 |
ac_delim='%!_!# ' |
| 19404 |
for ac_last_try in false false false false false :; do |
| 19405 |
. ./conf$$subs.sh || |
| 19406 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 19407 |
|
| 19408 |
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 19409 |
if test $ac_delim_n = $ac_delim_num; then |
| 19410 |
break |
| 19411 |
elif $ac_last_try; then |
| 19412 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 19413 |
else |
| 19414 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 19415 |
fi |
| 19416 |
done |
| 19417 |
rm -f conf$$subs.sh |
| 19418 |
|
| 19419 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19420 |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 19421 |
_ACEOF |
| 19422 |
sed -n ' |
| 19423 |
h |
| 19424 |
s/^/S["/; s/!.*/"]=/ |
| 19425 |
p |
| 19426 |
g |
| 19427 |
s/^[^!]*!// |
| 19428 |
:repl |
| 19429 |
t repl |
| 19430 |
s/'"$ac_delim"'$// |
| 19431 |
t delim |
| 19432 |
:nl |
| 19433 |
h |
| 19434 |
s/\(.\{148\}\)..*/\1/ |
| 19435 |
t more1 |
| 19436 |
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 19437 |
p |
| 19438 |
n |
| 19439 |
b repl |
| 19440 |
:more1 |
| 19441 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 19442 |
p |
| 19443 |
g |
| 19444 |
s/.\{148\}// |
| 19445 |
t nl |
| 19446 |
:delim |
| 19447 |
h |
| 19448 |
s/\(.\{148\}\)..*/\1/ |
| 19449 |
t more2 |
| 19450 |
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 19451 |
p |
| 19452 |
b |
| 19453 |
:more2 |
| 19454 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 19455 |
p |
| 19456 |
g |
| 19457 |
s/.\{148\}// |
| 19458 |
t delim |
| 19459 |
' <conf$$subs.awk | sed ' |
| 19460 |
/^[^""]/{ |
| 19461 |
N |
| 19462 |
s/\n// |
| 19463 |
} |
| 19464 |
' >>$CONFIG_STATUS || ac_write_fail=1 |
| 19465 |
rm -f conf$$subs.awk |
| 19466 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19467 |
_ACAWK |
| 19468 |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 19469 |
for (key in S) S_is_set[key] = 1 |
| 19470 |
FS = "" |
| 19471 |
|
| 19472 |
} |
| 19473 |
{ |
| 19474 |
line = $ 0 |
| 19475 |
nfields = split(line, field, "@") |
| 19476 |
substed = 0 |
| 19477 |
len = length(field[1]) |
| 19478 |
for (i = 2; i < nfields; i++) { |
| 19479 |
key = field[i] |
| 19480 |
keylen = length(key) |
| 19481 |
if (S_is_set[key]) { |
| 19482 |
value = S[key] |
| 19483 |
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 19484 |
len += length(value) + length(field[++i]) |
| 19485 |
substed = 1 |
| 19486 |
} else |
| 19487 |
len += 1 + keylen |
| 19488 |
} |
| 19489 |
|
| 19490 |
print line |
| 19491 |
} |
| 19492 |
|
| 19493 |
_ACAWK |
| 19494 |
_ACEOF |
| 19495 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19496 |
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 19497 |
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 19498 |
else |
| 19499 |
cat |
| 19500 |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 19501 |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 19502 |
_ACEOF |
| 19503 |
|
| 19504 |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 19505 |
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 19506 |
# trailing colons and then remove the whole line if VPATH becomes empty |
| 19507 |
# (actually we leave an empty line to preserve line numbers). |
| 19508 |
if test "x$srcdir" = x.; then |
| 19509 |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 19510 |
h |
| 19511 |
s/// |
| 19512 |
s/^/:/ |
| 19513 |
s/[ ]*$/:/ |
| 19514 |
s/:\$(srcdir):/:/g |
| 19515 |
s/:\${srcdir}:/:/g |
| 19516 |
s/:@srcdir@:/:/g |
| 19517 |
s/^:*// |
| 19518 |
s/:*$// |
| 19519 |
x |
| 19520 |
s/\(=[ ]*\).*/\1/ |
| 19521 |
G |
| 19522 |
s/\n// |
| 19523 |
s/^[^=]*=[ ]*$// |
| 19524 |
}' |
| 19525 |
fi |
| 19526 |
|
| 19527 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19528 |
fi # test -n "$CONFIG_FILES" |
| 19529 |
|
| 19530 |
# Set up the scripts for CONFIG_HEADERS section. |
| 19531 |
# No need to generate them if there are no CONFIG_HEADERS. |
| 19532 |
# This happens for instance with `./config.status Makefile'. |
| 19533 |
if test -n "$CONFIG_HEADERS"; then |
| 19534 |
cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 19535 |
BEGIN { |
| 19536 |
_ACEOF |
| 19537 |
|
| 19538 |
# Transform confdefs.h into an awk script `defines.awk', embedded as |
| 19539 |
# here-document in config.status, that substitutes the proper values into |
| 19540 |
# config.h.in to produce config.h. |
| 19541 |
|
| 19542 |
# Create a delimiter string that does not exist in confdefs.h, to ease |
| 19543 |
# handling of long lines. |
| 19544 |
ac_delim='%!_!# ' |
| 19545 |
for ac_last_try in false false :; do |
| 19546 |
ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 19547 |
if test -z "$ac_tt"; then |
| 19548 |
break |
| 19549 |
elif $ac_last_try; then |
| 19550 |
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 19551 |
else |
| 19552 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 19553 |
fi |
| 19554 |
done |
| 19555 |
|
| 19556 |
# For the awk script, D is an array of macro values keyed by name, |
| 19557 |
# likewise P contains macro parameters if any. Preserve backslash |
| 19558 |
# newline sequences. |
| 19559 |
|
| 19560 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 19561 |
sed -n ' |
| 19562 |
s/.\{148\}/&'"$ac_delim"'/g |
| 19563 |
t rset |
| 19564 |
:rset |
| 19565 |
s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 19566 |
t def |
| 19567 |
d |
| 19568 |
:def |
| 19569 |
s/\\$// |
| 19570 |
t bsnl |
| 19571 |
s/["\\]/\\&/g |
| 19572 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 19573 |
D["\1"]=" \3"/p |
| 19574 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 19575 |
d |
| 19576 |
:bsnl |
| 19577 |
s/["\\]/\\&/g |
| 19578 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 19579 |
D["\1"]=" \3\\\\\\n"\\/p |
| 19580 |
t cont |
| 19581 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 19582 |
t cont |
| 19583 |
d |
| 19584 |
:cont |
| 19585 |
n |
| 19586 |
s/.\{148\}/&'"$ac_delim"'/g |
| 19587 |
t clear |
| 19588 |
:clear |
| 19589 |
s/\\$// |
| 19590 |
t bsnlc |
| 19591 |
s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 19592 |
d |
| 19593 |
:bsnlc |
| 19594 |
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 19595 |
b cont |
| 19596 |
' <confdefs.h | sed ' |
| 19597 |
s/'"$ac_delim"'/"\\\ |
| 19598 |
"/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 19599 |
|
| 19600 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19601 |
for (key in D) D_is_set[key] = 1 |
| 19602 |
FS = "" |
| 19603 |
} |
| 19604 |
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 19605 |
line = \$ 0 |
| 19606 |
split(line, arg, " ") |
| 19607 |
if (arg[1] == "#") { |
| 19608 |
defundef = arg[2] |
| 19609 |
mac1 = arg[3] |
| 19610 |
} else { |
| 19611 |
defundef = substr(arg[1], 2) |
| 19612 |
mac1 = arg[2] |
| 19613 |
} |
| 19614 |
split(mac1, mac2, "(") #) |
| 19615 |
macro = mac2[1] |
| 19616 |
prefix = substr(line, 1, index(line, defundef) - 1) |
| 19617 |
if (D_is_set[macro]) { |
| 19618 |
# Preserve the white space surrounding the "#". |
| 19619 |
print prefix "define", macro P[macro] D[macro] |
| 19620 |
next |
| 19621 |
} else { |
| 19622 |
# Replace #undef with comments. This is necessary, for example, |
| 19623 |
# in the case of _POSIX_SOURCE, which is predefined and required |
| 19624 |
# on some systems where configure will not decide to define it. |
| 19625 |
if (defundef == "undef") { |
| 19626 |
print "/*", prefix defundef, macro, "*/" |
| 19627 |
next |
| 19628 |
} |
| 19629 |
} |
| 19630 |
} |
| 19631 |
{ print } |
| 19632 |
_ACAWK |
| 19633 |
_ACEOF |
| 19634 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19635 |
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 19636 |
fi # test -n "$CONFIG_HEADERS" |
| 19637 |
|
| 19638 |
|
| 19639 |
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 19640 |
shift |
| 19641 |
for ac_tag |
| 19642 |
do |
| 19643 |
case $ac_tag in |
| 19644 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
| 19645 |
esac |
| 19646 |
case $ac_mode$ac_tag in |
| 19647 |
:[FHL]*:*);; |
| 19648 |
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 19649 |
:[FH]-) ac_tag=-:-;; |
| 19650 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 19651 |
esac |
| 19652 |
ac_save_IFS=$IFS |
| 19653 |
IFS=: |
| 19654 |
set x $ac_tag |
| 19655 |
IFS=$ac_save_IFS |
| 19656 |
shift |
| 19657 |
ac_file=$1 |
| 19658 |
shift |
| 19659 |
|
| 19660 |
case $ac_mode in |
| 19661 |
:L) ac_source=$1;; |
| 19662 |
:[FH]) |
| 19663 |
ac_file_inputs= |
| 19664 |
for ac_f |
| 19665 |
do |
| 19666 |
case $ac_f in |
| 19667 |
-) ac_f="$ac_tmp/stdin";; |
| 19668 |
*) # Look for the file first in the build tree, then in the source tree |
| 19669 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
| 19670 |
# because $ac_f cannot contain `:'. |
| 19671 |
test -f "$ac_f" || |
| 19672 |
case $ac_f in |
| 19673 |
[\\/$]*) false;; |
| 19674 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 19675 |
esac || |
| 19676 |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 19677 |
esac |
| 19678 |
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 19679 |
as_fn_append ac_file_inputs " '$ac_f'" |
| 19680 |
done |
| 19681 |
|
| 19682 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
| 19683 |
# use $as_me), people would be surprised to read: |
| 19684 |
# /* config.h. Generated by config.status. */ |
| 19685 |
configure_input='Generated from '` |
| 19686 |
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 19687 |
`' by configure.' |
| 19688 |
if test x"$ac_file" != x-; then |
| 19689 |
configure_input="$ac_file. $configure_input" |
| 19690 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 19691 |
$as_echo "$as_me: creating $ac_file" >&6;} |
| 19692 |
fi |
| 19693 |
# Neutralize special characters interpreted by sed in replacement strings. |
| 19694 |
case $configure_input in #( |
| 19695 |
*\&* | *\|* | *\\* ) |
| 19696 |
ac_sed_conf_input=`$as_echo "$configure_input" | |
| 19697 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 19698 |
*) ac_sed_conf_input=$configure_input;; |
| 19699 |
esac |
| 19700 |
|
| 19701 |
case $ac_tag in |
| 19702 |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 19703 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 19704 |
esac |
| 19705 |
;; |
| 19706 |
esac |
| 19707 |
|
| 19708 |
ac_dir=`$as_dirname -- "$ac_file" || |
| 19709 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19710 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 19711 |
X"$ac_file" : 'X\(//\)$' \| \ |
| 19712 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 19713 |
$as_echo X"$ac_file" | |
| 19714 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 19715 |
s//\1/ |
| 19716 |
q |
| 19717 |
} |
| 19718 |
/^X\(\/\/\)[^/].*/{ |
| 19719 |
s//\1/ |
| 19720 |
q |
| 19721 |
} |
| 19722 |
/^X\(\/\/\)$/{ |
| 19723 |
s//\1/ |
| 19724 |
q |
| 19725 |
} |
| 19726 |
/^X\(\/\).*/{ |
| 19727 |
s//\1/ |
| 19728 |
q |
| 19729 |
} |
| 19730 |
s/.*/./; q'` |
| 19731 |
as_dir="$ac_dir"; as_fn_mkdir_p |
| 19732 |
ac_builddir=. |
| 19733 |
|
| 19734 |
case "$ac_dir" in |
| 19735 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 19736 |
*) |
| 19737 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 19738 |
# A ".." for each directory in $ac_dir_suffix. |
| 19739 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 19740 |
case $ac_top_builddir_sub in |
| 19741 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 19742 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 19743 |
esac ;; |
| 19744 |
esac |
| 19745 |
ac_abs_top_builddir=$ac_pwd |
| 19746 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 19747 |
# for backward compatibility: |
| 19748 |
ac_top_builddir=$ac_top_build_prefix |
| 19749 |
|
| 19750 |
case $srcdir in |
| 19751 |
.) # We are building in place. |
| 19752 |
ac_srcdir=. |
| 19753 |
ac_top_srcdir=$ac_top_builddir_sub |
| 19754 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 19755 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 19756 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 19757 |
ac_top_srcdir=$srcdir |
| 19758 |
ac_abs_top_srcdir=$srcdir ;; |
| 19759 |
*) # Relative name. |
| 19760 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 19761 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 19762 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 19763 |
esac |
| 19764 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 19765 |
|
| 19766 |
|
| 19767 |
case $ac_mode in |
| 19768 |
:F) |
| 19769 |
# |
| 19770 |
# CONFIG_FILE |
| 19771 |
# |
| 19772 |
|
| 19773 |
case $INSTALL in |
| 19774 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 19775 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 19776 |
esac |
| 19777 |
_ACEOF |
| 19778 |
|
| 19779 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19780 |
# If the template does not know about datarootdir, expand it. |
| 19781 |
# FIXME: This hack should be removed a few years after 2.60. |
| 19782 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
| 19783 |
ac_sed_dataroot=' |
| 19784 |
/datarootdir/ { |
| 19785 |
p |
| 19786 |
q |
| 19787 |
} |
| 19788 |
/@datadir@/p |
| 19789 |
/@docdir@/p |
| 19790 |
/@infodir@/p |
| 19791 |
/@localedir@/p |
| 19792 |
/@mandir@/p' |
| 19793 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 19794 |
*datarootdir*) ac_datarootdir_seen=yes;; |
| 19795 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 19796 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 19797 |
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 19798 |
_ACEOF |
| 19799 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19800 |
ac_datarootdir_hack=' |
| 19801 |
s&@datadir@&$datadir&g |
| 19802 |
s&@docdir@&$docdir&g |
| 19803 |
s&@infodir@&$infodir&g |
| 19804 |
s&@localedir@&$localedir&g |
| 19805 |
s&@mandir@&$mandir&g |
| 19806 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
| 19807 |
esac |
| 19808 |
_ACEOF |
| 19809 |
|
| 19810 |
# Neutralize VPATH when `$srcdir' = `.'. |
| 19811 |
# Shell code in configure.ac might set extrasub. |
| 19812 |
# FIXME: do we really want to maintain this feature? |
| 19813 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19814 |
ac_sed_extra="$ac_vpsub |
| 19815 |
$extrasub |
| 19816 |
_ACEOF |
| 19817 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19818 |
:t |
| 19819 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 19820 |
s|@configure_input@|$ac_sed_conf_input|;t t |
| 19821 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 19822 |
s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 19823 |
s&@srcdir@&$ac_srcdir&;t t |
| 19824 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 19825 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
| 19826 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 19827 |
s&@builddir@&$ac_builddir&;t t |
| 19828 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
| 19829 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 19830 |
s&@INSTALL@&$ac_INSTALL&;t t |
| 19831 |
$ac_datarootdir_hack |
| 19832 |
" |
| 19833 |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 19834 |
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 19835 |
|
| 19836 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 19837 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 19838 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 19839 |
"$ac_tmp/out"`; test -z "$ac_out"; } && |
| 19840 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 19841 |
which seems to be undefined. Please make sure it is defined" >&5 |
| 19842 |
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 19843 |
which seems to be undefined. Please make sure it is defined" >&2;} |
| 19844 |
|
| 19845 |
rm -f "$ac_tmp/stdin" |
| 19846 |
case $ac_file in |
| 19847 |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 19848 |
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 19849 |
esac \ |
| 19850 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 19851 |
;; |
| 19852 |
:H) |
| 19853 |
# |
| 19854 |
# CONFIG_HEADER |
| 19855 |
# |
| 19856 |
if test x"$ac_file" != x-; then |
| 19857 |
{ |
| 19858 |
$as_echo "/* $configure_input */" \ |
| 19859 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 19860 |
} >"$ac_tmp/config.h" \ |
| 19861 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 19862 |
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 19863 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 19864 |
$as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 19865 |
else |
| 19866 |
rm -f "$ac_file" |
| 19867 |
mv "$ac_tmp/config.h" "$ac_file" \ |
| 19868 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 19869 |
fi |
| 19870 |
else |
| 19871 |
$as_echo "/* $configure_input */" \ |
| 19872 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 19873 |
|| as_fn_error $? "could not create -" "$LINENO" 5 |
| 19874 |
fi |
| 19875 |
;; |
| 19876 |
|
| 19877 |
|
| 19878 |
esac |
| 19879 |
|
| 19880 |
done # for ac_tag |
| 19881 |
|
| 19882 |
|
| 19883 |
as_fn_exit 0 |
| 19884 |
_ACEOF |
| 19885 |
ac_clean_files=$ac_clean_files_save |
| 19886 |
|
| 19887 |
test $ac_write_fail = 0 || |
| 19888 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 19889 |
|
| 19890 |
|
| 19891 |
# configure is writing to config.log, and then calls config.status. |
| 19892 |
# config.status does its own redirection, appending to config.log. |
| 19893 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
| 19894 |
# by configure, so config.status won't be able to write to it; its |
| 19895 |
# output is simply discarded. So we exec the FD to /dev/null, |
| 19896 |
# effectively closing config.log, so it can be properly (re)opened and |
| 19897 |
# appended to by config.status. When coming back to configure, we |
| 19898 |
# need to make the FD available again. |
| 19899 |
if test "$no_create" != yes; then |
| 19900 |
ac_cs_success=: |
| 19901 |
ac_config_status_args= |
| 19902 |
test "$silent" = yes && |
| 19903 |
ac_config_status_args="$ac_config_status_args --quiet" |
| 19904 |
exec 5>/dev/null |
| 19905 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 19906 |
exec 5>>config.log |
| 19907 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 19908 |
# would make configure fail if this is the last instruction. |
| 19909 |
$ac_cs_success || as_fn_exit 1 |
| 19910 |
fi |
| 19911 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 19912 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 19913 |
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 19914 |
fi |
| 19915 |
|
| 19916 |
|
| 19917 |
# Print summary of options |
| 19918 |
|
| 19919 |
# Someone please show me a better way :) |
| 19920 |
#A=`eval echo ${prefix}` ; A=`eval echo ${A}` |
| 19921 |
#B=`eval echo ${bindir}` ; B=`eval echo ${B}` |
| 19922 |
#C=`eval echo ${sbindir}` ; C=`eval echo ${C}` |
| 19923 |
#D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` |
| 19924 |
#E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` |
| 19925 |
#F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` |
| 19926 |
#G=`eval echo ${piddir}` ; G=`eval echo ${G}` |
| 19927 |
#H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` |
| 19928 |
#I=`eval echo ${user_path}` ; I=`eval echo ${I}` |
| 19929 |
#J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` |
| 19930 |
# |
| 19931 |
#echo "" |
| 19932 |
#echo "OpenSSH has been configured with the following options:" |
| 19933 |
#echo " User binaries: $B" |
| 19934 |
#echo " System binaries: $C" |
| 19935 |
#echo " Configuration files: $D" |
| 19936 |
#echo " Askpass program: $E" |
| 19937 |
#echo " Manual pages: $F" |
| 19938 |
#echo " PID file: $G" |
| 19939 |
#echo " Privilege separation chroot path: $H" |
| 19940 |
#if test "x$external_path_file" = "x/etc/login.conf" ; then |
| 19941 |
#echo " At runtime, sshd will use the path defined in $external_path_file" |
| 19942 |
#echo " Make sure the path to scp is present, otherwise scp will not work" |
| 19943 |
#else |
| 19944 |
#echo " sshd default user PATH: $I" |
| 19945 |
# if test ! -z "$external_path_file"; then |
| 19946 |
#echo " (If PATH is set in $external_path_file it will be used instead. If" |
| 19947 |
#echo " used, ensure the path to scp is present, otherwise scp will not work.)" |
| 19948 |
# fi |
| 19949 |
#fi |
| 19950 |
#if test ! -z "$superuser_path" ; then |
| 19951 |
#echo " sshd superuser user PATH: $J" |
| 19952 |
#fi |
| 19953 |
#echo " Manpage format: $MANTYPE" |
| 19954 |
#echo " PAM support: $PAM_MSG" |
| 19955 |
#echo " OSF SIA support: $SIA_MSG" |
| 19956 |
#echo " KerberosV support: $KRB5_MSG" |
| 19957 |
#echo " SELinux support: $SELINUX_MSG" |
| 19958 |
#echo " Smartcard support: $SCARD_MSG" |
| 19959 |
#echo " S/KEY support: $SKEY_MSG" |
| 19960 |
#echo " MD5 password support: $MD5_MSG" |
| 19961 |
#echo " libedit support: $LIBEDIT_MSG" |
| 19962 |
#echo " Solaris process contract support: $SPC_MSG" |
| 19963 |
#echo " Solaris project support: $SP_MSG" |
| 19964 |
#echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" |
| 19965 |
#echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" |
| 19966 |
#echo " BSD Auth support: $BSD_AUTH_MSG" |
| 19967 |
#echo " Random number source: $RAND_MSG" |
| 19968 |
#echo " Privsep sandbox style: $SANDBOX_STYLE" |
| 19969 |
# |
| 19970 |
#echo "" |
| 19971 |
# |
| 19972 |
#echo " Host: ${host}" |
| 19973 |
#echo " Compiler: ${CC}" |
| 19974 |
#echo " Compiler flags: ${CFLAGS}" |
| 19975 |
#echo "Preprocessor flags: ${CPPFLAGS}" |
| 19976 |
#echo " Linker flags: ${LDFLAGS}" |
| 19977 |
#echo " Libraries: ${LIBS}" |
| 19978 |
#if test ! -z "${SSHDLIBS}"; then |
| 19979 |
#echo " +for sshd: ${SSHDLIBS}" |
| 19980 |
#fi |
| 19981 |
#if test ! -z "${SSHLIBS}"; then |
| 19982 |
#echo " +for ssh: ${SSHLIBS}" |
| 19983 |
#fi |
| 19984 |
# |
| 19985 |
#echo "" |
| 19986 |
# |
| 19987 |
#if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then |
| 19988 |
# echo "SVR4 style packages are supported with \"make package\"" |
| 19989 |
# echo "" |
| 19990 |
#fi |
| 19991 |
# |
| 19992 |
#if test "x$PAM_MSG" = "xyes" ; then |
| 19993 |
# echo "PAM is enabled. You may need to install a PAM control file " |
| 19994 |
# echo "for sshd, otherwise password authentication may fail. " |
| 19995 |
# echo "Example PAM control files can be found in the contrib/ " |
| 19996 |
# echo "subdirectory" |
| 19997 |
# echo "" |
| 19998 |
#fi |
| 19999 |
# |
| 20000 |
#if test ! -z "$NO_PEERCHECK" ; then |
| 20001 |
# echo "WARNING: the operating system that you are using does not" |
| 20002 |
# echo "appear to support getpeereid(), getpeerucred() or the" |
| 20003 |
# echo "SO_PEERCRED getsockopt() option. These facilities are used to" |
| 20004 |
# echo "enforce security checks to prevent unauthorised connections to" |
| 20005 |
# echo "ssh-agent. Their absence increases the risk that a malicious" |
| 20006 |
# echo "user can connect to your agent." |
| 20007 |
# echo "" |
| 20008 |
#fi |
| 20009 |
# |
| 20010 |
#if test "$AUDIT_MODULE" = "bsm" ; then |
| 20011 |
# echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." |
| 20012 |
# echo "See the Solaris section in README.platform for details." |
| 20013 |
#fi |