1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.59. 4 # 5 # Copyright (C) 2003 Free Software Foundation, Inc. 6 # This configure script is free software; the Free Software Foundation 7 # gives unlimited permission to copy, distribute and modify it. 8 ## --------------------- ## 9 ## M4sh Initialization. ## 10 ## --------------------- ## 11 12 # Be Bourne compatible 13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21 fi 22 DUALCASE=1; export DUALCASE # for MKS sh 23 24 # Support unset when possible. 25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27 else 28 as_unset=false 29 fi 30 31 32 # Work around bugs in pre-3.0 UWIN ksh. 33 $as_unset ENV MAIL MAILPATH 34 PS1='$ ' 35 PS2='> ' 36 PS4='+ ' 37 38 # NLS nuisances. 39 for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43 do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49 done 50 51 # Required to use basename. 52 if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54 else 55 as_expr=false 56 fi 57 58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60 else 61 as_basename=false 62 fi 63 64 65 # Name of the executable. 66 as_me=`$as_basename "$0" || 67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71 echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78 # PATH needs CR, and LINENO needs CR and PATH. 79 # Avoid depending upon Character Ranges. 80 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83 as_cr_digits='0123456789' 84 as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86 # The user is always right. 87 if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97 fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110 for as_dir in $PATH 111 do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115 done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132 do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152 done 153 ;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184 } 185 186 187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189 ' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192 esac 193 194 if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196 else 197 as_expr=false 198 fi 199 200 rm -f conf$$ conf$$.exe conf$$.file 201 echo >conf$$.file 202 if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211 elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213 else 214 as_ln_s='cp -p' 215 fi 216 rm -f conf$$ conf$$.exe conf$$.file 217 218 if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220 else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223 fi 224 225 as_executable_p="test -f" 226 227 # Sed expression to map a string onto a valid CPP name. 228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230 # Sed expression to map a string onto a valid variable name. 231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234 # IFS 235 # We need space, tab and new line, in precisely that order. 236 as_nl=' 237 ' 238 IFS=" $as_nl" 239 240 # CDPATH. 241 $as_unset CDPATH 242 243 244 # Name of the host. 245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 246 # so uname gets run too. 247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 249 exec 6>&1 250 251 # 252 # Initializations. 253 # 254 ac_default_prefix=/usr/local 255 ac_config_libobj_dir=. 256 cross_compiling=no 257 subdirs= 258 MFLAGS= 259 MAKEFLAGS= 260 SHELL=${CONFIG_SHELL-/bin/sh} 261 262 # Maximum number of lines to put in a shell here document. 263 # This variable seems obsolete. It should probably be removed, and 264 # only ac_max_sed_lines should be used. 265 : ${ac_max_here_lines=38} 266 267 # Identity of this package. 268 PACKAGE_NAME= 269 PACKAGE_TARNAME= 270 PACKAGE_VERSION= 271 PACKAGE_STRING= 272 PACKAGE_BUGREPORT= 273 274 ac_unique_file="buffer.c" 275 # Factoring default headers for most tests. 276 ac_includes_default="\ 277 #include <stdio.h> 278 #if HAVE_SYS_TYPES_H 279 # include <sys/types.h> 280 #endif 281 #if HAVE_SYS_STAT_H 282 # include <sys/stat.h> 283 #endif 284 #if STDC_HEADERS 285 # include <stdlib.h> 286 # include <stddef.h> 287 #else 288 # if HAVE_STDLIB_H 289 # include <stdlib.h> 290 # endif 291 #endif 292 #if HAVE_STRING_H 293 # if !STDC_HEADERS && HAVE_MEMORY_H 294 # include <memory.h> 295 # endif 296 # include <string.h> 297 #endif 298 #if HAVE_STRINGS_H 299 # include <strings.h> 300 #endif 301 #if HAVE_INTTYPES_H 302 # include <inttypes.h> 303 #else 304 # if HAVE_STDINT_H 305 # include <stdint.h> 306 # endif 307 #endif 308 #if HAVE_UNISTD_H 309 # include <unistd.h> 310 #endif" 311 312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SET_MAKE LD build build_cpu build_vendor build_os host host_cpu host_vendor host_os AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP INSTALL ac_ct_INSTALL CPP EGREP LIBOBJS LTLIBOBJS' 313 ac_subst_files='' 314 315 # Initialize some variables set by options. 316 ac_init_help= 317 ac_init_version=false 318 # The variables have the same names as the options, with 319 # dashes changed to underlines. 320 cache_file=/dev/null 321 exec_prefix=NONE 322 no_create= 323 no_recursion= 324 prefix=NONE 325 program_prefix=NONE 326 program_suffix=NONE 327 program_transform_name=s,x,x, 328 silent= 329 site= 330 srcdir= 331 verbose= 332 x_includes=NONE 333 x_libraries=NONE 334 335 # Installation directory options. 336 # These are left unexpanded so users can "make install exec_prefix=/foo" 337 # and all the variables that are supposed to be based on exec_prefix 338 # by default will actually change. 339 # Use braces instead of parens because sh, perl, etc. also accept them. 340 bindir='${exec_prefix}/bin' 341 sbindir='${exec_prefix}/sbin' 342 libexecdir='${exec_prefix}/libexec' 343 datadir='${prefix}/share' 344 sysconfdir='${prefix}/etc' 345 sharedstatedir='${prefix}/com' 346 localstatedir='${prefix}/var' 347 libdir='${exec_prefix}/lib' 348 includedir='${prefix}/include' 349 oldincludedir='/usr/include' 350 infodir='${prefix}/info' 351 mandir='${prefix}/man' 352 353 ac_prev= 354 for ac_option 355 do 356 # If the previous option needs an argument, assign it. 357 if test -n "$ac_prev"; then 358 eval "$ac_prev=\$ac_option" 359 ac_prev= 360 continue 361 fi 362 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 364 365 # Accept the important Cygnus configure options, so we can diagnose typos. 366 367 case $ac_option in 368 369 -bindir | --bindir | --bindi | --bind | --bin | --bi) 370 ac_prev=bindir ;; 371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 372 bindir=$ac_optarg ;; 373 374 -build | --build | --buil | --bui | --bu) 375 ac_prev=build_alias ;; 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 377 build_alias=$ac_optarg ;; 378 379 -cache-file | --cache-file | --cache-fil | --cache-fi \ 380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 381 ac_prev=cache_file ;; 382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 384 cache_file=$ac_optarg ;; 385 386 --config-cache | -C) 387 cache_file=config.cache ;; 388 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 390 ac_prev=datadir ;; 391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 392 | --da=*) 393 datadir=$ac_optarg ;; 394 395 -disable-* | --disable-*) 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 397 # Reject names that are not valid shell variable names. 398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 400 { (exit 1); exit 1; }; } 401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 402 eval "enable_$ac_feature=no" ;; 403 404 -enable-* | --enable-*) 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 406 # Reject names that are not valid shell variable names. 407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 409 { (exit 1); exit 1; }; } 410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 411 case $ac_option in 412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 413 *) ac_optarg=yes ;; 414 esac 415 eval "enable_$ac_feature='$ac_optarg'" ;; 416 417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 419 | --exec | --exe | --ex) 420 ac_prev=exec_prefix ;; 421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 423 | --exec=* | --exe=* | --ex=*) 424 exec_prefix=$ac_optarg ;; 425 426 -gas | --gas | --ga | --g) 427 # Obsolete; use --with-gas. 428 with_gas=yes ;; 429 430 -help | --help | --hel | --he | -h) 431 ac_init_help=long ;; 432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 433 ac_init_help=recursive ;; 434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 435 ac_init_help=short ;; 436 437 -host | --host | --hos | --ho) 438 ac_prev=host_alias ;; 439 -host=* | --host=* | --hos=* | --ho=*) 440 host_alias=$ac_optarg ;; 441 442 -includedir | --includedir | --includedi | --included | --include \ 443 | --includ | --inclu | --incl | --inc) 444 ac_prev=includedir ;; 445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 446 | --includ=* | --inclu=* | --incl=* | --inc=*) 447 includedir=$ac_optarg ;; 448 449 -infodir | --infodir | --infodi | --infod | --info | --inf) 450 ac_prev=infodir ;; 451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 452 infodir=$ac_optarg ;; 453 454 -libdir | --libdir | --libdi | --libd) 455 ac_prev=libdir ;; 456 -libdir=* | --libdir=* | --libdi=* | --libd=*) 457 libdir=$ac_optarg ;; 458 459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 460 | --libexe | --libex | --libe) 461 ac_prev=libexecdir ;; 462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 463 | --libexe=* | --libex=* | --libe=*) 464 libexecdir=$ac_optarg ;; 465 466 -localstatedir | --localstatedir | --localstatedi | --localstated \ 467 | --localstate | --localstat | --localsta | --localst \ 468 | --locals | --local | --loca | --loc | --lo) 469 ac_prev=localstatedir ;; 470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 473 localstatedir=$ac_optarg ;; 474 475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 476 ac_prev=mandir ;; 477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 478 mandir=$ac_optarg ;; 479 480 -nfp | --nfp | --nf) 481 # Obsolete; use --without-fp. 482 with_fp=no ;; 483 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 485 | --no-cr | --no-c | -n) 486 no_create=yes ;; 487 488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 490 no_recursion=yes ;; 491 492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 494 | --oldin | --oldi | --old | --ol | --o) 495 ac_prev=oldincludedir ;; 496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 499 oldincludedir=$ac_optarg ;; 500 501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 502 ac_prev=prefix ;; 503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 504 prefix=$ac_optarg ;; 505 506 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 507 | --program-pre | --program-pr | --program-p) 508 ac_prev=program_prefix ;; 509 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 511 program_prefix=$ac_optarg ;; 512 513 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 514 | --program-suf | --program-su | --program-s) 515 ac_prev=program_suffix ;; 516 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 518 program_suffix=$ac_optarg ;; 519 520 -program-transform-name | --program-transform-name \ 521 | --program-transform-nam | --program-transform-na \ 522 | --program-transform-n | --program-transform- \ 523 | --program-transform | --program-transfor \ 524 | --program-transfo | --program-transf \ 525 | --program-trans | --program-tran \ 526 | --progr-tra | --program-tr | --program-t) 527 ac_prev=program_transform_name ;; 528 -program-transform-name=* | --program-transform-name=* \ 529 | --program-transform-nam=* | --program-transform-na=* \ 530 | --program-transform-n=* | --program-transform-=* \ 531 | --program-transform=* | --program-transfor=* \ 532 | --program-transfo=* | --program-transf=* \ 533 | --program-trans=* | --program-tran=* \ 534 | --progr-tra=* | --program-tr=* | --program-t=*) 535 program_transform_name=$ac_optarg ;; 536 537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 538 | -silent | --silent | --silen | --sile | --sil) 539 silent=yes ;; 540 541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 542 ac_prev=sbindir ;; 543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 544 | --sbi=* | --sb=*) 545 sbindir=$ac_optarg ;; 546 547 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 549 | --sharedst | --shareds | --shared | --share | --shar \ 550 | --sha | --sh) 551 ac_prev=sharedstatedir ;; 552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 555 | --sha=* | --sh=*) 556 sharedstatedir=$ac_optarg ;; 557 558 -site | --site | --sit) 559 ac_prev=site ;; 560 -site=* | --site=* | --sit=*) 561 site=$ac_optarg ;; 562 563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 564 ac_prev=srcdir ;; 565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 566 srcdir=$ac_optarg ;; 567 568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 569 | --syscon | --sysco | --sysc | --sys | --sy) 570 ac_prev=sysconfdir ;; 571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 573 sysconfdir=$ac_optarg ;; 574 575 -target | --target | --targe | --targ | --tar | --ta | --t) 576 ac_prev=target_alias ;; 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 578 target_alias=$ac_optarg ;; 579 580 -v | -verbose | --verbose | --verbos | --verbo | --verb) 581 verbose=yes ;; 582 583 -version | --version | --versio | --versi | --vers | -V) 584 ac_init_version=: ;; 585 586 -with-* | --with-*) 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 588 # Reject names that are not valid shell variable names. 589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 591 { (exit 1); exit 1; }; } 592 ac_package=`echo $ac_package| sed 's/-/_/g'` 593 case $ac_option in 594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 595 *) ac_optarg=yes ;; 596 esac 597 eval "with_$ac_package='$ac_optarg'" ;; 598 599 -without-* | --without-*) 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 601 # Reject names that are not valid shell variable names. 602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 604 { (exit 1); exit 1; }; } 605 ac_package=`echo $ac_package | sed 's/-/_/g'` 606 eval "with_$ac_package=no" ;; 607 608 --x) 609 # Obsolete; use --with-x. 610 with_x=yes ;; 611 612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 613 | --x-incl | --x-inc | --x-in | --x-i) 614 ac_prev=x_includes ;; 615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 617 x_includes=$ac_optarg ;; 618 619 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 621 ac_prev=x_libraries ;; 622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 624 x_libraries=$ac_optarg ;; 625 626 -*) { echo "$as_me: error: unrecognized option: $ac_option 627 Try \`$0 --help' for more information." >&2 628 { (exit 1); exit 1; }; } 629 ;; 630 631 *=*) 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 633 # Reject names that are not valid shell variable names. 634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 636 { (exit 1); exit 1; }; } 637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 638 eval "$ac_envvar='$ac_optarg'" 639 export $ac_envvar ;; 640 641 *) 642 # FIXME: should be removed in autoconf 3.0. 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 647 ;; 648 649 esac 650 done 651 652 if test -n "$ac_prev"; then 653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 654 { echo "$as_me: error: missing argument to $ac_option" >&2 655 { (exit 1); exit 1; }; } 656 fi 657 658 # Be sure to have absolute paths. 659 for ac_var in exec_prefix prefix 660 do 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 666 esac 667 done 668 669 # Be sure to have absolute paths. 670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672 do 673 eval ac_val=$`echo $ac_var` 674 case $ac_val in 675 [\\/$]* | ?:[\\/]* ) ;; 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 677 { (exit 1); exit 1; }; };; 678 esac 679 done 680 681 # There might be people who depend on the old broken behavior: `$host' 682 # used to hold the argument of --host etc. 683 # FIXME: To remove some day. 684 build=$build_alias 685 host=$host_alias 686 target=$target_alias 687 688 # FIXME: To remove some day. 689 if test "x$host_alias" != x; then 690 if test "x$build_alias" = x; then 691 cross_compiling=maybe 692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 693 If a cross compiler is detected then cross compile mode will be used." >&2 694 elif test "x$build_alias" != "x$host_alias"; then 695 cross_compiling=yes 696 fi 697 fi 698 699 ac_tool_prefix= 700 test -n "$host_alias" && ac_tool_prefix=$host_alias- 701 702 test "$silent" = yes && exec 6>/dev/null 703 704 705 # Find the source files, if location was not specified. 706 if test -z "$srcdir"; then 707 ac_srcdir_defaulted=yes 708 # Try the directory containing this script, then its parent. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715 echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 721 srcdir=$ac_confdir 722 if test ! -r $srcdir/$ac_unique_file; then 723 srcdir=.. 724 fi 725 else 726 ac_srcdir_defaulted=no 727 fi 728 if test ! -r $srcdir/$ac_unique_file; then 729 if test "$ac_srcdir_defaulted" = yes; then 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731 { (exit 1); exit 1; }; } 732 else 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734 { (exit 1); exit 1; }; } 735 fi 736 fi 737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741 ac_env_build_alias_set=${build_alias+set} 742 ac_env_build_alias_value=$build_alias 743 ac_cv_env_build_alias_set=${build_alias+set} 744 ac_cv_env_build_alias_value=$build_alias 745 ac_env_host_alias_set=${host_alias+set} 746 ac_env_host_alias_value=$host_alias 747 ac_cv_env_host_alias_set=${host_alias+set} 748 ac_cv_env_host_alias_value=$host_alias 749 ac_env_target_alias_set=${target_alias+set} 750 ac_env_target_alias_value=$target_alias 751 ac_cv_env_target_alias_set=${target_alias+set} 752 ac_cv_env_target_alias_value=$target_alias 753 ac_env_CC_set=${CC+set} 754 ac_env_CC_value=$CC 755 ac_cv_env_CC_set=${CC+set} 756 ac_cv_env_CC_value=$CC 757 ac_env_CFLAGS_set=${CFLAGS+set} 758 ac_env_CFLAGS_value=$CFLAGS 759 ac_cv_env_CFLAGS_set=${CFLAGS+set} 760 ac_cv_env_CFLAGS_value=$CFLAGS 761 ac_env_LDFLAGS_set=${LDFLAGS+set} 762 ac_env_LDFLAGS_value=$LDFLAGS 763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764 ac_cv_env_LDFLAGS_value=$LDFLAGS 765 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766 ac_env_CPPFLAGS_value=$CPPFLAGS 767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769 ac_env_CPP_set=${CPP+set} 770 ac_env_CPP_value=$CPP 771 ac_cv_env_CPP_set=${CPP+set} 772 ac_cv_env_CPP_value=$CPP 773 774 # 775 # Report the --help message. 776 # 777 if test "$ac_init_help" = "long"; then 778 # Omit some internal or obsolete options to make the list less imposing. 779 # This message is too long to be a string in the A/UX 3.1 sh. 780 cat <<_ACEOF 781 \`configure' configures this package to adapt to many kinds of systems. 782 783 Usage: $0 [OPTION]... [VAR=VALUE]... 784 785 To assign environment variables (e.g., CC, CFLAGS...), specify them as 786 VAR=VALUE. See below for descriptions of some of the useful variables. 787 788 Defaults for the options are specified in brackets. 789 790 Configuration: 791 -h, --help display this help and exit 792 --help=short display options specific to this package 793 --help=recursive display the short help of all the included packages 794 -V, --version display version information and exit 795 -q, --quiet, --silent do not print \`checking...' messages 796 --cache-file=FILE cache test results in FILE [disabled] 797 -C, --config-cache alias for \`--cache-file=config.cache' 798 -n, --no-create do not create output files 799 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 800 801 _ACEOF 802 803 cat <<_ACEOF 804 Installation directories: 805 --prefix=PREFIX install architecture-independent files in PREFIX 806 [$ac_default_prefix] 807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 808 [PREFIX] 809 810 By default, \`make install' will install all the files in 811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 812 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 813 for instance \`--prefix=\$HOME'. 814 815 For better control, use the options below. 816 817 Fine tuning of the installation directories: 818 --bindir=DIR user executables [EPREFIX/bin] 819 --sbindir=DIR system admin executables [EPREFIX/sbin] 820 --libexecdir=DIR program executables [EPREFIX/libexec] 821 --datadir=DIR read-only architecture-independent data [PREFIX/share] 822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 824 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 825 --libdir=DIR object code libraries [EPREFIX/lib] 826 --includedir=DIR C header files [PREFIX/include] 827 --oldincludedir=DIR C header files for non-gcc [/usr/include] 828 --infodir=DIR info documentation [PREFIX/info] 829 --mandir=DIR man documentation [PREFIX/man] 830 _ACEOF 831 832 cat <<\_ACEOF 833 834 System types: 835 --build=BUILD configure for building on BUILD [guessed] 836 --host=HOST cross-compile to build programs to run on HOST [BUILD] 837 _ACEOF 838 fi 839 840 if test -n "$ac_init_help"; then 841 842 cat <<\_ACEOF 843 844 Optional Features: 845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 847 --disable-largefile omit support for large files 848 --disable-zlib Don't include zlib support 849 --enable-pam Try to include PAM support 850 --disable-openpty Don't use openpty, use alternative method 851 --disable-syslog Don't include syslog support 852 --disable-shadow Don't use shadow passwords (if available) 853 --disable-lastlog Disable use of lastlog even if detected no 854 --disable-utmp Disable use of utmp even if detected no 855 --disable-utmpx Disable use of utmpx even if detected no 856 --disable-wtmp Disable use of wtmp even if detected no 857 --disable-wtmpx Disable use of wtmpx even if detected no 858 --disable-loginfunc Disable use of login() etc. no 859 --disable-pututline Disable use of pututline() etc. (uwtmp) no 860 --disable-pututxline Disable use of pututxline() etc. (uwtmpx) no 861 862 Optional Packages: 863 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 864 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 865 --with-zlib=PATH Use zlib in PATH 866 --with-pam=PATH Use pam in PATH 867 --with-lastlog=FILE|DIR specify lastlog location common locations 868 869 Some influential environment variables: 870 CC C compiler command 871 CFLAGS C compiler flags 872 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 873 nonstandard directory <lib dir> 874 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 875 headers in a nonstandard directory <include dir> 876 CPP C preprocessor 877 878 Use these variables to override the choices made by `configure' or to help 879 it to find libraries and programs with nonstandard names/locations. 880 881 _ACEOF 882 fi 883 884 if test "$ac_init_help" = "recursive"; then 885 # If there are subdirs, report their specific --help. 886 ac_popdir=`pwd` 887 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 888 test -d $ac_dir || continue 889 ac_builddir=. 890 891 if test "$ac_dir" != .; then 892 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 893 # A "../" for each directory in $ac_dir_suffix. 894 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 895 else 896 ac_dir_suffix= ac_top_builddir= 897 fi 898 899 case $srcdir in 900 .) # No --srcdir option. We are building in place. 901 ac_srcdir=. 902 if test -z "$ac_top_builddir"; then 903 ac_top_srcdir=. 904 else 905 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 906 fi ;; 907 [\\/]* | ?:[\\/]* ) # Absolute path. 908 ac_srcdir=$srcdir$ac_dir_suffix; 909 ac_top_srcdir=$srcdir ;; 910 *) # Relative path. 911 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 912 ac_top_srcdir=$ac_top_builddir$srcdir ;; 913 esac 914 915 # Do not use `cd foo && pwd` to compute absolute paths, because 916 # the directories may not exist. 917 case `pwd` in 918 .) ac_abs_builddir="$ac_dir";; 919 *) 920 case "$ac_dir" in 921 .) ac_abs_builddir=`pwd`;; 922 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 923 *) ac_abs_builddir=`pwd`/"$ac_dir";; 924 esac;; 925 esac 926 case $ac_abs_builddir in 927 .) ac_abs_top_builddir=${ac_top_builddir}.;; 928 *) 929 case ${ac_top_builddir}. in 930 .) ac_abs_top_builddir=$ac_abs_builddir;; 931 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 932 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 933 esac;; 934 esac 935 case $ac_abs_builddir in 936 .) ac_abs_srcdir=$ac_srcdir;; 937 *) 938 case $ac_srcdir in 939 .) ac_abs_srcdir=$ac_abs_builddir;; 940 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 941 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 942 esac;; 943 esac 944 case $ac_abs_builddir in 945 .) ac_abs_top_srcdir=$ac_top_srcdir;; 946 *) 947 case $ac_top_srcdir in 948 .) ac_abs_top_srcdir=$ac_abs_builddir;; 949 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 950 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 951 esac;; 952 esac 953 954 cd $ac_dir 955 # Check for guested configure; otherwise get Cygnus style configure. 956 if test -f $ac_srcdir/configure.gnu; then 957 echo 958 $SHELL $ac_srcdir/configure.gnu --help=recursive 959 elif test -f $ac_srcdir/configure; then 960 echo 961 $SHELL $ac_srcdir/configure --help=recursive 962 elif test -f $ac_srcdir/configure.ac || 963 test -f $ac_srcdir/configure.in; then 964 echo 965 $ac_configure --help 966 else 967 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 968 fi 969 cd $ac_popdir 970 done 971 fi 972 973 test -n "$ac_init_help" && exit 0 974 if $ac_init_version; then 975 cat <<\_ACEOF 976 977 Copyright (C) 2003 Free Software Foundation, Inc. 978 This configure script is free software; the Free Software Foundation 979 gives unlimited permission to copy, distribute and modify it. 980 _ACEOF 981 exit 0 982 fi 983 exec 5>config.log 984 cat >&5 <<_ACEOF 985 This file contains any messages produced by compilers while 986 running configure, to aid debugging if configure makes a mistake. 987 988 It was created by $as_me, which was 989 generated by GNU Autoconf 2.59. Invocation command line was 990 991 $ $0 $@ 992 993 _ACEOF 994 { 995 cat <<_ASUNAME 996 ## --------- ## 997 ## Platform. ## 998 ## --------- ## 999 1000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1001 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1002 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1003 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1004 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1005 1006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1007 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1008 1009 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1010 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1012 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1013 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1014 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1015 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1016 1017 _ASUNAME 1018 1019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1020 for as_dir in $PATH 1021 do 1022 IFS=$as_save_IFS 1023 test -z "$as_dir" && as_dir=. 1024 echo "PATH: $as_dir" 1025 done 1026 1027 } >&5 1028 1029 cat >&5 <<_ACEOF 1030 1031 1032 ## ----------- ## 1033 ## Core tests. ## 1034 ## ----------- ## 1035 1036 _ACEOF 1037 1038 1039 # Keep a trace of the command line. 1040 # Strip out --no-create and --no-recursion so they do not pile up. 1041 # Strip out --silent because we don't want to record it for future runs. 1042 # Also quote any args containing shell meta-characters. 1043 # Make two passes to allow for proper duplicate-argument suppression. 1044 ac_configure_args= 1045 ac_configure_args0= 1046 ac_configure_args1= 1047 ac_sep= 1048 ac_must_keep_next=false 1049 for ac_pass in 1 2 1050 do 1051 for ac_arg 1052 do 1053 case $ac_arg in 1054 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1056 | -silent | --silent | --silen | --sile | --sil) 1057 continue ;; 1058 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1059 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1060 esac 1061 case $ac_pass in 1062 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1063 2) 1064 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1065 if test $ac_must_keep_next = true; then 1066 ac_must_keep_next=false # Got value, back to normal. 1067 else 1068 case $ac_arg in 1069 *=* | --config-cache | -C | -disable-* | --disable-* \ 1070 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1071 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1072 | -with-* | --with-* | -without-* | --without-* | --x) 1073 case "$ac_configure_args0 " in 1074 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1075 esac 1076 ;; 1077 -* ) ac_must_keep_next=true ;; 1078 esac 1079 fi 1080 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1081 # Get rid of the leading space. 1082 ac_sep=" " 1083 ;; 1084 esac 1085 done 1086 done 1087 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1088 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1089 1090 # When interrupted or exit'd, cleanup temporary files, and complete 1091 # config.log. We remove comments because anyway the quotes in there 1092 # would cause problems or look ugly. 1093 # WARNING: Be sure not to use single quotes in there, as some shells, 1094 # such as our DU 5.0 friend, will then `close' the trap. 1095 trap 'exit_status=$? 1096 # Save into config.log some information that might help in debugging. 1097 { 1098 echo 1099 1100 cat <<\_ASBOX 1101 ## ---------------- ## 1102 ## Cache variables. ## 1103 ## ---------------- ## 1104 _ASBOX 1105 echo 1106 # The following way of writing the cache mishandles newlines in values, 1107 { 1108 (set) 2>&1 | 1109 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1110 *ac_space=\ *) 1111 sed -n \ 1112 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1114 ;; 1115 *) 1116 sed -n \ 1117 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1118 ;; 1119 esac; 1120 } 1121 echo 1122 1123 cat <<\_ASBOX 1124 ## ----------------- ## 1125 ## Output variables. ## 1126 ## ----------------- ## 1127 _ASBOX 1128 echo 1129 for ac_var in $ac_subst_vars 1130 do 1131 eval ac_val=$`echo $ac_var` 1132 echo "$ac_var='"'"'$ac_val'"'"'" 1133 done | sort 1134 echo 1135 1136 if test -n "$ac_subst_files"; then 1137 cat <<\_ASBOX 1138 ## ------------- ## 1139 ## Output files. ## 1140 ## ------------- ## 1141 _ASBOX 1142 echo 1143 for ac_var in $ac_subst_files 1144 do 1145 eval ac_val=$`echo $ac_var` 1146 echo "$ac_var='"'"'$ac_val'"'"'" 1147 done | sort 1148 echo 1149 fi 1150 1151 if test -s confdefs.h; then 1152 cat <<\_ASBOX 1153 ## ----------- ## 1154 ## confdefs.h. ## 1155 ## ----------- ## 1156 _ASBOX 1157 echo 1158 sed "/^$/d" confdefs.h | sort 1159 echo 1160 fi 1161 test "$ac_signal" != 0 && 1162 echo "$as_me: caught signal $ac_signal" 1163 echo "$as_me: exit $exit_status" 1164 } >&5 1165 rm -f core *.core && 1166 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1167 exit $exit_status 1168 ' 0 1169 for ac_signal in 1 2 13 15; do 1170 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1171 done 1172 ac_signal=0 1173 1174 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1175 rm -rf conftest* confdefs.h 1176 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1177 echo >confdefs.h 1178 1179 # Predefined preprocessor variables. 1180 1181 cat >>confdefs.h <<_ACEOF 1182 #define PACKAGE_NAME "$PACKAGE_NAME" 1183 _ACEOF 1184 1185 1186 cat >>confdefs.h <<_ACEOF 1187 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1188 _ACEOF 1189 1190 1191 cat >>confdefs.h <<_ACEOF 1192 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1193 _ACEOF 1194 1195 1196 cat >>confdefs.h <<_ACEOF 1197 #define PACKAGE_STRING "$PACKAGE_STRING" 1198 _ACEOF 1199 1200 1201 cat >>confdefs.h <<_ACEOF 1202 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1203 _ACEOF 1204 1205 1206 # Let the site file select an alternate cache file if it wants to. 1207 # Prefer explicitly selected file to automatically selected ones. 1208 if test -z "$CONFIG_SITE"; then 1209 if test "x$prefix" != xNONE; then 1210 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1211 else 1212 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1213 fi 1214 fi 1215 for ac_site_file in $CONFIG_SITE; do 1216 if test -r "$ac_site_file"; then 1217 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1218 echo "$as_me: loading site script $ac_site_file" >&6;} 1219 sed 's/^/| /' "$ac_site_file" >&5 1220 . "$ac_site_file" 1221 fi 1222 done 1223 1224 if test -r "$cache_file"; then 1225 # Some versions of bash will fail to source /dev/null (special 1226 # files actually), so we avoid doing that. 1227 if test -f "$cache_file"; then 1228 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1229 echo "$as_me: loading cache $cache_file" >&6;} 1230 case $cache_file in 1231 [\\/]* | ?:[\\/]* ) . $cache_file;; 1232 *) . ./$cache_file;; 1233 esac 1234 fi 1235 else 1236 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1237 echo "$as_me: creating cache $cache_file" >&6;} 1238 >$cache_file 1239 fi 1240 1241 # Check that the precious variables saved in the cache have kept the same 1242 # value. 1243 ac_cache_corrupted=false 1244 for ac_var in `(set) 2>&1 | 1245 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1246 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1247 eval ac_new_set=\$ac_env_${ac_var}_set 1248 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1249 eval ac_new_val="\$ac_env_${ac_var}_value" 1250 case $ac_old_set,$ac_new_set in 1251 set,) 1252 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1253 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1254 ac_cache_corrupted=: ;; 1255 ,set) 1256 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1257 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1258 ac_cache_corrupted=: ;; 1259 ,);; 1260 *) 1261 if test "x$ac_old_val" != "x$ac_new_val"; then 1262 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1263 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1264 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1265 echo "$as_me: former value: $ac_old_val" >&2;} 1266 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1267 echo "$as_me: current value: $ac_new_val" >&2;} 1268 ac_cache_corrupted=: 1269 fi;; 1270 esac 1271 # Pass precious variables to config.status. 1272 if test "$ac_new_set" = set; then 1273 case $ac_new_val in 1274 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1275 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1276 *) ac_arg=$ac_var=$ac_new_val ;; 1277 esac 1278 case " $ac_configure_args " in 1279 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1280 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1281 esac 1282 fi 1283 done 1284 if $ac_cache_corrupted; then 1285 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1286 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1287 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1288 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1289 { (exit 1); exit 1; }; } 1290 fi 1291 1292 ac_ext=c 1293 ac_cpp='$CPP $CPPFLAGS' 1294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1296 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 OLDCFLAGS=$CFLAGS 1318 # Checks for programs. 1319 ac_ext=c 1320 ac_cpp='$CPP $CPPFLAGS' 1321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1323 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1324 if test -n "$ac_tool_prefix"; then 1325 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1326 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1327 echo "$as_me:$LINENO: checking for $ac_word" >&5 1328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1329 if test "${ac_cv_prog_CC+set}" = set; then 1330 echo $ECHO_N "(cached) $ECHO_C" >&6 1331 else 1332 if test -n "$CC"; then 1333 ac_cv_prog_CC="$CC" # Let the user override the test. 1334 else 1335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1336 for as_dir in $PATH 1337 do 1338 IFS=$as_save_IFS 1339 test -z "$as_dir" && as_dir=. 1340 for ac_exec_ext in '' $ac_executable_extensions; do 1341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1342 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1344 break 2 1345 fi 1346 done 1347 done 1348 1349 fi 1350 fi 1351 CC=$ac_cv_prog_CC 1352 if test -n "$CC"; then 1353 echo "$as_me:$LINENO: result: $CC" >&5 1354 echo "${ECHO_T}$CC" >&6 1355 else 1356 echo "$as_me:$LINENO: result: no" >&5 1357 echo "${ECHO_T}no" >&6 1358 fi 1359 1360 fi 1361 if test -z "$ac_cv_prog_CC"; then 1362 ac_ct_CC=$CC 1363 # Extract the first word of "gcc", so it can be a program name with args. 1364 set dummy gcc; ac_word=$2 1365 echo "$as_me:$LINENO: checking for $ac_word" >&5 1366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1367 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1368 echo $ECHO_N "(cached) $ECHO_C" >&6 1369 else 1370 if test -n "$ac_ct_CC"; then 1371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1372 else 1373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1374 for as_dir in $PATH 1375 do 1376 IFS=$as_save_IFS 1377 test -z "$as_dir" && as_dir=. 1378 for ac_exec_ext in '' $ac_executable_extensions; do 1379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1380 ac_cv_prog_ac_ct_CC="gcc" 1381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1382 break 2 1383 fi 1384 done 1385 done 1386 1387 fi 1388 fi 1389 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1390 if test -n "$ac_ct_CC"; then 1391 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1392 echo "${ECHO_T}$ac_ct_CC" >&6 1393 else 1394 echo "$as_me:$LINENO: result: no" >&5 1395 echo "${ECHO_T}no" >&6 1396 fi 1397 1398 CC=$ac_ct_CC 1399 else 1400 CC="$ac_cv_prog_CC" 1401 fi 1402 1403 if test -z "$CC"; then 1404 if test -n "$ac_tool_prefix"; then 1405 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1406 set dummy ${ac_tool_prefix}cc; ac_word=$2 1407 echo "$as_me:$LINENO: checking for $ac_word" >&5 1408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1409 if test "${ac_cv_prog_CC+set}" = set; then 1410 echo $ECHO_N "(cached) $ECHO_C" >&6 1411 else 1412 if test -n "$CC"; then 1413 ac_cv_prog_CC="$CC" # Let the user override the test. 1414 else 1415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1416 for as_dir in $PATH 1417 do 1418 IFS=$as_save_IFS 1419 test -z "$as_dir" && as_dir=. 1420 for ac_exec_ext in '' $ac_executable_extensions; do 1421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1422 ac_cv_prog_CC="${ac_tool_prefix}cc" 1423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1424 break 2 1425 fi 1426 done 1427 done 1428 1429 fi 1430 fi 1431 CC=$ac_cv_prog_CC 1432 if test -n "$CC"; then 1433 echo "$as_me:$LINENO: result: $CC" >&5 1434 echo "${ECHO_T}$CC" >&6 1435 else 1436 echo "$as_me:$LINENO: result: no" >&5 1437 echo "${ECHO_T}no" >&6 1438 fi 1439 1440 fi 1441 if test -z "$ac_cv_prog_CC"; then 1442 ac_ct_CC=$CC 1443 # Extract the first word of "cc", so it can be a program name with args. 1444 set dummy cc; ac_word=$2 1445 echo "$as_me:$LINENO: checking for $ac_word" >&5 1446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1447 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1448 echo $ECHO_N "(cached) $ECHO_C" >&6 1449 else 1450 if test -n "$ac_ct_CC"; then 1451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1452 else 1453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1454 for as_dir in $PATH 1455 do 1456 IFS=$as_save_IFS 1457 test -z "$as_dir" && as_dir=. 1458 for ac_exec_ext in '' $ac_executable_extensions; do 1459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1460 ac_cv_prog_ac_ct_CC="cc" 1461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1462 break 2 1463 fi 1464 done 1465 done 1466 1467 fi 1468 fi 1469 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1470 if test -n "$ac_ct_CC"; then 1471 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1472 echo "${ECHO_T}$ac_ct_CC" >&6 1473 else 1474 echo "$as_me:$LINENO: result: no" >&5 1475 echo "${ECHO_T}no" >&6 1476 fi 1477 1478 CC=$ac_ct_CC 1479 else 1480 CC="$ac_cv_prog_CC" 1481 fi 1482 1483 fi 1484 if test -z "$CC"; then 1485 # Extract the first word of "cc", so it can be a program name with args. 1486 set dummy cc; ac_word=$2 1487 echo "$as_me:$LINENO: checking for $ac_word" >&5 1488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1489 if test "${ac_cv_prog_CC+set}" = set; then 1490 echo $ECHO_N "(cached) $ECHO_C" >&6 1491 else 1492 if test -n "$CC"; then 1493 ac_cv_prog_CC="$CC" # Let the user override the test. 1494 else 1495 ac_prog_rejected=no 1496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1497 for as_dir in $PATH 1498 do 1499 IFS=$as_save_IFS 1500 test -z "$as_dir" && as_dir=. 1501 for ac_exec_ext in '' $ac_executable_extensions; do 1502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1503 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1504 ac_prog_rejected=yes 1505 continue 1506 fi 1507 ac_cv_prog_CC="cc" 1508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1509 break 2 1510 fi 1511 done 1512 done 1513 1514 if test $ac_prog_rejected = yes; then 1515 # We found a bogon in the path, so make sure we never use it. 1516 set dummy $ac_cv_prog_CC 1517 shift 1518 if test $# != 0; then 1519 # We chose a different compiler from the bogus one. 1520 # However, it has the same basename, so the bogon will be chosen 1521 # first if we set CC to just the basename; use the full file name. 1522 shift 1523 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1524 fi 1525 fi 1526 fi 1527 fi 1528 CC=$ac_cv_prog_CC 1529 if test -n "$CC"; then 1530 echo "$as_me:$LINENO: result: $CC" >&5 1531 echo "${ECHO_T}$CC" >&6 1532 else 1533 echo "$as_me:$LINENO: result: no" >&5 1534 echo "${ECHO_T}no" >&6 1535 fi 1536 1537 fi 1538 if test -z "$CC"; then 1539 if test -n "$ac_tool_prefix"; then 1540 for ac_prog in cl 1541 do 1542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1543 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1544 echo "$as_me:$LINENO: checking for $ac_word" >&5 1545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1546 if test "${ac_cv_prog_CC+set}" = set; then 1547 echo $ECHO_N "(cached) $ECHO_C" >&6 1548 else 1549 if test -n "$CC"; then 1550 ac_cv_prog_CC="$CC" # Let the user override the test. 1551 else 1552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1553 for as_dir in $PATH 1554 do 1555 IFS=$as_save_IFS 1556 test -z "$as_dir" && as_dir=. 1557 for ac_exec_ext in '' $ac_executable_extensions; do 1558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1559 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1561 break 2 1562 fi 1563 done 1564 done 1565 1566 fi 1567 fi 1568 CC=$ac_cv_prog_CC 1569 if test -n "$CC"; then 1570 echo "$as_me:$LINENO: result: $CC" >&5 1571 echo "${ECHO_T}$CC" >&6 1572 else 1573 echo "$as_me:$LINENO: result: no" >&5 1574 echo "${ECHO_T}no" >&6 1575 fi 1576 1577 test -n "$CC" && break 1578 done 1579 fi 1580 if test -z "$CC"; then 1581 ac_ct_CC=$CC 1582 for ac_prog in cl 1583 do 1584 # Extract the first word of "$ac_prog", so it can be a program name with args. 1585 set dummy $ac_prog; ac_word=$2 1586 echo "$as_me:$LINENO: checking for $ac_word" >&5 1587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1589 echo $ECHO_N "(cached) $ECHO_C" >&6 1590 else 1591 if test -n "$ac_ct_CC"; then 1592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1593 else 1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1595 for as_dir in $PATH 1596 do 1597 IFS=$as_save_IFS 1598 test -z "$as_dir" && as_dir=. 1599 for ac_exec_ext in '' $ac_executable_extensions; do 1600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1601 ac_cv_prog_ac_ct_CC="$ac_prog" 1602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1603 break 2 1604 fi 1605 done 1606 done 1607 1608 fi 1609 fi 1610 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1611 if test -n "$ac_ct_CC"; then 1612 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1613 echo "${ECHO_T}$ac_ct_CC" >&6 1614 else 1615 echo "$as_me:$LINENO: result: no" >&5 1616 echo "${ECHO_T}no" >&6 1617 fi 1618 1619 test -n "$ac_ct_CC" && break 1620 done 1621 1622 CC=$ac_ct_CC 1623 fi 1624 1625 fi 1626 1627 1628 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1629 See \`config.log' for more details." >&5 1630 echo "$as_me: error: no acceptable C compiler found in \$PATH 1631 See \`config.log' for more details." >&2;} 1632 { (exit 1); exit 1; }; } 1633 1634 # Provide some information about the compiler. 1635 echo "$as_me:$LINENO:" \ 1636 "checking for C compiler version" >&5 1637 ac_compiler=`set X $ac_compile; echo $2` 1638 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1639 (eval $ac_compiler --version </dev/null >&5) 2>&5 1640 ac_status=$? 1641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1642 (exit $ac_status); } 1643 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1644 (eval $ac_compiler -v </dev/null >&5) 2>&5 1645 ac_status=$? 1646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1647 (exit $ac_status); } 1648 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1649 (eval $ac_compiler -V </dev/null >&5) 2>&5 1650 ac_status=$? 1651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1652 (exit $ac_status); } 1653 1654 cat >conftest.$ac_ext <<_ACEOF 1655 /* confdefs.h. */ 1656 _ACEOF 1657 cat confdefs.h >>conftest.$ac_ext 1658 cat >>conftest.$ac_ext <<_ACEOF 1659 /* end confdefs.h. */ 1660 1661 int 1662 main () 1663 { 1664 1665 ; 1666 return 0; 1667 } 1668 _ACEOF 1669 ac_clean_files_save=$ac_clean_files 1670 ac_clean_files="$ac_clean_files a.out a.exe b.out" 1671 # Try to create an executable without -o first, disregard a.out. 1672 # It will help us diagnose broken compilers, and finding out an intuition 1673 # of exeext. 1674 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1675 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1676 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1677 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1678 (eval $ac_link_default) 2>&5 1679 ac_status=$? 1680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1681 (exit $ac_status); }; then 1682 # Find the output, starting from the most likely. This scheme is 1683 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1684 # resort. 1685 1686 # Be careful to initialize this variable, since it used to be cached. 1687 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1688 ac_cv_exeext= 1689 # b.out is created by i960 compilers. 1690 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1691 do 1692 test -f "$ac_file" || continue 1693 case $ac_file in 1694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1695 ;; 1696 conftest.$ac_ext ) 1697 # This is the source file. 1698 ;; 1699 [ab].out ) 1700 # We found the default executable, but exeext='' is most 1701 # certainly right. 1702 break;; 1703 *.* ) 1704 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1705 # FIXME: I believe we export ac_cv_exeext for Libtool, 1706 # but it would be cool to find out if it's true. Does anybody 1707 # maintain Libtool? --akim. 1708 export ac_cv_exeext 1709 break;; 1710 * ) 1711 break;; 1712 esac 1713 done 1714 else 1715 echo "$as_me: failed program was:" >&5 1716 sed 's/^/| /' conftest.$ac_ext >&5 1717 1718 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 1719 See \`config.log' for more details." >&5 1720 echo "$as_me: error: C compiler cannot create executables 1721 See \`config.log' for more details." >&2;} 1722 { (exit 77); exit 77; }; } 1723 fi 1724 1725 ac_exeext=$ac_cv_exeext 1726 echo "$as_me:$LINENO: result: $ac_file" >&5 1727 echo "${ECHO_T}$ac_file" >&6 1728 1729 # Check the compiler produces executables we can run. If not, either 1730 # the compiler is broken, or we cross compile. 1731 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1732 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1733 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1734 # If not cross compiling, check that we can run a simple program. 1735 if test "$cross_compiling" != yes; then 1736 if { ac_try='./$ac_file' 1737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1738 (eval $ac_try) 2>&5 1739 ac_status=$? 1740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1741 (exit $ac_status); }; }; then 1742 cross_compiling=no 1743 else 1744 if test "$cross_compiling" = maybe; then 1745 cross_compiling=yes 1746 else 1747 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1748 If you meant to cross compile, use \`--host'. 1749 See \`config.log' for more details." >&5 1750 echo "$as_me: error: cannot run C compiled programs. 1751 If you meant to cross compile, use \`--host'. 1752 See \`config.log' for more details." >&2;} 1753 { (exit 1); exit 1; }; } 1754 fi 1755 fi 1756 fi 1757 echo "$as_me:$LINENO: result: yes" >&5 1758 echo "${ECHO_T}yes" >&6 1759 1760 rm -f a.out a.exe conftest$ac_cv_exeext b.out 1761 ac_clean_files=$ac_clean_files_save 1762 # Check the compiler produces executables we can run. If not, either 1763 # the compiler is broken, or we cross compile. 1764 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1765 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1766 echo "$as_me:$LINENO: result: $cross_compiling" >&5 1767 echo "${ECHO_T}$cross_compiling" >&6 1768 1769 echo "$as_me:$LINENO: checking for suffix of executables" >&5 1770 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1772 (eval $ac_link) 2>&5 1773 ac_status=$? 1774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1775 (exit $ac_status); }; then 1776 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1777 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1778 # work properly (i.e., refer to `conftest.exe'), while it won't with 1779 # `rm'. 1780 for ac_file in conftest.exe conftest conftest.*; do 1781 test -f "$ac_file" || continue 1782 case $ac_file in 1783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1784 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1785 export ac_cv_exeext 1786 break;; 1787 * ) break;; 1788 esac 1789 done 1790 else 1791 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1792 See \`config.log' for more details." >&5 1793 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1794 See \`config.log' for more details." >&2;} 1795 { (exit 1); exit 1; }; } 1796 fi 1797 1798 rm -f conftest$ac_cv_exeext 1799 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1800 echo "${ECHO_T}$ac_cv_exeext" >&6 1801 1802 rm -f conftest.$ac_ext 1803 EXEEXT=$ac_cv_exeext 1804 ac_exeext=$EXEEXT 1805 echo "$as_me:$LINENO: checking for suffix of object files" >&5 1806 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1807 if test "${ac_cv_objext+set}" = set; then 1808 echo $ECHO_N "(cached) $ECHO_C" >&6 1809 else 1810 cat >conftest.$ac_ext <<_ACEOF 1811 /* confdefs.h. */ 1812 _ACEOF 1813 cat confdefs.h >>conftest.$ac_ext 1814 cat >>conftest.$ac_ext <<_ACEOF 1815 /* end confdefs.h. */ 1816 1817 int 1818 main () 1819 { 1820 1821 ; 1822 return 0; 1823 } 1824 _ACEOF 1825 rm -f conftest.o conftest.obj 1826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1827 (eval $ac_compile) 2>&5 1828 ac_status=$? 1829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1830 (exit $ac_status); }; then 1831 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1832 case $ac_file in 1833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1834 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1835 break;; 1836 esac 1837 done 1838 else 1839 echo "$as_me: failed program was:" >&5 1840 sed 's/^/| /' conftest.$ac_ext >&5 1841 1842 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1843 See \`config.log' for more details." >&5 1844 echo "$as_me: error: cannot compute suffix of object files: cannot compile 1845 See \`config.log' for more details." >&2;} 1846 { (exit 1); exit 1; }; } 1847 fi 1848 1849 rm -f conftest.$ac_cv_objext conftest.$ac_ext 1850 fi 1851 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1852 echo "${ECHO_T}$ac_cv_objext" >&6 1853 OBJEXT=$ac_cv_objext 1854 ac_objext=$OBJEXT 1855 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1856 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1857 if test "${ac_cv_c_compiler_gnu+set}" = set; then 1858 echo $ECHO_N "(cached) $ECHO_C" >&6 1859 else 1860 cat >conftest.$ac_ext <<_ACEOF 1861 /* confdefs.h. */ 1862 _ACEOF 1863 cat confdefs.h >>conftest.$ac_ext 1864 cat >>conftest.$ac_ext <<_ACEOF 1865 /* end confdefs.h. */ 1866 1867 int 1868 main () 1869 { 1870 #ifndef __GNUC__ 1871 choke me 1872 #endif 1873 1874 ; 1875 return 0; 1876 } 1877 _ACEOF 1878 rm -f conftest.$ac_objext 1879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1880 (eval $ac_compile) 2>conftest.er1 1881 ac_status=$? 1882 grep -v '^ *+' conftest.er1 >conftest.err 1883 rm -f conftest.er1 1884 cat conftest.err >&5 1885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1886 (exit $ac_status); } && 1887 { ac_try='test -z "$ac_c_werror_flag" 1888 || test ! -s conftest.err' 1889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1890 (eval $ac_try) 2>&5 1891 ac_status=$? 1892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1893 (exit $ac_status); }; } && 1894 { ac_try='test -s conftest.$ac_objext' 1895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1896 (eval $ac_try) 2>&5 1897 ac_status=$? 1898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1899 (exit $ac_status); }; }; then 1900 ac_compiler_gnu=yes 1901 else 1902 echo "$as_me: failed program was:" >&5 1903 sed 's/^/| /' conftest.$ac_ext >&5 1904 1905 ac_compiler_gnu=no 1906 fi 1907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1908 ac_cv_c_compiler_gnu=$ac_compiler_gnu 1909 1910 fi 1911 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1912 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1913 GCC=`test $ac_compiler_gnu = yes && echo yes` 1914 ac_test_CFLAGS=${CFLAGS+set} 1915 ac_save_CFLAGS=$CFLAGS 1916 CFLAGS="-g" 1917 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1918 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1919 if test "${ac_cv_prog_cc_g+set}" = set; then 1920 echo $ECHO_N "(cached) $ECHO_C" >&6 1921 else 1922 cat >conftest.$ac_ext <<_ACEOF 1923 /* confdefs.h. */ 1924 _ACEOF 1925 cat confdefs.h >>conftest.$ac_ext 1926 cat >>conftest.$ac_ext <<_ACEOF 1927 /* end confdefs.h. */ 1928 1929 int 1930 main () 1931 { 1932 1933 ; 1934 return 0; 1935 } 1936 _ACEOF 1937 rm -f conftest.$ac_objext 1938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1939 (eval $ac_compile) 2>conftest.er1 1940 ac_status=$? 1941 grep -v '^ *+' conftest.er1 >conftest.err 1942 rm -f conftest.er1 1943 cat conftest.err >&5 1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1945 (exit $ac_status); } && 1946 { ac_try='test -z "$ac_c_werror_flag" 1947 || test ! -s conftest.err' 1948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1949 (eval $ac_try) 2>&5 1950 ac_status=$? 1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1952 (exit $ac_status); }; } && 1953 { ac_try='test -s conftest.$ac_objext' 1954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1955 (eval $ac_try) 2>&5 1956 ac_status=$? 1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1958 (exit $ac_status); }; }; then 1959 ac_cv_prog_cc_g=yes 1960 else 1961 echo "$as_me: failed program was:" >&5 1962 sed 's/^/| /' conftest.$ac_ext >&5 1963 1964 ac_cv_prog_cc_g=no 1965 fi 1966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1967 fi 1968 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 1969 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1970 if test "$ac_test_CFLAGS" = set; then 1971 CFLAGS=$ac_save_CFLAGS 1972 elif test $ac_cv_prog_cc_g = yes; then 1973 if test "$GCC" = yes; then 1974 CFLAGS="-g -O2" 1975 else 1976 CFLAGS="-g" 1977 fi 1978 else 1979 if test "$GCC" = yes; then 1980 CFLAGS="-O2" 1981 else 1982 CFLAGS= 1983 fi 1984 fi 1985 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 1986 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1987 if test "${ac_cv_prog_cc_stdc+set}" = set; then 1988 echo $ECHO_N "(cached) $ECHO_C" >&6 1989 else 1990 ac_cv_prog_cc_stdc=no 1991 ac_save_CC=$CC 1992 cat >conftest.$ac_ext <<_ACEOF 1993 /* confdefs.h. */ 1994 _ACEOF 1995 cat confdefs.h >>conftest.$ac_ext 1996 cat >>conftest.$ac_ext <<_ACEOF 1997 /* end confdefs.h. */ 1998 #include <stdarg.h> 1999 #include <stdio.h> 2000 #include <sys/types.h> 2001 #include <sys/stat.h> 2002 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2003 struct buf { int x; }; 2004 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2005 static char *e (p, i) 2006 char **p; 2007 int i; 2008 { 2009 return p[i]; 2010 } 2011 static char *f (char * (*g) (char **, int), char **p, ...) 2012 { 2013 char *s; 2014 va_list v; 2015 va_start (v,p); 2016 s = g (p, va_arg (v,int)); 2017 va_end (v); 2018 return s; 2019 } 2020 2021 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2022 function prototypes and stuff, but not '\xHH' hex character constants. 2023 These don't provoke an error unfortunately, instead are silently treated 2024 as 'x'. The following induces an error, until -std1 is added to get 2025 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2026 array size at least. It's necessary to write '\x00'==0 to get something 2027 that's true only with -std1. */ 2028 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2029 2030 int test (int i, double x); 2031 struct s1 {int (*f) (int a);}; 2032 struct s2 {int (*f) (double a);}; 2033 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2034 int argc; 2035 char **argv; 2036 int 2037 main () 2038 { 2039 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2040 ; 2041 return 0; 2042 } 2043 _ACEOF 2044 # Don't try gcc -ansi; that turns off useful extensions and 2045 # breaks some systems' header files. 2046 # AIX -qlanglvl=ansi 2047 # Ultrix and OSF/1 -std1 2048 # HP-UX 10.20 and later -Ae 2049 # HP-UX older versions -Aa -D_HPUX_SOURCE 2050 # SVR4 -Xc -D__EXTENSIONS__ 2051 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2052 do 2053 CC="$ac_save_CC $ac_arg" 2054 rm -f conftest.$ac_objext 2055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2056 (eval $ac_compile) 2>conftest.er1 2057 ac_status=$? 2058 grep -v '^ *+' conftest.er1 >conftest.err 2059 rm -f conftest.er1 2060 cat conftest.err >&5 2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2062 (exit $ac_status); } && 2063 { ac_try='test -z "$ac_c_werror_flag" 2064 || test ! -s conftest.err' 2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2066 (eval $ac_try) 2>&5 2067 ac_status=$? 2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2069 (exit $ac_status); }; } && 2070 { ac_try='test -s conftest.$ac_objext' 2071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2072 (eval $ac_try) 2>&5 2073 ac_status=$? 2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2075 (exit $ac_status); }; }; then 2076 ac_cv_prog_cc_stdc=$ac_arg 2077 break 2078 else 2079 echo "$as_me: failed program was:" >&5 2080 sed 's/^/| /' conftest.$ac_ext >&5 2081 2082 fi 2083 rm -f conftest.err conftest.$ac_objext 2084 done 2085 rm -f conftest.$ac_ext conftest.$ac_objext 2086 CC=$ac_save_CC 2087 2088 fi 2089 2090 case "x$ac_cv_prog_cc_stdc" in 2091 x|xno) 2092 echo "$as_me:$LINENO: result: none needed" >&5 2093 echo "${ECHO_T}none needed" >&6 ;; 2094 *) 2095 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2096 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2097 CC="$CC $ac_cv_prog_cc_stdc" ;; 2098 esac 2099 2100 # Some people use a C++ compiler to compile C. Since we use `exit', 2101 # in C++ we need to declare it. In case someone uses the same compiler 2102 # for both compiling C and C++ we need to have the C++ compiler decide 2103 # the declaration of exit, since it's the most demanding environment. 2104 cat >conftest.$ac_ext <<_ACEOF 2105 #ifndef __cplusplus 2106 choke me 2107 #endif 2108 _ACEOF 2109 rm -f conftest.$ac_objext 2110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2111 (eval $ac_compile) 2>conftest.er1 2112 ac_status=$? 2113 grep -v '^ *+' conftest.er1 >conftest.err 2114 rm -f conftest.er1 2115 cat conftest.err >&5 2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2117 (exit $ac_status); } && 2118 { ac_try='test -z "$ac_c_werror_flag" 2119 || test ! -s conftest.err' 2120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2121 (eval $ac_try) 2>&5 2122 ac_status=$? 2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2124 (exit $ac_status); }; } && 2125 { ac_try='test -s conftest.$ac_objext' 2126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2127 (eval $ac_try) 2>&5 2128 ac_status=$? 2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2130 (exit $ac_status); }; }; then 2131 for ac_declaration in \ 2132 '' \ 2133 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2134 'extern "C" void std::exit (int); using std::exit;' \ 2135 'extern "C" void exit (int) throw ();' \ 2136 'extern "C" void exit (int);' \ 2137 'void exit (int);' 2138 do 2139 cat >conftest.$ac_ext <<_ACEOF 2140 /* confdefs.h. */ 2141 _ACEOF 2142 cat confdefs.h >>conftest.$ac_ext 2143 cat >>conftest.$ac_ext <<_ACEOF 2144 /* end confdefs.h. */ 2145 $ac_declaration 2146 #include <stdlib.h> 2147 int 2148 main () 2149 { 2150 exit (42); 2151 ; 2152 return 0; 2153 } 2154 _ACEOF 2155 rm -f conftest.$ac_objext 2156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2157 (eval $ac_compile) 2>conftest.er1 2158 ac_status=$? 2159 grep -v '^ *+' conftest.er1 >conftest.err 2160 rm -f conftest.er1 2161 cat conftest.err >&5 2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2163 (exit $ac_status); } && 2164 { ac_try='test -z "$ac_c_werror_flag" 2165 || test ! -s conftest.err' 2166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2167 (eval $ac_try) 2>&5 2168 ac_status=$? 2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2170 (exit $ac_status); }; } && 2171 { ac_try='test -s conftest.$ac_objext' 2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2173 (eval $ac_try) 2>&5 2174 ac_status=$? 2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2176 (exit $ac_status); }; }; then 2177 : 2178 else 2179 echo "$as_me: failed program was:" >&5 2180 sed 's/^/| /' conftest.$ac_ext >&5 2181 2182 continue 2183 fi 2184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2185 cat >conftest.$ac_ext <<_ACEOF 2186 /* confdefs.h. */ 2187 _ACEOF 2188 cat confdefs.h >>conftest.$ac_ext 2189 cat >>conftest.$ac_ext <<_ACEOF 2190 /* end confdefs.h. */ 2191 $ac_declaration 2192 int 2193 main () 2194 { 2195 exit (42); 2196 ; 2197 return 0; 2198 } 2199 _ACEOF 2200 rm -f conftest.$ac_objext 2201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2202 (eval $ac_compile) 2>conftest.er1 2203 ac_status=$? 2204 grep -v '^ *+' conftest.er1 >conftest.err 2205 rm -f conftest.er1 2206 cat conftest.err >&5 2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2208 (exit $ac_status); } && 2209 { ac_try='test -z "$ac_c_werror_flag" 2210 || test ! -s conftest.err' 2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2212 (eval $ac_try) 2>&5 2213 ac_status=$? 2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2215 (exit $ac_status); }; } && 2216 { ac_try='test -s conftest.$ac_objext' 2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2218 (eval $ac_try) 2>&5 2219 ac_status=$? 2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2221 (exit $ac_status); }; }; then 2222 break 2223 else 2224 echo "$as_me: failed program was:" >&5 2225 sed 's/^/| /' conftest.$ac_ext >&5 2226 2227 fi 2228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2229 done 2230 rm -f conftest* 2231 if test -n "$ac_declaration"; then 2232 echo '#ifdef __cplusplus' >>confdefs.h 2233 echo $ac_declaration >>confdefs.h 2234 echo '#endif' >>confdefs.h 2235 fi 2236 2237 else 2238 echo "$as_me: failed program was:" >&5 2239 sed 's/^/| /' conftest.$ac_ext >&5 2240 2241 fi 2242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2243 ac_ext=c 2244 ac_cpp='$CPP $CPPFLAGS' 2245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2247 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2248 2249 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2250 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2251 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 2252 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2253 echo $ECHO_N "(cached) $ECHO_C" >&6 2254 else 2255 cat >conftest.make <<\_ACEOF 2256 all: 2257 @echo 'ac_maketemp="$(MAKE)"' 2258 _ACEOF 2259 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2260 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2261 if test -n "$ac_maketemp"; then 2262 eval ac_cv_prog_make_${ac_make}_set=yes 2263 else 2264 eval ac_cv_prog_make_${ac_make}_set=no 2265 fi 2266 rm -f conftest.make 2267 fi 2268 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2269 echo "$as_me:$LINENO: result: yes" >&5 2270 echo "${ECHO_T}yes" >&6 2271 SET_MAKE= 2272 else 2273 echo "$as_me:$LINENO: result: no" >&5 2274 echo "${ECHO_T}no" >&6 2275 SET_MAKE="MAKE=${MAKE-make}" 2276 fi 2277 2278 2279 if test -z "$LD" ; then 2280 LD=$CC 2281 fi 2282 2283 2284 if test -z "$OLDCFLAGS" && test "$GCC" = "yes"; then 2285 { echo "$as_me:$LINENO: No \$CFLAGS set... using \"-Os -W -Wall\" for GCC" >&5 2286 echo "$as_me: No \$CFLAGS set... using \"-Os -W -Wall\" for GCC" >&6;} 2287 CFLAGS="-Os -W -Wall" 2288 fi 2289 2290 # large file support is useful for scp 2291 2292 # Check whether --enable-largefile or --disable-largefile was given. 2293 if test "${enable_largefile+set}" = set; then 2294 enableval="$enable_largefile" 2295 2296 fi; 2297 if test "$enable_largefile" != no; then 2298 2299 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 2300 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 2301 if test "${ac_cv_sys_largefile_CC+set}" = set; then 2302 echo $ECHO_N "(cached) $ECHO_C" >&6 2303 else 2304 ac_cv_sys_largefile_CC=no 2305 if test "$GCC" != yes; then 2306 ac_save_CC=$CC 2307 while :; do 2308 # IRIX 6.2 and later do not support large files by default, 2309 # so use the C compiler's -n32 option if that helps. 2310 cat >conftest.$ac_ext <<_ACEOF 2311 /* confdefs.h. */ 2312 _ACEOF 2313 cat confdefs.h >>conftest.$ac_ext 2314 cat >>conftest.$ac_ext <<_ACEOF 2315 /* end confdefs.h. */ 2316 #include <sys/types.h> 2317 /* Check that off_t can represent 2**63 - 1 correctly. 2318 We can't simply define LARGE_OFF_T to be 9223372036854775807, 2319 since some C++ compilers masquerading as C compilers 2320 incorrectly reject 9223372036854775807. */ 2321 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 2322 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 2323 && LARGE_OFF_T % 2147483647 == 1) 2324 ? 1 : -1]; 2325 int 2326 main () 2327 { 2328 2329 ; 2330 return 0; 2331 } 2332 _ACEOF 2333 rm -f conftest.$ac_objext 2334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2335 (eval $ac_compile) 2>conftest.er1 2336 ac_status=$? 2337 grep -v '^ *+' conftest.er1 >conftest.err 2338 rm -f conftest.er1 2339 cat conftest.err >&5 2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2341 (exit $ac_status); } && 2342 { ac_try='test -z "$ac_c_werror_flag" 2343 || test ! -s conftest.err' 2344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2345 (eval $ac_try) 2>&5 2346 ac_status=$? 2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2348 (exit $ac_status); }; } && 2349 { ac_try='test -s conftest.$ac_objext' 2350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2351 (eval $ac_try) 2>&5 2352 ac_status=$? 2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2354 (exit $ac_status); }; }; then 2355 break 2356 else 2357 echo "$as_me: failed program was:" >&5 2358 sed 's/^/| /' conftest.$ac_ext >&5 2359 2360 fi 2361 rm -f conftest.err conftest.$ac_objext 2362 CC="$CC -n32" 2363 rm -f conftest.$ac_objext 2364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2365 (eval $ac_compile) 2>conftest.er1 2366 ac_status=$? 2367 grep -v '^ *+' conftest.er1 >conftest.err 2368 rm -f conftest.er1 2369 cat conftest.err >&5 2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2371 (exit $ac_status); } && 2372 { ac_try='test -z "$ac_c_werror_flag" 2373 || test ! -s conftest.err' 2374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2375 (eval $ac_try) 2>&5 2376 ac_status=$? 2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2378 (exit $ac_status); }; } && 2379 { ac_try='test -s conftest.$ac_objext' 2380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2381 (eval $ac_try) 2>&5 2382 ac_status=$? 2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2384 (exit $ac_status); }; }; then 2385 ac_cv_sys_largefile_CC=' -n32'; break 2386 else 2387 echo "$as_me: failed program was:" >&5 2388 sed 's/^/| /' conftest.$ac_ext >&5 2389 2390 fi 2391 rm -f conftest.err conftest.$ac_objext 2392 break 2393 done 2394 CC=$ac_save_CC 2395 rm -f conftest.$ac_ext 2396 fi 2397 fi 2398 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 2399 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 2400 if test "$ac_cv_sys_largefile_CC" != no; then 2401 CC=$CC$ac_cv_sys_largefile_CC 2402 fi 2403 2404 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 2405 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 2406 if test "${ac_cv_sys_file_offset_bits+set}" = set; then 2407 echo $ECHO_N "(cached) $ECHO_C" >&6 2408 else 2409 while :; do 2410 ac_cv_sys_file_offset_bits=no 2411 cat >conftest.$ac_ext <<_ACEOF 2412 /* confdefs.h. */ 2413 _ACEOF 2414 cat confdefs.h >>conftest.$ac_ext 2415 cat >>conftest.$ac_ext <<_ACEOF 2416 /* end confdefs.h. */ 2417 #include <sys/types.h> 2418 /* Check that off_t can represent 2**63 - 1 correctly. 2419 We can't simply define LARGE_OFF_T to be 9223372036854775807, 2420 since some C++ compilers masquerading as C compilers 2421 incorrectly reject 9223372036854775807. */ 2422 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 2423 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 2424 && LARGE_OFF_T % 2147483647 == 1) 2425 ? 1 : -1]; 2426 int 2427 main () 2428 { 2429 2430 ; 2431 return 0; 2432 } 2433 _ACEOF 2434 rm -f conftest.$ac_objext 2435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2436 (eval $ac_compile) 2>conftest.er1 2437 ac_status=$? 2438 grep -v '^ *+' conftest.er1 >conftest.err 2439 rm -f conftest.er1 2440 cat conftest.err >&5 2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2442 (exit $ac_status); } && 2443 { ac_try='test -z "$ac_c_werror_flag" 2444 || test ! -s conftest.err' 2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2446 (eval $ac_try) 2>&5 2447 ac_status=$? 2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2449 (exit $ac_status); }; } && 2450 { ac_try='test -s conftest.$ac_objext' 2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2452 (eval $ac_try) 2>&5 2453 ac_status=$? 2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2455 (exit $ac_status); }; }; then 2456 break 2457 else 2458 echo "$as_me: failed program was:" >&5 2459 sed 's/^/| /' conftest.$ac_ext >&5 2460 2461 fi 2462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2463 cat >conftest.$ac_ext <<_ACEOF 2464 /* confdefs.h. */ 2465 _ACEOF 2466 cat confdefs.h >>conftest.$ac_ext 2467 cat >>conftest.$ac_ext <<_ACEOF 2468 /* end confdefs.h. */ 2469 #define _FILE_OFFSET_BITS 64 2470 #include <sys/types.h> 2471 /* Check that off_t can represent 2**63 - 1 correctly. 2472 We can't simply define LARGE_OFF_T to be 9223372036854775807, 2473 since some C++ compilers masquerading as C compilers 2474 incorrectly reject 9223372036854775807. */ 2475 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 2476 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 2477 && LARGE_OFF_T % 2147483647 == 1) 2478 ? 1 : -1]; 2479 int 2480 main () 2481 { 2482 2483 ; 2484 return 0; 2485 } 2486 _ACEOF 2487 rm -f conftest.$ac_objext 2488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2489 (eval $ac_compile) 2>conftest.er1 2490 ac_status=$? 2491 grep -v '^ *+' conftest.er1 >conftest.err 2492 rm -f conftest.er1 2493 cat conftest.err >&5 2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2495 (exit $ac_status); } && 2496 { ac_try='test -z "$ac_c_werror_flag" 2497 || test ! -s conftest.err' 2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2499 (eval $ac_try) 2>&5 2500 ac_status=$? 2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2502 (exit $ac_status); }; } && 2503 { ac_try='test -s conftest.$ac_objext' 2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2505 (eval $ac_try) 2>&5 2506 ac_status=$? 2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2508 (exit $ac_status); }; }; then 2509 ac_cv_sys_file_offset_bits=64; break 2510 else 2511 echo "$as_me: failed program was:" >&5 2512 sed 's/^/| /' conftest.$ac_ext >&5 2513 2514 fi 2515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2516 break 2517 done 2518 fi 2519 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 2520 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 2521 if test "$ac_cv_sys_file_offset_bits" != no; then 2522 2523 cat >>confdefs.h <<_ACEOF 2524 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 2525 _ACEOF 2526 2527 fi 2528 rm -f conftest* 2529 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 2530 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 2531 if test "${ac_cv_sys_large_files+set}" = set; then 2532 echo $ECHO_N "(cached) $ECHO_C" >&6 2533 else 2534 while :; do 2535 ac_cv_sys_large_files=no 2536 cat >conftest.$ac_ext <<_ACEOF 2537 /* confdefs.h. */ 2538 _ACEOF 2539 cat confdefs.h >>conftest.$ac_ext 2540 cat >>conftest.$ac_ext <<_ACEOF 2541 /* end confdefs.h. */ 2542 #include <sys/types.h> 2543 /* Check that off_t can represent 2**63 - 1 correctly. 2544 We can't simply define LARGE_OFF_T to be 9223372036854775807, 2545 since some C++ compilers masquerading as C compilers 2546 incorrectly reject 9223372036854775807. */ 2547 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 2548 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 2549 && LARGE_OFF_T % 2147483647 == 1) 2550 ? 1 : -1]; 2551 int 2552 main () 2553 { 2554 2555 ; 2556 return 0; 2557 } 2558 _ACEOF 2559 rm -f conftest.$ac_objext 2560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2561 (eval $ac_compile) 2>conftest.er1 2562 ac_status=$? 2563 grep -v '^ *+' conftest.er1 >conftest.err 2564 rm -f conftest.er1 2565 cat conftest.err >&5 2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2567 (exit $ac_status); } && 2568 { ac_try='test -z "$ac_c_werror_flag" 2569 || test ! -s conftest.err' 2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2571 (eval $ac_try) 2>&5 2572 ac_status=$? 2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2574 (exit $ac_status); }; } && 2575 { ac_try='test -s conftest.$ac_objext' 2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2577 (eval $ac_try) 2>&5 2578 ac_status=$? 2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2580 (exit $ac_status); }; }; then 2581 break 2582 else 2583 echo "$as_me: failed program was:" >&5 2584 sed 's/^/| /' conftest.$ac_ext >&5 2585 2586 fi 2587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2588 cat >conftest.$ac_ext <<_ACEOF 2589 /* confdefs.h. */ 2590 _ACEOF 2591 cat confdefs.h >>conftest.$ac_ext 2592 cat >>conftest.$ac_ext <<_ACEOF 2593 /* end confdefs.h. */ 2594 #define _LARGE_FILES 1 2595 #include <sys/types.h> 2596 /* Check that off_t can represent 2**63 - 1 correctly. 2597 We can't simply define LARGE_OFF_T to be 9223372036854775807, 2598 since some C++ compilers masquerading as C compilers 2599 incorrectly reject 9223372036854775807. */ 2600 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 2601 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 2602 && LARGE_OFF_T % 2147483647 == 1) 2603 ? 1 : -1]; 2604 int 2605 main () 2606 { 2607 2608 ; 2609 return 0; 2610 } 2611 _ACEOF 2612 rm -f conftest.$ac_objext 2613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2614 (eval $ac_compile) 2>conftest.er1 2615 ac_status=$? 2616 grep -v '^ *+' conftest.er1 >conftest.err 2617 rm -f conftest.er1 2618 cat conftest.err >&5 2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2620 (exit $ac_status); } && 2621 { ac_try='test -z "$ac_c_werror_flag" 2622 || test ! -s conftest.err' 2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2624 (eval $ac_try) 2>&5 2625 ac_status=$? 2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2627 (exit $ac_status); }; } && 2628 { ac_try='test -s conftest.$ac_objext' 2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2630 (eval $ac_try) 2>&5 2631 ac_status=$? 2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2633 (exit $ac_status); }; }; then 2634 ac_cv_sys_large_files=1; break 2635 else 2636 echo "$as_me: failed program was:" >&5 2637 sed 's/^/| /' conftest.$ac_ext >&5 2638 2639 fi 2640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2641 break 2642 done 2643 fi 2644 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 2645 echo "${ECHO_T}$ac_cv_sys_large_files" >&6 2646 if test "$ac_cv_sys_large_files" != no; then 2647 2648 cat >>confdefs.h <<_ACEOF 2649 #define _LARGE_FILES $ac_cv_sys_large_files 2650 _ACEOF 2651 2652 fi 2653 rm -f conftest* 2654 fi 2655 2656 2657 # Host specific options 2658 # this isn't a definitive list of hosts, they are just added as required 2659 ac_aux_dir= 2660 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 2661 if test -f $ac_dir/install-sh; then 2662 ac_aux_dir=$ac_dir 2663 ac_install_sh="$ac_aux_dir/install-sh -c" 2664 break 2665 elif test -f $ac_dir/install.sh; then 2666 ac_aux_dir=$ac_dir 2667 ac_install_sh="$ac_aux_dir/install.sh -c" 2668 break 2669 elif test -f $ac_dir/shtool; then 2670 ac_aux_dir=$ac_dir 2671 ac_install_sh="$ac_aux_dir/shtool install -c" 2672 break 2673 fi 2674 done 2675 if test -z "$ac_aux_dir"; then 2676 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2677 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2678 { (exit 1); exit 1; }; } 2679 fi 2680 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2681 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2682 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2683 2684 # Make sure we can run config.sub. 2685 $ac_config_sub sun4 >/dev/null 2>&1 || 2686 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 2687 echo "$as_me: error: cannot run $ac_config_sub" >&2;} 2688 { (exit 1); exit 1; }; } 2689 2690 echo "$as_me:$LINENO: checking build system type" >&5 2691 echo $ECHO_N "checking build system type... $ECHO_C" >&6 2692 if test "${ac_cv_build+set}" = set; then 2693 echo $ECHO_N "(cached) $ECHO_C" >&6 2694 else 2695 ac_cv_build_alias=$build_alias 2696 test -z "$ac_cv_build_alias" && 2697 ac_cv_build_alias=`$ac_config_guess` 2698 test -z "$ac_cv_build_alias" && 2699 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2700 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2701 { (exit 1); exit 1; }; } 2702 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2703 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 2704 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 2705 { (exit 1); exit 1; }; } 2706 2707 fi 2708 echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2709 echo "${ECHO_T}$ac_cv_build" >&6 2710 build=$ac_cv_build 2711 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2712 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2713 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2714 2715 2716 echo "$as_me:$LINENO: checking host system type" >&5 2717 echo $ECHO_N "checking host system type... $ECHO_C" >&6 2718 if test "${ac_cv_host+set}" = set; then 2719 echo $ECHO_N "(cached) $ECHO_C" >&6 2720 else 2721 ac_cv_host_alias=$host_alias 2722 test -z "$ac_cv_host_alias" && 2723 ac_cv_host_alias=$ac_cv_build_alias 2724 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2725 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2726 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2727 { (exit 1); exit 1; }; } 2728 2729 fi 2730 echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2731 echo "${ECHO_T}$ac_cv_host" >&6 2732 host=$ac_cv_host 2733 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2734 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2735 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2736 2737 2738 2739 case "$host" in 2740 2741 *-*-linux*) 2742 no_ptmx_check=1 2743 ;; 2744 2745 *-*-solaris*) 2746 CFLAGS="$CFLAGS -I/usr/local/include" 2747 LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib" 2748 conf_lastlog_location="/var/adm/lastlog" 2749 echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 2750 echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6 2751 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` 2752 if test "$sol2ver" -ge 8; then 2753 echo "$as_me:$LINENO: result: yes" >&5 2754 echo "${ECHO_T}yes" >&6 2755 2756 cat >>confdefs.h <<\_ACEOF 2757 #define DISABLE_UTMP 2758 _ACEOF 2759 2760 2761 cat >>confdefs.h <<\_ACEOF 2762 #define DISABLE_WTMP 2763 _ACEOF 2764 2765 else 2766 echo "$as_me:$LINENO: result: no" >&5 2767 echo "${ECHO_T}no" >&6 2768 fi 2769 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 2770 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 2771 if test "${ac_cv_lib_socket_socket+set}" = set; then 2772 echo $ECHO_N "(cached) $ECHO_C" >&6 2773 else 2774 ac_check_lib_save_LIBS=$LIBS 2775 LIBS="-lsocket $LIBS" 2776 cat >conftest.$ac_ext <<_ACEOF 2777 /* confdefs.h. */ 2778 _ACEOF 2779 cat confdefs.h >>conftest.$ac_ext 2780 cat >>conftest.$ac_ext <<_ACEOF 2781 /* end confdefs.h. */ 2782 2783 /* Override any gcc2 internal prototype to avoid an error. */ 2784 #ifdef __cplusplus 2785 extern "C" 2786 #endif 2787 /* We use char because int might match the return type of a gcc2 2788 builtin and then its argument prototype would still apply. */ 2789 char socket (); 2790 int 2791 main () 2792 { 2793 socket (); 2794 ; 2795 return 0; 2796 } 2797 _ACEOF 2798 rm -f conftest.$ac_objext conftest$ac_exeext 2799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2800 (eval $ac_link) 2>conftest.er1 2801 ac_status=$? 2802 grep -v '^ *+' conftest.er1 >conftest.err 2803 rm -f conftest.er1 2804 cat conftest.err >&5 2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2806 (exit $ac_status); } && 2807 { ac_try='test -z "$ac_c_werror_flag" 2808 || test ! -s conftest.err' 2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2810 (eval $ac_try) 2>&5 2811 ac_status=$? 2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2813 (exit $ac_status); }; } && 2814 { ac_try='test -s conftest$ac_exeext' 2815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2816 (eval $ac_try) 2>&5 2817 ac_status=$? 2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2819 (exit $ac_status); }; }; then 2820 ac_cv_lib_socket_socket=yes 2821 else 2822 echo "$as_me: failed program was:" >&5 2823 sed 's/^/| /' conftest.$ac_ext >&5 2824 2825 ac_cv_lib_socket_socket=no 2826 fi 2827 rm -f conftest.err conftest.$ac_objext \ 2828 conftest$ac_exeext conftest.$ac_ext 2829 LIBS=$ac_check_lib_save_LIBS 2830 fi 2831 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 2832 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 2833 if test $ac_cv_lib_socket_socket = yes; then 2834 LIBS="$LIBS -lsocket" 2835 fi 2836 2837 echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5 2838 echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6 2839 if test "${ac_cv_lib_nsl_yp_match+set}" = set; then 2840 echo $ECHO_N "(cached) $ECHO_C" >&6 2841 else 2842 ac_check_lib_save_LIBS=$LIBS 2843 LIBS="-lnsl $LIBS" 2844 cat >conftest.$ac_ext <<_ACEOF 2845 /* confdefs.h. */ 2846 _ACEOF 2847 cat confdefs.h >>conftest.$ac_ext 2848 cat >>conftest.$ac_ext <<_ACEOF 2849 /* end confdefs.h. */ 2850 2851 /* Override any gcc2 internal prototype to avoid an error. */ 2852 #ifdef __cplusplus 2853 extern "C" 2854 #endif 2855 /* We use char because int might match the return type of a gcc2 2856 builtin and then its argument prototype would still apply. */ 2857 char yp_match (); 2858 int 2859 main () 2860 { 2861 yp_match (); 2862 ; 2863 return 0; 2864 } 2865 _ACEOF 2866 rm -f conftest.$ac_objext conftest$ac_exeext 2867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2868 (eval $ac_link) 2>conftest.er1 2869 ac_status=$? 2870 grep -v '^ *+' conftest.er1 >conftest.err 2871 rm -f conftest.er1 2872 cat conftest.err >&5 2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2874 (exit $ac_status); } && 2875 { ac_try='test -z "$ac_c_werror_flag" 2876 || test ! -s conftest.err' 2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2878 (eval $ac_try) 2>&5 2879 ac_status=$? 2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2881 (exit $ac_status); }; } && 2882 { ac_try='test -s conftest$ac_exeext' 2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2884 (eval $ac_try) 2>&5 2885 ac_status=$? 2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2887 (exit $ac_status); }; }; then 2888 ac_cv_lib_nsl_yp_match=yes 2889 else 2890 echo "$as_me: failed program was:" >&5 2891 sed 's/^/| /' conftest.$ac_ext >&5 2892 2893 ac_cv_lib_nsl_yp_match=no 2894 fi 2895 rm -f conftest.err conftest.$ac_objext \ 2896 conftest$ac_exeext conftest.$ac_ext 2897 LIBS=$ac_check_lib_save_LIBS 2898 fi 2899 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5 2900 echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6 2901 if test $ac_cv_lib_nsl_yp_match = yes; then 2902 LIBS="$LIBS -lnsl" 2903 fi 2904 2905 ;; 2906 2907 *-*-aix*) 2908 2909 cat >>confdefs.h <<\_ACEOF 2910 #define AIX 2911 _ACEOF 2912 2913 # OpenSSH thinks it's broken. If it isn't, let me know. 2914 2915 cat >>confdefs.h <<\_ACEOF 2916 #define BROKEN_GETADDRINFO 2917 _ACEOF 2918 2919 ;; 2920 2921 *-*-hpux*) 2922 LIBS="$LIBS -lsec" 2923 # It's probably broken. 2924 2925 cat >>confdefs.h <<\_ACEOF 2926 #define BROKEN_GETADDRINFO 2927 _ACEOF 2928 2929 ;; 2930 *-dec-osf*) 2931 2932 cat >>confdefs.h <<\_ACEOF 2933 #define BROKEN_GETADDRINFO 2934 _ACEOF 2935 2936 ;; 2937 esac 2938 2939 if test -n "$ac_tool_prefix"; then 2940 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 2941 set dummy ${ac_tool_prefix}ar; ac_word=$2 2942 echo "$as_me:$LINENO: checking for $ac_word" >&5 2943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2944 if test "${ac_cv_prog_AR+set}" = set; then 2945 echo $ECHO_N "(cached) $ECHO_C" >&6 2946 else 2947 if test -n "$AR"; then 2948 ac_cv_prog_AR="$AR" # Let the user override the test. 2949 else 2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2951 for as_dir in $PATH 2952 do 2953 IFS=$as_save_IFS 2954 test -z "$as_dir" && as_dir=. 2955 for ac_exec_ext in '' $ac_executable_extensions; do 2956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2957 ac_cv_prog_AR="${ac_tool_prefix}ar" 2958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2959 break 2 2960 fi 2961 done 2962 done 2963 2964 fi 2965 fi 2966 AR=$ac_cv_prog_AR 2967 if test -n "$AR"; then 2968 echo "$as_me:$LINENO: result: $AR" >&5 2969 echo "${ECHO_T}$AR" >&6 2970 else 2971 echo "$as_me:$LINENO: result: no" >&5 2972 echo "${ECHO_T}no" >&6 2973 fi 2974 2975 fi 2976 if test -z "$ac_cv_prog_AR"; then 2977 ac_ct_AR=$AR 2978 # Extract the first word of "ar", so it can be a program name with args. 2979 set dummy ar; ac_word=$2 2980 echo "$as_me:$LINENO: checking for $ac_word" >&5 2981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2982 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 2983 echo $ECHO_N "(cached) $ECHO_C" >&6 2984 else 2985 if test -n "$ac_ct_AR"; then 2986 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 2987 else 2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2989 for as_dir in $PATH 2990 do 2991 IFS=$as_save_IFS 2992 test -z "$as_dir" && as_dir=. 2993 for ac_exec_ext in '' $ac_executable_extensions; do 2994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2995 ac_cv_prog_ac_ct_AR="ar" 2996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2997 break 2 2998 fi 2999 done 3000 done 3001 3002 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR=":" 3003 fi 3004 fi 3005 ac_ct_AR=$ac_cv_prog_ac_ct_AR 3006 if test -n "$ac_ct_AR"; then 3007 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 3008 echo "${ECHO_T}$ac_ct_AR" >&6 3009 else 3010 echo "$as_me:$LINENO: result: no" >&5 3011 echo "${ECHO_T}no" >&6 3012 fi 3013 3014 AR=$ac_ct_AR 3015 else 3016 AR="$ac_cv_prog_AR" 3017 fi 3018 3019 if test -n "$ac_tool_prefix"; then 3020 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3021 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3022 echo "$as_me:$LINENO: checking for $ac_word" >&5 3023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3024 if test "${ac_cv_prog_RANLIB+set}" = set; then 3025 echo $ECHO_N "(cached) $ECHO_C" >&6 3026 else 3027 if test -n "$RANLIB"; then 3028 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3029 else 3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3031 for as_dir in $PATH 3032 do 3033 IFS=$as_save_IFS 3034 test -z "$as_dir" && as_dir=. 3035 for ac_exec_ext in '' $ac_executable_extensions; do 3036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3037 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3039 break 2 3040 fi 3041 done 3042 done 3043 3044 fi 3045 fi 3046 RANLIB=$ac_cv_prog_RANLIB 3047 if test -n "$RANLIB"; then 3048 echo "$as_me:$LINENO: result: $RANLIB" >&5 3049 echo "${ECHO_T}$RANLIB" >&6 3050 else 3051 echo "$as_me:$LINENO: result: no" >&5 3052 echo "${ECHO_T}no" >&6 3053 fi 3054 3055 fi 3056 if test -z "$ac_cv_prog_RANLIB"; then 3057 ac_ct_RANLIB=$RANLIB 3058 # Extract the first word of "ranlib", so it can be a program name with args. 3059 set dummy ranlib; ac_word=$2 3060 echo "$as_me:$LINENO: checking for $ac_word" >&5 3061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3062 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3063 echo $ECHO_N "(cached) $ECHO_C" >&6 3064 else 3065 if test -n "$ac_ct_RANLIB"; then 3066 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3067 else 3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3069 for as_dir in $PATH 3070 do 3071 IFS=$as_save_IFS 3072 test -z "$as_dir" && as_dir=. 3073 for ac_exec_ext in '' $ac_executable_extensions; do 3074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3075 ac_cv_prog_ac_ct_RANLIB="ranlib" 3076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3077 break 2 3078 fi 3079 done 3080 done 3081 3082 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3083 fi 3084 fi 3085 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3086 if test -n "$ac_ct_RANLIB"; then 3087 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3088 echo "${ECHO_T}$ac_ct_RANLIB" >&6 3089 else 3090 echo "$as_me:$LINENO: result: no" >&5 3091 echo "${ECHO_T}no" >&6 3092 fi 3093 3094 RANLIB=$ac_ct_RANLIB 3095 else 3096 RANLIB="$ac_cv_prog_RANLIB" 3097 fi 3098 3099 if test -n "$ac_tool_prefix"; then 3100 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3101 set dummy ${ac_tool_prefix}strip; ac_word=$2 3102 echo "$as_me:$LINENO: checking for $ac_word" >&5 3103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3104 if test "${ac_cv_prog_STRIP+set}" = set; then 3105 echo $ECHO_N "(cached) $ECHO_C" >&6 3106 else 3107 if test -n "$STRIP"; then 3108 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3109 else 3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3111 for as_dir in $PATH 3112 do 3113 IFS=$as_save_IFS 3114 test -z "$as_dir" && as_dir=. 3115 for ac_exec_ext in '' $ac_executable_extensions; do 3116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3117 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3119 break 2 3120 fi 3121 done 3122 done 3123 3124 fi 3125 fi 3126 STRIP=$ac_cv_prog_STRIP 3127 if test -n "$STRIP"; then 3128 echo "$as_me:$LINENO: result: $STRIP" >&5 3129 echo "${ECHO_T}$STRIP" >&6 3130 else 3131 echo "$as_me:$LINENO: result: no" >&5 3132 echo "${ECHO_T}no" >&6 3133 fi 3134 3135 fi 3136 if test -z "$ac_cv_prog_STRIP"; then 3137 ac_ct_STRIP=$STRIP 3138 # Extract the first word of "strip", so it can be a program name with args. 3139 set dummy strip; ac_word=$2 3140 echo "$as_me:$LINENO: checking for $ac_word" >&5 3141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3142 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 3143 echo $ECHO_N "(cached) $ECHO_C" >&6 3144 else 3145 if test -n "$ac_ct_STRIP"; then 3146 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3147 else 3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3149 for as_dir in $PATH 3150 do 3151 IFS=$as_save_IFS 3152 test -z "$as_dir" && as_dir=. 3153 for ac_exec_ext in '' $ac_executable_extensions; do 3154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3155 ac_cv_prog_ac_ct_STRIP="strip" 3156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3157 break 2 3158 fi 3159 done 3160 done 3161 3162 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 3163 fi 3164 fi 3165 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3166 if test -n "$ac_ct_STRIP"; then 3167 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 3168 echo "${ECHO_T}$ac_ct_STRIP" >&6 3169 else 3170 echo "$as_me:$LINENO: result: no" >&5 3171 echo "${ECHO_T}no" >&6 3172 fi 3173 3174 STRIP=$ac_ct_STRIP 3175 else 3176 STRIP="$ac_cv_prog_STRIP" 3177 fi 3178 3179 if test -n "$ac_tool_prefix"; then 3180 # Extract the first word of "${ac_tool_prefix}install", so it can be a program name with args. 3181 set dummy ${ac_tool_prefix}install; ac_word=$2 3182 echo "$as_me:$LINENO: checking for $ac_word" >&5 3183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3184 if test "${ac_cv_prog_INSTALL+set}" = set; then 3185 echo $ECHO_N "(cached) $ECHO_C" >&6 3186 else 3187 if test -n "$INSTALL"; then 3188 ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test. 3189 else 3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3191 for as_dir in $PATH 3192 do 3193 IFS=$as_save_IFS 3194 test -z "$as_dir" && as_dir=. 3195 for ac_exec_ext in '' $ac_executable_extensions; do 3196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3197 ac_cv_prog_INSTALL="${ac_tool_prefix}install" 3198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3199 break 2 3200 fi 3201 done 3202 done 3203 3204 fi 3205 fi 3206 INSTALL=$ac_cv_prog_INSTALL 3207 if test -n "$INSTALL"; then 3208 echo "$as_me:$LINENO: result: $INSTALL" >&5 3209 echo "${ECHO_T}$INSTALL" >&6 3210 else 3211 echo "$as_me:$LINENO: result: no" >&5 3212 echo "${ECHO_T}no" >&6 3213 fi 3214 3215 fi 3216 if test -z "$ac_cv_prog_INSTALL"; then 3217 ac_ct_INSTALL=$INSTALL 3218 # Extract the first word of "install", so it can be a program name with args. 3219 set dummy install; ac_word=$2 3220 echo "$as_me:$LINENO: checking for $ac_word" >&5 3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3222 if test "${ac_cv_prog_ac_ct_INSTALL+set}" = set; then 3223 echo $ECHO_N "(cached) $ECHO_C" >&6 3224 else 3225 if test -n "$ac_ct_INSTALL"; then 3226 ac_cv_prog_ac_ct_INSTALL="$ac_ct_INSTALL" # Let the user override the test. 3227 else 3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3229 for as_dir in $PATH 3230 do 3231 IFS=$as_save_IFS 3232 test -z "$as_dir" && as_dir=. 3233 for ac_exec_ext in '' $ac_executable_extensions; do 3234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3235 ac_cv_prog_ac_ct_INSTALL="install" 3236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3237 break 2 3238 fi 3239 done 3240 done 3241 3242 test -z "$ac_cv_prog_ac_ct_INSTALL" && ac_cv_prog_ac_ct_INSTALL=":" 3243 fi 3244 fi 3245 ac_ct_INSTALL=$ac_cv_prog_ac_ct_INSTALL 3246 if test -n "$ac_ct_INSTALL"; then 3247 echo "$as_me:$LINENO: result: $ac_ct_INSTALL" >&5 3248 echo "${ECHO_T}$ac_ct_INSTALL" >&6 3249 else 3250 echo "$as_me:$LINENO: result: no" >&5 3251 echo "${ECHO_T}no" >&6 3252 fi 3253 3254 INSTALL=$ac_ct_INSTALL 3255 else 3256 INSTALL="$ac_cv_prog_INSTALL" 3257 fi 3258 3259 3260 ac_ext=c 3261 ac_cpp='$CPP $CPPFLAGS' 3262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3264 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3265 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3266 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3267 # On Suns, sometimes $CPP names a directory. 3268 if test -n "$CPP" && test -d "$CPP"; then 3269 CPP= 3270 fi 3271 if test -z "$CPP"; then 3272 if test "${ac_cv_prog_CPP+set}" = set; then 3273 echo $ECHO_N "(cached) $ECHO_C" >&6 3274 else 3275 # Double quotes because CPP needs to be expanded 3276 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3277 do 3278 ac_preproc_ok=false 3279 for ac_c_preproc_warn_flag in '' yes 3280 do 3281 # Use a header file that comes with gcc, so configuring glibc 3282 # with a fresh cross-compiler works. 3283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3284 # <limits.h> exists even on freestanding compilers. 3285 # On the NeXT, cc -E runs the code through the compiler's parser, 3286 # not just through cpp. "Syntax error" is here to catch this case. 3287 cat >conftest.$ac_ext <<_ACEOF 3288 /* confdefs.h. */ 3289 _ACEOF 3290 cat confdefs.h >>conftest.$ac_ext 3291 cat >>conftest.$ac_ext <<_ACEOF 3292 /* end confdefs.h. */ 3293 #ifdef __STDC__ 3294 # include <limits.h> 3295 #else 3296 # include <assert.h> 3297 #endif 3298 Syntax error 3299 _ACEOF 3300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3302 ac_status=$? 3303 grep -v '^ *+' conftest.er1 >conftest.err 3304 rm -f conftest.er1 3305 cat conftest.err >&5 3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3307 (exit $ac_status); } >/dev/null; then 3308 if test -s conftest.err; then 3309 ac_cpp_err=$ac_c_preproc_warn_flag 3310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3311 else 3312 ac_cpp_err= 3313 fi 3314 else 3315 ac_cpp_err=yes 3316 fi 3317 if test -z "$ac_cpp_err"; then 3318 : 3319 else 3320 echo "$as_me: failed program was:" >&5 3321 sed 's/^/| /' conftest.$ac_ext >&5 3322 3323 # Broken: fails on valid input. 3324 continue 3325 fi 3326 rm -f conftest.err conftest.$ac_ext 3327 3328 # OK, works on sane cases. Now check whether non-existent headers 3329 # can be detected and how. 3330 cat >conftest.$ac_ext <<_ACEOF 3331 /* confdefs.h. */ 3332 _ACEOF 3333 cat confdefs.h >>conftest.$ac_ext 3334 cat >>conftest.$ac_ext <<_ACEOF 3335 /* end confdefs.h. */ 3336 #include <ac_nonexistent.h> 3337 _ACEOF 3338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3340 ac_status=$? 3341 grep -v '^ *+' conftest.er1 >conftest.err 3342 rm -f conftest.er1 3343 cat conftest.err >&5 3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3345 (exit $ac_status); } >/dev/null; then 3346 if test -s conftest.err; then 3347 ac_cpp_err=$ac_c_preproc_warn_flag 3348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3349 else 3350 ac_cpp_err= 3351 fi 3352 else 3353 ac_cpp_err=yes 3354 fi 3355 if test -z "$ac_cpp_err"; then 3356 # Broken: success on invalid input. 3357 continue 3358 else 3359 echo "$as_me: failed program was:" >&5 3360 sed 's/^/| /' conftest.$ac_ext >&5 3361 3362 # Passes both tests. 3363 ac_preproc_ok=: 3364 break 3365 fi 3366 rm -f conftest.err conftest.$ac_ext 3367 3368 done 3369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3370 rm -f conftest.err conftest.$ac_ext 3371 if $ac_preproc_ok; then 3372 break 3373 fi 3374 3375 done 3376 ac_cv_prog_CPP=$CPP 3377 3378 fi 3379 CPP=$ac_cv_prog_CPP 3380 else 3381 ac_cv_prog_CPP=$CPP 3382 fi 3383 echo "$as_me:$LINENO: result: $CPP" >&5 3384 echo "${ECHO_T}$CPP" >&6 3385 ac_preproc_ok=false 3386 for ac_c_preproc_warn_flag in '' yes 3387 do 3388 # Use a header file that comes with gcc, so configuring glibc 3389 # with a fresh cross-compiler works. 3390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3391 # <limits.h> exists even on freestanding compilers. 3392 # On the NeXT, cc -E runs the code through the compiler's parser, 3393 # not just through cpp. "Syntax error" is here to catch this case. 3394 cat >conftest.$ac_ext <<_ACEOF 3395 /* confdefs.h. */ 3396 _ACEOF 3397 cat confdefs.h >>conftest.$ac_ext 3398 cat >>conftest.$ac_ext <<_ACEOF 3399 /* end confdefs.h. */ 3400 #ifdef __STDC__ 3401 # include <limits.h> 3402 #else 3403 # include <assert.h> 3404 #endif 3405 Syntax error 3406 _ACEOF 3407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3409 ac_status=$? 3410 grep -v '^ *+' conftest.er1 >conftest.err 3411 rm -f conftest.er1 3412 cat conftest.err >&5 3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3414 (exit $ac_status); } >/dev/null; then 3415 if test -s conftest.err; then 3416 ac_cpp_err=$ac_c_preproc_warn_flag 3417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3418 else 3419 ac_cpp_err= 3420 fi 3421 else 3422 ac_cpp_err=yes 3423 fi 3424 if test -z "$ac_cpp_err"; then 3425 : 3426 else 3427 echo "$as_me: failed program was:" >&5 3428 sed 's/^/| /' conftest.$ac_ext >&5 3429 3430 # Broken: fails on valid input. 3431 continue 3432 fi 3433 rm -f conftest.err conftest.$ac_ext 3434 3435 # OK, works on sane cases. Now check whether non-existent headers 3436 # can be detected and how. 3437 cat >conftest.$ac_ext <<_ACEOF 3438 /* confdefs.h. */ 3439 _ACEOF 3440 cat confdefs.h >>conftest.$ac_ext 3441 cat >>conftest.$ac_ext <<_ACEOF 3442 /* end confdefs.h. */ 3443 #include <ac_nonexistent.h> 3444 _ACEOF 3445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3447 ac_status=$? 3448 grep -v '^ *+' conftest.er1 >conftest.err 3449 rm -f conftest.er1 3450 cat conftest.err >&5 3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3452 (exit $ac_status); } >/dev/null; then 3453 if test -s conftest.err; then 3454 ac_cpp_err=$ac_c_preproc_warn_flag 3455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3456 else 3457 ac_cpp_err= 3458 fi 3459 else 3460 ac_cpp_err=yes 3461 fi 3462 if test -z "$ac_cpp_err"; then 3463 # Broken: success on invalid input. 3464 continue 3465 else 3466 echo "$as_me: failed program was:" >&5 3467 sed 's/^/| /' conftest.$ac_ext >&5 3468 3469 # Passes both tests. 3470 ac_preproc_ok=: 3471 break 3472 fi 3473 rm -f conftest.err conftest.$ac_ext 3474 3475 done 3476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3477 rm -f conftest.err conftest.$ac_ext 3478 if $ac_preproc_ok; then 3479 : 3480 else 3481 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3482 See \`config.log' for more details." >&5 3483 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3484 See \`config.log' for more details." >&2;} 3485 { (exit 1); exit 1; }; } 3486 fi 3487 3488 ac_ext=c 3489 ac_cpp='$CPP $CPPFLAGS' 3490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3492 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3493 3494 3495 echo "$as_me:$LINENO: checking for egrep" >&5 3496 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3497 if test "${ac_cv_prog_egrep+set}" = set; then 3498 echo $ECHO_N "(cached) $ECHO_C" >&6 3499 else 3500 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3501 then ac_cv_prog_egrep='grep -E' 3502 else ac_cv_prog_egrep='egrep' 3503 fi 3504 fi 3505 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3506 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3507 EGREP=$ac_cv_prog_egrep 3508 3509 3510 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3511 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3512 if test "${ac_cv_header_stdc+set}" = set; then 3513 echo $ECHO_N "(cached) $ECHO_C" >&6 3514 else 3515 cat >conftest.$ac_ext <<_ACEOF 3516 /* confdefs.h. */ 3517 _ACEOF 3518 cat confdefs.h >>conftest.$ac_ext 3519 cat >>conftest.$ac_ext <<_ACEOF 3520 /* end confdefs.h. */ 3521 #include <stdlib.h> 3522 #include <stdarg.h> 3523 #include <string.h> 3524 #include <float.h> 3525 3526 int 3527 main () 3528 { 3529 3530 ; 3531 return 0; 3532 } 3533 _ACEOF 3534 rm -f conftest.$ac_objext 3535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3536 (eval $ac_compile) 2>conftest.er1 3537 ac_status=$? 3538 grep -v '^ *+' conftest.er1 >conftest.err 3539 rm -f conftest.er1 3540 cat conftest.err >&5 3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3542 (exit $ac_status); } && 3543 { ac_try='test -z "$ac_c_werror_flag" 3544 || test ! -s conftest.err' 3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3546 (eval $ac_try) 2>&5 3547 ac_status=$? 3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3549 (exit $ac_status); }; } && 3550 { ac_try='test -s conftest.$ac_objext' 3551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3552 (eval $ac_try) 2>&5 3553 ac_status=$? 3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3555 (exit $ac_status); }; }; then 3556 ac_cv_header_stdc=yes 3557 else 3558 echo "$as_me: failed program was:" >&5 3559 sed 's/^/| /' conftest.$ac_ext >&5 3560 3561 ac_cv_header_stdc=no 3562 fi 3563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3564 3565 if test $ac_cv_header_stdc = yes; then 3566 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3567 cat >conftest.$ac_ext <<_ACEOF 3568 /* confdefs.h. */ 3569 _ACEOF 3570 cat confdefs.h >>conftest.$ac_ext 3571 cat >>conftest.$ac_ext <<_ACEOF 3572 /* end confdefs.h. */ 3573 #include <string.h> 3574 3575 _ACEOF 3576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3577 $EGREP "memchr" >/dev/null 2>&1; then 3578 : 3579 else 3580 ac_cv_header_stdc=no 3581 fi 3582 rm -f conftest* 3583 3584 fi 3585 3586 if test $ac_cv_header_stdc = yes; then 3587 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3588 cat >conftest.$ac_ext <<_ACEOF 3589 /* confdefs.h. */ 3590 _ACEOF 3591 cat confdefs.h >>conftest.$ac_ext 3592 cat >>conftest.$ac_ext <<_ACEOF 3593 /* end confdefs.h. */ 3594 #include <stdlib.h> 3595 3596 _ACEOF 3597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3598 $EGREP "free" >/dev/null 2>&1; then 3599 : 3600 else 3601 ac_cv_header_stdc=no 3602 fi 3603 rm -f conftest* 3604 3605 fi 3606 3607 if test $ac_cv_header_stdc = yes; then 3608 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3609 if test "$cross_compiling" = yes; then 3610 : 3611 else 3612 cat >conftest.$ac_ext <<_ACEOF 3613 /* confdefs.h. */ 3614 _ACEOF 3615 cat confdefs.h >>conftest.$ac_ext 3616 cat >>conftest.$ac_ext <<_ACEOF 3617 /* end confdefs.h. */ 3618 #include <ctype.h> 3619 #if ((' ' & 0x0FF) == 0x020) 3620 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3621 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3622 #else 3623 # define ISLOWER(c) \ 3624 (('a' <= (c) && (c) <= 'i') \ 3625 || ('j' <= (c) && (c) <= 'r') \ 3626 || ('s' <= (c) && (c) <= 'z')) 3627 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3628 #endif 3629 3630 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3631 int 3632 main () 3633 { 3634 int i; 3635 for (i = 0; i < 256; i++) 3636 if (XOR (islower (i), ISLOWER (i)) 3637 || toupper (i) != TOUPPER (i)) 3638 exit(2); 3639 exit (0); 3640 } 3641 _ACEOF 3642 rm -f conftest$ac_exeext 3643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3644 (eval $ac_link) 2>&5 3645 ac_status=$? 3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3649 (eval $ac_try) 2>&5 3650 ac_status=$? 3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3652 (exit $ac_status); }; }; then 3653 : 3654 else 3655 echo "$as_me: program exited with status $ac_status" >&5 3656 echo "$as_me: failed program was:" >&5 3657 sed 's/^/| /' conftest.$ac_ext >&5 3658 3659 ( exit $ac_status ) 3660 ac_cv_header_stdc=no 3661 fi 3662 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3663 fi 3664 fi 3665 fi 3666 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3667 echo "${ECHO_T}$ac_cv_header_stdc" >&6 3668 if test $ac_cv_header_stdc = yes; then 3669 3670 cat >>confdefs.h <<\_ACEOF 3671 #define STDC_HEADERS 1 3672 _ACEOF 3673 3674 fi 3675 3676 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3687 inttypes.h stdint.h unistd.h 3688 do 3689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3690 echo "$as_me:$LINENO: checking for $ac_header" >&5 3691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3692 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3693 echo $ECHO_N "(cached) $ECHO_C" >&6 3694 else 3695 cat >conftest.$ac_ext <<_ACEOF 3696 /* confdefs.h. */ 3697 _ACEOF 3698 cat confdefs.h >>conftest.$ac_ext 3699 cat >>conftest.$ac_ext <<_ACEOF 3700 /* end confdefs.h. */ 3701 $ac_includes_default 3702 3703 #include <$ac_header> 3704 _ACEOF 3705 rm -f conftest.$ac_objext 3706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3707 (eval $ac_compile) 2>conftest.er1 3708 ac_status=$? 3709 grep -v '^ *+' conftest.er1 >conftest.err 3710 rm -f conftest.er1 3711 cat conftest.err >&5 3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3713 (exit $ac_status); } && 3714 { ac_try='test -z "$ac_c_werror_flag" 3715 || test ! -s conftest.err' 3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3717 (eval $ac_try) 2>&5 3718 ac_status=$? 3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3720 (exit $ac_status); }; } && 3721 { ac_try='test -s conftest.$ac_objext' 3722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3723 (eval $ac_try) 2>&5 3724 ac_status=$? 3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3726 (exit $ac_status); }; }; then 3727 eval "$as_ac_Header=yes" 3728 else 3729 echo "$as_me: failed program was:" >&5 3730 sed 's/^/| /' conftest.$ac_ext >&5 3731 3732 eval "$as_ac_Header=no" 3733 fi 3734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3735 fi 3736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3738 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3739 cat >>confdefs.h <<_ACEOF 3740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3741 _ACEOF 3742 3743 fi 3744 3745 done 3746 3747 3748 echo "$as_me:$LINENO: checking whether __UCLIBC__ is declared" >&5 3749 echo $ECHO_N "checking whether __UCLIBC__ is declared... $ECHO_C" >&6 3750 if test "${ac_cv_have_decl___UCLIBC__+set}" = set; then 3751 echo $ECHO_N "(cached) $ECHO_C" >&6 3752 else 3753 cat >conftest.$ac_ext <<_ACEOF 3754 /* confdefs.h. */ 3755 _ACEOF 3756 cat confdefs.h >>conftest.$ac_ext 3757 cat >>conftest.$ac_ext <<_ACEOF 3758 /* end confdefs.h. */ 3759 $ac_includes_default 3760 int 3761 main () 3762 { 3763 #ifndef __UCLIBC__ 3764 char *p = (char *) __UCLIBC__; 3765 #endif 3766 3767 ; 3768 return 0; 3769 } 3770 _ACEOF 3771 rm -f conftest.$ac_objext 3772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3773 (eval $ac_compile) 2>conftest.er1 3774 ac_status=$? 3775 grep -v '^ *+' conftest.er1 >conftest.err 3776 rm -f conftest.er1 3777 cat conftest.err >&5 3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3779 (exit $ac_status); } && 3780 { ac_try='test -z "$ac_c_werror_flag" 3781 || test ! -s conftest.err' 3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3783 (eval $ac_try) 2>&5 3784 ac_status=$? 3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3786 (exit $ac_status); }; } && 3787 { ac_try='test -s conftest.$ac_objext' 3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3789 (eval $ac_try) 2>&5 3790 ac_status=$? 3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3792 (exit $ac_status); }; }; then 3793 ac_cv_have_decl___UCLIBC__=yes 3794 else 3795 echo "$as_me: failed program was:" >&5 3796 sed 's/^/| /' conftest.$ac_ext >&5 3797 3798 ac_cv_have_decl___UCLIBC__=no 3799 fi 3800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3801 fi 3802 echo "$as_me:$LINENO: result: $ac_cv_have_decl___UCLIBC__" >&5 3803 echo "${ECHO_T}$ac_cv_have_decl___UCLIBC__" >&6 3804 if test $ac_cv_have_decl___UCLIBC__ = yes; then 3805 3806 no_loginfunc_check=1 3807 { echo "$as_me:$LINENO: Using uClibc - login() and logout() probably don't work, so we won't use them." >&5 3808 echo "$as_me: Using uClibc - login() and logout() probably don't work, so we won't use them." >&6;} 3809 3810 fi 3811 3812 3813 # Checks for libraries. 3814 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 3815 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 3816 if test "${ac_cv_lib_crypt_crypt+set}" = set; then 3817 echo $ECHO_N "(cached) $ECHO_C" >&6 3818 else 3819 ac_check_lib_save_LIBS=$LIBS 3820 LIBS="-lcrypt $LIBS" 3821 cat >conftest.$ac_ext <<_ACEOF 3822 /* confdefs.h. */ 3823 _ACEOF 3824 cat confdefs.h >>conftest.$ac_ext 3825 cat >>conftest.$ac_ext <<_ACEOF 3826 /* end confdefs.h. */ 3827 3828 /* Override any gcc2 internal prototype to avoid an error. */ 3829 #ifdef __cplusplus 3830 extern "C" 3831 #endif 3832 /* We use char because int might match the return type of a gcc2 3833 builtin and then its argument prototype would still apply. */ 3834 char crypt (); 3835 int 3836 main () 3837 { 3838 crypt (); 3839 ; 3840 return 0; 3841 } 3842 _ACEOF 3843 rm -f conftest.$ac_objext conftest$ac_exeext 3844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3845 (eval $ac_link) 2>conftest.er1 3846 ac_status=$? 3847 grep -v '^ *+' conftest.er1 >conftest.err 3848 rm -f conftest.er1 3849 cat conftest.err >&5 3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3851 (exit $ac_status); } && 3852 { ac_try='test -z "$ac_c_werror_flag" 3853 || test ! -s conftest.err' 3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3855 (eval $ac_try) 2>&5 3856 ac_status=$? 3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3858 (exit $ac_status); }; } && 3859 { ac_try='test -s conftest$ac_exeext' 3860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3861 (eval $ac_try) 2>&5 3862 ac_status=$? 3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3864 (exit $ac_status); }; }; then 3865 ac_cv_lib_crypt_crypt=yes 3866 else 3867 echo "$as_me: failed program was:" >&5 3868 sed 's/^/| /' conftest.$ac_ext >&5 3869 3870 ac_cv_lib_crypt_crypt=no 3871 fi 3872 rm -f conftest.err conftest.$ac_objext \ 3873 conftest$ac_exeext conftest.$ac_ext 3874 LIBS=$ac_check_lib_save_LIBS 3875 fi 3876 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 3877 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 3878 if test $ac_cv_lib_crypt_crypt = yes; then 3879 LIBS="$LIBS -lcrypt" 3880 fi 3881 3882 3883 # Check if zlib is needed 3884 3885 # Check whether --with-zlib or --without-zlib was given. 3886 if test "${with_zlib+set}" = set; then 3887 withval="$with_zlib" 3888 3889 # option is given 3890 if test -d "$withval/lib"; then 3891 LDFLAGS="-L${withval}/lib ${LDFLAGS}" 3892 else 3893 LDFLAGS="-L${withval} ${LDFLAGS}" 3894 fi 3895 if test -d "$withval/include"; then 3896 CPPFLAGS="-I${withval}/include ${CPPFLAGS}" 3897 else 3898 CPPFLAGS="-I${withval} ${CPPFLAGS}" 3899 fi 3900 3901 3902 fi; 3903 3904 # Check whether --enable-zlib or --disable-zlib was given. 3905 if test "${enable_zlib+set}" = set; then 3906 enableval="$enable_zlib" 3907 3908 if test "x$enableval" = "xno"; then 3909 3910 cat >>confdefs.h <<\_ACEOF 3911 #define DISABLE_ZLIB 3912 _ACEOF 3913 3914 { echo "$as_me:$LINENO: Disabling zlib" >&5 3915 echo "$as_me: Disabling zlib" >&6;} 3916 else 3917 3918 echo "$as_me:$LINENO: checking for deflate in -lz" >&5 3919 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 3920 if test "${ac_cv_lib_z_deflate+set}" = set; then 3921 echo $ECHO_N "(cached) $ECHO_C" >&6 3922 else 3923 ac_check_lib_save_LIBS=$LIBS 3924 LIBS="-lz $LIBS" 3925 cat >conftest.$ac_ext <<_ACEOF 3926 /* confdefs.h. */ 3927 _ACEOF 3928 cat confdefs.h >>conftest.$ac_ext 3929 cat >>conftest.$ac_ext <<_ACEOF 3930 /* end confdefs.h. */ 3931 3932 /* Override any gcc2 internal prototype to avoid an error. */ 3933 #ifdef __cplusplus 3934 extern "C" 3935 #endif 3936 /* We use char because int might match the return type of a gcc2 3937 builtin and then its argument prototype would still apply. */ 3938 char deflate (); 3939 int 3940 main () 3941 { 3942 deflate (); 3943 ; 3944 return 0; 3945 } 3946 _ACEOF 3947 rm -f conftest.$ac_objext conftest$ac_exeext 3948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3949 (eval $ac_link) 2>conftest.er1 3950 ac_status=$? 3951 grep -v '^ *+' conftest.er1 >conftest.err 3952 rm -f conftest.er1 3953 cat conftest.err >&5 3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3955 (exit $ac_status); } && 3956 { ac_try='test -z "$ac_c_werror_flag" 3957 || test ! -s conftest.err' 3958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3959 (eval $ac_try) 2>&5 3960 ac_status=$? 3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3962 (exit $ac_status); }; } && 3963 { ac_try='test -s conftest$ac_exeext' 3964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3965 (eval $ac_try) 2>&5 3966 ac_status=$? 3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3968 (exit $ac_status); }; }; then 3969 ac_cv_lib_z_deflate=yes 3970 else 3971 echo "$as_me: failed program was:" >&5 3972 sed 's/^/| /' conftest.$ac_ext >&5 3973 3974 ac_cv_lib_z_deflate=no 3975 fi 3976 rm -f conftest.err conftest.$ac_objext \ 3977 conftest$ac_exeext conftest.$ac_ext 3978 LIBS=$ac_check_lib_save_LIBS 3979 fi 3980 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 3981 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 3982 if test $ac_cv_lib_z_deflate = yes; then 3983 cat >>confdefs.h <<_ACEOF 3984 #define HAVE_LIBZ 1 3985 _ACEOF 3986 3987 LIBS="-lz $LIBS" 3988 3989 else 3990 { { echo "$as_me:$LINENO: error: *** zlib missing - install first or check config.log ***" >&5 3991 echo "$as_me: error: *** zlib missing - install first or check config.log ***" >&2;} 3992 { (exit 1); exit 1; }; } 3993 fi 3994 3995 { echo "$as_me:$LINENO: Enabling zlib" >&5 3996 echo "$as_me: Enabling zlib" >&6;} 3997 fi 3998 3999 else 4000 4001 # if not disabled, check for zlib 4002 4003 echo "$as_me:$LINENO: checking for deflate in -lz" >&5 4004 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 4005 if test "${ac_cv_lib_z_deflate+set}" = set; then 4006 echo $ECHO_N "(cached) $ECHO_C" >&6 4007 else 4008 ac_check_lib_save_LIBS=$LIBS 4009 LIBS="-lz $LIBS" 4010 cat >conftest.$ac_ext <<_ACEOF 4011 /* confdefs.h. */ 4012 _ACEOF 4013 cat confdefs.h >>conftest.$ac_ext 4014 cat >>conftest.$ac_ext <<_ACEOF 4015 /* end confdefs.h. */ 4016 4017 /* Override any gcc2 internal prototype to avoid an error. */ 4018 #ifdef __cplusplus 4019 extern "C" 4020 #endif 4021 /* We use char because int might match the return type of a gcc2 4022 builtin and then its argument prototype would still apply. */ 4023 char deflate (); 4024 int 4025 main () 4026 { 4027 deflate (); 4028 ; 4029 return 0; 4030 } 4031 _ACEOF 4032 rm -f conftest.$ac_objext conftest$ac_exeext 4033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4034 (eval $ac_link) 2>conftest.er1 4035 ac_status=$? 4036 grep -v '^ *+' conftest.er1 >conftest.err 4037 rm -f conftest.er1 4038 cat conftest.err >&5 4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4040 (exit $ac_status); } && 4041 { ac_try='test -z "$ac_c_werror_flag" 4042 || test ! -s conftest.err' 4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4044 (eval $ac_try) 2>&5 4045 ac_status=$? 4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4047 (exit $ac_status); }; } && 4048 { ac_try='test -s conftest$ac_exeext' 4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4050 (eval $ac_try) 2>&5 4051 ac_status=$? 4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4053 (exit $ac_status); }; }; then 4054 ac_cv_lib_z_deflate=yes 4055 else 4056 echo "$as_me: failed program was:" >&5 4057 sed 's/^/| /' conftest.$ac_ext >&5 4058 4059 ac_cv_lib_z_deflate=no 4060 fi 4061 rm -f conftest.err conftest.$ac_objext \ 4062 conftest$ac_exeext conftest.$ac_ext 4063 LIBS=$ac_check_lib_save_LIBS 4064 fi 4065 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 4066 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 4067 if test $ac_cv_lib_z_deflate = yes; then 4068 cat >>confdefs.h <<_ACEOF 4069 #define HAVE_LIBZ 1 4070 _ACEOF 4071 4072 LIBS="-lz $LIBS" 4073 4074 else 4075 { { echo "$as_me:$LINENO: error: *** zlib missing - install first or check config.log ***" >&5 4076 echo "$as_me: error: *** zlib missing - install first or check config.log ***" >&2;} 4077 { (exit 1); exit 1; }; } 4078 fi 4079 4080 { echo "$as_me:$LINENO: Enabling zlib" >&5 4081 echo "$as_me: Enabling zlib" >&6;} 4082 4083 4084 fi; 4085 4086 # Check if pam is needed 4087 4088 # Check whether --with-pam or --without-pam was given. 4089 if test "${with_pam+set}" = set; then 4090 withval="$with_pam" 4091 4092 # option is given 4093 if test -d "$withval/lib"; then 4094 LDFLAGS="-L${withval}/lib ${LDFLAGS}" 4095 else 4096 LDFLAGS="-L${withval} ${LDFLAGS}" 4097 fi 4098 if test -d "$withval/include"; then 4099 CPPFLAGS="-I${withval}/include ${CPPFLAGS}" 4100 else 4101 CPPFLAGS="-I${withval} ${CPPFLAGS}" 4102 fi 4103 4104 4105 fi; 4106 4107 4108 # Check whether --enable-pam or --disable-pam was given. 4109 if test "${enable_pam+set}" = set; then 4110 enableval="$enable_pam" 4111 4112 if test "x$enableval" = "xyes"; then 4113 4114 echo "$as_me:$LINENO: checking for pam_authenticate in -lpam" >&5 4115 echo $ECHO_N "checking for pam_authenticate in -lpam... $ECHO_C" >&6 4116 if test "${ac_cv_lib_pam_pam_authenticate+set}" = set; then 4117 echo $ECHO_N "(cached) $ECHO_C" >&6 4118 else 4119 ac_check_lib_save_LIBS=$LIBS 4120 LIBS="-lpam $LIBS" 4121 cat >conftest.$ac_ext <<_ACEOF 4122 /* confdefs.h. */ 4123 _ACEOF 4124 cat confdefs.h >>conftest.$ac_ext 4125 cat >>conftest.$ac_ext <<_ACEOF 4126 /* end confdefs.h. */ 4127 4128 /* Override any gcc2 internal prototype to avoid an error. */ 4129 #ifdef __cplusplus 4130 extern "C" 4131 #endif 4132 /* We use char because int might match the return type of a gcc2 4133 builtin and then its argument prototype would still apply. */ 4134 char pam_authenticate (); 4135 int 4136 main () 4137 { 4138 pam_authenticate (); 4139 ; 4140 return 0; 4141 } 4142 _ACEOF 4143 rm -f conftest.$ac_objext conftest$ac_exeext 4144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4145 (eval $ac_link) 2>conftest.er1 4146 ac_status=$? 4147 grep -v '^ *+' conftest.er1 >conftest.err 4148 rm -f conftest.er1 4149 cat conftest.err >&5 4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4151 (exit $ac_status); } && 4152 { ac_try='test -z "$ac_c_werror_flag" 4153 || test ! -s conftest.err' 4154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4155 (eval $ac_try) 2>&5 4156 ac_status=$? 4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4158 (exit $ac_status); }; } && 4159 { ac_try='test -s conftest$ac_exeext' 4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4161 (eval $ac_try) 2>&5 4162 ac_status=$? 4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4164 (exit $ac_status); }; }; then 4165 ac_cv_lib_pam_pam_authenticate=yes 4166 else 4167 echo "$as_me: failed program was:" >&5 4168 sed 's/^/| /' conftest.$ac_ext >&5 4169 4170 ac_cv_lib_pam_pam_authenticate=no 4171 fi 4172 rm -f conftest.err conftest.$ac_objext \ 4173 conftest$ac_exeext conftest.$ac_ext 4174 LIBS=$ac_check_lib_save_LIBS 4175 fi 4176 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_authenticate" >&5 4177 echo "${ECHO_T}$ac_cv_lib_pam_pam_authenticate" >&6 4178 if test $ac_cv_lib_pam_pam_authenticate = yes; then 4179 cat >>confdefs.h <<_ACEOF 4180 #define HAVE_LIBPAM 1 4181 _ACEOF 4182 4183 LIBS="-lpam $LIBS" 4184 4185 else 4186 { { echo "$as_me:$LINENO: error: *** PAM missing - install first or check config.log ***" >&5 4187 echo "$as_me: error: *** PAM missing - install first or check config.log ***" >&2;} 4188 { (exit 1); exit 1; }; } 4189 fi 4190 4191 { echo "$as_me:$LINENO: Enabling PAM" >&5 4192 echo "$as_me: Enabling PAM" >&6;} 4193 else 4194 4195 cat >>confdefs.h <<\_ACEOF 4196 #define DISABLE_PAM 4197 _ACEOF 4198 4199 { echo "$as_me:$LINENO: Disabling PAM" >&5 4200 echo "$as_me: Disabling PAM" >&6;} 4201 fi 4202 4203 else 4204 4205 # disable it by default 4206 4207 cat >>confdefs.h <<\_ACEOF 4208 #define DISABLE_PAM 4209 _ACEOF 4210 4211 { echo "$as_me:$LINENO: Disabling PAM" >&5 4212 echo "$as_me: Disabling PAM" >&6;} 4213 4214 4215 fi; 4216 4217 # Check whether --enable-openpty or --disable-openpty was given. 4218 if test "${enable_openpty+set}" = set; then 4219 enableval="$enable_openpty" 4220 4221 if test "x$enableval" = "xno"; then 4222 { echo "$as_me:$LINENO: Not using openpty" >&5 4223 echo "$as_me: Not using openpty" >&6;} 4224 else 4225 { echo "$as_me:$LINENO: Using openpty if available" >&5 4226 echo "$as_me: Using openpty if available" >&6;} 4227 echo "$as_me:$LINENO: checking for library containing openpty" >&5 4228 echo $ECHO_N "checking for library containing openpty... $ECHO_C" >&6 4229 if test "${ac_cv_search_openpty+set}" = set; then 4230 echo $ECHO_N "(cached) $ECHO_C" >&6 4231 else 4232 ac_func_search_save_LIBS=$LIBS 4233 ac_cv_search_openpty=no 4234 cat >conftest.$ac_ext <<_ACEOF 4235 /* confdefs.h. */ 4236 _ACEOF 4237 cat confdefs.h >>conftest.$ac_ext 4238 cat >>conftest.$ac_ext <<_ACEOF 4239 /* end confdefs.h. */ 4240 4241 /* Override any gcc2 internal prototype to avoid an error. */ 4242 #ifdef __cplusplus 4243 extern "C" 4244 #endif 4245 /* We use char because int might match the return type of a gcc2 4246 builtin and then its argument prototype would still apply. */ 4247 char openpty (); 4248 int 4249 main () 4250 { 4251 openpty (); 4252 ; 4253 return 0; 4254 } 4255 _ACEOF 4256 rm -f conftest.$ac_objext conftest$ac_exeext 4257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4258 (eval $ac_link) 2>conftest.er1 4259 ac_status=$? 4260 grep -v '^ *+' conftest.er1 >conftest.err 4261 rm -f conftest.er1 4262 cat conftest.err >&5 4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4264 (exit $ac_status); } && 4265 { ac_try='test -z "$ac_c_werror_flag" 4266 || test ! -s conftest.err' 4267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4268 (eval $ac_try) 2>&5 4269 ac_status=$? 4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4271 (exit $ac_status); }; } && 4272 { ac_try='test -s conftest$ac_exeext' 4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4274 (eval $ac_try) 2>&5 4275 ac_status=$? 4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4277 (exit $ac_status); }; }; then 4278 ac_cv_search_openpty="none required" 4279 else 4280 echo "$as_me: failed program was:" >&5 4281 sed 's/^/| /' conftest.$ac_ext >&5 4282 4283 fi 4284 rm -f conftest.err conftest.$ac_objext \ 4285 conftest$ac_exeext conftest.$ac_ext 4286 if test "$ac_cv_search_openpty" = no; then 4287 for ac_lib in util; do 4288 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4289 cat >conftest.$ac_ext <<_ACEOF 4290 /* confdefs.h. */ 4291 _ACEOF 4292 cat confdefs.h >>conftest.$ac_ext 4293 cat >>conftest.$ac_ext <<_ACEOF 4294 /* end confdefs.h. */ 4295 4296 /* Override any gcc2 internal prototype to avoid an error. */ 4297 #ifdef __cplusplus 4298 extern "C" 4299 #endif 4300 /* We use char because int might match the return type of a gcc2 4301 builtin and then its argument prototype would still apply. */ 4302 char openpty (); 4303 int 4304 main () 4305 { 4306 openpty (); 4307 ; 4308 return 0; 4309 } 4310 _ACEOF 4311 rm -f conftest.$ac_objext conftest$ac_exeext 4312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4313 (eval $ac_link) 2>conftest.er1 4314 ac_status=$? 4315 grep -v '^ *+' conftest.er1 >conftest.err 4316 rm -f conftest.er1 4317 cat conftest.err >&5 4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4319 (exit $ac_status); } && 4320 { ac_try='test -z "$ac_c_werror_flag" 4321 || test ! -s conftest.err' 4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4323 (eval $ac_try) 2>&5 4324 ac_status=$? 4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4326 (exit $ac_status); }; } && 4327 { ac_try='test -s conftest$ac_exeext' 4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4329 (eval $ac_try) 2>&5 4330 ac_status=$? 4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4332 (exit $ac_status); }; }; then 4333 ac_cv_search_openpty="-l$ac_lib" 4334 break 4335 else 4336 echo "$as_me: failed program was:" >&5 4337 sed 's/^/| /' conftest.$ac_ext >&5 4338 4339 fi 4340 rm -f conftest.err conftest.$ac_objext \ 4341 conftest$ac_exeext conftest.$ac_ext 4342 done 4343 fi 4344 LIBS=$ac_func_search_save_LIBS 4345 fi 4346 echo "$as_me:$LINENO: result: $ac_cv_search_openpty" >&5 4347 echo "${ECHO_T}$ac_cv_search_openpty" >&6 4348 if test "$ac_cv_search_openpty" != no; then 4349 test "$ac_cv_search_openpty" = "none required" || LIBS="$ac_cv_search_openpty $LIBS" 4350 4351 cat >>confdefs.h <<\_ACEOF 4352 #define HAVE_OPENPTY 4353 _ACEOF 4354 4355 fi 4356 4357 fi 4358 4359 else 4360 4361 { echo "$as_me:$LINENO: Using openpty if available" >&5 4362 echo "$as_me: Using openpty if available" >&6;} 4363 echo "$as_me:$LINENO: checking for library containing openpty" >&5 4364 echo $ECHO_N "checking for library containing openpty... $ECHO_C" >&6 4365 if test "${ac_cv_search_openpty+set}" = set; then 4366 echo $ECHO_N "(cached) $ECHO_C" >&6 4367 else 4368 ac_func_search_save_LIBS=$LIBS 4369 ac_cv_search_openpty=no 4370 cat >conftest.$ac_ext <<_ACEOF 4371 /* confdefs.h. */ 4372 _ACEOF 4373 cat confdefs.h >>conftest.$ac_ext 4374 cat >>conftest.$ac_ext <<_ACEOF 4375 /* end confdefs.h. */ 4376 4377 /* Override any gcc2 internal prototype to avoid an error. */ 4378 #ifdef __cplusplus 4379 extern "C" 4380 #endif 4381 /* We use char because int might match the return type of a gcc2 4382 builtin and then its argument prototype would still apply. */ 4383 char openpty (); 4384 int 4385 main () 4386 { 4387 openpty (); 4388 ; 4389 return 0; 4390 } 4391 _ACEOF 4392 rm -f conftest.$ac_objext conftest$ac_exeext 4393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4394 (eval $ac_link) 2>conftest.er1 4395 ac_status=$? 4396 grep -v '^ *+' conftest.er1 >conftest.err 4397 rm -f conftest.er1 4398 cat conftest.err >&5 4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4400 (exit $ac_status); } && 4401 { ac_try='test -z "$ac_c_werror_flag" 4402 || test ! -s conftest.err' 4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4404 (eval $ac_try) 2>&5 4405 ac_status=$? 4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4407 (exit $ac_status); }; } && 4408 { ac_try='test -s conftest$ac_exeext' 4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4410 (eval $ac_try) 2>&5 4411 ac_status=$? 4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4413 (exit $ac_status); }; }; then 4414 ac_cv_search_openpty="none required" 4415 else 4416 echo "$as_me: failed program was:" >&5 4417 sed 's/^/| /' conftest.$ac_ext >&5 4418 4419 fi 4420 rm -f conftest.err conftest.$ac_objext \ 4421 conftest$ac_exeext conftest.$ac_ext 4422 if test "$ac_cv_search_openpty" = no; then 4423 for ac_lib in util; do 4424 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4425 cat >conftest.$ac_ext <<_ACEOF 4426 /* confdefs.h. */ 4427 _ACEOF 4428 cat confdefs.h >>conftest.$ac_ext 4429 cat >>conftest.$ac_ext <<_ACEOF 4430 /* end confdefs.h. */ 4431 4432 /* Override any gcc2 internal prototype to avoid an error. */ 4433 #ifdef __cplusplus 4434 extern "C" 4435 #endif 4436 /* We use char because int might match the return type of a gcc2 4437 builtin and then its argument prototype would still apply. */ 4438 char openpty (); 4439 int 4440 main () 4441 { 4442 openpty (); 4443 ; 4444 return 0; 4445 } 4446 _ACEOF 4447 rm -f conftest.$ac_objext conftest$ac_exeext 4448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4449 (eval $ac_link) 2>conftest.er1 4450 ac_status=$? 4451 grep -v '^ *+' conftest.er1 >conftest.err 4452 rm -f conftest.er1 4453 cat conftest.err >&5 4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4455 (exit $ac_status); } && 4456 { ac_try='test -z "$ac_c_werror_flag" 4457 || test ! -s conftest.err' 4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4459 (eval $ac_try) 2>&5 4460 ac_status=$? 4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4462 (exit $ac_status); }; } && 4463 { ac_try='test -s conftest$ac_exeext' 4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4465 (eval $ac_try) 2>&5 4466 ac_status=$? 4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4468 (exit $ac_status); }; }; then 4469 ac_cv_search_openpty="-l$ac_lib" 4470 break 4471 else 4472 echo "$as_me: failed program was:" >&5 4473 sed 's/^/| /' conftest.$ac_ext >&5 4474 4475 fi 4476 rm -f conftest.err conftest.$ac_objext \ 4477 conftest$ac_exeext conftest.$ac_ext 4478 done 4479 fi 4480 LIBS=$ac_func_search_save_LIBS 4481 fi 4482 echo "$as_me:$LINENO: result: $ac_cv_search_openpty" >&5 4483 echo "${ECHO_T}$ac_cv_search_openpty" >&6 4484 if test "$ac_cv_search_openpty" != no; then 4485 test "$ac_cv_search_openpty" = "none required" || LIBS="$ac_cv_search_openpty $LIBS" 4486 cat >>confdefs.h <<\_ACEOF 4487 #define HAVE_OPENPTY 1 4488 _ACEOF 4489 4490 fi 4491 4492 4493 4494 fi; 4495 4496 4497 # Check whether --enable-syslog or --disable-syslog was given. 4498 if test "${enable_syslog+set}" = set; then 4499 enableval="$enable_syslog" 4500 4501 if test "x$enableval" = "xno"; then 4502 4503 cat >>confdefs.h <<\_ACEOF 4504 #define DISABLE_SYSLOG 4505 _ACEOF 4506 4507 { echo "$as_me:$LINENO: Disabling syslog" >&5 4508 echo "$as_me: Disabling syslog" >&6;} 4509 else 4510 { echo "$as_me:$LINENO: Enabling syslog" >&5 4511 echo "$as_me: Enabling syslog" >&6;} 4512 fi 4513 4514 else 4515 4516 { echo "$as_me:$LINENO: Enabling syslog" >&5 4517 echo "$as_me: Enabling syslog" >&6;} 4518 4519 4520 fi; 4521 4522 # Check whether --enable-shadow or --disable-shadow was given. 4523 if test "${enable_shadow+set}" = set; then 4524 enableval="$enable_shadow" 4525 4526 if test "x$enableval" = "xno"; then 4527 { echo "$as_me:$LINENO: Not using shadow passwords" >&5 4528 echo "$as_me: Not using shadow passwords" >&6;} 4529 else 4530 4531 for ac_header in shadow.h 4532 do 4533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4534 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4535 echo "$as_me:$LINENO: checking for $ac_header" >&5 4536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4537 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4538 echo $ECHO_N "(cached) $ECHO_C" >&6 4539 fi 4540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4542 else 4543 # Is the header compilable? 4544 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4546 cat >conftest.$ac_ext <<_ACEOF 4547 /* confdefs.h. */ 4548 _ACEOF 4549 cat confdefs.h >>conftest.$ac_ext 4550 cat >>conftest.$ac_ext <<_ACEOF 4551 /* end confdefs.h. */ 4552 $ac_includes_default 4553 #include <$ac_header> 4554 _ACEOF 4555 rm -f conftest.$ac_objext 4556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4557 (eval $ac_compile) 2>conftest.er1 4558 ac_status=$? 4559 grep -v '^ *+' conftest.er1 >conftest.err 4560 rm -f conftest.er1 4561 cat conftest.err >&5 4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4563 (exit $ac_status); } && 4564 { ac_try='test -z "$ac_c_werror_flag" 4565 || test ! -s conftest.err' 4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4567 (eval $ac_try) 2>&5 4568 ac_status=$? 4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4570 (exit $ac_status); }; } && 4571 { ac_try='test -s conftest.$ac_objext' 4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4573 (eval $ac_try) 2>&5 4574 ac_status=$? 4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4576 (exit $ac_status); }; }; then 4577 ac_header_compiler=yes 4578 else 4579 echo "$as_me: failed program was:" >&5 4580 sed 's/^/| /' conftest.$ac_ext >&5 4581 4582 ac_header_compiler=no 4583 fi 4584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4586 echo "${ECHO_T}$ac_header_compiler" >&6 4587 4588 # Is the header present? 4589 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4591 cat >conftest.$ac_ext <<_ACEOF 4592 /* confdefs.h. */ 4593 _ACEOF 4594 cat confdefs.h >>conftest.$ac_ext 4595 cat >>conftest.$ac_ext <<_ACEOF 4596 /* end confdefs.h. */ 4597 #include <$ac_header> 4598 _ACEOF 4599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4601 ac_status=$? 4602 grep -v '^ *+' conftest.er1 >conftest.err 4603 rm -f conftest.er1 4604 cat conftest.err >&5 4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4606 (exit $ac_status); } >/dev/null; then 4607 if test -s conftest.err; then 4608 ac_cpp_err=$ac_c_preproc_warn_flag 4609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4610 else 4611 ac_cpp_err= 4612 fi 4613 else 4614 ac_cpp_err=yes 4615 fi 4616 if test -z "$ac_cpp_err"; then 4617 ac_header_preproc=yes 4618 else 4619 echo "$as_me: failed program was:" >&5 4620 sed 's/^/| /' conftest.$ac_ext >&5 4621 4622 ac_header_preproc=no 4623 fi 4624 rm -f conftest.err conftest.$ac_ext 4625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4626 echo "${ECHO_T}$ac_header_preproc" >&6 4627 4628 # So? What about this header? 4629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4630 yes:no: ) 4631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4635 ac_header_preproc=yes 4636 ;; 4637 no:yes:* ) 4638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4650 ( 4651 cat <<\_ASBOX 4652 ## ------------------------------------------ ## 4653 ## Report this to the AC_PACKAGE_NAME lists. ## 4654 ## ------------------------------------------ ## 4655 _ASBOX 4656 ) | 4657 sed "s/^/$as_me: WARNING: /" >&2 4658 ;; 4659 esac 4660 echo "$as_me:$LINENO: checking for $ac_header" >&5 4661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4662 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4663 echo $ECHO_N "(cached) $ECHO_C" >&6 4664 else 4665 eval "$as_ac_Header=\$ac_header_preproc" 4666 fi 4667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4669 4670 fi 4671 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4672 cat >>confdefs.h <<_ACEOF 4673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4674 _ACEOF 4675 4676 fi 4677 4678 done 4679 4680 { echo "$as_me:$LINENO: Using shadow passwords if available" >&5 4681 echo "$as_me: Using shadow passwords if available" >&6;} 4682 fi 4683 4684 else 4685 4686 4687 for ac_header in shadow.h 4688 do 4689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4690 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4691 echo "$as_me:$LINENO: checking for $ac_header" >&5 4692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4693 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4694 echo $ECHO_N "(cached) $ECHO_C" >&6 4695 fi 4696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4698 else 4699 # Is the header compilable? 4700 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4702 cat >conftest.$ac_ext <<_ACEOF 4703 /* confdefs.h. */ 4704 _ACEOF 4705 cat confdefs.h >>conftest.$ac_ext 4706 cat >>conftest.$ac_ext <<_ACEOF 4707 /* end confdefs.h. */ 4708 $ac_includes_default 4709 #include <$ac_header> 4710 _ACEOF 4711 rm -f conftest.$ac_objext 4712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4713 (eval $ac_compile) 2>conftest.er1 4714 ac_status=$? 4715 grep -v '^ *+' conftest.er1 >conftest.err 4716 rm -f conftest.er1 4717 cat conftest.err >&5 4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4719 (exit $ac_status); } && 4720 { ac_try='test -z "$ac_c_werror_flag" 4721 || test ! -s conftest.err' 4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4723 (eval $ac_try) 2>&5 4724 ac_status=$? 4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4726 (exit $ac_status); }; } && 4727 { ac_try='test -s conftest.$ac_objext' 4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4729 (eval $ac_try) 2>&5 4730 ac_status=$? 4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4732 (exit $ac_status); }; }; then 4733 ac_header_compiler=yes 4734 else 4735 echo "$as_me: failed program was:" >&5 4736 sed 's/^/| /' conftest.$ac_ext >&5 4737 4738 ac_header_compiler=no 4739 fi 4740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4742 echo "${ECHO_T}$ac_header_compiler" >&6 4743 4744 # Is the header present? 4745 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4747 cat >conftest.$ac_ext <<_ACEOF 4748 /* confdefs.h. */ 4749 _ACEOF 4750 cat confdefs.h >>conftest.$ac_ext 4751 cat >>conftest.$ac_ext <<_ACEOF 4752 /* end confdefs.h. */ 4753 #include <$ac_header> 4754 _ACEOF 4755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4757 ac_status=$? 4758 grep -v '^ *+' conftest.er1 >conftest.err 4759 rm -f conftest.er1 4760 cat conftest.err >&5 4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4762 (exit $ac_status); } >/dev/null; then 4763 if test -s conftest.err; then 4764 ac_cpp_err=$ac_c_preproc_warn_flag 4765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4766 else 4767 ac_cpp_err= 4768 fi 4769 else 4770 ac_cpp_err=yes 4771 fi 4772 if test -z "$ac_cpp_err"; then 4773 ac_header_preproc=yes 4774 else 4775 echo "$as_me: failed program was:" >&5 4776 sed 's/^/| /' conftest.$ac_ext >&5 4777 4778 ac_header_preproc=no 4779 fi 4780 rm -f conftest.err conftest.$ac_ext 4781 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4782 echo "${ECHO_T}$ac_header_preproc" >&6 4783 4784 # So? What about this header? 4785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4786 yes:no: ) 4787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4791 ac_header_preproc=yes 4792 ;; 4793 no:yes:* ) 4794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4806 ( 4807 cat <<\_ASBOX 4808 ## ------------------------------------------ ## 4809 ## Report this to the AC_PACKAGE_NAME lists. ## 4810 ## ------------------------------------------ ## 4811 _ASBOX 4812 ) | 4813 sed "s/^/$as_me: WARNING: /" >&2 4814 ;; 4815 esac 4816 echo "$as_me:$LINENO: checking for $ac_header" >&5 4817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4818 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4819 echo $ECHO_N "(cached) $ECHO_C" >&6 4820 else 4821 eval "$as_ac_Header=\$ac_header_preproc" 4822 fi 4823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4825 4826 fi 4827 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4828 cat >>confdefs.h <<_ACEOF 4829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4830 _ACEOF 4831 4832 fi 4833 4834 done 4835 4836 { echo "$as_me:$LINENO: Using shadow passwords if available" >&5 4837 echo "$as_me: Using shadow passwords if available" >&6;} 4838 4839 4840 fi; 4841 4842 4843 # Checks for header files. 4844 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4845 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4846 if test "${ac_cv_header_stdc+set}" = set; then 4847 echo $ECHO_N "(cached) $ECHO_C" >&6 4848 else 4849 cat >conftest.$ac_ext <<_ACEOF 4850 /* confdefs.h. */ 4851 _ACEOF 4852 cat confdefs.h >>conftest.$ac_ext 4853 cat >>conftest.$ac_ext <<_ACEOF 4854 /* end confdefs.h. */ 4855 #include <stdlib.h> 4856 #include <stdarg.h> 4857 #include <string.h> 4858 #include <float.h> 4859 4860 int 4861 main () 4862 { 4863 4864 ; 4865 return 0; 4866 } 4867 _ACEOF 4868 rm -f conftest.$ac_objext 4869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4870 (eval $ac_compile) 2>conftest.er1 4871 ac_status=$? 4872 grep -v '^ *+' conftest.er1 >conftest.err 4873 rm -f conftest.er1 4874 cat conftest.err >&5 4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4876 (exit $ac_status); } && 4877 { ac_try='test -z "$ac_c_werror_flag" 4878 || test ! -s conftest.err' 4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4880 (eval $ac_try) 2>&5 4881 ac_status=$? 4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4883 (exit $ac_status); }; } && 4884 { ac_try='test -s conftest.$ac_objext' 4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4886 (eval $ac_try) 2>&5 4887 ac_status=$? 4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4889 (exit $ac_status); }; }; then 4890 ac_cv_header_stdc=yes 4891 else 4892 echo "$as_me: failed program was:" >&5 4893 sed 's/^/| /' conftest.$ac_ext >&5 4894 4895 ac_cv_header_stdc=no 4896 fi 4897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4898 4899 if test $ac_cv_header_stdc = yes; then 4900 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4901 cat >conftest.$ac_ext <<_ACEOF 4902 /* confdefs.h. */ 4903 _ACEOF 4904 cat confdefs.h >>conftest.$ac_ext 4905 cat >>conftest.$ac_ext <<_ACEOF 4906 /* end confdefs.h. */ 4907 #include <string.h> 4908 4909 _ACEOF 4910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4911 $EGREP "memchr" >/dev/null 2>&1; then 4912 : 4913 else 4914 ac_cv_header_stdc=no 4915 fi 4916 rm -f conftest* 4917 4918 fi 4919 4920 if test $ac_cv_header_stdc = yes; then 4921 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4922 cat >conftest.$ac_ext <<_ACEOF 4923 /* confdefs.h. */ 4924 _ACEOF 4925 cat confdefs.h >>conftest.$ac_ext 4926 cat >>conftest.$ac_ext <<_ACEOF 4927 /* end confdefs.h. */ 4928 #include <stdlib.h> 4929 4930 _ACEOF 4931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4932 $EGREP "free" >/dev/null 2>&1; then 4933 : 4934 else 4935 ac_cv_header_stdc=no 4936 fi 4937 rm -f conftest* 4938 4939 fi 4940 4941 if test $ac_cv_header_stdc = yes; then 4942 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4943 if test "$cross_compiling" = yes; then 4944 : 4945 else 4946 cat >conftest.$ac_ext <<_ACEOF 4947 /* confdefs.h. */ 4948 _ACEOF 4949 cat confdefs.h >>conftest.$ac_ext 4950 cat >>conftest.$ac_ext <<_ACEOF 4951 /* end confdefs.h. */ 4952 #include <ctype.h> 4953 #if ((' ' & 0x0FF) == 0x020) 4954 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4955 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4956 #else 4957 # define ISLOWER(c) \ 4958 (('a' <= (c) && (c) <= 'i') \ 4959 || ('j' <= (c) && (c) <= 'r') \ 4960 || ('s' <= (c) && (c) <= 'z')) 4961 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4962 #endif 4963 4964 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4965 int 4966 main () 4967 { 4968 int i; 4969 for (i = 0; i < 256; i++) 4970 if (XOR (islower (i), ISLOWER (i)) 4971 || toupper (i) != TOUPPER (i)) 4972 exit(2); 4973 exit (0); 4974 } 4975 _ACEOF 4976 rm -f conftest$ac_exeext 4977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4978 (eval $ac_link) 2>&5 4979 ac_status=$? 4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4983 (eval $ac_try) 2>&5 4984 ac_status=$? 4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4986 (exit $ac_status); }; }; then 4987 : 4988 else 4989 echo "$as_me: program exited with status $ac_status" >&5 4990 echo "$as_me: failed program was:" >&5 4991 sed 's/^/| /' conftest.$ac_ext >&5 4992 4993 ( exit $ac_status ) 4994 ac_cv_header_stdc=no 4995 fi 4996 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4997 fi 4998 fi 4999 fi 5000 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5001 echo "${ECHO_T}$ac_cv_header_stdc" >&6 5002 if test $ac_cv_header_stdc = yes; then 5003 5004 cat >>confdefs.h <<\_ACEOF 5005 #define STDC_HEADERS 1 5006 _ACEOF 5007 5008 fi 5009 5010 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 5011 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 5012 if test "${ac_cv_header_sys_wait_h+set}" = set; then 5013 echo $ECHO_N "(cached) $ECHO_C" >&6 5014 else 5015 cat >conftest.$ac_ext <<_ACEOF 5016 /* confdefs.h. */ 5017 _ACEOF 5018 cat confdefs.h >>conftest.$ac_ext 5019 cat >>conftest.$ac_ext <<_ACEOF 5020 /* end confdefs.h. */ 5021 #include <sys/types.h> 5022 #include <sys/wait.h> 5023 #ifndef WEXITSTATUS 5024 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 5025 #endif 5026 #ifndef WIFEXITED 5027 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 5028 #endif 5029 5030 int 5031 main () 5032 { 5033 int s; 5034 wait (&s); 5035 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 5036 ; 5037 return 0; 5038 } 5039 _ACEOF 5040 rm -f conftest.$ac_objext 5041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5042 (eval $ac_compile) 2>conftest.er1 5043 ac_status=$? 5044 grep -v '^ *+' conftest.er1 >conftest.err 5045 rm -f conftest.er1 5046 cat conftest.err >&5 5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5048 (exit $ac_status); } && 5049 { ac_try='test -z "$ac_c_werror_flag" 5050 || test ! -s conftest.err' 5051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5052 (eval $ac_try) 2>&5 5053 ac_status=$? 5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5055 (exit $ac_status); }; } && 5056 { ac_try='test -s conftest.$ac_objext' 5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5058 (eval $ac_try) 2>&5 5059 ac_status=$? 5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5061 (exit $ac_status); }; }; then 5062 ac_cv_header_sys_wait_h=yes 5063 else 5064 echo "$as_me: failed program was:" >&5 5065 sed 's/^/| /' conftest.$ac_ext >&5 5066 5067 ac_cv_header_sys_wait_h=no 5068 fi 5069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5070 fi 5071 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 5072 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 5073 if test $ac_cv_header_sys_wait_h = yes; then 5074 5075 cat >>confdefs.h <<\_ACEOF 5076 #define HAVE_SYS_WAIT_H 1 5077 _ACEOF 5078 5079 fi 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 for ac_header in fcntl.h limits.h netinet/in.h netinet/tcp.h stdlib.h string.h sys/socket.h sys/time.h termios.h unistd.h crypt.h pty.h ioctl.h libutil.h libgen.h inttypes.h stropts.h utmp.h utmpx.h lastlog.h paths.h util.h netdb.h security/pam_appl.h pam/pam_appl.h netinet/in_systm.h 5108 do 5109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5110 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5111 echo "$as_me:$LINENO: checking for $ac_header" >&5 5112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5113 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5114 echo $ECHO_N "(cached) $ECHO_C" >&6 5115 fi 5116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5118 else 5119 # Is the header compilable? 5120 echo "$as_me:$LINENO: checking $ac_header usability" >&5 5121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5122 cat >conftest.$ac_ext <<_ACEOF 5123 /* confdefs.h. */ 5124 _ACEOF 5125 cat confdefs.h >>conftest.$ac_ext 5126 cat >>conftest.$ac_ext <<_ACEOF 5127 /* end confdefs.h. */ 5128 $ac_includes_default 5129 #include <$ac_header> 5130 _ACEOF 5131 rm -f conftest.$ac_objext 5132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5133 (eval $ac_compile) 2>conftest.er1 5134 ac_status=$? 5135 grep -v '^ *+' conftest.er1 >conftest.err 5136 rm -f conftest.er1 5137 cat conftest.err >&5 5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5139 (exit $ac_status); } && 5140 { ac_try='test -z "$ac_c_werror_flag" 5141 || test ! -s conftest.err' 5142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5143 (eval $ac_try) 2>&5 5144 ac_status=$? 5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5146 (exit $ac_status); }; } && 5147 { ac_try='test -s conftest.$ac_objext' 5148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5149 (eval $ac_try) 2>&5 5150 ac_status=$? 5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5152 (exit $ac_status); }; }; then 5153 ac_header_compiler=yes 5154 else 5155 echo "$as_me: failed program was:" >&5 5156 sed 's/^/| /' conftest.$ac_ext >&5 5157 5158 ac_header_compiler=no 5159 fi 5160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5161 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5162 echo "${ECHO_T}$ac_header_compiler" >&6 5163 5164 # Is the header present? 5165 echo "$as_me:$LINENO: checking $ac_header presence" >&5 5166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5167 cat >conftest.$ac_ext <<_ACEOF 5168 /* confdefs.h. */ 5169 _ACEOF 5170 cat confdefs.h >>conftest.$ac_ext 5171 cat >>conftest.$ac_ext <<_ACEOF 5172 /* end confdefs.h. */ 5173 #include <$ac_header> 5174 _ACEOF 5175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5177 ac_status=$? 5178 grep -v '^ *+' conftest.er1 >conftest.err 5179 rm -f conftest.er1 5180 cat conftest.err >&5 5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5182 (exit $ac_status); } >/dev/null; then 5183 if test -s conftest.err; then 5184 ac_cpp_err=$ac_c_preproc_warn_flag 5185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5186 else 5187 ac_cpp_err= 5188 fi 5189 else 5190 ac_cpp_err=yes 5191 fi 5192 if test -z "$ac_cpp_err"; then 5193 ac_header_preproc=yes 5194 else 5195 echo "$as_me: failed program was:" >&5 5196 sed 's/^/| /' conftest.$ac_ext >&5 5197 5198 ac_header_preproc=no 5199 fi 5200 rm -f conftest.err conftest.$ac_ext 5201 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5202 echo "${ECHO_T}$ac_header_preproc" >&6 5203 5204 # So? What about this header? 5205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5206 yes:no: ) 5207 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5210 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5211 ac_header_preproc=yes 5212 ;; 5213 no:yes:* ) 5214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5217 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5218 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5219 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5220 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5221 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5224 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5225 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5226 ( 5227 cat <<\_ASBOX 5228 ## ------------------------------------------ ## 5229 ## Report this to the AC_PACKAGE_NAME lists. ## 5230 ## ------------------------------------------ ## 5231 _ASBOX 5232 ) | 5233 sed "s/^/$as_me: WARNING: /" >&2 5234 ;; 5235 esac 5236 echo "$as_me:$LINENO: checking for $ac_header" >&5 5237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5238 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5239 echo $ECHO_N "(cached) $ECHO_C" >&6 5240 else 5241 eval "$as_ac_Header=\$ac_header_preproc" 5242 fi 5243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5245 5246 fi 5247 if test `eval echo '${'$as_ac_Header'}'` = yes; then 5248 cat >>confdefs.h <<_ACEOF 5249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5250 _ACEOF 5251 5252 fi 5253 5254 done 5255 5256 5257 # Checks for typedefs, structures, and compiler characteristics. 5258 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 5259 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 5260 if test "${ac_cv_c_const+set}" = set; then 5261 echo $ECHO_N "(cached) $ECHO_C" >&6 5262 else 5263 cat >conftest.$ac_ext <<_ACEOF 5264 /* confdefs.h. */ 5265 _ACEOF 5266 cat confdefs.h >>conftest.$ac_ext 5267 cat >>conftest.$ac_ext <<_ACEOF 5268 /* end confdefs.h. */ 5269 5270 int 5271 main () 5272 { 5273 /* FIXME: Include the comments suggested by Paul. */ 5274 #ifndef __cplusplus 5275 /* Ultrix mips cc rejects this. */ 5276 typedef int charset[2]; 5277 const charset x; 5278 /* SunOS 4.1.1 cc rejects this. */ 5279 char const *const *ccp; 5280 char **p; 5281 /* NEC SVR4.0.2 mips cc rejects this. */ 5282 struct point {int x, y;}; 5283 static struct point const zero = {0,0}; 5284 /* AIX XL C 1.02.0.0 rejects this. 5285 It does not let you subtract one const X* pointer from another in 5286 an arm of an if-expression whose if-part is not a constant 5287 expression */ 5288 const char *g = "string"; 5289 ccp = &g + (g ? g-g : 0); 5290 /* HPUX 7.0 cc rejects these. */ 5291 ++ccp; 5292 p = (char**) ccp; 5293 ccp = (char const *const *) p; 5294 { /* SCO 3.2v4 cc rejects this. */ 5295 char *t; 5296 char const *s = 0 ? (char *) 0 : (char const *) 0; 5297 5298 *t++ = 0; 5299 } 5300 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5301 int x[] = {25, 17}; 5302 const int *foo = &x[0]; 5303 ++foo; 5304 } 5305 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5306 typedef const int *iptr; 5307 iptr p = 0; 5308 ++p; 5309 } 5310 { /* AIX XL C 1.02.0.0 rejects this saying 5311 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5312 struct s { int j; const int *ap[3]; }; 5313 struct s *b; b->j = 5; 5314 } 5315 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5316 const int foo = 10; 5317 } 5318 #endif 5319 5320 ; 5321 return 0; 5322 } 5323 _ACEOF 5324 rm -f conftest.$ac_objext 5325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5326 (eval $ac_compile) 2>conftest.er1 5327 ac_status=$? 5328 grep -v '^ *+' conftest.er1 >conftest.err 5329 rm -f conftest.er1 5330 cat conftest.err >&5 5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5332 (exit $ac_status); } && 5333 { ac_try='test -z "$ac_c_werror_flag" 5334 || test ! -s conftest.err' 5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5336 (eval $ac_try) 2>&5 5337 ac_status=$? 5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5339 (exit $ac_status); }; } && 5340 { ac_try='test -s conftest.$ac_objext' 5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5342 (eval $ac_try) 2>&5 5343 ac_status=$? 5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5345 (exit $ac_status); }; }; then 5346 ac_cv_c_const=yes 5347 else 5348 echo "$as_me: failed program was:" >&5 5349 sed 's/^/| /' conftest.$ac_ext >&5 5350 5351 ac_cv_c_const=no 5352 fi 5353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5354 fi 5355 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 5356 echo "${ECHO_T}$ac_cv_c_const" >&6 5357 if test $ac_cv_c_const = no; then 5358 5359 cat >>confdefs.h <<\_ACEOF 5360 #define const 5361 _ACEOF 5362 5363 fi 5364 5365 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 5366 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 5367 if test "${ac_cv_type_uid_t+set}" = set; then 5368 echo $ECHO_N "(cached) $ECHO_C" >&6 5369 else 5370 cat >conftest.$ac_ext <<_ACEOF 5371 /* confdefs.h. */ 5372 _ACEOF 5373 cat confdefs.h >>conftest.$ac_ext 5374 cat >>conftest.$ac_ext <<_ACEOF 5375 /* end confdefs.h. */ 5376 #include <sys/types.h> 5377 5378 _ACEOF 5379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5380 $EGREP "uid_t" >/dev/null 2>&1; then 5381 ac_cv_type_uid_t=yes 5382 else 5383 ac_cv_type_uid_t=no 5384 fi 5385 rm -f conftest* 5386 5387 fi 5388 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 5389 echo "${ECHO_T}$ac_cv_type_uid_t" >&6 5390 if test $ac_cv_type_uid_t = no; then 5391 5392 cat >>confdefs.h <<\_ACEOF 5393 #define uid_t int 5394 _ACEOF 5395 5396 5397 cat >>confdefs.h <<\_ACEOF 5398 #define gid_t int 5399 _ACEOF 5400 5401 fi 5402 5403 echo "$as_me:$LINENO: checking for mode_t" >&5 5404 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 5405 if test "${ac_cv_type_mode_t+set}" = set; then 5406 echo $ECHO_N "(cached) $ECHO_C" >&6 5407 else 5408 cat >conftest.$ac_ext <<_ACEOF 5409 /* confdefs.h. */ 5410 _ACEOF 5411 cat confdefs.h >>conftest.$ac_ext 5412 cat >>conftest.$ac_ext <<_ACEOF 5413 /* end confdefs.h. */ 5414 $ac_includes_default 5415 int 5416 main () 5417 { 5418 if ((mode_t *) 0) 5419 return 0; 5420 if (sizeof (mode_t)) 5421 return 0; 5422 ; 5423 return 0; 5424 } 5425 _ACEOF 5426 rm -f conftest.$ac_objext 5427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5428 (eval $ac_compile) 2>conftest.er1 5429 ac_status=$? 5430 grep -v '^ *+' conftest.er1 >conftest.err 5431 rm -f conftest.er1 5432 cat conftest.err >&5 5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5434 (exit $ac_status); } && 5435 { ac_try='test -z "$ac_c_werror_flag" 5436 || test ! -s conftest.err' 5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5438 (eval $ac_try) 2>&5 5439 ac_status=$? 5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5441 (exit $ac_status); }; } && 5442 { ac_try='test -s conftest.$ac_objext' 5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5444 (eval $ac_try) 2>&5 5445 ac_status=$? 5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5447 (exit $ac_status); }; }; then 5448 ac_cv_type_mode_t=yes 5449 else 5450 echo "$as_me: failed program was:" >&5 5451 sed 's/^/| /' conftest.$ac_ext >&5 5452 5453 ac_cv_type_mode_t=no 5454 fi 5455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5456 fi 5457 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 5458 echo "${ECHO_T}$ac_cv_type_mode_t" >&6 5459 if test $ac_cv_type_mode_t = yes; then 5460 : 5461 else 5462 5463 cat >>confdefs.h <<_ACEOF 5464 #define mode_t int 5465 _ACEOF 5466 5467 fi 5468 5469 echo "$as_me:$LINENO: checking for pid_t" >&5 5470 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 5471 if test "${ac_cv_type_pid_t+set}" = set; then 5472 echo $ECHO_N "(cached) $ECHO_C" >&6 5473 else 5474 cat >conftest.$ac_ext <<_ACEOF 5475 /* confdefs.h. */ 5476 _ACEOF 5477 cat confdefs.h >>conftest.$ac_ext 5478 cat >>conftest.$ac_ext <<_ACEOF 5479 /* end confdefs.h. */ 5480 $ac_includes_default 5481 int 5482 main () 5483 { 5484 if ((pid_t *) 0) 5485 return 0; 5486 if (sizeof (pid_t)) 5487 return 0; 5488 ; 5489 return 0; 5490 } 5491 _ACEOF 5492 rm -f conftest.$ac_objext 5493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5494 (eval $ac_compile) 2>conftest.er1 5495 ac_status=$? 5496 grep -v '^ *+' conftest.er1 >conftest.err 5497 rm -f conftest.er1 5498 cat conftest.err >&5 5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5500 (exit $ac_status); } && 5501 { ac_try='test -z "$ac_c_werror_flag" 5502 || test ! -s conftest.err' 5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5504 (eval $ac_try) 2>&5 5505 ac_status=$? 5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5507 (exit $ac_status); }; } && 5508 { ac_try='test -s conftest.$ac_objext' 5509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5510 (eval $ac_try) 2>&5 5511 ac_status=$? 5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5513 (exit $ac_status); }; }; then 5514 ac_cv_type_pid_t=yes 5515 else 5516 echo "$as_me: failed program was:" >&5 5517 sed 's/^/| /' conftest.$ac_ext >&5 5518 5519 ac_cv_type_pid_t=no 5520 fi 5521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5522 fi 5523 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 5524 echo "${ECHO_T}$ac_cv_type_pid_t" >&6 5525 if test $ac_cv_type_pid_t = yes; then 5526 : 5527 else 5528 5529 cat >>confdefs.h <<_ACEOF 5530 #define pid_t int 5531 _ACEOF 5532 5533 fi 5534 5535 echo "$as_me:$LINENO: checking for size_t" >&5 5536 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 5537 if test "${ac_cv_type_size_t+set}" = set; then 5538 echo $ECHO_N "(cached) $ECHO_C" >&6 5539 else 5540 cat >conftest.$ac_ext <<_ACEOF 5541 /* confdefs.h. */ 5542 _ACEOF 5543 cat confdefs.h >>conftest.$ac_ext 5544 cat >>conftest.$ac_ext <<_ACEOF 5545 /* end confdefs.h. */ 5546 $ac_includes_default 5547 int 5548 main () 5549 { 5550 if ((size_t *) 0) 5551 return 0; 5552 if (sizeof (size_t)) 5553 return 0; 5554 ; 5555 return 0; 5556 } 5557 _ACEOF 5558 rm -f conftest.$ac_objext 5559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5560 (eval $ac_compile) 2>conftest.er1 5561 ac_status=$? 5562 grep -v '^ *+' conftest.er1 >conftest.err 5563 rm -f conftest.er1 5564 cat conftest.err >&5 5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5566 (exit $ac_status); } && 5567 { ac_try='test -z "$ac_c_werror_flag" 5568 || test ! -s conftest.err' 5569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5570 (eval $ac_try) 2>&5 5571 ac_status=$? 5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5573 (exit $ac_status); }; } && 5574 { ac_try='test -s conftest.$ac_objext' 5575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5576 (eval $ac_try) 2>&5 5577 ac_status=$? 5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5579 (exit $ac_status); }; }; then 5580 ac_cv_type_size_t=yes 5581 else 5582 echo "$as_me: failed program was:" >&5 5583 sed 's/^/| /' conftest.$ac_ext >&5 5584 5585 ac_cv_type_size_t=no 5586 fi 5587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5588 fi 5589 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 5590 echo "${ECHO_T}$ac_cv_type_size_t" >&6 5591 if test $ac_cv_type_size_t = yes; then 5592 : 5593 else 5594 5595 cat >>confdefs.h <<_ACEOF 5596 #define size_t unsigned 5597 _ACEOF 5598 5599 fi 5600 5601 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 5602 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 5603 if test "${ac_cv_header_time+set}" = set; then 5604 echo $ECHO_N "(cached) $ECHO_C" >&6 5605 else 5606 cat >conftest.$ac_ext <<_ACEOF 5607 /* confdefs.h. */ 5608 _ACEOF 5609 cat confdefs.h >>conftest.$ac_ext 5610 cat >>conftest.$ac_ext <<_ACEOF 5611 /* end confdefs.h. */ 5612 #include <sys/types.h> 5613 #include <sys/time.h> 5614 #include <time.h> 5615 5616 int 5617 main () 5618 { 5619 if ((struct tm *) 0) 5620 return 0; 5621 ; 5622 return 0; 5623 } 5624 _ACEOF 5625 rm -f conftest.$ac_objext 5626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5627 (eval $ac_compile) 2>conftest.er1 5628 ac_status=$? 5629 grep -v '^ *+' conftest.er1 >conftest.err 5630 rm -f conftest.er1 5631 cat conftest.err >&5 5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5633 (exit $ac_status); } && 5634 { ac_try='test -z "$ac_c_werror_flag" 5635 || test ! -s conftest.err' 5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5637 (eval $ac_try) 2>&5 5638 ac_status=$? 5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5640 (exit $ac_status); }; } && 5641 { ac_try='test -s conftest.$ac_objext' 5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5643 (eval $ac_try) 2>&5 5644 ac_status=$? 5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5646 (exit $ac_status); }; }; then 5647 ac_cv_header_time=yes 5648 else 5649 echo "$as_me: failed program was:" >&5 5650 sed 's/^/| /' conftest.$ac_ext >&5 5651 5652 ac_cv_header_time=no 5653 fi 5654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5655 fi 5656 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 5657 echo "${ECHO_T}$ac_cv_header_time" >&6 5658 if test $ac_cv_header_time = yes; then 5659 5660 cat >>confdefs.h <<\_ACEOF 5661 #define TIME_WITH_SYS_TIME 1 5662 _ACEOF 5663 5664 fi 5665 5666 5667 echo "$as_me:$LINENO: checking for uint16_t" >&5 5668 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 5669 if test "${ac_cv_type_uint16_t+set}" = set; then 5670 echo $ECHO_N "(cached) $ECHO_C" >&6 5671 else 5672 cat >conftest.$ac_ext <<_ACEOF 5673 /* confdefs.h. */ 5674 _ACEOF 5675 cat confdefs.h >>conftest.$ac_ext 5676 cat >>conftest.$ac_ext <<_ACEOF 5677 /* end confdefs.h. */ 5678 $ac_includes_default 5679 int 5680 main () 5681 { 5682 if ((uint16_t *) 0) 5683 return 0; 5684 if (sizeof (uint16_t)) 5685 return 0; 5686 ; 5687 return 0; 5688 } 5689 _ACEOF 5690 rm -f conftest.$ac_objext 5691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5692 (eval $ac_compile) 2>conftest.er1 5693 ac_status=$? 5694 grep -v '^ *+' conftest.er1 >conftest.err 5695 rm -f conftest.er1 5696 cat conftest.err >&5 5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5698 (exit $ac_status); } && 5699 { ac_try='test -z "$ac_c_werror_flag" 5700 || test ! -s conftest.err' 5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5702 (eval $ac_try) 2>&5 5703 ac_status=$? 5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5705 (exit $ac_status); }; } && 5706 { ac_try='test -s conftest.$ac_objext' 5707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5708 (eval $ac_try) 2>&5 5709 ac_status=$? 5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5711 (exit $ac_status); }; }; then 5712 ac_cv_type_uint16_t=yes 5713 else 5714 echo "$as_me: failed program was:" >&5 5715 sed 's/^/| /' conftest.$ac_ext >&5 5716 5717 ac_cv_type_uint16_t=no 5718 fi 5719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5720 fi 5721 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 5722 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 5723 if test $ac_cv_type_uint16_t = yes; then 5724 5725 cat >>confdefs.h <<_ACEOF 5726 #define HAVE_UINT16_T 1 5727 _ACEOF 5728 5729 5730 fi 5731 echo "$as_me:$LINENO: checking for u_int16_t" >&5 5732 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6 5733 if test "${ac_cv_type_u_int16_t+set}" = set; then 5734 echo $ECHO_N "(cached) $ECHO_C" >&6 5735 else 5736 cat >conftest.$ac_ext <<_ACEOF 5737 /* confdefs.h. */ 5738 _ACEOF 5739 cat confdefs.h >>conftest.$ac_ext 5740 cat >>conftest.$ac_ext <<_ACEOF 5741 /* end confdefs.h. */ 5742 $ac_includes_default 5743 int 5744 main () 5745 { 5746 if ((u_int16_t *) 0) 5747 return 0; 5748 if (sizeof (u_int16_t)) 5749 return 0; 5750 ; 5751 return 0; 5752 } 5753 _ACEOF 5754 rm -f conftest.$ac_objext 5755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5756 (eval $ac_compile) 2>conftest.er1 5757 ac_status=$? 5758 grep -v '^ *+' conftest.er1 >conftest.err 5759 rm -f conftest.er1 5760 cat conftest.err >&5 5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5762 (exit $ac_status); } && 5763 { ac_try='test -z "$ac_c_werror_flag" 5764 || test ! -s conftest.err' 5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5766 (eval $ac_try) 2>&5 5767 ac_status=$? 5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5769 (exit $ac_status); }; } && 5770 { ac_try='test -s conftest.$ac_objext' 5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5772 (eval $ac_try) 2>&5 5773 ac_status=$? 5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5775 (exit $ac_status); }; }; then 5776 ac_cv_type_u_int16_t=yes 5777 else 5778 echo "$as_me: failed program was:" >&5 5779 sed 's/^/| /' conftest.$ac_ext >&5 5780 5781 ac_cv_type_u_int16_t=no 5782 fi 5783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5784 fi 5785 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 5786 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6 5787 if test $ac_cv_type_u_int16_t = yes; then 5788 5789 cat >>confdefs.h <<_ACEOF 5790 #define HAVE_U_INT16_T 1 5791 _ACEOF 5792 5793 5794 fi 5795 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 5796 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 5797 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then 5798 echo $ECHO_N "(cached) $ECHO_C" >&6 5799 else 5800 cat >conftest.$ac_ext <<_ACEOF 5801 /* confdefs.h. */ 5802 _ACEOF 5803 cat confdefs.h >>conftest.$ac_ext 5804 cat >>conftest.$ac_ext <<_ACEOF 5805 /* end confdefs.h. */ 5806 $ac_includes_default 5807 int 5808 main () 5809 { 5810 if ((struct sockaddr_storage *) 0) 5811 return 0; 5812 if (sizeof (struct sockaddr_storage)) 5813 return 0; 5814 ; 5815 return 0; 5816 } 5817 _ACEOF 5818 rm -f conftest.$ac_objext 5819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5820 (eval $ac_compile) 2>conftest.er1 5821 ac_status=$? 5822 grep -v '^ *+' conftest.er1 >conftest.err 5823 rm -f conftest.er1 5824 cat conftest.err >&5 5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5826 (exit $ac_status); } && 5827 { ac_try='test -z "$ac_c_werror_flag" 5828 || test ! -s conftest.err' 5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5830 (eval $ac_try) 2>&5 5831 ac_status=$? 5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5833 (exit $ac_status); }; } && 5834 { ac_try='test -s conftest.$ac_objext' 5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5836 (eval $ac_try) 2>&5 5837 ac_status=$? 5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5839 (exit $ac_status); }; }; then 5840 ac_cv_type_struct_sockaddr_storage=yes 5841 else 5842 echo "$as_me: failed program was:" >&5 5843 sed 's/^/| /' conftest.$ac_ext >&5 5844 5845 ac_cv_type_struct_sockaddr_storage=no 5846 fi 5847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5848 fi 5849 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5 5850 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6 5851 if test $ac_cv_type_struct_sockaddr_storage = yes; then 5852 5853 cat >>confdefs.h <<_ACEOF 5854 #define HAVE_STRUCT_SOCKADDR_STORAGE 1 5855 _ACEOF 5856 5857 5858 fi 5859 5860 echo "$as_me:$LINENO: checking for socklen_t" >&5 5861 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 5862 if test "${ac_cv_type_socklen_t+set}" = set; then 5863 echo $ECHO_N "(cached) $ECHO_C" >&6 5864 else 5865 cat >conftest.$ac_ext <<_ACEOF 5866 /* confdefs.h. */ 5867 _ACEOF 5868 cat confdefs.h >>conftest.$ac_ext 5869 cat >>conftest.$ac_ext <<_ACEOF 5870 /* end confdefs.h. */ 5871 #include <sys/types.h> 5872 #include <sys/socket.h> 5873 5874 int 5875 main () 5876 { 5877 if ((socklen_t *) 0) 5878 return 0; 5879 if (sizeof (socklen_t)) 5880 return 0; 5881 ; 5882 return 0; 5883 } 5884 _ACEOF 5885 rm -f conftest.$ac_objext 5886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5887 (eval $ac_compile) 2>conftest.er1 5888 ac_status=$? 5889 grep -v '^ *+' conftest.er1 >conftest.err 5890 rm -f conftest.er1 5891 cat conftest.err >&5 5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5893 (exit $ac_status); } && 5894 { ac_try='test -z "$ac_c_werror_flag" 5895 || test ! -s conftest.err' 5896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5897 (eval $ac_try) 2>&5 5898 ac_status=$? 5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5900 (exit $ac_status); }; } && 5901 { ac_try='test -s conftest.$ac_objext' 5902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5903 (eval $ac_try) 2>&5 5904 ac_status=$? 5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5906 (exit $ac_status); }; }; then 5907 ac_cv_type_socklen_t=yes 5908 else 5909 echo "$as_me: failed program was:" >&5 5910 sed 's/^/| /' conftest.$ac_ext >&5 5911 5912 ac_cv_type_socklen_t=no 5913 fi 5914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5915 fi 5916 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 5917 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 5918 if test $ac_cv_type_socklen_t = yes; then 5919 : 5920 else 5921 5922 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 5923 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6 5924 if test "${curl_cv_socklen_t_equiv+set}" = set; then 5925 echo $ECHO_N "(cached) $ECHO_C" >&6 5926 else 5927 5928 # Systems have either "struct sockaddr *" or 5929 # "void *" as the second argument to getpeername 5930 curl_cv_socklen_t_equiv= 5931 for arg2 in "struct sockaddr" void; do 5932 for t in int size_t unsigned long "unsigned long"; do 5933 cat >conftest.$ac_ext <<_ACEOF 5934 /* confdefs.h. */ 5935 _ACEOF 5936 cat confdefs.h >>conftest.$ac_ext 5937 cat >>conftest.$ac_ext <<_ACEOF 5938 /* end confdefs.h. */ 5939 5940 #include <sys/types.h> 5941 #include <sys/socket.h> 5942 5943 int getpeername (int, $arg2 *, $t *); 5944 5945 int 5946 main () 5947 { 5948 5949 $t len; 5950 getpeername(0,0,&len); 5951 5952 ; 5953 return 0; 5954 } 5955 _ACEOF 5956 rm -f conftest.$ac_objext 5957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5958 (eval $ac_compile) 2>conftest.er1 5959 ac_status=$? 5960 grep -v '^ *+' conftest.er1 >conftest.err 5961 rm -f conftest.er1 5962 cat conftest.err >&5 5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5964 (exit $ac_status); } && 5965 { ac_try='test -z "$ac_c_werror_flag" 5966 || test ! -s conftest.err' 5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5968 (eval $ac_try) 2>&5 5969 ac_status=$? 5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5971 (exit $ac_status); }; } && 5972 { ac_try='test -s conftest.$ac_objext' 5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5974 (eval $ac_try) 2>&5 5975 ac_status=$? 5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5977 (exit $ac_status); }; }; then 5978 5979 curl_cv_socklen_t_equiv="$t" 5980 break 5981 5982 else 5983 echo "$as_me: failed program was:" >&5 5984 sed 's/^/| /' conftest.$ac_ext >&5 5985 5986 fi 5987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5988 done 5989 done 5990 5991 if test "x$curl_cv_socklen_t_equiv" = x; then 5992 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5 5993 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} 5994 { (exit 1); exit 1; }; } 5995 fi 5996 5997 fi 5998 5999 echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 6000 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6 6001 6002 cat >>confdefs.h <<_ACEOF 6003 #define socklen_t $curl_cv_socklen_t_equiv 6004 _ACEOF 6005 6006 fi 6007 6008 6009 # for the fake-rfc2553 stuff - straight from OpenSSH 6010 6011 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 6012 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 6013 if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then 6014 echo $ECHO_N "(cached) $ECHO_C" >&6 6015 else 6016 6017 cat >conftest.$ac_ext <<_ACEOF 6018 /* confdefs.h. */ 6019 _ACEOF 6020 cat confdefs.h >>conftest.$ac_ext 6021 cat >>conftest.$ac_ext <<_ACEOF 6022 /* end confdefs.h. */ 6023 6024 #include <sys/types.h> 6025 #include <sys/socket.h> 6026 6027 int 6028 main () 6029 { 6030 struct sockaddr_storage s; 6031 ; 6032 return 0; 6033 } 6034 _ACEOF 6035 rm -f conftest.$ac_objext 6036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6037 (eval $ac_compile) 2>conftest.er1 6038 ac_status=$? 6039 grep -v '^ *+' conftest.er1 >conftest.err 6040 rm -f conftest.er1 6041 cat conftest.err >&5 6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6043 (exit $ac_status); } && 6044 { ac_try='test -z "$ac_c_werror_flag" 6045 || test ! -s conftest.err' 6046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6047 (eval $ac_try) 2>&5 6048 ac_status=$? 6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6050 (exit $ac_status); }; } && 6051 { ac_try='test -s conftest.$ac_objext' 6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6053 (eval $ac_try) 2>&5 6054 ac_status=$? 6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6056 (exit $ac_status); }; }; then 6057 ac_cv_have_struct_sockaddr_storage="yes" 6058 else 6059 echo "$as_me: failed program was:" >&5 6060 sed 's/^/| /' conftest.$ac_ext >&5 6061 6062 ac_cv_have_struct_sockaddr_storage="no" 6063 6064 fi 6065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6066 6067 fi 6068 echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5 6069 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6 6070 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then 6071 cat >>confdefs.h <<\_ACEOF 6072 #define HAVE_STRUCT_SOCKADDR_STORAGE 1 6073 _ACEOF 6074 6075 fi 6076 6077 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 6078 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6 6079 if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then 6080 echo $ECHO_N "(cached) $ECHO_C" >&6 6081 else 6082 6083 cat >conftest.$ac_ext <<_ACEOF 6084 /* confdefs.h. */ 6085 _ACEOF 6086 cat confdefs.h >>conftest.$ac_ext 6087 cat >>conftest.$ac_ext <<_ACEOF 6088 /* end confdefs.h. */ 6089 6090 #include <sys/types.h> 6091 #include <netinet/in.h> 6092 6093 int 6094 main () 6095 { 6096 struct sockaddr_in6 s; s.sin6_family = 0; 6097 ; 6098 return 0; 6099 } 6100 _ACEOF 6101 rm -f conftest.$ac_objext 6102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6103 (eval $ac_compile) 2>conftest.er1 6104 ac_status=$? 6105 grep -v '^ *+' conftest.er1 >conftest.err 6106 rm -f conftest.er1 6107 cat conftest.err >&5 6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6109 (exit $ac_status); } && 6110 { ac_try='test -z "$ac_c_werror_flag" 6111 || test ! -s conftest.err' 6112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6113 (eval $ac_try) 2>&5 6114 ac_status=$? 6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6116 (exit $ac_status); }; } && 6117 { ac_try='test -s conftest.$ac_objext' 6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6119 (eval $ac_try) 2>&5 6120 ac_status=$? 6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6122 (exit $ac_status); }; }; then 6123 ac_cv_have_struct_sockaddr_in6="yes" 6124 else 6125 echo "$as_me: failed program was:" >&5 6126 sed 's/^/| /' conftest.$ac_ext >&5 6127 6128 ac_cv_have_struct_sockaddr_in6="no" 6129 6130 fi 6131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6132 6133 fi 6134 echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5 6135 echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6 6136 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then 6137 6138 cat >>confdefs.h <<\_ACEOF 6139 #define HAVE_STRUCT_SOCKADDR_IN6 6140 _ACEOF 6141 6142 fi 6143 6144 echo "$as_me:$LINENO: checking for struct in6_addr" >&5 6145 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6 6146 if test "${ac_cv_have_struct_in6_addr+set}" = set; then 6147 echo $ECHO_N "(cached) $ECHO_C" >&6 6148 else 6149 6150 cat >conftest.$ac_ext <<_ACEOF 6151 /* confdefs.h. */ 6152 _ACEOF 6153 cat confdefs.h >>conftest.$ac_ext 6154 cat >>conftest.$ac_ext <<_ACEOF 6155 /* end confdefs.h. */ 6156 6157 #include <sys/types.h> 6158 #include <netinet/in.h> 6159 6160 int 6161 main () 6162 { 6163 struct in6_addr s; s.s6_addr[0] = 0; 6164 ; 6165 return 0; 6166 } 6167 _ACEOF 6168 rm -f conftest.$ac_objext 6169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6170 (eval $ac_compile) 2>conftest.er1 6171 ac_status=$? 6172 grep -v '^ *+' conftest.er1 >conftest.err 6173 rm -f conftest.er1 6174 cat conftest.err >&5 6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6176 (exit $ac_status); } && 6177 { ac_try='test -z "$ac_c_werror_flag" 6178 || test ! -s conftest.err' 6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6180 (eval $ac_try) 2>&5 6181 ac_status=$? 6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6183 (exit $ac_status); }; } && 6184 { ac_try='test -s conftest.$ac_objext' 6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6186 (eval $ac_try) 2>&5 6187 ac_status=$? 6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6189 (exit $ac_status); }; }; then 6190 ac_cv_have_struct_in6_addr="yes" 6191 else 6192 echo "$as_me: failed program was:" >&5 6193 sed 's/^/| /' conftest.$ac_ext >&5 6194 6195 ac_cv_have_struct_in6_addr="no" 6196 6197 fi 6198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6199 6200 fi 6201 echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5 6202 echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6 6203 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then 6204 6205 cat >>confdefs.h <<\_ACEOF 6206 #define HAVE_STRUCT_IN6_ADDR 6207 _ACEOF 6208 6209 fi 6210 6211 echo "$as_me:$LINENO: checking for struct addrinfo" >&5 6212 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 6213 if test "${ac_cv_have_struct_addrinfo+set}" = set; then 6214 echo $ECHO_N "(cached) $ECHO_C" >&6 6215 else 6216 6217 cat >conftest.$ac_ext <<_ACEOF 6218 /* confdefs.h. */ 6219 _ACEOF 6220 cat confdefs.h >>conftest.$ac_ext 6221 cat >>conftest.$ac_ext <<_ACEOF 6222 /* end confdefs.h. */ 6223 6224 #include <sys/types.h> 6225 #include <sys/socket.h> 6226 #include <netdb.h> 6227 6228 int 6229 main () 6230 { 6231 struct addrinfo s; s.ai_flags = AI_PASSIVE; 6232 ; 6233 return 0; 6234 } 6235 _ACEOF 6236 rm -f conftest.$ac_objext 6237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6238 (eval $ac_compile) 2>conftest.er1 6239 ac_status=$? 6240 grep -v '^ *+' conftest.er1 >conftest.err 6241 rm -f conftest.er1 6242 cat conftest.err >&5 6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6244 (exit $ac_status); } && 6245 { ac_try='test -z "$ac_c_werror_flag" 6246 || test ! -s conftest.err' 6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6248 (eval $ac_try) 2>&5 6249 ac_status=$? 6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6251 (exit $ac_status); }; } && 6252 { ac_try='test -s conftest.$ac_objext' 6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6254 (eval $ac_try) 2>&5 6255 ac_status=$? 6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6257 (exit $ac_status); }; }; then 6258 ac_cv_have_struct_addrinfo="yes" 6259 else 6260 echo "$as_me: failed program was:" >&5 6261 sed 's/^/| /' conftest.$ac_ext >&5 6262 6263 ac_cv_have_struct_addrinfo="no" 6264 6265 fi 6266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6267 6268 fi 6269 echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5 6270 echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6 6271 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then 6272 6273 cat >>confdefs.h <<\_ACEOF 6274 #define HAVE_STRUCT_ADDRINFO 6275 _ACEOF 6276 6277 fi 6278 6279 6280 # IRIX has a const char return value for gai_strerror() 6281 6282 for ac_func in gai_strerror 6283 do 6284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6285 echo "$as_me:$LINENO: checking for $ac_func" >&5 6286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6287 if eval "test \"\${$as_ac_var+set}\" = set"; then 6288 echo $ECHO_N "(cached) $ECHO_C" >&6 6289 else 6290 cat >conftest.$ac_ext <<_ACEOF 6291 /* confdefs.h. */ 6292 _ACEOF 6293 cat confdefs.h >>conftest.$ac_ext 6294 cat >>conftest.$ac_ext <<_ACEOF 6295 /* end confdefs.h. */ 6296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6297 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6298 #define $ac_func innocuous_$ac_func 6299 6300 /* System header to define __stub macros and hopefully few prototypes, 6301 which can conflict with char $ac_func (); below. 6302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6303 <limits.h> exists even on freestanding compilers. */ 6304 6305 #ifdef __STDC__ 6306 # include <limits.h> 6307 #else 6308 # include <assert.h> 6309 #endif 6310 6311 #undef $ac_func 6312 6313 /* Override any gcc2 internal prototype to avoid an error. */ 6314 #ifdef __cplusplus 6315 extern "C" 6316 { 6317 #endif 6318 /* We use char because int might match the return type of a gcc2 6319 builtin and then its argument prototype would still apply. */ 6320 char $ac_func (); 6321 /* The GNU C library defines this for functions which it implements 6322 to always fail with ENOSYS. Some functions are actually named 6323 something starting with __ and the normal name is an alias. */ 6324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6325 choke me 6326 #else 6327 char (*f) () = $ac_func; 6328 #endif 6329 #ifdef __cplusplus 6330 } 6331 #endif 6332 6333 int 6334 main () 6335 { 6336 return f != $ac_func; 6337 ; 6338 return 0; 6339 } 6340 _ACEOF 6341 rm -f conftest.$ac_objext conftest$ac_exeext 6342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6343 (eval $ac_link) 2>conftest.er1 6344 ac_status=$? 6345 grep -v '^ *+' conftest.er1 >conftest.err 6346 rm -f conftest.er1 6347 cat conftest.err >&5 6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6349 (exit $ac_status); } && 6350 { ac_try='test -z "$ac_c_werror_flag" 6351 || test ! -s conftest.err' 6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6353 (eval $ac_try) 2>&5 6354 ac_status=$? 6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6356 (exit $ac_status); }; } && 6357 { ac_try='test -s conftest$ac_exeext' 6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6359 (eval $ac_try) 2>&5 6360 ac_status=$? 6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6362 (exit $ac_status); }; }; then 6363 eval "$as_ac_var=yes" 6364 else 6365 echo "$as_me: failed program was:" >&5 6366 sed 's/^/| /' conftest.$ac_ext >&5 6367 6368 eval "$as_ac_var=no" 6369 fi 6370 rm -f conftest.err conftest.$ac_objext \ 6371 conftest$ac_exeext conftest.$ac_ext 6372 fi 6373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6375 if test `eval echo '${'$as_ac_var'}'` = yes; then 6376 cat >>confdefs.h <<_ACEOF 6377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6378 _ACEOF 6379 6380 cat >>confdefs.h <<\_ACEOF 6381 #define HAVE_GAI_STRERROR 1 6382 _ACEOF 6383 6384 cat >conftest.$ac_ext <<_ACEOF 6385 /* confdefs.h. */ 6386 _ACEOF 6387 cat confdefs.h >>conftest.$ac_ext 6388 cat >>conftest.$ac_ext <<_ACEOF 6389 /* end confdefs.h. */ 6390 6391 #include <sys/types.h> 6392 #include <sys/socket.h> 6393 #include <netdb.h> 6394 6395 const char *gai_strerror(int); 6396 int 6397 main () 6398 { 6399 6400 char *str; 6401 6402 str = gai_strerror(0); 6403 ; 6404 return 0; 6405 } 6406 _ACEOF 6407 rm -f conftest.$ac_objext 6408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6409 (eval $ac_compile) 2>conftest.er1 6410 ac_status=$? 6411 grep -v '^ *+' conftest.er1 >conftest.err 6412 rm -f conftest.er1 6413 cat conftest.err >&5 6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6415 (exit $ac_status); } && 6416 { ac_try='test -z "$ac_c_werror_flag" 6417 || test ! -s conftest.err' 6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6419 (eval $ac_try) 2>&5 6420 ac_status=$? 6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6422 (exit $ac_status); }; } && 6423 { ac_try='test -s conftest.$ac_objext' 6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6425 (eval $ac_try) 2>&5 6426 ac_status=$? 6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6428 (exit $ac_status); }; }; then 6429 6430 6431 cat >>confdefs.h <<\_ACEOF 6432 #define HAVE_CONST_GAI_STRERROR_PROTO 1 6433 _ACEOF 6434 6435 else 6436 echo "$as_me: failed program was:" >&5 6437 sed 's/^/| /' conftest.$ac_ext >&5 6438 6439 fi 6440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6441 fi 6442 done 6443 6444 6445 # for loginrec.c 6446 6447 echo "$as_me:$LINENO: checking for struct utmp.ut_host" >&5 6448 echo $ECHO_N "checking for struct utmp.ut_host... $ECHO_C" >&6 6449 if test "${ac_cv_member_struct_utmp_ut_host+set}" = set; then 6450 echo $ECHO_N "(cached) $ECHO_C" >&6 6451 else 6452 cat >conftest.$ac_ext <<_ACEOF 6453 /* confdefs.h. */ 6454 _ACEOF 6455 cat confdefs.h >>conftest.$ac_ext 6456 cat >>conftest.$ac_ext <<_ACEOF 6457 /* end confdefs.h. */ 6458 6459 #include <sys/types.h> 6460 #if HAVE_UTMP_H 6461 #include <utmp.h> 6462 #endif 6463 6464 6465 int 6466 main () 6467 { 6468 static struct utmp ac_aggr; 6469 if (ac_aggr.ut_host) 6470 return 0; 6471 ; 6472 return 0; 6473 } 6474 _ACEOF 6475 rm -f conftest.$ac_objext 6476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6477 (eval $ac_compile) 2>conftest.er1 6478 ac_status=$? 6479 grep -v '^ *+' conftest.er1 >conftest.err 6480 rm -f conftest.er1 6481 cat conftest.err >&5 6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6483 (exit $ac_status); } && 6484 { ac_try='test -z "$ac_c_werror_flag" 6485 || test ! -s conftest.err' 6486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6487 (eval $ac_try) 2>&5 6488 ac_status=$? 6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6490 (exit $ac_status); }; } && 6491 { ac_try='test -s conftest.$ac_objext' 6492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6493 (eval $ac_try) 2>&5 6494 ac_status=$? 6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6496 (exit $ac_status); }; }; then 6497 ac_cv_member_struct_utmp_ut_host=yes 6498 else 6499 echo "$as_me: failed program was:" >&5 6500 sed 's/^/| /' conftest.$ac_ext >&5 6501 6502 cat >conftest.$ac_ext <<_ACEOF 6503 /* confdefs.h. */ 6504 _ACEOF 6505 cat confdefs.h >>conftest.$ac_ext 6506 cat >>conftest.$ac_ext <<_ACEOF 6507 /* end confdefs.h. */ 6508 6509 #include <sys/types.h> 6510 #if HAVE_UTMP_H 6511 #include <utmp.h> 6512 #endif 6513 6514 6515 int 6516 main () 6517 { 6518 static struct utmp ac_aggr; 6519 if (sizeof ac_aggr.ut_host) 6520 return 0; 6521 ; 6522 return 0; 6523 } 6524 _ACEOF 6525 rm -f conftest.$ac_objext 6526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6527 (eval $ac_compile) 2>conftest.er1 6528 ac_status=$? 6529 grep -v '^ *+' conftest.er1 >conftest.err 6530 rm -f conftest.er1 6531 cat conftest.err >&5 6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6533 (exit $ac_status); } && 6534 { ac_try='test -z "$ac_c_werror_flag" 6535 || test ! -s conftest.err' 6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6537 (eval $ac_try) 2>&5 6538 ac_status=$? 6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6540 (exit $ac_status); }; } && 6541 { ac_try='test -s conftest.$ac_objext' 6542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6543 (eval $ac_try) 2>&5 6544 ac_status=$? 6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6546 (exit $ac_status); }; }; then 6547 ac_cv_member_struct_utmp_ut_host=yes 6548 else 6549 echo "$as_me: failed program was:" >&5 6550 sed 's/^/| /' conftest.$ac_ext >&5 6551 6552 ac_cv_member_struct_utmp_ut_host=no 6553 fi 6554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6555 fi 6556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6557 fi 6558 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_host" >&5 6559 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_host" >&6 6560 if test $ac_cv_member_struct_utmp_ut_host = yes; then 6561 6562 cat >>confdefs.h <<_ACEOF 6563 #define HAVE_STRUCT_UTMP_UT_HOST 1 6564 _ACEOF 6565 6566 6567 fi 6568 echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5 6569 echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6 6570 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then 6571 echo $ECHO_N "(cached) $ECHO_C" >&6 6572 else 6573 cat >conftest.$ac_ext <<_ACEOF 6574 /* confdefs.h. */ 6575 _ACEOF 6576 cat confdefs.h >>conftest.$ac_ext 6577 cat >>conftest.$ac_ext <<_ACEOF 6578 /* end confdefs.h. */ 6579 6580 #include <sys/types.h> 6581 #if HAVE_UTMP_H 6582 #include <utmp.h> 6583 #endif 6584 6585 6586 int 6587 main () 6588 { 6589 static struct utmp ac_aggr; 6590 if (ac_aggr.ut_pid) 6591 return 0; 6592 ; 6593 return 0; 6594 } 6595 _ACEOF 6596 rm -f conftest.$ac_objext 6597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6598 (eval $ac_compile) 2>conftest.er1 6599 ac_status=$? 6600 grep -v '^ *+' conftest.er1 >conftest.err 6601 rm -f conftest.er1 6602 cat conftest.err >&5 6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6604 (exit $ac_status); } && 6605 { ac_try='test -z "$ac_c_werror_flag" 6606 || test ! -s conftest.err' 6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6608 (eval $ac_try) 2>&5 6609 ac_status=$? 6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6611 (exit $ac_status); }; } && 6612 { ac_try='test -s conftest.$ac_objext' 6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6614 (eval $ac_try) 2>&5 6615 ac_status=$? 6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6617 (exit $ac_status); }; }; then 6618 ac_cv_member_struct_utmp_ut_pid=yes 6619 else 6620 echo "$as_me: failed program was:" >&5 6621 sed 's/^/| /' conftest.$ac_ext >&5 6622 6623 cat >conftest.$ac_ext <<_ACEOF 6624 /* confdefs.h. */ 6625 _ACEOF 6626 cat confdefs.h >>conftest.$ac_ext 6627 cat >>conftest.$ac_ext <<_ACEOF 6628 /* end confdefs.h. */ 6629 6630 #include <sys/types.h> 6631 #if HAVE_UTMP_H 6632 #include <utmp.h> 6633 #endif 6634 6635 6636 int 6637 main () 6638 { 6639 static struct utmp ac_aggr; 6640 if (sizeof ac_aggr.ut_pid) 6641 return 0; 6642 ; 6643 return 0; 6644 } 6645 _ACEOF 6646 rm -f conftest.$ac_objext 6647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6648 (eval $ac_compile) 2>conftest.er1 6649 ac_status=$? 6650 grep -v '^ *+' conftest.er1 >conftest.err 6651 rm -f conftest.er1 6652 cat conftest.err >&5 6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6654 (exit $ac_status); } && 6655 { ac_try='test -z "$ac_c_werror_flag" 6656 || test ! -s conftest.err' 6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6658 (eval $ac_try) 2>&5 6659 ac_status=$? 6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6661 (exit $ac_status); }; } && 6662 { ac_try='test -s conftest.$ac_objext' 6663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6664 (eval $ac_try) 2>&5 6665 ac_status=$? 6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6667 (exit $ac_status); }; }; then 6668 ac_cv_member_struct_utmp_ut_pid=yes 6669 else 6670 echo "$as_me: failed program was:" >&5 6671 sed 's/^/| /' conftest.$ac_ext >&5 6672 6673 ac_cv_member_struct_utmp_ut_pid=no 6674 fi 6675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6676 fi 6677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6678 fi 6679 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5 6680 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6 6681 if test $ac_cv_member_struct_utmp_ut_pid = yes; then 6682 6683 cat >>confdefs.h <<_ACEOF 6684 #define HAVE_STRUCT_UTMP_UT_PID 1 6685 _ACEOF 6686 6687 6688 fi 6689 echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5 6690 echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6 6691 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then 6692 echo $ECHO_N "(cached) $ECHO_C" >&6 6693 else 6694 cat >conftest.$ac_ext <<_ACEOF 6695 /* confdefs.h. */ 6696 _ACEOF 6697 cat confdefs.h >>conftest.$ac_ext 6698 cat >>conftest.$ac_ext <<_ACEOF 6699 /* end confdefs.h. */ 6700 6701 #include <sys/types.h> 6702 #if HAVE_UTMP_H 6703 #include <utmp.h> 6704 #endif 6705 6706 6707 int 6708 main () 6709 { 6710 static struct utmp ac_aggr; 6711 if (ac_aggr.ut_type) 6712 return 0; 6713 ; 6714 return 0; 6715 } 6716 _ACEOF 6717 rm -f conftest.$ac_objext 6718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6719 (eval $ac_compile) 2>conftest.er1 6720 ac_status=$? 6721 grep -v '^ *+' conftest.er1 >conftest.err 6722 rm -f conftest.er1 6723 cat conftest.err >&5 6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6725 (exit $ac_status); } && 6726 { ac_try='test -z "$ac_c_werror_flag" 6727 || test ! -s conftest.err' 6728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6729 (eval $ac_try) 2>&5 6730 ac_status=$? 6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6732 (exit $ac_status); }; } && 6733 { ac_try='test -s conftest.$ac_objext' 6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6735 (eval $ac_try) 2>&5 6736 ac_status=$? 6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6738 (exit $ac_status); }; }; then 6739 ac_cv_member_struct_utmp_ut_type=yes 6740 else 6741 echo "$as_me: failed program was:" >&5 6742 sed 's/^/| /' conftest.$ac_ext >&5 6743 6744 cat >conftest.$ac_ext <<_ACEOF 6745 /* confdefs.h. */ 6746 _ACEOF 6747 cat confdefs.h >>conftest.$ac_ext 6748 cat >>conftest.$ac_ext <<_ACEOF 6749 /* end confdefs.h. */ 6750 6751 #include <sys/types.h> 6752 #if HAVE_UTMP_H 6753 #include <utmp.h> 6754 #endif 6755 6756 6757 int 6758 main () 6759 { 6760 static struct utmp ac_aggr; 6761 if (sizeof ac_aggr.ut_type) 6762 return 0; 6763 ; 6764 return 0; 6765 } 6766 _ACEOF 6767 rm -f conftest.$ac_objext 6768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6769 (eval $ac_compile) 2>conftest.er1 6770 ac_status=$? 6771 grep -v '^ *+' conftest.er1 >conftest.err 6772 rm -f conftest.er1 6773 cat conftest.err >&5 6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6775 (exit $ac_status); } && 6776 { ac_try='test -z "$ac_c_werror_flag" 6777 || test ! -s conftest.err' 6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6779 (eval $ac_try) 2>&5 6780 ac_status=$? 6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6782 (exit $ac_status); }; } && 6783 { ac_try='test -s conftest.$ac_objext' 6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6785 (eval $ac_try) 2>&5 6786 ac_status=$? 6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6788 (exit $ac_status); }; }; then 6789 ac_cv_member_struct_utmp_ut_type=yes 6790 else 6791 echo "$as_me: failed program was:" >&5 6792 sed 's/^/| /' conftest.$ac_ext >&5 6793 6794 ac_cv_member_struct_utmp_ut_type=no 6795 fi 6796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6797 fi 6798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6799 fi 6800 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5 6801 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6 6802 if test $ac_cv_member_struct_utmp_ut_type = yes; then 6803 6804 cat >>confdefs.h <<_ACEOF 6805 #define HAVE_STRUCT_UTMP_UT_TYPE 1 6806 _ACEOF 6807 6808 6809 fi 6810 echo "$as_me:$LINENO: checking for struct utmp.ut_tv" >&5 6811 echo $ECHO_N "checking for struct utmp.ut_tv... $ECHO_C" >&6 6812 if test "${ac_cv_member_struct_utmp_ut_tv+set}" = set; then 6813 echo $ECHO_N "(cached) $ECHO_C" >&6 6814 else 6815 cat >conftest.$ac_ext <<_ACEOF 6816 /* confdefs.h. */ 6817 _ACEOF 6818 cat confdefs.h >>conftest.$ac_ext 6819 cat >>conftest.$ac_ext <<_ACEOF 6820 /* end confdefs.h. */ 6821 6822 #include <sys/types.h> 6823 #if HAVE_UTMP_H 6824 #include <utmp.h> 6825 #endif 6826 6827 6828 int 6829 main () 6830 { 6831 static struct utmp ac_aggr; 6832 if (ac_aggr.ut_tv) 6833 return 0; 6834 ; 6835 return 0; 6836 } 6837 _ACEOF 6838 rm -f conftest.$ac_objext 6839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6840 (eval $ac_compile) 2>conftest.er1 6841 ac_status=$? 6842 grep -v '^ *+' conftest.er1 >conftest.err 6843 rm -f conftest.er1 6844 cat conftest.err >&5 6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6846 (exit $ac_status); } && 6847 { ac_try='test -z "$ac_c_werror_flag" 6848 || test ! -s conftest.err' 6849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6850 (eval $ac_try) 2>&5 6851 ac_status=$? 6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6853 (exit $ac_status); }; } && 6854 { ac_try='test -s conftest.$ac_objext' 6855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6856 (eval $ac_try) 2>&5 6857 ac_status=$? 6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6859 (exit $ac_status); }; }; then 6860 ac_cv_member_struct_utmp_ut_tv=yes 6861 else 6862 echo "$as_me: failed program was:" >&5 6863 sed 's/^/| /' conftest.$ac_ext >&5 6864 6865 cat >conftest.$ac_ext <<_ACEOF 6866 /* confdefs.h. */ 6867 _ACEOF 6868 cat confdefs.h >>conftest.$ac_ext 6869 cat >>conftest.$ac_ext <<_ACEOF 6870 /* end confdefs.h. */ 6871 6872 #include <sys/types.h> 6873 #if HAVE_UTMP_H 6874 #include <utmp.h> 6875 #endif 6876 6877 6878 int 6879 main () 6880 { 6881 static struct utmp ac_aggr; 6882 if (sizeof ac_aggr.ut_tv) 6883 return 0; 6884 ; 6885 return 0; 6886 } 6887 _ACEOF 6888 rm -f conftest.$ac_objext 6889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6890 (eval $ac_compile) 2>conftest.er1 6891 ac_status=$? 6892 grep -v '^ *+' conftest.er1 >conftest.err 6893 rm -f conftest.er1 6894 cat conftest.err >&5 6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6896 (exit $ac_status); } && 6897 { ac_try='test -z "$ac_c_werror_flag" 6898 || test ! -s conftest.err' 6899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6900 (eval $ac_try) 2>&5 6901 ac_status=$? 6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6903 (exit $ac_status); }; } && 6904 { ac_try='test -s conftest.$ac_objext' 6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6906 (eval $ac_try) 2>&5 6907 ac_status=$? 6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6909 (exit $ac_status); }; }; then 6910 ac_cv_member_struct_utmp_ut_tv=yes 6911 else 6912 echo "$as_me: failed program was:" >&5 6913 sed 's/^/| /' conftest.$ac_ext >&5 6914 6915 ac_cv_member_struct_utmp_ut_tv=no 6916 fi 6917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6918 fi 6919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6920 fi 6921 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_tv" >&5 6922 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_tv" >&6 6923 if test $ac_cv_member_struct_utmp_ut_tv = yes; then 6924 6925 cat >>confdefs.h <<_ACEOF 6926 #define HAVE_STRUCT_UTMP_UT_TV 1 6927 _ACEOF 6928 6929 6930 fi 6931 echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5 6932 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6 6933 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then 6934 echo $ECHO_N "(cached) $ECHO_C" >&6 6935 else 6936 cat >conftest.$ac_ext <<_ACEOF 6937 /* confdefs.h. */ 6938 _ACEOF 6939 cat confdefs.h >>conftest.$ac_ext 6940 cat >>conftest.$ac_ext <<_ACEOF 6941 /* end confdefs.h. */ 6942 6943 #include <sys/types.h> 6944 #if HAVE_UTMP_H 6945 #include <utmp.h> 6946 #endif 6947 6948 6949 int 6950 main () 6951 { 6952 static struct utmp ac_aggr; 6953 if (ac_aggr.ut_id) 6954 return 0; 6955 ; 6956 return 0; 6957 } 6958 _ACEOF 6959 rm -f conftest.$ac_objext 6960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6961 (eval $ac_compile) 2>conftest.er1 6962 ac_status=$? 6963 grep -v '^ *+' conftest.er1 >conftest.err 6964 rm -f conftest.er1 6965 cat conftest.err >&5 6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6967 (exit $ac_status); } && 6968 { ac_try='test -z "$ac_c_werror_flag" 6969 || test ! -s conftest.err' 6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6971 (eval $ac_try) 2>&5 6972 ac_status=$? 6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6974 (exit $ac_status); }; } && 6975 { ac_try='test -s conftest.$ac_objext' 6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6977 (eval $ac_try) 2>&5 6978 ac_status=$? 6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6980 (exit $ac_status); }; }; then 6981 ac_cv_member_struct_utmp_ut_id=yes 6982 else 6983 echo "$as_me: failed program was:" >&5 6984 sed 's/^/| /' conftest.$ac_ext >&5 6985 6986 cat >conftest.$ac_ext <<_ACEOF 6987 /* confdefs.h. */ 6988 _ACEOF 6989 cat confdefs.h >>conftest.$ac_ext 6990 cat >>conftest.$ac_ext <<_ACEOF 6991 /* end confdefs.h. */ 6992 6993 #include <sys/types.h> 6994 #if HAVE_UTMP_H 6995 #include <utmp.h> 6996 #endif 6997 6998 6999 int 7000 main () 7001 { 7002 static struct utmp ac_aggr; 7003 if (sizeof ac_aggr.ut_id) 7004 return 0; 7005 ; 7006 return 0; 7007 } 7008 _ACEOF 7009 rm -f conftest.$ac_objext 7010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7011 (eval $ac_compile) 2>conftest.er1 7012 ac_status=$? 7013 grep -v '^ *+' conftest.er1 >conftest.err 7014 rm -f conftest.er1 7015 cat conftest.err >&5 7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7017 (exit $ac_status); } && 7018 { ac_try='test -z "$ac_c_werror_flag" 7019 || test ! -s conftest.err' 7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7021 (eval $ac_try) 2>&5 7022 ac_status=$? 7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7024 (exit $ac_status); }; } && 7025 { ac_try='test -s conftest.$ac_objext' 7026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7027 (eval $ac_try) 2>&5 7028 ac_status=$? 7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7030 (exit $ac_status); }; }; then 7031 ac_cv_member_struct_utmp_ut_id=yes 7032 else 7033 echo "$as_me: failed program was:" >&5 7034 sed 's/^/| /' conftest.$ac_ext >&5 7035 7036 ac_cv_member_struct_utmp_ut_id=no 7037 fi 7038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7039 fi 7040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7041 fi 7042 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5 7043 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6 7044 if test $ac_cv_member_struct_utmp_ut_id = yes; then 7045 7046 cat >>confdefs.h <<_ACEOF 7047 #define HAVE_STRUCT_UTMP_UT_ID 1 7048 _ACEOF 7049 7050 7051 fi 7052 echo "$as_me:$LINENO: checking for struct utmp.ut_addr" >&5 7053 echo $ECHO_N "checking for struct utmp.ut_addr... $ECHO_C" >&6 7054 if test "${ac_cv_member_struct_utmp_ut_addr+set}" = set; then 7055 echo $ECHO_N "(cached) $ECHO_C" >&6 7056 else 7057 cat >conftest.$ac_ext <<_ACEOF 7058 /* confdefs.h. */ 7059 _ACEOF 7060 cat confdefs.h >>conftest.$ac_ext 7061 cat >>conftest.$ac_ext <<_ACEOF 7062 /* end confdefs.h. */ 7063 7064 #include <sys/types.h> 7065 #if HAVE_UTMP_H 7066 #include <utmp.h> 7067 #endif 7068 7069 7070 int 7071 main () 7072 { 7073 static struct utmp ac_aggr; 7074 if (ac_aggr.ut_addr) 7075 return 0; 7076 ; 7077 return 0; 7078 } 7079 _ACEOF 7080 rm -f conftest.$ac_objext 7081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7082 (eval $ac_compile) 2>conftest.er1 7083 ac_status=$? 7084 grep -v '^ *+' conftest.er1 >conftest.err 7085 rm -f conftest.er1 7086 cat conftest.err >&5 7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7088 (exit $ac_status); } && 7089 { ac_try='test -z "$ac_c_werror_flag" 7090 || test ! -s conftest.err' 7091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7092 (eval $ac_try) 2>&5 7093 ac_status=$? 7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7095 (exit $ac_status); }; } && 7096 { ac_try='test -s conftest.$ac_objext' 7097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7098 (eval $ac_try) 2>&5 7099 ac_status=$? 7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7101 (exit $ac_status); }; }; then 7102 ac_cv_member_struct_utmp_ut_addr=yes 7103 else 7104 echo "$as_me: failed program was:" >&5 7105 sed 's/^/| /' conftest.$ac_ext >&5 7106 7107 cat >conftest.$ac_ext <<_ACEOF 7108 /* confdefs.h. */ 7109 _ACEOF 7110 cat confdefs.h >>conftest.$ac_ext 7111 cat >>conftest.$ac_ext <<_ACEOF 7112 /* end confdefs.h. */ 7113 7114 #include <sys/types.h> 7115 #if HAVE_UTMP_H 7116 #include <utmp.h> 7117 #endif 7118 7119 7120 int 7121 main () 7122 { 7123 static struct utmp ac_aggr; 7124 if (sizeof ac_aggr.ut_addr) 7125 return 0; 7126 ; 7127 return 0; 7128 } 7129 _ACEOF 7130 rm -f conftest.$ac_objext 7131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7132 (eval $ac_compile) 2>conftest.er1 7133 ac_status=$? 7134 grep -v '^ *+' conftest.er1 >conftest.err 7135 rm -f conftest.er1 7136 cat conftest.err >&5 7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7138 (exit $ac_status); } && 7139 { ac_try='test -z "$ac_c_werror_flag" 7140 || test ! -s conftest.err' 7141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7142 (eval $ac_try) 2>&5 7143 ac_status=$? 7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7145 (exit $ac_status); }; } && 7146 { ac_try='test -s conftest.$ac_objext' 7147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7148 (eval $ac_try) 2>&5 7149 ac_status=$? 7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7151 (exit $ac_status); }; }; then 7152 ac_cv_member_struct_utmp_ut_addr=yes 7153 else 7154 echo "$as_me: failed program was:" >&5 7155 sed 's/^/| /' conftest.$ac_ext >&5 7156 7157 ac_cv_member_struct_utmp_ut_addr=no 7158 fi 7159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7160 fi 7161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7162 fi 7163 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_addr" >&5 7164 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_addr" >&6 7165 if test $ac_cv_member_struct_utmp_ut_addr = yes; then 7166 7167 cat >>confdefs.h <<_ACEOF 7168 #define HAVE_STRUCT_UTMP_UT_ADDR 1 7169 _ACEOF 7170 7171 7172 fi 7173 echo "$as_me:$LINENO: checking for struct utmp.ut_addr_v6" >&5 7174 echo $ECHO_N "checking for struct utmp.ut_addr_v6... $ECHO_C" >&6 7175 if test "${ac_cv_member_struct_utmp_ut_addr_v6+set}" = set; then 7176 echo $ECHO_N "(cached) $ECHO_C" >&6 7177 else 7178 cat >conftest.$ac_ext <<_ACEOF 7179 /* confdefs.h. */ 7180 _ACEOF 7181 cat confdefs.h >>conftest.$ac_ext 7182 cat >>conftest.$ac_ext <<_ACEOF 7183 /* end confdefs.h. */ 7184 7185 #include <sys/types.h> 7186 #if HAVE_UTMP_H 7187 #include <utmp.h> 7188 #endif 7189 7190 7191 int 7192 main () 7193 { 7194 static struct utmp ac_aggr; 7195 if (ac_aggr.ut_addr_v6) 7196 return 0; 7197 ; 7198 return 0; 7199 } 7200 _ACEOF 7201 rm -f conftest.$ac_objext 7202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7203 (eval $ac_compile) 2>conftest.er1 7204 ac_status=$? 7205 grep -v '^ *+' conftest.er1 >conftest.err 7206 rm -f conftest.er1 7207 cat conftest.err >&5 7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7209 (exit $ac_status); } && 7210 { ac_try='test -z "$ac_c_werror_flag" 7211 || test ! -s conftest.err' 7212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7213 (eval $ac_try) 2>&5 7214 ac_status=$? 7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7216 (exit $ac_status); }; } && 7217 { ac_try='test -s conftest.$ac_objext' 7218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7219 (eval $ac_try) 2>&5 7220 ac_status=$? 7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7222 (exit $ac_status); }; }; then 7223 ac_cv_member_struct_utmp_ut_addr_v6=yes 7224 else 7225 echo "$as_me: failed program was:" >&5 7226 sed 's/^/| /' conftest.$ac_ext >&5 7227 7228 cat >conftest.$ac_ext <<_ACEOF 7229 /* confdefs.h. */ 7230 _ACEOF 7231 cat confdefs.h >>conftest.$ac_ext 7232 cat >>conftest.$ac_ext <<_ACEOF 7233 /* end confdefs.h. */ 7234 7235 #include <sys/types.h> 7236 #if HAVE_UTMP_H 7237 #include <utmp.h> 7238 #endif 7239 7240 7241 int 7242 main () 7243 { 7244 static struct utmp ac_aggr; 7245 if (sizeof ac_aggr.ut_addr_v6) 7246 return 0; 7247 ; 7248 return 0; 7249 } 7250 _ACEOF 7251 rm -f conftest.$ac_objext 7252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7253 (eval $ac_compile) 2>conftest.er1 7254 ac_status=$? 7255 grep -v '^ *+' conftest.er1 >conftest.err 7256 rm -f conftest.er1 7257 cat conftest.err >&5 7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7259 (exit $ac_status); } && 7260 { ac_try='test -z "$ac_c_werror_flag" 7261 || test ! -s conftest.err' 7262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7263 (eval $ac_try) 2>&5 7264 ac_status=$? 7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7266 (exit $ac_status); }; } && 7267 { ac_try='test -s conftest.$ac_objext' 7268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7269 (eval $ac_try) 2>&5 7270 ac_status=$? 7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7272 (exit $ac_status); }; }; then 7273 ac_cv_member_struct_utmp_ut_addr_v6=yes 7274 else 7275 echo "$as_me: failed program was:" >&5 7276 sed 's/^/| /' conftest.$ac_ext >&5 7277 7278 ac_cv_member_struct_utmp_ut_addr_v6=no 7279 fi 7280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7281 fi 7282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7283 fi 7284 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_addr_v6" >&5 7285 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_addr_v6" >&6 7286 if test $ac_cv_member_struct_utmp_ut_addr_v6 = yes; then 7287 7288 cat >>confdefs.h <<_ACEOF 7289 #define HAVE_STRUCT_UTMP_UT_ADDR_V6 1 7290 _ACEOF 7291 7292 7293 fi 7294 echo "$as_me:$LINENO: checking for struct utmp.ut_exit" >&5 7295 echo $ECHO_N "checking for struct utmp.ut_exit... $ECHO_C" >&6 7296 if test "${ac_cv_member_struct_utmp_ut_exit+set}" = set; then 7297 echo $ECHO_N "(cached) $ECHO_C" >&6 7298 else 7299 cat >conftest.$ac_ext <<_ACEOF 7300 /* confdefs.h. */ 7301 _ACEOF 7302 cat confdefs.h >>conftest.$ac_ext 7303 cat >>conftest.$ac_ext <<_ACEOF 7304 /* end confdefs.h. */ 7305 7306 #include <sys/types.h> 7307 #if HAVE_UTMP_H 7308 #include <utmp.h> 7309 #endif 7310 7311 7312 int 7313 main () 7314 { 7315 static struct utmp ac_aggr; 7316 if (ac_aggr.ut_exit) 7317 return 0; 7318 ; 7319 return 0; 7320 } 7321 _ACEOF 7322 rm -f conftest.$ac_objext 7323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7324 (eval $ac_compile) 2>conftest.er1 7325 ac_status=$? 7326 grep -v '^ *+' conftest.er1 >conftest.err 7327 rm -f conftest.er1 7328 cat conftest.err >&5 7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7330 (exit $ac_status); } && 7331 { ac_try='test -z "$ac_c_werror_flag" 7332 || test ! -s conftest.err' 7333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7334 (eval $ac_try) 2>&5 7335 ac_status=$? 7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7337 (exit $ac_status); }; } && 7338 { ac_try='test -s conftest.$ac_objext' 7339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7340 (eval $ac_try) 2>&5 7341 ac_status=$? 7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7343 (exit $ac_status); }; }; then 7344 ac_cv_member_struct_utmp_ut_exit=yes 7345 else 7346 echo "$as_me: failed program was:" >&5 7347 sed 's/^/| /' conftest.$ac_ext >&5 7348 7349 cat >conftest.$ac_ext <<_ACEOF 7350 /* confdefs.h. */ 7351 _ACEOF 7352 cat confdefs.h >>conftest.$ac_ext 7353 cat >>conftest.$ac_ext <<_ACEOF 7354 /* end confdefs.h. */ 7355 7356 #include <sys/types.h> 7357 #if HAVE_UTMP_H 7358 #include <utmp.h> 7359 #endif 7360 7361 7362 int 7363 main () 7364 { 7365 static struct utmp ac_aggr; 7366 if (sizeof ac_aggr.ut_exit) 7367 return 0; 7368 ; 7369 return 0; 7370 } 7371 _ACEOF 7372 rm -f conftest.$ac_objext 7373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7374 (eval $ac_compile) 2>conftest.er1 7375 ac_status=$? 7376 grep -v '^ *+' conftest.er1 >conftest.err 7377 rm -f conftest.er1 7378 cat conftest.err >&5 7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7380 (exit $ac_status); } && 7381 { ac_try='test -z "$ac_c_werror_flag" 7382 || test ! -s conftest.err' 7383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7384 (eval $ac_try) 2>&5 7385 ac_status=$? 7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7387 (exit $ac_status); }; } && 7388 { ac_try='test -s conftest.$ac_objext' 7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7390 (eval $ac_try) 2>&5 7391 ac_status=$? 7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7393 (exit $ac_status); }; }; then 7394 ac_cv_member_struct_utmp_ut_exit=yes 7395 else 7396 echo "$as_me: failed program was:" >&5 7397 sed 's/^/| /' conftest.$ac_ext >&5 7398 7399 ac_cv_member_struct_utmp_ut_exit=no 7400 fi 7401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7402 fi 7403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7404 fi 7405 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit" >&5 7406 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit" >&6 7407 if test $ac_cv_member_struct_utmp_ut_exit = yes; then 7408 7409 cat >>confdefs.h <<_ACEOF 7410 #define HAVE_STRUCT_UTMP_UT_EXIT 1 7411 _ACEOF 7412 7413 7414 fi 7415 echo "$as_me:$LINENO: checking for struct utmp.ut_time" >&5 7416 echo $ECHO_N "checking for struct utmp.ut_time... $ECHO_C" >&6 7417 if test "${ac_cv_member_struct_utmp_ut_time+set}" = set; then 7418 echo $ECHO_N "(cached) $ECHO_C" >&6 7419 else 7420 cat >conftest.$ac_ext <<_ACEOF 7421 /* confdefs.h. */ 7422 _ACEOF 7423 cat confdefs.h >>conftest.$ac_ext 7424 cat >>conftest.$ac_ext <<_ACEOF 7425 /* end confdefs.h. */ 7426 7427 #include <sys/types.h> 7428 #if HAVE_UTMP_H 7429 #include <utmp.h> 7430 #endif 7431 7432 7433 int 7434 main () 7435 { 7436 static struct utmp ac_aggr; 7437 if (ac_aggr.ut_time) 7438 return 0; 7439 ; 7440 return 0; 7441 } 7442 _ACEOF 7443 rm -f conftest.$ac_objext 7444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7445 (eval $ac_compile) 2>conftest.er1 7446 ac_status=$? 7447 grep -v '^ *+' conftest.er1 >conftest.err 7448 rm -f conftest.er1 7449 cat conftest.err >&5 7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7451 (exit $ac_status); } && 7452 { ac_try='test -z "$ac_c_werror_flag" 7453 || test ! -s conftest.err' 7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7455 (eval $ac_try) 2>&5 7456 ac_status=$? 7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7458 (exit $ac_status); }; } && 7459 { ac_try='test -s conftest.$ac_objext' 7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7461 (eval $ac_try) 2>&5 7462 ac_status=$? 7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7464 (exit $ac_status); }; }; then 7465 ac_cv_member_struct_utmp_ut_time=yes 7466 else 7467 echo "$as_me: failed program was:" >&5 7468 sed 's/^/| /' conftest.$ac_ext >&5 7469 7470 cat >conftest.$ac_ext <<_ACEOF 7471 /* confdefs.h. */ 7472 _ACEOF 7473 cat confdefs.h >>conftest.$ac_ext 7474 cat >>conftest.$ac_ext <<_ACEOF 7475 /* end confdefs.h. */ 7476 7477 #include <sys/types.h> 7478 #if HAVE_UTMP_H 7479 #include <utmp.h> 7480 #endif 7481 7482 7483 int 7484 main () 7485 { 7486 static struct utmp ac_aggr; 7487 if (sizeof ac_aggr.ut_time) 7488 return 0; 7489 ; 7490 return 0; 7491 } 7492 _ACEOF 7493 rm -f conftest.$ac_objext 7494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7495 (eval $ac_compile) 2>conftest.er1 7496 ac_status=$? 7497 grep -v '^ *+' conftest.er1 >conftest.err 7498 rm -f conftest.er1 7499 cat conftest.err >&5 7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7501 (exit $ac_status); } && 7502 { ac_try='test -z "$ac_c_werror_flag" 7503 || test ! -s conftest.err' 7504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7505 (eval $ac_try) 2>&5 7506 ac_status=$? 7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7508 (exit $ac_status); }; } && 7509 { ac_try='test -s conftest.$ac_objext' 7510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7511 (eval $ac_try) 2>&5 7512 ac_status=$? 7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7514 (exit $ac_status); }; }; then 7515 ac_cv_member_struct_utmp_ut_time=yes 7516 else 7517 echo "$as_me: failed program was:" >&5 7518 sed 's/^/| /' conftest.$ac_ext >&5 7519 7520 ac_cv_member_struct_utmp_ut_time=no 7521 fi 7522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7523 fi 7524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7525 fi 7526 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_time" >&5 7527 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_time" >&6 7528 if test $ac_cv_member_struct_utmp_ut_time = yes; then 7529 7530 cat >>confdefs.h <<_ACEOF 7531 #define HAVE_STRUCT_UTMP_UT_TIME 1 7532 _ACEOF 7533 7534 7535 fi 7536 7537 7538 echo "$as_me:$LINENO: checking for struct utmpx.ut_host" >&5 7539 echo $ECHO_N "checking for struct utmpx.ut_host... $ECHO_C" >&6 7540 if test "${ac_cv_member_struct_utmpx_ut_host+set}" = set; then 7541 echo $ECHO_N "(cached) $ECHO_C" >&6 7542 else 7543 cat >conftest.$ac_ext <<_ACEOF 7544 /* confdefs.h. */ 7545 _ACEOF 7546 cat confdefs.h >>conftest.$ac_ext 7547 cat >>conftest.$ac_ext <<_ACEOF 7548 /* end confdefs.h. */ 7549 7550 #include <sys/types.h> 7551 #include <sys/socket.h> 7552 #if HAVE_UTMPX_H 7553 #include <utmpx.h> 7554 #endif 7555 7556 7557 int 7558 main () 7559 { 7560 static struct utmpx ac_aggr; 7561 if (ac_aggr.ut_host) 7562 return 0; 7563 ; 7564 return 0; 7565 } 7566 _ACEOF 7567 rm -f conftest.$ac_objext 7568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7569 (eval $ac_compile) 2>conftest.er1 7570 ac_status=$? 7571 grep -v '^ *+' conftest.er1 >conftest.err 7572 rm -f conftest.er1 7573 cat conftest.err >&5 7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7575 (exit $ac_status); } && 7576 { ac_try='test -z "$ac_c_werror_flag" 7577 || test ! -s conftest.err' 7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7579 (eval $ac_try) 2>&5 7580 ac_status=$? 7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7582 (exit $ac_status); }; } && 7583 { ac_try='test -s conftest.$ac_objext' 7584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7585 (eval $ac_try) 2>&5 7586 ac_status=$? 7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7588 (exit $ac_status); }; }; then 7589 ac_cv_member_struct_utmpx_ut_host=yes 7590 else 7591 echo "$as_me: failed program was:" >&5 7592 sed 's/^/| /' conftest.$ac_ext >&5 7593 7594 cat >conftest.$ac_ext <<_ACEOF 7595 /* confdefs.h. */ 7596 _ACEOF 7597 cat confdefs.h >>conftest.$ac_ext 7598 cat >>conftest.$ac_ext <<_ACEOF 7599 /* end confdefs.h. */ 7600 7601 #include <sys/types.h> 7602 #include <sys/socket.h> 7603 #if HAVE_UTMPX_H 7604 #include <utmpx.h> 7605 #endif 7606 7607 7608 int 7609 main () 7610 { 7611 static struct utmpx ac_aggr; 7612 if (sizeof ac_aggr.ut_host) 7613 return 0; 7614 ; 7615 return 0; 7616 } 7617 _ACEOF 7618 rm -f conftest.$ac_objext 7619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7620 (eval $ac_compile) 2>conftest.er1 7621 ac_status=$? 7622 grep -v '^ *+' conftest.er1 >conftest.err 7623 rm -f conftest.er1 7624 cat conftest.err >&5 7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7626 (exit $ac_status); } && 7627 { ac_try='test -z "$ac_c_werror_flag" 7628 || test ! -s conftest.err' 7629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7630 (eval $ac_try) 2>&5 7631 ac_status=$? 7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7633 (exit $ac_status); }; } && 7634 { ac_try='test -s conftest.$ac_objext' 7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7636 (eval $ac_try) 2>&5 7637 ac_status=$? 7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7639 (exit $ac_status); }; }; then 7640 ac_cv_member_struct_utmpx_ut_host=yes 7641 else 7642 echo "$as_me: failed program was:" >&5 7643 sed 's/^/| /' conftest.$ac_ext >&5 7644 7645 ac_cv_member_struct_utmpx_ut_host=no 7646 fi 7647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7648 fi 7649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7650 fi 7651 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_host" >&5 7652 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_host" >&6 7653 if test $ac_cv_member_struct_utmpx_ut_host = yes; then 7654 7655 cat >>confdefs.h <<_ACEOF 7656 #define HAVE_STRUCT_UTMPX_UT_HOST 1 7657 _ACEOF 7658 7659 7660 fi 7661 echo "$as_me:$LINENO: checking for struct utmpx.ut_syslen" >&5 7662 echo $ECHO_N "checking for struct utmpx.ut_syslen... $ECHO_C" >&6 7663 if test "${ac_cv_member_struct_utmpx_ut_syslen+set}" = set; then 7664 echo $ECHO_N "(cached) $ECHO_C" >&6 7665 else 7666 cat >conftest.$ac_ext <<_ACEOF 7667 /* confdefs.h. */ 7668 _ACEOF 7669 cat confdefs.h >>conftest.$ac_ext 7670 cat >>conftest.$ac_ext <<_ACEOF 7671 /* end confdefs.h. */ 7672 7673 #include <sys/types.h> 7674 #include <sys/socket.h> 7675 #if HAVE_UTMPX_H 7676 #include <utmpx.h> 7677 #endif 7678 7679 7680 int 7681 main () 7682 { 7683 static struct utmpx ac_aggr; 7684 if (ac_aggr.ut_syslen) 7685 return 0; 7686 ; 7687 return 0; 7688 } 7689 _ACEOF 7690 rm -f conftest.$ac_objext 7691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7692 (eval $ac_compile) 2>conftest.er1 7693 ac_status=$? 7694 grep -v '^ *+' conftest.er1 >conftest.err 7695 rm -f conftest.er1 7696 cat conftest.err >&5 7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7698 (exit $ac_status); } && 7699 { ac_try='test -z "$ac_c_werror_flag" 7700 || test ! -s conftest.err' 7701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7702 (eval $ac_try) 2>&5 7703 ac_status=$? 7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7705 (exit $ac_status); }; } && 7706 { ac_try='test -s conftest.$ac_objext' 7707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7708 (eval $ac_try) 2>&5 7709 ac_status=$? 7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7711 (exit $ac_status); }; }; then 7712 ac_cv_member_struct_utmpx_ut_syslen=yes 7713 else 7714 echo "$as_me: failed program was:" >&5 7715 sed 's/^/| /' conftest.$ac_ext >&5 7716 7717 cat >conftest.$ac_ext <<_ACEOF 7718 /* confdefs.h. */ 7719 _ACEOF 7720 cat confdefs.h >>conftest.$ac_ext 7721 cat >>conftest.$ac_ext <<_ACEOF 7722 /* end confdefs.h. */ 7723 7724 #include <sys/types.h> 7725 #include <sys/socket.h> 7726 #if HAVE_UTMPX_H 7727 #include <utmpx.h> 7728 #endif 7729 7730 7731 int 7732 main () 7733 { 7734 static struct utmpx ac_aggr; 7735 if (sizeof ac_aggr.ut_syslen) 7736 return 0; 7737 ; 7738 return 0; 7739 } 7740 _ACEOF 7741 rm -f conftest.$ac_objext 7742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7743 (eval $ac_compile) 2>conftest.er1 7744 ac_status=$? 7745 grep -v '^ *+' conftest.er1 >conftest.err 7746 rm -f conftest.er1 7747 cat conftest.err >&5 7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7749 (exit $ac_status); } && 7750 { ac_try='test -z "$ac_c_werror_flag" 7751 || test ! -s conftest.err' 7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7753 (eval $ac_try) 2>&5 7754 ac_status=$? 7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7756 (exit $ac_status); }; } && 7757 { ac_try='test -s conftest.$ac_objext' 7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7759 (eval $ac_try) 2>&5 7760 ac_status=$? 7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7762 (exit $ac_status); }; }; then 7763 ac_cv_member_struct_utmpx_ut_syslen=yes 7764 else 7765 echo "$as_me: failed program was:" >&5 7766 sed 's/^/| /' conftest.$ac_ext >&5 7767 7768 ac_cv_member_struct_utmpx_ut_syslen=no 7769 fi 7770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7771 fi 7772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7773 fi 7774 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_syslen" >&5 7775 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_syslen" >&6 7776 if test $ac_cv_member_struct_utmpx_ut_syslen = yes; then 7777 7778 cat >>confdefs.h <<_ACEOF 7779 #define HAVE_STRUCT_UTMPX_UT_SYSLEN 1 7780 _ACEOF 7781 7782 7783 fi 7784 echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5 7785 echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6 7786 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then 7787 echo $ECHO_N "(cached) $ECHO_C" >&6 7788 else 7789 cat >conftest.$ac_ext <<_ACEOF 7790 /* confdefs.h. */ 7791 _ACEOF 7792 cat confdefs.h >>conftest.$ac_ext 7793 cat >>conftest.$ac_ext <<_ACEOF 7794 /* end confdefs.h. */ 7795 7796 #include <sys/types.h> 7797 #include <sys/socket.h> 7798 #if HAVE_UTMPX_H 7799 #include <utmpx.h> 7800 #endif 7801 7802 7803 int 7804 main () 7805 { 7806 static struct utmpx ac_aggr; 7807 if (ac_aggr.ut_type) 7808 return 0; 7809 ; 7810 return 0; 7811 } 7812 _ACEOF 7813 rm -f conftest.$ac_objext 7814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7815 (eval $ac_compile) 2>conftest.er1 7816 ac_status=$? 7817 grep -v '^ *+' conftest.er1 >conftest.err 7818 rm -f conftest.er1 7819 cat conftest.err >&5 7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7821 (exit $ac_status); } && 7822 { ac_try='test -z "$ac_c_werror_flag" 7823 || test ! -s conftest.err' 7824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7825 (eval $ac_try) 2>&5 7826 ac_status=$? 7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7828 (exit $ac_status); }; } && 7829 { ac_try='test -s conftest.$ac_objext' 7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7831 (eval $ac_try) 2>&5 7832 ac_status=$? 7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7834 (exit $ac_status); }; }; then 7835 ac_cv_member_struct_utmpx_ut_type=yes 7836 else 7837 echo "$as_me: failed program was:" >&5 7838 sed 's/^/| /' conftest.$ac_ext >&5 7839 7840 cat >conftest.$ac_ext <<_ACEOF 7841 /* confdefs.h. */ 7842 _ACEOF 7843 cat confdefs.h >>conftest.$ac_ext 7844 cat >>conftest.$ac_ext <<_ACEOF 7845 /* end confdefs.h. */ 7846 7847 #include <sys/types.h> 7848 #include <sys/socket.h> 7849 #if HAVE_UTMPX_H 7850 #include <utmpx.h> 7851 #endif 7852 7853 7854 int 7855 main () 7856 { 7857 static struct utmpx ac_aggr; 7858 if (sizeof ac_aggr.ut_type) 7859 return 0; 7860 ; 7861 return 0; 7862 } 7863 _ACEOF 7864 rm -f conftest.$ac_objext 7865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7866 (eval $ac_compile) 2>conftest.er1 7867 ac_status=$? 7868 grep -v '^ *+' conftest.er1 >conftest.err 7869 rm -f conftest.er1 7870 cat conftest.err >&5 7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7872 (exit $ac_status); } && 7873 { ac_try='test -z "$ac_c_werror_flag" 7874 || test ! -s conftest.err' 7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7876 (eval $ac_try) 2>&5 7877 ac_status=$? 7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7879 (exit $ac_status); }; } && 7880 { ac_try='test -s conftest.$ac_objext' 7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7882 (eval $ac_try) 2>&5 7883 ac_status=$? 7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7885 (exit $ac_status); }; }; then 7886 ac_cv_member_struct_utmpx_ut_type=yes 7887 else 7888 echo "$as_me: failed program was:" >&5 7889 sed 's/^/| /' conftest.$ac_ext >&5 7890 7891 ac_cv_member_struct_utmpx_ut_type=no 7892 fi 7893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7894 fi 7895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7896 fi 7897 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5 7898 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6 7899 if test $ac_cv_member_struct_utmpx_ut_type = yes; then 7900 7901 cat >>confdefs.h <<_ACEOF 7902 #define HAVE_STRUCT_UTMPX_UT_TYPE 1 7903 _ACEOF 7904 7905 7906 fi 7907 echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5 7908 echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6 7909 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then 7910 echo $ECHO_N "(cached) $ECHO_C" >&6 7911 else 7912 cat >conftest.$ac_ext <<_ACEOF 7913 /* confdefs.h. */ 7914 _ACEOF 7915 cat confdefs.h >>conftest.$ac_ext 7916 cat >>conftest.$ac_ext <<_ACEOF 7917 /* end confdefs.h. */ 7918 7919 #include <sys/types.h> 7920 #include <sys/socket.h> 7921 #if HAVE_UTMPX_H 7922 #include <utmpx.h> 7923 #endif 7924 7925 7926 int 7927 main () 7928 { 7929 static struct utmpx ac_aggr; 7930 if (ac_aggr.ut_id) 7931 return 0; 7932 ; 7933 return 0; 7934 } 7935 _ACEOF 7936 rm -f conftest.$ac_objext 7937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7938 (eval $ac_compile) 2>conftest.er1 7939 ac_status=$? 7940 grep -v '^ *+' conftest.er1 >conftest.err 7941 rm -f conftest.er1 7942 cat conftest.err >&5 7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7944 (exit $ac_status); } && 7945 { ac_try='test -z "$ac_c_werror_flag" 7946 || test ! -s conftest.err' 7947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7948 (eval $ac_try) 2>&5 7949 ac_status=$? 7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7951 (exit $ac_status); }; } && 7952 { ac_try='test -s conftest.$ac_objext' 7953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7954 (eval $ac_try) 2>&5 7955 ac_status=$? 7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7957 (exit $ac_status); }; }; then 7958 ac_cv_member_struct_utmpx_ut_id=yes 7959 else 7960 echo "$as_me: failed program was:" >&5 7961 sed 's/^/| /' conftest.$ac_ext >&5 7962 7963 cat >conftest.$ac_ext <<_ACEOF 7964 /* confdefs.h. */ 7965 _ACEOF 7966 cat confdefs.h >>conftest.$ac_ext 7967 cat >>conftest.$ac_ext <<_ACEOF 7968 /* end confdefs.h. */ 7969 7970 #include <sys/types.h> 7971 #include <sys/socket.h> 7972 #if HAVE_UTMPX_H 7973 #include <utmpx.h> 7974 #endif 7975 7976 7977 int 7978 main () 7979 { 7980 static struct utmpx ac_aggr; 7981 if (sizeof ac_aggr.ut_id) 7982 return 0; 7983 ; 7984 return 0; 7985 } 7986 _ACEOF 7987 rm -f conftest.$ac_objext 7988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7989 (eval $ac_compile) 2>conftest.er1 7990 ac_status=$? 7991 grep -v '^ *+' conftest.er1 >conftest.err 7992 rm -f conftest.er1 7993 cat conftest.err >&5 7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7995 (exit $ac_status); } && 7996 { ac_try='test -z "$ac_c_werror_flag" 7997 || test ! -s conftest.err' 7998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7999 (eval $ac_try) 2>&5 8000 ac_status=$? 8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8002 (exit $ac_status); }; } && 8003 { ac_try='test -s conftest.$ac_objext' 8004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8005 (eval $ac_try) 2>&5 8006 ac_status=$? 8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8008 (exit $ac_status); }; }; then 8009 ac_cv_member_struct_utmpx_ut_id=yes 8010 else 8011 echo "$as_me: failed program was:" >&5 8012 sed 's/^/| /' conftest.$ac_ext >&5 8013 8014 ac_cv_member_struct_utmpx_ut_id=no 8015 fi 8016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8017 fi 8018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8019 fi 8020 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5 8021 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6 8022 if test $ac_cv_member_struct_utmpx_ut_id = yes; then 8023 8024 cat >>confdefs.h <<_ACEOF 8025 #define HAVE_STRUCT_UTMPX_UT_ID 1 8026 _ACEOF 8027 8028 8029 fi 8030 echo "$as_me:$LINENO: checking for struct utmpx.ut_addr" >&5 8031 echo $ECHO_N "checking for struct utmpx.ut_addr... $ECHO_C" >&6 8032 if test "${ac_cv_member_struct_utmpx_ut_addr+set}" = set; then 8033 echo $ECHO_N "(cached) $ECHO_C" >&6 8034 else 8035 cat >conftest.$ac_ext <<_ACEOF 8036 /* confdefs.h. */ 8037 _ACEOF 8038 cat confdefs.h >>conftest.$ac_ext 8039 cat >>conftest.$ac_ext <<_ACEOF 8040 /* end confdefs.h. */ 8041 8042 #include <sys/types.h> 8043 #include <sys/socket.h> 8044 #if HAVE_UTMPX_H 8045 #include <utmpx.h> 8046 #endif 8047 8048 8049 int 8050 main () 8051 { 8052 static struct utmpx ac_aggr; 8053 if (ac_aggr.ut_addr) 8054 return 0; 8055 ; 8056 return 0; 8057 } 8058 _ACEOF 8059 rm -f conftest.$ac_objext 8060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8061 (eval $ac_compile) 2>conftest.er1 8062 ac_status=$? 8063 grep -v '^ *+' conftest.er1 >conftest.err 8064 rm -f conftest.er1 8065 cat conftest.err >&5 8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8067 (exit $ac_status); } && 8068 { ac_try='test -z "$ac_c_werror_flag" 8069 || test ! -s conftest.err' 8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8071 (eval $ac_try) 2>&5 8072 ac_status=$? 8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8074 (exit $ac_status); }; } && 8075 { ac_try='test -s conftest.$ac_objext' 8076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8077 (eval $ac_try) 2>&5 8078 ac_status=$? 8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8080 (exit $ac_status); }; }; then 8081 ac_cv_member_struct_utmpx_ut_addr=yes 8082 else 8083 echo "$as_me: failed program was:" >&5 8084 sed 's/^/| /' conftest.$ac_ext >&5 8085 8086 cat >conftest.$ac_ext <<_ACEOF 8087 /* confdefs.h. */ 8088 _ACEOF 8089 cat confdefs.h >>conftest.$ac_ext 8090 cat >>conftest.$ac_ext <<_ACEOF 8091 /* end confdefs.h. */ 8092 8093 #include <sys/types.h> 8094 #include <sys/socket.h> 8095 #if HAVE_UTMPX_H 8096 #include <utmpx.h> 8097 #endif 8098 8099 8100 int 8101 main () 8102 { 8103 static struct utmpx ac_aggr; 8104 if (sizeof ac_aggr.ut_addr) 8105 return 0; 8106 ; 8107 return 0; 8108 } 8109 _ACEOF 8110 rm -f conftest.$ac_objext 8111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8112 (eval $ac_compile) 2>conftest.er1 8113 ac_status=$? 8114 grep -v '^ *+' conftest.er1 >conftest.err 8115 rm -f conftest.er1 8116 cat conftest.err >&5 8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8118 (exit $ac_status); } && 8119 { ac_try='test -z "$ac_c_werror_flag" 8120 || test ! -s conftest.err' 8121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8122 (eval $ac_try) 2>&5 8123 ac_status=$? 8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8125 (exit $ac_status); }; } && 8126 { ac_try='test -s conftest.$ac_objext' 8127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8128 (eval $ac_try) 2>&5 8129 ac_status=$? 8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8131 (exit $ac_status); }; }; then 8132 ac_cv_member_struct_utmpx_ut_addr=yes 8133 else 8134 echo "$as_me: failed program was:" >&5 8135 sed 's/^/| /' conftest.$ac_ext >&5 8136 8137 ac_cv_member_struct_utmpx_ut_addr=no 8138 fi 8139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8140 fi 8141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8142 fi 8143 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_addr" >&5 8144 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_addr" >&6 8145 if test $ac_cv_member_struct_utmpx_ut_addr = yes; then 8146 8147 cat >>confdefs.h <<_ACEOF 8148 #define HAVE_STRUCT_UTMPX_UT_ADDR 1 8149 _ACEOF 8150 8151 8152 fi 8153 echo "$as_me:$LINENO: checking for struct utmpx.ut_addr_v6" >&5 8154 echo $ECHO_N "checking for struct utmpx.ut_addr_v6... $ECHO_C" >&6 8155 if test "${ac_cv_member_struct_utmpx_ut_addr_v6+set}" = set; then 8156 echo $ECHO_N "(cached) $ECHO_C" >&6 8157 else 8158 cat >conftest.$ac_ext <<_ACEOF 8159 /* confdefs.h. */ 8160 _ACEOF 8161 cat confdefs.h >>conftest.$ac_ext 8162 cat >>conftest.$ac_ext <<_ACEOF 8163 /* end confdefs.h. */ 8164 8165 #include <sys/types.h> 8166 #include <sys/socket.h> 8167 #if HAVE_UTMPX_H 8168 #include <utmpx.h> 8169 #endif 8170 8171 8172 int 8173 main () 8174 { 8175 static struct utmpx ac_aggr; 8176 if (ac_aggr.ut_addr_v6) 8177 return 0; 8178 ; 8179 return 0; 8180 } 8181 _ACEOF 8182 rm -f conftest.$ac_objext 8183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8184 (eval $ac_compile) 2>conftest.er1 8185 ac_status=$? 8186 grep -v '^ *+' conftest.er1 >conftest.err 8187 rm -f conftest.er1 8188 cat conftest.err >&5 8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8190 (exit $ac_status); } && 8191 { ac_try='test -z "$ac_c_werror_flag" 8192 || test ! -s conftest.err' 8193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8194 (eval $ac_try) 2>&5 8195 ac_status=$? 8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8197 (exit $ac_status); }; } && 8198 { ac_try='test -s conftest.$ac_objext' 8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8200 (eval $ac_try) 2>&5 8201 ac_status=$? 8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8203 (exit $ac_status); }; }; then 8204 ac_cv_member_struct_utmpx_ut_addr_v6=yes 8205 else 8206 echo "$as_me: failed program was:" >&5 8207 sed 's/^/| /' conftest.$ac_ext >&5 8208 8209 cat >conftest.$ac_ext <<_ACEOF 8210 /* confdefs.h. */ 8211 _ACEOF 8212 cat confdefs.h >>conftest.$ac_ext 8213 cat >>conftest.$ac_ext <<_ACEOF 8214 /* end confdefs.h. */ 8215 8216 #include <sys/types.h> 8217 #include <sys/socket.h> 8218 #if HAVE_UTMPX_H 8219 #include <utmpx.h> 8220 #endif 8221 8222 8223 int 8224 main () 8225 { 8226 static struct utmpx ac_aggr; 8227 if (sizeof ac_aggr.ut_addr_v6) 8228 return 0; 8229 ; 8230 return 0; 8231 } 8232 _ACEOF 8233 rm -f conftest.$ac_objext 8234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8235 (eval $ac_compile) 2>conftest.er1 8236 ac_status=$? 8237 grep -v '^ *+' conftest.er1 >conftest.err 8238 rm -f conftest.er1 8239 cat conftest.err >&5 8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8241 (exit $ac_status); } && 8242 { ac_try='test -z "$ac_c_werror_flag" 8243 || test ! -s conftest.err' 8244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8245 (eval $ac_try) 2>&5 8246 ac_status=$? 8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8248 (exit $ac_status); }; } && 8249 { ac_try='test -s conftest.$ac_objext' 8250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8251 (eval $ac_try) 2>&5 8252 ac_status=$? 8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8254 (exit $ac_status); }; }; then 8255 ac_cv_member_struct_utmpx_ut_addr_v6=yes 8256 else 8257 echo "$as_me: failed program was:" >&5 8258 sed 's/^/| /' conftest.$ac_ext >&5 8259 8260 ac_cv_member_struct_utmpx_ut_addr_v6=no 8261 fi 8262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8263 fi 8264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8265 fi 8266 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_addr_v6" >&5 8267 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_addr_v6" >&6 8268 if test $ac_cv_member_struct_utmpx_ut_addr_v6 = yes; then 8269 8270 cat >>confdefs.h <<_ACEOF 8271 #define HAVE_STRUCT_UTMPX_UT_ADDR_V6 1 8272 _ACEOF 8273 8274 8275 fi 8276 echo "$as_me:$LINENO: checking for struct utmpx.ut_time" >&5 8277 echo $ECHO_N "checking for struct utmpx.ut_time... $ECHO_C" >&6 8278 if test "${ac_cv_member_struct_utmpx_ut_time+set}" = set; then 8279 echo $ECHO_N "(cached) $ECHO_C" >&6 8280 else 8281 cat >conftest.$ac_ext <<_ACEOF 8282 /* confdefs.h. */ 8283 _ACEOF 8284 cat confdefs.h >>conftest.$ac_ext 8285 cat >>conftest.$ac_ext <<_ACEOF 8286 /* end confdefs.h. */ 8287 8288 #include <sys/types.h> 8289 #include <sys/socket.h> 8290 #if HAVE_UTMPX_H 8291 #include <utmpx.h> 8292 #endif 8293 8294 8295 int 8296 main () 8297 { 8298 static struct utmpx ac_aggr; 8299 if (ac_aggr.ut_time) 8300 return 0; 8301 ; 8302 return 0; 8303 } 8304 _ACEOF 8305 rm -f conftest.$ac_objext 8306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8307 (eval $ac_compile) 2>conftest.er1 8308 ac_status=$? 8309 grep -v '^ *+' conftest.er1 >conftest.err 8310 rm -f conftest.er1 8311 cat conftest.err >&5 8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8313 (exit $ac_status); } && 8314 { ac_try='test -z "$ac_c_werror_flag" 8315 || test ! -s conftest.err' 8316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8317 (eval $ac_try) 2>&5 8318 ac_status=$? 8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8320 (exit $ac_status); }; } && 8321 { ac_try='test -s conftest.$ac_objext' 8322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8323 (eval $ac_try) 2>&5 8324 ac_status=$? 8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8326 (exit $ac_status); }; }; then 8327 ac_cv_member_struct_utmpx_ut_time=yes 8328 else 8329 echo "$as_me: failed program was:" >&5 8330 sed 's/^/| /' conftest.$ac_ext >&5 8331 8332 cat >conftest.$ac_ext <<_ACEOF 8333 /* confdefs.h. */ 8334 _ACEOF 8335 cat confdefs.h >>conftest.$ac_ext 8336 cat >>conftest.$ac_ext <<_ACEOF 8337 /* end confdefs.h. */ 8338 8339 #include <sys/types.h> 8340 #include <sys/socket.h> 8341 #if HAVE_UTMPX_H 8342 #include <utmpx.h> 8343 #endif 8344 8345 8346 int 8347 main () 8348 { 8349 static struct utmpx ac_aggr; 8350 if (sizeof ac_aggr.ut_time) 8351 return 0; 8352 ; 8353 return 0; 8354 } 8355 _ACEOF 8356 rm -f conftest.$ac_objext 8357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8358 (eval $ac_compile) 2>conftest.er1 8359 ac_status=$? 8360 grep -v '^ *+' conftest.er1 >conftest.err 8361 rm -f conftest.er1 8362 cat conftest.err >&5 8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8364 (exit $ac_status); } && 8365 { ac_try='test -z "$ac_c_werror_flag" 8366 || test ! -s conftest.err' 8367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8368 (eval $ac_try) 2>&5 8369 ac_status=$? 8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8371 (exit $ac_status); }; } && 8372 { ac_try='test -s conftest.$ac_objext' 8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8374 (eval $ac_try) 2>&5 8375 ac_status=$? 8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8377 (exit $ac_status); }; }; then 8378 ac_cv_member_struct_utmpx_ut_time=yes 8379 else 8380 echo "$as_me: failed program was:" >&5 8381 sed 's/^/| /' conftest.$ac_ext >&5 8382 8383 ac_cv_member_struct_utmpx_ut_time=no 8384 fi 8385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8386 fi 8387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8388 fi 8389 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_time" >&5 8390 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_time" >&6 8391 if test $ac_cv_member_struct_utmpx_ut_time = yes; then 8392 8393 cat >>confdefs.h <<_ACEOF 8394 #define HAVE_STRUCT_UTMPX_UT_TIME 1 8395 _ACEOF 8396 8397 8398 fi 8399 echo "$as_me:$LINENO: checking for struct utmpx.ut_tv" >&5 8400 echo $ECHO_N "checking for struct utmpx.ut_tv... $ECHO_C" >&6 8401 if test "${ac_cv_member_struct_utmpx_ut_tv+set}" = set; then 8402 echo $ECHO_N "(cached) $ECHO_C" >&6 8403 else 8404 cat >conftest.$ac_ext <<_ACEOF 8405 /* confdefs.h. */ 8406 _ACEOF 8407 cat confdefs.h >>conftest.$ac_ext 8408 cat >>conftest.$ac_ext <<_ACEOF 8409 /* end confdefs.h. */ 8410 8411 #include <sys/types.h> 8412 #include <sys/socket.h> 8413 #if HAVE_UTMPX_H 8414 #include <utmpx.h> 8415 #endif 8416 8417 8418 int 8419 main () 8420 { 8421 static struct utmpx ac_aggr; 8422 if (ac_aggr.ut_tv) 8423 return 0; 8424 ; 8425 return 0; 8426 } 8427 _ACEOF 8428 rm -f conftest.$ac_objext 8429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8430 (eval $ac_compile) 2>conftest.er1 8431 ac_status=$? 8432 grep -v '^ *+' conftest.er1 >conftest.err 8433 rm -f conftest.er1 8434 cat conftest.err >&5 8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8436 (exit $ac_status); } && 8437 { ac_try='test -z "$ac_c_werror_flag" 8438 || test ! -s conftest.err' 8439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8440 (eval $ac_try) 2>&5 8441 ac_status=$? 8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8443 (exit $ac_status); }; } && 8444 { ac_try='test -s conftest.$ac_objext' 8445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8446 (eval $ac_try) 2>&5 8447 ac_status=$? 8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8449 (exit $ac_status); }; }; then 8450 ac_cv_member_struct_utmpx_ut_tv=yes 8451 else 8452 echo "$as_me: failed program was:" >&5 8453 sed 's/^/| /' conftest.$ac_ext >&5 8454 8455 cat >conftest.$ac_ext <<_ACEOF 8456 /* confdefs.h. */ 8457 _ACEOF 8458 cat confdefs.h >>conftest.$ac_ext 8459 cat >>conftest.$ac_ext <<_ACEOF 8460 /* end confdefs.h. */ 8461 8462 #include <sys/types.h> 8463 #include <sys/socket.h> 8464 #if HAVE_UTMPX_H 8465 #include <utmpx.h> 8466 #endif 8467 8468 8469 int 8470 main () 8471 { 8472 static struct utmpx ac_aggr; 8473 if (sizeof ac_aggr.ut_tv) 8474 return 0; 8475 ; 8476 return 0; 8477 } 8478 _ACEOF 8479 rm -f conftest.$ac_objext 8480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8481 (eval $ac_compile) 2>conftest.er1 8482 ac_status=$? 8483 grep -v '^ *+' conftest.er1 >conftest.err 8484 rm -f conftest.er1 8485 cat conftest.err >&5 8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8487 (exit $ac_status); } && 8488 { ac_try='test -z "$ac_c_werror_flag" 8489 || test ! -s conftest.err' 8490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8491 (eval $ac_try) 2>&5 8492 ac_status=$? 8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8494 (exit $ac_status); }; } && 8495 { ac_try='test -s conftest.$ac_objext' 8496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8497 (eval $ac_try) 2>&5 8498 ac_status=$? 8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8500 (exit $ac_status); }; }; then 8501 ac_cv_member_struct_utmpx_ut_tv=yes 8502 else 8503 echo "$as_me: failed program was:" >&5 8504 sed 's/^/| /' conftest.$ac_ext >&5 8505 8506 ac_cv_member_struct_utmpx_ut_tv=no 8507 fi 8508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8509 fi 8510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8511 fi 8512 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_tv" >&5 8513 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_tv" >&6 8514 if test $ac_cv_member_struct_utmpx_ut_tv = yes; then 8515 8516 cat >>confdefs.h <<_ACEOF 8517 #define HAVE_STRUCT_UTMPX_UT_TV 1 8518 _ACEOF 8519 8520 8521 fi 8522 8523 8524 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5 8525 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6 8526 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then 8527 echo $ECHO_N "(cached) $ECHO_C" >&6 8528 else 8529 cat >conftest.$ac_ext <<_ACEOF 8530 /* confdefs.h. */ 8531 _ACEOF 8532 cat confdefs.h >>conftest.$ac_ext 8533 cat >>conftest.$ac_ext <<_ACEOF 8534 /* end confdefs.h. */ 8535 8536 #include <sys/types.h> 8537 #include <sys/socket.h> 8538 8539 8540 int 8541 main () 8542 { 8543 static struct sockaddr_storage ac_aggr; 8544 if (ac_aggr.ss_family) 8545 return 0; 8546 ; 8547 return 0; 8548 } 8549 _ACEOF 8550 rm -f conftest.$ac_objext 8551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8552 (eval $ac_compile) 2>conftest.er1 8553 ac_status=$? 8554 grep -v '^ *+' conftest.er1 >conftest.err 8555 rm -f conftest.er1 8556 cat conftest.err >&5 8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8558 (exit $ac_status); } && 8559 { ac_try='test -z "$ac_c_werror_flag" 8560 || test ! -s conftest.err' 8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8562 (eval $ac_try) 2>&5 8563 ac_status=$? 8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8565 (exit $ac_status); }; } && 8566 { ac_try='test -s conftest.$ac_objext' 8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8568 (eval $ac_try) 2>&5 8569 ac_status=$? 8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8571 (exit $ac_status); }; }; then 8572 ac_cv_member_struct_sockaddr_storage_ss_family=yes 8573 else 8574 echo "$as_me: failed program was:" >&5 8575 sed 's/^/| /' conftest.$ac_ext >&5 8576 8577 cat >conftest.$ac_ext <<_ACEOF 8578 /* confdefs.h. */ 8579 _ACEOF 8580 cat confdefs.h >>conftest.$ac_ext 8581 cat >>conftest.$ac_ext <<_ACEOF 8582 /* end confdefs.h. */ 8583 8584 #include <sys/types.h> 8585 #include <sys/socket.h> 8586 8587 8588 int 8589 main () 8590 { 8591 static struct sockaddr_storage ac_aggr; 8592 if (sizeof ac_aggr.ss_family) 8593 return 0; 8594 ; 8595 return 0; 8596 } 8597 _ACEOF 8598 rm -f conftest.$ac_objext 8599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8600 (eval $ac_compile) 2>conftest.er1 8601 ac_status=$? 8602 grep -v '^ *+' conftest.er1 >conftest.err 8603 rm -f conftest.er1 8604 cat conftest.err >&5 8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8606 (exit $ac_status); } && 8607 { ac_try='test -z "$ac_c_werror_flag" 8608 || test ! -s conftest.err' 8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8610 (eval $ac_try) 2>&5 8611 ac_status=$? 8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8613 (exit $ac_status); }; } && 8614 { ac_try='test -s conftest.$ac_objext' 8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8616 (eval $ac_try) 2>&5 8617 ac_status=$? 8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8619 (exit $ac_status); }; }; then 8620 ac_cv_member_struct_sockaddr_storage_ss_family=yes 8621 else 8622 echo "$as_me: failed program was:" >&5 8623 sed 's/^/| /' conftest.$ac_ext >&5 8624 8625 ac_cv_member_struct_sockaddr_storage_ss_family=no 8626 fi 8627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8628 fi 8629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8630 fi 8631 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5 8632 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6 8633 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then 8634 8635 cat >>confdefs.h <<_ACEOF 8636 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1 8637 _ACEOF 8638 8639 8640 fi 8641 8642 8643 8644 8645 8646 8647 8648 8649 for ac_func in endutent getutent getutid getutline pututline setutent 8650 do 8651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8652 echo "$as_me:$LINENO: checking for $ac_func" >&5 8653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8654 if eval "test \"\${$as_ac_var+set}\" = set"; then 8655 echo $ECHO_N "(cached) $ECHO_C" >&6 8656 else 8657 cat >conftest.$ac_ext <<_ACEOF 8658 /* confdefs.h. */ 8659 _ACEOF 8660 cat confdefs.h >>conftest.$ac_ext 8661 cat >>conftest.$ac_ext <<_ACEOF 8662 /* end confdefs.h. */ 8663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8664 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8665 #define $ac_func innocuous_$ac_func 8666 8667 /* System header to define __stub macros and hopefully few prototypes, 8668 which can conflict with char $ac_func (); below. 8669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8670 <limits.h> exists even on freestanding compilers. */ 8671 8672 #ifdef __STDC__ 8673 # include <limits.h> 8674 #else 8675 # include <assert.h> 8676 #endif 8677 8678 #undef $ac_func 8679 8680 /* Override any gcc2 internal prototype to avoid an error. */ 8681 #ifdef __cplusplus 8682 extern "C" 8683 { 8684 #endif 8685 /* We use char because int might match the return type of a gcc2 8686 builtin and then its argument prototype would still apply. */ 8687 char $ac_func (); 8688 /* The GNU C library defines this for functions which it implements 8689 to always fail with ENOSYS. Some functions are actually named 8690 something starting with __ and the normal name is an alias. */ 8691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8692 choke me 8693 #else 8694 char (*f) () = $ac_func; 8695 #endif 8696 #ifdef __cplusplus 8697 } 8698 #endif 8699 8700 int 8701 main () 8702 { 8703 return f != $ac_func; 8704 ; 8705 return 0; 8706 } 8707 _ACEOF 8708 rm -f conftest.$ac_objext conftest$ac_exeext 8709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8710 (eval $ac_link) 2>conftest.er1 8711 ac_status=$? 8712 grep -v '^ *+' conftest.er1 >conftest.err 8713 rm -f conftest.er1 8714 cat conftest.err >&5 8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8716 (exit $ac_status); } && 8717 { ac_try='test -z "$ac_c_werror_flag" 8718 || test ! -s conftest.err' 8719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8720 (eval $ac_try) 2>&5 8721 ac_status=$? 8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8723 (exit $ac_status); }; } && 8724 { ac_try='test -s conftest$ac_exeext' 8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8726 (eval $ac_try) 2>&5 8727 ac_status=$? 8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8729 (exit $ac_status); }; }; then 8730 eval "$as_ac_var=yes" 8731 else 8732 echo "$as_me: failed program was:" >&5 8733 sed 's/^/| /' conftest.$ac_ext >&5 8734 8735 eval "$as_ac_var=no" 8736 fi 8737 rm -f conftest.err conftest.$ac_objext \ 8738 conftest$ac_exeext conftest.$ac_ext 8739 fi 8740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8742 if test `eval echo '${'$as_ac_var'}'` = yes; then 8743 cat >>confdefs.h <<_ACEOF 8744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8745 _ACEOF 8746 8747 fi 8748 done 8749 8750 8751 for ac_func in utmpname 8752 do 8753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8754 echo "$as_me:$LINENO: checking for $ac_func" >&5 8755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8756 if eval "test \"\${$as_ac_var+set}\" = set"; then 8757 echo $ECHO_N "(cached) $ECHO_C" >&6 8758 else 8759 cat >conftest.$ac_ext <<_ACEOF 8760 /* confdefs.h. */ 8761 _ACEOF 8762 cat confdefs.h >>conftest.$ac_ext 8763 cat >>conftest.$ac_ext <<_ACEOF 8764 /* end confdefs.h. */ 8765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8766 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8767 #define $ac_func innocuous_$ac_func 8768 8769 /* System header to define __stub macros and hopefully few prototypes, 8770 which can conflict with char $ac_func (); below. 8771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8772 <limits.h> exists even on freestanding compilers. */ 8773 8774 #ifdef __STDC__ 8775 # include <limits.h> 8776 #else 8777 # include <assert.h> 8778 #endif 8779 8780 #undef $ac_func 8781 8782 /* Override any gcc2 internal prototype to avoid an error. */ 8783 #ifdef __cplusplus 8784 extern "C" 8785 { 8786 #endif 8787 /* We use char because int might match the return type of a gcc2 8788 builtin and then its argument prototype would still apply. */ 8789 char $ac_func (); 8790 /* The GNU C library defines this for functions which it implements 8791 to always fail with ENOSYS. Some functions are actually named 8792 something starting with __ and the normal name is an alias. */ 8793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8794 choke me 8795 #else 8796 char (*f) () = $ac_func; 8797 #endif 8798 #ifdef __cplusplus 8799 } 8800 #endif 8801 8802 int 8803 main () 8804 { 8805 return f != $ac_func; 8806 ; 8807 return 0; 8808 } 8809 _ACEOF 8810 rm -f conftest.$ac_objext conftest$ac_exeext 8811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8812 (eval $ac_link) 2>conftest.er1 8813 ac_status=$? 8814 grep -v '^ *+' conftest.er1 >conftest.err 8815 rm -f conftest.er1 8816 cat conftest.err >&5 8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8818 (exit $ac_status); } && 8819 { ac_try='test -z "$ac_c_werror_flag" 8820 || test ! -s conftest.err' 8821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8822 (eval $ac_try) 2>&5 8823 ac_status=$? 8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8825 (exit $ac_status); }; } && 8826 { ac_try='test -s conftest$ac_exeext' 8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8828 (eval $ac_try) 2>&5 8829 ac_status=$? 8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8831 (exit $ac_status); }; }; then 8832 eval "$as_ac_var=yes" 8833 else 8834 echo "$as_me: failed program was:" >&5 8835 sed 's/^/| /' conftest.$ac_ext >&5 8836 8837 eval "$as_ac_var=no" 8838 fi 8839 rm -f conftest.err conftest.$ac_objext \ 8840 conftest$ac_exeext conftest.$ac_ext 8841 fi 8842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8844 if test `eval echo '${'$as_ac_var'}'` = yes; then 8845 cat >>confdefs.h <<_ACEOF 8846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8847 _ACEOF 8848 8849 fi 8850 done 8851 8852 8853 8854 8855 8856 8857 for ac_func in endutxent getutxent getutxid getutxline pututxline 8858 do 8859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8860 echo "$as_me:$LINENO: checking for $ac_func" >&5 8861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8862 if eval "test \"\${$as_ac_var+set}\" = set"; then 8863 echo $ECHO_N "(cached) $ECHO_C" >&6 8864 else 8865 cat >conftest.$ac_ext <<_ACEOF 8866 /* confdefs.h. */ 8867 _ACEOF 8868 cat confdefs.h >>conftest.$ac_ext 8869 cat >>conftest.$ac_ext <<_ACEOF 8870 /* end confdefs.h. */ 8871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8872 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8873 #define $ac_func innocuous_$ac_func 8874 8875 /* System header to define __stub macros and hopefully few prototypes, 8876 which can conflict with char $ac_func (); below. 8877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8878 <limits.h> exists even on freestanding compilers. */ 8879 8880 #ifdef __STDC__ 8881 # include <limits.h> 8882 #else 8883 # include <assert.h> 8884 #endif 8885 8886 #undef $ac_func 8887 8888 /* Override any gcc2 internal prototype to avoid an error. */ 8889 #ifdef __cplusplus 8890 extern "C" 8891 { 8892 #endif 8893 /* We use char because int might match the return type of a gcc2 8894 builtin and then its argument prototype would still apply. */ 8895 char $ac_func (); 8896 /* The GNU C library defines this for functions which it implements 8897 to always fail with ENOSYS. Some functions are actually named 8898 something starting with __ and the normal name is an alias. */ 8899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8900 choke me 8901 #else 8902 char (*f) () = $ac_func; 8903 #endif 8904 #ifdef __cplusplus 8905 } 8906 #endif 8907 8908 int 8909 main () 8910 { 8911 return f != $ac_func; 8912 ; 8913 return 0; 8914 } 8915 _ACEOF 8916 rm -f conftest.$ac_objext conftest$ac_exeext 8917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8918 (eval $ac_link) 2>conftest.er1 8919 ac_status=$? 8920 grep -v '^ *+' conftest.er1 >conftest.err 8921 rm -f conftest.er1 8922 cat conftest.err >&5 8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8924 (exit $ac_status); } && 8925 { ac_try='test -z "$ac_c_werror_flag" 8926 || test ! -s conftest.err' 8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8928 (eval $ac_try) 2>&5 8929 ac_status=$? 8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8931 (exit $ac_status); }; } && 8932 { ac_try='test -s conftest$ac_exeext' 8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8934 (eval $ac_try) 2>&5 8935 ac_status=$? 8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8937 (exit $ac_status); }; }; then 8938 eval "$as_ac_var=yes" 8939 else 8940 echo "$as_me: failed program was:" >&5 8941 sed 's/^/| /' conftest.$ac_ext >&5 8942 8943 eval "$as_ac_var=no" 8944 fi 8945 rm -f conftest.err conftest.$ac_objext \ 8946 conftest$ac_exeext conftest.$ac_ext 8947 fi 8948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8950 if test `eval echo '${'$as_ac_var'}'` = yes; then 8951 cat >>confdefs.h <<_ACEOF 8952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8953 _ACEOF 8954 8955 fi 8956 done 8957 8958 8959 8960 for ac_func in setutxent utmpxname 8961 do 8962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8963 echo "$as_me:$LINENO: checking for $ac_func" >&5 8964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8965 if eval "test \"\${$as_ac_var+set}\" = set"; then 8966 echo $ECHO_N "(cached) $ECHO_C" >&6 8967 else 8968 cat >conftest.$ac_ext <<_ACEOF 8969 /* confdefs.h. */ 8970 _ACEOF 8971 cat confdefs.h >>conftest.$ac_ext 8972 cat >>conftest.$ac_ext <<_ACEOF 8973 /* end confdefs.h. */ 8974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8975 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8976 #define $ac_func innocuous_$ac_func 8977 8978 /* System header to define __stub macros and hopefully few prototypes, 8979 which can conflict with char $ac_func (); below. 8980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8981 <limits.h> exists even on freestanding compilers. */ 8982 8983 #ifdef __STDC__ 8984 # include <limits.h> 8985 #else 8986 # include <assert.h> 8987 #endif 8988 8989 #undef $ac_func 8990 8991 /* Override any gcc2 internal prototype to avoid an error. */ 8992 #ifdef __cplusplus 8993 extern "C" 8994 { 8995 #endif 8996 /* We use char because int might match the return type of a gcc2 8997 builtin and then its argument prototype would still apply. */ 8998 char $ac_func (); 8999 /* The GNU C library defines this for functions which it implements 9000 to always fail with ENOSYS. Some functions are actually named 9001 something starting with __ and the normal name is an alias. */ 9002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9003 choke me 9004 #else 9005 char (*f) () = $ac_func; 9006 #endif 9007 #ifdef __cplusplus 9008 } 9009 #endif 9010 9011 int 9012 main () 9013 { 9014 return f != $ac_func; 9015 ; 9016 return 0; 9017 } 9018 _ACEOF 9019 rm -f conftest.$ac_objext conftest$ac_exeext 9020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9021 (eval $ac_link) 2>conftest.er1 9022 ac_status=$? 9023 grep -v '^ *+' conftest.er1 >conftest.err 9024 rm -f conftest.er1 9025 cat conftest.err >&5 9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9027 (exit $ac_status); } && 9028 { ac_try='test -z "$ac_c_werror_flag" 9029 || test ! -s conftest.err' 9030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9031 (eval $ac_try) 2>&5 9032 ac_status=$? 9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9034 (exit $ac_status); }; } && 9035 { ac_try='test -s conftest$ac_exeext' 9036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9037 (eval $ac_try) 2>&5 9038 ac_status=$? 9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9040 (exit $ac_status); }; }; then 9041 eval "$as_ac_var=yes" 9042 else 9043 echo "$as_me: failed program was:" >&5 9044 sed 's/^/| /' conftest.$ac_ext >&5 9045 9046 eval "$as_ac_var=no" 9047 fi 9048 rm -f conftest.err conftest.$ac_objext \ 9049 conftest$ac_exeext conftest.$ac_ext 9050 fi 9051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9053 if test `eval echo '${'$as_ac_var'}'` = yes; then 9054 cat >>confdefs.h <<_ACEOF 9055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9056 _ACEOF 9057 9058 fi 9059 done 9060 9061 9062 9063 9064 for ac_func in logout updwtmp logwtmp 9065 do 9066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9067 echo "$as_me:$LINENO: checking for $ac_func" >&5 9068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9069 if eval "test \"\${$as_ac_var+set}\" = set"; then 9070 echo $ECHO_N "(cached) $ECHO_C" >&6 9071 else 9072 cat >conftest.$ac_ext <<_ACEOF 9073 /* confdefs.h. */ 9074 _ACEOF 9075 cat confdefs.h >>conftest.$ac_ext 9076 cat >>conftest.$ac_ext <<_ACEOF 9077 /* end confdefs.h. */ 9078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9079 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9080 #define $ac_func innocuous_$ac_func 9081 9082 /* System header to define __stub macros and hopefully few prototypes, 9083 which can conflict with char $ac_func (); below. 9084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9085 <limits.h> exists even on freestanding compilers. */ 9086 9087 #ifdef __STDC__ 9088 # include <limits.h> 9089 #else 9090 # include <assert.h> 9091 #endif 9092 9093 #undef $ac_func 9094 9095 /* Override any gcc2 internal prototype to avoid an error. */ 9096 #ifdef __cplusplus 9097 extern "C" 9098 { 9099 #endif 9100 /* We use char because int might match the return type of a gcc2 9101 builtin and then its argument prototype would still apply. */ 9102 char $ac_func (); 9103 /* The GNU C library defines this for functions which it implements 9104 to always fail with ENOSYS. Some functions are actually named 9105 something starting with __ and the normal name is an alias. */ 9106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9107 choke me 9108 #else 9109 char (*f) () = $ac_func; 9110 #endif 9111 #ifdef __cplusplus 9112 } 9113 #endif 9114 9115 int 9116 main () 9117 { 9118 return f != $ac_func; 9119 ; 9120 return 0; 9121 } 9122 _ACEOF 9123 rm -f conftest.$ac_objext conftest$ac_exeext 9124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9125 (eval $ac_link) 2>conftest.er1 9126 ac_status=$? 9127 grep -v '^ *+' conftest.er1 >conftest.err 9128 rm -f conftest.er1 9129 cat conftest.err >&5 9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9131 (exit $ac_status); } && 9132 { ac_try='test -z "$ac_c_werror_flag" 9133 || test ! -s conftest.err' 9134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9135 (eval $ac_try) 2>&5 9136 ac_status=$? 9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9138 (exit $ac_status); }; } && 9139 { ac_try='test -s conftest$ac_exeext' 9140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9141 (eval $ac_try) 2>&5 9142 ac_status=$? 9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9144 (exit $ac_status); }; }; then 9145 eval "$as_ac_var=yes" 9146 else 9147 echo "$as_me: failed program was:" >&5 9148 sed 's/^/| /' conftest.$ac_ext >&5 9149 9150 eval "$as_ac_var=no" 9151 fi 9152 rm -f conftest.err conftest.$ac_objext \ 9153 conftest$ac_exeext conftest.$ac_ext 9154 fi 9155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9157 if test `eval echo '${'$as_ac_var'}'` = yes; then 9158 cat >>confdefs.h <<_ACEOF 9159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9160 _ACEOF 9161 9162 fi 9163 done 9164 9165 9166 9167 # Check whether --enable-lastlog or --disable-lastlog was given. 9168 if test "${enable_lastlog+set}" = set; then 9169 enableval="$enable_lastlog" 9170 9171 cat >>confdefs.h <<\_ACEOF 9172 #define DISABLE_LASTLOG 9173 _ACEOF 9174 9175 9176 fi; 9177 # Check whether --enable-utmp or --disable-utmp was given. 9178 if test "${enable_utmp+set}" = set; then 9179 enableval="$enable_utmp" 9180 9181 cat >>confdefs.h <<\_ACEOF 9182 #define DISABLE_UTMP 9183 _ACEOF 9184 9185 9186 fi; 9187 # Check whether --enable-utmpx or --disable-utmpx was given. 9188 if test "${enable_utmpx+set}" = set; then 9189 enableval="$enable_utmpx" 9190 9191 cat >>confdefs.h <<\_ACEOF 9192 #define DISABLE_UTMPX 9193 _ACEOF 9194 9195 9196 fi; 9197 # Check whether --enable-wtmp or --disable-wtmp was given. 9198 if test "${enable_wtmp+set}" = set; then 9199 enableval="$enable_wtmp" 9200 9201 cat >>confdefs.h <<\_ACEOF 9202 #define DISABLE_WTMP 9203 _ACEOF 9204 9205 9206 fi; 9207 # Check whether --enable-wtmpx or --disable-wtmpx was given. 9208 if test "${enable_wtmpx+set}" = set; then 9209 enableval="$enable_wtmpx" 9210 9211 cat >>confdefs.h <<\_ACEOF 9212 #define DISABLE_WTMPX 9213 _ACEOF 9214 9215 9216 fi; 9217 # Check whether --enable-loginfunc or --disable-loginfunc was given. 9218 if test "${enable_loginfunc+set}" = set; then 9219 enableval="$enable_loginfunc" 9220 no_loginfunc_check=1 9221 { echo "$as_me:$LINENO: Not using login() etc" >&5 9222 echo "$as_me: Not using login() etc" >&6;} 9223 9224 fi; 9225 # Check whether --enable-pututline or --disable-pututline was given. 9226 if test "${enable_pututline+set}" = set; then 9227 enableval="$enable_pututline" 9228 9229 cat >>confdefs.h <<\_ACEOF 9230 #define DISABLE_PUTUTLINE 9231 _ACEOF 9232 9233 9234 fi; 9235 # Check whether --enable-pututxline or --disable-pututxline was given. 9236 if test "${enable_pututxline+set}" = set; then 9237 enableval="$enable_pututxline" 9238 9239 cat >>confdefs.h <<\_ACEOF 9240 #define DISABLE_PUTUTXLINE 9241 _ACEOF 9242 9243 9244 fi; 9245 9246 # Check whether --with-lastlog or --without-lastlog was given. 9247 if test "${with_lastlog+set}" = set; then 9248 withval="$with_lastlog" 9249 9250 if test "x$withval" = "xno" ; then 9251 cat >>confdefs.h <<\_ACEOF 9252 #define DISABLE_LASTLOG 1 9253 _ACEOF 9254 9255 else 9256 conf_lastlog_location=$withval 9257 fi