1#! /bin/sh 2# From configure.in Revision: 1.270 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by Autoconf 2.49d for heimdal 0.3e. 5# 6# Report bugs to <heimdal-bugs@pdc.kth.se>. 7# 8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000 9# Free Software Foundation, Inc. 10# This configure script is free software; the Free Software Foundation 11# gives unlimited permission to copy, distribute and modify it. 12 13# Be Bourne compatible 14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15 emulate sh 16 NULLCMD=: 17elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 18 set -o posix 19fi 20 21if expr a : '\(a\)' >/dev/null 2>&1; then 22 as_expr=expr 23else 24 as_expr=false 25fi 26 27rm -f conftest conftest.exe conftest.file 28echo >conftest.file 29if ln -s conftest.file conftest 2>/dev/null; then 30 # We could just check for DJGPP; but this test a) works b) is more generic 31 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 32 if test -f conftest.exe; then 33 # Don't use ln at all; we don't have any links 34 as_ln_s='cp -p' 35 else 36 as_ln_s='ln -s' 37 fi 38elif ln conftest.file conftest 2>/dev/null; then 39 as_ln_s=ln 40else 41 as_ln_s='cp -p' 42fi 43rm -f conftest conftest.exe conftest.file 44 45# Find out how to test for executable files. Don't use a zero-byte file, 46# as systems may use methods other than mode bits to determine executability. 47cat >conftest.file <<_ASEOF 48#! /bin/sh 49exit 0 50_ASEOF 51chmod +x conftest.file 52if test -x conftest.file >/dev/null 2>&1; then 53 as_executable_p="test -x" 54elif test -f conftest.file >/dev/null 2>&1; then 55 as_executable_p="test -f" 56else 57 { { echo "$as_me:57: error: cannot check whether a file is executable on this system" >&5 58echo "$as_me: error: cannot check whether a file is executable on this system" >&2;} 59 { (exit 1); exit 1; }; } 60fi 61rm -f conftest.file 62 63# Support unset when possible. 64if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 65 as_unset=unset 66else 67 as_unset=false 68fi 69 70# NLS nuisances. 71$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 72$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 73$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 74$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 75$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 76$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 77$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 78$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 79 80# IFS 81# We need space, tab and new line, in precisely that order. 82as_nl=' 83' 84IFS=" $as_nl" 85 86# CDPATH. 87$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 88 89# Name of the host. 90# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 91# so uname gets run too. 92ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 93 94# Name of the executable. 95as_me=`echo "$0" | sed 's,.*/,,'` 96 97cat >config.log <<EOF 98This file contains any messages produced by compilers while 99running configure, to aid debugging if configure makes a mistake. 100 101It was created by $as_me (heimdal 0.3e) 2.49d, executed with 102 > $0 $@ 103 104EOF 105{ 106cat <<_ASUNAME 107## ---------- ## 108## Platform. ## 109## ---------- ## 110 111hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 112uname -m = `(uname -m) 2>/dev/null || echo unknown` 113uname -r = `(uname -r) 2>/dev/null || echo unknown` 114uname -s = `(uname -s) 2>/dev/null || echo unknown` 115uname -v = `(uname -v) 2>/dev/null || echo unknown` 116 117/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 118/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 119 120/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 121/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 122/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 123hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 124/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 125/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 126/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 127 128PATH = $PATH 129 130_ASUNAME 131} >>config.log 132 133cat >>config.log <<EOF 134## ------------ ## 135## Core tests. ## 136## ------------ ## 137 138EOF 139 140# File descriptor usage: 141# 0 standard input 142# 1 file creation 143# 2 errors and warnings 144# 5 compiler messages saved in config.log 145# 6 checking for... messages and results 146exec 5>>config.log 147exec 6>&1 148 149# 150# Initializations. 151# 152ac_default_prefix=/usr/local 153cross_compiling=no 154subdirs= 155MFLAGS= MAKEFLAGS= 156SHELL=${CONFIG_SHELL-/bin/sh} 157 158# Maximum number of lines to put in a shell here document. 159# This variable seems obsolete. It should probably be removed, and 160# only ac_max_sed_lines should be used. 161: ${ac_max_here_lines=38} 162 163# Avoid depending upon Character Ranges. 164ac_cr_az='abcdefghijklmnopqrstuvwxyz' 165ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 166ac_cr_09='0123456789' 167ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09 168 169# Sed expression to map a string onto a valid sh and CPP variable names. 170ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g" 171ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g" 172 173ac_default_prefix=/usr/heimdal 174# Factoring default headers for most tests. 175ac_includes_default="\ 176#include <stdio.h> 177#include <sys/types.h> 178#include <sys/stat.h> 179#if STDC_HEADERS 180# include <stdlib.h> 181# include <stddef.h> 182#else 183# if HAVE_STDLIB_H 184# include <stdlib.h> 185# endif 186#endif 187#if HAVE_STRING_H 188# if !STDC_HEADERS && HAVE_MEMORY_H 189# include <memory.h> 190# endif 191# include <string.h> 192#else 193# if HAVE_STRINGS_H 194# include <strings.h> 195# endif 196#endif 197#if HAVE_INTTYPES_H 198# include <inttypes.h> 199#endif 200#if HAVE_UNISTD_H 201# include <unistd.h> 202#endif" 203 204# Initialize some variables set by options. 205ac_init_help= 206ac_init_version=false 207# The variables have the same names as the options, with 208# dashes changed to underlines. 209cache_file=/dev/null 210exec_prefix=NONE 211no_create= 212no_recursion= 213prefix=NONE 214program_prefix=NONE 215program_suffix=NONE 216program_transform_name=s,x,x, 217silent= 218site= 219srcdir= 220verbose= 221x_includes=NONE 222x_libraries=NONE 223 224# Installation directory options. 225# These are left unexpanded so users can "make install exec_prefix=/foo" 226# and all the variables that are supposed to be based on exec_prefix 227# by default will actually change. 228# Use braces instead of parens because sh, perl, etc. also accept them. 229bindir='${exec_prefix}/bin' 230sbindir='${exec_prefix}/sbin' 231libexecdir='${exec_prefix}/libexec' 232datadir='${prefix}/share' 233sysconfdir='${prefix}/etc' 234sharedstatedir='${prefix}/com' 235localstatedir='${prefix}/var' 236libdir='${exec_prefix}/lib' 237includedir='${prefix}/include' 238oldincludedir='/usr/include' 239infodir='${prefix}/info' 240mandir='${prefix}/man' 241 242# Identity of this package. 243PACKAGE_NAME='heimdal' 244PACKAGE_TARNAME='heimdal' 245PACKAGE_VERSION='0.3e' 246PACKAGE_STRING='heimdal 0.3e' 247PACKAGE_BUGREPORT='heimdal-bugs@pdc.kth.se' 248 249ac_prev= 250for ac_option 251do 252 # If the previous option needs an argument, assign it. 253 if test -n "$ac_prev"; then 254 eval "$ac_prev=\$ac_option" 255 ac_prev= 256 continue 257 fi 258 259 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 260 261 # Accept the important Cygnus configure options, so we can diagnose typos. 262 263 case $ac_option in 264 265 -bindir | --bindir | --bindi | --bind | --bin | --bi) 266 ac_prev=bindir ;; 267 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 268 bindir=$ac_optarg ;; 269 270 -build | --build | --buil | --bui | --bu) 271 ac_prev=build_alias ;; 272 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 273 build_alias=$ac_optarg ;; 274 275 -cache-file | --cache-file | --cache-fil | --cache-fi \ 276 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 277 ac_prev=cache_file ;; 278 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 279 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 280 cache_file=$ac_optarg ;; 281 282 --config-cache | -C) 283 cache_file=config.cache ;; 284 285 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 286 ac_prev=datadir ;; 287 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 288 | --da=*) 289 datadir=$ac_optarg ;; 290 291 -disable-* | --disable-*) 292 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 293 # Reject names that are not valid shell variable names. 294 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && 295 { { echo "$as_me:295: error: invalid feature name: $ac_feature" >&5 296echo "$as_me: error: invalid feature name: $ac_feature" >&2;} 297 { (exit 1); exit 1; }; } 298 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 299 eval "enable_$ac_feature=no" ;; 300 301 -enable-* | --enable-*) 302 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 303 # Reject names that are not valid shell variable names. 304 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && 305 { { echo "$as_me:305: error: invalid feature name: $ac_feature" >&5 306echo "$as_me: error: invalid feature name: $ac_feature" >&2;} 307 { (exit 1); exit 1; }; } 308 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 309 case $ac_option in 310 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 311 *) ac_optarg=yes ;; 312 esac 313 eval "enable_$ac_feature='$ac_optarg'" ;; 314 315 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 316 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 317 | --exec | --exe | --ex) 318 ac_prev=exec_prefix ;; 319 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 320 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 321 | --exec=* | --exe=* | --ex=*) 322 exec_prefix=$ac_optarg ;; 323 324 -gas | --gas | --ga | --g) 325 # Obsolete; use --with-gas. 326 with_gas=yes ;; 327 328 -help | --help | --hel | --he | -h) 329 ac_init_help=long ;; 330 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 331 ac_init_help=recursive ;; 332 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 333 ac_init_help=short ;; 334 335 -host | --host | --hos | --ho) 336 ac_prev=host_alias ;; 337 -host=* | --host=* | --hos=* | --ho=*) 338 host_alias=$ac_optarg ;; 339 340 -includedir | --includedir | --includedi | --included | --include \ 341 | --includ | --inclu | --incl | --inc) 342 ac_prev=includedir ;; 343 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 344 | --includ=* | --inclu=* | --incl=* | --inc=*) 345 includedir=$ac_optarg ;; 346 347 -infodir | --infodir | --infodi | --infod | --info | --inf) 348 ac_prev=infodir ;; 349 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 350 infodir=$ac_optarg ;; 351 352 -libdir | --libdir | --libdi | --libd) 353 ac_prev=libdir ;; 354 -libdir=* | --libdir=* | --libdi=* | --libd=*) 355 libdir=$ac_optarg ;; 356 357 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 358 | --libexe | --libex | --libe) 359 ac_prev=libexecdir ;; 360 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 361 | --libexe=* | --libex=* | --libe=*) 362 libexecdir=$ac_optarg ;; 363 364 -localstatedir | --localstatedir | --localstatedi | --localstated \ 365 | --localstate | --localstat | --localsta | --localst \ 366 | --locals | --local | --loca | --loc | --lo) 367 ac_prev=localstatedir ;; 368 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 369 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 370 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 371 localstatedir=$ac_optarg ;; 372 373 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 374 ac_prev=mandir ;; 375 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 376 mandir=$ac_optarg ;; 377 378 -nfp | --nfp | --nf) 379 # Obsolete; use --without-fp. 380 with_fp=no ;; 381 382 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 383 | --no-cr | --no-c) 384 no_create=yes ;; 385 386 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 387 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 388 no_recursion=yes ;; 389 390 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 391 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 392 | --oldin | --oldi | --old | --ol | --o) 393 ac_prev=oldincludedir ;; 394 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 395 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 396 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 397 oldincludedir=$ac_optarg ;; 398 399 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 400 ac_prev=prefix ;; 401 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 402 prefix=$ac_optarg ;; 403 404 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 405 | --program-pre | --program-pr | --program-p) 406 ac_prev=program_prefix ;; 407 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 408 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 409 program_prefix=$ac_optarg ;; 410 411 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 412 | --program-suf | --program-su | --program-s) 413 ac_prev=program_suffix ;; 414 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 415 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 416 program_suffix=$ac_optarg ;; 417 418 -program-transform-name | --program-transform-name \ 419 | --program-transform-nam | --program-transform-na \ 420 | --program-transform-n | --program-transform- \ 421 | --program-transform | --program-transfor \ 422 | --program-transfo | --program-transf \ 423 | --program-trans | --program-tran \ 424 | --progr-tra | --program-tr | --program-t) 425 ac_prev=program_transform_name ;; 426 -program-transform-name=* | --program-transform-name=* \ 427 | --program-transform-nam=* | --program-transform-na=* \ 428 | --program-transform-n=* | --program-transform-=* \ 429 | --program-transform=* | --program-transfor=* \ 430 | --program-transfo=* | --program-transf=* \ 431 | --program-trans=* | --program-tran=* \ 432 | --progr-tra=* | --program-tr=* | --program-t=*) 433 program_transform_name=$ac_optarg ;; 434 435 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 436 | -silent | --silent | --silen | --sile | --sil) 437 silent=yes ;; 438 439 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 440 ac_prev=sbindir ;; 441 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 442 | --sbi=* | --sb=*) 443 sbindir=$ac_optarg ;; 444 445 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 446 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 447 | --sharedst | --shareds | --shared | --share | --shar \ 448 | --sha | --sh) 449 ac_prev=sharedstatedir ;; 450 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 451 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 452 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 453 | --sha=* | --sh=*) 454 sharedstatedir=$ac_optarg ;; 455 456 -site | --site | --sit) 457 ac_prev=site ;; 458 -site=* | --site=* | --sit=*) 459 site=$ac_optarg ;; 460 461 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 462 ac_prev=srcdir ;; 463 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 464 srcdir=$ac_optarg ;; 465 466 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 467 | --syscon | --sysco | --sysc | --sys | --sy) 468 ac_prev=sysconfdir ;; 469 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 470 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 471 sysconfdir=$ac_optarg ;; 472 473 -target | --target | --targe | --targ | --tar | --ta | --t) 474 ac_prev=target_alias ;; 475 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 476 target_alias=$ac_optarg ;; 477 478 -v | -verbose | --verbose | --verbos | --verbo | --verb) 479 verbose=yes ;; 480 481 -version | --version | --versio | --versi | --vers | -V) 482 ac_init_version=: ;; 483 484 -with-* | --with-*) 485 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 486 # Reject names that are not valid shell variable names. 487 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && 488 { { echo "$as_me:488: error: invalid package name: $ac_package" >&5 489echo "$as_me: error: invalid package name: $ac_package" >&2;} 490 { (exit 1); exit 1; }; } 491 ac_package=`echo $ac_package| sed 's/-/_/g'` 492 case $ac_option in 493 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 494 *) ac_optarg=yes ;; 495 esac 496 eval "with_$ac_package='$ac_optarg'" ;; 497 498 -without-* | --without-*) 499 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 500 # Reject names that are not valid shell variable names. 501 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && 502 { { echo "$as_me:502: error: invalid package name: $ac_package" >&5 503echo "$as_me: error: invalid package name: $ac_package" >&2;} 504 { (exit 1); exit 1; }; } 505 ac_package=`echo $ac_package | sed 's/-/_/g'` 506 eval "with_$ac_package=no" ;; 507 508 --x) 509 # Obsolete; use --with-x. 510 with_x=yes ;; 511 512 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 513 | --x-incl | --x-inc | --x-in | --x-i) 514 ac_prev=x_includes ;; 515 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 516 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 517 x_includes=$ac_optarg ;; 518 519 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 520 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 521 ac_prev=x_libraries ;; 522 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 523 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 524 x_libraries=$ac_optarg ;; 525 526 -*) { { echo "$as_me:526: error: unrecognized option: $ac_option 527Try \`$0 --help' for more information." >&5 528echo "$as_me: error: unrecognized option: $ac_option 529Try \`$0 --help' for more information." >&2;} 530 { (exit 1); exit 1; }; } 531 ;; 532 533 *=*) 534 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 535 # Reject names that are not valid shell variable names. 536 expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null && 537 { { echo "$as_me:537: error: invalid variable name: $ac_envvar" >&5 538echo "$as_me: error: invalid variable name: $ac_envvar" >&2;} 539 { (exit 1); exit 1; }; } 540 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 541 eval "$ac_envvar='$ac_optarg'" 542 export $ac_envvar ;; 543 544 *) 545 # FIXME: should be removed in autoconf 3.0. 546 { echo "$as_me:546: WARNING: you should use --build, --host, --target" >&5 547echo "$as_me: WARNING: you should use --build, --host, --target" >&2;} 548 expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null && 549 { echo "$as_me:549: WARNING: invalid host type: $ac_option" >&5 550echo "$as_me: WARNING: invalid host type: $ac_option" >&2;} 551 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 552 ;; 553 554 esac 555done 556 557if test -n "$ac_prev"; then 558 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 559 { { echo "$as_me:559: error: missing argument to $ac_option" >&5 560echo "$as_me: error: missing argument to $ac_option" >&2;} 561 { (exit 1); exit 1; }; } 562fi 563 564# Be sure to have absolute paths. 565for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 566 localstatedir libdir includedir oldincludedir infodir mandir \ 567 exec_prefix prefix 568do 569 eval ac_val=$`echo $ac_var` 570 case $ac_val in 571 [\\/$]* | ?:[\\/]* ) ;; 572 NONE ) ;; 573 *) { { echo "$as_me:573: error: expected an absolute path for --$ac_var: $ac_val" >&5 574echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2;} 575 { (exit 1); exit 1; }; };; 576 esac 577done 578 579# There might be people who depend on the old broken behavior: `$host' 580# used to hold the argument of --host etc. 581build=$build_alias 582host=$host_alias 583target=$target_alias 584 585# FIXME: should be removed in autoconf 3.0. 586if test "x$host_alias" != x; then 587 if test "x$build_alias" = x; then 588 cross_compiling=maybe 589 { echo "$as_me:589: WARNING: If you wanted to set the --build type, don't use --host. 590 If a cross compiler is detected then cross compile mode will be used." >&5 591echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 592 If a cross compiler is detected then cross compile mode will be used." >&2;} 593 elif test "x$build_alias" != "x$host_alias"; then 594 cross_compiling=yes 595 fi 596fi 597 598ac_tool_prefix= 599test -n "$host_alias" && ac_tool_prefix=$host_alias- 600 601test "$silent" = yes && exec 6>/dev/null 602 603# Find the source files, if location was not specified. 604if test -z "$srcdir"; then 605 ac_srcdir_defaulted=yes 606 # Try the directory containing this script, then its parent. 607 ac_prog=$0 608 ac_confdir=`echo "$ac_prog" | sed 's%/[^/][^/]*$%%'` 609 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 610 srcdir=$ac_confdir 611 if test ! -r $srcdir/$ac_unique_file; then 612 srcdir=.. 613 fi 614else 615 ac_srcdir_defaulted=no 616fi 617if test ! -r $srcdir/$ac_unique_file; then 618 if test "$ac_srcdir_defaulted" = yes; then 619 { { echo "$as_me:619: error: cannot find sources in $ac_confdir or .." >&5 620echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2;} 621 { (exit 1); exit 1; }; } 622 else 623 { { echo "$as_me:623: error: cannot find sources in $srcdir" >&5 624echo "$as_me: error: cannot find sources in $srcdir" >&2;} 625 { (exit 1); exit 1; }; } 626 fi 627fi 628srcdir=`echo "$srcdir" | sed 's%\([^/]\)/*$%\1%'` 629ac_env_build_alias_set=${build_alias+set} 630ac_env_build_alias_value=$build_alias 631ac_cv_env_build_alias_set=${build_alias+set} 632ac_cv_env_build_alias_value=$build_alias 633ac_env_host_alias_set=${host_alias+set} 634ac_env_host_alias_value=$host_alias 635ac_cv_env_host_alias_set=${host_alias+set} 636ac_cv_env_host_alias_value=$host_alias 637ac_env_target_alias_set=${target_alias+set} 638ac_env_target_alias_value=$target_alias 639ac_cv_env_target_alias_set=${target_alias+set} 640ac_cv_env_target_alias_value=$target_alias 641ac_env_CC_set=${CC+set} 642ac_env_CC_value=$CC 643ac_cv_env_CC_set=${CC+set} 644ac_cv_env_CC_value=$CC 645ac_env_CFLAGS_set=${CFLAGS+set} 646ac_env_CFLAGS_value=$CFLAGS 647ac_cv_env_CFLAGS_set=${CFLAGS+set} 648ac_cv_env_CFLAGS_value=$CFLAGS 649ac_env_LDFLAGS_set=${LDFLAGS+set} 650ac_env_LDFLAGS_value=$LDFLAGS 651ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 652ac_cv_env_LDFLAGS_value=$LDFLAGS 653ac_env_CPP_set=${CPP+set} 654ac_env_CPP_value=$CPP 655ac_cv_env_CPP_set=${CPP+set} 656ac_cv_env_CPP_value=$CPP 657ac_env_CPPFLAGS_set=${CPPFLAGS+set} 658ac_env_CPPFLAGS_value=$CPPFLAGS 659ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 660ac_cv_env_CPPFLAGS_value=$CPPFLAGS 661 662# 663# Report the --help message. 664# 665if test "$ac_init_help" = "long"; then 666 # Omit some internal or obsolete options to make the list less imposing. 667 # This message is too long to be a string in the A/UX 3.1 sh. 668 cat <<EOF 669\`configure' configures heimdal 0.3e to adapt to many kinds of systems. 670 671Usage: $0 [OPTION]... [VAR=VALUE]... 672 673To assign environment variables (e.g., CC, CFLAGS...), specify them as 674VAR=VALUE. See below for descriptions of some of the useful variables. 675 676Defaults for the options are specified in brackets. 677 678Configuration: 679 -h, --help display this help and exit 680 --help=short display options specific to this package 681 --help=recursive display the short help of all the included packages 682 -V, --version display version information and exit 683 -q, --quiet, --silent do not print \`checking...' messages 684 --cache-file=FILE cache test results in FILE [disabled] 685 -C, --config-cache alias for \`--cache-file=config.cache' 686 -n, --no-create do not create output files 687 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 688 689EOF 690 691 cat <<EOF 692Installation directories: 693 --prefix=PREFIX install architecture-independent files in PREFIX 694 [$ac_default_prefix] 695 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 696 [PREFIX] 697 698By default, \`make install' will install all the files in 699\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 700an installation prefix other than \`$ac_default_prefix' using \`--prefix', 701for instance \`--prefix=\$HOME'. 702 703For better control, use the options below. 704 705Fine tuning of the installation directories: 706 --bindir=DIR user executables [EPREFIX/bin] 707 --sbindir=DIR system admin executables [EPREFIX/sbin] 708 --libexecdir=DIR program executables [EPREFIX/libexec] 709 --datadir=DIR read-only architecture-independent data [PREFIX/share] 710 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 711 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 712 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 713 --libdir=DIR object code libraries [EPREFIX/lib] 714 --includedir=DIR C header files [PREFIX/include] 715 --oldincludedir=DIR C header files for non-gcc [/usr/include] 716 --infodir=DIR info documentation [PREFIX/info] 717 --mandir=DIR man documentation [PREFIX/man] 718EOF 719 720 cat <<\EOF 721 722Program names: 723 --program-prefix=PREFIX prepend PREFIX to installed program names 724 --program-suffix=SUFFIX append SUFFIX to installed program names 725 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 726 727X features: 728 --x-includes=DIR X include files are in DIR 729 --x-libraries=DIR X library files are in DIR 730 731System types: 732 --build=BUILD configure for building on BUILD [guessed] 733 --host=HOST build programs to run on HOST [BUILD] 734EOF 735fi 736 737if test -n "$ac_init_help"; then 738 case $ac_init_help in 739 short | recursive ) echo "Configuration of heimdal 0.3e:";; 740 esac 741 cat <<\EOF 742 743Optional Features: 744 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 745 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 746 --disable-dependency-tracking Speeds up one-time builds 747 --enable-dependency-tracking Do not reject slow dependency extractors 748 --enable-shared=PKGS build shared libraries default=no 749 --enable-static=PKGS build static libraries default=yes 750 --enable-fast-install=PKGS optimize for fast installation default=yes 751 --disable-libtool-lock avoid locking (might break parallel builds) 752 --enable-dce if you want support for DCE/DFS PAG's. 753 --enable-kaserver if you want the KDC to try to emulate a kaserver 754 --enable-kaserver-db if you want support for reading kaserver databases in hprop 755 --disable-otp if you don't want OTP support 756 --enable-osfc2 enable some OSF C2 support 757 --enable-bigendian the target is big endian 758 --enable-littleendian the target is little endian 759 --enable-netinfo enable netinfo for configuration lookup 760 761Optional Packages: 762 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 763 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 764 --with-mips-abi=abi ABI to use for IRIX (32, n32, or 64) 765 --with-gnu-ld assume the C compiler uses GNU ld default=no 766 --with-pic try to use only PIC/non-PIC objects default=use both 767 --without-berkeley-db if you don't want berkeley db 768 --without-ipv6 do not enable IPv6 support 769 --with-openldap=dir use openldap in dir 770 --with-openldap-lib=dir use openldap libraries in dir 771 --with-openldap-include=dir use openldap headers in dir 772 --with-krb4=dir use krb4 in dir 773 --with-krb4-lib=dir use krb4 libraries in dir 774 --with-krb4-include=dir use krb4 headers in dir 775 --with-readline=dir use readline in dir 776 --with-readline-lib=dir use readline libraries in dir 777 --with-readline-include=dir use readline headers in dir 778 --with-hesiod=dir use hesiod in dir 779 --with-hesiod-lib=dir use hesiod libraries in dir 780 --with-hesiod-include=dir use hesiod headers in dir 781 --with-x use the X Window System 782 783Some influential environment variables: 784 CC C compiler command 785 CFLAGS C compiler flags 786 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 787 nonstandard directory <lib dir> 788 CPP C preprocessor 789 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 790 headers in a nonstandard directory <include dir> 791 792Use these variables to override the choices made by `configure' or to help 793it to find libraries and programs with nonstandard names/locations. 794 795Report bugs to <heimdal-bugs@pdc.kth.se>. 796EOF 797fi 798 799if test "$ac_init_help" = "recursive"; then 800 # If there are subdirs, report their specific --help. 801 ac_popdir=`pwd` 802 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 803 cd $ac_subdir 804 # A "../" for each directory in /$ac_subdir. 805 ac_dots=`echo $ac_subdir | 806 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 807 808 case $srcdir in 809 .) # No --srcdir option. We are building in place. 810 ac_sub_srcdir=$srcdir ;; 811 [\\/]* | ?:[\\/]* ) # Absolute path. 812 ac_sub_srcdir=$srcdir/$ac_subdir ;; 813 *) # Relative path. 814 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 815 esac 816 817 # Check for guested configure; otherwise get Cygnus style configure. 818 if test -f $ac_sub_srcdir/configure.gnu; then 819 echo 820 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 821 elif test -f $ac_sub_srcdir/configure; then 822 echo 823 $SHELL $ac_sub_srcdir/configure --help=recursive 824 elif test -f $ac_sub_srcdir/configure.ac || 825 test -f $ac_sub_srcdir/configure.in; then 826 echo 827 $ac_configure --help 828 else 829 { echo "$as_me:829: WARNING: no configuration information is in $ac_subdir" >&5 830echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;} 831 fi 832 cd $ac_popdir 833 done 834fi 835 836test -n "$ac_init_help" && exit 0 837if $ac_init_version; then 838 cat <<\EOF 839configure (heimdal 0.3e) 2.49d 840 841Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000 842Free Software Foundation, Inc. 843This configure script is free software; the Free Software Foundation 844gives unlimited permission to copy, distribute and modify it. 845EOF 846 exit 0 847fi 848 849# Keep a trace of the command line. 850# Strip out --no-create and --no-recursion so they do not pile up. 851# Also quote any args containing shell meta-characters. 852ac_configure_args= 853ac_sep= 854for ac_arg 855do 856 case $ac_arg in 857 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 858 | --no-cr | --no-c) ;; 859 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 860 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 861 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 862 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 863 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 864 ac_sep=" " ;; 865 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 866 ac_sep=" " ;; 867 esac 868 # Get rid of the leading space. 869done 870 871# When interrupted or exit'd, cleanup temporary files, and complete 872# config.log. We remove comments because anyway the quotes in there 873# would cause problems or look ugly. 874trap 'exit_status=$? 875 # Save into config.log some information that might help in debugging. 876 echo >&5 877 echo "## ----------------- ##" >&5 878 echo "## Cache variables. ##" >&5 879 echo "## ----------------- ##" >&5 880 echo >&5 881 # The following way of writing the cache mishandles newlines in values, 882{ 883 (set) 2>&1 | 884 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 885 *ac_space=\ *) 886 sed -n \ 887 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 888 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 889 ;; 890 *) 891 sed -n \ 892 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 893 ;; 894 esac; 895} >&5 896 sed "/^$/d" confdefs.h >conftest.log 897 if test -s conftest.log; then 898 echo >&5 899 echo "## ------------ ##" >&5 900 echo "## confdefs.h. ##" >&5 901 echo "## ------------ ##" >&5 902 echo >&5 903 cat conftest.log >&5 904 fi 905 (echo; echo) >&5 906 test "$ac_signal" != 0 && 907 echo "$as_me: caught signal $ac_signal" >&5 908 echo "$as_me: exit $exit_status" >&5 909 rm -rf conftest* confdefs* core core.* *.core $ac_clean_files && 910 exit $exit_status 911 ' 0 912for ac_signal in 1 2 13 15; do 913 trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal 914done 915ac_signal=0 916 917# confdefs.h avoids OS command line length limits that DEFS can exceed. 918rm -rf conftest* confdefs.h 919# AIX cpp loses on an empty file, so make sure it contains at least a newline. 920echo >confdefs.h 921 922# Let the site file select an alternate cache file if it wants to. 923# Prefer explicitly selected file to automatically selected ones. 924if test -z "$CONFIG_SITE"; then 925 if test "x$prefix" != xNONE; then 926 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 927 else 928 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 929 fi 930fi 931for ac_site_file in $CONFIG_SITE; do 932 if test -r "$ac_site_file"; then 933 echo "loading site script $ac_site_file" 934 . "$ac_site_file" 935 fi 936done 937 938if test -r "$cache_file"; then 939 # Some versions of bash will fail to source /dev/null (special 940 # files actually), so we avoid doing that. 941 if test -f "$cache_file"; then 942 { echo "$as_me:942: loading cache $cache_file" >&5 943echo "$as_me: loading cache $cache_file" >&6;} 944 case $cache_file in 945 [\\/]* | ?:[\\/]* ) . $cache_file;; 946 *) . ./$cache_file;; 947 esac 948 fi 949else 950 { echo "$as_me:950: creating cache $cache_file" >&5 951echo "$as_me: creating cache $cache_file" >&6;} 952 >$cache_file 953fi 954 955# Check that the precious variables saved in the cache have kept the same 956# value. 957ac_suggest_removing_cache=false 958for ac_var in `(set) 2>&1 | 959 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 960 eval ac_old_set=\$ac_cv_env_${ac_var}_set 961 eval ac_new_set=\$ac_env_${ac_var}_set 962 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 963 eval ac_new_val="\$ac_env_${ac_var}_value" 964 case $ac_old_set,$ac_new_set in 965 set,) 966 { echo "$as_me:966: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 967echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 968 ac_suggest_removing_cache=: ;; 969 ,set) 970 { echo "$as_me:970: WARNING: \`$ac_var' was not set in the previous run" >&5 971echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;} 972 ac_suggest_removing_cache=: ;; 973 ,);; 974 *) 975 if test "x$ac_old_val" != "x$ac_new_val"; then 976 { echo "$as_me:976: WARNING: \`$ac_var' has changed since the previous run:" >&5 977echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;} 978 { echo "$as_me:978: WARNING: former value: $ac_old_val" >&5 979echo "$as_me: WARNING: former value: $ac_old_val" >&2;} 980 { echo "$as_me:980: WARNING: current value: $ac_new_val" >&5 981echo "$as_me: WARNING: current value: $ac_new_val" >&2;} 982 ac_suggest_removing_cache=: 983 fi;; 984 esac 985done 986if $ac_suggest_removing_cache; then 987 { echo "$as_me:987: WARNING: changes in the environment can compromise the build" >&5 988echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;} 989 { echo "$as_me:989: WARNING: consider removing $cache_file and starting over" >&5 990echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;} 991fi 992 993ac_ext=c 994ac_cpp='$CPP $CPPFLAGS' 995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 997ac_compiler_gnu=$ac_cv_c_compiler_gnu 998 999case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 1000 *c*,-n*) ECHO_N= ECHO_C=' 1001' ECHO_T=' ' ;; 1002 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 1003 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 1004esac 1005 1006ac_config_headers="$ac_config_headers include/config.h" 1007 1008ac_config_commands="$ac_config_commands default-1" 1009 1010ac_ext=c 1011ac_cpp='$CPP $CPPFLAGS' 1012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1014ac_compiler_gnu=$ac_cv_c_compiler_gnu 1015if test -n "$ac_tool_prefix"; then 1016 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1017set dummy ${ac_tool_prefix}gcc; ac_word=$2 1018echo "$as_me:1018: checking for $ac_word" >&5 1019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1020if test "${ac_cv_prog_CC+set}" = set; then 1021 echo $ECHO_N "(cached) $ECHO_C" >&6 1022else 1023 if test -n "$CC"; then 1024 ac_cv_prog_CC="$CC" # Let the user override the test. 1025else 1026 ac_save_IFS=$IFS; IFS=':' 1027ac_dummy="$PATH" 1028for ac_dir in $ac_dummy; do 1029 IFS=$ac_save_IFS 1030 test -z "$ac_dir" && ac_dir=. 1031 $as_executable_p "$ac_dir/$ac_word" || continue 1032ac_cv_prog_CC="${ac_tool_prefix}gcc" 1033break 1034done 1035 1036fi 1037fi 1038CC=$ac_cv_prog_CC 1039if test -n "$CC"; then 1040 echo "$as_me:1040: result: $CC" >&5 1041echo "${ECHO_T}$CC" >&6 1042else 1043 echo "$as_me:1043: result: no" >&5 1044echo "${ECHO_T}no" >&6 1045fi 1046 1047fi 1048if test -z "$ac_cv_prog_CC"; then 1049 ac_ct_CC=$CC 1050 # Extract the first word of "gcc", so it can be a program name with args. 1051set dummy gcc; ac_word=$2 1052echo "$as_me:1052: checking for $ac_word" >&5 1053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1054if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1055 echo $ECHO_N "(cached) $ECHO_C" >&6 1056else 1057 if test -n "$ac_ct_CC"; then 1058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1059else 1060 ac_save_IFS=$IFS; IFS=':' 1061ac_dummy="$PATH" 1062for ac_dir in $ac_dummy; do 1063 IFS=$ac_save_IFS 1064 test -z "$ac_dir" && ac_dir=. 1065 $as_executable_p "$ac_dir/$ac_word" || continue 1066ac_cv_prog_ac_ct_CC="gcc" 1067break 1068done 1069 1070fi 1071fi 1072ac_ct_CC=$ac_cv_prog_ac_ct_CC 1073if test -n "$ac_ct_CC"; then 1074 echo "$as_me:1074: result: $ac_ct_CC" >&5 1075echo "${ECHO_T}$ac_ct_CC" >&6 1076else 1077 echo "$as_me:1077: result: no" >&5 1078echo "${ECHO_T}no" >&6 1079fi 1080 1081 CC=$ac_ct_CC 1082else 1083 CC="$ac_cv_prog_CC" 1084fi 1085 1086if test -z "$CC"; then 1087 if test -n "$ac_tool_prefix"; then 1088 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1089set dummy ${ac_tool_prefix}cc; ac_word=$2 1090echo "$as_me:1090: checking for $ac_word" >&5 1091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1092if test "${ac_cv_prog_CC+set}" = set; then 1093 echo $ECHO_N "(cached) $ECHO_C" >&6 1094else 1095 if test -n "$CC"; then 1096 ac_cv_prog_CC="$CC" # Let the user override the test. 1097else 1098 ac_save_IFS=$IFS; IFS=':' 1099ac_dummy="$PATH" 1100for ac_dir in $ac_dummy; do 1101 IFS=$ac_save_IFS 1102 test -z "$ac_dir" && ac_dir=. 1103 $as_executable_p "$ac_dir/$ac_word" || continue 1104ac_cv_prog_CC="${ac_tool_prefix}cc" 1105break 1106done 1107 1108fi 1109fi 1110CC=$ac_cv_prog_CC 1111if test -n "$CC"; then 1112 echo "$as_me:1112: result: $CC" >&5 1113echo "${ECHO_T}$CC" >&6 1114else 1115 echo "$as_me:1115: result: no" >&5 1116echo "${ECHO_T}no" >&6 1117fi 1118 1119fi 1120if test -z "$ac_cv_prog_CC"; then 1121 ac_ct_CC=$CC 1122 # Extract the first word of "cc", so it can be a program name with args. 1123set dummy cc; ac_word=$2 1124echo "$as_me:1124: checking for $ac_word" >&5 1125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1126if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1127 echo $ECHO_N "(cached) $ECHO_C" >&6 1128else 1129 if test -n "$ac_ct_CC"; then 1130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1131else 1132 ac_save_IFS=$IFS; IFS=':' 1133ac_dummy="$PATH" 1134for ac_dir in $ac_dummy; do 1135 IFS=$ac_save_IFS 1136 test -z "$ac_dir" && ac_dir=. 1137 $as_executable_p "$ac_dir/$ac_word" || continue 1138ac_cv_prog_ac_ct_CC="cc" 1139break 1140done 1141 1142fi 1143fi 1144ac_ct_CC=$ac_cv_prog_ac_ct_CC 1145if test -n "$ac_ct_CC"; then 1146 echo "$as_me:1146: result: $ac_ct_CC" >&5 1147echo "${ECHO_T}$ac_ct_CC" >&6 1148else 1149 echo "$as_me:1149: result: no" >&5 1150echo "${ECHO_T}no" >&6 1151fi 1152 1153 CC=$ac_ct_CC 1154else 1155 CC="$ac_cv_prog_CC" 1156fi 1157 1158fi 1159if test -z "$CC"; then 1160 # Extract the first word of "cc", so it can be a program name with args. 1161set dummy cc; ac_word=$2 1162echo "$as_me:1162: checking for $ac_word" >&5 1163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1164if test "${ac_cv_prog_CC+set}" = set; then 1165 echo $ECHO_N "(cached) $ECHO_C" >&6 1166else 1167 if test -n "$CC"; then 1168 ac_cv_prog_CC="$CC" # Let the user override the test. 1169else 1170 ac_prog_rejected=no 1171 ac_save_IFS=$IFS; IFS=':' 1172ac_dummy="$PATH" 1173for ac_dir in $ac_dummy; do 1174 IFS=$ac_save_IFS 1175 test -z "$ac_dir" && ac_dir=. 1176 $as_executable_p "$ac_dir/$ac_word" || continue 1177if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1178 ac_prog_rejected=yes 1179 continue 1180fi 1181ac_cv_prog_CC="cc" 1182break 1183done 1184 1185if test $ac_prog_rejected = yes; then 1186 # We found a bogon in the path, so make sure we never use it. 1187 set dummy $ac_cv_prog_CC 1188 shift 1189 if test $# != 0; then 1190 # We chose a different compiler from the bogus one. 1191 # However, it has the same basename, so the bogon will be chosen 1192 # first if we set CC to just the basename; use the full file name. 1193 shift 1194 set dummy "$ac_dir/$ac_word" ${1+"$@"} 1195 shift 1196 ac_cv_prog_CC="$@" 1197 fi 1198fi 1199fi 1200fi 1201CC=$ac_cv_prog_CC 1202if test -n "$CC"; then 1203 echo "$as_me:1203: result: $CC" >&5 1204echo "${ECHO_T}$CC" >&6 1205else 1206 echo "$as_me:1206: result: no" >&5 1207echo "${ECHO_T}no" >&6 1208fi 1209 1210fi 1211if test -z "$CC"; then 1212 if test -n "$ac_tool_prefix"; then 1213 for ac_prog in cl 1214 do 1215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1216set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1217echo "$as_me:1217: checking for $ac_word" >&5 1218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1219if test "${ac_cv_prog_CC+set}" = set; then 1220 echo $ECHO_N "(cached) $ECHO_C" >&6 1221else 1222 if test -n "$CC"; then 1223 ac_cv_prog_CC="$CC" # Let the user override the test. 1224else 1225 ac_save_IFS=$IFS; IFS=':' 1226ac_dummy="$PATH" 1227for ac_dir in $ac_dummy; do 1228 IFS=$ac_save_IFS 1229 test -z "$ac_dir" && ac_dir=. 1230 $as_executable_p "$ac_dir/$ac_word" || continue 1231ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1232break 1233done 1234 1235fi 1236fi 1237CC=$ac_cv_prog_CC 1238if test -n "$CC"; then 1239 echo "$as_me:1239: result: $CC" >&5 1240echo "${ECHO_T}$CC" >&6 1241else 1242 echo "$as_me:1242: result: no" >&5 1243echo "${ECHO_T}no" >&6 1244fi 1245 1246 test -n "$CC" && break 1247 done 1248fi 1249if test -z "$CC"; then 1250 ac_ct_CC=$CC 1251 for ac_prog in cl 1252do 1253 # Extract the first word of "$ac_prog", so it can be a program name with args. 1254set dummy $ac_prog; ac_word=$2 1255echo "$as_me:1255: checking for $ac_word" >&5 1256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1257if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1258 echo $ECHO_N "(cached) $ECHO_C" >&6 1259else 1260 if test -n "$ac_ct_CC"; then 1261 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1262else 1263 ac_save_IFS=$IFS; IFS=':' 1264ac_dummy="$PATH" 1265for ac_dir in $ac_dummy; do 1266 IFS=$ac_save_IFS 1267 test -z "$ac_dir" && ac_dir=. 1268 $as_executable_p "$ac_dir/$ac_word" || continue 1269ac_cv_prog_ac_ct_CC="$ac_prog" 1270break 1271done 1272 1273fi 1274fi 1275ac_ct_CC=$ac_cv_prog_ac_ct_CC 1276if test -n "$ac_ct_CC"; then 1277 echo "$as_me:1277: result: $ac_ct_CC" >&5 1278echo "${ECHO_T}$ac_ct_CC" >&6 1279else 1280 echo "$as_me:1280: result: no" >&5 1281echo "${ECHO_T}no" >&6 1282fi 1283 1284 test -n "$ac_ct_CC" && break 1285done 1286 1287 CC=$ac_ct_CC 1288fi 1289 1290fi 1291 1292test -z "$CC" && { { echo "$as_me:1292: error: no acceptable cc found in \$PATH" >&5 1293echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1294 { (exit 1); exit 1; }; } 1295 1296echo "$as_me:1296: checking for object suffix" >&5 1297echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1298if test "${ac_cv_objext+set}" = set; then 1299 echo $ECHO_N "(cached) $ECHO_C" >&6 1300else 1301 cat >conftest.$ac_ext <<_ACEOF 1302#line 1302 "configure" 1303#include "confdefs.h" 1304 1305int 1306main () 1307{ 1308 1309 ; 1310 return 0; 1311} 1312_ACEOF 1313rm -f conftest.o conftest.obj 1314if { (eval echo "$as_me:1314: \"$ac_compile\"") >&5 1315 (eval $ac_compile) 2>&5 1316 ac_status=$? 1317 echo "$as_me:1317: \$? = $ac_status" >&5 1318 (exit $ac_status); }; then 1319 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1320 case $ac_file in 1321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; 1322 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1323 break;; 1324 esac 1325done 1326else 1327 echo "$as_me: failed program was:" >&5 1328cat conftest.$ac_ext >&5 1329{ { echo "$as_me:1329: error: cannot compute OBJEXT: cannot compile" >&5 1330echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1331 { (exit 1); exit 1; }; } 1332fi 1333 1334rm -f conftest.$ac_cv_objext conftest.$ac_ext 1335fi 1336echo "$as_me:1336: result: $ac_cv_objext" >&5 1337echo "${ECHO_T}$ac_cv_objext" >&6 1338OBJEXT=$ac_cv_objext 1339ac_objext=$OBJEXT 1340echo "$as_me:1340: checking for executable suffix" >&5 1341echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1342if test "${ac_cv_exeext+set}" = set; then 1343 echo $ECHO_N "(cached) $ECHO_C" >&6 1344else 1345 cat >conftest.$ac_ext <<_ACEOF 1346#line 1346 "configure" 1347#include "confdefs.h" 1348 1349int 1350main () 1351{ 1352 1353 ; 1354 return 0; 1355} 1356_ACEOF 1357# Try without -o first, disregard a.out. 1358ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1359if { (eval echo "$as_me:1359: \"$ac_link_default\"") >&5 1360 (eval $ac_link_default) 2>&5 1361 ac_status=$? 1362 echo "$as_me:1362: \$? = $ac_status" >&5 1363 (exit $ac_status); }; then 1364 for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do 1365 case $ac_file in 1366 *.$ac_ext | *.out | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1367 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1368 export ac_cv_exeext 1369 break;; 1370 * ) break;; 1371 esac 1372done 1373else 1374 echo "$as_me: failed program was:" >&5 1375cat conftest.$ac_ext >&5 1376fi 1377 1378rm -f a.out a.exe conftest$ac_cv_exeext 1379 1380# We have not set ac_exeext yet which is needed by `ac_link'. 1381ac_exeext=$ac_cv_exeext 1382if { (eval echo "$as_me:1382: \"$ac_link\"") >&5 1383 (eval $ac_link) 2>&5 1384 ac_status=$? 1385 echo "$as_me:1385: \$? = $ac_status" >&5 1386 (exit $ac_status); }; then 1387 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1388# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1389# work properly (i.e., refer to `conftest.exe'), while it won't with 1390# `rm'. 1391for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1392 case $ac_file in 1393 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1394 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1395 export ac_cv_exeext 1396 break;; 1397 * ) break;; 1398 esac 1399done 1400else 1401 { { echo "$as_me:1401: error: cannot compute EXEEXT: cannot compile and link" >&5 1402echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1403 { (exit 1); exit 1; }; } 1404fi 1405 1406rm -f conftest.$ac_ext conftest$ac_cv_exeext 1407 1408fi 1409echo "$as_me:1409: result: $ac_cv_exeext" >&5 1410echo "${ECHO_T}$ac_cv_exeext" >&6 1411EXEEXT=$ac_cv_exeext 1412ac_exeext=$EXEEXT 1413echo "$as_me:1413: checking whether the C compiler works" >&5 1414echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1415cat >conftest.$ac_ext <<_ACEOF 1416#line 1416 "configure" 1417#include "confdefs.h" 1418 1419int 1420main () 1421{ 1422 1423 ; 1424 return 0; 1425} 1426_ACEOF 1427rm -f conftest.$ac_objext conftest$ac_exeext 1428if { (eval echo "$as_me:1428: \"$ac_link\"") >&5 1429 (eval $ac_link) 2>&5 1430 ac_status=$? 1431 echo "$as_me:1431: \$? = $ac_status" >&5 1432 (exit $ac_status); } && 1433 { (eval echo "$as_me:1433: \"test -s conftest$ac_exeext\"") >&5 1434 (eval test -s conftest$ac_exeext) 2>&5 1435 ac_status=$? 1436 echo "$as_me:1436: \$? = $ac_status" >&5 1437 (exit $ac_status); }; then 1438 # FIXME: these cross compiler hacks should be removed for autoconf 3.0 1439# If not cross compiling, check that we can run a simple program. 1440if test "$cross_compiling" != yes; then 1441 if { (eval echo "$as_me:1441: \"./conftest$ac_exeext\"") >&5 1442 (eval ./conftest$ac_exeext) 2>&5 1443 ac_status=$? 1444 echo "$as_me:1444: \$? = $ac_status" >&5 1445 (exit $ac_status); }; then 1446 cross_compiling=no 1447 else 1448 if test "$cross_compiling" = maybe; then 1449 cross_compiling=yes 1450 else 1451 { { echo "$as_me:1451: error: cannot run C compiled programs. 1452To enable cross compilation, use \`--host'." >&5 1453echo "$as_me: error: cannot run C compiled programs. 1454To enable cross compilation, use \`--host'." >&2;} 1455 { (exit 1); exit 1; }; } 1456 fi 1457 fi 1458fi 1459echo "$as_me:1459: result: yes" >&5 1460echo "${ECHO_T}yes" >&6 1461else 1462 echo "$as_me: failed program was:" >&5 1463cat conftest.$ac_ext >&5 1464echo "$as_me:1464: result: no" >&5 1465echo "${ECHO_T}no" >&6 1466{ { echo "$as_me:1466: error: C compiler cannot create executables" >&5 1467echo "$as_me: error: C compiler cannot create executables" >&2;} 1468 { (exit 77); exit 77; }; } 1469fi 1470rm -f conftest$ac_exeext conftest.$ac_ext 1471echo "$as_me:1471: checking whether we are cross compiling" >&5 1472echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1473echo "$as_me:1473: result: $cross_compiling" >&5 1474echo "${ECHO_T}$cross_compiling" >&6 1475 1476echo "$as_me:1476: checking whether we are using the GNU C compiler" >&5 1477echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1478if test "${ac_cv_c_compiler_gnu+set}" = set; then 1479 echo $ECHO_N "(cached) $ECHO_C" >&6 1480else 1481 cat >conftest.$ac_ext <<_ACEOF 1482#line 1482 "configure" 1483#include "confdefs.h" 1484 1485int 1486main () 1487{ 1488#ifndef __GNUC__ 1489 choke me 1490#endif 1491 1492 ; 1493 return 0; 1494} 1495_ACEOF 1496rm -f conftest.$ac_objext 1497if { (eval echo "$as_me:1497: \"$ac_compile\"") >&5 1498 (eval $ac_compile) 2>&5 1499 ac_status=$? 1500 echo "$as_me:1500: \$? = $ac_status" >&5 1501 (exit $ac_status); } && 1502 { (eval echo "$as_me:1502: \"test -s conftest.$ac_objext\"") >&5 1503 (eval test -s conftest.$ac_objext) 2>&5 1504 ac_status=$? 1505 echo "$as_me:1505: \$? = $ac_status" >&5 1506 (exit $ac_status); }; then 1507 ac_compiler_gnu=yes 1508else 1509 echo "$as_me: failed program was:" >&5 1510cat conftest.$ac_ext >&5 1511ac_compiler_gnu=no 1512fi 1513rm -f conftest.$ac_objext conftest.$ac_ext 1514ac_cv_c_compiler_gnu=$ac_compiler_gnu 1515 1516fi 1517echo "$as_me:1517: result: $ac_cv_c_compiler_gnu" >&5 1518echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1519GCC=`test $ac_compiler_gnu = yes && echo yes` 1520ac_test_CFLAGS=${CFLAGS+set} 1521ac_save_CFLAGS=$CFLAGS 1522CFLAGS="-g" 1523echo "$as_me:1523: checking whether $CC accepts -g" >&5 1524echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1525if test "${ac_cv_prog_cc_g+set}" = set; then 1526 echo $ECHO_N "(cached) $ECHO_C" >&6 1527else 1528 cat >conftest.$ac_ext <<_ACEOF 1529#line 1529 "configure" 1530#include "confdefs.h" 1531 1532int 1533main () 1534{ 1535 1536 ; 1537 return 0; 1538} 1539_ACEOF 1540rm -f conftest.$ac_objext 1541if { (eval echo "$as_me:1541: \"$ac_compile\"") >&5 1542 (eval $ac_compile) 2>&5 1543 ac_status=$? 1544 echo "$as_me:1544: \$? = $ac_status" >&5 1545 (exit $ac_status); } && 1546 { (eval echo "$as_me:1546: \"test -s conftest.$ac_objext\"") >&5 1547 (eval test -s conftest.$ac_objext) 2>&5 1548 ac_status=$? 1549 echo "$as_me:1549: \$? = $ac_status" >&5 1550 (exit $ac_status); }; then 1551 ac_cv_prog_cc_g=yes 1552else 1553 echo "$as_me: failed program was:" >&5 1554cat conftest.$ac_ext >&5 1555ac_cv_prog_cc_g=no 1556fi 1557rm -f conftest.$ac_objext conftest.$ac_ext 1558fi 1559echo "$as_me:1559: result: $ac_cv_prog_cc_g" >&5 1560echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1561if test "$ac_test_CFLAGS" = set; then 1562 CFLAGS=$ac_save_CFLAGS 1563elif test $ac_cv_prog_cc_g = yes; then 1564 if test "$GCC" = yes; then 1565 CFLAGS="-g -O2" 1566 else 1567 CFLAGS="-g" 1568 fi 1569else 1570 if test "$GCC" = yes; then 1571 CFLAGS="-O2" 1572 else 1573 CFLAGS= 1574 fi 1575fi 1576# Some people use a C++ compiler to compile C. Since we use `exit', 1577# in C++ we need to declare it. In case someone uses the same compiler 1578# for both compiling C and C++ we need to have the C++ compiler decide 1579# the declaration of exit, since it's the most demanding environment. 1580cat >conftest.$ac_ext <<_ACEOF 1581#ifndef __cplusplus 1582 choke me 1583#endif 1584_ACEOF 1585rm -f conftest.$ac_objext 1586if { (eval echo "$as_me:1586: \"$ac_compile\"") >&5 1587 (eval $ac_compile) 2>&5 1588 ac_status=$? 1589 echo "$as_me:1589: \$? = $ac_status" >&5 1590 (exit $ac_status); } && 1591 { (eval echo "$as_me:1591: \"test -s conftest.$ac_objext\"") >&5 1592 (eval test -s conftest.$ac_objext) 2>&5 1593 ac_status=$? 1594 echo "$as_me:1594: \$? = $ac_status" >&5 1595 (exit $ac_status); }; then 1596 for ac_declaration in \ 1597 ''\ 1598 '#include <stdlib.h>' \ 1599 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1600 'extern "C" void std::exit (int); using std::exit;' \ 1601 'extern "C" void exit (int) throw ();' \ 1602 'extern "C" void exit (int);' \ 1603 'void exit (int);' 1604do 1605 cat >conftest.$ac_ext <<_ACEOF 1606#line 1606 "configure" 1607#include "confdefs.h" 1608#include <stdlib.h> 1609$ac_declaration 1610int 1611main () 1612{ 1613exit (42); 1614 ; 1615 return 0; 1616} 1617_ACEOF 1618rm -f conftest.$ac_objext 1619if { (eval echo "$as_me:1619: \"$ac_compile\"") >&5 1620 (eval $ac_compile) 2>&5 1621 ac_status=$? 1622 echo "$as_me:1622: \$? = $ac_status" >&5 1623 (exit $ac_status); } && 1624 { (eval echo "$as_me:1624: \"test -s conftest.$ac_objext\"") >&5 1625 (eval test -s conftest.$ac_objext) 2>&5 1626 ac_status=$? 1627 echo "$as_me:1627: \$? = $ac_status" >&5 1628 (exit $ac_status); }; then 1629 : 1630else 1631 echo "$as_me: failed program was:" >&5 1632cat conftest.$ac_ext >&5 1633continue 1634fi 1635rm -f conftest.$ac_objext conftest.$ac_ext 1636 cat >conftest.$ac_ext <<_ACEOF 1637#line 1637 "configure" 1638#include "confdefs.h" 1639$ac_declaration 1640int 1641main () 1642{ 1643exit (42); 1644 ; 1645 return 0; 1646} 1647_ACEOF 1648rm -f conftest.$ac_objext 1649if { (eval echo "$as_me:1649: \"$ac_compile\"") >&5 1650 (eval $ac_compile) 2>&5 1651 ac_status=$? 1652 echo "$as_me:1652: \$? = $ac_status" >&5 1653 (exit $ac_status); } && 1654 { (eval echo "$as_me:1654: \"test -s conftest.$ac_objext\"") >&5 1655 (eval test -s conftest.$ac_objext) 2>&5 1656 ac_status=$? 1657 echo "$as_me:1657: \$? = $ac_status" >&5 1658 (exit $ac_status); }; then 1659 break 1660else 1661 echo "$as_me: failed program was:" >&5 1662cat conftest.$ac_ext >&5 1663fi 1664rm -f conftest.$ac_objext conftest.$ac_ext 1665done 1666echo '#ifdef __cplusplus' >>confdefs.h 1667echo $ac_declaration >>confdefs.h 1668echo '#endif' >>confdefs.h 1669 1670else 1671 echo "$as_me: failed program was:" >&5 1672cat conftest.$ac_ext >&5 1673fi 1674rm -f conftest.$ac_objext conftest.$ac_ext 1675ac_ext=c 1676ac_cpp='$CPP $CPPFLAGS' 1677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1679ac_compiler_gnu=$ac_cv_c_compiler_gnu 1680 1681ac_ext=c 1682ac_cpp='$CPP $CPPFLAGS' 1683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1685ac_compiler_gnu=$ac_cv_c_compiler_gnu 1686echo "$as_me:1686: checking how to run the C preprocessor" >&5 1687echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 1688# On Suns, sometimes $CPP names a directory. 1689if test -n "$CPP" && test -d "$CPP"; then 1690 CPP= 1691fi 1692if test -z "$CPP"; then 1693 if test "${ac_cv_prog_CPP+set}" = set; then 1694 echo $ECHO_N "(cached) $ECHO_C" >&6 1695else 1696 # Double quotes because CPP needs to be expanded 1697 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 1698 do 1699 # Use a header file that comes with gcc, so configuring glibc 1700# with a fresh cross-compiler works. 1701# On the NeXT, cc -E runs the code through the compiler's parser, 1702# not just through cpp. "Syntax error" is here to catch this case. 1703ac_c_preproc_warn_flag=maybe 1704cat >conftest.$ac_ext <<_ACEOF 1705#line 1705 "configure" 1706#include "confdefs.h" 1707#include <assert.h> 1708Syntax error 1709_ACEOF 1710if { (eval echo "$as_me:1710: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 1711 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 1712 ac_status=$? 1713 egrep -v '^ *\+' conftest.er1 >conftest.err 1714 rm -f conftest.er1 1715 cat conftest.err >&5 1716 echo "$as_me:1716: \$? = $ac_status" >&5 1717 (exit $ac_status); }; then 1718 if test -s conftest.err; then 1719 ac_cpp_err=$ac_c_preproc_warn_flag 1720 else 1721 ac_cpp_err= 1722 fi 1723else 1724 ac_cpp_err=yes 1725fi 1726if test -z "$ac_cpp_err"; then 1727 # Now check whether non-existent headers can be detected and how 1728# Skip if ac_cpp_err is not empty - ac_cpp is broken 1729if test -z "$ac_cpp_err"; then 1730 cat >conftest.$ac_ext <<_ACEOF 1731#line 1731 "configure" 1732#include "confdefs.h" 1733#include <ac_nonexistent.h> 1734_ACEOF 1735if { (eval echo "$as_me:1735: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 1736 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 1737 ac_status=$? 1738 egrep -v '^ *\+' conftest.er1 >conftest.err 1739 rm -f conftest.er1 1740 cat conftest.err >&5 1741 echo "$as_me:1741: \$? = $ac_status" >&5 1742 (exit $ac_status); }; then 1743 if test -s conftest.err; then 1744 ac_cpp_err=$ac_c_preproc_warn_flag 1745 else 1746 ac_cpp_err= 1747 fi 1748else 1749 ac_cpp_err=yes 1750fi 1751if test -z "$ac_cpp_err"; then 1752 # cannot detect missing includes at all 1753ac_cpp_err=yes 1754else 1755 echo "$as_me: failed program was:" >&5 1756 cat conftest.$ac_ext >&5 1757 if test "x$ac_cpp_err" = xmaybe; then 1758 ac_c_preproc_warn_flag=yes 1759 else 1760 ac_c_preproc_warn_flag= 1761 fi 1762 ac_cpp_err= 1763fi 1764rm -f conftest.err conftest.$ac_ext 1765fi 1766else 1767 echo "$as_me: failed program was:" >&5 1768 cat conftest.$ac_ext >&5 1769 1770fi 1771rm -f conftest.err conftest.$ac_ext 1772 if test -z "$ac_cpp_err"; then 1773 break 1774 fi 1775 done 1776 ac_cv_prog_CPP=$CPP 1777 1778fi 1779 CPP=$ac_cv_prog_CPP 1780else 1781 # Use a header file that comes with gcc, so configuring glibc 1782# with a fresh cross-compiler works. 1783# On the NeXT, cc -E runs the code through the compiler's parser, 1784# not just through cpp. "Syntax error" is here to catch this case. 1785ac_c_preproc_warn_flag=maybe 1786cat >conftest.$ac_ext <<_ACEOF 1787#line 1787 "configure" 1788#include "confdefs.h" 1789#include <assert.h> 1790Syntax error 1791_ACEOF 1792if { (eval echo "$as_me:1792: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 1793 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 1794 ac_status=$? 1795 egrep -v '^ *\+' conftest.er1 >conftest.err 1796 rm -f conftest.er1 1797 cat conftest.err >&5 1798 echo "$as_me:1798: \$? = $ac_status" >&5 1799 (exit $ac_status); }; then 1800 if test -s conftest.err; then 1801 ac_cpp_err=$ac_c_preproc_warn_flag 1802 else 1803 ac_cpp_err= 1804 fi 1805else 1806 ac_cpp_err=yes 1807fi 1808if test -z "$ac_cpp_err"; then 1809 # Now check whether non-existent headers can be detected and how 1810# Skip if ac_cpp_err is not empty - ac_cpp is broken 1811if test -z "$ac_cpp_err"; then 1812 cat >conftest.$ac_ext <<_ACEOF 1813#line 1813 "configure" 1814#include "confdefs.h" 1815#include <ac_nonexistent.h> 1816_ACEOF 1817if { (eval echo "$as_me:1817: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 1818 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 1819 ac_status=$? 1820 egrep -v '^ *\+' conftest.er1 >conftest.err 1821 rm -f conftest.er1 1822 cat conftest.err >&5 1823 echo "$as_me:1823: \$? = $ac_status" >&5 1824 (exit $ac_status); }; then 1825 if test -s conftest.err; then 1826 ac_cpp_err=$ac_c_preproc_warn_flag 1827 else 1828 ac_cpp_err= 1829 fi 1830else 1831 ac_cpp_err=yes 1832fi 1833if test -z "$ac_cpp_err"; then 1834 # cannot detect missing includes at all 1835ac_cpp_err=yes 1836else 1837 echo "$as_me: failed program was:" >&5 1838 cat conftest.$ac_ext >&5 1839 if test "x$ac_cpp_err" = xmaybe; then 1840 ac_c_preproc_warn_flag=yes 1841 else 1842 ac_c_preproc_warn_flag= 1843 fi 1844 ac_cpp_err= 1845fi 1846rm -f conftest.err conftest.$ac_ext 1847fi 1848else 1849 echo "$as_me: failed program was:" >&5 1850 cat conftest.$ac_ext >&5 1851 1852fi 1853rm -f conftest.err conftest.$ac_ext 1854 ac_cv_prog_CPP=$CPP 1855fi 1856echo "$as_me:1856: result: $CPP" >&5 1857echo "${ECHO_T}$CPP" >&6 1858if test -n "$ac_cpp_err"; then 1859 { { echo "$as_me:1859: error: C preprocessor \"$CPP\" fails sanity check" >&5 1860echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 1861 { (exit 1); exit 1; }; } 1862fi 1863ac_ext=c 1864ac_cpp='$CPP $CPPFLAGS' 1865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1867ac_compiler_gnu=$ac_cv_c_compiler_gnu 1868 1869echo "$as_me:1869: checking for $CC option to accept ANSI C" >&5 1870echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1871if test "${ac_cv_prog_cc_stdc+set}" = set; then 1872 echo $ECHO_N "(cached) $ECHO_C" >&6 1873else 1874 ac_cv_prog_cc_stdc=no 1875ac_save_CC=$CC 1876cat >conftest.$ac_ext <<_ACEOF 1877#line 1877 "configure" 1878#include "confdefs.h" 1879#include <stdarg.h> 1880#include <stdio.h> 1881#include <sys/types.h> 1882#include <sys/stat.h> 1883/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1884struct buf { int x; }; 1885FILE * (*rcsopen) (struct buf *, struct stat *, int); 1886static char *e (p, i) 1887 char **p; 1888 int i; 1889{ 1890 return p[i]; 1891} 1892static char *f (char * (*g) (char **, int), char **p, ...) 1893{ 1894 char *s; 1895 va_list v; 1896 va_start (v,p); 1897 s = g (p, va_arg (v,int)); 1898 va_end (v); 1899 return s; 1900} 1901int test (int i, double x); 1902struct s1 {int (*f) (int a);}; 1903struct s2 {int (*f) (double a);}; 1904int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 1905int argc; 1906char **argv; 1907int 1908main () 1909{ 1910return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 1911 ; 1912 return 0; 1913} 1914_ACEOF 1915# Don't try gcc -ansi; that turns off useful extensions and 1916# breaks some systems' header files. 1917# AIX -qlanglvl=ansi 1918# Ultrix and OSF/1 -std1 1919# HP-UX 10.20 and later -Ae 1920# HP-UX older versions -Aa -D_HPUX_SOURCE 1921# SVR4 -Xc -D__EXTENSIONS__ 1922for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 1923do 1924 CC="$ac_save_CC $ac_arg" 1925 rm -f conftest.$ac_objext 1926if { (eval echo "$as_me:1926: \"$ac_compile\"") >&5 1927 (eval $ac_compile) 2>&5 1928 ac_status=$? 1929 echo "$as_me:1929: \$? = $ac_status" >&5 1930 (exit $ac_status); } && 1931 { (eval echo "$as_me:1931: \"test -s conftest.$ac_objext\"") >&5 1932 (eval test -s conftest.$ac_objext) 2>&5 1933 ac_status=$? 1934 echo "$as_me:1934: \$? = $ac_status" >&5 1935 (exit $ac_status); }; then 1936 ac_cv_prog_cc_stdc=$ac_arg 1937break 1938else 1939 echo "$as_me: failed program was:" >&5 1940cat conftest.$ac_ext >&5 1941fi 1942rm -f conftest.$ac_objext 1943done 1944rm -f conftest.$ac_ext conftest.$ac_objext 1945CC=$ac_save_CC 1946 1947fi 1948 1949case "x$ac_cv_prog_cc_stdc" in 1950 x|xno) 1951 echo "$as_me:1951: result: none needed" >&5 1952echo "${ECHO_T}none needed" >&6 ;; 1953 *) 1954 echo "$as_me:1954: result: $ac_cv_prog_cc_stdc" >&5 1955echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 1956 CC="$CC $ac_cv_prog_cc_stdc" ;; 1957esac 1958 1959ac_aux_dir= 1960for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1961 if test -f $ac_dir/install-sh; then 1962 ac_aux_dir=$ac_dir 1963 ac_install_sh="$ac_aux_dir/install-sh -c" 1964 break 1965 elif test -f $ac_dir/install.sh; then 1966 ac_aux_dir=$ac_dir 1967 ac_install_sh="$ac_aux_dir/install.sh -c" 1968 break 1969 elif test -f $ac_dir/shtool; then 1970 ac_aux_dir=$ac_dir 1971 ac_install_sh="$ac_aux_dir/shtool install -c" 1972 break 1973 fi 1974done 1975if test -z "$ac_aux_dir"; then 1976 { { echo "$as_me:1976: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1977echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1978 { (exit 1); exit 1; }; } 1979fi 1980ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1981ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1982ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1983 1984# Find a good install program. We prefer a C program (faster), 1985# so one script is as good as another. But avoid the broken or 1986# incompatible versions: 1987# SysV /etc/install, /usr/sbin/install 1988# SunOS /usr/etc/install 1989# IRIX /sbin/install 1990# AIX /bin/install 1991# AmigaOS /C/install, which installs bootblocks on floppy discs 1992# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1993# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1994# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1995# ./install, which can be erroneously created by make from ./install.sh. 1996echo "$as_me:1996: checking for a BSD compatible install" >&5 1997echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 1998if test -z "$INSTALL"; then 1999if test "${ac_cv_path_install+set}" = set; then 2000 echo $ECHO_N "(cached) $ECHO_C" >&6 2001else 2002 ac_save_IFS=$IFS; IFS=':' 2003 for ac_dir in $PATH; do 2004 # Account for people who put trailing slashes in PATH elements. 2005 case $ac_dir/ in 2006 / | ./ | .// | /cC/* \ 2007 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2008 | /usr/ucb/* ) ;; 2009 *) 2010 # OSF1 and SCO ODT 3.0 have their own names for install. 2011 # Don't use installbsd from OSF since it installs stuff as root 2012 # by default. 2013 for ac_prog in ginstall scoinst install; do 2014 if test -f "$ac_dir/$ac_prog"; then 2015 if test $ac_prog = install && 2016 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2017 # AIX install. It has an incompatible calling convention. 2018 : 2019 elif test $ac_prog = install && 2020 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then 2021 # program-specific install script used by HP pwplus--don't use. 2022 : 2023 else 2024 ac_cv_path_install="$ac_dir/$ac_prog -c" 2025 break 2 2026 fi 2027 fi 2028 done 2029 ;; 2030 esac 2031 done 2032 IFS=$ac_save_IFS 2033 2034fi 2035 if test "${ac_cv_path_install+set}" = set; then 2036 INSTALL=$ac_cv_path_install 2037 else 2038 # As a last resort, use the slow shell script. We don't cache a 2039 # path for INSTALL within a source directory, because that will 2040 # break other packages using the cache if that directory is 2041 # removed, or if the path is relative. 2042 INSTALL=$ac_install_sh 2043 fi 2044fi 2045echo "$as_me:2045: result: $INSTALL" >&5 2046echo "${ECHO_T}$INSTALL" >&6 2047 2048# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2049# It thinks the first close brace ends the variable substitution. 2050test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2051 2052test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2053 2054test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2055 2056echo "$as_me:2056: checking whether build environment is sane" >&5 2057echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 2058# Just in case 2059sleep 1 2060echo timestamp > conftestfile 2061# Do `set' in a subshell so we don't clobber the current shell's 2062# arguments. Must try -L first in case configure is actually a 2063# symlink; some systems play weird games with the mod time of symlinks 2064# (eg FreeBSD returns the mod time of the symlink's containing 2065# directory). 2066if ( 2067 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 2068 if test "$*" = "X"; then 2069 # -L didn't work. 2070 set X `ls -t $srcdir/configure conftestfile` 2071 fi 2072 if test "$*" != "X $srcdir/configure conftestfile" \ 2073 && test "$*" != "X conftestfile $srcdir/configure"; then 2074 2075 # If neither matched, then we have a broken ls. This can happen 2076 # if, for instance, CONFIG_SHELL is bash and it inherits a 2077 # broken ls alias from the environment. This has actually 2078 # happened. Such a system could not be considered "sane". 2079 { { echo "$as_me:2079: error: ls -t appears to fail. Make sure there is not a broken 2080alias in your environment" >&5 2081echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2082alias in your environment" >&2;} 2083 { (exit 1); exit 1; }; } 2084 fi 2085 2086 test "$2" = conftestfile 2087 ) 2088then 2089 # Ok. 2090 : 2091else 2092 { { echo "$as_me:2092: error: newly created file is older than distributed files! 2093Check your system clock" >&5 2094echo "$as_me: error: newly created file is older than distributed files! 2095Check your system clock" >&2;} 2096 { (exit 1); exit 1; }; } 2097fi 2098rm -f conftest* 2099echo "$as_me:2099: result: yes" >&5 2100echo "${ECHO_T}yes" >&6 2101if test "$program_transform_name" = s,x,x,; then 2102 program_transform_name= 2103else 2104 # Double any \ or $. echo might interpret backslashes. 2105 cat <<\EOF >conftestsed 2106s,\\,\\\\,g; s,\$,$$,g 2107EOF 2108 program_transform_name=`echo $program_transform_name | sed -f conftestsed` 2109 rm -f conftestsed 2110fi 2111test "$program_prefix" != NONE && 2112 program_transform_name="s,^,${program_prefix},;$program_transform_name" 2113# Use a double $ so make ignores it. 2114test "$program_suffix" != NONE && 2115 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name" 2116 2117# sed with no file args requires a program. 2118test -z "$program_transform_name" && program_transform_name="s,x,x," 2119 2120test x"${MISSING+set}" = xset || \ 2121 MISSING="\${SHELL} `CDPATH=: && cd $ac_aux_dir && pwd`/missing" 2122if eval "$MISSING --run :"; then 2123 am_missing_run="$MISSING --run " 2124else 2125 am_missing_run= 2126 am_backtick='`' 2127 { echo "$as_me:2127: WARNING: ${am_backtick}missing' script is too old or missing" >&5 2128echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;} 2129fi 2130 2131for ac_prog in mawk gawk nawk awk 2132do 2133 # Extract the first word of "$ac_prog", so it can be a program name with args. 2134set dummy $ac_prog; ac_word=$2 2135echo "$as_me:2135: checking for $ac_word" >&5 2136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2137if test "${ac_cv_prog_AWK+set}" = set; then 2138 echo $ECHO_N "(cached) $ECHO_C" >&6 2139else 2140 if test -n "$AWK"; then 2141 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2142else 2143 ac_save_IFS=$IFS; IFS=':' 2144ac_dummy="$PATH" 2145for ac_dir in $ac_dummy; do 2146 IFS=$ac_save_IFS 2147 test -z "$ac_dir" && ac_dir=. 2148 $as_executable_p "$ac_dir/$ac_word" || continue 2149ac_cv_prog_AWK="$ac_prog" 2150break 2151done 2152 2153fi 2154fi 2155AWK=$ac_cv_prog_AWK 2156if test -n "$AWK"; then 2157 echo "$as_me:2157: result: $AWK" >&5 2158echo "${ECHO_T}$AWK" >&6 2159else 2160 echo "$as_me:2160: result: no" >&5 2161echo "${ECHO_T}no" >&6 2162fi 2163 2164 test -n "$AWK" && break 2165done 2166 2167echo "$as_me:2167: checking whether ${MAKE-make} sets \${MAKE}" >&5 2168echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 2169set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 2170if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2171 echo $ECHO_N "(cached) $ECHO_C" >&6 2172else 2173 cat >conftestmake <<\EOF 2174all: 2175 @echo 'ac_maketemp="${MAKE}"' 2176EOF 2177# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2178eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 2179if test -n "$ac_maketemp"; then 2180 eval ac_cv_prog_make_${ac_make}_set=yes 2181else 2182 eval ac_cv_prog_make_${ac_make}_set=no 2183fi 2184rm -f conftestmake 2185fi 2186if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2187 echo "$as_me:2187: result: yes" >&5 2188echo "${ECHO_T}yes" >&6 2189 SET_MAKE= 2190else 2191 echo "$as_me:2191: result: no" >&5 2192echo "${ECHO_T}no" >&6 2193 SET_MAKE="MAKE=${MAKE-make}" 2194fi 2195 2196# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2197if test "${enable_dependency_tracking+set}" = set; then 2198 enableval="$enable_dependency_tracking" 2199 2200fi; 2201if test "x$enable_dependency_tracking" = xno; then 2202 AMDEP="#" 2203else 2204 am_depcomp="$ac_aux_dir/depcomp" 2205 if test ! -f "$am_depcomp"; then 2206 AMDEP="#" 2207 else 2208 AMDEP= 2209 fi 2210fi 2211 2212if test -z "$AMDEP"; then 2213 AMDEPBACKSLASH='\' 2214else 2215 AMDEPBACKSLASH= 2216fi 2217 2218if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then 2219 DEPDIR=.deps 2220else 2221 DEPDIR=_deps 2222fi 2223 2224ac_config_commands="$ac_config_commands default-2" 2225 2226# test to see if srcdir already configured 2227if test "`CDPATH=: && cd $srcdir && pwd`" != "`pwd`" && 2228 test -f $srcdir/config.status; then 2229 { { echo "$as_me:2229: error: source directory already configured; run \"make distclean\" there first" >&5 2230echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2231 { (exit 1); exit 1; }; } 2232fi 2233 2234# Define the identity of the package. 2235PACKAGE=heimdal 2236VERSION=0.3e 2237 2238cat >>confdefs.h <<EOF 2239#define PACKAGE "$PACKAGE" 2240EOF 2241 2242cat >>confdefs.h <<EOF 2243#define VERSION "$VERSION" 2244EOF 2245 2246# Some tools Automake needs. 2247 2248ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} 2249 2250AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2251 2252AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} 2253 2254AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2255 2256MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2257 2258AMTAR=${AMTAR-"${am_missing_run}tar"} 2259 2260if test -z "$install_sh"; then 2261 install_sh="$ac_aux_dir/install-sh" 2262 test -f "$install_sh" || install_sh="$ac_aux_dir/install.sh" 2263 test -f "$install_sh" || install_sh="${am_missing_run}${ac_auxdir}/install-sh" 2264 install_sh="`echo $install_sh | sed -e 's/\${SHELL}//'`" 2265fi 2266 2267depcc="$CC" 2268depcpp="$CPP" 2269echo "$as_me:2269: checking dependency style of $depcc" >&5 2270echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2271if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2272 echo $ECHO_N "(cached) $ECHO_C" >&6 2273else 2274 2275if test -z "$AMDEP"; then 2276 echo '#include "conftest.h"' > conftest.c 2277 echo 'int i;' > conftest.h 2278 2279 am_cv_CC_dependencies_compiler_type=none 2280 for depmode in `sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < "$am_depcomp"`; do 2281 case "$depmode" in 2282 nosideeffect) 2283 # after this tag, mechanisms are not by side-effect, so they'll 2284 # only be used when explicitly requested 2285 if test "x$enable_dependency_tracking" = xyes; then 2286 continue 2287 else 2288 break 2289 fi 2290 ;; 2291 none) break ;; 2292 esac 2293 if depmode="$depmode" \ 2294 source=conftest.c object=conftest.o \ 2295 depfile=conftest.Po tmpdepfile=conftest.TPo \ 2296 $SHELL $am_depcomp $depcc -c conftest.c 2>/dev/null && 2297 grep conftest.h conftest.Po > /dev/null 2>&1; then 2298 am_cv_CC_dependencies_compiler_type="$depmode" 2299 break 2300 fi 2301 done 2302 2303 rm -f conftest.* 2304else 2305 am_cv_CC_dependencies_compiler_type=none 2306fi 2307 2308fi 2309 2310echo "$as_me:2310: result: $am_cv_CC_dependencies_compiler_type" >&5 2311echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 2312CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type" 2313 2314# Make sure we can run config.sub. 2315$ac_config_sub sun4 >/dev/null 2>&1 || 2316 { { echo "$as_me:2316: error: cannot run $ac_config_sub" >&5 2317echo "$as_me: error: cannot run $ac_config_sub" >&2;} 2318 { (exit 1); exit 1; }; } 2319 2320echo "$as_me:2320: checking build system type" >&5 2321echo $ECHO_N "checking build system type... $ECHO_C" >&6 2322if test "${ac_cv_build+set}" = set; then 2323 echo $ECHO_N "(cached) $ECHO_C" >&6 2324else 2325 ac_cv_build_alias=$build_alias 2326test -z "$ac_cv_build_alias" && 2327 ac_cv_build_alias=`$ac_config_guess` 2328test -z "$ac_cv_build_alias" && 2329 { { echo "$as_me:2329: error: cannot guess build type; you must specify one" >&5 2330echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2331 { (exit 1); exit 1; }; } 2332ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2333 { { echo "$as_me:2333: error: $ac_config_sub $ac_cv_build_alias failed." >&5 2334echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} 2335 { (exit 1); exit 1; }; } 2336 2337fi 2338echo "$as_me:2338: result: $ac_cv_build" >&5 2339echo "${ECHO_T}$ac_cv_build" >&6 2340build=$ac_cv_build 2341build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2342build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2343build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2344 2345echo "$as_me:2345: checking host system type" >&5 2346echo $ECHO_N "checking host system type... $ECHO_C" >&6 2347if test "${ac_cv_host+set}" = set; then 2348 echo $ECHO_N "(cached) $ECHO_C" >&6 2349else 2350 ac_cv_host_alias=$host_alias 2351test -z "$ac_cv_host_alias" && 2352 ac_cv_host_alias=$ac_cv_build_alias 2353ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2354 { { echo "$as_me:2354: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2355echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2356 { (exit 1); exit 1; }; } 2357 2358fi 2359echo "$as_me:2359: result: $ac_cv_host" >&5 2360echo "${ECHO_T}$ac_cv_host" >&6 2361host=$ac_cv_host 2362host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2363host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2364host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2365 2366CANONICAL_HOST=$host 2367 2368sunos=no 2369case "$host" in 2370*-*-sunos4*) 2371 sunos=40 2372 ;; 2373*-*-solaris2.7) 2374 sunos=57 2375 ;; 2376*-*-solaris2.8) 2377 sunos=58 2378 ;; 2379*-*-solaris2*) 2380 sunos=50 2381 ;; 2382esac 2383if test "$sunos" != no; then 2384 2385cat >>confdefs.h <<EOF 2386#define SunOS $sunos 2387EOF 2388 2389fi 2390 2391aix=no 2392case "$host" in 2393*-*-aix3*) 2394 aix=3 2395 ;; 2396*-*-aix4*) 2397 aix=4 2398 ;; 2399esac 2400 2401#test -z "$CFLAGS" && CFLAGS="-g" 2402 2403for ac_prog in 'bison -y' byacc 2404do 2405 # Extract the first word of "$ac_prog", so it can be a program name with args. 2406set dummy $ac_prog; ac_word=$2 2407echo "$as_me:2407: checking for $ac_word" >&5 2408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2409if test "${ac_cv_prog_YACC+set}" = set; then 2410 echo $ECHO_N "(cached) $ECHO_C" >&6 2411else 2412 if test -n "$YACC"; then 2413 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2414else 2415 ac_save_IFS=$IFS; IFS=':' 2416ac_dummy="$PATH" 2417for ac_dir in $ac_dummy; do 2418 IFS=$ac_save_IFS 2419 test -z "$ac_dir" && ac_dir=. 2420 $as_executable_p "$ac_dir/$ac_word" || continue 2421ac_cv_prog_YACC="$ac_prog" 2422break 2423done 2424 2425fi 2426fi 2427YACC=$ac_cv_prog_YACC 2428if test -n "$YACC"; then 2429 echo "$as_me:2429: result: $YACC" >&5 2430echo "${ECHO_T}$YACC" >&6 2431else 2432 echo "$as_me:2432: result: no" >&5 2433echo "${ECHO_T}no" >&6 2434fi 2435 2436 test -n "$YACC" && break 2437done 2438test -n "$YACC" || YACC="yacc" 2439 2440for ac_prog in flex lex 2441do 2442 # Extract the first word of "$ac_prog", so it can be a program name with args. 2443set dummy $ac_prog; ac_word=$2 2444echo "$as_me:2444: checking for $ac_word" >&5 2445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2446if test "${ac_cv_prog_LEX+set}" = set; then 2447 echo $ECHO_N "(cached) $ECHO_C" >&6 2448else 2449 if test -n "$LEX"; then 2450 ac_cv_prog_LEX="$LEX" # Let the user override the test. 2451else 2452 ac_save_IFS=$IFS; IFS=':' 2453ac_dummy="$PATH" 2454for ac_dir in $ac_dummy; do 2455 IFS=$ac_save_IFS 2456 test -z "$ac_dir" && ac_dir=. 2457 $as_executable_p "$ac_dir/$ac_word" || continue 2458ac_cv_prog_LEX="$ac_prog" 2459break 2460done 2461 2462fi 2463fi 2464LEX=$ac_cv_prog_LEX 2465if test -n "$LEX"; then 2466 echo "$as_me:2466: result: $LEX" >&5 2467echo "${ECHO_T}$LEX" >&6 2468else 2469 echo "$as_me:2469: result: no" >&5 2470echo "${ECHO_T}no" >&6 2471fi 2472 2473 test -n "$LEX" && break 2474done 2475test -n "$LEX" || LEX="${am_missing_run}flex" 2476 2477for ac_prog in flex lex 2478do 2479 # Extract the first word of "$ac_prog", so it can be a program name with args. 2480set dummy $ac_prog; ac_word=$2 2481echo "$as_me:2481: checking for $ac_word" >&5 2482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2483if test "${ac_cv_prog_LEX+set}" = set; then 2484 echo $ECHO_N "(cached) $ECHO_C" >&6 2485else 2486 if test -n "$LEX"; then 2487 ac_cv_prog_LEX="$LEX" # Let the user override the test. 2488else 2489 ac_save_IFS=$IFS; IFS=':' 2490ac_dummy="$PATH" 2491for ac_dir in $ac_dummy; do 2492 IFS=$ac_save_IFS 2493 test -z "$ac_dir" && ac_dir=. 2494 $as_executable_p "$ac_dir/$ac_word" || continue 2495ac_cv_prog_LEX="$ac_prog" 2496break 2497done 2498 2499fi 2500fi 2501LEX=$ac_cv_prog_LEX 2502if test -n "$LEX"; then 2503 echo "$as_me:2503: result: $LEX" >&5 2504echo "${ECHO_T}$LEX" >&6 2505else 2506 echo "$as_me:2506: result: no" >&5 2507echo "${ECHO_T}no" >&6 2508fi 2509 2510 test -n "$LEX" && break 2511done 2512test -n "$LEX" || LEX=":" 2513 2514if test -z "$LEXLIB" 2515then 2516 echo "$as_me:2516: checking for yywrap in -lfl" >&5 2517echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 2518if test "${ac_cv_lib_fl_yywrap+set}" = set; then 2519 echo $ECHO_N "(cached) $ECHO_C" >&6 2520else 2521 ac_check_lib_save_LIBS=$LIBS 2522LIBS="-lfl $LIBS" 2523cat >conftest.$ac_ext <<_ACEOF 2524#line 2524 "configure" 2525#include "confdefs.h" 2526 2527/* Override any gcc2 internal prototype to avoid an error. */ 2528#ifdef __cplusplus 2529extern "C" 2530#endif 2531/* We use char because int might match the return type of a gcc2 2532 builtin and then its argument prototype would still apply. */ 2533char yywrap (); 2534int 2535main () 2536{ 2537yywrap (); 2538 ; 2539 return 0; 2540} 2541_ACEOF 2542rm -f conftest.$ac_objext conftest$ac_exeext 2543if { (eval echo "$as_me:2543: \"$ac_link\"") >&5 2544 (eval $ac_link) 2>&5 2545 ac_status=$? 2546 echo "$as_me:2546: \$? = $ac_status" >&5 2547 (exit $ac_status); } && 2548 { (eval echo "$as_me:2548: \"test -s conftest$ac_exeext\"") >&5 2549 (eval test -s conftest$ac_exeext) 2>&5 2550 ac_status=$? 2551 echo "$as_me:2551: \$? = $ac_status" >&5 2552 (exit $ac_status); }; then 2553 ac_cv_lib_fl_yywrap=yes 2554else 2555 echo "$as_me: failed program was:" >&5 2556cat conftest.$ac_ext >&5 2557ac_cv_lib_fl_yywrap=no 2558fi 2559rm -f conftest$ac_exeext conftest.$ac_ext 2560LIBS=$ac_check_lib_save_LIBS 2561fi 2562echo "$as_me:2562: result: $ac_cv_lib_fl_yywrap" >&5 2563echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 2564if test $ac_cv_lib_fl_yywrap = yes; then 2565 LEXLIB="-lfl" 2566else 2567 echo "$as_me:2567: checking for yywrap in -ll" >&5 2568echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 2569if test "${ac_cv_lib_l_yywrap+set}" = set; then 2570 echo $ECHO_N "(cached) $ECHO_C" >&6 2571else 2572 ac_check_lib_save_LIBS=$LIBS 2573LIBS="-ll $LIBS" 2574cat >conftest.$ac_ext <<_ACEOF 2575#line 2575 "configure" 2576#include "confdefs.h" 2577 2578/* Override any gcc2 internal prototype to avoid an error. */ 2579#ifdef __cplusplus 2580extern "C" 2581#endif 2582/* We use char because int might match the return type of a gcc2 2583 builtin and then its argument prototype would still apply. */ 2584char yywrap (); 2585int 2586main () 2587{ 2588yywrap (); 2589 ; 2590 return 0; 2591} 2592_ACEOF 2593rm -f conftest.$ac_objext conftest$ac_exeext 2594if { (eval echo "$as_me:2594: \"$ac_link\"") >&5 2595 (eval $ac_link) 2>&5 2596 ac_status=$? 2597 echo "$as_me:2597: \$? = $ac_status" >&5 2598 (exit $ac_status); } && 2599 { (eval echo "$as_me:2599: \"test -s conftest$ac_exeext\"") >&5 2600 (eval test -s conftest$ac_exeext) 2>&5 2601 ac_status=$? 2602 echo "$as_me:2602: \$? = $ac_status" >&5 2603 (exit $ac_status); }; then 2604 ac_cv_lib_l_yywrap=yes 2605else 2606 echo "$as_me: failed program was:" >&5 2607cat conftest.$ac_ext >&5 2608ac_cv_lib_l_yywrap=no 2609fi 2610rm -f conftest$ac_exeext conftest.$ac_ext 2611LIBS=$ac_check_lib_save_LIBS 2612fi 2613echo "$as_me:2613: result: $ac_cv_lib_l_yywrap" >&5 2614echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 2615if test $ac_cv_lib_l_yywrap = yes; then 2616 LEXLIB="-ll" 2617fi 2618 2619fi 2620 2621fi 2622 2623if test "x$LEX" != "x:"; then 2624 echo "$as_me:2624: checking lex output file root" >&5 2625echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 2626if test "${ac_cv_prog_lex_root+set}" = set; then 2627 echo $ECHO_N "(cached) $ECHO_C" >&6 2628else 2629 # The minimal lex program is just a single line: %%. But some broken lexes 2630# (Solaris, I think it was) want two %% lines, so accommodate them. 2631echo '%% 2632%%' | $LEX 2633if test -f lex.yy.c; then 2634 ac_cv_prog_lex_root=lex.yy 2635elif test -f lexyy.c; then 2636 ac_cv_prog_lex_root=lexyy 2637else 2638 { { echo "$as_me:2638: error: cannot find output from $LEX; giving up" >&5 2639echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} 2640 { (exit 1); exit 1; }; } 2641fi 2642fi 2643echo "$as_me:2643: result: $ac_cv_prog_lex_root" >&5 2644echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 2645LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 2646 2647echo "$as_me:2647: checking whether yytext is a pointer" >&5 2648echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 2649if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then 2650 echo $ECHO_N "(cached) $ECHO_C" >&6 2651else 2652 # POSIX says lex can declare yytext either as a pointer or an array; the 2653# default is implementation-dependent. Figure out which it is, since 2654# not all implementations provide the %pointer and %array declarations. 2655ac_cv_prog_lex_yytext_pointer=no 2656echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c 2657ac_save_LIBS=$LIBS 2658LIBS="$LIBS $LEXLIB" 2659cat >conftest.$ac_ext <<_ACEOF 2660`cat $LEX_OUTPUT_ROOT.c` 2661_ACEOF 2662rm -f conftest.$ac_objext conftest$ac_exeext 2663if { (eval echo "$as_me:2663: \"$ac_link\"") >&5 2664 (eval $ac_link) 2>&5 2665 ac_status=$? 2666 echo "$as_me:2666: \$? = $ac_status" >&5 2667 (exit $ac_status); } && 2668 { (eval echo "$as_me:2668: \"test -s conftest$ac_exeext\"") >&5 2669 (eval test -s conftest$ac_exeext) 2>&5 2670 ac_status=$? 2671 echo "$as_me:2671: \$? = $ac_status" >&5 2672 (exit $ac_status); }; then 2673 ac_cv_prog_lex_yytext_pointer=yes 2674else 2675 echo "$as_me: failed program was:" >&5 2676cat conftest.$ac_ext >&5 2677fi 2678rm -f conftest$ac_exeext conftest.$ac_ext 2679LIBS=$ac_save_LIBS 2680rm -f "${LEX_OUTPUT_ROOT}.c" 2681 2682fi 2683echo "$as_me:2683: result: $ac_cv_prog_lex_yytext_pointer" >&5 2684echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 2685if test $ac_cv_prog_lex_yytext_pointer = yes; then 2686 2687cat >>confdefs.h <<\EOF 2688#define YYTEXT_POINTER 1 2689EOF 2690 2691fi 2692 2693fi 2694 2695if test -n "$ac_tool_prefix"; then 2696 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2697set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2698echo "$as_me:2698: checking for $ac_word" >&5 2699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2700if test "${ac_cv_prog_RANLIB+set}" = set; then 2701 echo $ECHO_N "(cached) $ECHO_C" >&6 2702else 2703 if test -n "$RANLIB"; then 2704 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2705else 2706 ac_save_IFS=$IFS; IFS=':' 2707ac_dummy="$PATH" 2708for ac_dir in $ac_dummy; do 2709 IFS=$ac_save_IFS 2710 test -z "$ac_dir" && ac_dir=. 2711 $as_executable_p "$ac_dir/$ac_word" || continue 2712ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2713break 2714done 2715 2716fi 2717fi 2718RANLIB=$ac_cv_prog_RANLIB 2719if test -n "$RANLIB"; then 2720 echo "$as_me:2720: result: $RANLIB" >&5 2721echo "${ECHO_T}$RANLIB" >&6 2722else 2723 echo "$as_me:2723: result: no" >&5 2724echo "${ECHO_T}no" >&6 2725fi 2726 2727fi 2728if test -z "$ac_cv_prog_RANLIB"; then 2729 ac_ct_RANLIB=$RANLIB 2730 # Extract the first word of "ranlib", so it can be a program name with args. 2731set dummy ranlib; ac_word=$2 2732echo "$as_me:2732: checking for $ac_word" >&5 2733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2734if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2735 echo $ECHO_N "(cached) $ECHO_C" >&6 2736else 2737 if test -n "$ac_ct_RANLIB"; then 2738 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2739else 2740 ac_save_IFS=$IFS; IFS=':' 2741ac_dummy="$PATH" 2742for ac_dir in $ac_dummy; do 2743 IFS=$ac_save_IFS 2744 test -z "$ac_dir" && ac_dir=. 2745 $as_executable_p "$ac_dir/$ac_word" || continue 2746ac_cv_prog_ac_ct_RANLIB="ranlib" 2747break 2748done 2749 2750 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2751fi 2752fi 2753ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2754if test -n "$ac_ct_RANLIB"; then 2755 echo "$as_me:2755: result: $ac_ct_RANLIB" >&5 2756echo "${ECHO_T}$ac_ct_RANLIB" >&6 2757else 2758 echo "$as_me:2758: result: no" >&5 2759echo "${ECHO_T}no" >&6 2760fi 2761 2762 RANLIB=$ac_ct_RANLIB 2763else 2764 RANLIB="$ac_cv_prog_RANLIB" 2765fi 2766 2767for ac_prog in mawk gawk nawk awk 2768do 2769 # Extract the first word of "$ac_prog", so it can be a program name with args. 2770set dummy $ac_prog; ac_word=$2 2771echo "$as_me:2771: checking for $ac_word" >&5 2772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2773if test "${ac_cv_prog_AWK+set}" = set; then 2774 echo $ECHO_N "(cached) $ECHO_C" >&6 2775else 2776 if test -n "$AWK"; then 2777 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2778else 2779 ac_save_IFS=$IFS; IFS=':' 2780ac_dummy="$PATH" 2781for ac_dir in $ac_dummy; do 2782 IFS=$ac_save_IFS 2783 test -z "$ac_dir" && ac_dir=. 2784 $as_executable_p "$ac_dir/$ac_word" || continue 2785ac_cv_prog_AWK="$ac_prog" 2786break 2787done 2788 2789fi 2790fi 2791AWK=$ac_cv_prog_AWK 2792if test -n "$AWK"; then 2793 echo "$as_me:2793: result: $AWK" >&5 2794echo "${ECHO_T}$AWK" >&6 2795else 2796 echo "$as_me:2796: result: no" >&5 2797echo "${ECHO_T}no" >&6 2798fi 2799 2800 test -n "$AWK" && break 2801done 2802 2803echo "$as_me:2803: checking for ln -s or something else" >&5 2804echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6 2805if test "${ac_cv_prog_LN_S+set}" = set; then 2806 echo $ECHO_N "(cached) $ECHO_C" >&6 2807else 2808 rm -f conftestdata 2809if ln -s X conftestdata 2>/dev/null 2810then 2811 rm -f conftestdata 2812 ac_cv_prog_LN_S="ln -s" 2813else 2814 touch conftestdata1 2815 if ln conftestdata1 conftestdata2; then 2816 rm -f conftestdata* 2817 ac_cv_prog_LN_S=ln 2818 else 2819 ac_cv_prog_LN_S=cp 2820 fi 2821fi 2822fi 2823LN_S="$ac_cv_prog_LN_S" 2824echo "$as_me:2824: result: $ac_cv_prog_LN_S" >&5 2825echo "${ECHO_T}$ac_cv_prog_LN_S" >&6 2826 2827# Check whether --with-mips_abi or --without-mips_abi was given. 2828if test "${with_mips_abi+set}" = set; then 2829 withval="$with_mips_abi" 2830 2831fi; 2832 2833case "$host_os" in 2834irix*) 2835with_mips_abi="${with_mips_abi:-yes}" 2836if test -n "$GCC"; then 2837 2838# GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select 2839# which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs. 2840# 2841# Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old 2842# GCC and revert back to O32. The same goes if O32 is asked for - old 2843# GCCs doesn't like the -mabi option, and new GCCs can't output O32. 2844# 2845# Don't you just love *all* the different SGI ABIs? 2846 2847case "${with_mips_abi}" in 2848 32|o32) abi='-mabi=32'; abilibdirext='' ;; 2849 n32|yes) abi='-mabi=n32'; abilibdirext='32' ;; 2850 64) abi='-mabi=64'; abilibdirext='64' ;; 2851 no) abi=''; abilibdirext='';; 2852 *) { { echo "$as_me:2852: error: \"Invalid ABI specified\"" >&5 2853echo "$as_me: error: \"Invalid ABI specified\"" >&2;} 2854 { (exit 1); exit 1; }; } ;; 2855esac 2856if test -n "$abi" ; then 2857ac_foo=krb_cv_gcc_`echo $abi | tr =- __` 2858echo "$as_me:2858: checking if $CC supports the $abi option" >&5 2859echo $ECHO_N "checking if $CC supports the $abi option... $ECHO_C" >&6 2860if eval "test \"\${$ac_foo+set}\" = set"; then 2861 echo $ECHO_N "(cached) $ECHO_C" >&6 2862else 2863 2864save_CFLAGS="$CFLAGS" 2865CFLAGS="$CFLAGS $abi" 2866cat >conftest.$ac_ext <<_ACEOF 2867#line 2867 "configure" 2868#include "confdefs.h" 2869 2870int 2871main () 2872{ 2873int x; 2874 ; 2875 return 0; 2876} 2877_ACEOF 2878rm -f conftest.$ac_objext 2879if { (eval echo "$as_me:2879: \"$ac_compile\"") >&5 2880 (eval $ac_compile) 2>&5 2881 ac_status=$? 2882 echo "$as_me:2882: \$? = $ac_status" >&5 2883 (exit $ac_status); } && 2884 { (eval echo "$as_me:2884: \"test -s conftest.$ac_objext\"") >&5 2885 (eval test -s conftest.$ac_objext) 2>&5 2886 ac_status=$? 2887 echo "$as_me:2887: \$? = $ac_status" >&5 2888 (exit $ac_status); }; then 2889 eval $ac_foo=yes 2890else 2891 echo "$as_me: failed program was:" >&5 2892cat conftest.$ac_ext >&5 2893eval $ac_foo=no 2894fi 2895rm -f conftest.$ac_objext conftest.$ac_ext 2896CFLAGS="$save_CFLAGS" 2897 2898fi 2899 2900ac_res=`eval echo \\\$$ac_foo` 2901echo "$as_me:2901: result: $ac_res" >&5 2902echo "${ECHO_T}$ac_res" >&6 2903if test $ac_res = no; then 2904# Try to figure out why that failed... 2905case $abi in 2906 -mabi=32) 2907 save_CFLAGS="$CFLAGS" 2908 CFLAGS="$CFLAGS -mabi=n32" 2909 cat >conftest.$ac_ext <<_ACEOF 2910#line 2910 "configure" 2911#include "confdefs.h" 2912 2913int 2914main () 2915{ 2916int x; 2917 ; 2918 return 0; 2919} 2920_ACEOF 2921rm -f conftest.$ac_objext 2922if { (eval echo "$as_me:2922: \"$ac_compile\"") >&5 2923 (eval $ac_compile) 2>&5 2924 ac_status=$? 2925 echo "$as_me:2925: \$? = $ac_status" >&5 2926 (exit $ac_status); } && 2927 { (eval echo "$as_me:2927: \"test -s conftest.$ac_objext\"") >&5 2928 (eval test -s conftest.$ac_objext) 2>&5 2929 ac_status=$? 2930 echo "$as_me:2930: \$? = $ac_status" >&5 2931 (exit $ac_status); }; then 2932 ac_res=yes 2933else 2934 echo "$as_me: failed program was:" >&5 2935cat conftest.$ac_ext >&5 2936ac_res=no 2937fi 2938rm -f conftest.$ac_objext conftest.$ac_ext 2939 CLAGS="$save_CFLAGS" 2940 if test $ac_res = yes; then 2941 # New GCC 2942 { { echo "$as_me:2942: error: $CC does not support the $with_mips_abi ABI" >&5 2943echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;} 2944 { (exit 1); exit 1; }; } 2945 fi 2946 # Old GCC 2947 abi='' 2948 abilibdirext='' 2949 ;; 2950 -mabi=n32|-mabi=64) 2951 if test $with_mips_abi = yes; then 2952 # Old GCC, default to O32 2953 abi='' 2954 abilibdirext='' 2955 else 2956 # Some broken GCC 2957 { { echo "$as_me:2957: error: $CC does not support the $with_mips_abi ABI" >&5 2958echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;} 2959 { (exit 1); exit 1; }; } 2960 fi 2961 ;; 2962esac 2963fi #if test $ac_res = no; then 2964fi #if test -n "$abi" ; then 2965else 2966case "${with_mips_abi}" in 2967 32|o32) abi='-32'; abilibdirext='' ;; 2968 n32|yes) abi='-n32'; abilibdirext='32' ;; 2969 64) abi='-64'; abilibdirext='64' ;; 2970 no) abi=''; abilibdirext='';; 2971 *) { { echo "$as_me:2971: error: \"Invalid ABI specified\"" >&5 2972echo "$as_me: error: \"Invalid ABI specified\"" >&2;} 2973 { (exit 1); exit 1; }; } ;; 2974esac 2975fi #if test -n "$GCC"; then 2976;; 2977esac 2978 2979CC="$CC $abi" 2980libdir="$libdir$abilibdirext" 2981 2982echo "$as_me:2982: checking for __attribute__" >&5 2983echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6 2984if test "${ac_cv___attribute__+set}" = set; then 2985 echo $ECHO_N "(cached) $ECHO_C" >&6 2986else 2987 2988cat >conftest.$ac_ext <<_ACEOF 2989#line 2989 "configure" 2990#include "confdefs.h" 2991 2992#include <stdlib.h> 2993 2994int 2995main () 2996{ 2997 2998static void foo(void) __attribute__ ((noreturn)); 2999 3000static void 3001foo(void) 3002{ 3003 exit(1); 3004} 3005 3006 ; 3007 return 0; 3008} 3009_ACEOF 3010rm -f conftest.$ac_objext 3011if { (eval echo "$as_me:3011: \"$ac_compile\"") >&5 3012 (eval $ac_compile) 2>&5 3013 ac_status=$? 3014 echo "$as_me:3014: \$? = $ac_status" >&5 3015 (exit $ac_status); } && 3016 { (eval echo "$as_me:3016: \"test -s conftest.$ac_objext\"") >&5 3017 (eval test -s conftest.$ac_objext) 2>&5 3018 ac_status=$? 3019 echo "$as_me:3019: \$? = $ac_status" >&5 3020 (exit $ac_status); }; then 3021 ac_cv___attribute__=yes 3022else 3023 echo "$as_me: failed program was:" >&5 3024cat conftest.$ac_ext >&5 3025ac_cv___attribute__=no 3026fi 3027rm -f conftest.$ac_objext conftest.$ac_ext 3028fi 3029 3030if test "$ac_cv___attribute__" = "yes"; then 3031 3032cat >>confdefs.h <<\EOF 3033#define HAVE___ATTRIBUTE__ 1 3034EOF 3035 3036fi 3037echo "$as_me:3037: result: $ac_cv___attribute__" >&5 3038echo "${ECHO_T}$ac_cv___attribute__" >&6 3039 3040# Check whether --enable-shared or --disable-shared was given. 3041if test "${enable_shared+set}" = set; then 3042 enableval="$enable_shared" 3043 p=${PACKAGE-default} 3044case "$enableval" in 3045yes) enable_shared=yes ;; 3046no) enable_shared=no ;; 3047*) 3048 enable_shared=no 3049 # Look at the argument we got. We use all the common list separators. 3050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3051 for pkg in $enableval; do 3052 if test "X$pkg" = "X$p"; then 3053 enable_shared=yes 3054 fi 3055 done 3056 IFS="$ac_save_ifs" 3057 ;; 3058esac 3059else 3060 enable_shared=no 3061fi; 3062# Check whether --enable-static or --disable-static was given. 3063if test "${enable_static+set}" = set; then 3064 enableval="$enable_static" 3065 p=${PACKAGE-default} 3066case "$enableval" in 3067yes) enable_static=yes ;; 3068no) enable_static=no ;; 3069*) 3070 enable_static=no 3071 # Look at the argument we got. We use all the common list separators. 3072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3073 for pkg in $enableval; do 3074 if test "X$pkg" = "X$p"; then 3075 enable_static=yes 3076 fi 3077 done 3078 IFS="$ac_save_ifs" 3079 ;; 3080esac 3081else 3082 enable_static=yes 3083fi; 3084# Check whether --enable-fast-install or --disable-fast-install was given. 3085if test "${enable_fast_install+set}" = set; then 3086 enableval="$enable_fast_install" 3087 p=${PACKAGE-default} 3088case "$enableval" in 3089yes) enable_fast_install=yes ;; 3090no) enable_fast_install=no ;; 3091*) 3092 enable_fast_install=no 3093 # Look at the argument we got. We use all the common list separators. 3094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3095 for pkg in $enableval; do 3096 if test "X$pkg" = "X$p"; then 3097 enable_fast_install=yes 3098 fi 3099 done 3100 IFS="$ac_save_ifs" 3101 ;; 3102esac 3103else 3104 enable_fast_install=yes 3105fi; 3106 3107# Check whether --with-gnu-ld or --without-gnu-ld was given. 3108if test "${with_gnu_ld+set}" = set; then 3109 withval="$with_gnu_ld" 3110 test "$withval" = no || with_gnu_ld=yes 3111else 3112 with_gnu_ld=no 3113fi; 3114ac_prog=ld 3115if test "$ac_cv_c_compiler_gnu" = yes; then 3116 # Check if gcc -print-prog-name=ld gives a path. 3117 echo "$as_me:3117: checking for ld used by GCC" >&5 3118echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 3119 case $host in 3120 *-*-mingw*) 3121 # gcc leaves a trailing carriage return which upsets mingw 3122 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3123 *) 3124 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3125 esac 3126 case "$ac_prog" in 3127 # Accept absolute paths. 3128 [\\/]* | [A-Za-z]:[\\/]*) 3129 re_direlt='/[^/][^/]*/\.\./' 3130 # Canonicalize the path of ld 3131 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 3132 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3133 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 3134 done 3135 test -z "$LD" && LD="$ac_prog" 3136 ;; 3137 "") 3138 # If it fails, then pretend we aren't using GCC. 3139 ac_prog=ld 3140 ;; 3141 *) 3142 # If it is relative, then search for the first ld in PATH. 3143 with_gnu_ld=unknown 3144 ;; 3145 esac 3146elif test "$with_gnu_ld" = yes; then 3147 echo "$as_me:3147: checking for GNU ld" >&5 3148echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3149else 3150 echo "$as_me:3150: checking for non-GNU ld" >&5 3151echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3152fi 3153if test "${ac_cv_path_LD+set}" = set; then 3154 echo $ECHO_N "(cached) $ECHO_C" >&6 3155else 3156 if test -z "$LD"; then 3157 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 3158 for ac_dir in $PATH; do 3159 test -z "$ac_dir" && ac_dir=. 3160 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3161 ac_cv_path_LD="$ac_dir/$ac_prog" 3162 # Check to see if the program is GNU ld. I'd rather use --version, 3163 # but apparently some GNU ld's only accept -v. 3164 # Break only if it was the GNU/non-GNU ld that we prefer. 3165 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 3166 test "$with_gnu_ld" != no && break 3167 else 3168 test "$with_gnu_ld" != yes && break 3169 fi 3170 fi 3171 done 3172 IFS="$ac_save_ifs" 3173else 3174 ac_cv_path_LD="$LD" # Let the user override the test with a path. 3175fi 3176fi 3177 3178LD="$ac_cv_path_LD" 3179if test -n "$LD"; then 3180 echo "$as_me:3180: result: $LD" >&5 3181echo "${ECHO_T}$LD" >&6 3182else 3183 echo "$as_me:3183: result: no" >&5 3184echo "${ECHO_T}no" >&6 3185fi 3186test -z "$LD" && { { echo "$as_me:3186: error: no acceptable ld found in \$PATH" >&5 3187echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3188 { (exit 1); exit 1; }; } 3189echo "$as_me:3189: checking if the linker ($LD) is GNU ld" >&5 3190echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3191if test "${ac_cv_prog_gnu_ld+set}" = set; then 3192 echo $ECHO_N "(cached) $ECHO_C" >&6 3193else 3194 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3195if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 3196 ac_cv_prog_gnu_ld=yes 3197else 3198 ac_cv_prog_gnu_ld=no 3199fi 3200fi 3201echo "$as_me:3201: result: $ac_cv_prog_gnu_ld" >&5 3202echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6 3203with_gnu_ld=$ac_cv_prog_gnu_ld 3204 3205echo "$as_me:3205: checking for $LD option to reload object files" >&5 3206echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3207if test "${lt_cv_ld_reload_flag+set}" = set; then 3208 echo $ECHO_N "(cached) $ECHO_C" >&6 3209else 3210 lt_cv_ld_reload_flag='-r' 3211fi 3212echo "$as_me:3212: result: $lt_cv_ld_reload_flag" >&5 3213echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3214reload_flag=$lt_cv_ld_reload_flag 3215test -n "$reload_flag" && reload_flag=" $reload_flag" 3216 3217echo "$as_me:3217: checking for BSD-compatible nm" >&5 3218echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3219if test "${ac_cv_path_NM+set}" = set; then 3220 echo $ECHO_N "(cached) $ECHO_C" >&6 3221else 3222 if test -n "$NM"; then 3223 # Let the user override the test. 3224 ac_cv_path_NM="$NM" 3225else 3226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 3227 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3228 test -z "$ac_dir" && ac_dir=. 3229 tmp_nm=$ac_dir/${ac_tool_prefix}nm 3230 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then 3231 # Check to see if the nm accepts a BSD-compat flag. 3232 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3233 # nm: unknown option "B" ignored 3234 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 3235 ac_cv_path_NM="$tmp_nm -B" 3236 break 3237 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 3238 ac_cv_path_NM="$tmp_nm -p" 3239 break 3240 else 3241 ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but 3242 continue # so that we can try to find one that supports BSD flags 3243 fi 3244 fi 3245 done 3246 IFS="$ac_save_ifs" 3247 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm 3248fi 3249fi 3250 3251NM="$ac_cv_path_NM" 3252echo "$as_me:3252: result: $NM" >&5 3253echo "${ECHO_T}$NM" >&6 3254 3255echo "$as_me:3255: checking whether ln -s works" >&5 3256echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3257LN_S=$as_ln_s 3258if test "$LN_S" = "ln -s"; then 3259 echo "$as_me:3259: result: yes" >&5 3260echo "${ECHO_T}yes" >&6 3261else 3262 echo "$as_me:3262: result: no, using $LN_S" >&5 3263echo "${ECHO_T}no, using $LN_S" >&6 3264fi 3265 3266echo "$as_me:3266: checking how to recognise dependant libraries" >&5 3267echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 3268if test "${lt_cv_deplibs_check_method+set}" = set; then 3269 echo $ECHO_N "(cached) $ECHO_C" >&6 3270else 3271 lt_cv_file_magic_cmd='${MAGIC}' 3272lt_cv_file_magic_test_file= 3273lt_cv_deplibs_check_method='unknown' 3274# Need to set the preceding variable on all platforms that support 3275# interlibrary dependencies. 3276# 'none' -- dependencies not supported. 3277# `unknown' -- same as none, but documents that we really don't know. 3278# 'pass_all' -- all dependencies passed with no checks. 3279# 'test_compile' -- check by making test program. 3280# 'file_magic [regex]' -- check by looking for files in library path 3281# which responds to the $file_magic_cmd with a given egrep regex. 3282# If you have `file' or equivalent on your system and you're not sure 3283# whether `pass_all' will *always* work, you probably want this one. 3284 3285case "$host_os" in 3286aix4*) 3287 lt_cv_deplibs_check_method=pass_all 3288 ;; 3289 3290beos*) 3291 lt_cv_deplibs_check_method=pass_all 3292 ;; 3293 3294bsdi4*) 3295 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3296 lt_cv_file_magic_cmd='/usr/bin/file -L' 3297 lt_cv_file_magic_test_file=/shlib/libc.so 3298 ;; 3299 3300cygwin* | mingw*) 3301 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3302 lt_cv_file_magic_cmd='${OBJDUMP} -f' 3303 ;; 3304 3305freebsd*) 3306 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3307 case "$host_cpu" in 3308 i*86 ) 3309 lt_cv_deplibs_check_method=='file_magic OpenBSD/i[3-9]86 demand paged shared library' 3310 lt_cv_file_magic_cmd=/usr/bin/file 3311 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3312 ;; 3313 esac 3314 else 3315 lt_cv_deplibs_check_method=pass_all 3316 fi 3317 ;; 3318 3319gnu*) 3320 lt_cv_deplibs_check_method=pass_all 3321 ;; 3322 3323hpux10.20*) 3324 # TODO: Does this work for hpux-11 too? 3325 lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library' 3326 lt_cv_file_magic_cmd=/usr/bin/file 3327 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3328 ;; 3329 3330irix5* | irix6*) 3331 case "$host_os" in 3332 irix5*) 3333 # this will be overridden with pass_all, but let us keep it just in case 3334 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 3335 ;; 3336 *) 3337 case "$LD" in 3338 *-32|*"-32 ") libmagic=32-bit;; 3339 *-n32|*"-n32 ") libmagic=N32;; 3340 *-64|*"-64 ") libmagic=64-bit;; 3341 *) libmagic=never-match;; 3342 esac 3343 # this will be overridden with pass_all, but let us keep it just in case 3344 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 3345 ;; 3346 esac 3347 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 3348 lt_cv_deplibs_check_method=pass_all 3349 ;; 3350 3351# This must be Linux ELF. 3352linux-gnu*) 3353 case "$host_cpu" in 3354 alpha* | i*86 | powerpc* | sparc* | ia64* ) 3355 lt_cv_deplibs_check_method=pass_all ;; 3356 *) 3357 # glibc up to 2.1.1 does not perform some relocations on ARM 3358 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 3359 esac 3360 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 3361 ;; 3362 3363netbsd*) 3364 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then : 3365 else 3366 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 3367 lt_cv_file_magic_cmd='/usr/bin/file -L' 3368 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3369 fi 3370 ;; 3371 3372osf3* | osf4* | osf5*) 3373 # this will be overridden with pass_all, but let us keep it just in case 3374 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 3375 lt_cv_file_magic_test_file=/shlib/libc.so 3376 lt_cv_deplibs_check_method=pass_all 3377 ;; 3378 3379sco3.2v5*) 3380 lt_cv_deplibs_check_method=pass_all 3381 ;; 3382 3383solaris*) 3384 lt_cv_deplibs_check_method=pass_all 3385 lt_cv_file_magic_test_file=/lib/libc.so 3386 ;; 3387 3388sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3389 case "$host_vendor" in 3390 ncr) 3391 lt_cv_deplibs_check_method=pass_all 3392 ;; 3393 motorola) 3394 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 3395 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3396 ;; 3397 esac 3398 ;; 3399esac 3400 3401fi 3402echo "$as_me:3402: result: $lt_cv_deplibs_check_method" >&5 3403echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3404file_magic_cmd=$lt_cv_file_magic_cmd 3405deplibs_check_method=$lt_cv_deplibs_check_method 3406 3407# Only perform the check for file, if the check method requires it 3408case "$deplibs_check_method" in 3409file_magic*) 3410 if test "$file_magic_cmd" = '${MAGIC}'; then 3411 echo "$as_me:3411: checking for ${ac_tool_prefix}file" >&5 3412echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 3413if test "${lt_cv_path_MAGIC+set}" = set; then 3414 echo $ECHO_N "(cached) $ECHO_C" >&6 3415else 3416 case "$MAGIC" in 3417 /*) 3418 lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path. 3419 ;; 3420 ?:/*) 3421 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path. 3422 ;; 3423 *) 3424 ac_save_MAGIC="$MAGIC" 3425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3426 ac_dummy="/usr/bin:$PATH" 3427 for ac_dir in $ac_dummy; do 3428 test -z "$ac_dir" && ac_dir=. 3429 if test -f $ac_dir/${ac_tool_prefix}file; then 3430 lt_cv_path_MAGIC="$ac_dir/${ac_tool_prefix}file" 3431 if test -n "$file_magic_test_file"; then 3432 case "$deplibs_check_method" in 3433 "file_magic "*) 3434 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 3435 MAGIC="$lt_cv_path_MAGIC" 3436 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 3437 egrep "$file_magic_regex" > /dev/null; then 3438 : 3439 else 3440 cat <<EOF 1>&2 3441 3442*** Warning: the command libtool uses to detect shared libraries, 3443*** $file_magic_cmd, produces output that libtool cannot recognize. 3444*** The result is that libtool may fail to recognize shared libraries 3445*** as such. This will affect the creation of libtool libraries that 3446*** depend on shared libraries, but programs linked with such libtool 3447*** libraries will work regardless of this problem. Nevertheless, you 3448*** may want to report the problem to your system manager and/or to 3449*** bug-libtool@gnu.org 3450 3451EOF 3452 fi ;; 3453 esac 3454 fi 3455 break 3456 fi 3457 done 3458 IFS="$ac_save_ifs" 3459 MAGIC="$ac_save_MAGIC" 3460 ;; 3461esac 3462fi 3463 3464MAGIC="$lt_cv_path_MAGIC" 3465if test -n "$MAGIC"; then 3466 echo "$as_me:3466: result: $MAGIC" >&5 3467echo "${ECHO_T}$MAGIC" >&6 3468else 3469 echo "$as_me:3469: result: no" >&5 3470echo "${ECHO_T}no" >&6 3471fi 3472 3473if test -z "$lt_cv_path_MAGIC"; then 3474 if test -n "$ac_tool_prefix"; then 3475 echo "$as_me:3475: checking for file" >&5 3476echo $ECHO_N "checking for file... $ECHO_C" >&6 3477if test "${lt_cv_path_MAGIC+set}" = set; then 3478 echo $ECHO_N "(cached) $ECHO_C" >&6 3479else 3480 case "$MAGIC" in 3481 /*) 3482 lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path. 3483 ;; 3484 ?:/*) 3485 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path. 3486 ;; 3487 *) 3488 ac_save_MAGIC="$MAGIC" 3489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3490 ac_dummy="/usr/bin:$PATH" 3491 for ac_dir in $ac_dummy; do 3492 test -z "$ac_dir" && ac_dir=. 3493 if test -f $ac_dir/file; then 3494 lt_cv_path_MAGIC="$ac_dir/file" 3495 if test -n "$file_magic_test_file"; then 3496 case "$deplibs_check_method" in 3497 "file_magic "*) 3498 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 3499 MAGIC="$lt_cv_path_MAGIC" 3500 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 3501 egrep "$file_magic_regex" > /dev/null; then 3502 : 3503 else 3504 cat <<EOF 1>&2 3505 3506*** Warning: the command libtool uses to detect shared libraries, 3507*** $file_magic_cmd, produces output that libtool cannot recognize. 3508*** The result is that libtool may fail to recognize shared libraries 3509*** as such. This will affect the creation of libtool libraries that 3510*** depend on shared libraries, but programs linked with such libtool 3511*** libraries will work regardless of this problem. Nevertheless, you 3512*** may want to report the problem to your system manager and/or to 3513*** bug-libtool@gnu.org 3514 3515EOF 3516 fi ;; 3517 esac 3518 fi 3519 break 3520 fi 3521 done 3522 IFS="$ac_save_ifs" 3523 MAGIC="$ac_save_MAGIC" 3524 ;; 3525esac 3526fi 3527 3528MAGIC="$lt_cv_path_MAGIC" 3529if test -n "$MAGIC"; then 3530 echo "$as_me:3530: result: $MAGIC" >&5 3531echo "${ECHO_T}$MAGIC" >&6 3532else 3533 echo "$as_me:3533: result: no" >&5 3534echo "${ECHO_T}no" >&6 3535fi 3536 3537 else 3538 MAGIC=: 3539 fi 3540fi 3541 3542 fi 3543 ;; 3544esac 3545 3546if test -n "$ac_tool_prefix"; then 3547 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3548set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3549echo "$as_me:3549: checking for $ac_word" >&5 3550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3551if test "${ac_cv_prog_RANLIB+set}" = set; then 3552 echo $ECHO_N "(cached) $ECHO_C" >&6 3553else 3554 if test -n "$RANLIB"; then 3555 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3556else 3557 ac_save_IFS=$IFS; IFS=':' 3558ac_dummy="$PATH" 3559for ac_dir in $ac_dummy; do 3560 IFS=$ac_save_IFS 3561 test -z "$ac_dir" && ac_dir=. 3562 $as_executable_p "$ac_dir/$ac_word" || continue 3563ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3564break 3565done 3566 3567fi 3568fi 3569RANLIB=$ac_cv_prog_RANLIB 3570if test -n "$RANLIB"; then 3571 echo "$as_me:3571: result: $RANLIB" >&5 3572echo "${ECHO_T}$RANLIB" >&6 3573else 3574 echo "$as_me:3574: result: no" >&5 3575echo "${ECHO_T}no" >&6 3576fi 3577 3578fi 3579if test -z "$ac_cv_prog_RANLIB"; then 3580 ac_ct_RANLIB=$RANLIB 3581 # Extract the first word of "ranlib", so it can be a program name with args. 3582set dummy ranlib; ac_word=$2 3583echo "$as_me:3583: checking for $ac_word" >&5 3584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3585if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3586 echo $ECHO_N "(cached) $ECHO_C" >&6 3587else 3588 if test -n "$ac_ct_RANLIB"; then 3589 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3590else 3591 ac_save_IFS=$IFS; IFS=':' 3592ac_dummy="$PATH" 3593for ac_dir in $ac_dummy; do 3594 IFS=$ac_save_IFS 3595 test -z "$ac_dir" && ac_dir=. 3596 $as_executable_p "$ac_dir/$ac_word" || continue 3597ac_cv_prog_ac_ct_RANLIB="ranlib" 3598break 3599done 3600 3601 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3602fi 3603fi 3604ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3605if test -n "$ac_ct_RANLIB"; then 3606 echo "$as_me:3606: result: $ac_ct_RANLIB" >&5 3607echo "${ECHO_T}$ac_ct_RANLIB" >&6 3608else 3609 echo "$as_me:3609: result: no" >&5 3610echo "${ECHO_T}no" >&6 3611fi 3612 3613 RANLIB=$ac_ct_RANLIB 3614else 3615 RANLIB="$ac_cv_prog_RANLIB" 3616fi 3617 3618if test -n "$ac_tool_prefix"; then 3619 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3620set dummy ${ac_tool_prefix}strip; ac_word=$2 3621echo "$as_me:3621: checking for $ac_word" >&5 3622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3623if test "${ac_cv_prog_STRIP+set}" = set; then 3624 echo $ECHO_N "(cached) $ECHO_C" >&6 3625else 3626 if test -n "$STRIP"; then 3627 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3628else 3629 ac_save_IFS=$IFS; IFS=':' 3630ac_dummy="$PATH" 3631for ac_dir in $ac_dummy; do 3632 IFS=$ac_save_IFS 3633 test -z "$ac_dir" && ac_dir=. 3634 $as_executable_p "$ac_dir/$ac_word" || continue 3635ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3636break 3637done 3638 3639fi 3640fi 3641STRIP=$ac_cv_prog_STRIP 3642if test -n "$STRIP"; then 3643 echo "$as_me:3643: result: $STRIP" >&5 3644echo "${ECHO_T}$STRIP" >&6 3645else 3646 echo "$as_me:3646: result: no" >&5 3647echo "${ECHO_T}no" >&6 3648fi 3649 3650fi 3651if test -z "$ac_cv_prog_STRIP"; then 3652 ac_ct_STRIP=$STRIP 3653 # Extract the first word of "strip", so it can be a program name with args. 3654set dummy strip; ac_word=$2 3655echo "$as_me:3655: checking for $ac_word" >&5 3656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3657if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 3658 echo $ECHO_N "(cached) $ECHO_C" >&6 3659else 3660 if test -n "$ac_ct_STRIP"; then 3661 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3662else 3663 ac_save_IFS=$IFS; IFS=':' 3664ac_dummy="$PATH" 3665for ac_dir in $ac_dummy; do 3666 IFS=$ac_save_IFS 3667 test -z "$ac_dir" && ac_dir=. 3668 $as_executable_p "$ac_dir/$ac_word" || continue 3669ac_cv_prog_ac_ct_STRIP="strip" 3670break 3671done 3672 3673 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 3674fi 3675fi 3676ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3677if test -n "$ac_ct_STRIP"; then 3678 echo "$as_me:3678: result: $ac_ct_STRIP" >&5 3679echo "${ECHO_T}$ac_ct_STRIP" >&6 3680else 3681 echo "$as_me:3681: result: no" >&5 3682echo "${ECHO_T}no" >&6 3683fi 3684 3685 STRIP=$ac_ct_STRIP 3686else 3687 STRIP="$ac_cv_prog_STRIP" 3688fi 3689 3690# Check for any special flags to pass to ltconfig. 3691libtool_flags="--cache-file=$cache_file" 3692test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" 3693test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" 3694test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" 3695test "$ac_cv_c_compiler_gnu" = yes && libtool_flags="$libtool_flags --with-gcc" 3696test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" 3697 3698# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3699if test "${enable_libtool_lock+set}" = set; then 3700 enableval="$enable_libtool_lock" 3701 3702fi; 3703test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" 3704test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" 3705 3706# Check whether --with-pic or --without-pic was given. 3707if test "${with_pic+set}" = set; then 3708 withval="$with_pic" 3709 pic_mode="$withval" 3710else 3711 pic_mode=default 3712fi; 3713test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" 3714test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" 3715 3716# Some flags need to be propagated to the compiler or linker for good 3717# libtool support. 3718case "$host" in 3719*-*-irix6*) 3720 # Find out which ABI we are using. 3721 echo '#line 3721 "configure"' > conftest.$ac_ext 3722 if { (eval echo "$as_me:3722: \"$ac_compile\"") >&5 3723 (eval $ac_compile) 2>&5 3724 ac_status=$? 3725 echo "$as_me:3725: \$? = $ac_status" >&5 3726 (exit $ac_status); }; then 3727 case "`/usr/bin/file conftest.o`" in 3728 *32-bit*) 3729 LD="${LD-ld} -32" 3730 ;; 3731 *N32*) 3732 LD="${LD-ld} -n32" 3733 ;; 3734 *64-bit*) 3735 LD="${LD-ld} -64" 3736 ;; 3737 esac 3738 fi 3739 rm -rf conftest* 3740 ;; 3741 3742*-*-sco3.2v5*) 3743 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3744 SAVE_CFLAGS="$CFLAGS" 3745 CFLAGS="$CFLAGS -belf" 3746 echo "$as_me:3746: checking whether the C compiler needs -belf" >&5 3747echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3748if test "${lt_cv_cc_needs_belf+set}" = set; then 3749 echo $ECHO_N "(cached) $ECHO_C" >&6 3750else 3751 3752 ac_ext=c 3753ac_cpp='$CPP $CPPFLAGS' 3754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3756ac_compiler_gnu=$ac_cv_c_compiler_gnu 3757 3758 cat >conftest.$ac_ext <<_ACEOF 3759#line 3759 "configure" 3760#include "confdefs.h" 3761 3762int 3763main () 3764{ 3765 3766 ; 3767 return 0; 3768} 3769_ACEOF 3770rm -f conftest.$ac_objext conftest$ac_exeext 3771if { (eval echo "$as_me:3771: \"$ac_link\"") >&5 3772 (eval $ac_link) 2>&5 3773 ac_status=$? 3774 echo "$as_me:3774: \$? = $ac_status" >&5 3775 (exit $ac_status); } && 3776 { (eval echo "$as_me:3776: \"test -s conftest$ac_exeext\"") >&5 3777 (eval test -s conftest$ac_exeext) 2>&5 3778 ac_status=$? 3779 echo "$as_me:3779: \$? = $ac_status" >&5 3780 (exit $ac_status); }; then 3781 lt_cv_cc_needs_belf=yes 3782else 3783 echo "$as_me: failed program was:" >&5 3784cat conftest.$ac_ext >&5 3785lt_cv_cc_needs_belf=no 3786fi 3787rm -f conftest$ac_exeext conftest.$ac_ext 3788 ac_ext=c 3789ac_cpp='$CPP $CPPFLAGS' 3790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3792ac_compiler_gnu=$ac_cv_c_compiler_gnu 3793 3794fi 3795echo "$as_me:3795: result: $lt_cv_cc_needs_belf" >&5 3796echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3797 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3798 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3799 CFLAGS="$SAVE_CFLAGS" 3800 fi 3801 ;; 3802 3803esac 3804 3805# Save cache, so that ltconfig can load it 3806cat >confcache <<\_ACEOF 3807# This file is a shell script that caches the results of configure 3808# tests run on this system so they can be shared between configure 3809# scripts and configure runs, see configure's option --config-cache. 3810# It is not useful on other systems. If it contains results you don't 3811# want to keep, you may remove or edit it. 3812# 3813# config.status only pays attention to the cache file if you give it 3814# the --recheck option to rerun configure. 3815# 3816# `ac_cv_env_foo' variables (set or unset) will be overriden when 3817# loading this file, other *unset* `ac_cv_foo' will be assigned the 3818# following values. 3819 3820_ACEOF 3821 3822# The following way of writing the cache mishandles newlines in values, 3823# but we know of no workaround that is simple, portable, and efficient. 3824# So, don't put newlines in cache variables' values. 3825# Ultrix sh set writes to stderr and can't be redirected directly, 3826# and sets the high bit in the cache file unless we assign to the vars. 3827{ 3828 (set) 2>&1 | 3829 case `(ac_space=' '; set | grep ac_space) 2>&1` in 3830 *ac_space=\ *) 3831 # `set' does not quote correctly, so add quotes (double-quote 3832 # substitution turns \\\\ into \\, and sed turns \\ into \). 3833 sed -n \ 3834 "s/'/'\\\\''/g; 3835 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 3836 ;; 3837 *) 3838 # `set' quotes correctly as required by POSIX, so do not add quotes. 3839 sed -n \ 3840 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 3841 ;; 3842 esac; 3843} | 3844 sed ' 3845 t clear 3846 : clear 3847 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 3848 t end 3849 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 3850 : end' >>confcache 3851if cmp -s $cache_file confcache; then :; else 3852 if test -w $cache_file; then 3853 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 3854 cat confcache >$cache_file 3855 else 3856 echo "not updating unwritable cache $cache_file" 3857 fi 3858fi 3859rm -f confcache 3860 3861# Actually configure libtool. ac_aux_dir is where install-sh is found. 3862AR="$AR" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 3863MAGIC="$MAGIC" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 3864LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ 3865AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ 3866objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ 3867deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ 3868${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ 3869$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ 3870|| { { echo "$as_me:3870: error: libtool configure failed" >&5 3871echo "$as_me: error: libtool configure failed" >&2;} 3872 { (exit 1); exit 1; }; } 3873 3874# Reload cache, that may have been modified by ltconfig 3875if test -r "$cache_file"; then 3876 # Some versions of bash will fail to source /dev/null (special 3877 # files actually), so we avoid doing that. 3878 if test -f "$cache_file"; then 3879 { echo "$as_me:3879: loading cache $cache_file" >&5 3880echo "$as_me: loading cache $cache_file" >&6;} 3881 case $cache_file in 3882 [\\/]* | ?:[\\/]* ) . $cache_file;; 3883 *) . ./$cache_file;; 3884 esac 3885 fi 3886else 3887 { echo "$as_me:3887: creating cache $cache_file" >&5 3888echo "$as_me: creating cache $cache_file" >&6;} 3889 >$cache_file 3890fi 3891 3892# This can be used to rebuild libtool when needed 3893LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" 3894 3895# Always use our own libtool. 3896LIBTOOL='$(SHELL) $(top_builddir)/libtool' 3897 3898# Redirect the config.log output again, so that the ltconfig log is not 3899# clobbered by the next message. 3900exec 5>>./config.log 3901 3902WFLAGS_NOUNUSED="" 3903WFLAGS_NOIMPLICITINT="" 3904if test -z "$WFLAGS" -a "$GCC" = "yes"; then 3905 # -Wno-implicit-int for broken X11 headers 3906 # leave these out for now: 3907 # -Wcast-align doesn't work well on alpha osf/1 3908 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast 3909 # -Wmissing-declarations -Wnested-externs 3910 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs" 3911 WFLAGS_NOUNUSED="-Wno-unused" 3912 WFLAGS_NOIMPLICITINT="-Wno-implicit-int" 3913fi 3914 3915berkeley_db=db 3916 3917# Check whether --with-berkeley-db or --without-berkeley-db was given. 3918if test "${with_berkeley_db+set}" = set; then 3919 withval="$with_berkeley_db" 3920 3921if test "$withval" = no; then 3922 berkeley_db="" 3923fi 3924 3925fi; 3926if test "$berkeley_db"; then 3927 3928for ac_header in \ 3929 db.h \ 3930 db_185.h \ 3931 3932do 3933ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 3934echo "$as_me:3934: checking for $ac_header" >&5 3935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3936if eval "test \"\${$ac_ac_Header+set}\" = set"; then 3937 echo $ECHO_N "(cached) $ECHO_C" >&6 3938else 3939 cat >conftest.$ac_ext <<_ACEOF 3940#line 3940 "configure" 3941#include "confdefs.h" 3942#include <$ac_header> 3943_ACEOF 3944if { (eval echo "$as_me:3944: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 3945 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 3946 ac_status=$? 3947 egrep -v '^ *\+' conftest.er1 >conftest.err 3948 rm -f conftest.er1 3949 cat conftest.err >&5 3950 echo "$as_me:3950: \$? = $ac_status" >&5 3951 (exit $ac_status); }; then 3952 if test -s conftest.err; then 3953 ac_cpp_err=$ac_c_preproc_warn_flag 3954 else 3955 ac_cpp_err= 3956 fi 3957else 3958 ac_cpp_err=yes 3959fi 3960if test -z "$ac_cpp_err"; then 3961 eval "$ac_ac_Header=yes" 3962else 3963 echo "$as_me: failed program was:" >&5 3964 cat conftest.$ac_ext >&5 3965 eval "$ac_ac_Header=no" 3966fi 3967rm -f conftest.err conftest.$ac_ext 3968fi 3969echo "$as_me:3969: result: `eval echo '${'$ac_ac_Header'}'`" >&5 3970echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 3971if test `eval echo '${'$ac_ac_Header'}'` = yes; then 3972 cat >>confdefs.h <<EOF 3973#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 3974EOF 3975 3976fi 3977done 3978 3979fi 3980 3981echo "$as_me:3981: checking for dbopen" >&5 3982echo $ECHO_N "checking for dbopen... $ECHO_C" >&6 3983if test "${ac_cv_funclib_dbopen+set}" = set; then 3984 echo $ECHO_N "(cached) $ECHO_C" >&6 3985else 3986 3987if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then 3988 ac_save_LIBS="$LIBS" 3989 for ac_lib in $berkeley_db; do 3990 if test -n "$ac_lib"; then 3991 ac_lib="-l$ac_lib" 3992 else 3993 ac_lib="" 3994 fi 3995 LIBS=" $ac_lib $ac_save_LIBS" 3996 cat >conftest.$ac_ext <<_ACEOF 3997#line 3997 "configure" 3998#include "confdefs.h" 3999 4000#include <stdio.h> 4001#if defined(HAVE_DB_185_H) 4002#include <db_185.h> 4003#elif defined(HAVE_DB_H) 4004#include <db.h> 4005#endif 4006 4007int 4008main () 4009{ 4010dbopen(NULL, 0, 0, 0, NULL) 4011 ; 4012 return 0; 4013} 4014_ACEOF 4015rm -f conftest.$ac_objext conftest$ac_exeext 4016if { (eval echo "$as_me:4016: \"$ac_link\"") >&5 4017 (eval $ac_link) 2>&5 4018 ac_status=$? 4019 echo "$as_me:4019: \$? = $ac_status" >&5 4020 (exit $ac_status); } && 4021 { (eval echo "$as_me:4021: \"test -s conftest$ac_exeext\"") >&5 4022 (eval test -s conftest$ac_exeext) 2>&5 4023 ac_status=$? 4024 echo "$as_me:4024: \$? = $ac_status" >&5 4025 (exit $ac_status); }; then 4026 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break 4027else 4028 echo "$as_me: failed program was:" >&5 4029cat conftest.$ac_ext >&5 4030fi 4031rm -f conftest$ac_exeext conftest.$ac_ext 4032 done 4033 eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}" 4034 LIBS="$ac_save_LIBS" 4035fi 4036 4037fi 4038 4039eval "ac_res=\$ac_cv_funclib_dbopen" 4040 4041if false; then 4042 4043for ac_func in dbopen 4044do 4045ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 4046echo "$as_me:4046: checking for $ac_func" >&5 4047echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4048if eval "test \"\${$ac_ac_var+set}\" = set"; then 4049 echo $ECHO_N "(cached) $ECHO_C" >&6 4050else 4051 cat >conftest.$ac_ext <<_ACEOF 4052#line 4052 "configure" 4053#include "confdefs.h" 4054/* System header to define __stub macros and hopefully few prototypes, 4055 which can conflict with char $ac_func (); below. */ 4056#include <assert.h> 4057/* Override any gcc2 internal prototype to avoid an error. */ 4058#ifdef __cplusplus 4059extern "C" 4060#endif 4061/* We use char because int might match the return type of a gcc2 4062 builtin and then its argument prototype would still apply. */ 4063char $ac_func (); 4064char (*f) (); 4065 4066int 4067main () 4068{ 4069/* The GNU C library defines this for functions which it implements 4070 to always fail with ENOSYS. Some functions are actually named 4071 something starting with __ and the normal name is an alias. */ 4072#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4073choke me 4074#else 4075f = $ac_func; 4076#endif 4077 4078 ; 4079 return 0; 4080} 4081_ACEOF 4082rm -f conftest.$ac_objext conftest$ac_exeext 4083if { (eval echo "$as_me:4083: \"$ac_link\"") >&5 4084 (eval $ac_link) 2>&5 4085 ac_status=$? 4086 echo "$as_me:4086: \$? = $ac_status" >&5 4087 (exit $ac_status); } && 4088 { (eval echo "$as_me:4088: \"test -s conftest$ac_exeext\"") >&5 4089 (eval test -s conftest$ac_exeext) 2>&5 4090 ac_status=$? 4091 echo "$as_me:4091: \$? = $ac_status" >&5 4092 (exit $ac_status); }; then 4093 eval "$ac_ac_var=yes" 4094else 4095 echo "$as_me: failed program was:" >&5 4096cat conftest.$ac_ext >&5 4097eval "$ac_ac_var=no" 4098fi 4099rm -f conftest$ac_exeext conftest.$ac_ext 4100fi 4101echo "$as_me:4101: result: `eval echo '${'$ac_ac_var'}'`" >&5 4102echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4103if test `eval echo '${'$ac_ac_var'}'` = yes; then 4104 cat >>confdefs.h <<EOF 4105#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4106EOF 4107 4108fi 4109done 4110 4111fi 4112# dbopen 4113eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 4114eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 4115eval "LIB_dbopen=$ac_res" 4116 4117case "$ac_res" in 4118 yes) 4119 eval "ac_cv_func_dbopen=yes" 4120 eval "LIB_dbopen=" 4121 cat >>confdefs.h <<EOF 4122#define $ac_tr_func 1 4123EOF 4124 4125 echo "$as_me:4125: result: yes" >&5 4126echo "${ECHO_T}yes" >&6 4127 ;; 4128 no) 4129 eval "ac_cv_func_dbopen=no" 4130 eval "LIB_dbopen=" 4131 echo "$as_me:4131: result: no" >&5 4132echo "${ECHO_T}no" >&6 4133 ;; 4134 *) 4135 eval "ac_cv_func_dbopen=yes" 4136 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 4137 cat >>confdefs.h <<EOF 4138#define $ac_tr_func 1 4139EOF 4140 4141 cat >>confdefs.h <<EOF 4142#define $ac_tr_lib 1 4143EOF 4144 4145 echo "$as_me:4145: result: yes, in $ac_res" >&5 4146echo "${ECHO_T}yes, in $ac_res" >&6 4147 ;; 4148esac 4149 4150echo "$as_me:4150: checking for dbm_firstkey" >&5 4151echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6 4152if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then 4153 echo $ECHO_N "(cached) $ECHO_C" >&6 4154else 4155 4156if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 4157 ac_save_LIBS="$LIBS" 4158 for ac_lib in "" $berkeley_db gdbm ndbm; do 4159 if test -n "$ac_lib"; then 4160 ac_lib="-l$ac_lib" 4161 else 4162 ac_lib="" 4163 fi 4164 LIBS=" $ac_lib $ac_save_LIBS" 4165 cat >conftest.$ac_ext <<_ACEOF 4166#line 4166 "configure" 4167#include "confdefs.h" 4168 4169int 4170main () 4171{ 4172dbm_firstkey() 4173 ; 4174 return 0; 4175} 4176_ACEOF 4177rm -f conftest.$ac_objext conftest$ac_exeext 4178if { (eval echo "$as_me:4178: \"$ac_link\"") >&5 4179 (eval $ac_link) 2>&5 4180 ac_status=$? 4181 echo "$as_me:4181: \$? = $ac_status" >&5 4182 (exit $ac_status); } && 4183 { (eval echo "$as_me:4183: \"test -s conftest$ac_exeext\"") >&5 4184 (eval test -s conftest$ac_exeext) 2>&5 4185 ac_status=$? 4186 echo "$as_me:4186: \$? = $ac_status" >&5 4187 (exit $ac_status); }; then 4188 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 4189else 4190 echo "$as_me: failed program was:" >&5 4191cat conftest.$ac_ext >&5 4192fi 4193rm -f conftest$ac_exeext conftest.$ac_ext 4194 done 4195 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 4196 LIBS="$ac_save_LIBS" 4197fi 4198 4199fi 4200 4201eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 4202 4203if false; then 4204 4205for ac_func in dbm_firstkey 4206do 4207ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 4208echo "$as_me:4208: checking for $ac_func" >&5 4209echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4210if eval "test \"\${$ac_ac_var+set}\" = set"; then 4211 echo $ECHO_N "(cached) $ECHO_C" >&6 4212else 4213 cat >conftest.$ac_ext <<_ACEOF 4214#line 4214 "configure" 4215#include "confdefs.h" 4216/* System header to define __stub macros and hopefully few prototypes, 4217 which can conflict with char $ac_func (); below. */ 4218#include <assert.h> 4219/* Override any gcc2 internal prototype to avoid an error. */ 4220#ifdef __cplusplus 4221extern "C" 4222#endif 4223/* We use char because int might match the return type of a gcc2 4224 builtin and then its argument prototype would still apply. */ 4225char $ac_func (); 4226char (*f) (); 4227 4228int 4229main () 4230{ 4231/* The GNU C library defines this for functions which it implements 4232 to always fail with ENOSYS. Some functions are actually named 4233 something starting with __ and the normal name is an alias. */ 4234#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4235choke me 4236#else 4237f = $ac_func; 4238#endif 4239 4240 ; 4241 return 0; 4242} 4243_ACEOF 4244rm -f conftest.$ac_objext conftest$ac_exeext 4245if { (eval echo "$as_me:4245: \"$ac_link\"") >&5 4246 (eval $ac_link) 2>&5 4247 ac_status=$? 4248 echo "$as_me:4248: \$? = $ac_status" >&5 4249 (exit $ac_status); } && 4250 { (eval echo "$as_me:4250: \"test -s conftest$ac_exeext\"") >&5 4251 (eval test -s conftest$ac_exeext) 2>&5 4252 ac_status=$? 4253 echo "$as_me:4253: \$? = $ac_status" >&5 4254 (exit $ac_status); }; then 4255 eval "$ac_ac_var=yes" 4256else 4257 echo "$as_me: failed program was:" >&5 4258cat conftest.$ac_ext >&5 4259eval "$ac_ac_var=no" 4260fi 4261rm -f conftest$ac_exeext conftest.$ac_ext 4262fi 4263echo "$as_me:4263: result: `eval echo '${'$ac_ac_var'}'`" >&5 4264echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4265if test `eval echo '${'$ac_ac_var'}'` = yes; then 4266 cat >>confdefs.h <<EOF 4267#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4268EOF 4269 4270fi 4271done 4272 4273fi 4274# dbm_firstkey 4275eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 4276eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 4277eval "LIB_dbm_firstkey=$ac_res" 4278 4279case "$ac_res" in 4280 yes) 4281 eval "ac_cv_func_dbm_firstkey=yes" 4282 eval "LIB_dbm_firstkey=" 4283 cat >>confdefs.h <<EOF 4284#define $ac_tr_func 1 4285EOF 4286 4287 echo "$as_me:4287: result: yes" >&5 4288echo "${ECHO_T}yes" >&6 4289 ;; 4290 no) 4291 eval "ac_cv_func_dbm_firstkey=no" 4292 eval "LIB_dbm_firstkey=" 4293 echo "$as_me:4293: result: no" >&5 4294echo "${ECHO_T}no" >&6 4295 ;; 4296 *) 4297 eval "ac_cv_func_dbm_firstkey=yes" 4298 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 4299 cat >>confdefs.h <<EOF 4300#define $ac_tr_func 1 4301EOF 4302 4303 cat >>confdefs.h <<EOF 4304#define $ac_tr_lib 1 4305EOF 4306 4307 echo "$as_me:4307: result: yes, in $ac_res" >&5 4308echo "${ECHO_T}yes, in $ac_res" >&6 4309 ;; 4310esac 4311 4312echo "$as_me:4312: checking for db_create" >&5 4313echo $ECHO_N "checking for db_create... $ECHO_C" >&6 4314if test "${ac_cv_funclib_db_create+set}" = set; then 4315 echo $ECHO_N "(cached) $ECHO_C" >&6 4316else 4317 4318if eval "test \"\$ac_cv_func_db_create\" != yes" ; then 4319 ac_save_LIBS="$LIBS" 4320 for ac_lib in "" $berkeley_db; do 4321 if test -n "$ac_lib"; then 4322 ac_lib="-l$ac_lib" 4323 else 4324 ac_lib="" 4325 fi 4326 LIBS=" $ac_lib $ac_save_LIBS" 4327 cat >conftest.$ac_ext <<_ACEOF 4328#line 4328 "configure" 4329#include "confdefs.h" 4330 4331int 4332main () 4333{ 4334db_create() 4335 ; 4336 return 0; 4337} 4338_ACEOF 4339rm -f conftest.$ac_objext conftest$ac_exeext 4340if { (eval echo "$as_me:4340: \"$ac_link\"") >&5 4341 (eval $ac_link) 2>&5 4342 ac_status=$? 4343 echo "$as_me:4343: \$? = $ac_status" >&5 4344 (exit $ac_status); } && 4345 { (eval echo "$as_me:4345: \"test -s conftest$ac_exeext\"") >&5 4346 (eval test -s conftest$ac_exeext) 2>&5 4347 ac_status=$? 4348 echo "$as_me:4348: \$? = $ac_status" >&5 4349 (exit $ac_status); }; then 4350 eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break 4351else 4352 echo "$as_me: failed program was:" >&5 4353cat conftest.$ac_ext >&5 4354fi 4355rm -f conftest$ac_exeext conftest.$ac_ext 4356 done 4357 eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}" 4358 LIBS="$ac_save_LIBS" 4359fi 4360 4361fi 4362 4363eval "ac_res=\$ac_cv_funclib_db_create" 4364 4365if false; then 4366 4367for ac_func in db_create 4368do 4369ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 4370echo "$as_me:4370: checking for $ac_func" >&5 4371echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4372if eval "test \"\${$ac_ac_var+set}\" = set"; then 4373 echo $ECHO_N "(cached) $ECHO_C" >&6 4374else 4375 cat >conftest.$ac_ext <<_ACEOF 4376#line 4376 "configure" 4377#include "confdefs.h" 4378/* System header to define __stub macros and hopefully few prototypes, 4379 which can conflict with char $ac_func (); below. */ 4380#include <assert.h> 4381/* Override any gcc2 internal prototype to avoid an error. */ 4382#ifdef __cplusplus 4383extern "C" 4384#endif 4385/* We use char because int might match the return type of a gcc2 4386 builtin and then its argument prototype would still apply. */ 4387char $ac_func (); 4388char (*f) (); 4389 4390int 4391main () 4392{ 4393/* The GNU C library defines this for functions which it implements 4394 to always fail with ENOSYS. Some functions are actually named 4395 something starting with __ and the normal name is an alias. */ 4396#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4397choke me 4398#else 4399f = $ac_func; 4400#endif 4401 4402 ; 4403 return 0; 4404} 4405_ACEOF 4406rm -f conftest.$ac_objext conftest$ac_exeext 4407if { (eval echo "$as_me:4407: \"$ac_link\"") >&5 4408 (eval $ac_link) 2>&5 4409 ac_status=$? 4410 echo "$as_me:4410: \$? = $ac_status" >&5 4411 (exit $ac_status); } && 4412 { (eval echo "$as_me:4412: \"test -s conftest$ac_exeext\"") >&5 4413 (eval test -s conftest$ac_exeext) 2>&5 4414 ac_status=$? 4415 echo "$as_me:4415: \$? = $ac_status" >&5 4416 (exit $ac_status); }; then 4417 eval "$ac_ac_var=yes" 4418else 4419 echo "$as_me: failed program was:" >&5 4420cat conftest.$ac_ext >&5 4421eval "$ac_ac_var=no" 4422fi 4423rm -f conftest$ac_exeext conftest.$ac_ext 4424fi 4425echo "$as_me:4425: result: `eval echo '${'$ac_ac_var'}'`" >&5 4426echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4427if test `eval echo '${'$ac_ac_var'}'` = yes; then 4428 cat >>confdefs.h <<EOF 4429#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4430EOF 4431 4432fi 4433done 4434 4435fi 4436# db_create 4437eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 4438eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 4439eval "LIB_db_create=$ac_res" 4440 4441case "$ac_res" in 4442 yes) 4443 eval "ac_cv_func_db_create=yes" 4444 eval "LIB_db_create=" 4445 cat >>confdefs.h <<EOF 4446#define $ac_tr_func 1 4447EOF 4448 4449 echo "$as_me:4449: result: yes" >&5 4450echo "${ECHO_T}yes" >&6 4451 ;; 4452 no) 4453 eval "ac_cv_func_db_create=no" 4454 eval "LIB_db_create=" 4455 echo "$as_me:4455: result: no" >&5 4456echo "${ECHO_T}no" >&6 4457 ;; 4458 *) 4459 eval "ac_cv_func_db_create=yes" 4460 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 4461 cat >>confdefs.h <<EOF 4462#define $ac_tr_func 1 4463EOF 4464 4465 cat >>confdefs.h <<EOF 4466#define $ac_tr_lib 1 4467EOF 4468 4469 echo "$as_me:4469: result: yes, in $ac_res" >&5 4470echo "${ECHO_T}yes, in $ac_res" >&6 4471 ;; 4472esac 4473 4474DBLIB="$LIB_dbopen" 4475if test "$LIB_dbopen" != "$LIB_db_create"; then 4476 DBLIB="$DBLIB $LIB_db_create" 4477fi 4478if test "$LIB_dbopen" != "$LIB_dbm_firstkey"; then 4479 DBLIB="$DBLIB $LIB_dbm_firstkey" 4480fi 4481 4482echo "$as_me:4482: checking for inline" >&5 4483echo $ECHO_N "checking for inline... $ECHO_C" >&6 4484if test "${ac_cv_c_inline+set}" = set; then 4485 echo $ECHO_N "(cached) $ECHO_C" >&6 4486else 4487 ac_cv_c_inline=no 4488for ac_kw in inline __inline__ __inline; do 4489 cat >conftest.$ac_ext <<_ACEOF 4490#line 4490 "configure" 4491#include "confdefs.h" 4492#ifndef __cplusplus 4493$ac_kw int foo () {return 0; } 4494#endif 4495 4496_ACEOF 4497rm -f conftest.$ac_objext 4498if { (eval echo "$as_me:4498: \"$ac_compile\"") >&5 4499 (eval $ac_compile) 2>&5 4500 ac_status=$? 4501 echo "$as_me:4501: \$? = $ac_status" >&5 4502 (exit $ac_status); } && 4503 { (eval echo "$as_me:4503: \"test -s conftest.$ac_objext\"") >&5 4504 (eval test -s conftest.$ac_objext) 2>&5 4505 ac_status=$? 4506 echo "$as_me:4506: \$? = $ac_status" >&5 4507 (exit $ac_status); }; then 4508 ac_cv_c_inline=$ac_kw; break 4509else 4510 echo "$as_me: failed program was:" >&5 4511cat conftest.$ac_ext >&5 4512fi 4513rm -f conftest.$ac_objext conftest.$ac_ext 4514done 4515 4516fi 4517echo "$as_me:4517: result: $ac_cv_c_inline" >&5 4518echo "${ECHO_T}$ac_cv_c_inline" >&6 4519case $ac_cv_c_inline in 4520 inline | yes) ;; 4521 no) 4522cat >>confdefs.h <<\EOF 4523#define inline 4524EOF 4525 ;; 4526 *) cat >>confdefs.h <<EOF 4527#define inline $ac_cv_c_inline 4528EOF 4529 ;; 4530esac 4531 4532echo "$as_me:4532: checking for an ANSI C-conforming const" >&5 4533echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 4534if test "${ac_cv_c_const+set}" = set; then 4535 echo $ECHO_N "(cached) $ECHO_C" >&6 4536else 4537 cat >conftest.$ac_ext <<_ACEOF 4538#line 4538 "configure" 4539#include "confdefs.h" 4540 4541int 4542main () 4543{ 4544/* FIXME: Include the comments suggested by Paul. */ 4545#ifndef __cplusplus 4546 /* Ultrix mips cc rejects this. */ 4547 typedef int charset[2]; 4548 const charset x; 4549 /* SunOS 4.1.1 cc rejects this. */ 4550 char const *const *ccp; 4551 char **p; 4552 /* NEC SVR4.0.2 mips cc rejects this. */ 4553 struct point {int x, y;}; 4554 static struct point const zero = {0,0}; 4555 /* AIX XL C 1.02.0.0 rejects this. 4556 It does not let you subtract one const X* pointer from another in 4557 an arm of an if-expression whose if-part is not a constant 4558 expression */ 4559 const char *g = "string"; 4560 ccp = &g + (g ? g-g : 0); 4561 /* HPUX 7.0 cc rejects these. */ 4562 ++ccp; 4563 p = (char**) ccp; 4564 ccp = (char const *const *) p; 4565 { /* SCO 3.2v4 cc rejects this. */ 4566 char *t; 4567 char const *s = 0 ? (char *) 0 : (char const *) 0; 4568 4569 *t++ = 0; 4570 } 4571 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4572 int x[] = {25, 17}; 4573 const int *foo = &x[0]; 4574 ++foo; 4575 } 4576 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4577 typedef const int *iptr; 4578 iptr p = 0; 4579 ++p; 4580 } 4581 { /* AIX XL C 1.02.0.0 rejects this saying 4582 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4583 struct s { int j; const int *ap[3]; }; 4584 struct s *b; b->j = 5; 4585 } 4586 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4587 const int foo = 10; 4588 } 4589#endif 4590 4591 ; 4592 return 0; 4593} 4594_ACEOF 4595rm -f conftest.$ac_objext 4596if { (eval echo "$as_me:4596: \"$ac_compile\"") >&5 4597 (eval $ac_compile) 2>&5 4598 ac_status=$? 4599 echo "$as_me:4599: \$? = $ac_status" >&5 4600 (exit $ac_status); } && 4601 { (eval echo "$as_me:4601: \"test -s conftest.$ac_objext\"") >&5 4602 (eval test -s conftest.$ac_objext) 2>&5 4603 ac_status=$? 4604 echo "$as_me:4604: \$? = $ac_status" >&5 4605 (exit $ac_status); }; then 4606 ac_cv_c_const=yes 4607else 4608 echo "$as_me: failed program was:" >&5 4609cat conftest.$ac_ext >&5 4610ac_cv_c_const=no 4611fi 4612rm -f conftest.$ac_objext conftest.$ac_ext 4613fi 4614echo "$as_me:4614: result: $ac_cv_c_const" >&5 4615echo "${ECHO_T}$ac_cv_c_const" >&6 4616if test $ac_cv_c_const = no; then 4617 4618cat >>confdefs.h <<\EOF 4619#define const 4620EOF 4621 4622fi 4623 4624echo "$as_me:4624: checking for ANSI C header files" >&5 4625echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4626if test "${ac_cv_header_stdc+set}" = set; then 4627 echo $ECHO_N "(cached) $ECHO_C" >&6 4628else 4629 cat >conftest.$ac_ext <<_ACEOF 4630#line 4630 "configure" 4631#include "confdefs.h" 4632#include <stdlib.h> 4633#include <stdarg.h> 4634#include <string.h> 4635#include <float.h> 4636 4637_ACEOF 4638if { (eval echo "$as_me:4638: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 4639 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 4640 ac_status=$? 4641 egrep -v '^ *\+' conftest.er1 >conftest.err 4642 rm -f conftest.er1 4643 cat conftest.err >&5 4644 echo "$as_me:4644: \$? = $ac_status" >&5 4645 (exit $ac_status); }; then 4646 if test -s conftest.err; then 4647 ac_cpp_err=$ac_c_preproc_warn_flag 4648 else 4649 ac_cpp_err= 4650 fi 4651else 4652 ac_cpp_err=yes 4653fi 4654if test -z "$ac_cpp_err"; then 4655 ac_cv_header_stdc=yes 4656else 4657 echo "$as_me: failed program was:" >&5 4658 cat conftest.$ac_ext >&5 4659 ac_cv_header_stdc=no 4660fi 4661rm -f conftest.err conftest.$ac_ext 4662 4663if test $ac_cv_header_stdc = yes; then 4664 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4665 cat >conftest.$ac_ext <<_ACEOF 4666#line 4666 "configure" 4667#include "confdefs.h" 4668#include <string.h> 4669 4670_ACEOF 4671if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4672 egrep "memchr" >/dev/null 2>&1; then 4673 : 4674else 4675 ac_cv_header_stdc=no 4676fi 4677rm -f conftest* 4678 4679fi 4680 4681if test $ac_cv_header_stdc = yes; then 4682 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4683 cat >conftest.$ac_ext <<_ACEOF 4684#line 4684 "configure" 4685#include "confdefs.h" 4686#include <stdlib.h> 4687 4688_ACEOF 4689if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4690 egrep "free" >/dev/null 2>&1; then 4691 : 4692else 4693 ac_cv_header_stdc=no 4694fi 4695rm -f conftest* 4696 4697fi 4698 4699if test $ac_cv_header_stdc = yes; then 4700 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4701 if test "$cross_compiling" = yes; then 4702 : 4703else 4704 cat >conftest.$ac_ext <<_ACEOF 4705#line 4705 "configure" 4706#include "confdefs.h" 4707#include <ctype.h> 4708#if ((' ' & 0x0FF) == 0x020) 4709# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4710# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4711#else 4712# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 4713 || ('j' <= (c) && (c) <= 'r') \ 4714 || ('s' <= (c) && (c) <= 'z')) 4715# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4716#endif 4717 4718#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4719int 4720main () 4721{ 4722 int i; 4723 for (i = 0; i < 256; i++) 4724 if (XOR (islower (i), ISLOWER (i)) 4725 || toupper (i) != TOUPPER (i)) 4726 exit(2); 4727 exit (0); 4728} 4729_ACEOF 4730rm -f conftest$ac_exeext 4731if { (eval echo "$as_me:4731: \"$ac_link\"") >&5 4732 (eval $ac_link) 2>&5 4733 ac_status=$? 4734 echo "$as_me:4734: \$? = $ac_status" >&5 4735 (exit $ac_status); } && { (eval echo "$as_me:4735: \"./conftest$ac_exeext\"") >&5 4736 (eval ./conftest$ac_exeext) 2>&5 4737 ac_status=$? 4738 echo "$as_me:4738: \$? = $ac_status" >&5 4739 (exit $ac_status); }; then 4740 : 4741else 4742 echo "$as_me: program exited with status $ac_status" >&5 4743echo "$as_me: failed program was:" >&5 4744cat conftest.$ac_ext >&5 4745ac_cv_header_stdc=no 4746fi 4747rm -f conftest$ac_exeext conftest.$ac_ext 4748fi 4749fi 4750fi 4751echo "$as_me:4751: result: $ac_cv_header_stdc" >&5 4752echo "${ECHO_T}$ac_cv_header_stdc" >&6 4753if test $ac_cv_header_stdc = yes; then 4754 4755cat >>confdefs.h <<\EOF 4756#define STDC_HEADERS 1 4757EOF 4758 4759fi 4760 4761for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h 4762do 4763ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 4764echo "$as_me:4764: checking for $ac_header" >&5 4765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4766if eval "test \"\${$ac_ac_Header+set}\" = set"; then 4767 echo $ECHO_N "(cached) $ECHO_C" >&6 4768else 4769 cat >conftest.$ac_ext <<_ACEOF 4770#line 4770 "configure" 4771#include "confdefs.h" 4772#include <$ac_header> 4773_ACEOF 4774if { (eval echo "$as_me:4774: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 4775 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 4776 ac_status=$? 4777 egrep -v '^ *\+' conftest.er1 >conftest.err 4778 rm -f conftest.er1 4779 cat conftest.err >&5 4780 echo "$as_me:4780: \$? = $ac_status" >&5 4781 (exit $ac_status); }; then 4782 if test -s conftest.err; then 4783 ac_cpp_err=$ac_c_preproc_warn_flag 4784 else 4785 ac_cpp_err= 4786 fi 4787else 4788 ac_cpp_err=yes 4789fi 4790if test -z "$ac_cpp_err"; then 4791 eval "$ac_ac_Header=yes" 4792else 4793 echo "$as_me: failed program was:" >&5 4794 cat conftest.$ac_ext >&5 4795 eval "$ac_ac_Header=no" 4796fi 4797rm -f conftest.err conftest.$ac_ext 4798fi 4799echo "$as_me:4799: result: `eval echo '${'$ac_ac_Header'}'`" >&5 4800echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 4801if test `eval echo '${'$ac_ac_Header'}'` = yes; then 4802 cat >>confdefs.h <<EOF 4803#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 4804EOF 4805 4806fi 4807done 4808 4809echo "$as_me:4809: checking for size_t" >&5 4810echo $ECHO_N "checking for size_t... $ECHO_C" >&6 4811if test "${ac_cv_type_size_t+set}" = set; then 4812 echo $ECHO_N "(cached) $ECHO_C" >&6 4813else 4814 cat >conftest.$ac_ext <<_ACEOF 4815#line 4815 "configure" 4816#include "confdefs.h" 4817$ac_includes_default 4818int 4819main () 4820{ 4821if ((size_t *) 0) 4822 return 0; 4823if (sizeof (size_t)) 4824 return 0; 4825 ; 4826 return 0; 4827} 4828_ACEOF 4829rm -f conftest.$ac_objext 4830if { (eval echo "$as_me:4830: \"$ac_compile\"") >&5 4831 (eval $ac_compile) 2>&5 4832 ac_status=$? 4833 echo "$as_me:4833: \$? = $ac_status" >&5 4834 (exit $ac_status); } && 4835 { (eval echo "$as_me:4835: \"test -s conftest.$ac_objext\"") >&5 4836 (eval test -s conftest.$ac_objext) 2>&5 4837 ac_status=$? 4838 echo "$as_me:4838: \$? = $ac_status" >&5 4839 (exit $ac_status); }; then 4840 ac_cv_type_size_t=yes 4841else 4842 echo "$as_me: failed program was:" >&5 4843cat conftest.$ac_ext >&5 4844ac_cv_type_size_t=no 4845fi 4846rm -f conftest.$ac_objext conftest.$ac_ext 4847fi 4848echo "$as_me:4848: result: $ac_cv_type_size_t" >&5 4849echo "${ECHO_T}$ac_cv_type_size_t" >&6 4850if test $ac_cv_type_size_t = yes; then 4851 : 4852else 4853 4854cat >>confdefs.h <<EOF 4855#define size_t unsigned 4856EOF 4857 4858fi 4859 4860echo "$as_me:4860: checking for pid_t" >&5 4861echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 4862if test "${ac_cv_type_pid_t+set}" = set; then 4863 echo $ECHO_N "(cached) $ECHO_C" >&6 4864else 4865 cat >conftest.$ac_ext <<_ACEOF 4866#line 4866 "configure" 4867#include "confdefs.h" 4868$ac_includes_default 4869int 4870main () 4871{ 4872if ((pid_t *) 0) 4873 return 0; 4874if (sizeof (pid_t)) 4875 return 0; 4876 ; 4877 return 0; 4878} 4879_ACEOF 4880rm -f conftest.$ac_objext 4881if { (eval echo "$as_me:4881: \"$ac_compile\"") >&5 4882 (eval $ac_compile) 2>&5 4883 ac_status=$? 4884 echo "$as_me:4884: \$? = $ac_status" >&5 4885 (exit $ac_status); } && 4886 { (eval echo "$as_me:4886: \"test -s conftest.$ac_objext\"") >&5 4887 (eval test -s conftest.$ac_objext) 2>&5 4888 ac_status=$? 4889 echo "$as_me:4889: \$? = $ac_status" >&5 4890 (exit $ac_status); }; then 4891 ac_cv_type_pid_t=yes 4892else 4893 echo "$as_me: failed program was:" >&5 4894cat conftest.$ac_ext >&5 4895ac_cv_type_pid_t=no 4896fi 4897rm -f conftest.$ac_objext conftest.$ac_ext 4898fi 4899echo "$as_me:4899: result: $ac_cv_type_pid_t" >&5 4900echo "${ECHO_T}$ac_cv_type_pid_t" >&6 4901if test $ac_cv_type_pid_t = yes; then 4902 : 4903else 4904 4905cat >>confdefs.h <<EOF 4906#define pid_t int 4907EOF 4908 4909fi 4910 4911echo "$as_me:4911: checking for uid_t in sys/types.h" >&5 4912echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 4913if test "${ac_cv_type_uid_t+set}" = set; then 4914 echo $ECHO_N "(cached) $ECHO_C" >&6 4915else 4916 cat >conftest.$ac_ext <<_ACEOF 4917#line 4917 "configure" 4918#include "confdefs.h" 4919#include <sys/types.h> 4920 4921_ACEOF 4922if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4923 egrep "uid_t" >/dev/null 2>&1; then 4924 ac_cv_type_uid_t=yes 4925else 4926 ac_cv_type_uid_t=no 4927fi 4928rm -f conftest* 4929 4930fi 4931echo "$as_me:4931: result: $ac_cv_type_uid_t" >&5 4932echo "${ECHO_T}$ac_cv_type_uid_t" >&6 4933if test $ac_cv_type_uid_t = no; then 4934 4935cat >>confdefs.h <<\EOF 4936#define uid_t int 4937EOF 4938 4939cat >>confdefs.h <<\EOF 4940#define gid_t int 4941EOF 4942 4943fi 4944 4945echo "$as_me:4945: checking return type of signal handlers" >&5 4946echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 4947if test "${ac_cv_type_signal+set}" = set; then 4948 echo $ECHO_N "(cached) $ECHO_C" >&6 4949else 4950 cat >conftest.$ac_ext <<_ACEOF 4951#line 4951 "configure" 4952#include "confdefs.h" 4953#include <sys/types.h> 4954#include <signal.h> 4955#ifdef signal 4956# undef signal 4957#endif 4958#ifdef __cplusplus 4959extern "C" void (*signal (int, void (*)(int)))(int); 4960#else 4961void (*signal ()) (); 4962#endif 4963 4964int 4965main () 4966{ 4967int i; 4968 ; 4969 return 0; 4970} 4971_ACEOF 4972rm -f conftest.$ac_objext 4973if { (eval echo "$as_me:4973: \"$ac_compile\"") >&5 4974 (eval $ac_compile) 2>&5 4975 ac_status=$? 4976 echo "$as_me:4976: \$? = $ac_status" >&5 4977 (exit $ac_status); } && 4978 { (eval echo "$as_me:4978: \"test -s conftest.$ac_objext\"") >&5 4979 (eval test -s conftest.$ac_objext) 2>&5 4980 ac_status=$? 4981 echo "$as_me:4981: \$? = $ac_status" >&5 4982 (exit $ac_status); }; then 4983 ac_cv_type_signal=void 4984else 4985 echo "$as_me: failed program was:" >&5 4986cat conftest.$ac_ext >&5 4987ac_cv_type_signal=int 4988fi 4989rm -f conftest.$ac_objext conftest.$ac_ext 4990fi 4991echo "$as_me:4991: result: $ac_cv_type_signal" >&5 4992echo "${ECHO_T}$ac_cv_type_signal" >&6 4993 4994cat >>confdefs.h <<EOF 4995#define RETSIGTYPE $ac_cv_type_signal 4996EOF 4997 4998if test "$ac_cv_type_signal" = "void" ; then 4999 5000cat >>confdefs.h <<\EOF 5001#define VOID_RETSIGTYPE 1 5002EOF 5003 5004fi 5005 5006echo "$as_me:5006: checking whether time.h and sys/time.h may both be included" >&5 5007echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 5008if test "${ac_cv_header_time+set}" = set; then 5009 echo $ECHO_N "(cached) $ECHO_C" >&6 5010else 5011 cat >conftest.$ac_ext <<_ACEOF 5012#line 5012 "configure" 5013#include "confdefs.h" 5014#include <sys/types.h> 5015#include <sys/time.h> 5016#include <time.h> 5017 5018int 5019main () 5020{ 5021struct tm *tp; 5022 ; 5023 return 0; 5024} 5025_ACEOF 5026rm -f conftest.$ac_objext 5027if { (eval echo "$as_me:5027: \"$ac_compile\"") >&5 5028 (eval $ac_compile) 2>&5 5029 ac_status=$? 5030 echo "$as_me:5030: \$? = $ac_status" >&5 5031 (exit $ac_status); } && 5032 { (eval echo "$as_me:5032: \"test -s conftest.$ac_objext\"") >&5 5033 (eval test -s conftest.$ac_objext) 2>&5 5034 ac_status=$? 5035 echo "$as_me:5035: \$? = $ac_status" >&5 5036 (exit $ac_status); }; then 5037 ac_cv_header_time=yes 5038else 5039 echo "$as_me: failed program was:" >&5 5040cat conftest.$ac_ext >&5 5041ac_cv_header_time=no 5042fi 5043rm -f conftest.$ac_objext conftest.$ac_ext 5044fi 5045echo "$as_me:5045: result: $ac_cv_header_time" >&5 5046echo "${ECHO_T}$ac_cv_header_time" >&6 5047if test $ac_cv_header_time = yes; then 5048 5049cat >>confdefs.h <<\EOF 5050#define TIME_WITH_SYS_TIME 1 5051EOF 5052 5053fi 5054 5055for ac_header in standards.h 5056do 5057ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 5058echo "$as_me:5058: checking for $ac_header" >&5 5059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5060if eval "test \"\${$ac_ac_Header+set}\" = set"; then 5061 echo $ECHO_N "(cached) $ECHO_C" >&6 5062else 5063 cat >conftest.$ac_ext <<_ACEOF 5064#line 5064 "configure" 5065#include "confdefs.h" 5066#include <$ac_header> 5067_ACEOF 5068if { (eval echo "$as_me:5068: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 5069 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 5070 ac_status=$? 5071 egrep -v '^ *\+' conftest.er1 >conftest.err 5072 rm -f conftest.er1 5073 cat conftest.err >&5 5074 echo "$as_me:5074: \$? = $ac_status" >&5 5075 (exit $ac_status); }; then 5076 if test -s conftest.err; then 5077 ac_cpp_err=$ac_c_preproc_warn_flag 5078 else 5079 ac_cpp_err= 5080 fi 5081else 5082 ac_cpp_err=yes 5083fi 5084if test -z "$ac_cpp_err"; then 5085 eval "$ac_ac_Header=yes" 5086else 5087 echo "$as_me: failed program was:" >&5 5088 cat conftest.$ac_ext >&5 5089 eval "$ac_ac_Header=no" 5090fi 5091rm -f conftest.err conftest.$ac_ext 5092fi 5093echo "$as_me:5093: result: `eval echo '${'$ac_ac_Header'}'`" >&5 5094echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 5095if test `eval echo '${'$ac_ac_Header'}'` = yes; then 5096 cat >>confdefs.h <<EOF 5097#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 5098EOF 5099 5100fi 5101done 5102 5103for i in netinet/ip.h netinet/tcp.h; do 5104 5105cv=`echo "$i" | sed 'y%./+-%__p_%'` 5106 5107echo "$as_me:5107: checking for $i" >&5 5108echo $ECHO_N "checking for $i... $ECHO_C" >&6 5109if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then 5110 echo $ECHO_N "(cached) $ECHO_C" >&6 5111else 5112 cat >conftest.$ac_ext <<_ACEOF 5113#line 5113 "configure" 5114#include "confdefs.h" 5115\ 5116#ifdef HAVE_STANDARDS_H 5117#include <standards.h> 5118#endif 5119#include <$i> 5120 5121_ACEOF 5122if { (eval echo "$as_me:5122: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 5123 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 5124 ac_status=$? 5125 egrep -v '^ *\+' conftest.er1 >conftest.err 5126 rm -f conftest.er1 5127 cat conftest.err >&5 5128 echo "$as_me:5128: \$? = $ac_status" >&5 5129 (exit $ac_status); }; then 5130 if test -s conftest.err; then 5131 ac_cpp_err=$ac_c_preproc_warn_flag 5132 else 5133 ac_cpp_err= 5134 fi 5135else 5136 ac_cpp_err=yes 5137fi 5138if test -z "$ac_cpp_err"; then 5139 eval "ac_cv_header_$cv=yes" 5140else 5141 echo "$as_me: failed program was:" >&5 5142 cat conftest.$ac_ext >&5 5143 eval "ac_cv_header_$cv=no" 5144fi 5145rm -f conftest.err conftest.$ac_ext 5146fi 5147echo "$as_me:5147: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5 5148echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6 5149ac_res=`eval echo \\$ac_cv_header_$cv` 5150if test "$ac_res" = yes; then 5151 ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5152 cat >>confdefs.h <<EOF 5153#define $ac_tr_hdr 1 5154EOF 5155 5156fi 5157done 5158if false;then 5159 5160for ac_header in netinet/ip.h netinet/tcp.h 5161do 5162ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 5163echo "$as_me:5163: checking for $ac_header" >&5 5164echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5165if eval "test \"\${$ac_ac_Header+set}\" = set"; then 5166 echo $ECHO_N "(cached) $ECHO_C" >&6 5167else 5168 cat >conftest.$ac_ext <<_ACEOF 5169#line 5169 "configure" 5170#include "confdefs.h" 5171#include <$ac_header> 5172_ACEOF 5173if { (eval echo "$as_me:5173: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 5174 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 5175 ac_status=$? 5176 egrep -v '^ *\+' conftest.er1 >conftest.err 5177 rm -f conftest.er1 5178 cat conftest.err >&5 5179 echo "$as_me:5179: \$? = $ac_status" >&5 5180 (exit $ac_status); }; then 5181 if test -s conftest.err; then 5182 ac_cpp_err=$ac_c_preproc_warn_flag 5183 else 5184 ac_cpp_err= 5185 fi 5186else 5187 ac_cpp_err=yes 5188fi 5189if test -z "$ac_cpp_err"; then 5190 eval "$ac_ac_Header=yes" 5191else 5192 echo "$as_me: failed program was:" >&5 5193 cat conftest.$ac_ext >&5 5194 eval "$ac_ac_Header=no" 5195fi 5196rm -f conftest.err conftest.$ac_ext 5197fi 5198echo "$as_me:5198: result: `eval echo '${'$ac_ac_Header'}'`" >&5 5199echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 5200if test `eval echo '${'$ac_ac_Header'}'` = yes; then 5201 cat >>confdefs.h <<EOF 5202#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 5203EOF 5204 5205fi 5206done 5207 5208fi 5209 5210for ac_func in getlogin setlogin 5211do 5212ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 5213echo "$as_me:5213: checking for $ac_func" >&5 5214echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5215if eval "test \"\${$ac_ac_var+set}\" = set"; then 5216 echo $ECHO_N "(cached) $ECHO_C" >&6 5217else 5218 cat >conftest.$ac_ext <<_ACEOF 5219#line 5219 "configure" 5220#include "confdefs.h" 5221/* System header to define __stub macros and hopefully few prototypes, 5222 which can conflict with char $ac_func (); below. */ 5223#include <assert.h> 5224/* Override any gcc2 internal prototype to avoid an error. */ 5225#ifdef __cplusplus 5226extern "C" 5227#endif 5228/* We use char because int might match the return type of a gcc2 5229 builtin and then its argument prototype would still apply. */ 5230char $ac_func (); 5231char (*f) (); 5232 5233int 5234main () 5235{ 5236/* The GNU C library defines this for functions which it implements 5237 to always fail with ENOSYS. Some functions are actually named 5238 something starting with __ and the normal name is an alias. */ 5239#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5240choke me 5241#else 5242f = $ac_func; 5243#endif 5244 5245 ; 5246 return 0; 5247} 5248_ACEOF 5249rm -f conftest.$ac_objext conftest$ac_exeext 5250if { (eval echo "$as_me:5250: \"$ac_link\"") >&5 5251 (eval $ac_link) 2>&5 5252 ac_status=$? 5253 echo "$as_me:5253: \$? = $ac_status" >&5 5254 (exit $ac_status); } && 5255 { (eval echo "$as_me:5255: \"test -s conftest$ac_exeext\"") >&5 5256 (eval test -s conftest$ac_exeext) 2>&5 5257 ac_status=$? 5258 echo "$as_me:5258: \$? = $ac_status" >&5 5259 (exit $ac_status); }; then 5260 eval "$ac_ac_var=yes" 5261else 5262 echo "$as_me: failed program was:" >&5 5263cat conftest.$ac_ext >&5 5264eval "$ac_ac_var=no" 5265fi 5266rm -f conftest$ac_exeext conftest.$ac_ext 5267fi 5268echo "$as_me:5268: result: `eval echo '${'$ac_ac_var'}'`" >&5 5269echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 5270if test `eval echo '${'$ac_ac_var'}'` = yes; then 5271 cat >>confdefs.h <<EOF 5272#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 5273EOF 5274 5275fi 5276done 5277 5278if test "$ac_cv_func_getlogin" = yes; then 5279echo "$as_me:5279: checking if getlogin is posix" >&5 5280echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6 5281if test "${ac_cv_func_getlogin_posix+set}" = set; then 5282 echo $ECHO_N "(cached) $ECHO_C" >&6 5283else 5284 5285if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then 5286 ac_cv_func_getlogin_posix=no 5287else 5288 ac_cv_func_getlogin_posix=yes 5289fi 5290 5291fi 5292echo "$as_me:5292: result: $ac_cv_func_getlogin_posix" >&5 5293echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6 5294if test "$ac_cv_func_getlogin_posix" = yes; then 5295 5296cat >>confdefs.h <<\EOF 5297#define POSIX_GETLOGIN 1 5298EOF 5299 5300fi 5301fi 5302 5303echo "$as_me:5303: checking if realloc if broken" >&5 5304echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6 5305if test "${ac_cv_func_realloc_broken+set}" = set; then 5306 echo $ECHO_N "(cached) $ECHO_C" >&6 5307else 5308 5309ac_cv_func_realloc_broken=no 5310if test "$cross_compiling" = yes; then 5311 : 5312else 5313 cat >conftest.$ac_ext <<_ACEOF 5314#line 5314 "configure" 5315#include "confdefs.h" 5316 5317#include <stddef.h> 5318#include <stdlib.h> 5319 5320int main() 5321{ 5322 return realloc(NULL, 17) == NULL; 5323} 5324 5325_ACEOF 5326rm -f conftest$ac_exeext 5327if { (eval echo "$as_me:5327: \"$ac_link\"") >&5 5328 (eval $ac_link) 2>&5 5329 ac_status=$? 5330 echo "$as_me:5330: \$? = $ac_status" >&5 5331 (exit $ac_status); } && { (eval echo "$as_me:5331: \"./conftest$ac_exeext\"") >&5 5332 (eval ./conftest$ac_exeext) 2>&5 5333 ac_status=$? 5334 echo "$as_me:5334: \$? = $ac_status" >&5 5335 (exit $ac_status); }; then 5336 : 5337else 5338 echo "$as_me: program exited with status $ac_status" >&5 5339echo "$as_me: failed program was:" >&5 5340cat conftest.$ac_ext >&5 5341ac_cv_func_realloc_broken=yes 5342fi 5343rm -f conftest$ac_exeext conftest.$ac_ext 5344fi 5345 5346fi 5347echo "$as_me:5347: result: $ac_cv_func_realloc_broken" >&5 5348echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6 5349if test "$ac_cv_func_realloc_broken" = yes ; then 5350 5351cat >>confdefs.h <<\EOF 5352#define BROKEN_REALLOC 1 5353EOF 5354 5355fi 5356 5357DIR_roken=roken 5358LIB_roken='$(top_builddir)/lib/roken/libroken.la' 5359INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken' 5360 5361WFLAGS_NOUNUSED="" 5362WFLAGS_NOIMPLICITINT="" 5363if test -z "$WFLAGS" -a "$GCC" = "yes"; then 5364 # -Wno-implicit-int for broken X11 headers 5365 # leave these out for now: 5366 # -Wcast-align doesn't work well on alpha osf/1 5367 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast 5368 # -Wmissing-declarations -Wnested-externs 5369 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs" 5370 WFLAGS_NOUNUSED="-Wno-unused" 5371 WFLAGS_NOIMPLICITINT="-Wno-implicit-int" 5372fi 5373 5374echo "$as_me:5374: checking for ssize_t" >&5 5375echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 5376if test "${ac_cv_type_ssize_t+set}" = set; then 5377 echo $ECHO_N "(cached) $ECHO_C" >&6 5378else 5379 cat >conftest.$ac_ext <<_ACEOF 5380#line 5380 "configure" 5381#include "confdefs.h" 5382#include <sys/types.h> 5383#if STDC_HEADERS 5384#include <stdlib.h> 5385#include <stddef.h> 5386#endif 5387#include <unistd.h> 5388_ACEOF 5389if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5390 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 5391 ac_cv_type_ssize_t=yes 5392else 5393 ac_cv_type_ssize_t=no 5394fi 5395rm -f conftest* 5396 5397fi 5398echo "$as_me:5398: result: $ac_cv_type_ssize_t" >&5 5399echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 5400if test $ac_cv_type_ssize_t = no; then 5401 5402cat >>confdefs.h <<\EOF 5403#define ssize_t int 5404EOF 5405 5406fi 5407 5408cv=`echo "long long" | sed 'y%./+- %__p__%'` 5409echo "$as_me:5409: checking for long long" >&5 5410echo $ECHO_N "checking for long long... $ECHO_C" >&6 5411if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 5412 echo $ECHO_N "(cached) $ECHO_C" >&6 5413else 5414 cat >conftest.$ac_ext <<_ACEOF 5415#line 5415 "configure" 5416#include "confdefs.h" 5417#include <sys/types.h> 5418#if STDC_HEADERS 5419#include <stdlib.h> 5420#include <stddef.h> 5421#endif 5422 5423int 5424main () 5425{ 5426long long foo; 5427 ; 5428 return 0; 5429} 5430_ACEOF 5431rm -f conftest.$ac_objext 5432if { (eval echo "$as_me:5432: \"$ac_compile\"") >&5 5433 (eval $ac_compile) 2>&5 5434 ac_status=$? 5435 echo "$as_me:5435: \$? = $ac_status" >&5 5436 (exit $ac_status); } && 5437 { (eval echo "$as_me:5437: \"test -s conftest.$ac_objext\"") >&5 5438 (eval test -s conftest.$ac_objext) 2>&5 5439 ac_status=$? 5440 echo "$as_me:5440: \$? = $ac_status" >&5 5441 (exit $ac_status); }; then 5442 eval "ac_cv_type_$cv=yes" 5443else 5444 echo "$as_me: failed program was:" >&5 5445cat conftest.$ac_ext >&5 5446eval "ac_cv_type_$cv=no" 5447fi 5448rm -f conftest.$ac_objext conftest.$ac_ext 5449fi 5450ac_foo=`eval echo \\$ac_cv_type_$cv` 5451echo "$as_me:5451: result: $ac_foo" >&5 5452echo "${ECHO_T}$ac_foo" >&6 5453if test "$ac_foo" = yes; then 5454 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 5455if false; then 5456 echo "$as_me:5456: checking for long long" >&5 5457echo $ECHO_N "checking for long long... $ECHO_C" >&6 5458if test "${ac_cv_type_long_long+set}" = set; then 5459 echo $ECHO_N "(cached) $ECHO_C" >&6 5460else 5461 cat >conftest.$ac_ext <<_ACEOF 5462#line 5462 "configure" 5463#include "confdefs.h" 5464$ac_includes_default 5465int 5466main () 5467{ 5468if ((long long *) 0) 5469 return 0; 5470if (sizeof (long long)) 5471 return 0; 5472 ; 5473 return 0; 5474} 5475_ACEOF 5476rm -f conftest.$ac_objext 5477if { (eval echo "$as_me:5477: \"$ac_compile\"") >&5 5478 (eval $ac_compile) 2>&5 5479 ac_status=$? 5480 echo "$as_me:5480: \$? = $ac_status" >&5 5481 (exit $ac_status); } && 5482 { (eval echo "$as_me:5482: \"test -s conftest.$ac_objext\"") >&5 5483 (eval test -s conftest.$ac_objext) 2>&5 5484 ac_status=$? 5485 echo "$as_me:5485: \$? = $ac_status" >&5 5486 (exit $ac_status); }; then 5487 ac_cv_type_long_long=yes 5488else 5489 echo "$as_me: failed program was:" >&5 5490cat conftest.$ac_ext >&5 5491ac_cv_type_long_long=no 5492fi 5493rm -f conftest.$ac_objext conftest.$ac_ext 5494fi 5495echo "$as_me:5495: result: $ac_cv_type_long_long" >&5 5496echo "${ECHO_T}$ac_cv_type_long_long" >&6 5497if test $ac_cv_type_long_long = yes; then 5498 5499cat >>confdefs.h <<EOF 5500#define HAVE_LONG_LONG 1 5501EOF 5502 5503fi 5504 5505fi 5506 5507cat >>confdefs.h <<EOF 5508#define $ac_tr_hdr 1 5509EOF 5510 5511fi 5512 5513for ac_header in \ 5514 arpa/inet.h \ 5515 arpa/nameser.h \ 5516 config.h \ 5517 crypt.h \ 5518 dbm.h \ 5519 db.h \ 5520 dirent.h \ 5521 errno.h \ 5522 err.h \ 5523 fcntl.h \ 5524 gdbm/ndbm.h \ 5525 grp.h \ 5526 ifaddrs.h \ 5527 ndbm.h \ 5528 net/if.h \ 5529 netdb.h \ 5530 netinet/in.h \ 5531 netinet/in6.h \ 5532 netinet/in_systm.h \ 5533 netinet6/in6.h \ 5534 netinet6/in6_var.h \ 5535 paths.h \ 5536 pwd.h \ 5537 resolv.h \ 5538 rpcsvc/dbm.h \ 5539 rpcsvc/ypclnt.h \ 5540 shadow.h \ 5541 sys/ioctl.h \ 5542 sys/param.h \ 5543 sys/proc.h \ 5544 sys/resource.h \ 5545 sys/socket.h \ 5546 sys/sockio.h \ 5547 sys/stat.h \ 5548 sys/sysctl.h \ 5549 sys/time.h \ 5550 sys/tty.h \ 5551 sys/types.h \ 5552 sys/uio.h \ 5553 sys/utsname.h \ 5554 sys/wait.h \ 5555 syslog.h \ 5556 termios.h \ 5557 unistd.h \ 5558 userconf.h \ 5559 usersec.h \ 5560 util.h \ 5561 vis.h \ 5562 winsock.h \ 5563 5564do 5565ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 5566echo "$as_me:5566: checking for $ac_header" >&5 5567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5568if eval "test \"\${$ac_ac_Header+set}\" = set"; then 5569 echo $ECHO_N "(cached) $ECHO_C" >&6 5570else 5571 cat >conftest.$ac_ext <<_ACEOF 5572#line 5572 "configure" 5573#include "confdefs.h" 5574#include <$ac_header> 5575_ACEOF 5576if { (eval echo "$as_me:5576: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 5577 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 5578 ac_status=$? 5579 egrep -v '^ *\+' conftest.er1 >conftest.err 5580 rm -f conftest.er1 5581 cat conftest.err >&5 5582 echo "$as_me:5582: \$? = $ac_status" >&5 5583 (exit $ac_status); }; then 5584 if test -s conftest.err; then 5585 ac_cpp_err=$ac_c_preproc_warn_flag 5586 else 5587 ac_cpp_err= 5588 fi 5589else 5590 ac_cpp_err=yes 5591fi 5592if test -z "$ac_cpp_err"; then 5593 eval "$ac_ac_Header=yes" 5594else 5595 echo "$as_me: failed program was:" >&5 5596 cat conftest.$ac_ext >&5 5597 eval "$ac_ac_Header=no" 5598fi 5599rm -f conftest.err conftest.$ac_ext 5600fi 5601echo "$as_me:5601: result: `eval echo '${'$ac_ac_Header'}'`" >&5 5602echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 5603if test `eval echo '${'$ac_ac_Header'}'` = yes; then 5604 cat >>confdefs.h <<EOF 5605#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 5606EOF 5607 5608fi 5609done 5610 5611if test "$ac_cv_header_err_h" = yes; then 5612 have_err_h_TRUE= 5613 have_err_h_FALSE='#' 5614else 5615 have_err_h_TRUE='#' 5616 have_err_h_FALSE= 5617fi 5618 5619if test "$ac_cv_header_fnmatch_h" = yes; then 5620 have_fnmatch_h_TRUE= 5621 have_fnmatch_h_FALSE='#' 5622else 5623 have_fnmatch_h_TRUE='#' 5624 have_fnmatch_h_FALSE= 5625fi 5626 5627if test "$ac_cv_header_ifaddrs_h" = yes; then 5628 have_ifaddrs_h_TRUE= 5629 have_ifaddrs_h_FALSE='#' 5630else 5631 have_ifaddrs_h_TRUE='#' 5632 have_ifaddrs_h_FALSE= 5633fi 5634 5635if test "$ac_cv_header_vis_h" = yes; then 5636 have_vis_h_TRUE= 5637 have_vis_h_FALSE='#' 5638else 5639 have_vis_h_TRUE='#' 5640 have_vis_h_FALSE= 5641fi 5642 5643# Check whether --with-ipv6 or --without-ipv6 was given. 5644if test "${with_ipv6+set}" = set; then 5645 withval="$with_ipv6" 5646 5647if test "$withval" = "no"; then 5648 ac_cv_lib_ipv6=no 5649fi 5650fi; 5651if test "${ac_cv_lib_ipv6+set}" = set; then 5652 echo $ECHO_N "(cached) $ECHO_C" >&6 5653else 5654 v6type=unknown 5655v6lib=none 5656 5657echo "$as_me:5657: checking ipv6 stack type" >&5 5658echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 5659for i in v6d toshiba kame inria zeta linux; do 5660 case $i in 5661 v6d) 5662 cat >conftest.$ac_ext <<_ACEOF 5663#line 5663 "configure" 5664#include "confdefs.h" 5665 5666#include </usr/local/v6/include/sys/types.h> 5667#ifdef __V6D__ 5668yes 5669#endif 5670_ACEOF 5671if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5672 egrep "yes" >/dev/null 2>&1; then 5673 v6type=$i; v6lib=v6; 5674 v6libdir=/usr/local/v6/lib; 5675 CFLAGS="-I/usr/local/v6/include $CFLAGS" 5676fi 5677rm -f conftest* 5678 5679 ;; 5680 toshiba) 5681 cat >conftest.$ac_ext <<_ACEOF 5682#line 5682 "configure" 5683#include "confdefs.h" 5684 5685#include <sys/param.h> 5686#ifdef _TOSHIBA_INET6 5687yes 5688#endif 5689_ACEOF 5690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5691 egrep "yes" >/dev/null 2>&1; then 5692 v6type=$i; v6lib=inet6; 5693 v6libdir=/usr/local/v6/lib; 5694 CFLAGS="-DINET6 $CFLAGS" 5695fi 5696rm -f conftest* 5697 5698 ;; 5699 kame) 5700 cat >conftest.$ac_ext <<_ACEOF 5701#line 5701 "configure" 5702#include "confdefs.h" 5703 5704#include <netinet/in.h> 5705#ifdef __KAME__ 5706yes 5707#endif 5708_ACEOF 5709if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5710 egrep "yes" >/dev/null 2>&1; then 5711 v6type=$i; v6lib=inet6; 5712 v6libdir=/usr/local/v6/lib; 5713 CFLAGS="-DINET6 $CFLAGS" 5714fi 5715rm -f conftest* 5716 5717 ;; 5718 inria) 5719 cat >conftest.$ac_ext <<_ACEOF 5720#line 5720 "configure" 5721#include "confdefs.h" 5722 5723#include <netinet/in.h> 5724#ifdef IPV6_INRIA_VERSION 5725yes 5726#endif 5727_ACEOF 5728if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5729 egrep "yes" >/dev/null 2>&1; then 5730 v6type=$i; CFLAGS="-DINET6 $CFLAGS" 5731fi 5732rm -f conftest* 5733 5734 ;; 5735 zeta) 5736 cat >conftest.$ac_ext <<_ACEOF 5737#line 5737 "configure" 5738#include "confdefs.h" 5739 5740#include <sys/param.h> 5741#ifdef _ZETA_MINAMI_INET6 5742yes 5743#endif 5744_ACEOF 5745if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5746 egrep "yes" >/dev/null 2>&1; then 5747 v6type=$i; v6lib=inet6; 5748 v6libdir=/usr/local/v6/lib; 5749 CFLAGS="-DINET6 $CFLAGS" 5750fi 5751rm -f conftest* 5752 5753 ;; 5754 linux) 5755 if test -d /usr/inet6; then 5756 v6type=$i 5757 v6lib=inet6 5758 v6libdir=/usr/inet6 5759 CFLAGS="-DINET6 $CFLAGS" 5760 fi 5761 ;; 5762 esac 5763 if test "$v6type" != "unknown"; then 5764 break 5765 fi 5766done 5767echo "$as_me:5767: result: $v6type" >&5 5768echo "${ECHO_T}$v6type" >&6 5769 5770if test "$v6lib" != "none"; then 5771 for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do 5772 if test -d $dir -a -f $dir/lib$v6lib.a; then 5773 LIBS="-L$dir -l$v6lib $LIBS" 5774 break 5775 fi 5776 done 5777fi 5778cat >conftest.$ac_ext <<_ACEOF 5779#line 5779 "configure" 5780#include "confdefs.h" 5781 5782#ifdef HAVE_SYS_TYPES_H 5783#include <sys/types.h> 5784#endif 5785#ifdef HAVE_SYS_SOCKET_H 5786#include <sys/socket.h> 5787#endif 5788#ifdef HAVE_NETINET_IN_H 5789#include <netinet/in.h> 5790#endif 5791#ifdef HAVE_NETINET_IN6_H 5792#include <netinet/in6.h> 5793#endif 5794 5795int 5796main () 5797{ 5798 5799 struct sockaddr_in6 sin6; 5800 int s; 5801 5802 s = socket(AF_INET6, SOCK_DGRAM, 0); 5803 5804 sin6.sin6_family = AF_INET6; 5805 sin6.sin6_port = htons(17); 5806 sin6.sin6_addr = in6addr_any; 5807 bind(s, (struct sockaddr *)&sin6, sizeof(sin6)); 5808 5809 ; 5810 return 0; 5811} 5812_ACEOF 5813rm -f conftest.$ac_objext conftest$ac_exeext 5814if { (eval echo "$as_me:5814: \"$ac_link\"") >&5 5815 (eval $ac_link) 2>&5 5816 ac_status=$? 5817 echo "$as_me:5817: \$? = $ac_status" >&5 5818 (exit $ac_status); } && 5819 { (eval echo "$as_me:5819: \"test -s conftest$ac_exeext\"") >&5 5820 (eval test -s conftest$ac_exeext) 2>&5 5821 ac_status=$? 5822 echo "$as_me:5822: \$? = $ac_status" >&5 5823 (exit $ac_status); }; then 5824 ac_cv_lib_ipv6=yes 5825else 5826 echo "$as_me: failed program was:" >&5 5827cat conftest.$ac_ext >&5 5828ac_cv_lib_ipv6=no 5829fi 5830rm -f conftest$ac_exeext conftest.$ac_ext 5831fi 5832 5833echo "$as_me:5833: checking for IPv6" >&5 5834echo $ECHO_N "checking for IPv6... $ECHO_C" >&6 5835echo "$as_me:5835: result: $ac_cv_lib_ipv6" >&5 5836echo "${ECHO_T}$ac_cv_lib_ipv6" >&6 5837if test "$ac_cv_lib_ipv6" = yes; then 5838 5839cat >>confdefs.h <<\EOF 5840#define HAVE_IPV6 1 5841EOF 5842 5843fi 5844 5845echo "$as_me:5845: checking for socket" >&5 5846echo $ECHO_N "checking for socket... $ECHO_C" >&6 5847if test "${ac_cv_funclib_socket+set}" = set; then 5848 echo $ECHO_N "(cached) $ECHO_C" >&6 5849else 5850 5851if eval "test \"\$ac_cv_func_socket\" != yes" ; then 5852 ac_save_LIBS="$LIBS" 5853 for ac_lib in "" socket; do 5854 if test -n "$ac_lib"; then 5855 ac_lib="-l$ac_lib" 5856 else 5857 ac_lib="" 5858 fi 5859 LIBS=" $ac_lib $ac_save_LIBS" 5860 cat >conftest.$ac_ext <<_ACEOF 5861#line 5861 "configure" 5862#include "confdefs.h" 5863 5864int 5865main () 5866{ 5867socket() 5868 ; 5869 return 0; 5870} 5871_ACEOF 5872rm -f conftest.$ac_objext conftest$ac_exeext 5873if { (eval echo "$as_me:5873: \"$ac_link\"") >&5 5874 (eval $ac_link) 2>&5 5875 ac_status=$? 5876 echo "$as_me:5876: \$? = $ac_status" >&5 5877 (exit $ac_status); } && 5878 { (eval echo "$as_me:5878: \"test -s conftest$ac_exeext\"") >&5 5879 (eval test -s conftest$ac_exeext) 2>&5 5880 ac_status=$? 5881 echo "$as_me:5881: \$? = $ac_status" >&5 5882 (exit $ac_status); }; then 5883 eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break 5884else 5885 echo "$as_me: failed program was:" >&5 5886cat conftest.$ac_ext >&5 5887fi 5888rm -f conftest$ac_exeext conftest.$ac_ext 5889 done 5890 eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}" 5891 LIBS="$ac_save_LIBS" 5892fi 5893 5894fi 5895 5896eval "ac_res=\$ac_cv_funclib_socket" 5897 5898if false; then 5899 5900for ac_func in socket 5901do 5902ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 5903echo "$as_me:5903: checking for $ac_func" >&5 5904echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5905if eval "test \"\${$ac_ac_var+set}\" = set"; then 5906 echo $ECHO_N "(cached) $ECHO_C" >&6 5907else 5908 cat >conftest.$ac_ext <<_ACEOF 5909#line 5909 "configure" 5910#include "confdefs.h" 5911/* System header to define __stub macros and hopefully few prototypes, 5912 which can conflict with char $ac_func (); below. */ 5913#include <assert.h> 5914/* Override any gcc2 internal prototype to avoid an error. */ 5915#ifdef __cplusplus 5916extern "C" 5917#endif 5918/* We use char because int might match the return type of a gcc2 5919 builtin and then its argument prototype would still apply. */ 5920char $ac_func (); 5921char (*f) (); 5922 5923int 5924main () 5925{ 5926/* The GNU C library defines this for functions which it implements 5927 to always fail with ENOSYS. Some functions are actually named 5928 something starting with __ and the normal name is an alias. */ 5929#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5930choke me 5931#else 5932f = $ac_func; 5933#endif 5934 5935 ; 5936 return 0; 5937} 5938_ACEOF 5939rm -f conftest.$ac_objext conftest$ac_exeext 5940if { (eval echo "$as_me:5940: \"$ac_link\"") >&5 5941 (eval $ac_link) 2>&5 5942 ac_status=$? 5943 echo "$as_me:5943: \$? = $ac_status" >&5 5944 (exit $ac_status); } && 5945 { (eval echo "$as_me:5945: \"test -s conftest$ac_exeext\"") >&5 5946 (eval test -s conftest$ac_exeext) 2>&5 5947 ac_status=$? 5948 echo "$as_me:5948: \$? = $ac_status" >&5 5949 (exit $ac_status); }; then 5950 eval "$ac_ac_var=yes" 5951else 5952 echo "$as_me: failed program was:" >&5 5953cat conftest.$ac_ext >&5 5954eval "$ac_ac_var=no" 5955fi 5956rm -f conftest$ac_exeext conftest.$ac_ext 5957fi 5958echo "$as_me:5958: result: `eval echo '${'$ac_ac_var'}'`" >&5 5959echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 5960if test `eval echo '${'$ac_ac_var'}'` = yes; then 5961 cat >>confdefs.h <<EOF 5962#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 5963EOF 5964 5965fi 5966done 5967 5968fi 5969# socket 5970eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 5971eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 5972eval "LIB_socket=$ac_res" 5973 5974case "$ac_res" in 5975 yes) 5976 eval "ac_cv_func_socket=yes" 5977 eval "LIB_socket=" 5978 cat >>confdefs.h <<EOF 5979#define $ac_tr_func 1 5980EOF 5981 5982 echo "$as_me:5982: result: yes" >&5 5983echo "${ECHO_T}yes" >&6 5984 ;; 5985 no) 5986 eval "ac_cv_func_socket=no" 5987 eval "LIB_socket=" 5988 echo "$as_me:5988: result: no" >&5 5989echo "${ECHO_T}no" >&6 5990 ;; 5991 *) 5992 eval "ac_cv_func_socket=yes" 5993 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 5994 cat >>confdefs.h <<EOF 5995#define $ac_tr_func 1 5996EOF 5997 5998 cat >>confdefs.h <<EOF 5999#define $ac_tr_lib 1 6000EOF 6001 6002 echo "$as_me:6002: result: yes, in $ac_res" >&5 6003echo "${ECHO_T}yes, in $ac_res" >&6 6004 ;; 6005esac 6006 6007if test -n "$LIB_socket"; then 6008 LIBS="$LIB_socket $LIBS" 6009fi 6010 6011echo "$as_me:6011: checking for gethostbyname" >&5 6012echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 6013if test "${ac_cv_funclib_gethostbyname+set}" = set; then 6014 echo $ECHO_N "(cached) $ECHO_C" >&6 6015else 6016 6017if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then 6018 ac_save_LIBS="$LIBS" 6019 for ac_lib in "" nsl; do 6020 if test -n "$ac_lib"; then 6021 ac_lib="-l$ac_lib" 6022 else 6023 ac_lib="" 6024 fi 6025 LIBS=" $ac_lib $ac_save_LIBS" 6026 cat >conftest.$ac_ext <<_ACEOF 6027#line 6027 "configure" 6028#include "confdefs.h" 6029 6030int 6031main () 6032{ 6033gethostbyname() 6034 ; 6035 return 0; 6036} 6037_ACEOF 6038rm -f conftest.$ac_objext conftest$ac_exeext 6039if { (eval echo "$as_me:6039: \"$ac_link\"") >&5 6040 (eval $ac_link) 2>&5 6041 ac_status=$? 6042 echo "$as_me:6042: \$? = $ac_status" >&5 6043 (exit $ac_status); } && 6044 { (eval echo "$as_me:6044: \"test -s conftest$ac_exeext\"") >&5 6045 (eval test -s conftest$ac_exeext) 2>&5 6046 ac_status=$? 6047 echo "$as_me:6047: \$? = $ac_status" >&5 6048 (exit $ac_status); }; then 6049 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break 6050else 6051 echo "$as_me: failed program was:" >&5 6052cat conftest.$ac_ext >&5 6053fi 6054rm -f conftest$ac_exeext conftest.$ac_ext 6055 done 6056 eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}" 6057 LIBS="$ac_save_LIBS" 6058fi 6059 6060fi 6061 6062eval "ac_res=\$ac_cv_funclib_gethostbyname" 6063 6064if false; then 6065 6066for ac_func in gethostbyname 6067do 6068ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 6069echo "$as_me:6069: checking for $ac_func" >&5 6070echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6071if eval "test \"\${$ac_ac_var+set}\" = set"; then 6072 echo $ECHO_N "(cached) $ECHO_C" >&6 6073else 6074 cat >conftest.$ac_ext <<_ACEOF 6075#line 6075 "configure" 6076#include "confdefs.h" 6077/* System header to define __stub macros and hopefully few prototypes, 6078 which can conflict with char $ac_func (); below. */ 6079#include <assert.h> 6080/* Override any gcc2 internal prototype to avoid an error. */ 6081#ifdef __cplusplus 6082extern "C" 6083#endif 6084/* We use char because int might match the return type of a gcc2 6085 builtin and then its argument prototype would still apply. */ 6086char $ac_func (); 6087char (*f) (); 6088 6089int 6090main () 6091{ 6092/* The GNU C library defines this for functions which it implements 6093 to always fail with ENOSYS. Some functions are actually named 6094 something starting with __ and the normal name is an alias. */ 6095#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6096choke me 6097#else 6098f = $ac_func; 6099#endif 6100 6101 ; 6102 return 0; 6103} 6104_ACEOF 6105rm -f conftest.$ac_objext conftest$ac_exeext 6106if { (eval echo "$as_me:6106: \"$ac_link\"") >&5 6107 (eval $ac_link) 2>&5 6108 ac_status=$? 6109 echo "$as_me:6109: \$? = $ac_status" >&5 6110 (exit $ac_status); } && 6111 { (eval echo "$as_me:6111: \"test -s conftest$ac_exeext\"") >&5 6112 (eval test -s conftest$ac_exeext) 2>&5 6113 ac_status=$? 6114 echo "$as_me:6114: \$? = $ac_status" >&5 6115 (exit $ac_status); }; then 6116 eval "$ac_ac_var=yes" 6117else 6118 echo "$as_me: failed program was:" >&5 6119cat conftest.$ac_ext >&5 6120eval "$ac_ac_var=no" 6121fi 6122rm -f conftest$ac_exeext conftest.$ac_ext 6123fi 6124echo "$as_me:6124: result: `eval echo '${'$ac_ac_var'}'`" >&5 6125echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 6126if test `eval echo '${'$ac_ac_var'}'` = yes; then 6127 cat >>confdefs.h <<EOF 6128#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 6129EOF 6130 6131fi 6132done 6133 6134fi 6135# gethostbyname 6136eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6137eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6138eval "LIB_gethostbyname=$ac_res" 6139 6140case "$ac_res" in 6141 yes) 6142 eval "ac_cv_func_gethostbyname=yes" 6143 eval "LIB_gethostbyname=" 6144 cat >>confdefs.h <<EOF 6145#define $ac_tr_func 1 6146EOF 6147 6148 echo "$as_me:6148: result: yes" >&5 6149echo "${ECHO_T}yes" >&6 6150 ;; 6151 no) 6152 eval "ac_cv_func_gethostbyname=no" 6153 eval "LIB_gethostbyname=" 6154 echo "$as_me:6154: result: no" >&5 6155echo "${ECHO_T}no" >&6 6156 ;; 6157 *) 6158 eval "ac_cv_func_gethostbyname=yes" 6159 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 6160 cat >>confdefs.h <<EOF 6161#define $ac_tr_func 1 6162EOF 6163 6164 cat >>confdefs.h <<EOF 6165#define $ac_tr_lib 1 6166EOF 6167 6168 echo "$as_me:6168: result: yes, in $ac_res" >&5 6169echo "${ECHO_T}yes, in $ac_res" >&6 6170 ;; 6171esac 6172 6173if test -n "$LIB_gethostbyname"; then 6174 LIBS="$LIB_gethostbyname $LIBS" 6175fi 6176 6177echo "$as_me:6177: checking for syslog" >&5 6178echo $ECHO_N "checking for syslog... $ECHO_C" >&6 6179if test "${ac_cv_funclib_syslog+set}" = set; then 6180 echo $ECHO_N "(cached) $ECHO_C" >&6 6181else 6182 6183if eval "test \"\$ac_cv_func_syslog\" != yes" ; then 6184 ac_save_LIBS="$LIBS" 6185 for ac_lib in "" syslog; do 6186 if test -n "$ac_lib"; then 6187 ac_lib="-l$ac_lib" 6188 else 6189 ac_lib="" 6190 fi 6191 LIBS=" $ac_lib $ac_save_LIBS" 6192 cat >conftest.$ac_ext <<_ACEOF 6193#line 6193 "configure" 6194#include "confdefs.h" 6195 6196int 6197main () 6198{ 6199syslog() 6200 ; 6201 return 0; 6202} 6203_ACEOF 6204rm -f conftest.$ac_objext conftest$ac_exeext 6205if { (eval echo "$as_me:6205: \"$ac_link\"") >&5 6206 (eval $ac_link) 2>&5 6207 ac_status=$? 6208 echo "$as_me:6208: \$? = $ac_status" >&5 6209 (exit $ac_status); } && 6210 { (eval echo "$as_me:6210: \"test -s conftest$ac_exeext\"") >&5 6211 (eval test -s conftest$ac_exeext) 2>&5 6212 ac_status=$? 6213 echo "$as_me:6213: \$? = $ac_status" >&5 6214 (exit $ac_status); }; then 6215 eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break 6216else 6217 echo "$as_me: failed program was:" >&5 6218cat conftest.$ac_ext >&5 6219fi 6220rm -f conftest$ac_exeext conftest.$ac_ext 6221 done 6222 eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}" 6223 LIBS="$ac_save_LIBS" 6224fi 6225 6226fi 6227 6228eval "ac_res=\$ac_cv_funclib_syslog" 6229 6230if false; then 6231 6232for ac_func in syslog 6233do 6234ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 6235echo "$as_me:6235: checking for $ac_func" >&5 6236echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6237if eval "test \"\${$ac_ac_var+set}\" = set"; then 6238 echo $ECHO_N "(cached) $ECHO_C" >&6 6239else 6240 cat >conftest.$ac_ext <<_ACEOF 6241#line 6241 "configure" 6242#include "confdefs.h" 6243/* System header to define __stub macros and hopefully few prototypes, 6244 which can conflict with char $ac_func (); below. */ 6245#include <assert.h> 6246/* Override any gcc2 internal prototype to avoid an error. */ 6247#ifdef __cplusplus 6248extern "C" 6249#endif 6250/* We use char because int might match the return type of a gcc2 6251 builtin and then its argument prototype would still apply. */ 6252char $ac_func (); 6253char (*f) (); 6254 6255int 6256main () 6257{ 6258/* The GNU C library defines this for functions which it implements 6259 to always fail with ENOSYS. Some functions are actually named 6260 something starting with __ and the normal name is an alias. */ 6261#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6262choke me 6263#else 6264f = $ac_func; 6265#endif 6266 6267 ; 6268 return 0; 6269} 6270_ACEOF 6271rm -f conftest.$ac_objext conftest$ac_exeext 6272if { (eval echo "$as_me:6272: \"$ac_link\"") >&5 6273 (eval $ac_link) 2>&5 6274 ac_status=$? 6275 echo "$as_me:6275: \$? = $ac_status" >&5 6276 (exit $ac_status); } && 6277 { (eval echo "$as_me:6277: \"test -s conftest$ac_exeext\"") >&5 6278 (eval test -s conftest$ac_exeext) 2>&5 6279 ac_status=$? 6280 echo "$as_me:6280: \$? = $ac_status" >&5 6281 (exit $ac_status); }; then 6282 eval "$ac_ac_var=yes" 6283else 6284 echo "$as_me: failed program was:" >&5 6285cat conftest.$ac_ext >&5 6286eval "$ac_ac_var=no" 6287fi 6288rm -f conftest$ac_exeext conftest.$ac_ext 6289fi 6290echo "$as_me:6290: result: `eval echo '${'$ac_ac_var'}'`" >&5 6291echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 6292if test `eval echo '${'$ac_ac_var'}'` = yes; then 6293 cat >>confdefs.h <<EOF 6294#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 6295EOF 6296 6297fi 6298done 6299 6300fi 6301# syslog 6302eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6303eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6304eval "LIB_syslog=$ac_res" 6305 6306case "$ac_res" in 6307 yes) 6308 eval "ac_cv_func_syslog=yes" 6309 eval "LIB_syslog=" 6310 cat >>confdefs.h <<EOF 6311#define $ac_tr_func 1 6312EOF 6313 6314 echo "$as_me:6314: result: yes" >&5 6315echo "${ECHO_T}yes" >&6 6316 ;; 6317 no) 6318 eval "ac_cv_func_syslog=no" 6319 eval "LIB_syslog=" 6320 echo "$as_me:6320: result: no" >&5 6321echo "${ECHO_T}no" >&6 6322 ;; 6323 *) 6324 eval "ac_cv_func_syslog=yes" 6325 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 6326 cat >>confdefs.h <<EOF 6327#define $ac_tr_func 1 6328EOF 6329 6330 cat >>confdefs.h <<EOF 6331#define $ac_tr_lib 1 6332EOF 6333 6334 echo "$as_me:6334: result: yes, in $ac_res" >&5 6335echo "${ECHO_T}yes, in $ac_res" >&6 6336 ;; 6337esac 6338 6339if test -n "$LIB_syslog"; then 6340 LIBS="$LIB_syslog $LIBS" 6341fi 6342 6343echo "$as_me:6343: checking for gethostbyname2" >&5 6344echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6 6345if test "${ac_cv_funclib_gethostbyname2+set}" = set; then 6346 echo $ECHO_N "(cached) $ECHO_C" >&6 6347else 6348 6349if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then 6350 ac_save_LIBS="$LIBS" 6351 for ac_lib in "" inet6 ip6; do 6352 if test -n "$ac_lib"; then 6353 ac_lib="-l$ac_lib" 6354 else 6355 ac_lib="" 6356 fi 6357 LIBS=" $ac_lib $ac_save_LIBS" 6358 cat >conftest.$ac_ext <<_ACEOF 6359#line 6359 "configure" 6360#include "confdefs.h" 6361 6362int 6363main () 6364{ 6365gethostbyname2() 6366 ; 6367 return 0; 6368} 6369_ACEOF 6370rm -f conftest.$ac_objext conftest$ac_exeext 6371if { (eval echo "$as_me:6371: \"$ac_link\"") >&5 6372 (eval $ac_link) 2>&5 6373 ac_status=$? 6374 echo "$as_me:6374: \$? = $ac_status" >&5 6375 (exit $ac_status); } && 6376 { (eval echo "$as_me:6376: \"test -s conftest$ac_exeext\"") >&5 6377 (eval test -s conftest$ac_exeext) 2>&5 6378 ac_status=$? 6379 echo "$as_me:6379: \$? = $ac_status" >&5 6380 (exit $ac_status); }; then 6381 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break 6382else 6383 echo "$as_me: failed program was:" >&5 6384cat conftest.$ac_ext >&5 6385fi 6386rm -f conftest$ac_exeext conftest.$ac_ext 6387 done 6388 eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}" 6389 LIBS="$ac_save_LIBS" 6390fi 6391 6392fi 6393 6394eval "ac_res=\$ac_cv_funclib_gethostbyname2" 6395 6396if false; then 6397 6398for ac_func in gethostbyname2 6399do 6400ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 6401echo "$as_me:6401: checking for $ac_func" >&5 6402echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6403if eval "test \"\${$ac_ac_var+set}\" = set"; then 6404 echo $ECHO_N "(cached) $ECHO_C" >&6 6405else 6406 cat >conftest.$ac_ext <<_ACEOF 6407#line 6407 "configure" 6408#include "confdefs.h" 6409/* System header to define __stub macros and hopefully few prototypes, 6410 which can conflict with char $ac_func (); below. */ 6411#include <assert.h> 6412/* Override any gcc2 internal prototype to avoid an error. */ 6413#ifdef __cplusplus 6414extern "C" 6415#endif 6416/* We use char because int might match the return type of a gcc2 6417 builtin and then its argument prototype would still apply. */ 6418char $ac_func (); 6419char (*f) (); 6420 6421int 6422main () 6423{ 6424/* The GNU C library defines this for functions which it implements 6425 to always fail with ENOSYS. Some functions are actually named 6426 something starting with __ and the normal name is an alias. */ 6427#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6428choke me 6429#else 6430f = $ac_func; 6431#endif 6432 6433 ; 6434 return 0; 6435} 6436_ACEOF 6437rm -f conftest.$ac_objext conftest$ac_exeext 6438if { (eval echo "$as_me:6438: \"$ac_link\"") >&5 6439 (eval $ac_link) 2>&5 6440 ac_status=$? 6441 echo "$as_me:6441: \$? = $ac_status" >&5 6442 (exit $ac_status); } && 6443 { (eval echo "$as_me:6443: \"test -s conftest$ac_exeext\"") >&5 6444 (eval test -s conftest$ac_exeext) 2>&5 6445 ac_status=$? 6446 echo "$as_me:6446: \$? = $ac_status" >&5 6447 (exit $ac_status); }; then 6448 eval "$ac_ac_var=yes" 6449else 6450 echo "$as_me: failed program was:" >&5 6451cat conftest.$ac_ext >&5 6452eval "$ac_ac_var=no" 6453fi 6454rm -f conftest$ac_exeext conftest.$ac_ext 6455fi 6456echo "$as_me:6456: result: `eval echo '${'$ac_ac_var'}'`" >&5 6457echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 6458if test `eval echo '${'$ac_ac_var'}'` = yes; then 6459 cat >>confdefs.h <<EOF 6460#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 6461EOF 6462 6463fi 6464done 6465 6466fi 6467# gethostbyname2 6468eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6469eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6470eval "LIB_gethostbyname2=$ac_res" 6471 6472case "$ac_res" in 6473 yes) 6474 eval "ac_cv_func_gethostbyname2=yes" 6475 eval "LIB_gethostbyname2=" 6476 cat >>confdefs.h <<EOF 6477#define $ac_tr_func 1 6478EOF 6479 6480 echo "$as_me:6480: result: yes" >&5 6481echo "${ECHO_T}yes" >&6 6482 ;; 6483 no) 6484 eval "ac_cv_func_gethostbyname2=no" 6485 eval "LIB_gethostbyname2=" 6486 echo "$as_me:6486: result: no" >&5 6487echo "${ECHO_T}no" >&6 6488 ;; 6489 *) 6490 eval "ac_cv_func_gethostbyname2=yes" 6491 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 6492 cat >>confdefs.h <<EOF 6493#define $ac_tr_func 1 6494EOF 6495 6496 cat >>confdefs.h <<EOF 6497#define $ac_tr_lib 1 6498EOF 6499 6500 echo "$as_me:6500: result: yes, in $ac_res" >&5 6501echo "${ECHO_T}yes, in $ac_res" >&6 6502 ;; 6503esac 6504 6505if test -n "$LIB_gethostbyname2"; then 6506 LIBS="$LIB_gethostbyname2 $LIBS" 6507fi 6508 6509echo "$as_me:6509: checking for res_search" >&5 6510echo $ECHO_N "checking for res_search... $ECHO_C" >&6 6511if test "${ac_cv_funclib_res_search+set}" = set; then 6512 echo $ECHO_N "(cached) $ECHO_C" >&6 6513else 6514 6515if eval "test \"\$ac_cv_func_res_search\" != yes" ; then 6516 ac_save_LIBS="$LIBS" 6517 for ac_lib in "" resolv; do 6518 if test -n "$ac_lib"; then 6519 ac_lib="-l$ac_lib" 6520 else 6521 ac_lib="" 6522 fi 6523 LIBS=" $ac_lib $ac_save_LIBS" 6524 cat >conftest.$ac_ext <<_ACEOF 6525#line 6525 "configure" 6526#include "confdefs.h" 6527 6528#include <stdio.h> 6529#ifdef HAVE_SYS_TYPES_H 6530#include <sys/types.h> 6531#endif 6532#ifdef HAVE_NETINET_IN_H 6533#include <netinet/in.h> 6534#endif 6535#ifdef HAVE_ARPA_NAMESER_H 6536#include <arpa/nameser.h> 6537#endif 6538#ifdef HAVE_RESOLV_H 6539#include <resolv.h> 6540#endif 6541 6542int 6543main () 6544{ 6545res_search(0,0,0,0,0) 6546 ; 6547 return 0; 6548} 6549_ACEOF 6550rm -f conftest.$ac_objext conftest$ac_exeext 6551if { (eval echo "$as_me:6551: \"$ac_link\"") >&5 6552 (eval $ac_link) 2>&5 6553 ac_status=$? 6554 echo "$as_me:6554: \$? = $ac_status" >&5 6555 (exit $ac_status); } && 6556 { (eval echo "$as_me:6556: \"test -s conftest$ac_exeext\"") >&5 6557 (eval test -s conftest$ac_exeext) 2>&5 6558 ac_status=$? 6559 echo "$as_me:6559: \$? = $ac_status" >&5 6560 (exit $ac_status); }; then 6561 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break 6562else 6563 echo "$as_me: failed program was:" >&5 6564cat conftest.$ac_ext >&5 6565fi 6566rm -f conftest$ac_exeext conftest.$ac_ext 6567 done 6568 eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}" 6569 LIBS="$ac_save_LIBS" 6570fi 6571 6572fi 6573 6574eval "ac_res=\$ac_cv_funclib_res_search" 6575 6576if false; then 6577 6578for ac_func in res_search 6579do 6580ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 6581echo "$as_me:6581: checking for $ac_func" >&5 6582echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6583if eval "test \"\${$ac_ac_var+set}\" = set"; then 6584 echo $ECHO_N "(cached) $ECHO_C" >&6 6585else 6586 cat >conftest.$ac_ext <<_ACEOF 6587#line 6587 "configure" 6588#include "confdefs.h" 6589/* System header to define __stub macros and hopefully few prototypes, 6590 which can conflict with char $ac_func (); below. */ 6591#include <assert.h> 6592/* Override any gcc2 internal prototype to avoid an error. */ 6593#ifdef __cplusplus 6594extern "C" 6595#endif 6596/* We use char because int might match the return type of a gcc2 6597 builtin and then its argument prototype would still apply. */ 6598char $ac_func (); 6599char (*f) (); 6600 6601int 6602main () 6603{ 6604/* The GNU C library defines this for functions which it implements 6605 to always fail with ENOSYS. Some functions are actually named 6606 something starting with __ and the normal name is an alias. */ 6607#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6608choke me 6609#else 6610f = $ac_func; 6611#endif 6612 6613 ; 6614 return 0; 6615} 6616_ACEOF 6617rm -f conftest.$ac_objext conftest$ac_exeext 6618if { (eval echo "$as_me:6618: \"$ac_link\"") >&5 6619 (eval $ac_link) 2>&5 6620 ac_status=$? 6621 echo "$as_me:6621: \$? = $ac_status" >&5 6622 (exit $ac_status); } && 6623 { (eval echo "$as_me:6623: \"test -s conftest$ac_exeext\"") >&5 6624 (eval test -s conftest$ac_exeext) 2>&5 6625 ac_status=$? 6626 echo "$as_me:6626: \$? = $ac_status" >&5 6627 (exit $ac_status); }; then 6628 eval "$ac_ac_var=yes" 6629else 6630 echo "$as_me: failed program was:" >&5 6631cat conftest.$ac_ext >&5 6632eval "$ac_ac_var=no" 6633fi 6634rm -f conftest$ac_exeext conftest.$ac_ext 6635fi 6636echo "$as_me:6636: result: `eval echo '${'$ac_ac_var'}'`" >&5 6637echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 6638if test `eval echo '${'$ac_ac_var'}'` = yes; then 6639 cat >>confdefs.h <<EOF 6640#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 6641EOF 6642 6643fi 6644done 6645 6646fi 6647# res_search 6648eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6649eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6650eval "LIB_res_search=$ac_res" 6651 6652case "$ac_res" in 6653 yes) 6654 eval "ac_cv_func_res_search=yes" 6655 eval "LIB_res_search=" 6656 cat >>confdefs.h <<EOF 6657#define $ac_tr_func 1 6658EOF 6659 6660 echo "$as_me:6660: result: yes" >&5 6661echo "${ECHO_T}yes" >&6 6662 ;; 6663 no) 6664 eval "ac_cv_func_res_search=no" 6665 eval "LIB_res_search=" 6666 echo "$as_me:6666: result: no" >&5 6667echo "${ECHO_T}no" >&6 6668 ;; 6669 *) 6670 eval "ac_cv_func_res_search=yes" 6671 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 6672 cat >>confdefs.h <<EOF 6673#define $ac_tr_func 1 6674EOF 6675 6676 cat >>confdefs.h <<EOF 6677#define $ac_tr_lib 1 6678EOF 6679 6680 echo "$as_me:6680: result: yes, in $ac_res" >&5 6681echo "${ECHO_T}yes, in $ac_res" >&6 6682 ;; 6683esac 6684 6685if test -n "$LIB_res_search"; then 6686 LIBS="$LIB_res_search $LIBS" 6687fi 6688 6689echo "$as_me:6689: checking for dn_expand" >&5 6690echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6 6691if test "${ac_cv_funclib_dn_expand+set}" = set; then 6692 echo $ECHO_N "(cached) $ECHO_C" >&6 6693else 6694 6695if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then 6696 ac_save_LIBS="$LIBS" 6697 for ac_lib in "" resolv; do 6698 if test -n "$ac_lib"; then 6699 ac_lib="-l$ac_lib" 6700 else 6701 ac_lib="" 6702 fi 6703 LIBS=" $ac_lib $ac_save_LIBS" 6704 cat >conftest.$ac_ext <<_ACEOF 6705#line 6705 "configure" 6706#include "confdefs.h" 6707 6708#include <stdio.h> 6709#ifdef HAVE_SYS_TYPES_H 6710#include <sys/types.h> 6711#endif 6712#ifdef HAVE_NETINET_IN_H 6713#include <netinet/in.h> 6714#endif 6715#ifdef HAVE_ARPA_NAMESER_H 6716#include <arpa/nameser.h> 6717#endif 6718#ifdef HAVE_RESOLV_H 6719#include <resolv.h> 6720#endif 6721 6722int 6723main () 6724{ 6725dn_expand(0,0,0,0,0) 6726 ; 6727 return 0; 6728} 6729_ACEOF 6730rm -f conftest.$ac_objext conftest$ac_exeext 6731if { (eval echo "$as_me:6731: \"$ac_link\"") >&5 6732 (eval $ac_link) 2>&5 6733 ac_status=$? 6734 echo "$as_me:6734: \$? = $ac_status" >&5 6735 (exit $ac_status); } && 6736 { (eval echo "$as_me:6736: \"test -s conftest$ac_exeext\"") >&5 6737 (eval test -s conftest$ac_exeext) 2>&5 6738 ac_status=$? 6739 echo "$as_me:6739: \$? = $ac_status" >&5 6740 (exit $ac_status); }; then 6741 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break 6742else 6743 echo "$as_me: failed program was:" >&5 6744cat conftest.$ac_ext >&5 6745fi 6746rm -f conftest$ac_exeext conftest.$ac_ext 6747 done 6748 eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}" 6749 LIBS="$ac_save_LIBS" 6750fi 6751 6752fi 6753 6754eval "ac_res=\$ac_cv_funclib_dn_expand" 6755 6756if false; then 6757 6758for ac_func in dn_expand 6759do 6760ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 6761echo "$as_me:6761: checking for $ac_func" >&5 6762echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6763if eval "test \"\${$ac_ac_var+set}\" = set"; then 6764 echo $ECHO_N "(cached) $ECHO_C" >&6 6765else 6766 cat >conftest.$ac_ext <<_ACEOF 6767#line 6767 "configure" 6768#include "confdefs.h" 6769/* System header to define __stub macros and hopefully few prototypes, 6770 which can conflict with char $ac_func (); below. */ 6771#include <assert.h> 6772/* Override any gcc2 internal prototype to avoid an error. */ 6773#ifdef __cplusplus 6774extern "C" 6775#endif 6776/* We use char because int might match the return type of a gcc2 6777 builtin and then its argument prototype would still apply. */ 6778char $ac_func (); 6779char (*f) (); 6780 6781int 6782main () 6783{ 6784/* The GNU C library defines this for functions which it implements 6785 to always fail with ENOSYS. Some functions are actually named 6786 something starting with __ and the normal name is an alias. */ 6787#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6788choke me 6789#else 6790f = $ac_func; 6791#endif 6792 6793 ; 6794 return 0; 6795} 6796_ACEOF 6797rm -f conftest.$ac_objext conftest$ac_exeext 6798if { (eval echo "$as_me:6798: \"$ac_link\"") >&5 6799 (eval $ac_link) 2>&5 6800 ac_status=$? 6801 echo "$as_me:6801: \$? = $ac_status" >&5 6802 (exit $ac_status); } && 6803 { (eval echo "$as_me:6803: \"test -s conftest$ac_exeext\"") >&5 6804 (eval test -s conftest$ac_exeext) 2>&5 6805 ac_status=$? 6806 echo "$as_me:6806: \$? = $ac_status" >&5 6807 (exit $ac_status); }; then 6808 eval "$ac_ac_var=yes" 6809else 6810 echo "$as_me: failed program was:" >&5 6811cat conftest.$ac_ext >&5 6812eval "$ac_ac_var=no" 6813fi 6814rm -f conftest$ac_exeext conftest.$ac_ext 6815fi 6816echo "$as_me:6816: result: `eval echo '${'$ac_ac_var'}'`" >&5 6817echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 6818if test `eval echo '${'$ac_ac_var'}'` = yes; then 6819 cat >>confdefs.h <<EOF 6820#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 6821EOF 6822 6823fi 6824done 6825 6826fi 6827# dn_expand 6828eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6829eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 6830eval "LIB_dn_expand=$ac_res" 6831 6832case "$ac_res" in 6833 yes) 6834 eval "ac_cv_func_dn_expand=yes" 6835 eval "LIB_dn_expand=" 6836 cat >>confdefs.h <<EOF 6837#define $ac_tr_func 1 6838EOF 6839 6840 echo "$as_me:6840: result: yes" >&5 6841echo "${ECHO_T}yes" >&6 6842 ;; 6843 no) 6844 eval "ac_cv_func_dn_expand=no" 6845 eval "LIB_dn_expand=" 6846 echo "$as_me:6846: result: no" >&5 6847echo "${ECHO_T}no" >&6 6848 ;; 6849 *) 6850 eval "ac_cv_func_dn_expand=yes" 6851 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 6852 cat >>confdefs.h <<EOF 6853#define $ac_tr_func 1 6854EOF 6855 6856 cat >>confdefs.h <<EOF 6857#define $ac_tr_lib 1 6858EOF 6859 6860 echo "$as_me:6860: result: yes, in $ac_res" >&5 6861echo "${ECHO_T}yes, in $ac_res" >&6 6862 ;; 6863esac 6864 6865if test -n "$LIB_dn_expand"; then 6866 LIBS="$LIB_dn_expand $LIBS" 6867fi 6868 6869echo "$as_me:6869: checking for working snprintf" >&5 6870echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6 6871if test "${ac_cv_func_snprintf_working+set}" = set; then 6872 echo $ECHO_N "(cached) $ECHO_C" >&6 6873else 6874 ac_cv_func_snprintf_working=yes 6875if test "$cross_compiling" = yes; then 6876 : 6877else 6878 cat >conftest.$ac_ext <<_ACEOF 6879#line 6879 "configure" 6880#include "confdefs.h" 6881 6882#include <stdio.h> 6883#include <string.h> 6884int main() 6885{ 6886 char foo[3]; 6887 snprintf(foo, 2, "12"); 6888 return strcmp(foo, "1"); 6889} 6890_ACEOF 6891rm -f conftest$ac_exeext 6892if { (eval echo "$as_me:6892: \"$ac_link\"") >&5 6893 (eval $ac_link) 2>&5 6894 ac_status=$? 6895 echo "$as_me:6895: \$? = $ac_status" >&5 6896 (exit $ac_status); } && { (eval echo "$as_me:6896: \"./conftest$ac_exeext\"") >&5 6897 (eval ./conftest$ac_exeext) 2>&5 6898 ac_status=$? 6899 echo "$as_me:6899: \$? = $ac_status" >&5 6900 (exit $ac_status); }; then 6901 : 6902else 6903 echo "$as_me: program exited with status $ac_status" >&5 6904echo "$as_me: failed program was:" >&5 6905cat conftest.$ac_ext >&5 6906ac_cv_func_snprintf_working=no 6907fi 6908rm -f conftest$ac_exeext conftest.$ac_ext 6909fi 6910fi 6911echo "$as_me:6911: result: $ac_cv_func_snprintf_working" >&5 6912echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6 6913 6914if test "$ac_cv_func_snprintf_working" = yes; then 6915 6916cat >>confdefs.h <<EOF 6917#define HAVE_SNPRINTF 1 6918EOF 6919 6920fi 6921if test "$ac_cv_func_snprintf_working" = yes; then 6922 6923if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then 6924echo "$as_me:6924: checking if snprintf needs a prototype" >&5 6925echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6 6926if test "${ac_cv_func_snprintf_noproto+set}" = set; then 6927 echo $ECHO_N "(cached) $ECHO_C" >&6 6928else 6929 cat >conftest.$ac_ext <<_ACEOF 6930#line 6930 "configure" 6931#include "confdefs.h" 6932#include <stdio.h> 6933int 6934main () 6935{ 6936struct foo { int foo; } xx; 6937extern int snprintf (struct foo*); 6938snprintf(&xx); 6939 6940 ; 6941 return 0; 6942} 6943_ACEOF 6944rm -f conftest.$ac_objext 6945if { (eval echo "$as_me:6945: \"$ac_compile\"") >&5 6946 (eval $ac_compile) 2>&5 6947 ac_status=$? 6948 echo "$as_me:6948: \$? = $ac_status" >&5 6949 (exit $ac_status); } && 6950 { (eval echo "$as_me:6950: \"test -s conftest.$ac_objext\"") >&5 6951 (eval test -s conftest.$ac_objext) 2>&5 6952 ac_status=$? 6953 echo "$as_me:6953: \$? = $ac_status" >&5 6954 (exit $ac_status); }; then 6955 eval "ac_cv_func_snprintf_noproto=yes" 6956else 6957 echo "$as_me: failed program was:" >&5 6958cat conftest.$ac_ext >&5 6959eval "ac_cv_func_snprintf_noproto=no" 6960fi 6961rm -f conftest.$ac_objext conftest.$ac_ext 6962fi 6963echo "$as_me:6963: result: $ac_cv_func_snprintf_noproto" >&5 6964echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6 6965 6966if test "$ac_cv_func_snprintf_noproto" = yes; then 6967 6968cat >>confdefs.h <<\EOF 6969#define NEED_SNPRINTF_PROTO 1 6970EOF 6971 6972fi 6973 6974fi 6975 6976fi 6977 6978echo "$as_me:6978: checking for working vsnprintf" >&5 6979echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6 6980if test "${ac_cv_func_vsnprintf_working+set}" = set; then 6981 echo $ECHO_N "(cached) $ECHO_C" >&6 6982else 6983 ac_cv_func_vsnprintf_working=yes 6984if test "$cross_compiling" = yes; then 6985 : 6986else 6987 cat >conftest.$ac_ext <<_ACEOF 6988#line 6988 "configure" 6989#include "confdefs.h" 6990 6991#include <stdio.h> 6992#include <string.h> 6993#include <stdarg.h> 6994 6995int foo(int num, ...) 6996{ 6997 char bar[3]; 6998 va_list arg; 6999 va_start(arg, num); 7000 vsnprintf(bar, 2, "%s", arg); 7001 va_end(arg); 7002 return strcmp(bar, "1"); 7003} 7004 7005int main() 7006{ 7007 return foo(0, "12"); 7008} 7009_ACEOF 7010rm -f conftest$ac_exeext 7011if { (eval echo "$as_me:7011: \"$ac_link\"") >&5 7012 (eval $ac_link) 2>&5 7013 ac_status=$? 7014 echo "$as_me:7014: \$? = $ac_status" >&5 7015 (exit $ac_status); } && { (eval echo "$as_me:7015: \"./conftest$ac_exeext\"") >&5 7016 (eval ./conftest$ac_exeext) 2>&5 7017 ac_status=$? 7018 echo "$as_me:7018: \$? = $ac_status" >&5 7019 (exit $ac_status); }; then 7020 : 7021else 7022 echo "$as_me: program exited with status $ac_status" >&5 7023echo "$as_me: failed program was:" >&5 7024cat conftest.$ac_ext >&5 7025ac_cv_func_vsnprintf_working=no 7026fi 7027rm -f conftest$ac_exeext conftest.$ac_ext 7028fi 7029fi 7030echo "$as_me:7030: result: $ac_cv_func_vsnprintf_working" >&5 7031echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6 7032 7033if test "$ac_cv_func_vsnprintf_working" = yes; then 7034 7035cat >>confdefs.h <<EOF 7036#define HAVE_VSNPRINTF 1 7037EOF 7038 7039fi 7040if test "$ac_cv_func_vsnprintf_working" = yes; then 7041 7042if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then 7043echo "$as_me:7043: checking if vsnprintf needs a prototype" >&5 7044echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6 7045if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then 7046 echo $ECHO_N "(cached) $ECHO_C" >&6 7047else 7048 cat >conftest.$ac_ext <<_ACEOF 7049#line 7049 "configure" 7050#include "confdefs.h" 7051#include <stdio.h> 7052int 7053main () 7054{ 7055struct foo { int foo; } xx; 7056extern int vsnprintf (struct foo*); 7057vsnprintf(&xx); 7058 7059 ; 7060 return 0; 7061} 7062_ACEOF 7063rm -f conftest.$ac_objext 7064if { (eval echo "$as_me:7064: \"$ac_compile\"") >&5 7065 (eval $ac_compile) 2>&5 7066 ac_status=$? 7067 echo "$as_me:7067: \$? = $ac_status" >&5 7068 (exit $ac_status); } && 7069 { (eval echo "$as_me:7069: \"test -s conftest.$ac_objext\"") >&5 7070 (eval test -s conftest.$ac_objext) 2>&5 7071 ac_status=$? 7072 echo "$as_me:7072: \$? = $ac_status" >&5 7073 (exit $ac_status); }; then 7074 eval "ac_cv_func_vsnprintf_noproto=yes" 7075else 7076 echo "$as_me: failed program was:" >&5 7077cat conftest.$ac_ext >&5 7078eval "ac_cv_func_vsnprintf_noproto=no" 7079fi 7080rm -f conftest.$ac_objext conftest.$ac_ext 7081fi 7082echo "$as_me:7082: result: $ac_cv_func_vsnprintf_noproto" >&5 7083echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6 7084 7085if test "$ac_cv_func_vsnprintf_noproto" = yes; then 7086 7087cat >>confdefs.h <<\EOF 7088#define NEED_VSNPRINTF_PROTO 1 7089EOF 7090 7091fi 7092 7093fi 7094 7095fi 7096 7097echo "$as_me:7097: checking for working glob" >&5 7098echo $ECHO_N "checking for working glob... $ECHO_C" >&6 7099if test "${ac_cv_func_glob_working+set}" = set; then 7100 echo $ECHO_N "(cached) $ECHO_C" >&6 7101else 7102 ac_cv_func_glob_working=yes 7103cat >conftest.$ac_ext <<_ACEOF 7104#line 7104 "configure" 7105#include "confdefs.h" 7106 7107#include <stdio.h> 7108#include <glob.h> 7109int 7110main () 7111{ 7112 7113glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE, NULL, NULL); 7114 7115 ; 7116 return 0; 7117} 7118_ACEOF 7119rm -f conftest.$ac_objext conftest$ac_exeext 7120if { (eval echo "$as_me:7120: \"$ac_link\"") >&5 7121 (eval $ac_link) 2>&5 7122 ac_status=$? 7123 echo "$as_me:7123: \$? = $ac_status" >&5 7124 (exit $ac_status); } && 7125 { (eval echo "$as_me:7125: \"test -s conftest$ac_exeext\"") >&5 7126 (eval test -s conftest$ac_exeext) 2>&5 7127 ac_status=$? 7128 echo "$as_me:7128: \$? = $ac_status" >&5 7129 (exit $ac_status); }; then 7130 : 7131else 7132 echo "$as_me: failed program was:" >&5 7133cat conftest.$ac_ext >&5 7134ac_cv_func_glob_working=no 7135fi 7136rm -f conftest$ac_exeext conftest.$ac_ext 7137fi 7138echo "$as_me:7138: result: $ac_cv_func_glob_working" >&5 7139echo "${ECHO_T}$ac_cv_func_glob_working" >&6 7140 7141if test "$ac_cv_func_glob_working" = yes; then 7142 7143cat >>confdefs.h <<\EOF 7144#define HAVE_GLOB 1 7145EOF 7146 7147fi 7148if test "$ac_cv_func_glob_working" = yes; then 7149 7150if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then 7151echo "$as_me:7151: checking if glob needs a prototype" >&5 7152echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6 7153if test "${ac_cv_func_glob_noproto+set}" = set; then 7154 echo $ECHO_N "(cached) $ECHO_C" >&6 7155else 7156 cat >conftest.$ac_ext <<_ACEOF 7157#line 7157 "configure" 7158#include "confdefs.h" 7159#include <stdio.h> 7160#include <glob.h> 7161int 7162main () 7163{ 7164struct foo { int foo; } xx; 7165extern int glob (struct foo*); 7166glob(&xx); 7167 7168 ; 7169 return 0; 7170} 7171_ACEOF 7172rm -f conftest.$ac_objext 7173if { (eval echo "$as_me:7173: \"$ac_compile\"") >&5 7174 (eval $ac_compile) 2>&5 7175 ac_status=$? 7176 echo "$as_me:7176: \$? = $ac_status" >&5 7177 (exit $ac_status); } && 7178 { (eval echo "$as_me:7178: \"test -s conftest.$ac_objext\"") >&5 7179 (eval test -s conftest.$ac_objext) 2>&5 7180 ac_status=$? 7181 echo "$as_me:7181: \$? = $ac_status" >&5 7182 (exit $ac_status); }; then 7183 eval "ac_cv_func_glob_noproto=yes" 7184else 7185 echo "$as_me: failed program was:" >&5 7186cat conftest.$ac_ext >&5 7187eval "ac_cv_func_glob_noproto=no" 7188fi 7189rm -f conftest.$ac_objext conftest.$ac_ext 7190fi 7191echo "$as_me:7191: result: $ac_cv_func_glob_noproto" >&5 7192echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6 7193 7194if test "$ac_cv_func_glob_noproto" = yes; then 7195 7196cat >>confdefs.h <<\EOF 7197#define NEED_GLOB_PROTO 1 7198EOF 7199 7200fi 7201 7202fi 7203 7204fi 7205 7206if test "$ac_cv_func_glob_working" != yes; then 7207 LIBOBJS="$LIBOBJS glob.o" 7208fi 7209 7210if test "$ac_cv_func_glob_working" = yes; then 7211 have_glob_h_TRUE= 7212 have_glob_h_FALSE='#' 7213else 7214 have_glob_h_TRUE='#' 7215 have_glob_h_FALSE= 7216fi 7217 7218for ac_func in \ 7219 asnprintf \ 7220 asprintf \ 7221 cgetent \ 7222 getconfattr \ 7223 getrlimit \ 7224 getspnam \ 7225 strsvis \ 7226 strunvis \ 7227 strvis \ 7228 strvisx \ 7229 svis \ 7230 sysconf \ 7231 sysctl \ 7232 uname \ 7233 unvis \ 7234 vasnprintf \ 7235 vasprintf \ 7236 vis \ 7237 7238do 7239ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 7240echo "$as_me:7240: checking for $ac_func" >&5 7241echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7242if eval "test \"\${$ac_ac_var+set}\" = set"; then 7243 echo $ECHO_N "(cached) $ECHO_C" >&6 7244else 7245 cat >conftest.$ac_ext <<_ACEOF 7246#line 7246 "configure" 7247#include "confdefs.h" 7248/* System header to define __stub macros and hopefully few prototypes, 7249 which can conflict with char $ac_func (); below. */ 7250#include <assert.h> 7251/* Override any gcc2 internal prototype to avoid an error. */ 7252#ifdef __cplusplus 7253extern "C" 7254#endif 7255/* We use char because int might match the return type of a gcc2 7256 builtin and then its argument prototype would still apply. */ 7257char $ac_func (); 7258char (*f) (); 7259 7260int 7261main () 7262{ 7263/* The GNU C library defines this for functions which it implements 7264 to always fail with ENOSYS. Some functions are actually named 7265 something starting with __ and the normal name is an alias. */ 7266#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7267choke me 7268#else 7269f = $ac_func; 7270#endif 7271 7272 ; 7273 return 0; 7274} 7275_ACEOF 7276rm -f conftest.$ac_objext conftest$ac_exeext 7277if { (eval echo "$as_me:7277: \"$ac_link\"") >&5 7278 (eval $ac_link) 2>&5 7279 ac_status=$? 7280 echo "$as_me:7280: \$? = $ac_status" >&5 7281 (exit $ac_status); } && 7282 { (eval echo "$as_me:7282: \"test -s conftest$ac_exeext\"") >&5 7283 (eval test -s conftest$ac_exeext) 2>&5 7284 ac_status=$? 7285 echo "$as_me:7285: \$? = $ac_status" >&5 7286 (exit $ac_status); }; then 7287 eval "$ac_ac_var=yes" 7288else 7289 echo "$as_me: failed program was:" >&5 7290cat conftest.$ac_ext >&5 7291eval "$ac_ac_var=no" 7292fi 7293rm -f conftest$ac_exeext conftest.$ac_ext 7294fi 7295echo "$as_me:7295: result: `eval echo '${'$ac_ac_var'}'`" >&5 7296echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 7297if test `eval echo '${'$ac_ac_var'}'` = yes; then 7298 cat >>confdefs.h <<EOF 7299#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 7300EOF 7301 7302fi 7303done 7304 7305if test "$ac_cv_func_cgetent" = no; then 7306 LIBOBJS="$LIBOBJS getcap.o" 7307fi 7308 7309echo "$as_me:7309: checking for getsockopt" >&5 7310echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6 7311if test "${ac_cv_funclib_getsockopt+set}" = set; then 7312 echo $ECHO_N "(cached) $ECHO_C" >&6 7313else 7314 7315if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then 7316 ac_save_LIBS="$LIBS" 7317 for ac_lib in "" ; do 7318 if test -n "$ac_lib"; then 7319 ac_lib="-l$ac_lib" 7320 else 7321 ac_lib="" 7322 fi 7323 LIBS=" $ac_lib $ac_save_LIBS" 7324 cat >conftest.$ac_ext <<_ACEOF 7325#line 7325 "configure" 7326#include "confdefs.h" 7327#ifdef HAVE_SYS_TYPES_H 7328#include <sys/types.h> 7329#endif 7330#ifdef HAVE_SYS_SOCKET_H 7331#include <sys/socket.h> 7332#endif 7333int 7334main () 7335{ 7336getsockopt(0,0,0,0,0) 7337 ; 7338 return 0; 7339} 7340_ACEOF 7341rm -f conftest.$ac_objext conftest$ac_exeext 7342if { (eval echo "$as_me:7342: \"$ac_link\"") >&5 7343 (eval $ac_link) 2>&5 7344 ac_status=$? 7345 echo "$as_me:7345: \$? = $ac_status" >&5 7346 (exit $ac_status); } && 7347 { (eval echo "$as_me:7347: \"test -s conftest$ac_exeext\"") >&5 7348 (eval test -s conftest$ac_exeext) 2>&5 7349 ac_status=$? 7350 echo "$as_me:7350: \$? = $ac_status" >&5 7351 (exit $ac_status); }; then 7352 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break 7353else 7354 echo "$as_me: failed program was:" >&5 7355cat conftest.$ac_ext >&5 7356fi 7357rm -f conftest$ac_exeext conftest.$ac_ext 7358 done 7359 eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}" 7360 LIBS="$ac_save_LIBS" 7361fi 7362 7363fi 7364 7365eval "ac_res=\$ac_cv_funclib_getsockopt" 7366 7367if false; then 7368 7369for ac_func in getsockopt 7370do 7371ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 7372echo "$as_me:7372: checking for $ac_func" >&5 7373echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7374if eval "test \"\${$ac_ac_var+set}\" = set"; then 7375 echo $ECHO_N "(cached) $ECHO_C" >&6 7376else 7377 cat >conftest.$ac_ext <<_ACEOF 7378#line 7378 "configure" 7379#include "confdefs.h" 7380/* System header to define __stub macros and hopefully few prototypes, 7381 which can conflict with char $ac_func (); below. */ 7382#include <assert.h> 7383/* Override any gcc2 internal prototype to avoid an error. */ 7384#ifdef __cplusplus 7385extern "C" 7386#endif 7387/* We use char because int might match the return type of a gcc2 7388 builtin and then its argument prototype would still apply. */ 7389char $ac_func (); 7390char (*f) (); 7391 7392int 7393main () 7394{ 7395/* The GNU C library defines this for functions which it implements 7396 to always fail with ENOSYS. Some functions are actually named 7397 something starting with __ and the normal name is an alias. */ 7398#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7399choke me 7400#else 7401f = $ac_func; 7402#endif 7403 7404 ; 7405 return 0; 7406} 7407_ACEOF 7408rm -f conftest.$ac_objext conftest$ac_exeext 7409if { (eval echo "$as_me:7409: \"$ac_link\"") >&5 7410 (eval $ac_link) 2>&5 7411 ac_status=$? 7412 echo "$as_me:7412: \$? = $ac_status" >&5 7413 (exit $ac_status); } && 7414 { (eval echo "$as_me:7414: \"test -s conftest$ac_exeext\"") >&5 7415 (eval test -s conftest$ac_exeext) 2>&5 7416 ac_status=$? 7417 echo "$as_me:7417: \$? = $ac_status" >&5 7418 (exit $ac_status); }; then 7419 eval "$ac_ac_var=yes" 7420else 7421 echo "$as_me: failed program was:" >&5 7422cat conftest.$ac_ext >&5 7423eval "$ac_ac_var=no" 7424fi 7425rm -f conftest$ac_exeext conftest.$ac_ext 7426fi 7427echo "$as_me:7427: result: `eval echo '${'$ac_ac_var'}'`" >&5 7428echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 7429if test `eval echo '${'$ac_ac_var'}'` = yes; then 7430 cat >>confdefs.h <<EOF 7431#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 7432EOF 7433 7434fi 7435done 7436 7437fi 7438# getsockopt 7439eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 7440eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 7441eval "LIB_getsockopt=$ac_res" 7442 7443case "$ac_res" in 7444 yes) 7445 eval "ac_cv_func_getsockopt=yes" 7446 eval "LIB_getsockopt=" 7447 cat >>confdefs.h <<EOF 7448#define $ac_tr_func 1 7449EOF 7450 7451 echo "$as_me:7451: result: yes" >&5 7452echo "${ECHO_T}yes" >&6 7453 ;; 7454 no) 7455 eval "ac_cv_func_getsockopt=no" 7456 eval "LIB_getsockopt=" 7457 echo "$as_me:7457: result: no" >&5 7458echo "${ECHO_T}no" >&6 7459 ;; 7460 *) 7461 eval "ac_cv_func_getsockopt=yes" 7462 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 7463 cat >>confdefs.h <<EOF 7464#define $ac_tr_func 1 7465EOF 7466 7467 cat >>confdefs.h <<EOF 7468#define $ac_tr_lib 1 7469EOF 7470 7471 echo "$as_me:7471: result: yes, in $ac_res" >&5 7472echo "${ECHO_T}yes, in $ac_res" >&6 7473 ;; 7474esac 7475 7476echo "$as_me:7476: checking for setsockopt" >&5 7477echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 7478if test "${ac_cv_funclib_setsockopt+set}" = set; then 7479 echo $ECHO_N "(cached) $ECHO_C" >&6 7480else 7481 7482if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then 7483 ac_save_LIBS="$LIBS" 7484 for ac_lib in "" ; do 7485 if test -n "$ac_lib"; then 7486 ac_lib="-l$ac_lib" 7487 else 7488 ac_lib="" 7489 fi 7490 LIBS=" $ac_lib $ac_save_LIBS" 7491 cat >conftest.$ac_ext <<_ACEOF 7492#line 7492 "configure" 7493#include "confdefs.h" 7494#ifdef HAVE_SYS_TYPES_H 7495#include <sys/types.h> 7496#endif 7497#ifdef HAVE_SYS_SOCKET_H 7498#include <sys/socket.h> 7499#endif 7500int 7501main () 7502{ 7503setsockopt(0,0,0,0,0) 7504 ; 7505 return 0; 7506} 7507_ACEOF 7508rm -f conftest.$ac_objext conftest$ac_exeext 7509if { (eval echo "$as_me:7509: \"$ac_link\"") >&5 7510 (eval $ac_link) 2>&5 7511 ac_status=$? 7512 echo "$as_me:7512: \$? = $ac_status" >&5 7513 (exit $ac_status); } && 7514 { (eval echo "$as_me:7514: \"test -s conftest$ac_exeext\"") >&5 7515 (eval test -s conftest$ac_exeext) 2>&5 7516 ac_status=$? 7517 echo "$as_me:7517: \$? = $ac_status" >&5 7518 (exit $ac_status); }; then 7519 eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break 7520else 7521 echo "$as_me: failed program was:" >&5 7522cat conftest.$ac_ext >&5 7523fi 7524rm -f conftest$ac_exeext conftest.$ac_ext 7525 done 7526 eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}" 7527 LIBS="$ac_save_LIBS" 7528fi 7529 7530fi 7531 7532eval "ac_res=\$ac_cv_funclib_setsockopt" 7533 7534if false; then 7535 7536for ac_func in setsockopt 7537do 7538ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 7539echo "$as_me:7539: checking for $ac_func" >&5 7540echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7541if eval "test \"\${$ac_ac_var+set}\" = set"; then 7542 echo $ECHO_N "(cached) $ECHO_C" >&6 7543else 7544 cat >conftest.$ac_ext <<_ACEOF 7545#line 7545 "configure" 7546#include "confdefs.h" 7547/* System header to define __stub macros and hopefully few prototypes, 7548 which can conflict with char $ac_func (); below. */ 7549#include <assert.h> 7550/* Override any gcc2 internal prototype to avoid an error. */ 7551#ifdef __cplusplus 7552extern "C" 7553#endif 7554/* We use char because int might match the return type of a gcc2 7555 builtin and then its argument prototype would still apply. */ 7556char $ac_func (); 7557char (*f) (); 7558 7559int 7560main () 7561{ 7562/* The GNU C library defines this for functions which it implements 7563 to always fail with ENOSYS. Some functions are actually named 7564 something starting with __ and the normal name is an alias. */ 7565#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7566choke me 7567#else 7568f = $ac_func; 7569#endif 7570 7571 ; 7572 return 0; 7573} 7574_ACEOF 7575rm -f conftest.$ac_objext conftest$ac_exeext 7576if { (eval echo "$as_me:7576: \"$ac_link\"") >&5 7577 (eval $ac_link) 2>&5 7578 ac_status=$? 7579 echo "$as_me:7579: \$? = $ac_status" >&5 7580 (exit $ac_status); } && 7581 { (eval echo "$as_me:7581: \"test -s conftest$ac_exeext\"") >&5 7582 (eval test -s conftest$ac_exeext) 2>&5 7583 ac_status=$? 7584 echo "$as_me:7584: \$? = $ac_status" >&5 7585 (exit $ac_status); }; then 7586 eval "$ac_ac_var=yes" 7587else 7588 echo "$as_me: failed program was:" >&5 7589cat conftest.$ac_ext >&5 7590eval "$ac_ac_var=no" 7591fi 7592rm -f conftest$ac_exeext conftest.$ac_ext 7593fi 7594echo "$as_me:7594: result: `eval echo '${'$ac_ac_var'}'`" >&5 7595echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 7596if test `eval echo '${'$ac_ac_var'}'` = yes; then 7597 cat >>confdefs.h <<EOF 7598#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 7599EOF 7600 7601fi 7602done 7603 7604fi 7605# setsockopt 7606eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 7607eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 7608eval "LIB_setsockopt=$ac_res" 7609 7610case "$ac_res" in 7611 yes) 7612 eval "ac_cv_func_setsockopt=yes" 7613 eval "LIB_setsockopt=" 7614 cat >>confdefs.h <<EOF 7615#define $ac_tr_func 1 7616EOF 7617 7618 echo "$as_me:7618: result: yes" >&5 7619echo "${ECHO_T}yes" >&6 7620 ;; 7621 no) 7622 eval "ac_cv_func_setsockopt=no" 7623 eval "LIB_setsockopt=" 7624 echo "$as_me:7624: result: no" >&5 7625echo "${ECHO_T}no" >&6 7626 ;; 7627 *) 7628 eval "ac_cv_func_setsockopt=yes" 7629 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 7630 cat >>confdefs.h <<EOF 7631#define $ac_tr_func 1 7632EOF 7633 7634 cat >>confdefs.h <<EOF 7635#define $ac_tr_lib 1 7636EOF 7637 7638 echo "$as_me:7638: result: yes, in $ac_res" >&5 7639echo "${ECHO_T}yes, in $ac_res" >&6 7640 ;; 7641esac 7642 7643echo "$as_me:7643: checking for hstrerror" >&5 7644echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 7645if test "${ac_cv_funclib_hstrerror+set}" = set; then 7646 echo $ECHO_N "(cached) $ECHO_C" >&6 7647else 7648 7649if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then 7650 ac_save_LIBS="$LIBS" 7651 for ac_lib in "" resolv; do 7652 if test -n "$ac_lib"; then 7653 ac_lib="-l$ac_lib" 7654 else 7655 ac_lib="" 7656 fi 7657 LIBS=" $ac_lib $ac_save_LIBS" 7658 cat >conftest.$ac_ext <<_ACEOF 7659#line 7659 "configure" 7660#include "confdefs.h" 7661#ifdef HAVE_NETDB_H 7662#include <netdb.h> 7663#endif 7664int 7665main () 7666{ 7667hstrerror(17) 7668 ; 7669 return 0; 7670} 7671_ACEOF 7672rm -f conftest.$ac_objext conftest$ac_exeext 7673if { (eval echo "$as_me:7673: \"$ac_link\"") >&5 7674 (eval $ac_link) 2>&5 7675 ac_status=$? 7676 echo "$as_me:7676: \$? = $ac_status" >&5 7677 (exit $ac_status); } && 7678 { (eval echo "$as_me:7678: \"test -s conftest$ac_exeext\"") >&5 7679 (eval test -s conftest$ac_exeext) 2>&5 7680 ac_status=$? 7681 echo "$as_me:7681: \$? = $ac_status" >&5 7682 (exit $ac_status); }; then 7683 eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break 7684else 7685 echo "$as_me: failed program was:" >&5 7686cat conftest.$ac_ext >&5 7687fi 7688rm -f conftest$ac_exeext conftest.$ac_ext 7689 done 7690 eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}" 7691 LIBS="$ac_save_LIBS" 7692fi 7693 7694fi 7695 7696eval "ac_res=\$ac_cv_funclib_hstrerror" 7697 7698if false; then 7699 7700for ac_func in hstrerror 7701do 7702ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 7703echo "$as_me:7703: checking for $ac_func" >&5 7704echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7705if eval "test \"\${$ac_ac_var+set}\" = set"; then 7706 echo $ECHO_N "(cached) $ECHO_C" >&6 7707else 7708 cat >conftest.$ac_ext <<_ACEOF 7709#line 7709 "configure" 7710#include "confdefs.h" 7711/* System header to define __stub macros and hopefully few prototypes, 7712 which can conflict with char $ac_func (); below. */ 7713#include <assert.h> 7714/* Override any gcc2 internal prototype to avoid an error. */ 7715#ifdef __cplusplus 7716extern "C" 7717#endif 7718/* We use char because int might match the return type of a gcc2 7719 builtin and then its argument prototype would still apply. */ 7720char $ac_func (); 7721char (*f) (); 7722 7723int 7724main () 7725{ 7726/* The GNU C library defines this for functions which it implements 7727 to always fail with ENOSYS. Some functions are actually named 7728 something starting with __ and the normal name is an alias. */ 7729#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7730choke me 7731#else 7732f = $ac_func; 7733#endif 7734 7735 ; 7736 return 0; 7737} 7738_ACEOF 7739rm -f conftest.$ac_objext conftest$ac_exeext 7740if { (eval echo "$as_me:7740: \"$ac_link\"") >&5 7741 (eval $ac_link) 2>&5 7742 ac_status=$? 7743 echo "$as_me:7743: \$? = $ac_status" >&5 7744 (exit $ac_status); } && 7745 { (eval echo "$as_me:7745: \"test -s conftest$ac_exeext\"") >&5 7746 (eval test -s conftest$ac_exeext) 2>&5 7747 ac_status=$? 7748 echo "$as_me:7748: \$? = $ac_status" >&5 7749 (exit $ac_status); }; then 7750 eval "$ac_ac_var=yes" 7751else 7752 echo "$as_me: failed program was:" >&5 7753cat conftest.$ac_ext >&5 7754eval "$ac_ac_var=no" 7755fi 7756rm -f conftest$ac_exeext conftest.$ac_ext 7757fi 7758echo "$as_me:7758: result: `eval echo '${'$ac_ac_var'}'`" >&5 7759echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 7760if test `eval echo '${'$ac_ac_var'}'` = yes; then 7761 cat >>confdefs.h <<EOF 7762#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 7763EOF 7764 7765fi 7766done 7767 7768fi 7769# hstrerror 7770eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 7771eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 7772eval "LIB_hstrerror=$ac_res" 7773 7774case "$ac_res" in 7775 yes) 7776 eval "ac_cv_func_hstrerror=yes" 7777 eval "LIB_hstrerror=" 7778 cat >>confdefs.h <<EOF 7779#define $ac_tr_func 1 7780EOF 7781 7782 echo "$as_me:7782: result: yes" >&5 7783echo "${ECHO_T}yes" >&6 7784 ;; 7785 no) 7786 eval "ac_cv_func_hstrerror=no" 7787 eval "LIB_hstrerror=" 7788 echo "$as_me:7788: result: no" >&5 7789echo "${ECHO_T}no" >&6 7790 ;; 7791 *) 7792 eval "ac_cv_func_hstrerror=yes" 7793 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 7794 cat >>confdefs.h <<EOF 7795#define $ac_tr_func 1 7796EOF 7797 7798 cat >>confdefs.h <<EOF 7799#define $ac_tr_lib 1 7800EOF 7801 7802 echo "$as_me:7802: result: yes, in $ac_res" >&5 7803echo "${ECHO_T}yes, in $ac_res" >&6 7804 ;; 7805esac 7806 7807if test -n "$LIB_hstrerror"; then 7808 LIBS="$LIB_hstrerror $LIBS" 7809fi 7810 7811if eval "test \"$ac_cv_func_hstrerror\" != yes"; then 7812LIBOBJS="$LIBOBJS hstrerror.o" 7813fi 7814 7815if test "$ac_cv_func_hstrerror" = yes; then 7816 7817if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then 7818echo "$as_me:7818: checking if hstrerror needs a prototype" >&5 7819echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6 7820if test "${ac_cv_func_hstrerror_noproto+set}" = set; then 7821 echo $ECHO_N "(cached) $ECHO_C" >&6 7822else 7823 cat >conftest.$ac_ext <<_ACEOF 7824#line 7824 "configure" 7825#include "confdefs.h" 7826 7827#ifdef HAVE_NETDB_H 7828#include <netdb.h> 7829#endif 7830int 7831main () 7832{ 7833struct foo { int foo; } xx; 7834extern int hstrerror (struct foo*); 7835hstrerror(&xx); 7836 7837 ; 7838 return 0; 7839} 7840_ACEOF 7841rm -f conftest.$ac_objext 7842if { (eval echo "$as_me:7842: \"$ac_compile\"") >&5 7843 (eval $ac_compile) 2>&5 7844 ac_status=$? 7845 echo "$as_me:7845: \$? = $ac_status" >&5 7846 (exit $ac_status); } && 7847 { (eval echo "$as_me:7847: \"test -s conftest.$ac_objext\"") >&5 7848 (eval test -s conftest.$ac_objext) 2>&5 7849 ac_status=$? 7850 echo "$as_me:7850: \$? = $ac_status" >&5 7851 (exit $ac_status); }; then 7852 eval "ac_cv_func_hstrerror_noproto=yes" 7853else 7854 echo "$as_me: failed program was:" >&5 7855cat conftest.$ac_ext >&5 7856eval "ac_cv_func_hstrerror_noproto=no" 7857fi 7858rm -f conftest.$ac_objext conftest.$ac_ext 7859fi 7860echo "$as_me:7860: result: $ac_cv_func_hstrerror_noproto" >&5 7861echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6 7862 7863if test "$ac_cv_func_hstrerror_noproto" = yes; then 7864 7865cat >>confdefs.h <<\EOF 7866#define NEED_HSTRERROR_PROTO 1 7867EOF 7868 7869fi 7870 7871fi 7872 7873fi 7874 7875if test "$ac_cv_func_asprintf" = yes; then 7876 7877if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then 7878echo "$as_me:7878: checking if asprintf needs a prototype" >&5 7879echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6 7880if test "${ac_cv_func_asprintf_noproto+set}" = set; then 7881 echo $ECHO_N "(cached) $ECHO_C" >&6 7882else 7883 cat >conftest.$ac_ext <<_ACEOF 7884#line 7884 "configure" 7885#include "confdefs.h" 7886 7887#include <stdio.h> 7888#include <string.h> 7889int 7890main () 7891{ 7892struct foo { int foo; } xx; 7893extern int asprintf (struct foo*); 7894asprintf(&xx); 7895 7896 ; 7897 return 0; 7898} 7899_ACEOF 7900rm -f conftest.$ac_objext 7901if { (eval echo "$as_me:7901: \"$ac_compile\"") >&5 7902 (eval $ac_compile) 2>&5 7903 ac_status=$? 7904 echo "$as_me:7904: \$? = $ac_status" >&5 7905 (exit $ac_status); } && 7906 { (eval echo "$as_me:7906: \"test -s conftest.$ac_objext\"") >&5 7907 (eval test -s conftest.$ac_objext) 2>&5 7908 ac_status=$? 7909 echo "$as_me:7909: \$? = $ac_status" >&5 7910 (exit $ac_status); }; then 7911 eval "ac_cv_func_asprintf_noproto=yes" 7912else 7913 echo "$as_me: failed program was:" >&5 7914cat conftest.$ac_ext >&5 7915eval "ac_cv_func_asprintf_noproto=no" 7916fi 7917rm -f conftest.$ac_objext conftest.$ac_ext 7918fi 7919echo "$as_me:7919: result: $ac_cv_func_asprintf_noproto" >&5 7920echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6 7921 7922if test "$ac_cv_func_asprintf_noproto" = yes; then 7923 7924cat >>confdefs.h <<\EOF 7925#define NEED_ASPRINTF_PROTO 1 7926EOF 7927 7928fi 7929 7930fi 7931fi 7932if test "$ac_cv_func_vasprintf" = yes; then 7933 7934if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then 7935echo "$as_me:7935: checking if vasprintf needs a prototype" >&5 7936echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6 7937if test "${ac_cv_func_vasprintf_noproto+set}" = set; then 7938 echo $ECHO_N "(cached) $ECHO_C" >&6 7939else 7940 cat >conftest.$ac_ext <<_ACEOF 7941#line 7941 "configure" 7942#include "confdefs.h" 7943 7944#include <stdio.h> 7945#include <string.h> 7946int 7947main () 7948{ 7949struct foo { int foo; } xx; 7950extern int vasprintf (struct foo*); 7951vasprintf(&xx); 7952 7953 ; 7954 return 0; 7955} 7956_ACEOF 7957rm -f conftest.$ac_objext 7958if { (eval echo "$as_me:7958: \"$ac_compile\"") >&5 7959 (eval $ac_compile) 2>&5 7960 ac_status=$? 7961 echo "$as_me:7961: \$? = $ac_status" >&5 7962 (exit $ac_status); } && 7963 { (eval echo "$as_me:7963: \"test -s conftest.$ac_objext\"") >&5 7964 (eval test -s conftest.$ac_objext) 2>&5 7965 ac_status=$? 7966 echo "$as_me:7966: \$? = $ac_status" >&5 7967 (exit $ac_status); }; then 7968 eval "ac_cv_func_vasprintf_noproto=yes" 7969else 7970 echo "$as_me: failed program was:" >&5 7971cat conftest.$ac_ext >&5 7972eval "ac_cv_func_vasprintf_noproto=no" 7973fi 7974rm -f conftest.$ac_objext conftest.$ac_ext 7975fi 7976echo "$as_me:7976: result: $ac_cv_func_vasprintf_noproto" >&5 7977echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6 7978 7979if test "$ac_cv_func_vasprintf_noproto" = yes; then 7980 7981cat >>confdefs.h <<\EOF 7982#define NEED_VASPRINTF_PROTO 1 7983EOF 7984 7985fi 7986 7987fi 7988fi 7989if test "$ac_cv_func_asnprintf" = yes; then 7990 7991if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then 7992echo "$as_me:7992: checking if asnprintf needs a prototype" >&5 7993echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6 7994if test "${ac_cv_func_asnprintf_noproto+set}" = set; then 7995 echo $ECHO_N "(cached) $ECHO_C" >&6 7996else 7997 cat >conftest.$ac_ext <<_ACEOF 7998#line 7998 "configure" 7999#include "confdefs.h" 8000 8001#include <stdio.h> 8002#include <string.h> 8003int 8004main () 8005{ 8006struct foo { int foo; } xx; 8007extern int asnprintf (struct foo*); 8008asnprintf(&xx); 8009 8010 ; 8011 return 0; 8012} 8013_ACEOF 8014rm -f conftest.$ac_objext 8015if { (eval echo "$as_me:8015: \"$ac_compile\"") >&5 8016 (eval $ac_compile) 2>&5 8017 ac_status=$? 8018 echo "$as_me:8018: \$? = $ac_status" >&5 8019 (exit $ac_status); } && 8020 { (eval echo "$as_me:8020: \"test -s conftest.$ac_objext\"") >&5 8021 (eval test -s conftest.$ac_objext) 2>&5 8022 ac_status=$? 8023 echo "$as_me:8023: \$? = $ac_status" >&5 8024 (exit $ac_status); }; then 8025 eval "ac_cv_func_asnprintf_noproto=yes" 8026else 8027 echo "$as_me: failed program was:" >&5 8028cat conftest.$ac_ext >&5 8029eval "ac_cv_func_asnprintf_noproto=no" 8030fi 8031rm -f conftest.$ac_objext conftest.$ac_ext 8032fi 8033echo "$as_me:8033: result: $ac_cv_func_asnprintf_noproto" >&5 8034echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6 8035 8036if test "$ac_cv_func_asnprintf_noproto" = yes; then 8037 8038cat >>confdefs.h <<\EOF 8039#define NEED_ASNPRINTF_PROTO 1 8040EOF 8041 8042fi 8043 8044fi 8045fi 8046if test "$ac_cv_func_vasnprintf" = yes; then 8047 8048if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then 8049echo "$as_me:8049: checking if vasnprintf needs a prototype" >&5 8050echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6 8051if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then 8052 echo $ECHO_N "(cached) $ECHO_C" >&6 8053else 8054 cat >conftest.$ac_ext <<_ACEOF 8055#line 8055 "configure" 8056#include "confdefs.h" 8057 8058#include <stdio.h> 8059#include <string.h> 8060int 8061main () 8062{ 8063struct foo { int foo; } xx; 8064extern int vasnprintf (struct foo*); 8065vasnprintf(&xx); 8066 8067 ; 8068 return 0; 8069} 8070_ACEOF 8071rm -f conftest.$ac_objext 8072if { (eval echo "$as_me:8072: \"$ac_compile\"") >&5 8073 (eval $ac_compile) 2>&5 8074 ac_status=$? 8075 echo "$as_me:8075: \$? = $ac_status" >&5 8076 (exit $ac_status); } && 8077 { (eval echo "$as_me:8077: \"test -s conftest.$ac_objext\"") >&5 8078 (eval test -s conftest.$ac_objext) 2>&5 8079 ac_status=$? 8080 echo "$as_me:8080: \$? = $ac_status" >&5 8081 (exit $ac_status); }; then 8082 eval "ac_cv_func_vasnprintf_noproto=yes" 8083else 8084 echo "$as_me: failed program was:" >&5 8085cat conftest.$ac_ext >&5 8086eval "ac_cv_func_vasnprintf_noproto=no" 8087fi 8088rm -f conftest.$ac_objext conftest.$ac_ext 8089fi 8090echo "$as_me:8090: result: $ac_cv_func_vasnprintf_noproto" >&5 8091echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6 8092 8093if test "$ac_cv_func_vasnprintf_noproto" = yes; then 8094 8095cat >>confdefs.h <<\EOF 8096#define NEED_VASNPRINTF_PROTO 1 8097EOF 8098 8099fi 8100 8101fi 8102fi 8103 8104echo "$as_me:8104: checking for pidfile" >&5 8105echo $ECHO_N "checking for pidfile... $ECHO_C" >&6 8106if test "${ac_cv_funclib_pidfile+set}" = set; then 8107 echo $ECHO_N "(cached) $ECHO_C" >&6 8108else 8109 8110if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then 8111 ac_save_LIBS="$LIBS" 8112 for ac_lib in "" util; do 8113 if test -n "$ac_lib"; then 8114 ac_lib="-l$ac_lib" 8115 else 8116 ac_lib="" 8117 fi 8118 LIBS=" $ac_lib $ac_save_LIBS" 8119 cat >conftest.$ac_ext <<_ACEOF 8120#line 8120 "configure" 8121#include "confdefs.h" 8122#ifdef HAVE_UTIL_H 8123#include <util.h> 8124#endif 8125int 8126main () 8127{ 8128pidfile(0) 8129 ; 8130 return 0; 8131} 8132_ACEOF 8133rm -f conftest.$ac_objext conftest$ac_exeext 8134if { (eval echo "$as_me:8134: \"$ac_link\"") >&5 8135 (eval $ac_link) 2>&5 8136 ac_status=$? 8137 echo "$as_me:8137: \$? = $ac_status" >&5 8138 (exit $ac_status); } && 8139 { (eval echo "$as_me:8139: \"test -s conftest$ac_exeext\"") >&5 8140 (eval test -s conftest$ac_exeext) 2>&5 8141 ac_status=$? 8142 echo "$as_me:8142: \$? = $ac_status" >&5 8143 (exit $ac_status); }; then 8144 eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break 8145else 8146 echo "$as_me: failed program was:" >&5 8147cat conftest.$ac_ext >&5 8148fi 8149rm -f conftest$ac_exeext conftest.$ac_ext 8150 done 8151 eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}" 8152 LIBS="$ac_save_LIBS" 8153fi 8154 8155fi 8156 8157eval "ac_res=\$ac_cv_funclib_pidfile" 8158 8159if false; then 8160 8161for ac_func in pidfile 8162do 8163ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 8164echo "$as_me:8164: checking for $ac_func" >&5 8165echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8166if eval "test \"\${$ac_ac_var+set}\" = set"; then 8167 echo $ECHO_N "(cached) $ECHO_C" >&6 8168else 8169 cat >conftest.$ac_ext <<_ACEOF 8170#line 8170 "configure" 8171#include "confdefs.h" 8172/* System header to define __stub macros and hopefully few prototypes, 8173 which can conflict with char $ac_func (); below. */ 8174#include <assert.h> 8175/* Override any gcc2 internal prototype to avoid an error. */ 8176#ifdef __cplusplus 8177extern "C" 8178#endif 8179/* We use char because int might match the return type of a gcc2 8180 builtin and then its argument prototype would still apply. */ 8181char $ac_func (); 8182char (*f) (); 8183 8184int 8185main () 8186{ 8187/* The GNU C library defines this for functions which it implements 8188 to always fail with ENOSYS. Some functions are actually named 8189 something starting with __ and the normal name is an alias. */ 8190#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8191choke me 8192#else 8193f = $ac_func; 8194#endif 8195 8196 ; 8197 return 0; 8198} 8199_ACEOF 8200rm -f conftest.$ac_objext conftest$ac_exeext 8201if { (eval echo "$as_me:8201: \"$ac_link\"") >&5 8202 (eval $ac_link) 2>&5 8203 ac_status=$? 8204 echo "$as_me:8204: \$? = $ac_status" >&5 8205 (exit $ac_status); } && 8206 { (eval echo "$as_me:8206: \"test -s conftest$ac_exeext\"") >&5 8207 (eval test -s conftest$ac_exeext) 2>&5 8208 ac_status=$? 8209 echo "$as_me:8209: \$? = $ac_status" >&5 8210 (exit $ac_status); }; then 8211 eval "$ac_ac_var=yes" 8212else 8213 echo "$as_me: failed program was:" >&5 8214cat conftest.$ac_ext >&5 8215eval "$ac_ac_var=no" 8216fi 8217rm -f conftest$ac_exeext conftest.$ac_ext 8218fi 8219echo "$as_me:8219: result: `eval echo '${'$ac_ac_var'}'`" >&5 8220echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 8221if test `eval echo '${'$ac_ac_var'}'` = yes; then 8222 cat >>confdefs.h <<EOF 8223#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 8224EOF 8225 8226fi 8227done 8228 8229fi 8230# pidfile 8231eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 8232eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 8233eval "LIB_pidfile=$ac_res" 8234 8235case "$ac_res" in 8236 yes) 8237 eval "ac_cv_func_pidfile=yes" 8238 eval "LIB_pidfile=" 8239 cat >>confdefs.h <<EOF 8240#define $ac_tr_func 1 8241EOF 8242 8243 echo "$as_me:8243: result: yes" >&5 8244echo "${ECHO_T}yes" >&6 8245 ;; 8246 no) 8247 eval "ac_cv_func_pidfile=no" 8248 eval "LIB_pidfile=" 8249 echo "$as_me:8249: result: no" >&5 8250echo "${ECHO_T}no" >&6 8251 ;; 8252 *) 8253 eval "ac_cv_func_pidfile=yes" 8254 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 8255 cat >>confdefs.h <<EOF 8256#define $ac_tr_func 1 8257EOF 8258 8259 cat >>confdefs.h <<EOF 8260#define $ac_tr_lib 1 8261EOF 8262 8263 echo "$as_me:8263: result: yes, in $ac_res" >&5 8264echo "${ECHO_T}yes, in $ac_res" >&6 8265 ;; 8266esac 8267 8268for ac_func in \ 8269 chown \ 8270 copyhostent \ 8271 daemon \ 8272 err \ 8273 errx \ 8274 fchown \ 8275 flock \ 8276 fnmatch \ 8277 freeaddrinfo \ 8278 freehostent \ 8279 gai_strerror \ 8280 getaddrinfo \ 8281 getcwd \ 8282 getdtablesize \ 8283 getegid \ 8284 geteuid \ 8285 getgid \ 8286 gethostname \ 8287 getifaddrs \ 8288 getipnodebyaddr \ 8289 getipnodebyname \ 8290 getnameinfo \ 8291 getopt \ 8292 gettimeofday \ 8293 getuid \ 8294 getusershell \ 8295 initgroups \ 8296 innetgr \ 8297 iruserok \ 8298 lstat \ 8299 memmove \ 8300 mkstemp \ 8301 putenv \ 8302 rcmd \ 8303 readv \ 8304 recvmsg \ 8305 sendmsg \ 8306 setegid \ 8307 setenv \ 8308 seteuid \ 8309 strcasecmp \ 8310 strdup \ 8311 strerror \ 8312 strftime \ 8313 strlcat \ 8314 strlcpy \ 8315 strlwr \ 8316 strncasecmp \ 8317 strndup \ 8318 strnlen \ 8319 strptime \ 8320 strsep \ 8321 strsep_copy \ 8322 strtok_r \ 8323 strupr \ 8324 swab \ 8325 unsetenv \ 8326 verr \ 8327 verrx \ 8328 vsyslog \ 8329 vwarn \ 8330 vwarnx \ 8331 warn \ 8332 warnx \ 8333 writev \ 8334 8335do 8336ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 8337echo "$as_me:8337: checking for $ac_func" >&5 8338echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8339if eval "test \"\${$ac_ac_var+set}\" = set"; then 8340 echo $ECHO_N "(cached) $ECHO_C" >&6 8341else 8342 cat >conftest.$ac_ext <<_ACEOF 8343#line 8343 "configure" 8344#include "confdefs.h" 8345/* System header to define __stub macros and hopefully few prototypes, 8346 which can conflict with char $ac_func (); below. */ 8347#include <assert.h> 8348/* Override any gcc2 internal prototype to avoid an error. */ 8349#ifdef __cplusplus 8350extern "C" 8351#endif 8352/* We use char because int might match the return type of a gcc2 8353 builtin and then its argument prototype would still apply. */ 8354char $ac_func (); 8355char (*f) (); 8356 8357int 8358main () 8359{ 8360/* The GNU C library defines this for functions which it implements 8361 to always fail with ENOSYS. Some functions are actually named 8362 something starting with __ and the normal name is an alias. */ 8363#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8364choke me 8365#else 8366f = $ac_func; 8367#endif 8368 8369 ; 8370 return 0; 8371} 8372_ACEOF 8373rm -f conftest.$ac_objext conftest$ac_exeext 8374if { (eval echo "$as_me:8374: \"$ac_link\"") >&5 8375 (eval $ac_link) 2>&5 8376 ac_status=$? 8377 echo "$as_me:8377: \$? = $ac_status" >&5 8378 (exit $ac_status); } && 8379 { (eval echo "$as_me:8379: \"test -s conftest$ac_exeext\"") >&5 8380 (eval test -s conftest$ac_exeext) 2>&5 8381 ac_status=$? 8382 echo "$as_me:8382: \$? = $ac_status" >&5 8383 (exit $ac_status); }; then 8384 eval "$ac_ac_var=yes" 8385else 8386 echo "$as_me: failed program was:" >&5 8387cat conftest.$ac_ext >&5 8388eval "$ac_ac_var=no" 8389fi 8390rm -f conftest$ac_exeext conftest.$ac_ext 8391fi 8392echo "$as_me:8392: result: `eval echo '${'$ac_ac_var'}'`" >&5 8393echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 8394if test `eval echo '${'$ac_ac_var'}'` = yes; then 8395 8396ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 8397cat >>confdefs.h <<EOF 8398#define $ac_tr_func 1 8399EOF 8400 8401else 8402 LIBOBJS="$LIBOBJS ${ac_func}.o" 8403fi 8404 8405if false; then 8406 8407for ac_func in \ 8408 chown \ 8409 copyhostent \ 8410 daemon \ 8411 err \ 8412 errx \ 8413 fchown \ 8414 flock \ 8415 fnmatch \ 8416 freeaddrinfo \ 8417 freehostent \ 8418 gai_strerror \ 8419 getaddrinfo \ 8420 getcwd \ 8421 getdtablesize \ 8422 getegid \ 8423 geteuid \ 8424 getgid \ 8425 gethostname \ 8426 getifaddrs \ 8427 getipnodebyaddr \ 8428 getipnodebyname \ 8429 getnameinfo \ 8430 getopt \ 8431 gettimeofday \ 8432 getuid \ 8433 getusershell \ 8434 initgroups \ 8435 innetgr \ 8436 iruserok \ 8437 lstat \ 8438 memmove \ 8439 mkstemp \ 8440 putenv \ 8441 rcmd \ 8442 readv \ 8443 recvmsg \ 8444 sendmsg \ 8445 setegid \ 8446 setenv \ 8447 seteuid \ 8448 strcasecmp \ 8449 strdup \ 8450 strerror \ 8451 strftime \ 8452 strlcat \ 8453 strlcpy \ 8454 strlwr \ 8455 strncasecmp \ 8456 strndup \ 8457 strnlen \ 8458 strptime \ 8459 strsep \ 8460 strsep_copy \ 8461 strtok_r \ 8462 strupr \ 8463 swab \ 8464 unsetenv \ 8465 verr \ 8466 verrx \ 8467 vsyslog \ 8468 vwarn \ 8469 vwarnx \ 8470 warn \ 8471 warnx \ 8472 writev \ 8473 8474do 8475ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 8476echo "$as_me:8476: checking for $ac_func" >&5 8477echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8478if eval "test \"\${$ac_ac_var+set}\" = set"; then 8479 echo $ECHO_N "(cached) $ECHO_C" >&6 8480else 8481 cat >conftest.$ac_ext <<_ACEOF 8482#line 8482 "configure" 8483#include "confdefs.h" 8484/* System header to define __stub macros and hopefully few prototypes, 8485 which can conflict with char $ac_func (); below. */ 8486#include <assert.h> 8487/* Override any gcc2 internal prototype to avoid an error. */ 8488#ifdef __cplusplus 8489extern "C" 8490#endif 8491/* We use char because int might match the return type of a gcc2 8492 builtin and then its argument prototype would still apply. */ 8493char $ac_func (); 8494char (*f) (); 8495 8496int 8497main () 8498{ 8499/* The GNU C library defines this for functions which it implements 8500 to always fail with ENOSYS. Some functions are actually named 8501 something starting with __ and the normal name is an alias. */ 8502#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8503choke me 8504#else 8505f = $ac_func; 8506#endif 8507 8508 ; 8509 return 0; 8510} 8511_ACEOF 8512rm -f conftest.$ac_objext conftest$ac_exeext 8513if { (eval echo "$as_me:8513: \"$ac_link\"") >&5 8514 (eval $ac_link) 2>&5 8515 ac_status=$? 8516 echo "$as_me:8516: \$? = $ac_status" >&5 8517 (exit $ac_status); } && 8518 { (eval echo "$as_me:8518: \"test -s conftest$ac_exeext\"") >&5 8519 (eval test -s conftest$ac_exeext) 2>&5 8520 ac_status=$? 8521 echo "$as_me:8521: \$? = $ac_status" >&5 8522 (exit $ac_status); }; then 8523 eval "$ac_ac_var=yes" 8524else 8525 echo "$as_me: failed program was:" >&5 8526cat conftest.$ac_ext >&5 8527eval "$ac_ac_var=no" 8528fi 8529rm -f conftest$ac_exeext conftest.$ac_ext 8530fi 8531echo "$as_me:8531: result: `eval echo '${'$ac_ac_var'}'`" >&5 8532echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 8533if test `eval echo '${'$ac_ac_var'}'` = yes; then 8534 cat >>confdefs.h <<EOF 8535#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 8536EOF 8537 8538fi 8539done 8540 8541fi 8542done 8543 8544for ac_func in inet_aton 8545do 8546echo "$as_me:8546: checking for $ac_func" >&5 8547echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8548if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 8549 echo $ECHO_N "(cached) $ECHO_C" >&6 8550else 8551 cat >conftest.$ac_ext <<_ACEOF 8552#line 8552 "configure" 8553#include "confdefs.h" 8554#ifdef HAVE_SYS_TYPES_H 8555#include <sys/types.h> 8556#endif 8557#ifdef HAVE_SYS_SOCKET_H 8558#include <sys/socket.h> 8559#endif 8560#ifdef HAVE_NETINET_IN_H 8561#include <netinet/in.h> 8562#endif 8563#ifdef HAVE_ARPA_INET_H 8564#include <arpa/inet.h> 8565#endif 8566int 8567main () 8568{ 8569 8570/* The GNU C library defines this for functions which it implements 8571 to always fail with ENOSYS. Some functions are actually named 8572 something starting with __ and the normal name is an alias. */ 8573#if defined (__stub_inet_aton) || defined (__stub___inet_aton) 8574choke me 8575#else 8576$ac_func(0,0) 8577#endif 8578 8579 ; 8580 return 0; 8581} 8582_ACEOF 8583rm -f conftest.$ac_objext conftest$ac_exeext 8584if { (eval echo "$as_me:8584: \"$ac_link\"") >&5 8585 (eval $ac_link) 2>&5 8586 ac_status=$? 8587 echo "$as_me:8587: \$? = $ac_status" >&5 8588 (exit $ac_status); } && 8589 { (eval echo "$as_me:8589: \"test -s conftest$ac_exeext\"") >&5 8590 (eval test -s conftest$ac_exeext) 2>&5 8591 ac_status=$? 8592 echo "$as_me:8592: \$? = $ac_status" >&5 8593 (exit $ac_status); }; then 8594 eval "ac_cv_func_$ac_func=yes" 8595else 8596 echo "$as_me: failed program was:" >&5 8597cat conftest.$ac_ext >&5 8598eval "ac_cv_func_$ac_func=no" 8599fi 8600rm -f conftest$ac_exeext conftest.$ac_ext 8601fi 8602 8603if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then 8604 ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 8605 cat >>confdefs.h <<EOF 8606#define $ac_tr_func 1 8607EOF 8608 8609 echo "$as_me:8609: result: yes" >&5 8610echo "${ECHO_T}yes" >&6 8611else 8612 echo "$as_me:8612: result: no" >&5 8613echo "${ECHO_T}no" >&6 8614 LIBOBJS="$LIBOBJS ${ac_func}.o" 8615fi 8616done 8617if false; then 8618 8619for ac_func in inet_aton 8620do 8621ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 8622echo "$as_me:8622: checking for $ac_func" >&5 8623echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8624if eval "test \"\${$ac_ac_var+set}\" = set"; then 8625 echo $ECHO_N "(cached) $ECHO_C" >&6 8626else 8627 cat >conftest.$ac_ext <<_ACEOF 8628#line 8628 "configure" 8629#include "confdefs.h" 8630/* System header to define __stub macros and hopefully few prototypes, 8631 which can conflict with char $ac_func (); below. */ 8632#include <assert.h> 8633/* Override any gcc2 internal prototype to avoid an error. */ 8634#ifdef __cplusplus 8635extern "C" 8636#endif 8637/* We use char because int might match the return type of a gcc2 8638 builtin and then its argument prototype would still apply. */ 8639char $ac_func (); 8640char (*f) (); 8641 8642int 8643main () 8644{ 8645/* The GNU C library defines this for functions which it implements 8646 to always fail with ENOSYS. Some functions are actually named 8647 something starting with __ and the normal name is an alias. */ 8648#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8649choke me 8650#else 8651f = $ac_func; 8652#endif 8653 8654 ; 8655 return 0; 8656} 8657_ACEOF 8658rm -f conftest.$ac_objext conftest$ac_exeext 8659if { (eval echo "$as_me:8659: \"$ac_link\"") >&5 8660 (eval $ac_link) 2>&5 8661 ac_status=$? 8662 echo "$as_me:8662: \$? = $ac_status" >&5 8663 (exit $ac_status); } && 8664 { (eval echo "$as_me:8664: \"test -s conftest$ac_exeext\"") >&5 8665 (eval test -s conftest$ac_exeext) 2>&5 8666 ac_status=$? 8667 echo "$as_me:8667: \$? = $ac_status" >&5 8668 (exit $ac_status); }; then 8669 eval "$ac_ac_var=yes" 8670else 8671 echo "$as_me: failed program was:" >&5 8672cat conftest.$ac_ext >&5 8673eval "$ac_ac_var=no" 8674fi 8675rm -f conftest$ac_exeext conftest.$ac_ext 8676fi 8677echo "$as_me:8677: result: `eval echo '${'$ac_ac_var'}'`" >&5 8678echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 8679if test `eval echo '${'$ac_ac_var'}'` = yes; then 8680 cat >>confdefs.h <<EOF 8681#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 8682EOF 8683 8684fi 8685done 8686 8687fi 8688 8689for ac_func in inet_ntop 8690do 8691echo "$as_me:8691: checking for $ac_func" >&5 8692echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8693if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 8694 echo $ECHO_N "(cached) $ECHO_C" >&6 8695else 8696 cat >conftest.$ac_ext <<_ACEOF 8697#line 8697 "configure" 8698#include "confdefs.h" 8699#ifdef HAVE_SYS_TYPES_H 8700#include <sys/types.h> 8701#endif 8702#ifdef HAVE_SYS_SOCKET_H 8703#include <sys/socket.h> 8704#endif 8705#ifdef HAVE_NETINET_IN_H 8706#include <netinet/in.h> 8707#endif 8708#ifdef HAVE_ARPA_INET_H 8709#include <arpa/inet.h> 8710#endif 8711int 8712main () 8713{ 8714 8715/* The GNU C library defines this for functions which it implements 8716 to always fail with ENOSYS. Some functions are actually named 8717 something starting with __ and the normal name is an alias. */ 8718#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop) 8719choke me 8720#else 8721$ac_func(0, 0, 0, 0) 8722#endif 8723 8724 ; 8725 return 0; 8726} 8727_ACEOF 8728rm -f conftest.$ac_objext conftest$ac_exeext 8729if { (eval echo "$as_me:8729: \"$ac_link\"") >&5 8730 (eval $ac_link) 2>&5 8731 ac_status=$? 8732 echo "$as_me:8732: \$? = $ac_status" >&5 8733 (exit $ac_status); } && 8734 { (eval echo "$as_me:8734: \"test -s conftest$ac_exeext\"") >&5 8735 (eval test -s conftest$ac_exeext) 2>&5 8736 ac_status=$? 8737 echo "$as_me:8737: \$? = $ac_status" >&5 8738 (exit $ac_status); }; then 8739 eval "ac_cv_func_$ac_func=yes" 8740else 8741 echo "$as_me: failed program was:" >&5 8742cat conftest.$ac_ext >&5 8743eval "ac_cv_func_$ac_func=no" 8744fi 8745rm -f conftest$ac_exeext conftest.$ac_ext 8746fi 8747 8748if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then 8749 ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 8750 cat >>confdefs.h <<EOF 8751#define $ac_tr_func 1 8752EOF 8753 8754 echo "$as_me:8754: result: yes" >&5 8755echo "${ECHO_T}yes" >&6 8756else 8757 echo "$as_me:8757: result: no" >&5 8758echo "${ECHO_T}no" >&6 8759 LIBOBJS="$LIBOBJS ${ac_func}.o" 8760fi 8761done 8762if false; then 8763 8764for ac_func in inet_ntop 8765do 8766ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 8767echo "$as_me:8767: checking for $ac_func" >&5 8768echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8769if eval "test \"\${$ac_ac_var+set}\" = set"; then 8770 echo $ECHO_N "(cached) $ECHO_C" >&6 8771else 8772 cat >conftest.$ac_ext <<_ACEOF 8773#line 8773 "configure" 8774#include "confdefs.h" 8775/* System header to define __stub macros and hopefully few prototypes, 8776 which can conflict with char $ac_func (); below. */ 8777#include <assert.h> 8778/* Override any gcc2 internal prototype to avoid an error. */ 8779#ifdef __cplusplus 8780extern "C" 8781#endif 8782/* We use char because int might match the return type of a gcc2 8783 builtin and then its argument prototype would still apply. */ 8784char $ac_func (); 8785char (*f) (); 8786 8787int 8788main () 8789{ 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) 8794choke me 8795#else 8796f = $ac_func; 8797#endif 8798 8799 ; 8800 return 0; 8801} 8802_ACEOF 8803rm -f conftest.$ac_objext conftest$ac_exeext 8804if { (eval echo "$as_me:8804: \"$ac_link\"") >&5 8805 (eval $ac_link) 2>&5 8806 ac_status=$? 8807 echo "$as_me:8807: \$? = $ac_status" >&5 8808 (exit $ac_status); } && 8809 { (eval echo "$as_me:8809: \"test -s conftest$ac_exeext\"") >&5 8810 (eval test -s conftest$ac_exeext) 2>&5 8811 ac_status=$? 8812 echo "$as_me:8812: \$? = $ac_status" >&5 8813 (exit $ac_status); }; then 8814 eval "$ac_ac_var=yes" 8815else 8816 echo "$as_me: failed program was:" >&5 8817cat conftest.$ac_ext >&5 8818eval "$ac_ac_var=no" 8819fi 8820rm -f conftest$ac_exeext conftest.$ac_ext 8821fi 8822echo "$as_me:8822: result: `eval echo '${'$ac_ac_var'}'`" >&5 8823echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 8824if test `eval echo '${'$ac_ac_var'}'` = yes; then 8825 cat >>confdefs.h <<EOF 8826#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 8827EOF 8828 8829fi 8830done 8831 8832fi 8833 8834for ac_func in inet_pton 8835do 8836echo "$as_me:8836: checking for $ac_func" >&5 8837echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8838if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then 8839 echo $ECHO_N "(cached) $ECHO_C" >&6 8840else 8841 cat >conftest.$ac_ext <<_ACEOF 8842#line 8842 "configure" 8843#include "confdefs.h" 8844#ifdef HAVE_SYS_TYPES_H 8845#include <sys/types.h> 8846#endif 8847#ifdef HAVE_SYS_SOCKET_H 8848#include <sys/socket.h> 8849#endif 8850#ifdef HAVE_NETINET_IN_H 8851#include <netinet/in.h> 8852#endif 8853#ifdef HAVE_ARPA_INET_H 8854#include <arpa/inet.h> 8855#endif 8856int 8857main () 8858{ 8859 8860/* The GNU C library defines this for functions which it implements 8861 to always fail with ENOSYS. Some functions are actually named 8862 something starting with __ and the normal name is an alias. */ 8863#if defined (__stub_inet_pton) || defined (__stub___inet_pton) 8864choke me 8865#else 8866$ac_func(0,0,0) 8867#endif 8868 8869 ; 8870 return 0; 8871} 8872_ACEOF 8873rm -f conftest.$ac_objext conftest$ac_exeext 8874if { (eval echo "$as_me:8874: \"$ac_link\"") >&5 8875 (eval $ac_link) 2>&5 8876 ac_status=$? 8877 echo "$as_me:8877: \$? = $ac_status" >&5 8878 (exit $ac_status); } && 8879 { (eval echo "$as_me:8879: \"test -s conftest$ac_exeext\"") >&5 8880 (eval test -s conftest$ac_exeext) 2>&5 8881 ac_status=$? 8882 echo "$as_me:8882: \$? = $ac_status" >&5 8883 (exit $ac_status); }; then 8884 eval "ac_cv_func_$ac_func=yes" 8885else 8886 echo "$as_me: failed program was:" >&5 8887cat conftest.$ac_ext >&5 8888eval "ac_cv_func_$ac_func=no" 8889fi 8890rm -f conftest$ac_exeext conftest.$ac_ext 8891fi 8892 8893if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then 8894 ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 8895 cat >>confdefs.h <<EOF 8896#define $ac_tr_func 1 8897EOF 8898 8899 echo "$as_me:8899: result: yes" >&5 8900echo "${ECHO_T}yes" >&6 8901else 8902 echo "$as_me:8902: result: no" >&5 8903echo "${ECHO_T}no" >&6 8904 LIBOBJS="$LIBOBJS ${ac_func}.o" 8905fi 8906done 8907if false; then 8908 8909for ac_func in inet_pton 8910do 8911ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 8912echo "$as_me:8912: checking for $ac_func" >&5 8913echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8914if eval "test \"\${$ac_ac_var+set}\" = set"; then 8915 echo $ECHO_N "(cached) $ECHO_C" >&6 8916else 8917 cat >conftest.$ac_ext <<_ACEOF 8918#line 8918 "configure" 8919#include "confdefs.h" 8920/* System header to define __stub macros and hopefully few prototypes, 8921 which can conflict with char $ac_func (); below. */ 8922#include <assert.h> 8923/* Override any gcc2 internal prototype to avoid an error. */ 8924#ifdef __cplusplus 8925extern "C" 8926#endif 8927/* We use char because int might match the return type of a gcc2 8928 builtin and then its argument prototype would still apply. */ 8929char $ac_func (); 8930char (*f) (); 8931 8932int 8933main () 8934{ 8935/* The GNU C library defines this for functions which it implements 8936 to always fail with ENOSYS. Some functions are actually named 8937 something starting with __ and the normal name is an alias. */ 8938#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8939choke me 8940#else 8941f = $ac_func; 8942#endif 8943 8944 ; 8945 return 0; 8946} 8947_ACEOF 8948rm -f conftest.$ac_objext conftest$ac_exeext 8949if { (eval echo "$as_me:8949: \"$ac_link\"") >&5 8950 (eval $ac_link) 2>&5 8951 ac_status=$? 8952 echo "$as_me:8952: \$? = $ac_status" >&5 8953 (exit $ac_status); } && 8954 { (eval echo "$as_me:8954: \"test -s conftest$ac_exeext\"") >&5 8955 (eval test -s conftest$ac_exeext) 2>&5 8956 ac_status=$? 8957 echo "$as_me:8957: \$? = $ac_status" >&5 8958 (exit $ac_status); }; then 8959 eval "$ac_ac_var=yes" 8960else 8961 echo "$as_me: failed program was:" >&5 8962cat conftest.$ac_ext >&5 8963eval "$ac_ac_var=no" 8964fi 8965rm -f conftest$ac_exeext conftest.$ac_ext 8966fi 8967echo "$as_me:8967: result: `eval echo '${'$ac_ac_var'}'`" >&5 8968echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 8969if test `eval echo '${'$ac_ac_var'}'` = yes; then 8970 cat >>confdefs.h <<EOF 8971#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 8972EOF 8973 8974fi 8975done 8976 8977fi 8978 8979echo "$as_me:8979: checking for sa_len in struct sockaddr" >&5 8980echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6 8981if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then 8982 echo $ECHO_N "(cached) $ECHO_C" >&6 8983else 8984 8985cat >conftest.$ac_ext <<_ACEOF 8986#line 8986 "configure" 8987#include "confdefs.h" 8988#include <sys/types.h> 8989#include <sys/socket.h> 8990int 8991main () 8992{ 8993struct sockaddr x; x.sa_len; 8994 ; 8995 return 0; 8996} 8997_ACEOF 8998rm -f conftest.$ac_objext 8999if { (eval echo "$as_me:8999: \"$ac_compile\"") >&5 9000 (eval $ac_compile) 2>&5 9001 ac_status=$? 9002 echo "$as_me:9002: \$? = $ac_status" >&5 9003 (exit $ac_status); } && 9004 { (eval echo "$as_me:9004: \"test -s conftest.$ac_objext\"") >&5 9005 (eval test -s conftest.$ac_objext) 2>&5 9006 ac_status=$? 9007 echo "$as_me:9007: \$? = $ac_status" >&5 9008 (exit $ac_status); }; then 9009 ac_cv_type_struct_sockaddr_sa_len=yes 9010else 9011 echo "$as_me: failed program was:" >&5 9012cat conftest.$ac_ext >&5 9013ac_cv_type_struct_sockaddr_sa_len=no 9014fi 9015rm -f conftest.$ac_objext conftest.$ac_ext 9016fi 9017echo "$as_me:9017: result: $ac_cv_type_struct_sockaddr_sa_len" >&5 9018echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6 9019if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then 9020 9021cat >>confdefs.h <<\EOF 9022#define HAVE_STRUCT_SOCKADDR_SA_LEN 1 9023EOF 9024 9025fi 9026 9027if test "$ac_cv_func_getnameinfo" = "yes"; then 9028 9029echo "$as_me:9029: checking if getnameinfo is broken" >&5 9030echo $ECHO_N "checking if getnameinfo is broken... $ECHO_C" >&6 9031if test "${ac_cv_func_getnameinfo_broken+set}" = set; then 9032 echo $ECHO_N "(cached) $ECHO_C" >&6 9033else 9034 if test "$cross_compiling" = yes; then 9035 { { echo "$as_me:9035: error: cannot run test program while cross compiling" >&5 9036echo "$as_me: error: cannot run test program while cross compiling" >&2;} 9037 { (exit 1); exit 1; }; } 9038else 9039 cat >conftest.$ac_ext <<_ACEOF 9040#line 9040 "configure" 9041#include "confdefs.h" 9042#include <stdio.h> 9043#include <sys/types.h> 9044#include <sys/socket.h> 9045#include <netinet/in.h> 9046#include <netdb.h> 9047 9048int 9049main(int argc, char **argv) 9050{ 9051 struct sockaddr_in sin; 9052 char host[256]; 9053 memset(&sin, 0, sizeof(sin)); 9054#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN 9055 sin.sin_len = sizeof(sin); 9056#endif 9057 sin.sin_family = AF_INET; 9058 sin.sin_addr.s_addr = 0xffffffff; 9059 sin.sin_port = 0; 9060 return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host), 9061 NULL, 0, 0); 9062} 9063 9064_ACEOF 9065rm -f conftest$ac_exeext 9066if { (eval echo "$as_me:9066: \"$ac_link\"") >&5 9067 (eval $ac_link) 2>&5 9068 ac_status=$? 9069 echo "$as_me:9069: \$? = $ac_status" >&5 9070 (exit $ac_status); } && { (eval echo "$as_me:9070: \"./conftest$ac_exeext\"") >&5 9071 (eval ./conftest$ac_exeext) 2>&5 9072 ac_status=$? 9073 echo "$as_me:9073: \$? = $ac_status" >&5 9074 (exit $ac_status); }; then 9075 ac_cv_func_getnameinfo_broken=no 9076else 9077 echo "$as_me: program exited with status $ac_status" >&5 9078echo "$as_me: failed program was:" >&5 9079cat conftest.$ac_ext >&5 9080ac_cv_func_getnameinfo_broken=yes 9081fi 9082rm -f conftest$ac_exeext conftest.$ac_ext 9083fi 9084fi 9085echo "$as_me:9085: result: $ac_cv_func_getnameinfo_broken" >&5 9086echo "${ECHO_T}$ac_cv_func_getnameinfo_broken" >&6 9087 if test "$ac_cv_func_getnameinfo_broken" = yes; then 9088 LIBOBJS="$LIBOBJS getnameinfo.o" 9089 fi 9090fi 9091 9092if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then 9093echo "$as_me:9093: checking if setenv needs a prototype" >&5 9094echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6 9095if test "${ac_cv_func_setenv_noproto+set}" = set; then 9096 echo $ECHO_N "(cached) $ECHO_C" >&6 9097else 9098 cat >conftest.$ac_ext <<_ACEOF 9099#line 9099 "configure" 9100#include "confdefs.h" 9101#include <stdlib.h> 9102int 9103main () 9104{ 9105struct foo { int foo; } xx; 9106extern int setenv (struct foo*); 9107setenv(&xx); 9108 9109 ; 9110 return 0; 9111} 9112_ACEOF 9113rm -f conftest.$ac_objext 9114if { (eval echo "$as_me:9114: \"$ac_compile\"") >&5 9115 (eval $ac_compile) 2>&5 9116 ac_status=$? 9117 echo "$as_me:9117: \$? = $ac_status" >&5 9118 (exit $ac_status); } && 9119 { (eval echo "$as_me:9119: \"test -s conftest.$ac_objext\"") >&5 9120 (eval test -s conftest.$ac_objext) 2>&5 9121 ac_status=$? 9122 echo "$as_me:9122: \$? = $ac_status" >&5 9123 (exit $ac_status); }; then 9124 eval "ac_cv_func_setenv_noproto=yes" 9125else 9126 echo "$as_me: failed program was:" >&5 9127cat conftest.$ac_ext >&5 9128eval "ac_cv_func_setenv_noproto=no" 9129fi 9130rm -f conftest.$ac_objext conftest.$ac_ext 9131fi 9132echo "$as_me:9132: result: $ac_cv_func_setenv_noproto" >&5 9133echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6 9134 9135if test "$ac_cv_func_setenv_noproto" = yes; then 9136 9137cat >>confdefs.h <<\EOF 9138#define NEED_SETENV_PROTO 1 9139EOF 9140 9141fi 9142 9143fi 9144 9145if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then 9146echo "$as_me:9146: checking if unsetenv needs a prototype" >&5 9147echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6 9148if test "${ac_cv_func_unsetenv_noproto+set}" = set; then 9149 echo $ECHO_N "(cached) $ECHO_C" >&6 9150else 9151 cat >conftest.$ac_ext <<_ACEOF 9152#line 9152 "configure" 9153#include "confdefs.h" 9154#include <stdlib.h> 9155int 9156main () 9157{ 9158struct foo { int foo; } xx; 9159extern int unsetenv (struct foo*); 9160unsetenv(&xx); 9161 9162 ; 9163 return 0; 9164} 9165_ACEOF 9166rm -f conftest.$ac_objext 9167if { (eval echo "$as_me:9167: \"$ac_compile\"") >&5 9168 (eval $ac_compile) 2>&5 9169 ac_status=$? 9170 echo "$as_me:9170: \$? = $ac_status" >&5 9171 (exit $ac_status); } && 9172 { (eval echo "$as_me:9172: \"test -s conftest.$ac_objext\"") >&5 9173 (eval test -s conftest.$ac_objext) 2>&5 9174 ac_status=$? 9175 echo "$as_me:9175: \$? = $ac_status" >&5 9176 (exit $ac_status); }; then 9177 eval "ac_cv_func_unsetenv_noproto=yes" 9178else 9179 echo "$as_me: failed program was:" >&5 9180cat conftest.$ac_ext >&5 9181eval "ac_cv_func_unsetenv_noproto=no" 9182fi 9183rm -f conftest.$ac_objext conftest.$ac_ext 9184fi 9185echo "$as_me:9185: result: $ac_cv_func_unsetenv_noproto" >&5 9186echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6 9187 9188if test "$ac_cv_func_unsetenv_noproto" = yes; then 9189 9190cat >>confdefs.h <<\EOF 9191#define NEED_UNSETENV_PROTO 1 9192EOF 9193 9194fi 9195 9196fi 9197 9198if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then 9199echo "$as_me:9199: checking if gethostname needs a prototype" >&5 9200echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6 9201if test "${ac_cv_func_gethostname_noproto+set}" = set; then 9202 echo $ECHO_N "(cached) $ECHO_C" >&6 9203else 9204 cat >conftest.$ac_ext <<_ACEOF 9205#line 9205 "configure" 9206#include "confdefs.h" 9207#include <unistd.h> 9208int 9209main () 9210{ 9211struct foo { int foo; } xx; 9212extern int gethostname (struct foo*); 9213gethostname(&xx); 9214 9215 ; 9216 return 0; 9217} 9218_ACEOF 9219rm -f conftest.$ac_objext 9220if { (eval echo "$as_me:9220: \"$ac_compile\"") >&5 9221 (eval $ac_compile) 2>&5 9222 ac_status=$? 9223 echo "$as_me:9223: \$? = $ac_status" >&5 9224 (exit $ac_status); } && 9225 { (eval echo "$as_me:9225: \"test -s conftest.$ac_objext\"") >&5 9226 (eval test -s conftest.$ac_objext) 2>&5 9227 ac_status=$? 9228 echo "$as_me:9228: \$? = $ac_status" >&5 9229 (exit $ac_status); }; then 9230 eval "ac_cv_func_gethostname_noproto=yes" 9231else 9232 echo "$as_me: failed program was:" >&5 9233cat conftest.$ac_ext >&5 9234eval "ac_cv_func_gethostname_noproto=no" 9235fi 9236rm -f conftest.$ac_objext conftest.$ac_ext 9237fi 9238echo "$as_me:9238: result: $ac_cv_func_gethostname_noproto" >&5 9239echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6 9240 9241if test "$ac_cv_func_gethostname_noproto" = yes; then 9242 9243cat >>confdefs.h <<\EOF 9244#define NEED_GETHOSTNAME_PROTO 1 9245EOF 9246 9247fi 9248 9249fi 9250 9251if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then 9252echo "$as_me:9252: checking if mkstemp needs a prototype" >&5 9253echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6 9254if test "${ac_cv_func_mkstemp_noproto+set}" = set; then 9255 echo $ECHO_N "(cached) $ECHO_C" >&6 9256else 9257 cat >conftest.$ac_ext <<_ACEOF 9258#line 9258 "configure" 9259#include "confdefs.h" 9260#include <unistd.h> 9261int 9262main () 9263{ 9264struct foo { int foo; } xx; 9265extern int mkstemp (struct foo*); 9266mkstemp(&xx); 9267 9268 ; 9269 return 0; 9270} 9271_ACEOF 9272rm -f conftest.$ac_objext 9273if { (eval echo "$as_me:9273: \"$ac_compile\"") >&5 9274 (eval $ac_compile) 2>&5 9275 ac_status=$? 9276 echo "$as_me:9276: \$? = $ac_status" >&5 9277 (exit $ac_status); } && 9278 { (eval echo "$as_me:9278: \"test -s conftest.$ac_objext\"") >&5 9279 (eval test -s conftest.$ac_objext) 2>&5 9280 ac_status=$? 9281 echo "$as_me:9281: \$? = $ac_status" >&5 9282 (exit $ac_status); }; then 9283 eval "ac_cv_func_mkstemp_noproto=yes" 9284else 9285 echo "$as_me: failed program was:" >&5 9286cat conftest.$ac_ext >&5 9287eval "ac_cv_func_mkstemp_noproto=no" 9288fi 9289rm -f conftest.$ac_objext conftest.$ac_ext 9290fi 9291echo "$as_me:9291: result: $ac_cv_func_mkstemp_noproto" >&5 9292echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6 9293 9294if test "$ac_cv_func_mkstemp_noproto" = yes; then 9295 9296cat >>confdefs.h <<\EOF 9297#define NEED_MKSTEMP_PROTO 1 9298EOF 9299 9300fi 9301 9302fi 9303 9304if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then 9305echo "$as_me:9305: checking if getusershell needs a prototype" >&5 9306echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6 9307if test "${ac_cv_func_getusershell_noproto+set}" = set; then 9308 echo $ECHO_N "(cached) $ECHO_C" >&6 9309else 9310 cat >conftest.$ac_ext <<_ACEOF 9311#line 9311 "configure" 9312#include "confdefs.h" 9313#include <unistd.h> 9314int 9315main () 9316{ 9317struct foo { int foo; } xx; 9318extern int getusershell (struct foo*); 9319getusershell(&xx); 9320 9321 ; 9322 return 0; 9323} 9324_ACEOF 9325rm -f conftest.$ac_objext 9326if { (eval echo "$as_me:9326: \"$ac_compile\"") >&5 9327 (eval $ac_compile) 2>&5 9328 ac_status=$? 9329 echo "$as_me:9329: \$? = $ac_status" >&5 9330 (exit $ac_status); } && 9331 { (eval echo "$as_me:9331: \"test -s conftest.$ac_objext\"") >&5 9332 (eval test -s conftest.$ac_objext) 2>&5 9333 ac_status=$? 9334 echo "$as_me:9334: \$? = $ac_status" >&5 9335 (exit $ac_status); }; then 9336 eval "ac_cv_func_getusershell_noproto=yes" 9337else 9338 echo "$as_me: failed program was:" >&5 9339cat conftest.$ac_ext >&5 9340eval "ac_cv_func_getusershell_noproto=no" 9341fi 9342rm -f conftest.$ac_objext conftest.$ac_ext 9343fi 9344echo "$as_me:9344: result: $ac_cv_func_getusershell_noproto" >&5 9345echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6 9346 9347if test "$ac_cv_func_getusershell_noproto" = yes; then 9348 9349cat >>confdefs.h <<\EOF 9350#define NEED_GETUSERSHELL_PROTO 1 9351EOF 9352 9353fi 9354 9355fi 9356 9357if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then 9358echo "$as_me:9358: checking if inet_aton needs a prototype" >&5 9359echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6 9360if test "${ac_cv_func_inet_aton_noproto+set}" = set; then 9361 echo $ECHO_N "(cached) $ECHO_C" >&6 9362else 9363 cat >conftest.$ac_ext <<_ACEOF 9364#line 9364 "configure" 9365#include "confdefs.h" 9366 9367#ifdef HAVE_SYS_TYPES_H 9368#include <sys/types.h> 9369#endif 9370#ifdef HAVE_SYS_SOCKET_H 9371#include <sys/socket.h> 9372#endif 9373#ifdef HAVE_NETINET_IN_H 9374#include <netinet/in.h> 9375#endif 9376#ifdef HAVE_ARPA_INET_H 9377#include <arpa/inet.h> 9378#endif 9379int 9380main () 9381{ 9382struct foo { int foo; } xx; 9383extern int inet_aton (struct foo*); 9384inet_aton(&xx); 9385 9386 ; 9387 return 0; 9388} 9389_ACEOF 9390rm -f conftest.$ac_objext 9391if { (eval echo "$as_me:9391: \"$ac_compile\"") >&5 9392 (eval $ac_compile) 2>&5 9393 ac_status=$? 9394 echo "$as_me:9394: \$? = $ac_status" >&5 9395 (exit $ac_status); } && 9396 { (eval echo "$as_me:9396: \"test -s conftest.$ac_objext\"") >&5 9397 (eval test -s conftest.$ac_objext) 2>&5 9398 ac_status=$? 9399 echo "$as_me:9399: \$? = $ac_status" >&5 9400 (exit $ac_status); }; then 9401 eval "ac_cv_func_inet_aton_noproto=yes" 9402else 9403 echo "$as_me: failed program was:" >&5 9404cat conftest.$ac_ext >&5 9405eval "ac_cv_func_inet_aton_noproto=no" 9406fi 9407rm -f conftest.$ac_objext conftest.$ac_ext 9408fi 9409echo "$as_me:9409: result: $ac_cv_func_inet_aton_noproto" >&5 9410echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6 9411 9412if test "$ac_cv_func_inet_aton_noproto" = yes; then 9413 9414cat >>confdefs.h <<\EOF 9415#define NEED_INET_ATON_PROTO 1 9416EOF 9417 9418fi 9419 9420fi 9421 9422echo "$as_me:9422: checking for crypt" >&5 9423echo $ECHO_N "checking for crypt... $ECHO_C" >&6 9424if test "${ac_cv_funclib_crypt+set}" = set; then 9425 echo $ECHO_N "(cached) $ECHO_C" >&6 9426else 9427 9428if eval "test \"\$ac_cv_func_crypt\" != yes" ; then 9429 ac_save_LIBS="$LIBS" 9430 for ac_lib in "" crypt; do 9431 if test -n "$ac_lib"; then 9432 ac_lib="-l$ac_lib" 9433 else 9434 ac_lib="" 9435 fi 9436 LIBS=" $ac_lib $ac_save_LIBS" 9437 cat >conftest.$ac_ext <<_ACEOF 9438#line 9438 "configure" 9439#include "confdefs.h" 9440 9441int 9442main () 9443{ 9444crypt() 9445 ; 9446 return 0; 9447} 9448_ACEOF 9449rm -f conftest.$ac_objext conftest$ac_exeext 9450if { (eval echo "$as_me:9450: \"$ac_link\"") >&5 9451 (eval $ac_link) 2>&5 9452 ac_status=$? 9453 echo "$as_me:9453: \$? = $ac_status" >&5 9454 (exit $ac_status); } && 9455 { (eval echo "$as_me:9455: \"test -s conftest$ac_exeext\"") >&5 9456 (eval test -s conftest$ac_exeext) 2>&5 9457 ac_status=$? 9458 echo "$as_me:9458: \$? = $ac_status" >&5 9459 (exit $ac_status); }; then 9460 eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break 9461else 9462 echo "$as_me: failed program was:" >&5 9463cat conftest.$ac_ext >&5 9464fi 9465rm -f conftest$ac_exeext conftest.$ac_ext 9466 done 9467 eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}" 9468 LIBS="$ac_save_LIBS" 9469fi 9470 9471fi 9472 9473eval "ac_res=\$ac_cv_funclib_crypt" 9474 9475if false; then 9476 9477for ac_func in crypt 9478do 9479ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 9480echo "$as_me:9480: checking for $ac_func" >&5 9481echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9482if eval "test \"\${$ac_ac_var+set}\" = set"; then 9483 echo $ECHO_N "(cached) $ECHO_C" >&6 9484else 9485 cat >conftest.$ac_ext <<_ACEOF 9486#line 9486 "configure" 9487#include "confdefs.h" 9488/* System header to define __stub macros and hopefully few prototypes, 9489 which can conflict with char $ac_func (); below. */ 9490#include <assert.h> 9491/* Override any gcc2 internal prototype to avoid an error. */ 9492#ifdef __cplusplus 9493extern "C" 9494#endif 9495/* We use char because int might match the return type of a gcc2 9496 builtin and then its argument prototype would still apply. */ 9497char $ac_func (); 9498char (*f) (); 9499 9500int 9501main () 9502{ 9503/* The GNU C library defines this for functions which it implements 9504 to always fail with ENOSYS. Some functions are actually named 9505 something starting with __ and the normal name is an alias. */ 9506#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9507choke me 9508#else 9509f = $ac_func; 9510#endif 9511 9512 ; 9513 return 0; 9514} 9515_ACEOF 9516rm -f conftest.$ac_objext conftest$ac_exeext 9517if { (eval echo "$as_me:9517: \"$ac_link\"") >&5 9518 (eval $ac_link) 2>&5 9519 ac_status=$? 9520 echo "$as_me:9520: \$? = $ac_status" >&5 9521 (exit $ac_status); } && 9522 { (eval echo "$as_me:9522: \"test -s conftest$ac_exeext\"") >&5 9523 (eval test -s conftest$ac_exeext) 2>&5 9524 ac_status=$? 9525 echo "$as_me:9525: \$? = $ac_status" >&5 9526 (exit $ac_status); }; then 9527 eval "$ac_ac_var=yes" 9528else 9529 echo "$as_me: failed program was:" >&5 9530cat conftest.$ac_ext >&5 9531eval "$ac_ac_var=no" 9532fi 9533rm -f conftest$ac_exeext conftest.$ac_ext 9534fi 9535echo "$as_me:9535: result: `eval echo '${'$ac_ac_var'}'`" >&5 9536echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 9537if test `eval echo '${'$ac_ac_var'}'` = yes; then 9538 cat >>confdefs.h <<EOF 9539#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 9540EOF 9541 9542fi 9543done 9544 9545fi 9546# crypt 9547eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9548eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9549eval "LIB_crypt=$ac_res" 9550 9551case "$ac_res" in 9552 yes) 9553 eval "ac_cv_func_crypt=yes" 9554 eval "LIB_crypt=" 9555 cat >>confdefs.h <<EOF 9556#define $ac_tr_func 1 9557EOF 9558 9559 echo "$as_me:9559: result: yes" >&5 9560echo "${ECHO_T}yes" >&6 9561 ;; 9562 no) 9563 eval "ac_cv_func_crypt=no" 9564 eval "LIB_crypt=" 9565 echo "$as_me:9565: result: no" >&5 9566echo "${ECHO_T}no" >&6 9567 ;; 9568 *) 9569 eval "ac_cv_func_crypt=yes" 9570 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 9571 cat >>confdefs.h <<EOF 9572#define $ac_tr_func 1 9573EOF 9574 9575 cat >>confdefs.h <<EOF 9576#define $ac_tr_lib 1 9577EOF 9578 9579 echo "$as_me:9579: result: yes, in $ac_res" >&5 9580echo "${ECHO_T}yes, in $ac_res" >&6 9581 ;; 9582esac 9583 9584echo "$as_me:9584: checking if gethostbyname is compatible with system prototype" >&5 9585echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6 9586if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then 9587 echo $ECHO_N "(cached) $ECHO_C" >&6 9588else 9589 cat >conftest.$ac_ext <<_ACEOF 9590#line 9590 "configure" 9591#include "confdefs.h" 9592 9593#ifdef HAVE_SYS_TYPES_H 9594#include <sys/types.h> 9595#endif 9596#ifdef HAVE_SYS_SOCKET_H 9597#include <sys/socket.h> 9598#endif 9599#ifdef HAVE_NETINET_IN_H 9600#include <netinet/in.h> 9601#endif 9602#ifdef HAVE_ARPA_INET_H 9603#include <arpa/inet.h> 9604#endif 9605#ifdef HAVE_NETDB_H 9606#include <netdb.h> 9607#endif 9608 9609int 9610main () 9611{ 9612struct hostent *gethostbyname(const char *); 9613 ; 9614 return 0; 9615} 9616_ACEOF 9617rm -f conftest.$ac_objext 9618if { (eval echo "$as_me:9618: \"$ac_compile\"") >&5 9619 (eval $ac_compile) 2>&5 9620 ac_status=$? 9621 echo "$as_me:9621: \$? = $ac_status" >&5 9622 (exit $ac_status); } && 9623 { (eval echo "$as_me:9623: \"test -s conftest.$ac_objext\"") >&5 9624 (eval test -s conftest.$ac_objext) 2>&5 9625 ac_status=$? 9626 echo "$as_me:9626: \$? = $ac_status" >&5 9627 (exit $ac_status); }; then 9628 eval "ac_cv_func_gethostbyname_proto_compat=yes" 9629else 9630 echo "$as_me: failed program was:" >&5 9631cat conftest.$ac_ext >&5 9632eval "ac_cv_func_gethostbyname_proto_compat=no" 9633fi 9634rm -f conftest.$ac_objext conftest.$ac_ext 9635fi 9636echo "$as_me:9636: result: $ac_cv_func_gethostbyname_proto_compat" >&5 9637echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6 9638 9639if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then 9640 9641cat >>confdefs.h <<\EOF 9642#define GETHOSTBYNAME_PROTO_COMPATIBLE 1 9643EOF 9644 9645fi 9646 9647echo "$as_me:9647: checking if gethostbyaddr is compatible with system prototype" >&5 9648echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6 9649if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then 9650 echo $ECHO_N "(cached) $ECHO_C" >&6 9651else 9652 cat >conftest.$ac_ext <<_ACEOF 9653#line 9653 "configure" 9654#include "confdefs.h" 9655 9656#ifdef HAVE_SYS_TYPES_H 9657#include <sys/types.h> 9658#endif 9659#ifdef HAVE_SYS_SOCKET_H 9660#include <sys/socket.h> 9661#endif 9662#ifdef HAVE_NETINET_IN_H 9663#include <netinet/in.h> 9664#endif 9665#ifdef HAVE_ARPA_INET_H 9666#include <arpa/inet.h> 9667#endif 9668#ifdef HAVE_NETDB_H 9669#include <netdb.h> 9670#endif 9671 9672int 9673main () 9674{ 9675struct hostent *gethostbyaddr(const void *, size_t, int); 9676 ; 9677 return 0; 9678} 9679_ACEOF 9680rm -f conftest.$ac_objext 9681if { (eval echo "$as_me:9681: \"$ac_compile\"") >&5 9682 (eval $ac_compile) 2>&5 9683 ac_status=$? 9684 echo "$as_me:9684: \$? = $ac_status" >&5 9685 (exit $ac_status); } && 9686 { (eval echo "$as_me:9686: \"test -s conftest.$ac_objext\"") >&5 9687 (eval test -s conftest.$ac_objext) 2>&5 9688 ac_status=$? 9689 echo "$as_me:9689: \$? = $ac_status" >&5 9690 (exit $ac_status); }; then 9691 eval "ac_cv_func_gethostbyaddr_proto_compat=yes" 9692else 9693 echo "$as_me: failed program was:" >&5 9694cat conftest.$ac_ext >&5 9695eval "ac_cv_func_gethostbyaddr_proto_compat=no" 9696fi 9697rm -f conftest.$ac_objext conftest.$ac_ext 9698fi 9699echo "$as_me:9699: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5 9700echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6 9701 9702if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then 9703 9704cat >>confdefs.h <<\EOF 9705#define GETHOSTBYADDR_PROTO_COMPATIBLE 1 9706EOF 9707 9708fi 9709 9710echo "$as_me:9710: checking if getservbyname is compatible with system prototype" >&5 9711echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6 9712if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then 9713 echo $ECHO_N "(cached) $ECHO_C" >&6 9714else 9715 cat >conftest.$ac_ext <<_ACEOF 9716#line 9716 "configure" 9717#include "confdefs.h" 9718 9719#ifdef HAVE_SYS_TYPES_H 9720#include <sys/types.h> 9721#endif 9722#ifdef HAVE_SYS_SOCKET_H 9723#include <sys/socket.h> 9724#endif 9725#ifdef HAVE_NETINET_IN_H 9726#include <netinet/in.h> 9727#endif 9728#ifdef HAVE_ARPA_INET_H 9729#include <arpa/inet.h> 9730#endif 9731#ifdef HAVE_NETDB_H 9732#include <netdb.h> 9733#endif 9734 9735int 9736main () 9737{ 9738struct servent *getservbyname(const char *, const char *); 9739 ; 9740 return 0; 9741} 9742_ACEOF 9743rm -f conftest.$ac_objext 9744if { (eval echo "$as_me:9744: \"$ac_compile\"") >&5 9745 (eval $ac_compile) 2>&5 9746 ac_status=$? 9747 echo "$as_me:9747: \$? = $ac_status" >&5 9748 (exit $ac_status); } && 9749 { (eval echo "$as_me:9749: \"test -s conftest.$ac_objext\"") >&5 9750 (eval test -s conftest.$ac_objext) 2>&5 9751 ac_status=$? 9752 echo "$as_me:9752: \$? = $ac_status" >&5 9753 (exit $ac_status); }; then 9754 eval "ac_cv_func_getservbyname_proto_compat=yes" 9755else 9756 echo "$as_me: failed program was:" >&5 9757cat conftest.$ac_ext >&5 9758eval "ac_cv_func_getservbyname_proto_compat=no" 9759fi 9760rm -f conftest.$ac_objext conftest.$ac_ext 9761fi 9762echo "$as_me:9762: result: $ac_cv_func_getservbyname_proto_compat" >&5 9763echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6 9764 9765if test "$ac_cv_func_getservbyname_proto_compat" = yes; then 9766 9767cat >>confdefs.h <<\EOF 9768#define GETSERVBYNAME_PROTO_COMPATIBLE 1 9769EOF 9770 9771fi 9772 9773echo "$as_me:9773: checking if getsockname is compatible with system prototype" >&5 9774echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6 9775if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then 9776 echo $ECHO_N "(cached) $ECHO_C" >&6 9777else 9778 cat >conftest.$ac_ext <<_ACEOF 9779#line 9779 "configure" 9780#include "confdefs.h" 9781 9782#ifdef HAVE_SYS_TYPES_H 9783#include <sys/types.h> 9784#endif 9785#ifdef HAVE_SYS_SOCKET_H 9786#include <sys/socket.h> 9787#endif 9788 9789int 9790main () 9791{ 9792int getsockname(int, struct sockaddr*, socklen_t*); 9793 ; 9794 return 0; 9795} 9796_ACEOF 9797rm -f conftest.$ac_objext 9798if { (eval echo "$as_me:9798: \"$ac_compile\"") >&5 9799 (eval $ac_compile) 2>&5 9800 ac_status=$? 9801 echo "$as_me:9801: \$? = $ac_status" >&5 9802 (exit $ac_status); } && 9803 { (eval echo "$as_me:9803: \"test -s conftest.$ac_objext\"") >&5 9804 (eval test -s conftest.$ac_objext) 2>&5 9805 ac_status=$? 9806 echo "$as_me:9806: \$? = $ac_status" >&5 9807 (exit $ac_status); }; then 9808 eval "ac_cv_func_getsockname_proto_compat=yes" 9809else 9810 echo "$as_me: failed program was:" >&5 9811cat conftest.$ac_ext >&5 9812eval "ac_cv_func_getsockname_proto_compat=no" 9813fi 9814rm -f conftest.$ac_objext conftest.$ac_ext 9815fi 9816echo "$as_me:9816: result: $ac_cv_func_getsockname_proto_compat" >&5 9817echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6 9818 9819if test "$ac_cv_func_getsockname_proto_compat" = yes; then 9820 9821cat >>confdefs.h <<\EOF 9822#define GETSOCKNAME_PROTO_COMPATIBLE 1 9823EOF 9824 9825fi 9826 9827echo "$as_me:9827: checking if openlog is compatible with system prototype" >&5 9828echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6 9829if test "${ac_cv_func_openlog_proto_compat+set}" = set; then 9830 echo $ECHO_N "(cached) $ECHO_C" >&6 9831else 9832 cat >conftest.$ac_ext <<_ACEOF 9833#line 9833 "configure" 9834#include "confdefs.h" 9835 9836#ifdef HAVE_SYSLOG_H 9837#include <syslog.h> 9838#endif 9839 9840int 9841main () 9842{ 9843void openlog(const char *, int, int); 9844 ; 9845 return 0; 9846} 9847_ACEOF 9848rm -f conftest.$ac_objext 9849if { (eval echo "$as_me:9849: \"$ac_compile\"") >&5 9850 (eval $ac_compile) 2>&5 9851 ac_status=$? 9852 echo "$as_me:9852: \$? = $ac_status" >&5 9853 (exit $ac_status); } && 9854 { (eval echo "$as_me:9854: \"test -s conftest.$ac_objext\"") >&5 9855 (eval test -s conftest.$ac_objext) 2>&5 9856 ac_status=$? 9857 echo "$as_me:9857: \$? = $ac_status" >&5 9858 (exit $ac_status); }; then 9859 eval "ac_cv_func_openlog_proto_compat=yes" 9860else 9861 echo "$as_me: failed program was:" >&5 9862cat conftest.$ac_ext >&5 9863eval "ac_cv_func_openlog_proto_compat=no" 9864fi 9865rm -f conftest.$ac_objext conftest.$ac_ext 9866fi 9867echo "$as_me:9867: result: $ac_cv_func_openlog_proto_compat" >&5 9868echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6 9869 9870if test "$ac_cv_func_openlog_proto_compat" = yes; then 9871 9872cat >>confdefs.h <<\EOF 9873#define OPENLOG_PROTO_COMPATIBLE 1 9874EOF 9875 9876fi 9877 9878if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then 9879echo "$as_me:9879: checking if crypt needs a prototype" >&5 9880echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6 9881if test "${ac_cv_func_crypt_noproto+set}" = set; then 9882 echo $ECHO_N "(cached) $ECHO_C" >&6 9883else 9884 cat >conftest.$ac_ext <<_ACEOF 9885#line 9885 "configure" 9886#include "confdefs.h" 9887 9888#ifdef HAVE_CRYPT_H 9889#include <crypt.h> 9890#endif 9891#ifdef HAVE_UNISTD_H 9892#include <unistd.h> 9893#endif 9894 9895int 9896main () 9897{ 9898struct foo { int foo; } xx; 9899extern int crypt (struct foo*); 9900crypt(&xx); 9901 9902 ; 9903 return 0; 9904} 9905_ACEOF 9906rm -f conftest.$ac_objext 9907if { (eval echo "$as_me:9907: \"$ac_compile\"") >&5 9908 (eval $ac_compile) 2>&5 9909 ac_status=$? 9910 echo "$as_me:9910: \$? = $ac_status" >&5 9911 (exit $ac_status); } && 9912 { (eval echo "$as_me:9912: \"test -s conftest.$ac_objext\"") >&5 9913 (eval test -s conftest.$ac_objext) 2>&5 9914 ac_status=$? 9915 echo "$as_me:9915: \$? = $ac_status" >&5 9916 (exit $ac_status); }; then 9917 eval "ac_cv_func_crypt_noproto=yes" 9918else 9919 echo "$as_me: failed program was:" >&5 9920cat conftest.$ac_ext >&5 9921eval "ac_cv_func_crypt_noproto=no" 9922fi 9923rm -f conftest.$ac_objext conftest.$ac_ext 9924fi 9925echo "$as_me:9925: result: $ac_cv_func_crypt_noproto" >&5 9926echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6 9927 9928if test "$ac_cv_func_crypt_noproto" = yes; then 9929 9930cat >>confdefs.h <<\EOF 9931#define NEED_CRYPT_PROTO 1 9932EOF 9933 9934fi 9935 9936fi 9937 9938if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then 9939echo "$as_me:9939: checking if strtok_r needs a prototype" >&5 9940echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6 9941if test "${ac_cv_func_strtok_r_noproto+set}" = set; then 9942 echo $ECHO_N "(cached) $ECHO_C" >&6 9943else 9944 cat >conftest.$ac_ext <<_ACEOF 9945#line 9945 "configure" 9946#include "confdefs.h" 9947 9948#include <string.h> 9949 9950int 9951main () 9952{ 9953struct foo { int foo; } xx; 9954extern int strtok_r (struct foo*); 9955strtok_r(&xx); 9956 9957 ; 9958 return 0; 9959} 9960_ACEOF 9961rm -f conftest.$ac_objext 9962if { (eval echo "$as_me:9962: \"$ac_compile\"") >&5 9963 (eval $ac_compile) 2>&5 9964 ac_status=$? 9965 echo "$as_me:9965: \$? = $ac_status" >&5 9966 (exit $ac_status); } && 9967 { (eval echo "$as_me:9967: \"test -s conftest.$ac_objext\"") >&5 9968 (eval test -s conftest.$ac_objext) 2>&5 9969 ac_status=$? 9970 echo "$as_me:9970: \$? = $ac_status" >&5 9971 (exit $ac_status); }; then 9972 eval "ac_cv_func_strtok_r_noproto=yes" 9973else 9974 echo "$as_me: failed program was:" >&5 9975cat conftest.$ac_ext >&5 9976eval "ac_cv_func_strtok_r_noproto=no" 9977fi 9978rm -f conftest.$ac_objext conftest.$ac_ext 9979fi 9980echo "$as_me:9980: result: $ac_cv_func_strtok_r_noproto" >&5 9981echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6 9982 9983if test "$ac_cv_func_strtok_r_noproto" = yes; then 9984 9985cat >>confdefs.h <<\EOF 9986#define NEED_STRTOK_R_PROTO 1 9987EOF 9988 9989fi 9990 9991fi 9992 9993if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then 9994echo "$as_me:9994: checking if strsep needs a prototype" >&5 9995echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6 9996if test "${ac_cv_func_strsep_noproto+set}" = set; then 9997 echo $ECHO_N "(cached) $ECHO_C" >&6 9998else 9999 cat >conftest.$ac_ext <<_ACEOF 10000#line 10000 "configure" 10001#include "confdefs.h" 10002 10003#include <string.h> 10004 10005int 10006main () 10007{ 10008struct foo { int foo; } xx; 10009extern int strsep (struct foo*); 10010strsep(&xx); 10011 10012 ; 10013 return 0; 10014} 10015_ACEOF 10016rm -f conftest.$ac_objext 10017if { (eval echo "$as_me:10017: \"$ac_compile\"") >&5 10018 (eval $ac_compile) 2>&5 10019 ac_status=$? 10020 echo "$as_me:10020: \$? = $ac_status" >&5 10021 (exit $ac_status); } && 10022 { (eval echo "$as_me:10022: \"test -s conftest.$ac_objext\"") >&5 10023 (eval test -s conftest.$ac_objext) 2>&5 10024 ac_status=$? 10025 echo "$as_me:10025: \$? = $ac_status" >&5 10026 (exit $ac_status); }; then 10027 eval "ac_cv_func_strsep_noproto=yes" 10028else 10029 echo "$as_me: failed program was:" >&5 10030cat conftest.$ac_ext >&5 10031eval "ac_cv_func_strsep_noproto=no" 10032fi 10033rm -f conftest.$ac_objext conftest.$ac_ext 10034fi 10035echo "$as_me:10035: result: $ac_cv_func_strsep_noproto" >&5 10036echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6 10037 10038if test "$ac_cv_func_strsep_noproto" = yes; then 10039 10040cat >>confdefs.h <<\EOF 10041#define NEED_STRSEP_PROTO 1 10042EOF 10043 10044fi 10045 10046fi 10047 10048echo "$as_me:10048: checking for h_errno" >&5 10049echo $ECHO_N "checking for h_errno... $ECHO_C" >&6 10050if test "${ac_cv_var_h_errno+set}" = set; then 10051 echo $ECHO_N "(cached) $ECHO_C" >&6 10052else 10053 10054cat >conftest.$ac_ext <<_ACEOF 10055#line 10055 "configure" 10056#include "confdefs.h" 10057extern int h_errno; 10058int foo() { return h_errno; } 10059int 10060main () 10061{ 10062foo() 10063 ; 10064 return 0; 10065} 10066_ACEOF 10067rm -f conftest.$ac_objext conftest$ac_exeext 10068if { (eval echo "$as_me:10068: \"$ac_link\"") >&5 10069 (eval $ac_link) 2>&5 10070 ac_status=$? 10071 echo "$as_me:10071: \$? = $ac_status" >&5 10072 (exit $ac_status); } && 10073 { (eval echo "$as_me:10073: \"test -s conftest$ac_exeext\"") >&5 10074 (eval test -s conftest$ac_exeext) 2>&5 10075 ac_status=$? 10076 echo "$as_me:10076: \$? = $ac_status" >&5 10077 (exit $ac_status); }; then 10078 ac_cv_var_h_errno=yes 10079else 10080 echo "$as_me: failed program was:" >&5 10081cat conftest.$ac_ext >&5 10082ac_cv_var_h_errno=no 10083fi 10084rm -f conftest$ac_exeext conftest.$ac_ext 10085 10086fi 10087 10088ac_foo=`eval echo \\$ac_cv_var_h_errno` 10089echo "$as_me:10089: result: $ac_foo" >&5 10090echo "${ECHO_T}$ac_foo" >&6 10091if test "$ac_foo" = yes; then 10092 10093cat >>confdefs.h <<EOF 10094#define HAVE_H_ERRNO 1 10095EOF 10096 10097echo "$as_me:10097: checking if h_errno is properly declared" >&5 10098echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6 10099if test "${ac_cv_var_h_errno_declaration+set}" = set; then 10100 echo $ECHO_N "(cached) $ECHO_C" >&6 10101else 10102 10103cat >conftest.$ac_ext <<_ACEOF 10104#line 10104 "configure" 10105#include "confdefs.h" 10106#ifdef HAVE_SYS_TYPES_H 10107#include <sys/types.h> 10108#endif 10109#ifdef HAVE_NETDB_H 10110#include <netdb.h> 10111#endif 10112extern struct { int foo; } h_errno; 10113int 10114main () 10115{ 10116h_errno.foo = 1; 10117 ; 10118 return 0; 10119} 10120_ACEOF 10121rm -f conftest.$ac_objext 10122if { (eval echo "$as_me:10122: \"$ac_compile\"") >&5 10123 (eval $ac_compile) 2>&5 10124 ac_status=$? 10125 echo "$as_me:10125: \$? = $ac_status" >&5 10126 (exit $ac_status); } && 10127 { (eval echo "$as_me:10127: \"test -s conftest.$ac_objext\"") >&5 10128 (eval test -s conftest.$ac_objext) 2>&5 10129 ac_status=$? 10130 echo "$as_me:10130: \$? = $ac_status" >&5 10131 (exit $ac_status); }; then 10132 eval "ac_cv_var_h_errno_declaration=no" 10133else 10134 echo "$as_me: failed program was:" >&5 10135cat conftest.$ac_ext >&5 10136eval "ac_cv_var_h_errno_declaration=yes" 10137fi 10138rm -f conftest.$ac_objext conftest.$ac_ext 10139 10140fi 10141 10142echo "$as_me:10142: result: $ac_cv_var_h_errno_declaration" >&5 10143echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6 10144if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then 10145 10146cat >>confdefs.h <<\EOF 10147#define HAVE_H_ERRNO_DECLARATION 1 10148EOF 10149 10150fi 10151 10152fi 10153 10154echo "$as_me:10154: checking for h_errlist" >&5 10155echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6 10156if test "${ac_cv_var_h_errlist+set}" = set; then 10157 echo $ECHO_N "(cached) $ECHO_C" >&6 10158else 10159 10160cat >conftest.$ac_ext <<_ACEOF 10161#line 10161 "configure" 10162#include "confdefs.h" 10163extern int h_errlist; 10164int foo() { return h_errlist; } 10165int 10166main () 10167{ 10168foo() 10169 ; 10170 return 0; 10171} 10172_ACEOF 10173rm -f conftest.$ac_objext conftest$ac_exeext 10174if { (eval echo "$as_me:10174: \"$ac_link\"") >&5 10175 (eval $ac_link) 2>&5 10176 ac_status=$? 10177 echo "$as_me:10177: \$? = $ac_status" >&5 10178 (exit $ac_status); } && 10179 { (eval echo "$as_me:10179: \"test -s conftest$ac_exeext\"") >&5 10180 (eval test -s conftest$ac_exeext) 2>&5 10181 ac_status=$? 10182 echo "$as_me:10182: \$? = $ac_status" >&5 10183 (exit $ac_status); }; then 10184 ac_cv_var_h_errlist=yes 10185else 10186 echo "$as_me: failed program was:" >&5 10187cat conftest.$ac_ext >&5 10188ac_cv_var_h_errlist=no 10189fi 10190rm -f conftest$ac_exeext conftest.$ac_ext 10191 10192fi 10193 10194ac_foo=`eval echo \\$ac_cv_var_h_errlist` 10195echo "$as_me:10195: result: $ac_foo" >&5 10196echo "${ECHO_T}$ac_foo" >&6 10197if test "$ac_foo" = yes; then 10198 10199cat >>confdefs.h <<EOF 10200#define HAVE_H_ERRLIST 1 10201EOF 10202 10203echo "$as_me:10203: checking if h_errlist is properly declared" >&5 10204echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6 10205if test "${ac_cv_var_h_errlist_declaration+set}" = set; then 10206 echo $ECHO_N "(cached) $ECHO_C" >&6 10207else 10208 10209cat >conftest.$ac_ext <<_ACEOF 10210#line 10210 "configure" 10211#include "confdefs.h" 10212#ifdef HAVE_NETDB_H 10213#include <netdb.h> 10214#endif 10215extern struct { int foo; } h_errlist; 10216int 10217main () 10218{ 10219h_errlist.foo = 1; 10220 ; 10221 return 0; 10222} 10223_ACEOF 10224rm -f conftest.$ac_objext 10225if { (eval echo "$as_me:10225: \"$ac_compile\"") >&5 10226 (eval $ac_compile) 2>&5 10227 ac_status=$? 10228 echo "$as_me:10228: \$? = $ac_status" >&5 10229 (exit $ac_status); } && 10230 { (eval echo "$as_me:10230: \"test -s conftest.$ac_objext\"") >&5 10231 (eval test -s conftest.$ac_objext) 2>&5 10232 ac_status=$? 10233 echo "$as_me:10233: \$? = $ac_status" >&5 10234 (exit $ac_status); }; then 10235 eval "ac_cv_var_h_errlist_declaration=no" 10236else 10237 echo "$as_me: failed program was:" >&5 10238cat conftest.$ac_ext >&5 10239eval "ac_cv_var_h_errlist_declaration=yes" 10240fi 10241rm -f conftest.$ac_objext conftest.$ac_ext 10242 10243fi 10244 10245echo "$as_me:10245: result: $ac_cv_var_h_errlist_declaration" >&5 10246echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6 10247if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then 10248 10249cat >>confdefs.h <<\EOF 10250#define HAVE_H_ERRLIST_DECLARATION 1 10251EOF 10252 10253fi 10254 10255fi 10256 10257echo "$as_me:10257: checking for h_nerr" >&5 10258echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6 10259if test "${ac_cv_var_h_nerr+set}" = set; then 10260 echo $ECHO_N "(cached) $ECHO_C" >&6 10261else 10262 10263cat >conftest.$ac_ext <<_ACEOF 10264#line 10264 "configure" 10265#include "confdefs.h" 10266extern int h_nerr; 10267int foo() { return h_nerr; } 10268int 10269main () 10270{ 10271foo() 10272 ; 10273 return 0; 10274} 10275_ACEOF 10276rm -f conftest.$ac_objext conftest$ac_exeext 10277if { (eval echo "$as_me:10277: \"$ac_link\"") >&5 10278 (eval $ac_link) 2>&5 10279 ac_status=$? 10280 echo "$as_me:10280: \$? = $ac_status" >&5 10281 (exit $ac_status); } && 10282 { (eval echo "$as_me:10282: \"test -s conftest$ac_exeext\"") >&5 10283 (eval test -s conftest$ac_exeext) 2>&5 10284 ac_status=$? 10285 echo "$as_me:10285: \$? = $ac_status" >&5 10286 (exit $ac_status); }; then 10287 ac_cv_var_h_nerr=yes 10288else 10289 echo "$as_me: failed program was:" >&5 10290cat conftest.$ac_ext >&5 10291ac_cv_var_h_nerr=no 10292fi 10293rm -f conftest$ac_exeext conftest.$ac_ext 10294 10295fi 10296 10297ac_foo=`eval echo \\$ac_cv_var_h_nerr` 10298echo "$as_me:10298: result: $ac_foo" >&5 10299echo "${ECHO_T}$ac_foo" >&6 10300if test "$ac_foo" = yes; then 10301 10302cat >>confdefs.h <<EOF 10303#define HAVE_H_NERR 1 10304EOF 10305 10306echo "$as_me:10306: checking if h_nerr is properly declared" >&5 10307echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6 10308if test "${ac_cv_var_h_nerr_declaration+set}" = set; then 10309 echo $ECHO_N "(cached) $ECHO_C" >&6 10310else 10311 10312cat >conftest.$ac_ext <<_ACEOF 10313#line 10313 "configure" 10314#include "confdefs.h" 10315#ifdef HAVE_NETDB_H 10316#include <netdb.h> 10317#endif 10318extern struct { int foo; } h_nerr; 10319int 10320main () 10321{ 10322h_nerr.foo = 1; 10323 ; 10324 return 0; 10325} 10326_ACEOF 10327rm -f conftest.$ac_objext 10328if { (eval echo "$as_me:10328: \"$ac_compile\"") >&5 10329 (eval $ac_compile) 2>&5 10330 ac_status=$? 10331 echo "$as_me:10331: \$? = $ac_status" >&5 10332 (exit $ac_status); } && 10333 { (eval echo "$as_me:10333: \"test -s conftest.$ac_objext\"") >&5 10334 (eval test -s conftest.$ac_objext) 2>&5 10335 ac_status=$? 10336 echo "$as_me:10336: \$? = $ac_status" >&5 10337 (exit $ac_status); }; then 10338 eval "ac_cv_var_h_nerr_declaration=no" 10339else 10340 echo "$as_me: failed program was:" >&5 10341cat conftest.$ac_ext >&5 10342eval "ac_cv_var_h_nerr_declaration=yes" 10343fi 10344rm -f conftest.$ac_objext conftest.$ac_ext 10345 10346fi 10347 10348echo "$as_me:10348: result: $ac_cv_var_h_nerr_declaration" >&5 10349echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6 10350if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then 10351 10352cat >>confdefs.h <<\EOF 10353#define HAVE_H_NERR_DECLARATION 1 10354EOF 10355 10356fi 10357 10358fi 10359 10360echo "$as_me:10360: checking for __progname" >&5 10361echo $ECHO_N "checking for __progname... $ECHO_C" >&6 10362if test "${ac_cv_var___progname+set}" = set; then 10363 echo $ECHO_N "(cached) $ECHO_C" >&6 10364else 10365 10366cat >conftest.$ac_ext <<_ACEOF 10367#line 10367 "configure" 10368#include "confdefs.h" 10369extern int __progname; 10370int foo() { return __progname; } 10371int 10372main () 10373{ 10374foo() 10375 ; 10376 return 0; 10377} 10378_ACEOF 10379rm -f conftest.$ac_objext conftest$ac_exeext 10380if { (eval echo "$as_me:10380: \"$ac_link\"") >&5 10381 (eval $ac_link) 2>&5 10382 ac_status=$? 10383 echo "$as_me:10383: \$? = $ac_status" >&5 10384 (exit $ac_status); } && 10385 { (eval echo "$as_me:10385: \"test -s conftest$ac_exeext\"") >&5 10386 (eval test -s conftest$ac_exeext) 2>&5 10387 ac_status=$? 10388 echo "$as_me:10388: \$? = $ac_status" >&5 10389 (exit $ac_status); }; then 10390 ac_cv_var___progname=yes 10391else 10392 echo "$as_me: failed program was:" >&5 10393cat conftest.$ac_ext >&5 10394ac_cv_var___progname=no 10395fi 10396rm -f conftest$ac_exeext conftest.$ac_ext 10397 10398fi 10399 10400ac_foo=`eval echo \\$ac_cv_var___progname` 10401echo "$as_me:10401: result: $ac_foo" >&5 10402echo "${ECHO_T}$ac_foo" >&6 10403if test "$ac_foo" = yes; then 10404 10405cat >>confdefs.h <<EOF 10406#define HAVE___PROGNAME 1 10407EOF 10408 10409echo "$as_me:10409: checking if __progname is properly declared" >&5 10410echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6 10411if test "${ac_cv_var___progname_declaration+set}" = set; then 10412 echo $ECHO_N "(cached) $ECHO_C" >&6 10413else 10414 10415cat >conftest.$ac_ext <<_ACEOF 10416#line 10416 "configure" 10417#include "confdefs.h" 10418#ifdef HAVE_ERR_H 10419#include <err.h> 10420#endif 10421extern struct { int foo; } __progname; 10422int 10423main () 10424{ 10425__progname.foo = 1; 10426 ; 10427 return 0; 10428} 10429_ACEOF 10430rm -f conftest.$ac_objext 10431if { (eval echo "$as_me:10431: \"$ac_compile\"") >&5 10432 (eval $ac_compile) 2>&5 10433 ac_status=$? 10434 echo "$as_me:10434: \$? = $ac_status" >&5 10435 (exit $ac_status); } && 10436 { (eval echo "$as_me:10436: \"test -s conftest.$ac_objext\"") >&5 10437 (eval test -s conftest.$ac_objext) 2>&5 10438 ac_status=$? 10439 echo "$as_me:10439: \$? = $ac_status" >&5 10440 (exit $ac_status); }; then 10441 eval "ac_cv_var___progname_declaration=no" 10442else 10443 echo "$as_me: failed program was:" >&5 10444cat conftest.$ac_ext >&5 10445eval "ac_cv_var___progname_declaration=yes" 10446fi 10447rm -f conftest.$ac_objext conftest.$ac_ext 10448 10449fi 10450 10451echo "$as_me:10451: result: $ac_cv_var___progname_declaration" >&5 10452echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6 10453if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then 10454 10455cat >>confdefs.h <<\EOF 10456#define HAVE___PROGNAME_DECLARATION 1 10457EOF 10458 10459fi 10460 10461fi 10462 10463echo "$as_me:10463: checking if optarg is properly declared" >&5 10464echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6 10465if test "${ac_cv_var_optarg_declaration+set}" = set; then 10466 echo $ECHO_N "(cached) $ECHO_C" >&6 10467else 10468 10469cat >conftest.$ac_ext <<_ACEOF 10470#line 10470 "configure" 10471#include "confdefs.h" 10472#include <stdlib.h> 10473#ifdef HAVE_UNISTD_H 10474#include <unistd.h> 10475#endif 10476extern struct { int foo; } optarg; 10477int 10478main () 10479{ 10480optarg.foo = 1; 10481 ; 10482 return 0; 10483} 10484_ACEOF 10485rm -f conftest.$ac_objext 10486if { (eval echo "$as_me:10486: \"$ac_compile\"") >&5 10487 (eval $ac_compile) 2>&5 10488 ac_status=$? 10489 echo "$as_me:10489: \$? = $ac_status" >&5 10490 (exit $ac_status); } && 10491 { (eval echo "$as_me:10491: \"test -s conftest.$ac_objext\"") >&5 10492 (eval test -s conftest.$ac_objext) 2>&5 10493 ac_status=$? 10494 echo "$as_me:10494: \$? = $ac_status" >&5 10495 (exit $ac_status); }; then 10496 eval "ac_cv_var_optarg_declaration=no" 10497else 10498 echo "$as_me: failed program was:" >&5 10499cat conftest.$ac_ext >&5 10500eval "ac_cv_var_optarg_declaration=yes" 10501fi 10502rm -f conftest.$ac_objext conftest.$ac_ext 10503 10504fi 10505 10506echo "$as_me:10506: result: $ac_cv_var_optarg_declaration" >&5 10507echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6 10508if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then 10509 10510cat >>confdefs.h <<\EOF 10511#define HAVE_OPTARG_DECLARATION 1 10512EOF 10513 10514fi 10515 10516echo "$as_me:10516: checking if optind is properly declared" >&5 10517echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6 10518if test "${ac_cv_var_optind_declaration+set}" = set; then 10519 echo $ECHO_N "(cached) $ECHO_C" >&6 10520else 10521 10522cat >conftest.$ac_ext <<_ACEOF 10523#line 10523 "configure" 10524#include "confdefs.h" 10525#include <stdlib.h> 10526#ifdef HAVE_UNISTD_H 10527#include <unistd.h> 10528#endif 10529extern struct { int foo; } optind; 10530int 10531main () 10532{ 10533optind.foo = 1; 10534 ; 10535 return 0; 10536} 10537_ACEOF 10538rm -f conftest.$ac_objext 10539if { (eval echo "$as_me:10539: \"$ac_compile\"") >&5 10540 (eval $ac_compile) 2>&5 10541 ac_status=$? 10542 echo "$as_me:10542: \$? = $ac_status" >&5 10543 (exit $ac_status); } && 10544 { (eval echo "$as_me:10544: \"test -s conftest.$ac_objext\"") >&5 10545 (eval test -s conftest.$ac_objext) 2>&5 10546 ac_status=$? 10547 echo "$as_me:10547: \$? = $ac_status" >&5 10548 (exit $ac_status); }; then 10549 eval "ac_cv_var_optind_declaration=no" 10550else 10551 echo "$as_me: failed program was:" >&5 10552cat conftest.$ac_ext >&5 10553eval "ac_cv_var_optind_declaration=yes" 10554fi 10555rm -f conftest.$ac_objext conftest.$ac_ext 10556 10557fi 10558 10559echo "$as_me:10559: result: $ac_cv_var_optind_declaration" >&5 10560echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6 10561if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then 10562 10563cat >>confdefs.h <<\EOF 10564#define HAVE_OPTIND_DECLARATION 1 10565EOF 10566 10567fi 10568 10569echo "$as_me:10569: checking if opterr is properly declared" >&5 10570echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6 10571if test "${ac_cv_var_opterr_declaration+set}" = set; then 10572 echo $ECHO_N "(cached) $ECHO_C" >&6 10573else 10574 10575cat >conftest.$ac_ext <<_ACEOF 10576#line 10576 "configure" 10577#include "confdefs.h" 10578#include <stdlib.h> 10579#ifdef HAVE_UNISTD_H 10580#include <unistd.h> 10581#endif 10582extern struct { int foo; } opterr; 10583int 10584main () 10585{ 10586opterr.foo = 1; 10587 ; 10588 return 0; 10589} 10590_ACEOF 10591rm -f conftest.$ac_objext 10592if { (eval echo "$as_me:10592: \"$ac_compile\"") >&5 10593 (eval $ac_compile) 2>&5 10594 ac_status=$? 10595 echo "$as_me:10595: \$? = $ac_status" >&5 10596 (exit $ac_status); } && 10597 { (eval echo "$as_me:10597: \"test -s conftest.$ac_objext\"") >&5 10598 (eval test -s conftest.$ac_objext) 2>&5 10599 ac_status=$? 10600 echo "$as_me:10600: \$? = $ac_status" >&5 10601 (exit $ac_status); }; then 10602 eval "ac_cv_var_opterr_declaration=no" 10603else 10604 echo "$as_me: failed program was:" >&5 10605cat conftest.$ac_ext >&5 10606eval "ac_cv_var_opterr_declaration=yes" 10607fi 10608rm -f conftest.$ac_objext conftest.$ac_ext 10609 10610fi 10611 10612echo "$as_me:10612: result: $ac_cv_var_opterr_declaration" >&5 10613echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6 10614if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then 10615 10616cat >>confdefs.h <<\EOF 10617#define HAVE_OPTERR_DECLARATION 1 10618EOF 10619 10620fi 10621 10622echo "$as_me:10622: checking if optopt is properly declared" >&5 10623echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6 10624if test "${ac_cv_var_optopt_declaration+set}" = set; then 10625 echo $ECHO_N "(cached) $ECHO_C" >&6 10626else 10627 10628cat >conftest.$ac_ext <<_ACEOF 10629#line 10629 "configure" 10630#include "confdefs.h" 10631#include <stdlib.h> 10632#ifdef HAVE_UNISTD_H 10633#include <unistd.h> 10634#endif 10635extern struct { int foo; } optopt; 10636int 10637main () 10638{ 10639optopt.foo = 1; 10640 ; 10641 return 0; 10642} 10643_ACEOF 10644rm -f conftest.$ac_objext 10645if { (eval echo "$as_me:10645: \"$ac_compile\"") >&5 10646 (eval $ac_compile) 2>&5 10647 ac_status=$? 10648 echo "$as_me:10648: \$? = $ac_status" >&5 10649 (exit $ac_status); } && 10650 { (eval echo "$as_me:10650: \"test -s conftest.$ac_objext\"") >&5 10651 (eval test -s conftest.$ac_objext) 2>&5 10652 ac_status=$? 10653 echo "$as_me:10653: \$? = $ac_status" >&5 10654 (exit $ac_status); }; then 10655 eval "ac_cv_var_optopt_declaration=no" 10656else 10657 echo "$as_me: failed program was:" >&5 10658cat conftest.$ac_ext >&5 10659eval "ac_cv_var_optopt_declaration=yes" 10660fi 10661rm -f conftest.$ac_objext conftest.$ac_ext 10662 10663fi 10664 10665echo "$as_me:10665: result: $ac_cv_var_optopt_declaration" >&5 10666echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6 10667if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then 10668 10669cat >>confdefs.h <<\EOF 10670#define HAVE_OPTOPT_DECLARATION 1 10671EOF 10672 10673fi 10674 10675echo "$as_me:10675: checking if environ is properly declared" >&5 10676echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6 10677if test "${ac_cv_var_environ_declaration+set}" = set; then 10678 echo $ECHO_N "(cached) $ECHO_C" >&6 10679else 10680 10681cat >conftest.$ac_ext <<_ACEOF 10682#line 10682 "configure" 10683#include "confdefs.h" 10684#include <stdlib.h> 10685extern struct { int foo; } environ; 10686int 10687main () 10688{ 10689environ.foo = 1; 10690 ; 10691 return 0; 10692} 10693_ACEOF 10694rm -f conftest.$ac_objext 10695if { (eval echo "$as_me:10695: \"$ac_compile\"") >&5 10696 (eval $ac_compile) 2>&5 10697 ac_status=$? 10698 echo "$as_me:10698: \$? = $ac_status" >&5 10699 (exit $ac_status); } && 10700 { (eval echo "$as_me:10700: \"test -s conftest.$ac_objext\"") >&5 10701 (eval test -s conftest.$ac_objext) 2>&5 10702 ac_status=$? 10703 echo "$as_me:10703: \$? = $ac_status" >&5 10704 (exit $ac_status); }; then 10705 eval "ac_cv_var_environ_declaration=no" 10706else 10707 echo "$as_me: failed program was:" >&5 10708cat conftest.$ac_ext >&5 10709eval "ac_cv_var_environ_declaration=yes" 10710fi 10711rm -f conftest.$ac_objext conftest.$ac_ext 10712 10713fi 10714 10715echo "$as_me:10715: result: $ac_cv_var_environ_declaration" >&5 10716echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6 10717if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then 10718 10719cat >>confdefs.h <<\EOF 10720#define HAVE_ENVIRON_DECLARATION 1 10721EOF 10722 10723fi 10724 10725echo "$as_me:10725: checking for tm_gmtoff in struct tm" >&5 10726echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 10727if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then 10728 echo $ECHO_N "(cached) $ECHO_C" >&6 10729else 10730 10731cat >conftest.$ac_ext <<_ACEOF 10732#line 10732 "configure" 10733#include "confdefs.h" 10734#include <time.h> 10735int 10736main () 10737{ 10738struct tm x; x.tm_gmtoff; 10739 ; 10740 return 0; 10741} 10742_ACEOF 10743rm -f conftest.$ac_objext 10744if { (eval echo "$as_me:10744: \"$ac_compile\"") >&5 10745 (eval $ac_compile) 2>&5 10746 ac_status=$? 10747 echo "$as_me:10747: \$? = $ac_status" >&5 10748 (exit $ac_status); } && 10749 { (eval echo "$as_me:10749: \"test -s conftest.$ac_objext\"") >&5 10750 (eval test -s conftest.$ac_objext) 2>&5 10751 ac_status=$? 10752 echo "$as_me:10752: \$? = $ac_status" >&5 10753 (exit $ac_status); }; then 10754 ac_cv_type_struct_tm_tm_gmtoff=yes 10755else 10756 echo "$as_me: failed program was:" >&5 10757cat conftest.$ac_ext >&5 10758ac_cv_type_struct_tm_tm_gmtoff=no 10759fi 10760rm -f conftest.$ac_objext conftest.$ac_ext 10761fi 10762echo "$as_me:10762: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5 10763echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6 10764if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then 10765 10766cat >>confdefs.h <<\EOF 10767#define HAVE_STRUCT_TM_TM_GMTOFF 1 10768EOF 10769 10770fi 10771 10772echo "$as_me:10772: checking for tm_zone in struct tm" >&5 10773echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6 10774if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then 10775 echo $ECHO_N "(cached) $ECHO_C" >&6 10776else 10777 10778cat >conftest.$ac_ext <<_ACEOF 10779#line 10779 "configure" 10780#include "confdefs.h" 10781#include <time.h> 10782int 10783main () 10784{ 10785struct tm x; x.tm_zone; 10786 ; 10787 return 0; 10788} 10789_ACEOF 10790rm -f conftest.$ac_objext 10791if { (eval echo "$as_me:10791: \"$ac_compile\"") >&5 10792 (eval $ac_compile) 2>&5 10793 ac_status=$? 10794 echo "$as_me:10794: \$? = $ac_status" >&5 10795 (exit $ac_status); } && 10796 { (eval echo "$as_me:10796: \"test -s conftest.$ac_objext\"") >&5 10797 (eval test -s conftest.$ac_objext) 2>&5 10798 ac_status=$? 10799 echo "$as_me:10799: \$? = $ac_status" >&5 10800 (exit $ac_status); }; then 10801 ac_cv_type_struct_tm_tm_zone=yes 10802else 10803 echo "$as_me: failed program was:" >&5 10804cat conftest.$ac_ext >&5 10805ac_cv_type_struct_tm_tm_zone=no 10806fi 10807rm -f conftest.$ac_objext conftest.$ac_ext 10808fi 10809echo "$as_me:10809: result: $ac_cv_type_struct_tm_tm_zone" >&5 10810echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6 10811if test "$ac_cv_type_struct_tm_tm_zone" = yes; then 10812 10813cat >>confdefs.h <<\EOF 10814#define HAVE_STRUCT_TM_TM_ZONE 1 10815EOF 10816 10817fi 10818 10819echo "$as_me:10819: checking for timezone" >&5 10820echo $ECHO_N "checking for timezone... $ECHO_C" >&6 10821if test "${ac_cv_var_timezone+set}" = set; then 10822 echo $ECHO_N "(cached) $ECHO_C" >&6 10823else 10824 10825cat >conftest.$ac_ext <<_ACEOF 10826#line 10826 "configure" 10827#include "confdefs.h" 10828extern int timezone; 10829int foo() { return timezone; } 10830int 10831main () 10832{ 10833foo() 10834 ; 10835 return 0; 10836} 10837_ACEOF 10838rm -f conftest.$ac_objext conftest$ac_exeext 10839if { (eval echo "$as_me:10839: \"$ac_link\"") >&5 10840 (eval $ac_link) 2>&5 10841 ac_status=$? 10842 echo "$as_me:10842: \$? = $ac_status" >&5 10843 (exit $ac_status); } && 10844 { (eval echo "$as_me:10844: \"test -s conftest$ac_exeext\"") >&5 10845 (eval test -s conftest$ac_exeext) 2>&5 10846 ac_status=$? 10847 echo "$as_me:10847: \$? = $ac_status" >&5 10848 (exit $ac_status); }; then 10849 ac_cv_var_timezone=yes 10850else 10851 echo "$as_me: failed program was:" >&5 10852cat conftest.$ac_ext >&5 10853ac_cv_var_timezone=no 10854fi 10855rm -f conftest$ac_exeext conftest.$ac_ext 10856 10857fi 10858 10859ac_foo=`eval echo \\$ac_cv_var_timezone` 10860echo "$as_me:10860: result: $ac_foo" >&5 10861echo "${ECHO_T}$ac_foo" >&6 10862if test "$ac_foo" = yes; then 10863 10864cat >>confdefs.h <<EOF 10865#define HAVE_TIMEZONE 1 10866EOF 10867 10868echo "$as_me:10868: checking if timezone is properly declared" >&5 10869echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6 10870if test "${ac_cv_var_timezone_declaration+set}" = set; then 10871 echo $ECHO_N "(cached) $ECHO_C" >&6 10872else 10873 10874cat >conftest.$ac_ext <<_ACEOF 10875#line 10875 "configure" 10876#include "confdefs.h" 10877#include <time.h> 10878extern struct { int foo; } timezone; 10879int 10880main () 10881{ 10882timezone.foo = 1; 10883 ; 10884 return 0; 10885} 10886_ACEOF 10887rm -f conftest.$ac_objext 10888if { (eval echo "$as_me:10888: \"$ac_compile\"") >&5 10889 (eval $ac_compile) 2>&5 10890 ac_status=$? 10891 echo "$as_me:10891: \$? = $ac_status" >&5 10892 (exit $ac_status); } && 10893 { (eval echo "$as_me:10893: \"test -s conftest.$ac_objext\"") >&5 10894 (eval test -s conftest.$ac_objext) 2>&5 10895 ac_status=$? 10896 echo "$as_me:10896: \$? = $ac_status" >&5 10897 (exit $ac_status); }; then 10898 eval "ac_cv_var_timezone_declaration=no" 10899else 10900 echo "$as_me: failed program was:" >&5 10901cat conftest.$ac_ext >&5 10902eval "ac_cv_var_timezone_declaration=yes" 10903fi 10904rm -f conftest.$ac_objext conftest.$ac_ext 10905 10906fi 10907 10908echo "$as_me:10908: result: $ac_cv_var_timezone_declaration" >&5 10909echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6 10910if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then 10911 10912cat >>confdefs.h <<\EOF 10913#define HAVE_TIMEZONE_DECLARATION 1 10914EOF 10915 10916fi 10917 10918fi 10919 10920cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'` 10921echo "$as_me:10921: checking for sa_family_t" >&5 10922echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 10923if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 10924 echo $ECHO_N "(cached) $ECHO_C" >&6 10925else 10926 cat >conftest.$ac_ext <<_ACEOF 10927#line 10927 "configure" 10928#include "confdefs.h" 10929#include <sys/types.h> 10930#if STDC_HEADERS 10931#include <stdlib.h> 10932#include <stddef.h> 10933#endif 10934#include <sys/socket.h> 10935int 10936main () 10937{ 10938sa_family_t foo; 10939 ; 10940 return 0; 10941} 10942_ACEOF 10943rm -f conftest.$ac_objext 10944if { (eval echo "$as_me:10944: \"$ac_compile\"") >&5 10945 (eval $ac_compile) 2>&5 10946 ac_status=$? 10947 echo "$as_me:10947: \$? = $ac_status" >&5 10948 (exit $ac_status); } && 10949 { (eval echo "$as_me:10949: \"test -s conftest.$ac_objext\"") >&5 10950 (eval test -s conftest.$ac_objext) 2>&5 10951 ac_status=$? 10952 echo "$as_me:10952: \$? = $ac_status" >&5 10953 (exit $ac_status); }; then 10954 eval "ac_cv_type_$cv=yes" 10955else 10956 echo "$as_me: failed program was:" >&5 10957cat conftest.$ac_ext >&5 10958eval "ac_cv_type_$cv=no" 10959fi 10960rm -f conftest.$ac_objext conftest.$ac_ext 10961fi 10962ac_foo=`eval echo \\$ac_cv_type_$cv` 10963echo "$as_me:10963: result: $ac_foo" >&5 10964echo "${ECHO_T}$ac_foo" >&6 10965if test "$ac_foo" = yes; then 10966 ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 10967if false; then 10968 echo "$as_me:10968: checking for sa_family_t" >&5 10969echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 10970if test "${ac_cv_type_sa_family_t+set}" = set; then 10971 echo $ECHO_N "(cached) $ECHO_C" >&6 10972else 10973 cat >conftest.$ac_ext <<_ACEOF 10974#line 10974 "configure" 10975#include "confdefs.h" 10976$ac_includes_default 10977int 10978main () 10979{ 10980if ((sa_family_t *) 0) 10981 return 0; 10982if (sizeof (sa_family_t)) 10983 return 0; 10984 ; 10985 return 0; 10986} 10987_ACEOF 10988rm -f conftest.$ac_objext 10989if { (eval echo "$as_me:10989: \"$ac_compile\"") >&5 10990 (eval $ac_compile) 2>&5 10991 ac_status=$? 10992 echo "$as_me:10992: \$? = $ac_status" >&5 10993 (exit $ac_status); } && 10994 { (eval echo "$as_me:10994: \"test -s conftest.$ac_objext\"") >&5 10995 (eval test -s conftest.$ac_objext) 2>&5 10996 ac_status=$? 10997 echo "$as_me:10997: \$? = $ac_status" >&5 10998 (exit $ac_status); }; then 10999 ac_cv_type_sa_family_t=yes 11000else 11001 echo "$as_me: failed program was:" >&5 11002cat conftest.$ac_ext >&5 11003ac_cv_type_sa_family_t=no 11004fi 11005rm -f conftest.$ac_objext conftest.$ac_ext 11006fi 11007echo "$as_me:11007: result: $ac_cv_type_sa_family_t" >&5 11008echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6 11009if test $ac_cv_type_sa_family_t = yes; then 11010 11011cat >>confdefs.h <<EOF 11012#define HAVE_SA_FAMILY_T 1 11013EOF 11014 11015fi 11016 11017fi 11018 11019cat >>confdefs.h <<EOF 11020#define $ac_tr_hdr 1 11021EOF 11022 11023fi 11024 11025cv=`echo "socklen_t" | sed 'y%./+- %__p__%'` 11026echo "$as_me:11026: checking for socklen_t" >&5 11027echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 11028if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 11029 echo $ECHO_N "(cached) $ECHO_C" >&6 11030else 11031 cat >conftest.$ac_ext <<_ACEOF 11032#line 11032 "configure" 11033#include "confdefs.h" 11034#include <sys/types.h> 11035#if STDC_HEADERS 11036#include <stdlib.h> 11037#include <stddef.h> 11038#endif 11039#include <sys/socket.h> 11040int 11041main () 11042{ 11043socklen_t foo; 11044 ; 11045 return 0; 11046} 11047_ACEOF 11048rm -f conftest.$ac_objext 11049if { (eval echo "$as_me:11049: \"$ac_compile\"") >&5 11050 (eval $ac_compile) 2>&5 11051 ac_status=$? 11052 echo "$as_me:11052: \$? = $ac_status" >&5 11053 (exit $ac_status); } && 11054 { (eval echo "$as_me:11054: \"test -s conftest.$ac_objext\"") >&5 11055 (eval test -s conftest.$ac_objext) 2>&5 11056 ac_status=$? 11057 echo "$as_me:11057: \$? = $ac_status" >&5 11058 (exit $ac_status); }; then 11059 eval "ac_cv_type_$cv=yes" 11060else 11061 echo "$as_me: failed program was:" >&5 11062cat conftest.$ac_ext >&5 11063eval "ac_cv_type_$cv=no" 11064fi 11065rm -f conftest.$ac_objext conftest.$ac_ext 11066fi 11067ac_foo=`eval echo \\$ac_cv_type_$cv` 11068echo "$as_me:11068: result: $ac_foo" >&5 11069echo "${ECHO_T}$ac_foo" >&6 11070if test "$ac_foo" = yes; then 11071 ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 11072if false; then 11073 echo "$as_me:11073: checking for socklen_t" >&5 11074echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 11075if test "${ac_cv_type_socklen_t+set}" = set; then 11076 echo $ECHO_N "(cached) $ECHO_C" >&6 11077else 11078 cat >conftest.$ac_ext <<_ACEOF 11079#line 11079 "configure" 11080#include "confdefs.h" 11081$ac_includes_default 11082int 11083main () 11084{ 11085if ((socklen_t *) 0) 11086 return 0; 11087if (sizeof (socklen_t)) 11088 return 0; 11089 ; 11090 return 0; 11091} 11092_ACEOF 11093rm -f conftest.$ac_objext 11094if { (eval echo "$as_me:11094: \"$ac_compile\"") >&5 11095 (eval $ac_compile) 2>&5 11096 ac_status=$? 11097 echo "$as_me:11097: \$? = $ac_status" >&5 11098 (exit $ac_status); } && 11099 { (eval echo "$as_me:11099: \"test -s conftest.$ac_objext\"") >&5 11100 (eval test -s conftest.$ac_objext) 2>&5 11101 ac_status=$? 11102 echo "$as_me:11102: \$? = $ac_status" >&5 11103 (exit $ac_status); }; then 11104 ac_cv_type_socklen_t=yes 11105else 11106 echo "$as_me: failed program was:" >&5 11107cat conftest.$ac_ext >&5 11108ac_cv_type_socklen_t=no 11109fi 11110rm -f conftest.$ac_objext conftest.$ac_ext 11111fi 11112echo "$as_me:11112: result: $ac_cv_type_socklen_t" >&5 11113echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 11114if test $ac_cv_type_socklen_t = yes; then 11115 11116cat >>confdefs.h <<EOF 11117#define HAVE_SOCKLEN_T 1 11118EOF 11119 11120fi 11121 11122fi 11123 11124cat >>confdefs.h <<EOF 11125#define $ac_tr_hdr 1 11126EOF 11127 11128fi 11129 11130cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'` 11131echo "$as_me:11131: checking for struct sockaddr" >&5 11132echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6 11133if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 11134 echo $ECHO_N "(cached) $ECHO_C" >&6 11135else 11136 cat >conftest.$ac_ext <<_ACEOF 11137#line 11137 "configure" 11138#include "confdefs.h" 11139#include <sys/types.h> 11140#if STDC_HEADERS 11141#include <stdlib.h> 11142#include <stddef.h> 11143#endif 11144#include <sys/socket.h> 11145int 11146main () 11147{ 11148struct sockaddr foo; 11149 ; 11150 return 0; 11151} 11152_ACEOF 11153rm -f conftest.$ac_objext 11154if { (eval echo "$as_me:11154: \"$ac_compile\"") >&5 11155 (eval $ac_compile) 2>&5 11156 ac_status=$? 11157 echo "$as_me:11157: \$? = $ac_status" >&5 11158 (exit $ac_status); } && 11159 { (eval echo "$as_me:11159: \"test -s conftest.$ac_objext\"") >&5 11160 (eval test -s conftest.$ac_objext) 2>&5 11161 ac_status=$? 11162 echo "$as_me:11162: \$? = $ac_status" >&5 11163 (exit $ac_status); }; then 11164 eval "ac_cv_type_$cv=yes" 11165else 11166 echo "$as_me: failed program was:" >&5 11167cat conftest.$ac_ext >&5 11168eval "ac_cv_type_$cv=no" 11169fi 11170rm -f conftest.$ac_objext conftest.$ac_ext 11171fi 11172ac_foo=`eval echo \\$ac_cv_type_$cv` 11173echo "$as_me:11173: result: $ac_foo" >&5 11174echo "${ECHO_T}$ac_foo" >&6 11175if test "$ac_foo" = yes; then 11176 ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 11177if false; then 11178 echo "$as_me:11178: checking for struct sockaddr" >&5 11179echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6 11180if test "${ac_cv_type_struct_sockaddr+set}" = set; then 11181 echo $ECHO_N "(cached) $ECHO_C" >&6 11182else 11183 cat >conftest.$ac_ext <<_ACEOF 11184#line 11184 "configure" 11185#include "confdefs.h" 11186$ac_includes_default 11187int 11188main () 11189{ 11190if ((struct sockaddr *) 0) 11191 return 0; 11192if (sizeof (struct sockaddr)) 11193 return 0; 11194 ; 11195 return 0; 11196} 11197_ACEOF 11198rm -f conftest.$ac_objext 11199if { (eval echo "$as_me:11199: \"$ac_compile\"") >&5 11200 (eval $ac_compile) 2>&5 11201 ac_status=$? 11202 echo "$as_me:11202: \$? = $ac_status" >&5 11203 (exit $ac_status); } && 11204 { (eval echo "$as_me:11204: \"test -s conftest.$ac_objext\"") >&5 11205 (eval test -s conftest.$ac_objext) 2>&5 11206 ac_status=$? 11207 echo "$as_me:11207: \$? = $ac_status" >&5 11208 (exit $ac_status); }; then 11209 ac_cv_type_struct_sockaddr=yes 11210else 11211 echo "$as_me: failed program was:" >&5 11212cat conftest.$ac_ext >&5 11213ac_cv_type_struct_sockaddr=no 11214fi 11215rm -f conftest.$ac_objext conftest.$ac_ext 11216fi 11217echo "$as_me:11217: result: $ac_cv_type_struct_sockaddr" >&5 11218echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6 11219if test $ac_cv_type_struct_sockaddr = yes; then 11220 11221cat >>confdefs.h <<EOF 11222#define HAVE_STRUCT_SOCKADDR 1 11223EOF 11224 11225fi 11226 11227fi 11228 11229cat >>confdefs.h <<EOF 11230#define $ac_tr_hdr 1 11231EOF 11232 11233fi 11234 11235cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'` 11236echo "$as_me:11236: checking for struct sockaddr_storage" >&5 11237echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 11238if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 11239 echo $ECHO_N "(cached) $ECHO_C" >&6 11240else 11241 cat >conftest.$ac_ext <<_ACEOF 11242#line 11242 "configure" 11243#include "confdefs.h" 11244#include <sys/types.h> 11245#if STDC_HEADERS 11246#include <stdlib.h> 11247#include <stddef.h> 11248#endif 11249#include <sys/socket.h> 11250int 11251main () 11252{ 11253struct sockaddr_storage foo; 11254 ; 11255 return 0; 11256} 11257_ACEOF 11258rm -f conftest.$ac_objext 11259if { (eval echo "$as_me:11259: \"$ac_compile\"") >&5 11260 (eval $ac_compile) 2>&5 11261 ac_status=$? 11262 echo "$as_me:11262: \$? = $ac_status" >&5 11263 (exit $ac_status); } && 11264 { (eval echo "$as_me:11264: \"test -s conftest.$ac_objext\"") >&5 11265 (eval test -s conftest.$ac_objext) 2>&5 11266 ac_status=$? 11267 echo "$as_me:11267: \$? = $ac_status" >&5 11268 (exit $ac_status); }; then 11269 eval "ac_cv_type_$cv=yes" 11270else 11271 echo "$as_me: failed program was:" >&5 11272cat conftest.$ac_ext >&5 11273eval "ac_cv_type_$cv=no" 11274fi 11275rm -f conftest.$ac_objext conftest.$ac_ext 11276fi 11277ac_foo=`eval echo \\$ac_cv_type_$cv` 11278echo "$as_me:11278: result: $ac_foo" >&5 11279echo "${ECHO_T}$ac_foo" >&6 11280if test "$ac_foo" = yes; then 11281 ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 11282if false; then 11283 echo "$as_me:11283: checking for struct sockaddr_storage" >&5 11284echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 11285if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then 11286 echo $ECHO_N "(cached) $ECHO_C" >&6 11287else 11288 cat >conftest.$ac_ext <<_ACEOF 11289#line 11289 "configure" 11290#include "confdefs.h" 11291$ac_includes_default 11292int 11293main () 11294{ 11295if ((struct sockaddr_storage *) 0) 11296 return 0; 11297if (sizeof (struct sockaddr_storage)) 11298 return 0; 11299 ; 11300 return 0; 11301} 11302_ACEOF 11303rm -f conftest.$ac_objext 11304if { (eval echo "$as_me:11304: \"$ac_compile\"") >&5 11305 (eval $ac_compile) 2>&5 11306 ac_status=$? 11307 echo "$as_me:11307: \$? = $ac_status" >&5 11308 (exit $ac_status); } && 11309 { (eval echo "$as_me:11309: \"test -s conftest.$ac_objext\"") >&5 11310 (eval test -s conftest.$ac_objext) 2>&5 11311 ac_status=$? 11312 echo "$as_me:11312: \$? = $ac_status" >&5 11313 (exit $ac_status); }; then 11314 ac_cv_type_struct_sockaddr_storage=yes 11315else 11316 echo "$as_me: failed program was:" >&5 11317cat conftest.$ac_ext >&5 11318ac_cv_type_struct_sockaddr_storage=no 11319fi 11320rm -f conftest.$ac_objext conftest.$ac_ext 11321fi 11322echo "$as_me:11322: result: $ac_cv_type_struct_sockaddr_storage" >&5 11323echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6 11324if test $ac_cv_type_struct_sockaddr_storage = yes; then 11325 11326cat >>confdefs.h <<EOF 11327#define HAVE_STRUCT_SOCKADDR_STORAGE 1 11328EOF 11329 11330fi 11331 11332fi 11333 11334cat >>confdefs.h <<EOF 11335#define $ac_tr_hdr 1 11336EOF 11337 11338fi 11339 11340cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'` 11341echo "$as_me:11341: checking for struct addrinfo" >&5 11342echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 11343if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 11344 echo $ECHO_N "(cached) $ECHO_C" >&6 11345else 11346 cat >conftest.$ac_ext <<_ACEOF 11347#line 11347 "configure" 11348#include "confdefs.h" 11349#include <sys/types.h> 11350#if STDC_HEADERS 11351#include <stdlib.h> 11352#include <stddef.h> 11353#endif 11354#include <netdb.h> 11355int 11356main () 11357{ 11358struct addrinfo foo; 11359 ; 11360 return 0; 11361} 11362_ACEOF 11363rm -f conftest.$ac_objext 11364if { (eval echo "$as_me:11364: \"$ac_compile\"") >&5 11365 (eval $ac_compile) 2>&5 11366 ac_status=$? 11367 echo "$as_me:11367: \$? = $ac_status" >&5 11368 (exit $ac_status); } && 11369 { (eval echo "$as_me:11369: \"test -s conftest.$ac_objext\"") >&5 11370 (eval test -s conftest.$ac_objext) 2>&5 11371 ac_status=$? 11372 echo "$as_me:11372: \$? = $ac_status" >&5 11373 (exit $ac_status); }; then 11374 eval "ac_cv_type_$cv=yes" 11375else 11376 echo "$as_me: failed program was:" >&5 11377cat conftest.$ac_ext >&5 11378eval "ac_cv_type_$cv=no" 11379fi 11380rm -f conftest.$ac_objext conftest.$ac_ext 11381fi 11382ac_foo=`eval echo \\$ac_cv_type_$cv` 11383echo "$as_me:11383: result: $ac_foo" >&5 11384echo "${ECHO_T}$ac_foo" >&6 11385if test "$ac_foo" = yes; then 11386 ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 11387if false; then 11388 echo "$as_me:11388: checking for struct addrinfo" >&5 11389echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 11390if test "${ac_cv_type_struct_addrinfo+set}" = set; then 11391 echo $ECHO_N "(cached) $ECHO_C" >&6 11392else 11393 cat >conftest.$ac_ext <<_ACEOF 11394#line 11394 "configure" 11395#include "confdefs.h" 11396$ac_includes_default 11397int 11398main () 11399{ 11400if ((struct addrinfo *) 0) 11401 return 0; 11402if (sizeof (struct addrinfo)) 11403 return 0; 11404 ; 11405 return 0; 11406} 11407_ACEOF 11408rm -f conftest.$ac_objext 11409if { (eval echo "$as_me:11409: \"$ac_compile\"") >&5 11410 (eval $ac_compile) 2>&5 11411 ac_status=$? 11412 echo "$as_me:11412: \$? = $ac_status" >&5 11413 (exit $ac_status); } && 11414 { (eval echo "$as_me:11414: \"test -s conftest.$ac_objext\"") >&5 11415 (eval test -s conftest.$ac_objext) 2>&5 11416 ac_status=$? 11417 echo "$as_me:11417: \$? = $ac_status" >&5 11418 (exit $ac_status); }; then 11419 ac_cv_type_struct_addrinfo=yes 11420else 11421 echo "$as_me: failed program was:" >&5 11422cat conftest.$ac_ext >&5 11423ac_cv_type_struct_addrinfo=no 11424fi 11425rm -f conftest.$ac_objext conftest.$ac_ext 11426fi 11427echo "$as_me:11427: result: $ac_cv_type_struct_addrinfo" >&5 11428echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6 11429if test $ac_cv_type_struct_addrinfo = yes; then 11430 11431cat >>confdefs.h <<EOF 11432#define HAVE_STRUCT_ADDRINFO 1 11433EOF 11434 11435fi 11436 11437fi 11438 11439cat >>confdefs.h <<EOF 11440#define $ac_tr_hdr 1 11441EOF 11442 11443fi 11444 11445cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'` 11446echo "$as_me:11446: checking for struct ifaddrs" >&5 11447echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6 11448if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 11449 echo $ECHO_N "(cached) $ECHO_C" >&6 11450else 11451 cat >conftest.$ac_ext <<_ACEOF 11452#line 11452 "configure" 11453#include "confdefs.h" 11454#include <sys/types.h> 11455#if STDC_HEADERS 11456#include <stdlib.h> 11457#include <stddef.h> 11458#endif 11459#include <ifaddrs.h> 11460int 11461main () 11462{ 11463struct ifaddrs foo; 11464 ; 11465 return 0; 11466} 11467_ACEOF 11468rm -f conftest.$ac_objext 11469if { (eval echo "$as_me:11469: \"$ac_compile\"") >&5 11470 (eval $ac_compile) 2>&5 11471 ac_status=$? 11472 echo "$as_me:11472: \$? = $ac_status" >&5 11473 (exit $ac_status); } && 11474 { (eval echo "$as_me:11474: \"test -s conftest.$ac_objext\"") >&5 11475 (eval test -s conftest.$ac_objext) 2>&5 11476 ac_status=$? 11477 echo "$as_me:11477: \$? = $ac_status" >&5 11478 (exit $ac_status); }; then 11479 eval "ac_cv_type_$cv=yes" 11480else 11481 echo "$as_me: failed program was:" >&5 11482cat conftest.$ac_ext >&5 11483eval "ac_cv_type_$cv=no" 11484fi 11485rm -f conftest.$ac_objext conftest.$ac_ext 11486fi 11487ac_foo=`eval echo \\$ac_cv_type_$cv` 11488echo "$as_me:11488: result: $ac_foo" >&5 11489echo "${ECHO_T}$ac_foo" >&6 11490if test "$ac_foo" = yes; then 11491 ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 11492if false; then 11493 echo "$as_me:11493: checking for struct ifaddrs" >&5 11494echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6 11495if test "${ac_cv_type_struct_ifaddrs+set}" = set; then 11496 echo $ECHO_N "(cached) $ECHO_C" >&6 11497else 11498 cat >conftest.$ac_ext <<_ACEOF 11499#line 11499 "configure" 11500#include "confdefs.h" 11501$ac_includes_default 11502int 11503main () 11504{ 11505if ((struct ifaddrs *) 0) 11506 return 0; 11507if (sizeof (struct ifaddrs)) 11508 return 0; 11509 ; 11510 return 0; 11511} 11512_ACEOF 11513rm -f conftest.$ac_objext 11514if { (eval echo "$as_me:11514: \"$ac_compile\"") >&5 11515 (eval $ac_compile) 2>&5 11516 ac_status=$? 11517 echo "$as_me:11517: \$? = $ac_status" >&5 11518 (exit $ac_status); } && 11519 { (eval echo "$as_me:11519: \"test -s conftest.$ac_objext\"") >&5 11520 (eval test -s conftest.$ac_objext) 2>&5 11521 ac_status=$? 11522 echo "$as_me:11522: \$? = $ac_status" >&5 11523 (exit $ac_status); }; then 11524 ac_cv_type_struct_ifaddrs=yes 11525else 11526 echo "$as_me: failed program was:" >&5 11527cat conftest.$ac_ext >&5 11528ac_cv_type_struct_ifaddrs=no 11529fi 11530rm -f conftest.$ac_objext conftest.$ac_ext 11531fi 11532echo "$as_me:11532: result: $ac_cv_type_struct_ifaddrs" >&5 11533echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6 11534if test $ac_cv_type_struct_ifaddrs = yes; then 11535 11536cat >>confdefs.h <<EOF 11537#define HAVE_STRUCT_IFADDRS 1 11538EOF 11539 11540fi 11541 11542fi 11543 11544cat >>confdefs.h <<EOF 11545#define $ac_tr_hdr 1 11546EOF 11547 11548fi 11549 11550echo "$as_me:11550: checking for struct winsize" >&5 11551echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6 11552if test "${ac_cv_struct_winsize+set}" = set; then 11553 echo $ECHO_N "(cached) $ECHO_C" >&6 11554else 11555 11556ac_cv_struct_winsize=no 11557for i in sys/termios.h sys/ioctl.h; do 11558cat >conftest.$ac_ext <<_ACEOF 11559#line 11559 "configure" 11560#include "confdefs.h" 11561#include <$i> 11562 11563_ACEOF 11564if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11565 egrep "struct[ ]*winsize" >/dev/null 2>&1; then 11566 ac_cv_struct_winsize=yes; break 11567fi 11568rm -f conftest* 11569done 11570 11571fi 11572 11573if test "$ac_cv_struct_winsize" = "yes"; then 11574 11575cat >>confdefs.h <<\EOF 11576#define HAVE_STRUCT_WINSIZE 1 11577EOF 11578 11579fi 11580echo "$as_me:11580: result: $ac_cv_struct_winsize" >&5 11581echo "${ECHO_T}$ac_cv_struct_winsize" >&6 11582cat >conftest.$ac_ext <<_ACEOF 11583#line 11583 "configure" 11584#include "confdefs.h" 11585#include <termios.h> 11586 11587_ACEOF 11588if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11589 egrep "ws_xpixel" >/dev/null 2>&1; then 11590 11591cat >>confdefs.h <<\EOF 11592#define HAVE_WS_XPIXEL 1 11593EOF 11594 11595fi 11596rm -f conftest* 11597 11598cat >conftest.$ac_ext <<_ACEOF 11599#line 11599 "configure" 11600#include "confdefs.h" 11601#include <termios.h> 11602 11603_ACEOF 11604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11605 egrep "ws_ypixel" >/dev/null 2>&1; then 11606 11607cat >>confdefs.h <<\EOF 11608#define HAVE_WS_YPIXEL 1 11609EOF 11610 11611fi 11612rm -f conftest* 11613 11614echo "$as_me:11614: checking for struct spwd" >&5 11615echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6 11616if test "${ac_cv_struct_spwd+set}" = set; then 11617 echo $ECHO_N "(cached) $ECHO_C" >&6 11618else 11619 11620cat >conftest.$ac_ext <<_ACEOF 11621#line 11621 "configure" 11622#include "confdefs.h" 11623#include <pwd.h> 11624#ifdef HAVE_SHADOW_H 11625#include <shadow.h> 11626#endif 11627int 11628main () 11629{ 11630struct spwd foo; 11631 ; 11632 return 0; 11633} 11634_ACEOF 11635rm -f conftest.$ac_objext 11636if { (eval echo "$as_me:11636: \"$ac_compile\"") >&5 11637 (eval $ac_compile) 2>&5 11638 ac_status=$? 11639 echo "$as_me:11639: \$? = $ac_status" >&5 11640 (exit $ac_status); } && 11641 { (eval echo "$as_me:11641: \"test -s conftest.$ac_objext\"") >&5 11642 (eval test -s conftest.$ac_objext) 2>&5 11643 ac_status=$? 11644 echo "$as_me:11644: \$? = $ac_status" >&5 11645 (exit $ac_status); }; then 11646 ac_cv_struct_spwd=yes 11647else 11648 echo "$as_me: failed program was:" >&5 11649cat conftest.$ac_ext >&5 11650ac_cv_struct_spwd=no 11651fi 11652rm -f conftest.$ac_objext conftest.$ac_ext 11653 11654fi 11655 11656echo "$as_me:11656: result: $ac_cv_struct_spwd" >&5 11657echo "${ECHO_T}$ac_cv_struct_spwd" >&6 11658 11659if test "$ac_cv_struct_spwd" = "yes"; then 11660 11661cat >>confdefs.h <<\EOF 11662#define HAVE_STRUCT_SPWD 1 11663EOF 11664 11665fi 11666 11667LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)" 11668 11669LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken" 11670 11671# Check whether --with-openldap or --without-openldap was given. 11672if test "${with_openldap+set}" = set; then 11673 withval="$with_openldap" 11674 11675fi; 11676 11677# Check whether --with-openldap-lib or --without-openldap-lib was given. 11678if test "${with_openldap_lib+set}" = set; then 11679 withval="$with_openldap_lib" 11680 if test "$withval" = "yes" -o "$withval" = "no"; then 11681 { { echo "$as_me:11681: error: No argument for --with-openldap-lib" >&5 11682echo "$as_me: error: No argument for --with-openldap-lib" >&2;} 11683 { (exit 1); exit 1; }; } 11684elif test "X$with_openldap" = "X"; then 11685 with_openldap=yes 11686fi 11687fi; 11688 11689# Check whether --with-openldap-include or --without-openldap-include was given. 11690if test "${with_openldap_include+set}" = set; then 11691 withval="$with_openldap_include" 11692 if test "$withval" = "yes" -o "$withval" = "no"; then 11693 { { echo "$as_me:11693: error: No argument for --with-openldap-include" >&5 11694echo "$as_me: error: No argument for --with-openldap-include" >&2;} 11695 { (exit 1); exit 1; }; } 11696elif test "X$with_openldap" = "X"; then 11697 with_openldap=yes 11698fi 11699fi; 11700 11701echo "$as_me:11701: checking for openldap" >&5 11702echo $ECHO_N "checking for openldap... $ECHO_C" >&6 11703 11704case "$with_openldap" in 11705yes) ;; 11706no) ;; 11707"") ;; 11708*) if test "$with_openldap_include" = ""; then 11709 with_openldap_include="$with_openldap/include" 11710 fi 11711 if test "$with_openldap_lib" = ""; then 11712 with_openldap_lib="$with_openldap/lib$abilibdirext" 11713 fi 11714 ;; 11715esac 11716header_dirs= 11717lib_dirs= 11718d='' 11719for i in $d; do 11720 header_dirs="$header_dirs $i/include" 11721 lib_dirs="$lib_dirs $i/lib$abilibdirext" 11722done 11723 11724case "$with_openldap_include" in 11725yes) ;; 11726no) ;; 11727*) header_dirs="$with_openldap_include $header_dirs";; 11728esac 11729case "$with_openldap_lib" in 11730yes) ;; 11731no) ;; 11732*) lib_dirs="$with_openldap_lib $lib_dirs";; 11733esac 11734 11735save_CFLAGS="$CFLAGS" 11736save_LIBS="$LIBS" 11737ires= lres= 11738for i in $header_dirs; do 11739 CFLAGS="-I$i $save_CFLAGS" 11740 cat >conftest.$ac_ext <<_ACEOF 11741#line 11741 "configure" 11742#include "confdefs.h" 11743#include <ldap.h> 11744int 11745main () 11746{ 11747 11748 ; 11749 return 0; 11750} 11751_ACEOF 11752rm -f conftest.$ac_objext 11753if { (eval echo "$as_me:11753: \"$ac_compile\"") >&5 11754 (eval $ac_compile) 2>&5 11755 ac_status=$? 11756 echo "$as_me:11756: \$? = $ac_status" >&5 11757 (exit $ac_status); } && 11758 { (eval echo "$as_me:11758: \"test -s conftest.$ac_objext\"") >&5 11759 (eval test -s conftest.$ac_objext) 2>&5 11760 ac_status=$? 11761 echo "$as_me:11761: \$? = $ac_status" >&5 11762 (exit $ac_status); }; then 11763 ires=$i;break 11764else 11765 echo "$as_me: failed program was:" >&5 11766cat conftest.$ac_ext >&5 11767fi 11768rm -f conftest.$ac_objext conftest.$ac_ext 11769done 11770for i in $lib_dirs; do 11771 LIBS="-L$i -lldap -llber $save_LIBS" 11772 cat >conftest.$ac_ext <<_ACEOF 11773#line 11773 "configure" 11774#include "confdefs.h" 11775#include <ldap.h> 11776int 11777main () 11778{ 11779 11780 ; 11781 return 0; 11782} 11783_ACEOF 11784rm -f conftest.$ac_objext conftest$ac_exeext 11785if { (eval echo "$as_me:11785: \"$ac_link\"") >&5 11786 (eval $ac_link) 2>&5 11787 ac_status=$? 11788 echo "$as_me:11788: \$? = $ac_status" >&5 11789 (exit $ac_status); } && 11790 { (eval echo "$as_me:11790: \"test -s conftest$ac_exeext\"") >&5 11791 (eval test -s conftest$ac_exeext) 2>&5 11792 ac_status=$? 11793 echo "$as_me:11793: \$? = $ac_status" >&5 11794 (exit $ac_status); }; then 11795 lres=$i;break 11796else 11797 echo "$as_me: failed program was:" >&5 11798cat conftest.$ac_ext >&5 11799fi 11800rm -f conftest$ac_exeext conftest.$ac_ext 11801done 11802CFLAGS="$save_CFLAGS" 11803LIBS="$save_LIBS" 11804 11805if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then 11806 openldap_includedir="$ires" 11807 openldap_libdir="$lres" 11808 INCLUDE_openldap="-I$openldap_includedir" 11809 LIB_openldap="-L$openldap_libdir -lldap -llber" 11810 11811cat >>confdefs.h <<EOF 11812#define OPENLDAP 1 11813EOF 11814 11815 with_openldap=yes 11816 echo "$as_me:11816: result: headers $ires, libraries $lres" >&5 11817echo "${ECHO_T}headers $ires, libraries $lres" >&6 11818else 11819 INCLUDE_openldap= 11820 LIB_openldap= 11821 with_openldap=no 11822 echo "$as_me:11822: result: $with_openldap" >&5 11823echo "${ECHO_T}$with_openldap" >&6 11824fi 11825 11826if test "$openldap_libdir"; then 11827 LIB_openldap="-R $openldap_libdir $LIB_openldap" 11828fi 11829 11830# Check whether --with-krb4 or --without-krb4 was given. 11831if test "${with_krb4+set}" = set; then 11832 withval="$with_krb4" 11833 11834fi; 11835 11836# Check whether --with-krb4-lib or --without-krb4-lib was given. 11837if test "${with_krb4_lib+set}" = set; then 11838 withval="$with_krb4_lib" 11839 if test "$withval" = "yes" -o "$withval" = "no"; then 11840 { { echo "$as_me:11840: error: No argument for --with-krb4-lib" >&5 11841echo "$as_me: error: No argument for --with-krb4-lib" >&2;} 11842 { (exit 1); exit 1; }; } 11843elif test "X$with_krb4" = "X"; then 11844 with_krb4=yes 11845fi 11846fi; 11847 11848# Check whether --with-krb4-include or --without-krb4-include was given. 11849if test "${with_krb4_include+set}" = set; then 11850 withval="$with_krb4_include" 11851 if test "$withval" = "yes" -o "$withval" = "no"; then 11852 { { echo "$as_me:11852: error: No argument for --with-krb4-include" >&5 11853echo "$as_me: error: No argument for --with-krb4-include" >&2;} 11854 { (exit 1); exit 1; }; } 11855elif test "X$with_krb4" = "X"; then 11856 with_krb4=yes 11857fi 11858fi; 11859 11860echo "$as_me:11860: checking for krb4" >&5 11861echo $ECHO_N "checking for krb4... $ECHO_C" >&6 11862 11863case "$with_krb4" in 11864yes) ;; 11865no) ;; 11866"") ;; 11867*) if test "$with_krb4_include" = ""; then 11868 with_krb4_include="$with_krb4/include" 11869 fi 11870 if test "$with_krb4_lib" = ""; then 11871 with_krb4_lib="$with_krb4/lib$abilibdirext" 11872 fi 11873 ;; 11874esac 11875header_dirs= 11876lib_dirs= 11877d='/usr/athena' 11878for i in $d; do 11879 header_dirs="$header_dirs $i/include" 11880 lib_dirs="$lib_dirs $i/lib$abilibdirext" 11881done 11882 11883case "$with_krb4_include" in 11884yes) ;; 11885no) ;; 11886*) header_dirs="$with_krb4_include $header_dirs";; 11887esac 11888case "$with_krb4_lib" in 11889yes) ;; 11890no) ;; 11891*) lib_dirs="$with_krb4_lib $lib_dirs";; 11892esac 11893 11894save_CFLAGS="$CFLAGS" 11895save_LIBS="$LIBS" 11896ires= lres= 11897for i in $header_dirs; do 11898 CFLAGS="-I$i $save_CFLAGS" 11899 cat >conftest.$ac_ext <<_ACEOF 11900#line 11900 "configure" 11901#include "confdefs.h" 11902#include <krb.h> 11903int 11904main () 11905{ 11906 11907 ; 11908 return 0; 11909} 11910_ACEOF 11911rm -f conftest.$ac_objext 11912if { (eval echo "$as_me:11912: \"$ac_compile\"") >&5 11913 (eval $ac_compile) 2>&5 11914 ac_status=$? 11915 echo "$as_me:11915: \$? = $ac_status" >&5 11916 (exit $ac_status); } && 11917 { (eval echo "$as_me:11917: \"test -s conftest.$ac_objext\"") >&5 11918 (eval test -s conftest.$ac_objext) 2>&5 11919 ac_status=$? 11920 echo "$as_me:11920: \$? = $ac_status" >&5 11921 (exit $ac_status); }; then 11922 ires=$i;break 11923else 11924 echo "$as_me: failed program was:" >&5 11925cat conftest.$ac_ext >&5 11926fi 11927rm -f conftest.$ac_objext conftest.$ac_ext 11928done 11929for i in $lib_dirs; do 11930 LIBS="-L$i -lkrb -ldes $save_LIBS" 11931 cat >conftest.$ac_ext <<_ACEOF 11932#line 11932 "configure" 11933#include "confdefs.h" 11934#include <krb.h> 11935int 11936main () 11937{ 11938 11939 ; 11940 return 0; 11941} 11942_ACEOF 11943rm -f conftest.$ac_objext conftest$ac_exeext 11944if { (eval echo "$as_me:11944: \"$ac_link\"") >&5 11945 (eval $ac_link) 2>&5 11946 ac_status=$? 11947 echo "$as_me:11947: \$? = $ac_status" >&5 11948 (exit $ac_status); } && 11949 { (eval echo "$as_me:11949: \"test -s conftest$ac_exeext\"") >&5 11950 (eval test -s conftest$ac_exeext) 2>&5 11951 ac_status=$? 11952 echo "$as_me:11952: \$? = $ac_status" >&5 11953 (exit $ac_status); }; then 11954 lres=$i;break 11955else 11956 echo "$as_me: failed program was:" >&5 11957cat conftest.$ac_ext >&5 11958fi 11959rm -f conftest$ac_exeext conftest.$ac_ext 11960done 11961CFLAGS="$save_CFLAGS" 11962LIBS="$save_LIBS" 11963 11964if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then 11965 krb4_includedir="$ires" 11966 krb4_libdir="$lres" 11967 INCLUDE_krb4="-I$krb4_includedir" 11968 LIB_krb4="-L$krb4_libdir -lkrb" 11969 11970cat >>confdefs.h <<EOF 11971#define KRB4 1 11972EOF 11973 11974 with_krb4=yes 11975 echo "$as_me:11975: result: headers $ires, libraries $lres" >&5 11976echo "${ECHO_T}headers $ires, libraries $lres" >&6 11977else 11978 INCLUDE_krb4= 11979 LIB_krb4= 11980 with_krb4=no 11981 echo "$as_me:11981: result: $with_krb4" >&5 11982echo "${ECHO_T}$with_krb4" >&6 11983fi 11984 11985LIB_kdb= 11986if test "$with_krb4" != "no"; then 11987 save_CFLAGS="$CFLAGS" 11988 CFLAGS="$CFLAGS $INCLUDE_krb4" 11989 save_LIBS="$LIBS" 11990 LIBS="$LIB_krb4 -ldes $LIBS" 11991 EXTRA_LIB45=lib45.a 11992 11993 echo "$as_me:11993: checking for four valued krb_put_int" >&5 11994echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6 11995if test "${ac_cv_func_krb_put_int_four+set}" = set; then 11996 echo $ECHO_N "(cached) $ECHO_C" >&6 11997else 11998 cat >conftest.$ac_ext <<_ACEOF 11999#line 11999 "configure" 12000#include "confdefs.h" 12001#include <krb.h> 12002int 12003main () 12004{ 12005 12006 char tmp[4]; 12007 krb_put_int(17, tmp, 4, sizeof(tmp)); 12008 ; 12009 return 0; 12010} 12011_ACEOF 12012rm -f conftest.$ac_objext 12013if { (eval echo "$as_me:12013: \"$ac_compile\"") >&5 12014 (eval $ac_compile) 2>&5 12015 ac_status=$? 12016 echo "$as_me:12016: \$? = $ac_status" >&5 12017 (exit $ac_status); } && 12018 { (eval echo "$as_me:12018: \"test -s conftest.$ac_objext\"") >&5 12019 (eval test -s conftest.$ac_objext) 2>&5 12020 ac_status=$? 12021 echo "$as_me:12021: \$? = $ac_status" >&5 12022 (exit $ac_status); }; then 12023 ac_cv_func_krb_put_int_four=yes 12024else 12025 echo "$as_me: failed program was:" >&5 12026cat conftest.$ac_ext >&5 12027ac_cv_func_krb_put_int_four=no 12028fi 12029rm -f conftest.$ac_objext conftest.$ac_ext 12030 12031fi 12032echo "$as_me:12032: result: $ac_cv_func_krb_put_int_four" >&5 12033echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6 12034 if test "$ac_cv_func_krb_put_int_four" = yes; then 12035 12036cat >>confdefs.h <<\EOF 12037#define HAVE_FOUR_VALUED_KRB_PUT_INT 1 12038EOF 12039 12040 fi 12041 12042 echo "$as_me:12042: checking for KRB_VERIFY_SECURE" >&5 12043echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6 12044if test "${ac_cv_func_krb_verify_secure+set}" = set; then 12045 echo $ECHO_N "(cached) $ECHO_C" >&6 12046else 12047 cat >conftest.$ac_ext <<_ACEOF 12048#line 12048 "configure" 12049#include "confdefs.h" 12050#include <krb.h> 12051int 12052main () 12053{ 12054 12055 int x = KRB_VERIFY_SECURE 12056 ; 12057 return 0; 12058} 12059_ACEOF 12060rm -f conftest.$ac_objext 12061if { (eval echo "$as_me:12061: \"$ac_compile\"") >&5 12062 (eval $ac_compile) 2>&5 12063 ac_status=$? 12064 echo "$as_me:12064: \$? = $ac_status" >&5 12065 (exit $ac_status); } && 12066 { (eval echo "$as_me:12066: \"test -s conftest.$ac_objext\"") >&5 12067 (eval test -s conftest.$ac_objext) 2>&5 12068 ac_status=$? 12069 echo "$as_me:12069: \$? = $ac_status" >&5 12070 (exit $ac_status); }; then 12071 ac_cv_func_krb_verify_secure=yes 12072else 12073 echo "$as_me: failed program was:" >&5 12074cat conftest.$ac_ext >&5 12075ac_cv_func_krb_verify_secure=no 12076fi 12077rm -f conftest.$ac_objext conftest.$ac_ext 12078 12079fi 12080echo "$as_me:12080: result: $ac_cv_func_krb_verify_secure" >&5 12081echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6 12082 if test "$ac_cv_func_krb_verify_secure" != yes; then 12083 12084cat >>confdefs.h <<\EOF 12085#define KRB_VERIFY_SECURE 1 12086EOF 12087 12088cat >>confdefs.h <<\EOF 12089#define KRB_VERIFY_SECURE_FAIL 2 12090EOF 12091 12092 fi 12093 echo "$as_me:12093: checking for KRB_VERIFY_NOT_SECURE" >&5 12094echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6 12095if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then 12096 echo $ECHO_N "(cached) $ECHO_C" >&6 12097else 12098 cat >conftest.$ac_ext <<_ACEOF 12099#line 12099 "configure" 12100#include "confdefs.h" 12101#include <krb.h> 12102int 12103main () 12104{ 12105 12106 int x = KRB_VERIFY_NOT_SECURE 12107 ; 12108 return 0; 12109} 12110_ACEOF 12111rm -f conftest.$ac_objext 12112if { (eval echo "$as_me:12112: \"$ac_compile\"") >&5 12113 (eval $ac_compile) 2>&5 12114 ac_status=$? 12115 echo "$as_me:12115: \$? = $ac_status" >&5 12116 (exit $ac_status); } && 12117 { (eval echo "$as_me:12117: \"test -s conftest.$ac_objext\"") >&5 12118 (eval test -s conftest.$ac_objext) 2>&5 12119 ac_status=$? 12120 echo "$as_me:12120: \$? = $ac_status" >&5 12121 (exit $ac_status); }; then 12122 ac_cv_func_krb_verify_not_secure=yes 12123else 12124 echo "$as_me: failed program was:" >&5 12125cat conftest.$ac_ext >&5 12126ac_cv_func_krb_verify_not_secure=no 12127fi 12128rm -f conftest.$ac_objext conftest.$ac_ext 12129 12130fi 12131echo "$as_me:12131: result: $ac_cv_func_krb_verify_not_secure" >&5 12132echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6 12133 if test "$ac_cv_func_krb_verify_not_secure" != yes; then 12134 12135cat >>confdefs.h <<\EOF 12136#define KRB_VERIFY_NOT_SECURE 0 12137EOF 12138 12139 fi 12140 12141echo "$as_me:12141: checking for krb_enable_debug" >&5 12142echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6 12143if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then 12144 echo $ECHO_N "(cached) $ECHO_C" >&6 12145else 12146 12147if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then 12148 ac_save_LIBS="$LIBS" 12149 for ac_lib in "" ; do 12150 if test -n "$ac_lib"; then 12151 ac_lib="-l$ac_lib" 12152 else 12153 ac_lib="" 12154 fi 12155 LIBS=" $ac_lib $ac_save_LIBS" 12156 cat >conftest.$ac_ext <<_ACEOF 12157#line 12157 "configure" 12158#include "confdefs.h" 12159 12160int 12161main () 12162{ 12163krb_enable_debug() 12164 ; 12165 return 0; 12166} 12167_ACEOF 12168rm -f conftest.$ac_objext conftest$ac_exeext 12169if { (eval echo "$as_me:12169: \"$ac_link\"") >&5 12170 (eval $ac_link) 2>&5 12171 ac_status=$? 12172 echo "$as_me:12172: \$? = $ac_status" >&5 12173 (exit $ac_status); } && 12174 { (eval echo "$as_me:12174: \"test -s conftest$ac_exeext\"") >&5 12175 (eval test -s conftest$ac_exeext) 2>&5 12176 ac_status=$? 12177 echo "$as_me:12177: \$? = $ac_status" >&5 12178 (exit $ac_status); }; then 12179 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_enable_debug=$ac_lib; else ac_cv_funclib_krb_enable_debug=yes; fi";break 12180else 12181 echo "$as_me: failed program was:" >&5 12182cat conftest.$ac_ext >&5 12183fi 12184rm -f conftest$ac_exeext conftest.$ac_ext 12185 done 12186 eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}" 12187 LIBS="$ac_save_LIBS" 12188fi 12189 12190fi 12191 12192eval "ac_res=\$ac_cv_funclib_krb_enable_debug" 12193 12194if false; then 12195 12196for ac_func in krb_enable_debug 12197do 12198ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 12199echo "$as_me:12199: checking for $ac_func" >&5 12200echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 12201if eval "test \"\${$ac_ac_var+set}\" = set"; then 12202 echo $ECHO_N "(cached) $ECHO_C" >&6 12203else 12204 cat >conftest.$ac_ext <<_ACEOF 12205#line 12205 "configure" 12206#include "confdefs.h" 12207/* System header to define __stub macros and hopefully few prototypes, 12208 which can conflict with char $ac_func (); below. */ 12209#include <assert.h> 12210/* Override any gcc2 internal prototype to avoid an error. */ 12211#ifdef __cplusplus 12212extern "C" 12213#endif 12214/* We use char because int might match the return type of a gcc2 12215 builtin and then its argument prototype would still apply. */ 12216char $ac_func (); 12217char (*f) (); 12218 12219int 12220main () 12221{ 12222/* The GNU C library defines this for functions which it implements 12223 to always fail with ENOSYS. Some functions are actually named 12224 something starting with __ and the normal name is an alias. */ 12225#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 12226choke me 12227#else 12228f = $ac_func; 12229#endif 12230 12231 ; 12232 return 0; 12233} 12234_ACEOF 12235rm -f conftest.$ac_objext conftest$ac_exeext 12236if { (eval echo "$as_me:12236: \"$ac_link\"") >&5 12237 (eval $ac_link) 2>&5 12238 ac_status=$? 12239 echo "$as_me:12239: \$? = $ac_status" >&5 12240 (exit $ac_status); } && 12241 { (eval echo "$as_me:12241: \"test -s conftest$ac_exeext\"") >&5 12242 (eval test -s conftest$ac_exeext) 2>&5 12243 ac_status=$? 12244 echo "$as_me:12244: \$? = $ac_status" >&5 12245 (exit $ac_status); }; then 12246 eval "$ac_ac_var=yes" 12247else 12248 echo "$as_me: failed program was:" >&5 12249cat conftest.$ac_ext >&5 12250eval "$ac_ac_var=no" 12251fi 12252rm -f conftest$ac_exeext conftest.$ac_ext 12253fi 12254echo "$as_me:12254: result: `eval echo '${'$ac_ac_var'}'`" >&5 12255echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 12256if test `eval echo '${'$ac_ac_var'}'` = yes; then 12257 cat >>confdefs.h <<EOF 12258#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 12259EOF 12260 12261fi 12262done 12263 12264fi 12265# krb_enable_debug 12266eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 12267eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 12268eval "LIB_krb_enable_debug=$ac_res" 12269 12270case "$ac_res" in 12271 yes) 12272 eval "ac_cv_func_krb_enable_debug=yes" 12273 eval "LIB_krb_enable_debug=" 12274 cat >>confdefs.h <<EOF 12275#define $ac_tr_func 1 12276EOF 12277 12278 echo "$as_me:12278: result: yes" >&5 12279echo "${ECHO_T}yes" >&6 12280 ;; 12281 no) 12282 eval "ac_cv_func_krb_enable_debug=no" 12283 eval "LIB_krb_enable_debug=" 12284 echo "$as_me:12284: result: no" >&5 12285echo "${ECHO_T}no" >&6 12286 ;; 12287 *) 12288 eval "ac_cv_func_krb_enable_debug=yes" 12289 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 12290 cat >>confdefs.h <<EOF 12291#define $ac_tr_func 1 12292EOF 12293 12294 cat >>confdefs.h <<EOF 12295#define $ac_tr_lib 1 12296EOF 12297 12298 echo "$as_me:12298: result: yes, in $ac_res" >&5 12299echo "${ECHO_T}yes, in $ac_res" >&6 12300 ;; 12301esac 12302 12303if test -n "$LIB_krb_enable_debug"; then 12304 LIBS="$LIB_krb_enable_debug $LIBS" 12305fi 12306 12307echo "$as_me:12307: checking for krb_disable_debug" >&5 12308echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6 12309if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then 12310 echo $ECHO_N "(cached) $ECHO_C" >&6 12311else 12312 12313if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then 12314 ac_save_LIBS="$LIBS" 12315 for ac_lib in "" ; do 12316 if test -n "$ac_lib"; then 12317 ac_lib="-l$ac_lib" 12318 else 12319 ac_lib="" 12320 fi 12321 LIBS=" $ac_lib $ac_save_LIBS" 12322 cat >conftest.$ac_ext <<_ACEOF 12323#line 12323 "configure" 12324#include "confdefs.h" 12325 12326int 12327main () 12328{ 12329krb_disable_debug() 12330 ; 12331 return 0; 12332} 12333_ACEOF 12334rm -f conftest.$ac_objext conftest$ac_exeext 12335if { (eval echo "$as_me:12335: \"$ac_link\"") >&5 12336 (eval $ac_link) 2>&5 12337 ac_status=$? 12338 echo "$as_me:12338: \$? = $ac_status" >&5 12339 (exit $ac_status); } && 12340 { (eval echo "$as_me:12340: \"test -s conftest$ac_exeext\"") >&5 12341 (eval test -s conftest$ac_exeext) 2>&5 12342 ac_status=$? 12343 echo "$as_me:12343: \$? = $ac_status" >&5 12344 (exit $ac_status); }; then 12345 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_disable_debug=$ac_lib; else ac_cv_funclib_krb_disable_debug=yes; fi";break 12346else 12347 echo "$as_me: failed program was:" >&5 12348cat conftest.$ac_ext >&5 12349fi 12350rm -f conftest$ac_exeext conftest.$ac_ext 12351 done 12352 eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}" 12353 LIBS="$ac_save_LIBS" 12354fi 12355 12356fi 12357 12358eval "ac_res=\$ac_cv_funclib_krb_disable_debug" 12359 12360if false; then 12361 12362for ac_func in krb_disable_debug 12363do 12364ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 12365echo "$as_me:12365: checking for $ac_func" >&5 12366echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 12367if eval "test \"\${$ac_ac_var+set}\" = set"; then 12368 echo $ECHO_N "(cached) $ECHO_C" >&6 12369else 12370 cat >conftest.$ac_ext <<_ACEOF 12371#line 12371 "configure" 12372#include "confdefs.h" 12373/* System header to define __stub macros and hopefully few prototypes, 12374 which can conflict with char $ac_func (); below. */ 12375#include <assert.h> 12376/* Override any gcc2 internal prototype to avoid an error. */ 12377#ifdef __cplusplus 12378extern "C" 12379#endif 12380/* We use char because int might match the return type of a gcc2 12381 builtin and then its argument prototype would still apply. */ 12382char $ac_func (); 12383char (*f) (); 12384 12385int 12386main () 12387{ 12388/* The GNU C library defines this for functions which it implements 12389 to always fail with ENOSYS. Some functions are actually named 12390 something starting with __ and the normal name is an alias. */ 12391#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 12392choke me 12393#else 12394f = $ac_func; 12395#endif 12396 12397 ; 12398 return 0; 12399} 12400_ACEOF 12401rm -f conftest.$ac_objext conftest$ac_exeext 12402if { (eval echo "$as_me:12402: \"$ac_link\"") >&5 12403 (eval $ac_link) 2>&5 12404 ac_status=$? 12405 echo "$as_me:12405: \$? = $ac_status" >&5 12406 (exit $ac_status); } && 12407 { (eval echo "$as_me:12407: \"test -s conftest$ac_exeext\"") >&5 12408 (eval test -s conftest$ac_exeext) 2>&5 12409 ac_status=$? 12410 echo "$as_me:12410: \$? = $ac_status" >&5 12411 (exit $ac_status); }; then 12412 eval "$ac_ac_var=yes" 12413else 12414 echo "$as_me: failed program was:" >&5 12415cat conftest.$ac_ext >&5 12416eval "$ac_ac_var=no" 12417fi 12418rm -f conftest$ac_exeext conftest.$ac_ext 12419fi 12420echo "$as_me:12420: result: `eval echo '${'$ac_ac_var'}'`" >&5 12421echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 12422if test `eval echo '${'$ac_ac_var'}'` = yes; then 12423 cat >>confdefs.h <<EOF 12424#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 12425EOF 12426 12427fi 12428done 12429 12430fi 12431# krb_disable_debug 12432eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 12433eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 12434eval "LIB_krb_disable_debug=$ac_res" 12435 12436case "$ac_res" in 12437 yes) 12438 eval "ac_cv_func_krb_disable_debug=yes" 12439 eval "LIB_krb_disable_debug=" 12440 cat >>confdefs.h <<EOF 12441#define $ac_tr_func 1 12442EOF 12443 12444 echo "$as_me:12444: result: yes" >&5 12445echo "${ECHO_T}yes" >&6 12446 ;; 12447 no) 12448 eval "ac_cv_func_krb_disable_debug=no" 12449 eval "LIB_krb_disable_debug=" 12450 echo "$as_me:12450: result: no" >&5 12451echo "${ECHO_T}no" >&6 12452 ;; 12453 *) 12454 eval "ac_cv_func_krb_disable_debug=yes" 12455 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 12456 cat >>confdefs.h <<EOF 12457#define $ac_tr_func 1 12458EOF 12459 12460 cat >>confdefs.h <<EOF 12461#define $ac_tr_lib 1 12462EOF 12463 12464 echo "$as_me:12464: result: yes, in $ac_res" >&5 12465echo "${ECHO_T}yes, in $ac_res" >&6 12466 ;; 12467esac 12468 12469if test -n "$LIB_krb_disable_debug"; then 12470 LIBS="$LIB_krb_disable_debug $LIBS" 12471fi 12472 12473echo "$as_me:12473: checking for krb_get_our_ip_for_realm" >&5 12474echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6 12475if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then 12476 echo $ECHO_N "(cached) $ECHO_C" >&6 12477else 12478 12479if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then 12480 ac_save_LIBS="$LIBS" 12481 for ac_lib in "" ; do 12482 if test -n "$ac_lib"; then 12483 ac_lib="-l$ac_lib" 12484 else 12485 ac_lib="" 12486 fi 12487 LIBS=" $ac_lib $ac_save_LIBS" 12488 cat >conftest.$ac_ext <<_ACEOF 12489#line 12489 "configure" 12490#include "confdefs.h" 12491 12492int 12493main () 12494{ 12495krb_get_our_ip_for_realm() 12496 ; 12497 return 0; 12498} 12499_ACEOF 12500rm -f conftest.$ac_objext conftest$ac_exeext 12501if { (eval echo "$as_me:12501: \"$ac_link\"") >&5 12502 (eval $ac_link) 2>&5 12503 ac_status=$? 12504 echo "$as_me:12504: \$? = $ac_status" >&5 12505 (exit $ac_status); } && 12506 { (eval echo "$as_me:12506: \"test -s conftest$ac_exeext\"") >&5 12507 (eval test -s conftest$ac_exeext) 2>&5 12508 ac_status=$? 12509 echo "$as_me:12509: \$? = $ac_status" >&5 12510 (exit $ac_status); }; then 12511 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_our_ip_for_realm=$ac_lib; else ac_cv_funclib_krb_get_our_ip_for_realm=yes; fi";break 12512else 12513 echo "$as_me: failed program was:" >&5 12514cat conftest.$ac_ext >&5 12515fi 12516rm -f conftest$ac_exeext conftest.$ac_ext 12517 done 12518 eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}" 12519 LIBS="$ac_save_LIBS" 12520fi 12521 12522fi 12523 12524eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm" 12525 12526if false; then 12527 12528for ac_func in krb_get_our_ip_for_realm 12529do 12530ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 12531echo "$as_me:12531: checking for $ac_func" >&5 12532echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 12533if eval "test \"\${$ac_ac_var+set}\" = set"; then 12534 echo $ECHO_N "(cached) $ECHO_C" >&6 12535else 12536 cat >conftest.$ac_ext <<_ACEOF 12537#line 12537 "configure" 12538#include "confdefs.h" 12539/* System header to define __stub macros and hopefully few prototypes, 12540 which can conflict with char $ac_func (); below. */ 12541#include <assert.h> 12542/* Override any gcc2 internal prototype to avoid an error. */ 12543#ifdef __cplusplus 12544extern "C" 12545#endif 12546/* We use char because int might match the return type of a gcc2 12547 builtin and then its argument prototype would still apply. */ 12548char $ac_func (); 12549char (*f) (); 12550 12551int 12552main () 12553{ 12554/* The GNU C library defines this for functions which it implements 12555 to always fail with ENOSYS. Some functions are actually named 12556 something starting with __ and the normal name is an alias. */ 12557#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 12558choke me 12559#else 12560f = $ac_func; 12561#endif 12562 12563 ; 12564 return 0; 12565} 12566_ACEOF 12567rm -f conftest.$ac_objext conftest$ac_exeext 12568if { (eval echo "$as_me:12568: \"$ac_link\"") >&5 12569 (eval $ac_link) 2>&5 12570 ac_status=$? 12571 echo "$as_me:12571: \$? = $ac_status" >&5 12572 (exit $ac_status); } && 12573 { (eval echo "$as_me:12573: \"test -s conftest$ac_exeext\"") >&5 12574 (eval test -s conftest$ac_exeext) 2>&5 12575 ac_status=$? 12576 echo "$as_me:12576: \$? = $ac_status" >&5 12577 (exit $ac_status); }; then 12578 eval "$ac_ac_var=yes" 12579else 12580 echo "$as_me: failed program was:" >&5 12581cat conftest.$ac_ext >&5 12582eval "$ac_ac_var=no" 12583fi 12584rm -f conftest$ac_exeext conftest.$ac_ext 12585fi 12586echo "$as_me:12586: result: `eval echo '${'$ac_ac_var'}'`" >&5 12587echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 12588if test `eval echo '${'$ac_ac_var'}'` = yes; then 12589 cat >>confdefs.h <<EOF 12590#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 12591EOF 12592 12593fi 12594done 12595 12596fi 12597# krb_get_our_ip_for_realm 12598eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 12599eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 12600eval "LIB_krb_get_our_ip_for_realm=$ac_res" 12601 12602case "$ac_res" in 12603 yes) 12604 eval "ac_cv_func_krb_get_our_ip_for_realm=yes" 12605 eval "LIB_krb_get_our_ip_for_realm=" 12606 cat >>confdefs.h <<EOF 12607#define $ac_tr_func 1 12608EOF 12609 12610 echo "$as_me:12610: result: yes" >&5 12611echo "${ECHO_T}yes" >&6 12612 ;; 12613 no) 12614 eval "ac_cv_func_krb_get_our_ip_for_realm=no" 12615 eval "LIB_krb_get_our_ip_for_realm=" 12616 echo "$as_me:12616: result: no" >&5 12617echo "${ECHO_T}no" >&6 12618 ;; 12619 *) 12620 eval "ac_cv_func_krb_get_our_ip_for_realm=yes" 12621 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 12622 cat >>confdefs.h <<EOF 12623#define $ac_tr_func 1 12624EOF 12625 12626 cat >>confdefs.h <<EOF 12627#define $ac_tr_lib 1 12628EOF 12629 12630 echo "$as_me:12630: result: yes, in $ac_res" >&5 12631echo "${ECHO_T}yes, in $ac_res" >&6 12632 ;; 12633esac 12634 12635if test -n "$LIB_krb_get_our_ip_for_realm"; then 12636 LIBS="$LIB_krb_get_our_ip_for_realm $LIBS" 12637fi 12638 12639 echo "$as_me:12639: checking for krb_mk_req with const arguments" >&5 12640echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6 12641if test "${ac_cv_func_krb_mk_req_const+set}" = set; then 12642 echo $ECHO_N "(cached) $ECHO_C" >&6 12643else 12644 cat >conftest.$ac_ext <<_ACEOF 12645#line 12645 "configure" 12646#include "confdefs.h" 12647#include <krb.h> 12648 int krb_mk_req(KTEXT a, const char *s, const char *i, 12649 const char *r, int32_t checksum) 12650 { return 17; } 12651int 12652main () 12653{ 12654 12655 ; 12656 return 0; 12657} 12658_ACEOF 12659rm -f conftest.$ac_objext 12660if { (eval echo "$as_me:12660: \"$ac_compile\"") >&5 12661 (eval $ac_compile) 2>&5 12662 ac_status=$? 12663 echo "$as_me:12663: \$? = $ac_status" >&5 12664 (exit $ac_status); } && 12665 { (eval echo "$as_me:12665: \"test -s conftest.$ac_objext\"") >&5 12666 (eval test -s conftest.$ac_objext) 2>&5 12667 ac_status=$? 12668 echo "$as_me:12668: \$? = $ac_status" >&5 12669 (exit $ac_status); }; then 12670 ac_cv_func_krb_mk_req_const=yes 12671else 12672 echo "$as_me: failed program was:" >&5 12673cat conftest.$ac_ext >&5 12674ac_cv_func_krb_mk_req_const=no 12675fi 12676rm -f conftest.$ac_objext conftest.$ac_ext 12677 12678fi 12679echo "$as_me:12679: result: $ac_cv_func_krb_mk_req_const" >&5 12680echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6 12681 if test "$ac_cv_func_krb_mk_req_const" = "yes"; then 12682 12683cat >>confdefs.h <<\EOF 12684#define KRB_MK_REQ_CONST 1 12685EOF 12686 12687 fi 12688 12689 LIBS="$save_LIBS" 12690 CFLAGS="$save_CFLAGS" 12691 LIB_kdb="-lkdb -lkrb" 12692 if test "$krb4_libdir"; then 12693 LIB_krb4="-R $krb4_libdir $LIB_krb4" 12694 LIB_kdb="-R $krb4_libdir -L$krb4_libdir $LIB_kdb" 12695 fi 12696fi 12697 12698if test "$with_krb4" != "no"; then 12699 KRB4_TRUE= 12700 KRB4_FALSE='#' 12701else 12702 KRB4_TRUE='#' 12703 KRB4_FALSE= 12704fi 12705 12706if true; then 12707 KRB5_TRUE= 12708 KRB5_FALSE='#' 12709else 12710 KRB5_TRUE='#' 12711 KRB5_FALSE= 12712fi 12713 12714if true; then 12715 do_roken_rename_TRUE= 12716 do_roken_rename_FALSE='#' 12717else 12718 do_roken_rename_TRUE='#' 12719 do_roken_rename_FALSE= 12720fi 12721 12722cat >>confdefs.h <<\EOF 12723#define KRB5 1 12724EOF 12725 12726# Check whether --enable-dce or --disable-dce was given. 12727if test "${enable_dce+set}" = set; then 12728 enableval="$enable_dce" 12729 12730fi; 12731if test "$enable_dce" = yes; then 12732 12733cat >>confdefs.h <<\EOF 12734#define DCE 1 12735EOF 12736 12737fi 12738 12739if test "$enable_dce" = yes; then 12740 DCE_TRUE= 12741 DCE_FALSE='#' 12742else 12743 DCE_TRUE='#' 12744 DCE_FALSE= 12745fi 12746 12747## XXX quite horrible: 12748if test -f /etc/ibmcxx.cfg; then 12749 dpagaix_LDADD=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^^=*=\(.*\)/\1/;s/,/ /gp;}'` 12750 dpagaix_CFLAGS=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^^=*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'` 12751else 12752 dpagaix_CFLAGS="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce" 12753 dpagaix_LDADD="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r" 12754fi 12755 12756# Check whether --enable-kaserver or --disable-kaserver was given. 12757if test "${enable_kaserver+set}" = set; then 12758 enableval="$enable_kaserver" 12759 12760fi; 12761if test "$enable_kaserver" = yes; then 12762 12763cat >>confdefs.h <<\EOF 12764#define KASERVER 1 12765EOF 12766 12767 if test "$with_krb4" = "no"; then 12768 { { echo "$as_me:12768: error: kaserver requires krb4" >&5 12769echo "$as_me: error: kaserver requires krb4" >&2;} 12770 { (exit 1); exit 1; }; } 12771 exit 1 12772 fi 12773fi 12774 12775# Check whether --enable-kaserver-db or --disable-kaserver-db was given. 12776if test "${enable_kaserver_db+set}" = set; then 12777 enableval="$enable_kaserver_db" 12778 12779fi; 12780if test "$enable_kaserver_db" = yes; then 12781 12782cat >>confdefs.h <<\EOF 12783#define KASERVER_DB 1 12784EOF 12785 12786 if test "$with_krb4" = "no"; then 12787 { { echo "$as_me:12787: error: kaserver-db requires krb4" >&5 12788echo "$as_me: error: kaserver-db requires krb4" >&2;} 12789 { (exit 1); exit 1; }; } 12790 exit 1 12791 fi 12792fi 12793 12794otp=yes 12795# Check whether --enable-otp or --disable-otp was given. 12796if test "${enable_otp+set}" = set; then 12797 enableval="$enable_otp" 12798 12799if test "$enableval" = "no"; then 12800 otp=no 12801fi 12802 12803fi; 12804if test "$otp" = "yes"; then 12805 12806cat >>confdefs.h <<\EOF 12807#define OTP 1 12808EOF 12809 12810 LIB_otp='$(top_builddir)/lib/otp/libotp.la' 12811fi 12812 12813if test "$otp" = yes; then 12814 OTP_TRUE= 12815 OTP_FALSE='#' 12816else 12817 OTP_TRUE='#' 12818 OTP_FALSE= 12819fi 12820 12821# Check whether --enable-osfc2 or --disable-osfc2 was given. 12822if test "${enable_osfc2+set}" = set; then 12823 enableval="$enable_osfc2" 12824 12825fi; 12826LIB_security= 12827if test "$enable_osfc2" = yes; then 12828 12829cat >>confdefs.h <<\EOF 12830#define HAVE_OSFC2 1 12831EOF 12832 12833 LIB_security=-lsecurity 12834fi 12835 12836# Extract the first word of "nroff", so it can be a program name with args. 12837set dummy nroff; ac_word=$2 12838echo "$as_me:12838: checking for $ac_word" >&5 12839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 12840if test "${ac_cv_path_NROFF+set}" = set; then 12841 echo $ECHO_N "(cached) $ECHO_C" >&6 12842else 12843 case $NROFF in 12844 [\\/]* | ?:[\\/]*) 12845 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. 12846 ;; 12847 *) 12848 ac_save_IFS=$IFS; IFS=':' 12849ac_dummy="$PATH" 12850for ac_dir in $ac_dummy; do 12851 IFS=$ac_save_IFS 12852 test -z "$ac_dir" && ac_dir=. 12853 if $as_executable_p "$ac_dir/$ac_word"; then 12854 ac_cv_path_NROFF="$ac_dir/$ac_word" 12855 break 12856fi 12857done 12858 12859 ;; 12860esac 12861fi 12862NROFF=$ac_cv_path_NROFF 12863 12864if test -n "$NROFF"; then 12865 echo "$as_me:12865: result: $NROFF" >&5 12866echo "${ECHO_T}$NROFF" >&6 12867else 12868 echo "$as_me:12868: result: no" >&5 12869echo "${ECHO_T}no" >&6 12870fi 12871 12872# Extract the first word of "groff", so it can be a program name with args. 12873set dummy groff; ac_word=$2 12874echo "$as_me:12874: checking for $ac_word" >&5 12875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 12876if test "${ac_cv_path_GROFF+set}" = set; then 12877 echo $ECHO_N "(cached) $ECHO_C" >&6 12878else 12879 case $GROFF in 12880 [\\/]* | ?:[\\/]*) 12881 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 12882 ;; 12883 *) 12884 ac_save_IFS=$IFS; IFS=':' 12885ac_dummy="$PATH" 12886for ac_dir in $ac_dummy; do 12887 IFS=$ac_save_IFS 12888 test -z "$ac_dir" && ac_dir=. 12889 if $as_executable_p "$ac_dir/$ac_word"; then 12890 ac_cv_path_GROFF="$ac_dir/$ac_word" 12891 break 12892fi 12893done 12894 12895 ;; 12896esac 12897fi 12898GROFF=$ac_cv_path_GROFF 12899 12900if test -n "$GROFF"; then 12901 echo "$as_me:12901: result: $GROFF" >&5 12902echo "${ECHO_T}$GROFF" >&6 12903else 12904 echo "$as_me:12904: result: no" >&5 12905echo "${ECHO_T}no" >&6 12906fi 12907 12908echo "$as_me:12908: checking how to format man pages" >&5 12909echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6 12910if test "${ac_cv_sys_man_format+set}" = set; then 12911 echo $ECHO_N "(cached) $ECHO_C" >&6 12912else 12913 cat > conftest.1 << END 12914.Dd January 1, 1970 12915.Dt CONFTEST 1 12916.Sh NAME 12917.Nm conftest 12918.Nd 12919foobar 12920END 12921 12922if test "$NROFF" ; then 12923 for i in "-mdoc" "-mandoc"; do 12924 if "$NROFF" $i conftest.1 2> /dev/null | \ 12925 grep Jan > /dev/null 2>&1 ; then 12926 ac_cv_sys_man_format="$NROFF $i" 12927 break 12928 fi 12929 done 12930fi 12931if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then 12932 for i in "-mdoc" "-mandoc"; do 12933 if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \ 12934 grep Jan > /dev/null 2>&1 ; then 12935 ac_cv_sys_man_format="$GROFF -Tascii $i" 12936 break 12937 fi 12938 done 12939fi 12940if test "$ac_cv_sys_man_format"; then 12941 ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@" 12942fi 12943 12944fi 12945echo "$as_me:12945: result: $ac_cv_sys_man_format" >&5 12946echo "${ECHO_T}$ac_cv_sys_man_format" >&6 12947if test "$ac_cv_sys_man_format"; then 12948 CATMAN="$ac_cv_sys_man_format" 12949 12950fi 12951 12952if test "$CATMAN"; then 12953 CATMAN_TRUE= 12954 CATMAN_FALSE='#' 12955else 12956 CATMAN_TRUE='#' 12957 CATMAN_FALSE= 12958fi 12959echo "$as_me:12959: checking extension of pre-formatted manual pages" >&5 12960echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6 12961if test "${ac_cv_sys_catman_ext+set}" = set; then 12962 echo $ECHO_N "(cached) $ECHO_C" >&6 12963else 12964 if grep _suffix /etc/man.conf > /dev/null 2>&1; then 12965 ac_cv_sys_catman_ext=0 12966else 12967 ac_cv_sys_catman_ext=number 12968fi 12969 12970fi 12971echo "$as_me:12971: result: $ac_cv_sys_catman_ext" >&5 12972echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6 12973if test "$ac_cv_sys_catman_ext" = number; then 12974 CATMANEXT='$$section' 12975else 12976 CATMANEXT=0 12977fi 12978 12979# Check whether --with-readline or --without-readline was given. 12980if test "${with_readline+set}" = set; then 12981 withval="$with_readline" 12982 12983fi; 12984 12985# Check whether --with-readline-lib or --without-readline-lib was given. 12986if test "${with_readline_lib+set}" = set; then 12987 withval="$with_readline_lib" 12988 if test "$withval" = "yes" -o "$withval" = "no"; then 12989 { { echo "$as_me:12989: error: No argument for --with-readline-lib" >&5 12990echo "$as_me: error: No argument for --with-readline-lib" >&2;} 12991 { (exit 1); exit 1; }; } 12992elif test "X$with_readline" = "X"; then 12993 with_readline=yes 12994fi 12995fi; 12996 12997# Check whether --with-readline-include or --without-readline-include was given. 12998if test "${with_readline_include+set}" = set; then 12999 withval="$with_readline_include" 13000 if test "$withval" = "yes" -o "$withval" = "no"; then 13001 { { echo "$as_me:13001: error: No argument for --with-readline-include" >&5 13002echo "$as_me: error: No argument for --with-readline-include" >&2;} 13003 { (exit 1); exit 1; }; } 13004elif test "X$with_readline" = "X"; then 13005 with_readline=yes 13006fi 13007fi; 13008 13009echo "$as_me:13009: checking for readline" >&5 13010echo $ECHO_N "checking for readline... $ECHO_C" >&6 13011 13012case "$with_readline" in 13013yes) ;; 13014no) ;; 13015"") ;; 13016*) if test "$with_readline_include" = ""; then 13017 with_readline_include="$with_readline/include" 13018 fi 13019 if test "$with_readline_lib" = ""; then 13020 with_readline_lib="$with_readline/lib$abilibdirext" 13021 fi 13022 ;; 13023esac 13024header_dirs= 13025lib_dirs= 13026d='' 13027for i in $d; do 13028 header_dirs="$header_dirs $i/include" 13029 lib_dirs="$lib_dirs $i/lib$abilibdirext" 13030done 13031 13032case "$with_readline_include" in 13033yes) ;; 13034no) ;; 13035*) header_dirs="$with_readline_include $header_dirs";; 13036esac 13037case "$with_readline_lib" in 13038yes) ;; 13039no) ;; 13040*) lib_dirs="$with_readline_lib $lib_dirs";; 13041esac 13042 13043save_CFLAGS="$CFLAGS" 13044save_LIBS="$LIBS" 13045ires= lres= 13046for i in $header_dirs; do 13047 CFLAGS="-I$i $save_CFLAGS" 13048 cat >conftest.$ac_ext <<_ACEOF 13049#line 13049 "configure" 13050#include "confdefs.h" 13051#include <stdio.h> 13052 #include <readline.h> 13053int 13054main () 13055{ 13056 13057 ; 13058 return 0; 13059} 13060_ACEOF 13061rm -f conftest.$ac_objext 13062if { (eval echo "$as_me:13062: \"$ac_compile\"") >&5 13063 (eval $ac_compile) 2>&5 13064 ac_status=$? 13065 echo "$as_me:13065: \$? = $ac_status" >&5 13066 (exit $ac_status); } && 13067 { (eval echo "$as_me:13067: \"test -s conftest.$ac_objext\"") >&5 13068 (eval test -s conftest.$ac_objext) 2>&5 13069 ac_status=$? 13070 echo "$as_me:13070: \$? = $ac_status" >&5 13071 (exit $ac_status); }; then 13072 ires=$i;break 13073else 13074 echo "$as_me: failed program was:" >&5 13075cat conftest.$ac_ext >&5 13076fi 13077rm -f conftest.$ac_objext conftest.$ac_ext 13078done 13079for i in $lib_dirs; do 13080 LIBS="-L$i -lreadline $save_LIBS" 13081 cat >conftest.$ac_ext <<_ACEOF 13082#line 13082 "configure" 13083#include "confdefs.h" 13084#include <stdio.h> 13085 #include <readline.h> 13086int 13087main () 13088{ 13089 13090 ; 13091 return 0; 13092} 13093_ACEOF 13094rm -f conftest.$ac_objext conftest$ac_exeext 13095if { (eval echo "$as_me:13095: \"$ac_link\"") >&5 13096 (eval $ac_link) 2>&5 13097 ac_status=$? 13098 echo "$as_me:13098: \$? = $ac_status" >&5 13099 (exit $ac_status); } && 13100 { (eval echo "$as_me:13100: \"test -s conftest$ac_exeext\"") >&5 13101 (eval test -s conftest$ac_exeext) 2>&5 13102 ac_status=$? 13103 echo "$as_me:13103: \$? = $ac_status" >&5 13104 (exit $ac_status); }; then 13105 lres=$i;break 13106else 13107 echo "$as_me: failed program was:" >&5 13108cat conftest.$ac_ext >&5 13109fi 13110rm -f conftest$ac_exeext conftest.$ac_ext 13111done 13112CFLAGS="$save_CFLAGS" 13113LIBS="$save_LIBS" 13114 13115if test "$ires" -a "$lres" -a "$with_readline" != "no"; then 13116 readline_includedir="$ires" 13117 readline_libdir="$lres" 13118 INCLUDE_readline="-I$readline_includedir" 13119 LIB_readline="-L$readline_libdir -lreadline" 13120 13121cat >>confdefs.h <<EOF 13122#define READLINE 1 13123EOF 13124 13125 with_readline=yes 13126 echo "$as_me:13126: result: headers $ires, libraries $lres" >&5 13127echo "${ECHO_T}headers $ires, libraries $lres" >&6 13128else 13129 INCLUDE_readline= 13130 LIB_readline= 13131 with_readline=no 13132 echo "$as_me:13132: result: $with_readline" >&5 13133echo "${ECHO_T}$with_readline" >&6 13134fi 13135 13136# Check whether --with-hesiod or --without-hesiod was given. 13137if test "${with_hesiod+set}" = set; then 13138 withval="$with_hesiod" 13139 13140fi; 13141 13142# Check whether --with-hesiod-lib or --without-hesiod-lib was given. 13143if test "${with_hesiod_lib+set}" = set; then 13144 withval="$with_hesiod_lib" 13145 if test "$withval" = "yes" -o "$withval" = "no"; then 13146 { { echo "$as_me:13146: error: No argument for --with-hesiod-lib" >&5 13147echo "$as_me: error: No argument for --with-hesiod-lib" >&2;} 13148 { (exit 1); exit 1; }; } 13149elif test "X$with_hesiod" = "X"; then 13150 with_hesiod=yes 13151fi 13152fi; 13153 13154# Check whether --with-hesiod-include or --without-hesiod-include was given. 13155if test "${with_hesiod_include+set}" = set; then 13156 withval="$with_hesiod_include" 13157 if test "$withval" = "yes" -o "$withval" = "no"; then 13158 { { echo "$as_me:13158: error: No argument for --with-hesiod-include" >&5 13159echo "$as_me: error: No argument for --with-hesiod-include" >&2;} 13160 { (exit 1); exit 1; }; } 13161elif test "X$with_hesiod" = "X"; then 13162 with_hesiod=yes 13163fi 13164fi; 13165 13166echo "$as_me:13166: checking for hesiod" >&5 13167echo $ECHO_N "checking for hesiod... $ECHO_C" >&6 13168 13169case "$with_hesiod" in 13170yes) ;; 13171no) ;; 13172"") ;; 13173*) if test "$with_hesiod_include" = ""; then 13174 with_hesiod_include="$with_hesiod/include" 13175 fi 13176 if test "$with_hesiod_lib" = ""; then 13177 with_hesiod_lib="$with_hesiod/lib$abilibdirext" 13178 fi 13179 ;; 13180esac 13181header_dirs= 13182lib_dirs= 13183d='' 13184for i in $d; do 13185 header_dirs="$header_dirs $i/include" 13186 lib_dirs="$lib_dirs $i/lib$abilibdirext" 13187done 13188 13189case "$with_hesiod_include" in 13190yes) ;; 13191no) ;; 13192*) header_dirs="$with_hesiod_include $header_dirs";; 13193esac 13194case "$with_hesiod_lib" in 13195yes) ;; 13196no) ;; 13197*) lib_dirs="$with_hesiod_lib $lib_dirs";; 13198esac 13199 13200save_CFLAGS="$CFLAGS" 13201save_LIBS="$LIBS" 13202ires= lres= 13203for i in $header_dirs; do 13204 CFLAGS="-I$i $save_CFLAGS" 13205 cat >conftest.$ac_ext <<_ACEOF 13206#line 13206 "configure" 13207#include "confdefs.h" 13208#include <hesiod.h> 13209int 13210main () 13211{ 13212 13213 ; 13214 return 0; 13215} 13216_ACEOF 13217rm -f conftest.$ac_objext 13218if { (eval echo "$as_me:13218: \"$ac_compile\"") >&5 13219 (eval $ac_compile) 2>&5 13220 ac_status=$? 13221 echo "$as_me:13221: \$? = $ac_status" >&5 13222 (exit $ac_status); } && 13223 { (eval echo "$as_me:13223: \"test -s conftest.$ac_objext\"") >&5 13224 (eval test -s conftest.$ac_objext) 2>&5 13225 ac_status=$? 13226 echo "$as_me:13226: \$? = $ac_status" >&5 13227 (exit $ac_status); }; then 13228 ires=$i;break 13229else 13230 echo "$as_me: failed program was:" >&5 13231cat conftest.$ac_ext >&5 13232fi 13233rm -f conftest.$ac_objext conftest.$ac_ext 13234done 13235for i in $lib_dirs; do 13236 LIBS="-L$i -lhesiod $save_LIBS" 13237 cat >conftest.$ac_ext <<_ACEOF 13238#line 13238 "configure" 13239#include "confdefs.h" 13240#include <hesiod.h> 13241int 13242main () 13243{ 13244 13245 ; 13246 return 0; 13247} 13248_ACEOF 13249rm -f conftest.$ac_objext conftest$ac_exeext 13250if { (eval echo "$as_me:13250: \"$ac_link\"") >&5 13251 (eval $ac_link) 2>&5 13252 ac_status=$? 13253 echo "$as_me:13253: \$? = $ac_status" >&5 13254 (exit $ac_status); } && 13255 { (eval echo "$as_me:13255: \"test -s conftest$ac_exeext\"") >&5 13256 (eval test -s conftest$ac_exeext) 2>&5 13257 ac_status=$? 13258 echo "$as_me:13258: \$? = $ac_status" >&5 13259 (exit $ac_status); }; then 13260 lres=$i;break 13261else 13262 echo "$as_me: failed program was:" >&5 13263cat conftest.$ac_ext >&5 13264fi 13265rm -f conftest$ac_exeext conftest.$ac_ext 13266done 13267CFLAGS="$save_CFLAGS" 13268LIBS="$save_LIBS" 13269 13270if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then 13271 hesiod_includedir="$ires" 13272 hesiod_libdir="$lres" 13273 INCLUDE_hesiod="-I$hesiod_includedir" 13274 LIB_hesiod="-L$hesiod_libdir -lhesiod" 13275 13276cat >>confdefs.h <<EOF 13277#define HESIOD 1 13278EOF 13279 13280 with_hesiod=yes 13281 echo "$as_me:13281: result: headers $ires, libraries $lres" >&5 13282echo "${ECHO_T}headers $ires, libraries $lres" >&6 13283else 13284 INCLUDE_hesiod= 13285 LIB_hesiod= 13286 with_hesiod=no 13287 echo "$as_me:13287: result: $with_hesiod" >&5 13288echo "${ECHO_T}$with_hesiod" >&6 13289fi 13290 13291# Check whether --enable-bigendian or --disable-bigendian was given. 13292if test "${enable_bigendian+set}" = set; then 13293 enableval="$enable_bigendian" 13294 krb_cv_c_bigendian=yes 13295fi; 13296# Check whether --enable-littleendian or --disable-littleendian was given. 13297if test "${enable_littleendian+set}" = set; then 13298 enableval="$enable_littleendian" 13299 krb_cv_c_bigendian=no 13300fi; 13301echo "$as_me:13301: checking whether byte order is known at compile time" >&5 13302echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6 13303if test "${krb_cv_c_bigendian_compile+set}" = set; then 13304 echo $ECHO_N "(cached) $ECHO_C" >&6 13305else 13306 cat >conftest.$ac_ext <<_ACEOF 13307#line 13307 "configure" 13308#include "confdefs.h" 13309 13310#include <sys/types.h> 13311#include <sys/param.h> 13312int 13313main () 13314{ 13315 13316#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 13317 bogus endian macros 13318#endif 13319 ; 13320 return 0; 13321} 13322_ACEOF 13323rm -f conftest.$ac_objext 13324if { (eval echo "$as_me:13324: \"$ac_compile\"") >&5 13325 (eval $ac_compile) 2>&5 13326 ac_status=$? 13327 echo "$as_me:13327: \$? = $ac_status" >&5 13328 (exit $ac_status); } && 13329 { (eval echo "$as_me:13329: \"test -s conftest.$ac_objext\"") >&5 13330 (eval test -s conftest.$ac_objext) 2>&5 13331 ac_status=$? 13332 echo "$as_me:13332: \$? = $ac_status" >&5 13333 (exit $ac_status); }; then 13334 krb_cv_c_bigendian_compile=yes 13335else 13336 echo "$as_me: failed program was:" >&5 13337cat conftest.$ac_ext >&5 13338krb_cv_c_bigendian_compile=no 13339fi 13340rm -f conftest.$ac_objext conftest.$ac_ext 13341fi 13342echo "$as_me:13342: result: $krb_cv_c_bigendian_compile" >&5 13343echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6 13344echo "$as_me:13344: checking whether byte ordering is bigendian" >&5 13345echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 13346if test "${krb_cv_c_bigendian+set}" = set; then 13347 echo $ECHO_N "(cached) $ECHO_C" >&6 13348else 13349 13350 if test "$krb_cv_c_bigendian_compile" = "yes"; then 13351 cat >conftest.$ac_ext <<_ACEOF 13352#line 13352 "configure" 13353#include "confdefs.h" 13354 13355#include <sys/types.h> 13356#include <sys/param.h> 13357int 13358main () 13359{ 13360 13361#if BYTE_ORDER != BIG_ENDIAN 13362 not big endian 13363#endif 13364 ; 13365 return 0; 13366} 13367_ACEOF 13368rm -f conftest.$ac_objext 13369if { (eval echo "$as_me:13369: \"$ac_compile\"") >&5 13370 (eval $ac_compile) 2>&5 13371 ac_status=$? 13372 echo "$as_me:13372: \$? = $ac_status" >&5 13373 (exit $ac_status); } && 13374 { (eval echo "$as_me:13374: \"test -s conftest.$ac_objext\"") >&5 13375 (eval test -s conftest.$ac_objext) 2>&5 13376 ac_status=$? 13377 echo "$as_me:13377: \$? = $ac_status" >&5 13378 (exit $ac_status); }; then 13379 krb_cv_c_bigendian=yes 13380else 13381 echo "$as_me: failed program was:" >&5 13382cat conftest.$ac_ext >&5 13383krb_cv_c_bigendian=no 13384fi 13385rm -f conftest.$ac_objext conftest.$ac_ext 13386 else 13387 if test "$cross_compiling" = yes; then 13388 { { echo "$as_me:13388: error: specify either --enable-bigendian or --enable-littleendian" >&5 13389echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2;} 13390 { (exit 1); exit 1; }; } 13391else 13392 cat >conftest.$ac_ext <<_ACEOF 13393#line 13393 "configure" 13394#include "confdefs.h" 13395main () { 13396 /* Are we little or big endian? From Harbison&Steele. */ 13397 union 13398 { 13399 long l; 13400 char c[sizeof (long)]; 13401 } u; 13402 u.l = 1; 13403 exit (u.c[sizeof (long) - 1] == 1); 13404 } 13405_ACEOF 13406rm -f conftest$ac_exeext 13407if { (eval echo "$as_me:13407: \"$ac_link\"") >&5 13408 (eval $ac_link) 2>&5 13409 ac_status=$? 13410 echo "$as_me:13410: \$? = $ac_status" >&5 13411 (exit $ac_status); } && { (eval echo "$as_me:13411: \"./conftest$ac_exeext\"") >&5 13412 (eval ./conftest$ac_exeext) 2>&5 13413 ac_status=$? 13414 echo "$as_me:13414: \$? = $ac_status" >&5 13415 (exit $ac_status); }; then 13416 krb_cv_c_bigendian=no 13417else 13418 echo "$as_me: program exited with status $ac_status" >&5 13419echo "$as_me: failed program was:" >&5 13420cat conftest.$ac_ext >&5 13421krb_cv_c_bigendian=yes 13422fi 13423rm -f conftest$ac_exeext conftest.$ac_ext 13424fi 13425 fi 13426 13427fi 13428echo "$as_me:13428: result: $krb_cv_c_bigendian" >&5 13429echo "${ECHO_T}$krb_cv_c_bigendian" >&6 13430if test "$krb_cv_c_bigendian" = "yes"; then 13431 13432cat >>confdefs.h <<\EOF 13433#define WORDS_BIGENDIAN 1 13434EOF 13435fi 13436if test "$krb_cv_c_bigendian_compile" = "yes"; then 13437 13438cat >>confdefs.h <<\EOF 13439#define ENDIANESS_IN_SYS_PARAM_H 1 13440EOF 13441fi 13442 13443echo "$as_me:13443: checking for inline" >&5 13444echo $ECHO_N "checking for inline... $ECHO_C" >&6 13445if test "${ac_cv_c_inline+set}" = set; then 13446 echo $ECHO_N "(cached) $ECHO_C" >&6 13447else 13448 ac_cv_c_inline=no 13449for ac_kw in inline __inline__ __inline; do 13450 cat >conftest.$ac_ext <<_ACEOF 13451#line 13451 "configure" 13452#include "confdefs.h" 13453#ifndef __cplusplus 13454$ac_kw int foo () {return 0; } 13455#endif 13456 13457_ACEOF 13458rm -f conftest.$ac_objext 13459if { (eval echo "$as_me:13459: \"$ac_compile\"") >&5 13460 (eval $ac_compile) 2>&5 13461 ac_status=$? 13462 echo "$as_me:13462: \$? = $ac_status" >&5 13463 (exit $ac_status); } && 13464 { (eval echo "$as_me:13464: \"test -s conftest.$ac_objext\"") >&5 13465 (eval test -s conftest.$ac_objext) 2>&5 13466 ac_status=$? 13467 echo "$as_me:13467: \$? = $ac_status" >&5 13468 (exit $ac_status); }; then 13469 ac_cv_c_inline=$ac_kw; break 13470else 13471 echo "$as_me: failed program was:" >&5 13472cat conftest.$ac_ext >&5 13473fi 13474rm -f conftest.$ac_objext conftest.$ac_ext 13475done 13476 13477fi 13478echo "$as_me:13478: result: $ac_cv_c_inline" >&5 13479echo "${ECHO_T}$ac_cv_c_inline" >&6 13480case $ac_cv_c_inline in 13481 inline | yes) ;; 13482 no) 13483cat >>confdefs.h <<\EOF 13484#define inline 13485EOF 13486 ;; 13487 *) cat >>confdefs.h <<EOF 13488#define inline $ac_cv_c_inline 13489EOF 13490 ;; 13491esac 13492 13493aix=no 13494case "$host" in 13495*-*-aix3*) 13496 aix=3 13497 ;; 13498*-*-aix4*) 13499 aix=4 13500 ;; 13501esac 13502 13503if test "$aix" != no; then 13504 AIX_TRUE= 13505 AIX_FALSE='#' 13506else 13507 AIX_TRUE='#' 13508 AIX_FALSE= 13509fi 13510 13511if test "$aix" = 4; then 13512 AIX4_TRUE= 13513 AIX4_FALSE='#' 13514else 13515 AIX4_TRUE='#' 13516 AIX4_FALSE= 13517fi 13518aix_dynamic_afs=yes 13519 13520if test "$aix_dynamic_afs" = yes; then 13521 AIX_DYNAMIC_AFS_TRUE= 13522 AIX_DYNAMIC_AFS_FALSE='#' 13523else 13524 AIX_DYNAMIC_AFS_TRUE='#' 13525 AIX_DYNAMIC_AFS_FALSE= 13526fi 13527 13528echo "$as_me:13528: checking for dlopen" >&5 13529echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 13530if test "${ac_cv_funclib_dlopen+set}" = set; then 13531 echo $ECHO_N "(cached) $ECHO_C" >&6 13532else 13533 13534if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then 13535 ac_save_LIBS="$LIBS" 13536 for ac_lib in "" dl; do 13537 if test -n "$ac_lib"; then 13538 ac_lib="-l$ac_lib" 13539 else 13540 ac_lib="" 13541 fi 13542 LIBS=" $ac_lib $ac_save_LIBS" 13543 cat >conftest.$ac_ext <<_ACEOF 13544#line 13544 "configure" 13545#include "confdefs.h" 13546 13547int 13548main () 13549{ 13550dlopen() 13551 ; 13552 return 0; 13553} 13554_ACEOF 13555rm -f conftest.$ac_objext conftest$ac_exeext 13556if { (eval echo "$as_me:13556: \"$ac_link\"") >&5 13557 (eval $ac_link) 2>&5 13558 ac_status=$? 13559 echo "$as_me:13559: \$? = $ac_status" >&5 13560 (exit $ac_status); } && 13561 { (eval echo "$as_me:13561: \"test -s conftest$ac_exeext\"") >&5 13562 (eval test -s conftest$ac_exeext) 2>&5 13563 ac_status=$? 13564 echo "$as_me:13564: \$? = $ac_status" >&5 13565 (exit $ac_status); }; then 13566 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break 13567else 13568 echo "$as_me: failed program was:" >&5 13569cat conftest.$ac_ext >&5 13570fi 13571rm -f conftest$ac_exeext conftest.$ac_ext 13572 done 13573 eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}" 13574 LIBS="$ac_save_LIBS" 13575fi 13576 13577fi 13578 13579eval "ac_res=\$ac_cv_funclib_dlopen" 13580 13581if false; then 13582 13583for ac_func in dlopen 13584do 13585ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 13586echo "$as_me:13586: checking for $ac_func" >&5 13587echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13588if eval "test \"\${$ac_ac_var+set}\" = set"; then 13589 echo $ECHO_N "(cached) $ECHO_C" >&6 13590else 13591 cat >conftest.$ac_ext <<_ACEOF 13592#line 13592 "configure" 13593#include "confdefs.h" 13594/* System header to define __stub macros and hopefully few prototypes, 13595 which can conflict with char $ac_func (); below. */ 13596#include <assert.h> 13597/* Override any gcc2 internal prototype to avoid an error. */ 13598#ifdef __cplusplus 13599extern "C" 13600#endif 13601/* We use char because int might match the return type of a gcc2 13602 builtin and then its argument prototype would still apply. */ 13603char $ac_func (); 13604char (*f) (); 13605 13606int 13607main () 13608{ 13609/* The GNU C library defines this for functions which it implements 13610 to always fail with ENOSYS. Some functions are actually named 13611 something starting with __ and the normal name is an alias. */ 13612#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13613choke me 13614#else 13615f = $ac_func; 13616#endif 13617 13618 ; 13619 return 0; 13620} 13621_ACEOF 13622rm -f conftest.$ac_objext conftest$ac_exeext 13623if { (eval echo "$as_me:13623: \"$ac_link\"") >&5 13624 (eval $ac_link) 2>&5 13625 ac_status=$? 13626 echo "$as_me:13626: \$? = $ac_status" >&5 13627 (exit $ac_status); } && 13628 { (eval echo "$as_me:13628: \"test -s conftest$ac_exeext\"") >&5 13629 (eval test -s conftest$ac_exeext) 2>&5 13630 ac_status=$? 13631 echo "$as_me:13631: \$? = $ac_status" >&5 13632 (exit $ac_status); }; then 13633 eval "$ac_ac_var=yes" 13634else 13635 echo "$as_me: failed program was:" >&5 13636cat conftest.$ac_ext >&5 13637eval "$ac_ac_var=no" 13638fi 13639rm -f conftest$ac_exeext conftest.$ac_ext 13640fi 13641echo "$as_me:13641: result: `eval echo '${'$ac_ac_var'}'`" >&5 13642echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 13643if test `eval echo '${'$ac_ac_var'}'` = yes; then 13644 cat >>confdefs.h <<EOF 13645#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 13646EOF 13647 13648fi 13649done 13650 13651fi 13652# dlopen 13653eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 13654eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 13655eval "LIB_dlopen=$ac_res" 13656 13657case "$ac_res" in 13658 yes) 13659 eval "ac_cv_func_dlopen=yes" 13660 eval "LIB_dlopen=" 13661 cat >>confdefs.h <<EOF 13662#define $ac_tr_func 1 13663EOF 13664 13665 echo "$as_me:13665: result: yes" >&5 13666echo "${ECHO_T}yes" >&6 13667 ;; 13668 no) 13669 eval "ac_cv_func_dlopen=no" 13670 eval "LIB_dlopen=" 13671 echo "$as_me:13671: result: no" >&5 13672echo "${ECHO_T}no" >&6 13673 ;; 13674 *) 13675 eval "ac_cv_func_dlopen=yes" 13676 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 13677 cat >>confdefs.h <<EOF 13678#define $ac_tr_func 1 13679EOF 13680 13681 cat >>confdefs.h <<EOF 13682#define $ac_tr_lib 1 13683EOF 13684 13685 echo "$as_me:13685: result: yes, in $ac_res" >&5 13686echo "${ECHO_T}yes, in $ac_res" >&6 13687 ;; 13688esac 13689 13690if test "$aix" != no; then 13691 if test "$aix_dynamic_afs" = yes; then 13692 if test "$ac_cv_funclib_dlopen" = yes; then 13693 AIX_EXTRA_KAFS= 13694 elif test "$ac_cv_funclib_dlopen" != no; then 13695 AIX_EXTRA_KAFS="$ac_cv_funclib_dlopen" 13696 else 13697 AIX_EXTRA_KAFS=-lld 13698 fi 13699 else 13700 AIX_EXTRA_KAFS= 13701 fi 13702fi 13703 13704if test "$ac_cv_funclib_dlopen" != no; then 13705 HAVE_DLOPEN_TRUE= 13706 HAVE_DLOPEN_FALSE='#' 13707else 13708 HAVE_DLOPEN_TRUE='#' 13709 HAVE_DLOPEN_FALSE= 13710fi 13711 13712irix=no 13713case "$host_os" in 13714irix*) irix=yes ;; 13715esac 13716 13717if test "$irix" != no; then 13718 IRIX_TRUE= 13719 IRIX_FALSE='#' 13720else 13721 IRIX_TRUE='#' 13722 IRIX_FALSE= 13723fi 13724 13725echo "$as_me:13725: checking for X" >&5 13726echo $ECHO_N "checking for X... $ECHO_C" >&6 13727 13728# Check whether --with-x or --without-x was given. 13729if test "${with_x+set}" = set; then 13730 withval="$with_x" 13731 13732fi; 13733# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 13734if test "x$with_x" = xno; then 13735 # The user explicitly disabled X. 13736 have_x=disabled 13737else 13738 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 13739 # Both variables are already set. 13740 have_x=yes 13741 else 13742 if test "${ac_cv_have_x+set}" = set; then 13743 echo $ECHO_N "(cached) $ECHO_C" >&6 13744else 13745 # One or both of the vars are not set, and there is no cached value. 13746ac_x_includes=no ac_x_libraries=no 13747rm -fr conftestdir 13748if mkdir conftestdir; then 13749 cd conftestdir 13750 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 13751 cat >Imakefile <<'EOF' 13752acfindx: 13753 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 13754EOF 13755 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 13756 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 13757 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 13758 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 13759 for ac_extension in a so sl; do 13760 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 13761 test -f $ac_im_libdir/libX11.$ac_extension; then 13762 ac_im_usrlibdir=$ac_im_libdir; break 13763 fi 13764 done 13765 # Screen out bogus values from the imake configuration. They are 13766 # bogus both because they are the default anyway, and because 13767 # using them would break gcc on systems where it needs fixed includes. 13768 case $ac_im_incroot in 13769 /usr/include) ;; 13770 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 13771 esac 13772 case $ac_im_usrlibdir in 13773 /usr/lib | /lib) ;; 13774 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 13775 esac 13776 fi 13777 cd .. 13778 rm -fr conftestdir 13779fi 13780 13781# Standard set of common directories for X headers. 13782# Check X11 before X11Rn because it is often a symlink to the current release. 13783ac_x_header_dirs=' 13784/usr/X11/include 13785/usr/X11R6/include 13786/usr/X11R5/include 13787/usr/X11R4/include 13788 13789/usr/include/X11 13790/usr/include/X11R6 13791/usr/include/X11R5 13792/usr/include/X11R4 13793 13794/usr/local/X11/include 13795/usr/local/X11R6/include 13796/usr/local/X11R5/include 13797/usr/local/X11R4/include 13798 13799/usr/local/include/X11 13800/usr/local/include/X11R6 13801/usr/local/include/X11R5 13802/usr/local/include/X11R4 13803 13804/usr/X386/include 13805/usr/x386/include 13806/usr/XFree86/include/X11 13807 13808/usr/include 13809/usr/local/include 13810/usr/unsupported/include 13811/usr/athena/include 13812/usr/local/x11r5/include 13813/usr/lpp/Xamples/include 13814 13815/usr/openwin/include 13816/usr/openwin/share/include' 13817 13818if test "$ac_x_includes" = no; then 13819 # Guess where to find include files, by looking for Intrinsic.h. 13820 # First, try using that file with no special directory specified. 13821 cat >conftest.$ac_ext <<_ACEOF 13822#line 13822 "configure" 13823#include "confdefs.h" 13824#include <X11/Intrinsic.h> 13825_ACEOF 13826if { (eval echo "$as_me:13826: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 13827 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 13828 ac_status=$? 13829 egrep -v '^ *\+' conftest.er1 >conftest.err 13830 rm -f conftest.er1 13831 cat conftest.err >&5 13832 echo "$as_me:13832: \$? = $ac_status" >&5 13833 (exit $ac_status); }; then 13834 if test -s conftest.err; then 13835 ac_cpp_err=$ac_c_preproc_warn_flag 13836 else 13837 ac_cpp_err= 13838 fi 13839else 13840 ac_cpp_err=yes 13841fi 13842if test -z "$ac_cpp_err"; then 13843 # We can compile using X headers with no special include directory. 13844ac_x_includes= 13845else 13846 echo "$as_me: failed program was:" >&5 13847 cat conftest.$ac_ext >&5 13848 for ac_dir in $ac_x_header_dirs; do 13849 if test -r "$ac_dir/X11/Intrinsic.h"; then 13850 ac_x_includes=$ac_dir 13851 break 13852 fi 13853done 13854fi 13855rm -f conftest.err conftest.$ac_ext 13856fi # $ac_x_includes = no 13857 13858if test "$ac_x_libraries" = no; then 13859 # Check for the libraries. 13860 # See if we find them without any special options. 13861 # Don't add to $LIBS permanently. 13862 ac_save_LIBS=$LIBS 13863 LIBS="-lXt $LIBS" 13864 cat >conftest.$ac_ext <<_ACEOF 13865#line 13865 "configure" 13866#include "confdefs.h" 13867#include <X11/Intrinsic.h> 13868int 13869main () 13870{ 13871XtMalloc (0) 13872 ; 13873 return 0; 13874} 13875_ACEOF 13876rm -f conftest.$ac_objext conftest$ac_exeext 13877if { (eval echo "$as_me:13877: \"$ac_link\"") >&5 13878 (eval $ac_link) 2>&5 13879 ac_status=$? 13880 echo "$as_me:13880: \$? = $ac_status" >&5 13881 (exit $ac_status); } && 13882 { (eval echo "$as_me:13882: \"test -s conftest$ac_exeext\"") >&5 13883 (eval test -s conftest$ac_exeext) 2>&5 13884 ac_status=$? 13885 echo "$as_me:13885: \$? = $ac_status" >&5 13886 (exit $ac_status); }; then 13887 LIBS=$ac_save_LIBS 13888# We can link X programs with no special library path. 13889ac_x_libraries= 13890else 13891 echo "$as_me: failed program was:" >&5 13892cat conftest.$ac_ext >&5 13893LIBS=$ac_save_LIBS 13894for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 13895do 13896 # Don't even attempt the hair of trying to link an X program! 13897 for ac_extension in a so sl; do 13898 if test -r $ac_dir/libXt.$ac_extension; then 13899 ac_x_libraries=$ac_dir 13900 break 2 13901 fi 13902 done 13903done 13904fi 13905rm -f conftest$ac_exeext conftest.$ac_ext 13906fi # $ac_x_libraries = no 13907 13908if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 13909 # Didn't find X anywhere. Cache the known absence of X. 13910 ac_cv_have_x="have_x=no" 13911else 13912 # Record where we found X for the cache. 13913 ac_cv_have_x="have_x=yes \ 13914 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 13915fi 13916fi 13917 13918 fi 13919 eval "$ac_cv_have_x" 13920fi # $with_x != no 13921 13922if test "$have_x" != yes; then 13923 echo "$as_me:13923: result: $have_x" >&5 13924echo "${ECHO_T}$have_x" >&6 13925 no_x=yes 13926else 13927 # If each of the values was on the command line, it overrides each guess. 13928 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 13929 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 13930 # Update the cache value to reflect the command line values. 13931 ac_cv_have_x="have_x=yes \ 13932 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 13933 echo "$as_me:13933: result: libraries $x_libraries, headers $x_includes" >&5 13934echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 13935fi 13936 13937if test "$no_x" = yes; then 13938 # Not all programs may use this symbol, but it does not hurt to define it. 13939 13940cat >>confdefs.h <<\EOF 13941#define X_DISPLAY_MISSING 1 13942EOF 13943 13944 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 13945else 13946 if test -n "$x_includes"; then 13947 X_CFLAGS="$X_CFLAGS -I$x_includes" 13948 fi 13949 13950 # It would also be nice to do this for all -L options, not just this one. 13951 if test -n "$x_libraries"; then 13952 X_LIBS="$X_LIBS -L$x_libraries" 13953 # For Solaris; some versions of Sun CC require a space after -R and 13954 # others require no space. Words are not sufficient . . . . 13955 case `(uname -sr) 2>/dev/null` in 13956 "SunOS 5"*) 13957 echo "$as_me:13957: checking whether -R must be followed by a space" >&5 13958echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 13959 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 13960 cat >conftest.$ac_ext <<_ACEOF 13961#line 13961 "configure" 13962#include "confdefs.h" 13963 13964int 13965main () 13966{ 13967 13968 ; 13969 return 0; 13970} 13971_ACEOF 13972rm -f conftest.$ac_objext conftest$ac_exeext 13973if { (eval echo "$as_me:13973: \"$ac_link\"") >&5 13974 (eval $ac_link) 2>&5 13975 ac_status=$? 13976 echo "$as_me:13976: \$? = $ac_status" >&5 13977 (exit $ac_status); } && 13978 { (eval echo "$as_me:13978: \"test -s conftest$ac_exeext\"") >&5 13979 (eval test -s conftest$ac_exeext) 2>&5 13980 ac_status=$? 13981 echo "$as_me:13981: \$? = $ac_status" >&5 13982 (exit $ac_status); }; then 13983 ac_R_nospace=yes 13984else 13985 echo "$as_me: failed program was:" >&5 13986cat conftest.$ac_ext >&5 13987ac_R_nospace=no 13988fi 13989rm -f conftest$ac_exeext conftest.$ac_ext 13990 if test $ac_R_nospace = yes; then 13991 echo "$as_me:13991: result: no" >&5 13992echo "${ECHO_T}no" >&6 13993 X_LIBS="$X_LIBS -R$x_libraries" 13994 else 13995 LIBS="$ac_xsave_LIBS -R $x_libraries" 13996 cat >conftest.$ac_ext <<_ACEOF 13997#line 13997 "configure" 13998#include "confdefs.h" 13999 14000int 14001main () 14002{ 14003 14004 ; 14005 return 0; 14006} 14007_ACEOF 14008rm -f conftest.$ac_objext conftest$ac_exeext 14009if { (eval echo "$as_me:14009: \"$ac_link\"") >&5 14010 (eval $ac_link) 2>&5 14011 ac_status=$? 14012 echo "$as_me:14012: \$? = $ac_status" >&5 14013 (exit $ac_status); } && 14014 { (eval echo "$as_me:14014: \"test -s conftest$ac_exeext\"") >&5 14015 (eval test -s conftest$ac_exeext) 2>&5 14016 ac_status=$? 14017 echo "$as_me:14017: \$? = $ac_status" >&5 14018 (exit $ac_status); }; then 14019 ac_R_space=yes 14020else 14021 echo "$as_me: failed program was:" >&5 14022cat conftest.$ac_ext >&5 14023ac_R_space=no 14024fi 14025rm -f conftest$ac_exeext conftest.$ac_ext 14026 if test $ac_R_space = yes; then 14027 echo "$as_me:14027: result: yes" >&5 14028echo "${ECHO_T}yes" >&6 14029 X_LIBS="$X_LIBS -R $x_libraries" 14030 else 14031 echo "$as_me:14031: result: neither works" >&5 14032echo "${ECHO_T}neither works" >&6 14033 fi 14034 fi 14035 LIBS=$ac_xsave_LIBS 14036 esac 14037 fi 14038 14039 # Check for system-dependent libraries X programs must link with. 14040 # Do this before checking for the system-independent R6 libraries 14041 # (-lICE), since we may need -lsocket or whatever for X linking. 14042 14043 if test "$ISC" = yes; then 14044 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 14045 else 14046 # Martyn Johnson says this is needed for Ultrix, if the X 14047 # libraries were built with DECnet support. And Karl Berry says 14048 # the Alpha needs dnet_stub (dnet does not exist). 14049 echo "$as_me:14049: checking for dnet_ntoa in -ldnet" >&5 14050echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 14051if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 14052 echo $ECHO_N "(cached) $ECHO_C" >&6 14053else 14054 ac_check_lib_save_LIBS=$LIBS 14055LIBS="-ldnet $LIBS" 14056cat >conftest.$ac_ext <<_ACEOF 14057#line 14057 "configure" 14058#include "confdefs.h" 14059 14060/* Override any gcc2 internal prototype to avoid an error. */ 14061#ifdef __cplusplus 14062extern "C" 14063#endif 14064/* We use char because int might match the return type of a gcc2 14065 builtin and then its argument prototype would still apply. */ 14066char dnet_ntoa (); 14067int 14068main () 14069{ 14070dnet_ntoa (); 14071 ; 14072 return 0; 14073} 14074_ACEOF 14075rm -f conftest.$ac_objext conftest$ac_exeext 14076if { (eval echo "$as_me:14076: \"$ac_link\"") >&5 14077 (eval $ac_link) 2>&5 14078 ac_status=$? 14079 echo "$as_me:14079: \$? = $ac_status" >&5 14080 (exit $ac_status); } && 14081 { (eval echo "$as_me:14081: \"test -s conftest$ac_exeext\"") >&5 14082 (eval test -s conftest$ac_exeext) 2>&5 14083 ac_status=$? 14084 echo "$as_me:14084: \$? = $ac_status" >&5 14085 (exit $ac_status); }; then 14086 ac_cv_lib_dnet_dnet_ntoa=yes 14087else 14088 echo "$as_me: failed program was:" >&5 14089cat conftest.$ac_ext >&5 14090ac_cv_lib_dnet_dnet_ntoa=no 14091fi 14092rm -f conftest$ac_exeext conftest.$ac_ext 14093LIBS=$ac_check_lib_save_LIBS 14094fi 14095echo "$as_me:14095: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 14096echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 14097if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 14098 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 14099fi 14100 14101 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 14102 echo "$as_me:14102: checking for dnet_ntoa in -ldnet_stub" >&5 14103echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 14104if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 14105 echo $ECHO_N "(cached) $ECHO_C" >&6 14106else 14107 ac_check_lib_save_LIBS=$LIBS 14108LIBS="-ldnet_stub $LIBS" 14109cat >conftest.$ac_ext <<_ACEOF 14110#line 14110 "configure" 14111#include "confdefs.h" 14112 14113/* Override any gcc2 internal prototype to avoid an error. */ 14114#ifdef __cplusplus 14115extern "C" 14116#endif 14117/* We use char because int might match the return type of a gcc2 14118 builtin and then its argument prototype would still apply. */ 14119char dnet_ntoa (); 14120int 14121main () 14122{ 14123dnet_ntoa (); 14124 ; 14125 return 0; 14126} 14127_ACEOF 14128rm -f conftest.$ac_objext conftest$ac_exeext 14129if { (eval echo "$as_me:14129: \"$ac_link\"") >&5 14130 (eval $ac_link) 2>&5 14131 ac_status=$? 14132 echo "$as_me:14132: \$? = $ac_status" >&5 14133 (exit $ac_status); } && 14134 { (eval echo "$as_me:14134: \"test -s conftest$ac_exeext\"") >&5 14135 (eval test -s conftest$ac_exeext) 2>&5 14136 ac_status=$? 14137 echo "$as_me:14137: \$? = $ac_status" >&5 14138 (exit $ac_status); }; then 14139 ac_cv_lib_dnet_stub_dnet_ntoa=yes 14140else 14141 echo "$as_me: failed program was:" >&5 14142cat conftest.$ac_ext >&5 14143ac_cv_lib_dnet_stub_dnet_ntoa=no 14144fi 14145rm -f conftest$ac_exeext conftest.$ac_ext 14146LIBS=$ac_check_lib_save_LIBS 14147fi 14148echo "$as_me:14148: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 14149echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 14150if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 14151 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 14152fi 14153 14154 fi 14155 14156 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 14157 # to get the SysV transport functions. 14158 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 14159 # needs -lnsl. 14160 # The nsl library prevents programs from opening the X display 14161 # on Irix 5.2, according to T.E. Dickey. 14162 # The functions gethostbyname, getservbyname, and inet_addr are 14163 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 14164 echo "$as_me:14164: checking for gethostbyname" >&5 14165echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 14166if test "${ac_cv_func_gethostbyname+set}" = set; then 14167 echo $ECHO_N "(cached) $ECHO_C" >&6 14168else 14169 cat >conftest.$ac_ext <<_ACEOF 14170#line 14170 "configure" 14171#include "confdefs.h" 14172/* System header to define __stub macros and hopefully few prototypes, 14173 which can conflict with char gethostbyname (); below. */ 14174#include <assert.h> 14175/* Override any gcc2 internal prototype to avoid an error. */ 14176#ifdef __cplusplus 14177extern "C" 14178#endif 14179/* We use char because int might match the return type of a gcc2 14180 builtin and then its argument prototype would still apply. */ 14181char gethostbyname (); 14182char (*f) (); 14183 14184int 14185main () 14186{ 14187/* The GNU C library defines this for functions which it implements 14188 to always fail with ENOSYS. Some functions are actually named 14189 something starting with __ and the normal name is an alias. */ 14190#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 14191choke me 14192#else 14193f = gethostbyname; 14194#endif 14195 14196 ; 14197 return 0; 14198} 14199_ACEOF 14200rm -f conftest.$ac_objext conftest$ac_exeext 14201if { (eval echo "$as_me:14201: \"$ac_link\"") >&5 14202 (eval $ac_link) 2>&5 14203 ac_status=$? 14204 echo "$as_me:14204: \$? = $ac_status" >&5 14205 (exit $ac_status); } && 14206 { (eval echo "$as_me:14206: \"test -s conftest$ac_exeext\"") >&5 14207 (eval test -s conftest$ac_exeext) 2>&5 14208 ac_status=$? 14209 echo "$as_me:14209: \$? = $ac_status" >&5 14210 (exit $ac_status); }; then 14211 ac_cv_func_gethostbyname=yes 14212else 14213 echo "$as_me: failed program was:" >&5 14214cat conftest.$ac_ext >&5 14215ac_cv_func_gethostbyname=no 14216fi 14217rm -f conftest$ac_exeext conftest.$ac_ext 14218fi 14219echo "$as_me:14219: result: $ac_cv_func_gethostbyname" >&5 14220echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 14221 14222 if test $ac_cv_func_gethostbyname = no; then 14223 echo "$as_me:14223: checking for gethostbyname in -lnsl" >&5 14224echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 14225if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 14226 echo $ECHO_N "(cached) $ECHO_C" >&6 14227else 14228 ac_check_lib_save_LIBS=$LIBS 14229LIBS="-lnsl $LIBS" 14230cat >conftest.$ac_ext <<_ACEOF 14231#line 14231 "configure" 14232#include "confdefs.h" 14233 14234/* Override any gcc2 internal prototype to avoid an error. */ 14235#ifdef __cplusplus 14236extern "C" 14237#endif 14238/* We use char because int might match the return type of a gcc2 14239 builtin and then its argument prototype would still apply. */ 14240char gethostbyname (); 14241int 14242main () 14243{ 14244gethostbyname (); 14245 ; 14246 return 0; 14247} 14248_ACEOF 14249rm -f conftest.$ac_objext conftest$ac_exeext 14250if { (eval echo "$as_me:14250: \"$ac_link\"") >&5 14251 (eval $ac_link) 2>&5 14252 ac_status=$? 14253 echo "$as_me:14253: \$? = $ac_status" >&5 14254 (exit $ac_status); } && 14255 { (eval echo "$as_me:14255: \"test -s conftest$ac_exeext\"") >&5 14256 (eval test -s conftest$ac_exeext) 2>&5 14257 ac_status=$? 14258 echo "$as_me:14258: \$? = $ac_status" >&5 14259 (exit $ac_status); }; then 14260 ac_cv_lib_nsl_gethostbyname=yes 14261else 14262 echo "$as_me: failed program was:" >&5 14263cat conftest.$ac_ext >&5 14264ac_cv_lib_nsl_gethostbyname=no 14265fi 14266rm -f conftest$ac_exeext conftest.$ac_ext 14267LIBS=$ac_check_lib_save_LIBS 14268fi 14269echo "$as_me:14269: result: $ac_cv_lib_nsl_gethostbyname" >&5 14270echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 14271if test $ac_cv_lib_nsl_gethostbyname = yes; then 14272 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 14273fi 14274 14275 if test $ac_cv_lib_nsl_gethostbyname = no; then 14276 echo "$as_me:14276: checking for gethostbyname in -lbsd" >&5 14277echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 14278if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 14279 echo $ECHO_N "(cached) $ECHO_C" >&6 14280else 14281 ac_check_lib_save_LIBS=$LIBS 14282LIBS="-lbsd $LIBS" 14283cat >conftest.$ac_ext <<_ACEOF 14284#line 14284 "configure" 14285#include "confdefs.h" 14286 14287/* Override any gcc2 internal prototype to avoid an error. */ 14288#ifdef __cplusplus 14289extern "C" 14290#endif 14291/* We use char because int might match the return type of a gcc2 14292 builtin and then its argument prototype would still apply. */ 14293char gethostbyname (); 14294int 14295main () 14296{ 14297gethostbyname (); 14298 ; 14299 return 0; 14300} 14301_ACEOF 14302rm -f conftest.$ac_objext conftest$ac_exeext 14303if { (eval echo "$as_me:14303: \"$ac_link\"") >&5 14304 (eval $ac_link) 2>&5 14305 ac_status=$? 14306 echo "$as_me:14306: \$? = $ac_status" >&5 14307 (exit $ac_status); } && 14308 { (eval echo "$as_me:14308: \"test -s conftest$ac_exeext\"") >&5 14309 (eval test -s conftest$ac_exeext) 2>&5 14310 ac_status=$? 14311 echo "$as_me:14311: \$? = $ac_status" >&5 14312 (exit $ac_status); }; then 14313 ac_cv_lib_bsd_gethostbyname=yes 14314else 14315 echo "$as_me: failed program was:" >&5 14316cat conftest.$ac_ext >&5 14317ac_cv_lib_bsd_gethostbyname=no 14318fi 14319rm -f conftest$ac_exeext conftest.$ac_ext 14320LIBS=$ac_check_lib_save_LIBS 14321fi 14322echo "$as_me:14322: result: $ac_cv_lib_bsd_gethostbyname" >&5 14323echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 14324if test $ac_cv_lib_bsd_gethostbyname = yes; then 14325 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 14326fi 14327 14328 fi 14329 fi 14330 14331 # lieder@skyler.mavd.honeywell.com says without -lsocket, 14332 # socket/setsockopt and other routines are undefined under SCO ODT 14333 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 14334 # on later versions), says Simon Leinen: it contains gethostby* 14335 # variants that don't use the nameserver (or something). -lsocket 14336 # must be given before -lnsl if both are needed. We assume that 14337 # if connect needs -lnsl, so does gethostbyname. 14338 echo "$as_me:14338: checking for connect" >&5 14339echo $ECHO_N "checking for connect... $ECHO_C" >&6 14340if test "${ac_cv_func_connect+set}" = set; then 14341 echo $ECHO_N "(cached) $ECHO_C" >&6 14342else 14343 cat >conftest.$ac_ext <<_ACEOF 14344#line 14344 "configure" 14345#include "confdefs.h" 14346/* System header to define __stub macros and hopefully few prototypes, 14347 which can conflict with char connect (); below. */ 14348#include <assert.h> 14349/* Override any gcc2 internal prototype to avoid an error. */ 14350#ifdef __cplusplus 14351extern "C" 14352#endif 14353/* We use char because int might match the return type of a gcc2 14354 builtin and then its argument prototype would still apply. */ 14355char connect (); 14356char (*f) (); 14357 14358int 14359main () 14360{ 14361/* The GNU C library defines this for functions which it implements 14362 to always fail with ENOSYS. Some functions are actually named 14363 something starting with __ and the normal name is an alias. */ 14364#if defined (__stub_connect) || defined (__stub___connect) 14365choke me 14366#else 14367f = connect; 14368#endif 14369 14370 ; 14371 return 0; 14372} 14373_ACEOF 14374rm -f conftest.$ac_objext conftest$ac_exeext 14375if { (eval echo "$as_me:14375: \"$ac_link\"") >&5 14376 (eval $ac_link) 2>&5 14377 ac_status=$? 14378 echo "$as_me:14378: \$? = $ac_status" >&5 14379 (exit $ac_status); } && 14380 { (eval echo "$as_me:14380: \"test -s conftest$ac_exeext\"") >&5 14381 (eval test -s conftest$ac_exeext) 2>&5 14382 ac_status=$? 14383 echo "$as_me:14383: \$? = $ac_status" >&5 14384 (exit $ac_status); }; then 14385 ac_cv_func_connect=yes 14386else 14387 echo "$as_me: failed program was:" >&5 14388cat conftest.$ac_ext >&5 14389ac_cv_func_connect=no 14390fi 14391rm -f conftest$ac_exeext conftest.$ac_ext 14392fi 14393echo "$as_me:14393: result: $ac_cv_func_connect" >&5 14394echo "${ECHO_T}$ac_cv_func_connect" >&6 14395 14396 if test $ac_cv_func_connect = no; then 14397 echo "$as_me:14397: checking for connect in -lsocket" >&5 14398echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 14399if test "${ac_cv_lib_socket_connect+set}" = set; then 14400 echo $ECHO_N "(cached) $ECHO_C" >&6 14401else 14402 ac_check_lib_save_LIBS=$LIBS 14403LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 14404cat >conftest.$ac_ext <<_ACEOF 14405#line 14405 "configure" 14406#include "confdefs.h" 14407 14408/* Override any gcc2 internal prototype to avoid an error. */ 14409#ifdef __cplusplus 14410extern "C" 14411#endif 14412/* We use char because int might match the return type of a gcc2 14413 builtin and then its argument prototype would still apply. */ 14414char connect (); 14415int 14416main () 14417{ 14418connect (); 14419 ; 14420 return 0; 14421} 14422_ACEOF 14423rm -f conftest.$ac_objext conftest$ac_exeext 14424if { (eval echo "$as_me:14424: \"$ac_link\"") >&5 14425 (eval $ac_link) 2>&5 14426 ac_status=$? 14427 echo "$as_me:14427: \$? = $ac_status" >&5 14428 (exit $ac_status); } && 14429 { (eval echo "$as_me:14429: \"test -s conftest$ac_exeext\"") >&5 14430 (eval test -s conftest$ac_exeext) 2>&5 14431 ac_status=$? 14432 echo "$as_me:14432: \$? = $ac_status" >&5 14433 (exit $ac_status); }; then 14434 ac_cv_lib_socket_connect=yes 14435else 14436 echo "$as_me: failed program was:" >&5 14437cat conftest.$ac_ext >&5 14438ac_cv_lib_socket_connect=no 14439fi 14440rm -f conftest$ac_exeext conftest.$ac_ext 14441LIBS=$ac_check_lib_save_LIBS 14442fi 14443echo "$as_me:14443: result: $ac_cv_lib_socket_connect" >&5 14444echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 14445if test $ac_cv_lib_socket_connect = yes; then 14446 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 14447fi 14448 14449 fi 14450 14451 # Guillermo Gomez says -lposix is necessary on A/UX. 14452 echo "$as_me:14452: checking for remove" >&5 14453echo $ECHO_N "checking for remove... $ECHO_C" >&6 14454if test "${ac_cv_func_remove+set}" = set; then 14455 echo $ECHO_N "(cached) $ECHO_C" >&6 14456else 14457 cat >conftest.$ac_ext <<_ACEOF 14458#line 14458 "configure" 14459#include "confdefs.h" 14460/* System header to define __stub macros and hopefully few prototypes, 14461 which can conflict with char remove (); below. */ 14462#include <assert.h> 14463/* Override any gcc2 internal prototype to avoid an error. */ 14464#ifdef __cplusplus 14465extern "C" 14466#endif 14467/* We use char because int might match the return type of a gcc2 14468 builtin and then its argument prototype would still apply. */ 14469char remove (); 14470char (*f) (); 14471 14472int 14473main () 14474{ 14475/* The GNU C library defines this for functions which it implements 14476 to always fail with ENOSYS. Some functions are actually named 14477 something starting with __ and the normal name is an alias. */ 14478#if defined (__stub_remove) || defined (__stub___remove) 14479choke me 14480#else 14481f = remove; 14482#endif 14483 14484 ; 14485 return 0; 14486} 14487_ACEOF 14488rm -f conftest.$ac_objext conftest$ac_exeext 14489if { (eval echo "$as_me:14489: \"$ac_link\"") >&5 14490 (eval $ac_link) 2>&5 14491 ac_status=$? 14492 echo "$as_me:14492: \$? = $ac_status" >&5 14493 (exit $ac_status); } && 14494 { (eval echo "$as_me:14494: \"test -s conftest$ac_exeext\"") >&5 14495 (eval test -s conftest$ac_exeext) 2>&5 14496 ac_status=$? 14497 echo "$as_me:14497: \$? = $ac_status" >&5 14498 (exit $ac_status); }; then 14499 ac_cv_func_remove=yes 14500else 14501 echo "$as_me: failed program was:" >&5 14502cat conftest.$ac_ext >&5 14503ac_cv_func_remove=no 14504fi 14505rm -f conftest$ac_exeext conftest.$ac_ext 14506fi 14507echo "$as_me:14507: result: $ac_cv_func_remove" >&5 14508echo "${ECHO_T}$ac_cv_func_remove" >&6 14509 14510 if test $ac_cv_func_remove = no; then 14511 echo "$as_me:14511: checking for remove in -lposix" >&5 14512echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 14513if test "${ac_cv_lib_posix_remove+set}" = set; then 14514 echo $ECHO_N "(cached) $ECHO_C" >&6 14515else 14516 ac_check_lib_save_LIBS=$LIBS 14517LIBS="-lposix $LIBS" 14518cat >conftest.$ac_ext <<_ACEOF 14519#line 14519 "configure" 14520#include "confdefs.h" 14521 14522/* Override any gcc2 internal prototype to avoid an error. */ 14523#ifdef __cplusplus 14524extern "C" 14525#endif 14526/* We use char because int might match the return type of a gcc2 14527 builtin and then its argument prototype would still apply. */ 14528char remove (); 14529int 14530main () 14531{ 14532remove (); 14533 ; 14534 return 0; 14535} 14536_ACEOF 14537rm -f conftest.$ac_objext conftest$ac_exeext 14538if { (eval echo "$as_me:14538: \"$ac_link\"") >&5 14539 (eval $ac_link) 2>&5 14540 ac_status=$? 14541 echo "$as_me:14541: \$? = $ac_status" >&5 14542 (exit $ac_status); } && 14543 { (eval echo "$as_me:14543: \"test -s conftest$ac_exeext\"") >&5 14544 (eval test -s conftest$ac_exeext) 2>&5 14545 ac_status=$? 14546 echo "$as_me:14546: \$? = $ac_status" >&5 14547 (exit $ac_status); }; then 14548 ac_cv_lib_posix_remove=yes 14549else 14550 echo "$as_me: failed program was:" >&5 14551cat conftest.$ac_ext >&5 14552ac_cv_lib_posix_remove=no 14553fi 14554rm -f conftest$ac_exeext conftest.$ac_ext 14555LIBS=$ac_check_lib_save_LIBS 14556fi 14557echo "$as_me:14557: result: $ac_cv_lib_posix_remove" >&5 14558echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 14559if test $ac_cv_lib_posix_remove = yes; then 14560 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 14561fi 14562 14563 fi 14564 14565 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 14566 echo "$as_me:14566: checking for shmat" >&5 14567echo $ECHO_N "checking for shmat... $ECHO_C" >&6 14568if test "${ac_cv_func_shmat+set}" = set; then 14569 echo $ECHO_N "(cached) $ECHO_C" >&6 14570else 14571 cat >conftest.$ac_ext <<_ACEOF 14572#line 14572 "configure" 14573#include "confdefs.h" 14574/* System header to define __stub macros and hopefully few prototypes, 14575 which can conflict with char shmat (); below. */ 14576#include <assert.h> 14577/* Override any gcc2 internal prototype to avoid an error. */ 14578#ifdef __cplusplus 14579extern "C" 14580#endif 14581/* We use char because int might match the return type of a gcc2 14582 builtin and then its argument prototype would still apply. */ 14583char shmat (); 14584char (*f) (); 14585 14586int 14587main () 14588{ 14589/* The GNU C library defines this for functions which it implements 14590 to always fail with ENOSYS. Some functions are actually named 14591 something starting with __ and the normal name is an alias. */ 14592#if defined (__stub_shmat) || defined (__stub___shmat) 14593choke me 14594#else 14595f = shmat; 14596#endif 14597 14598 ; 14599 return 0; 14600} 14601_ACEOF 14602rm -f conftest.$ac_objext conftest$ac_exeext 14603if { (eval echo "$as_me:14603: \"$ac_link\"") >&5 14604 (eval $ac_link) 2>&5 14605 ac_status=$? 14606 echo "$as_me:14606: \$? = $ac_status" >&5 14607 (exit $ac_status); } && 14608 { (eval echo "$as_me:14608: \"test -s conftest$ac_exeext\"") >&5 14609 (eval test -s conftest$ac_exeext) 2>&5 14610 ac_status=$? 14611 echo "$as_me:14611: \$? = $ac_status" >&5 14612 (exit $ac_status); }; then 14613 ac_cv_func_shmat=yes 14614else 14615 echo "$as_me: failed program was:" >&5 14616cat conftest.$ac_ext >&5 14617ac_cv_func_shmat=no 14618fi 14619rm -f conftest$ac_exeext conftest.$ac_ext 14620fi 14621echo "$as_me:14621: result: $ac_cv_func_shmat" >&5 14622echo "${ECHO_T}$ac_cv_func_shmat" >&6 14623 14624 if test $ac_cv_func_shmat = no; then 14625 echo "$as_me:14625: checking for shmat in -lipc" >&5 14626echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 14627if test "${ac_cv_lib_ipc_shmat+set}" = set; then 14628 echo $ECHO_N "(cached) $ECHO_C" >&6 14629else 14630 ac_check_lib_save_LIBS=$LIBS 14631LIBS="-lipc $LIBS" 14632cat >conftest.$ac_ext <<_ACEOF 14633#line 14633 "configure" 14634#include "confdefs.h" 14635 14636/* Override any gcc2 internal prototype to avoid an error. */ 14637#ifdef __cplusplus 14638extern "C" 14639#endif 14640/* We use char because int might match the return type of a gcc2 14641 builtin and then its argument prototype would still apply. */ 14642char shmat (); 14643int 14644main () 14645{ 14646shmat (); 14647 ; 14648 return 0; 14649} 14650_ACEOF 14651rm -f conftest.$ac_objext conftest$ac_exeext 14652if { (eval echo "$as_me:14652: \"$ac_link\"") >&5 14653 (eval $ac_link) 2>&5 14654 ac_status=$? 14655 echo "$as_me:14655: \$? = $ac_status" >&5 14656 (exit $ac_status); } && 14657 { (eval echo "$as_me:14657: \"test -s conftest$ac_exeext\"") >&5 14658 (eval test -s conftest$ac_exeext) 2>&5 14659 ac_status=$? 14660 echo "$as_me:14660: \$? = $ac_status" >&5 14661 (exit $ac_status); }; then 14662 ac_cv_lib_ipc_shmat=yes 14663else 14664 echo "$as_me: failed program was:" >&5 14665cat conftest.$ac_ext >&5 14666ac_cv_lib_ipc_shmat=no 14667fi 14668rm -f conftest$ac_exeext conftest.$ac_ext 14669LIBS=$ac_check_lib_save_LIBS 14670fi 14671echo "$as_me:14671: result: $ac_cv_lib_ipc_shmat" >&5 14672echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 14673if test $ac_cv_lib_ipc_shmat = yes; then 14674 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 14675fi 14676 14677 fi 14678 fi 14679 14680 # Check for libraries that X11R6 Xt/Xaw programs need. 14681 ac_save_LDFLAGS=$LDFLAGS 14682 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 14683 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 14684 # check for ICE first), but we must link in the order -lSM -lICE or 14685 # we get undefined symbols. So assume we have SM if we have ICE. 14686 # These have to be linked with before -lX11, unlike the other 14687 # libraries we check for below, so use a different variable. 14688 # John Interrante, Karl Berry 14689 echo "$as_me:14689: checking for IceConnectionNumber in -lICE" >&5 14690echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 14691if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 14692 echo $ECHO_N "(cached) $ECHO_C" >&6 14693else 14694 ac_check_lib_save_LIBS=$LIBS 14695LIBS="-lICE $X_EXTRA_LIBS $LIBS" 14696cat >conftest.$ac_ext <<_ACEOF 14697#line 14697 "configure" 14698#include "confdefs.h" 14699 14700/* Override any gcc2 internal prototype to avoid an error. */ 14701#ifdef __cplusplus 14702extern "C" 14703#endif 14704/* We use char because int might match the return type of a gcc2 14705 builtin and then its argument prototype would still apply. */ 14706char IceConnectionNumber (); 14707int 14708main () 14709{ 14710IceConnectionNumber (); 14711 ; 14712 return 0; 14713} 14714_ACEOF 14715rm -f conftest.$ac_objext conftest$ac_exeext 14716if { (eval echo "$as_me:14716: \"$ac_link\"") >&5 14717 (eval $ac_link) 2>&5 14718 ac_status=$? 14719 echo "$as_me:14719: \$? = $ac_status" >&5 14720 (exit $ac_status); } && 14721 { (eval echo "$as_me:14721: \"test -s conftest$ac_exeext\"") >&5 14722 (eval test -s conftest$ac_exeext) 2>&5 14723 ac_status=$? 14724 echo "$as_me:14724: \$? = $ac_status" >&5 14725 (exit $ac_status); }; then 14726 ac_cv_lib_ICE_IceConnectionNumber=yes 14727else 14728 echo "$as_me: failed program was:" >&5 14729cat conftest.$ac_ext >&5 14730ac_cv_lib_ICE_IceConnectionNumber=no 14731fi 14732rm -f conftest$ac_exeext conftest.$ac_ext 14733LIBS=$ac_check_lib_save_LIBS 14734fi 14735echo "$as_me:14735: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 14736echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 14737if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 14738 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 14739fi 14740 14741 LDFLAGS=$ac_save_LDFLAGS 14742 14743fi 14744 14745# try to figure out if we need any additional ld flags, like -R 14746# and yes, the autoconf X test is utterly broken 14747if test "$no_x" != yes; then 14748 echo "$as_me:14748: checking for special X linker flags" >&5 14749echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6 14750if test "${krb_cv_sys_x_libs_rpath+set}" = set; then 14751 echo $ECHO_N "(cached) $ECHO_C" >&6 14752else 14753 14754 ac_save_libs="$LIBS" 14755 ac_save_cflags="$CFLAGS" 14756 CFLAGS="$CFLAGS $X_CFLAGS" 14757 krb_cv_sys_x_libs_rpath="" 14758 krb_cv_sys_x_libs="" 14759 for rflag in "" "-R" "-R " "-rpath "; do 14760 if test "$rflag" = ""; then 14761 foo="$X_LIBS" 14762 else 14763 foo="" 14764 for flag in $X_LIBS; do 14765 case $flag in 14766 -L*) 14767 foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`" 14768 ;; 14769 *) 14770 foo="$foo $flag" 14771 ;; 14772 esac 14773 done 14774 fi 14775 LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS" 14776 if test "$cross_compiling" = yes; then 14777 { { echo "$as_me:14777: error: cannot run test program while cross compiling" >&5 14778echo "$as_me: error: cannot run test program while cross compiling" >&2;} 14779 { (exit 1); exit 1; }; } 14780else 14781 cat >conftest.$ac_ext <<_ACEOF 14782#line 14782 "configure" 14783#include "confdefs.h" 14784 14785 #include <X11/Xlib.h> 14786 foo() 14787 { 14788 XOpenDisplay(NULL); 14789 } 14790 main() 14791 { 14792 return 0; 14793 } 14794 14795_ACEOF 14796rm -f conftest$ac_exeext 14797if { (eval echo "$as_me:14797: \"$ac_link\"") >&5 14798 (eval $ac_link) 2>&5 14799 ac_status=$? 14800 echo "$as_me:14800: \$? = $ac_status" >&5 14801 (exit $ac_status); } && { (eval echo "$as_me:14801: \"./conftest$ac_exeext\"") >&5 14802 (eval ./conftest$ac_exeext) 2>&5 14803 ac_status=$? 14804 echo "$as_me:14804: \$? = $ac_status" >&5 14805 (exit $ac_status); }; then 14806 krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break 14807else 14808 echo "$as_me: program exited with status $ac_status" >&5 14809echo "$as_me: failed program was:" >&5 14810cat conftest.$ac_ext >&5 14811: 14812fi 14813rm -f conftest$ac_exeext conftest.$ac_ext 14814fi 14815 done 14816 LIBS="$ac_save_libs" 14817 CFLAGS="$ac_save_cflags" 14818 14819fi 14820echo "$as_me:14820: result: $krb_cv_sys_x_libs_rpath" >&5 14821echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6 14822 X_LIBS="$krb_cv_sys_x_libs" 14823fi 14824 14825if test "$no_x" != yes; then 14826 HAVE_X_TRUE= 14827 HAVE_X_FALSE='#' 14828else 14829 HAVE_X_TRUE='#' 14830 HAVE_X_FALSE= 14831fi 14832 14833save_CFLAGS="$CFLAGS" 14834CFLAGS="$X_CFLAGS $CFLAGS" 14835save_LIBS="$LIBS" 14836LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS" 14837save_LDFLAGS="$LDFLAGS" 14838LDFLAGS="$LDFLAGS $X_LIBS" 14839 14840echo "$as_me:14840: checking for XauWriteAuth" >&5 14841echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6 14842if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then 14843 echo $ECHO_N "(cached) $ECHO_C" >&6 14844else 14845 14846if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then 14847 ac_save_LIBS="$LIBS" 14848 for ac_lib in "" X11 Xau; do 14849 if test -n "$ac_lib"; then 14850 ac_lib="-l$ac_lib" 14851 else 14852 ac_lib="" 14853 fi 14854 LIBS=" $ac_lib $ac_save_LIBS" 14855 cat >conftest.$ac_ext <<_ACEOF 14856#line 14856 "configure" 14857#include "confdefs.h" 14858 14859int 14860main () 14861{ 14862XauWriteAuth() 14863 ; 14864 return 0; 14865} 14866_ACEOF 14867rm -f conftest.$ac_objext conftest$ac_exeext 14868if { (eval echo "$as_me:14868: \"$ac_link\"") >&5 14869 (eval $ac_link) 2>&5 14870 ac_status=$? 14871 echo "$as_me:14871: \$? = $ac_status" >&5 14872 (exit $ac_status); } && 14873 { (eval echo "$as_me:14873: \"test -s conftest$ac_exeext\"") >&5 14874 (eval test -s conftest$ac_exeext) 2>&5 14875 ac_status=$? 14876 echo "$as_me:14876: \$? = $ac_status" >&5 14877 (exit $ac_status); }; then 14878 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break 14879else 14880 echo "$as_me: failed program was:" >&5 14881cat conftest.$ac_ext >&5 14882fi 14883rm -f conftest$ac_exeext conftest.$ac_ext 14884 done 14885 eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}" 14886 LIBS="$ac_save_LIBS" 14887fi 14888 14889fi 14890 14891eval "ac_res=\$ac_cv_funclib_XauWriteAuth" 14892 14893if false; then 14894 14895for ac_func in XauWriteAuth 14896do 14897ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 14898echo "$as_me:14898: checking for $ac_func" >&5 14899echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 14900if eval "test \"\${$ac_ac_var+set}\" = set"; then 14901 echo $ECHO_N "(cached) $ECHO_C" >&6 14902else 14903 cat >conftest.$ac_ext <<_ACEOF 14904#line 14904 "configure" 14905#include "confdefs.h" 14906/* System header to define __stub macros and hopefully few prototypes, 14907 which can conflict with char $ac_func (); below. */ 14908#include <assert.h> 14909/* Override any gcc2 internal prototype to avoid an error. */ 14910#ifdef __cplusplus 14911extern "C" 14912#endif 14913/* We use char because int might match the return type of a gcc2 14914 builtin and then its argument prototype would still apply. */ 14915char $ac_func (); 14916char (*f) (); 14917 14918int 14919main () 14920{ 14921/* The GNU C library defines this for functions which it implements 14922 to always fail with ENOSYS. Some functions are actually named 14923 something starting with __ and the normal name is an alias. */ 14924#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14925choke me 14926#else 14927f = $ac_func; 14928#endif 14929 14930 ; 14931 return 0; 14932} 14933_ACEOF 14934rm -f conftest.$ac_objext conftest$ac_exeext 14935if { (eval echo "$as_me:14935: \"$ac_link\"") >&5 14936 (eval $ac_link) 2>&5 14937 ac_status=$? 14938 echo "$as_me:14938: \$? = $ac_status" >&5 14939 (exit $ac_status); } && 14940 { (eval echo "$as_me:14940: \"test -s conftest$ac_exeext\"") >&5 14941 (eval test -s conftest$ac_exeext) 2>&5 14942 ac_status=$? 14943 echo "$as_me:14943: \$? = $ac_status" >&5 14944 (exit $ac_status); }; then 14945 eval "$ac_ac_var=yes" 14946else 14947 echo "$as_me: failed program was:" >&5 14948cat conftest.$ac_ext >&5 14949eval "$ac_ac_var=no" 14950fi 14951rm -f conftest$ac_exeext conftest.$ac_ext 14952fi 14953echo "$as_me:14953: result: `eval echo '${'$ac_ac_var'}'`" >&5 14954echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 14955if test `eval echo '${'$ac_ac_var'}'` = yes; then 14956 cat >>confdefs.h <<EOF 14957#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 14958EOF 14959 14960fi 14961done 14962 14963fi 14964# XauWriteAuth 14965eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14966eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14967eval "LIB_XauWriteAuth=$ac_res" 14968 14969case "$ac_res" in 14970 yes) 14971 eval "ac_cv_func_XauWriteAuth=yes" 14972 eval "LIB_XauWriteAuth=" 14973 cat >>confdefs.h <<EOF 14974#define $ac_tr_func 1 14975EOF 14976 14977 echo "$as_me:14977: result: yes" >&5 14978echo "${ECHO_T}yes" >&6 14979 ;; 14980 no) 14981 eval "ac_cv_func_XauWriteAuth=no" 14982 eval "LIB_XauWriteAuth=" 14983 echo "$as_me:14983: result: no" >&5 14984echo "${ECHO_T}no" >&6 14985 ;; 14986 *) 14987 eval "ac_cv_func_XauWriteAuth=yes" 14988 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 14989 cat >>confdefs.h <<EOF 14990#define $ac_tr_func 1 14991EOF 14992 14993 cat >>confdefs.h <<EOF 14994#define $ac_tr_lib 1 14995EOF 14996 14997 echo "$as_me:14997: result: yes, in $ac_res" >&5 14998echo "${ECHO_T}yes, in $ac_res" >&6 14999 ;; 15000esac 15001 15002ac_xxx="$LIBS" 15003LIBS="$LIB_XauWriteAuth $LIBS" 15004 15005echo "$as_me:15005: checking for XauReadAuth" >&5 15006echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6 15007if test "${ac_cv_funclib_XauReadAuth+set}" = set; then 15008 echo $ECHO_N "(cached) $ECHO_C" >&6 15009else 15010 15011if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then 15012 ac_save_LIBS="$LIBS" 15013 for ac_lib in "" X11 Xau; do 15014 if test -n "$ac_lib"; then 15015 ac_lib="-l$ac_lib" 15016 else 15017 ac_lib="" 15018 fi 15019 LIBS=" $ac_lib $ac_save_LIBS" 15020 cat >conftest.$ac_ext <<_ACEOF 15021#line 15021 "configure" 15022#include "confdefs.h" 15023 15024int 15025main () 15026{ 15027XauReadAuth() 15028 ; 15029 return 0; 15030} 15031_ACEOF 15032rm -f conftest.$ac_objext conftest$ac_exeext 15033if { (eval echo "$as_me:15033: \"$ac_link\"") >&5 15034 (eval $ac_link) 2>&5 15035 ac_status=$? 15036 echo "$as_me:15036: \$? = $ac_status" >&5 15037 (exit $ac_status); } && 15038 { (eval echo "$as_me:15038: \"test -s conftest$ac_exeext\"") >&5 15039 (eval test -s conftest$ac_exeext) 2>&5 15040 ac_status=$? 15041 echo "$as_me:15041: \$? = $ac_status" >&5 15042 (exit $ac_status); }; then 15043 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break 15044else 15045 echo "$as_me: failed program was:" >&5 15046cat conftest.$ac_ext >&5 15047fi 15048rm -f conftest$ac_exeext conftest.$ac_ext 15049 done 15050 eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}" 15051 LIBS="$ac_save_LIBS" 15052fi 15053 15054fi 15055 15056eval "ac_res=\$ac_cv_funclib_XauReadAuth" 15057 15058if false; then 15059 15060for ac_func in XauReadAuth 15061do 15062ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 15063echo "$as_me:15063: checking for $ac_func" >&5 15064echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15065if eval "test \"\${$ac_ac_var+set}\" = set"; then 15066 echo $ECHO_N "(cached) $ECHO_C" >&6 15067else 15068 cat >conftest.$ac_ext <<_ACEOF 15069#line 15069 "configure" 15070#include "confdefs.h" 15071/* System header to define __stub macros and hopefully few prototypes, 15072 which can conflict with char $ac_func (); below. */ 15073#include <assert.h> 15074/* Override any gcc2 internal prototype to avoid an error. */ 15075#ifdef __cplusplus 15076extern "C" 15077#endif 15078/* We use char because int might match the return type of a gcc2 15079 builtin and then its argument prototype would still apply. */ 15080char $ac_func (); 15081char (*f) (); 15082 15083int 15084main () 15085{ 15086/* The GNU C library defines this for functions which it implements 15087 to always fail with ENOSYS. Some functions are actually named 15088 something starting with __ and the normal name is an alias. */ 15089#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15090choke me 15091#else 15092f = $ac_func; 15093#endif 15094 15095 ; 15096 return 0; 15097} 15098_ACEOF 15099rm -f conftest.$ac_objext conftest$ac_exeext 15100if { (eval echo "$as_me:15100: \"$ac_link\"") >&5 15101 (eval $ac_link) 2>&5 15102 ac_status=$? 15103 echo "$as_me:15103: \$? = $ac_status" >&5 15104 (exit $ac_status); } && 15105 { (eval echo "$as_me:15105: \"test -s conftest$ac_exeext\"") >&5 15106 (eval test -s conftest$ac_exeext) 2>&5 15107 ac_status=$? 15108 echo "$as_me:15108: \$? = $ac_status" >&5 15109 (exit $ac_status); }; then 15110 eval "$ac_ac_var=yes" 15111else 15112 echo "$as_me: failed program was:" >&5 15113cat conftest.$ac_ext >&5 15114eval "$ac_ac_var=no" 15115fi 15116rm -f conftest$ac_exeext conftest.$ac_ext 15117fi 15118echo "$as_me:15118: result: `eval echo '${'$ac_ac_var'}'`" >&5 15119echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 15120if test `eval echo '${'$ac_ac_var'}'` = yes; then 15121 cat >>confdefs.h <<EOF 15122#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 15123EOF 15124 15125fi 15126done 15127 15128fi 15129# XauReadAuth 15130eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15131eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15132eval "LIB_XauReadAuth=$ac_res" 15133 15134case "$ac_res" in 15135 yes) 15136 eval "ac_cv_func_XauReadAuth=yes" 15137 eval "LIB_XauReadAuth=" 15138 cat >>confdefs.h <<EOF 15139#define $ac_tr_func 1 15140EOF 15141 15142 echo "$as_me:15142: result: yes" >&5 15143echo "${ECHO_T}yes" >&6 15144 ;; 15145 no) 15146 eval "ac_cv_func_XauReadAuth=no" 15147 eval "LIB_XauReadAuth=" 15148 echo "$as_me:15148: result: no" >&5 15149echo "${ECHO_T}no" >&6 15150 ;; 15151 *) 15152 eval "ac_cv_func_XauReadAuth=yes" 15153 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 15154 cat >>confdefs.h <<EOF 15155#define $ac_tr_func 1 15156EOF 15157 15158 cat >>confdefs.h <<EOF 15159#define $ac_tr_lib 1 15160EOF 15161 15162 echo "$as_me:15162: result: yes, in $ac_res" >&5 15163echo "${ECHO_T}yes, in $ac_res" >&6 15164 ;; 15165esac 15166 15167LIBS="$LIB_XauReadAauth $LIBS" 15168 15169echo "$as_me:15169: checking for XauFileName" >&5 15170echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6 15171if test "${ac_cv_funclib_XauFileName+set}" = set; then 15172 echo $ECHO_N "(cached) $ECHO_C" >&6 15173else 15174 15175if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then 15176 ac_save_LIBS="$LIBS" 15177 for ac_lib in "" X11 Xau; do 15178 if test -n "$ac_lib"; then 15179 ac_lib="-l$ac_lib" 15180 else 15181 ac_lib="" 15182 fi 15183 LIBS=" $ac_lib $ac_save_LIBS" 15184 cat >conftest.$ac_ext <<_ACEOF 15185#line 15185 "configure" 15186#include "confdefs.h" 15187 15188int 15189main () 15190{ 15191XauFileName() 15192 ; 15193 return 0; 15194} 15195_ACEOF 15196rm -f conftest.$ac_objext conftest$ac_exeext 15197if { (eval echo "$as_me:15197: \"$ac_link\"") >&5 15198 (eval $ac_link) 2>&5 15199 ac_status=$? 15200 echo "$as_me:15200: \$? = $ac_status" >&5 15201 (exit $ac_status); } && 15202 { (eval echo "$as_me:15202: \"test -s conftest$ac_exeext\"") >&5 15203 (eval test -s conftest$ac_exeext) 2>&5 15204 ac_status=$? 15205 echo "$as_me:15205: \$? = $ac_status" >&5 15206 (exit $ac_status); }; then 15207 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break 15208else 15209 echo "$as_me: failed program was:" >&5 15210cat conftest.$ac_ext >&5 15211fi 15212rm -f conftest$ac_exeext conftest.$ac_ext 15213 done 15214 eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}" 15215 LIBS="$ac_save_LIBS" 15216fi 15217 15218fi 15219 15220eval "ac_res=\$ac_cv_funclib_XauFileName" 15221 15222if false; then 15223 15224for ac_func in XauFileName 15225do 15226ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 15227echo "$as_me:15227: checking for $ac_func" >&5 15228echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15229if eval "test \"\${$ac_ac_var+set}\" = set"; then 15230 echo $ECHO_N "(cached) $ECHO_C" >&6 15231else 15232 cat >conftest.$ac_ext <<_ACEOF 15233#line 15233 "configure" 15234#include "confdefs.h" 15235/* System header to define __stub macros and hopefully few prototypes, 15236 which can conflict with char $ac_func (); below. */ 15237#include <assert.h> 15238/* Override any gcc2 internal prototype to avoid an error. */ 15239#ifdef __cplusplus 15240extern "C" 15241#endif 15242/* We use char because int might match the return type of a gcc2 15243 builtin and then its argument prototype would still apply. */ 15244char $ac_func (); 15245char (*f) (); 15246 15247int 15248main () 15249{ 15250/* The GNU C library defines this for functions which it implements 15251 to always fail with ENOSYS. Some functions are actually named 15252 something starting with __ and the normal name is an alias. */ 15253#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15254choke me 15255#else 15256f = $ac_func; 15257#endif 15258 15259 ; 15260 return 0; 15261} 15262_ACEOF 15263rm -f conftest.$ac_objext conftest$ac_exeext 15264if { (eval echo "$as_me:15264: \"$ac_link\"") >&5 15265 (eval $ac_link) 2>&5 15266 ac_status=$? 15267 echo "$as_me:15267: \$? = $ac_status" >&5 15268 (exit $ac_status); } && 15269 { (eval echo "$as_me:15269: \"test -s conftest$ac_exeext\"") >&5 15270 (eval test -s conftest$ac_exeext) 2>&5 15271 ac_status=$? 15272 echo "$as_me:15272: \$? = $ac_status" >&5 15273 (exit $ac_status); }; then 15274 eval "$ac_ac_var=yes" 15275else 15276 echo "$as_me: failed program was:" >&5 15277cat conftest.$ac_ext >&5 15278eval "$ac_ac_var=no" 15279fi 15280rm -f conftest$ac_exeext conftest.$ac_ext 15281fi 15282echo "$as_me:15282: result: `eval echo '${'$ac_ac_var'}'`" >&5 15283echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 15284if test `eval echo '${'$ac_ac_var'}'` = yes; then 15285 cat >>confdefs.h <<EOF 15286#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 15287EOF 15288 15289fi 15290done 15291 15292fi 15293# XauFileName 15294eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15295eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15296eval "LIB_XauFileName=$ac_res" 15297 15298case "$ac_res" in 15299 yes) 15300 eval "ac_cv_func_XauFileName=yes" 15301 eval "LIB_XauFileName=" 15302 cat >>confdefs.h <<EOF 15303#define $ac_tr_func 1 15304EOF 15305 15306 echo "$as_me:15306: result: yes" >&5 15307echo "${ECHO_T}yes" >&6 15308 ;; 15309 no) 15310 eval "ac_cv_func_XauFileName=no" 15311 eval "LIB_XauFileName=" 15312 echo "$as_me:15312: result: no" >&5 15313echo "${ECHO_T}no" >&6 15314 ;; 15315 *) 15316 eval "ac_cv_func_XauFileName=yes" 15317 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 15318 cat >>confdefs.h <<EOF 15319#define $ac_tr_func 1 15320EOF 15321 15322 cat >>confdefs.h <<EOF 15323#define $ac_tr_lib 1 15324EOF 15325 15326 echo "$as_me:15326: result: yes, in $ac_res" >&5 15327echo "${ECHO_T}yes, in $ac_res" >&6 15328 ;; 15329esac 15330 15331LIBS="$ac_xxx" 15332 15333case "$ac_cv_funclib_XauWriteAuth" in 15334yes) ;; 15335no) ;; 15336*) if test "$ac_cv_funclib_XauReadAuth" = yes; then 15337 if test "$ac_cv_funclib_XauFileName" = yes; then 15338 LIB_XauReadAuth="$LIB_XauWriteAuth" 15339 else 15340 LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName" 15341 fi 15342 else 15343 if test "$ac_cv_funclib_XauFileName" = yes; then 15344 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth" 15345 else 15346 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName" 15347 fi 15348 fi 15349 ;; 15350esac 15351 15352if test "$AUTOMAKE" != ""; then 15353 15354if test "$ac_cv_func_XauWriteAuth" != "yes"; then 15355 NEED_WRITEAUTH_TRUE= 15356 NEED_WRITEAUTH_FALSE='#' 15357else 15358 NEED_WRITEAUTH_TRUE='#' 15359 NEED_WRITEAUTH_FALSE= 15360fi 15361else 15362 15363 if test "$ac_cv_func_XauWriteAuth" != "yes"; then 15364 NEED_WRITEAUTH_TRUE= 15365 NEED_WRITEAUTH_FALSE='#' 15366 else 15367 NEED_WRITEAUTH_TRUE='#' 15368 NEED_WRITEAUTH_FALSE= 15369 fi 15370fi 15371CFLAGS=$save_CFLAGS 15372LIBS=$save_LIBS 15373LDFLAGS=$save_LDFLAGS 15374 15375echo "$as_me:15375: checking for an ANSI C-conforming const" >&5 15376echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 15377if test "${ac_cv_c_const+set}" = set; then 15378 echo $ECHO_N "(cached) $ECHO_C" >&6 15379else 15380 cat >conftest.$ac_ext <<_ACEOF 15381#line 15381 "configure" 15382#include "confdefs.h" 15383 15384int 15385main () 15386{ 15387/* FIXME: Include the comments suggested by Paul. */ 15388#ifndef __cplusplus 15389 /* Ultrix mips cc rejects this. */ 15390 typedef int charset[2]; 15391 const charset x; 15392 /* SunOS 4.1.1 cc rejects this. */ 15393 char const *const *ccp; 15394 char **p; 15395 /* NEC SVR4.0.2 mips cc rejects this. */ 15396 struct point {int x, y;}; 15397 static struct point const zero = {0,0}; 15398 /* AIX XL C 1.02.0.0 rejects this. 15399 It does not let you subtract one const X* pointer from another in 15400 an arm of an if-expression whose if-part is not a constant 15401 expression */ 15402 const char *g = "string"; 15403 ccp = &g + (g ? g-g : 0); 15404 /* HPUX 7.0 cc rejects these. */ 15405 ++ccp; 15406 p = (char**) ccp; 15407 ccp = (char const *const *) p; 15408 { /* SCO 3.2v4 cc rejects this. */ 15409 char *t; 15410 char const *s = 0 ? (char *) 0 : (char const *) 0; 15411 15412 *t++ = 0; 15413 } 15414 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 15415 int x[] = {25, 17}; 15416 const int *foo = &x[0]; 15417 ++foo; 15418 } 15419 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 15420 typedef const int *iptr; 15421 iptr p = 0; 15422 ++p; 15423 } 15424 { /* AIX XL C 1.02.0.0 rejects this saying 15425 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 15426 struct s { int j; const int *ap[3]; }; 15427 struct s *b; b->j = 5; 15428 } 15429 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 15430 const int foo = 10; 15431 } 15432#endif 15433 15434 ; 15435 return 0; 15436} 15437_ACEOF 15438rm -f conftest.$ac_objext 15439if { (eval echo "$as_me:15439: \"$ac_compile\"") >&5 15440 (eval $ac_compile) 2>&5 15441 ac_status=$? 15442 echo "$as_me:15442: \$? = $ac_status" >&5 15443 (exit $ac_status); } && 15444 { (eval echo "$as_me:15444: \"test -s conftest.$ac_objext\"") >&5 15445 (eval test -s conftest.$ac_objext) 2>&5 15446 ac_status=$? 15447 echo "$as_me:15447: \$? = $ac_status" >&5 15448 (exit $ac_status); }; then 15449 ac_cv_c_const=yes 15450else 15451 echo "$as_me: failed program was:" >&5 15452cat conftest.$ac_ext >&5 15453ac_cv_c_const=no 15454fi 15455rm -f conftest.$ac_objext conftest.$ac_ext 15456fi 15457echo "$as_me:15457: result: $ac_cv_c_const" >&5 15458echo "${ECHO_T}$ac_cv_c_const" >&6 15459if test $ac_cv_c_const = no; then 15460 15461cat >>confdefs.h <<\EOF 15462#define const 15463EOF 15464 15465fi 15466 15467echo "$as_me:15467: checking for off_t" >&5 15468echo $ECHO_N "checking for off_t... $ECHO_C" >&6 15469if test "${ac_cv_type_off_t+set}" = set; then 15470 echo $ECHO_N "(cached) $ECHO_C" >&6 15471else 15472 cat >conftest.$ac_ext <<_ACEOF 15473#line 15473 "configure" 15474#include "confdefs.h" 15475$ac_includes_default 15476int 15477main () 15478{ 15479if ((off_t *) 0) 15480 return 0; 15481if (sizeof (off_t)) 15482 return 0; 15483 ; 15484 return 0; 15485} 15486_ACEOF 15487rm -f conftest.$ac_objext 15488if { (eval echo "$as_me:15488: \"$ac_compile\"") >&5 15489 (eval $ac_compile) 2>&5 15490 ac_status=$? 15491 echo "$as_me:15491: \$? = $ac_status" >&5 15492 (exit $ac_status); } && 15493 { (eval echo "$as_me:15493: \"test -s conftest.$ac_objext\"") >&5 15494 (eval test -s conftest.$ac_objext) 2>&5 15495 ac_status=$? 15496 echo "$as_me:15496: \$? = $ac_status" >&5 15497 (exit $ac_status); }; then 15498 ac_cv_type_off_t=yes 15499else 15500 echo "$as_me: failed program was:" >&5 15501cat conftest.$ac_ext >&5 15502ac_cv_type_off_t=no 15503fi 15504rm -f conftest.$ac_objext conftest.$ac_ext 15505fi 15506echo "$as_me:15506: result: $ac_cv_type_off_t" >&5 15507echo "${ECHO_T}$ac_cv_type_off_t" >&6 15508if test $ac_cv_type_off_t = yes; then 15509 : 15510else 15511 15512cat >>confdefs.h <<EOF 15513#define off_t long 15514EOF 15515 15516fi 15517 15518echo "$as_me:15518: checking for size_t" >&5 15519echo $ECHO_N "checking for size_t... $ECHO_C" >&6 15520if test "${ac_cv_type_size_t+set}" = set; then 15521 echo $ECHO_N "(cached) $ECHO_C" >&6 15522else 15523 cat >conftest.$ac_ext <<_ACEOF 15524#line 15524 "configure" 15525#include "confdefs.h" 15526$ac_includes_default 15527int 15528main () 15529{ 15530if ((size_t *) 0) 15531 return 0; 15532if (sizeof (size_t)) 15533 return 0; 15534 ; 15535 return 0; 15536} 15537_ACEOF 15538rm -f conftest.$ac_objext 15539if { (eval echo "$as_me:15539: \"$ac_compile\"") >&5 15540 (eval $ac_compile) 2>&5 15541 ac_status=$? 15542 echo "$as_me:15542: \$? = $ac_status" >&5 15543 (exit $ac_status); } && 15544 { (eval echo "$as_me:15544: \"test -s conftest.$ac_objext\"") >&5 15545 (eval test -s conftest.$ac_objext) 2>&5 15546 ac_status=$? 15547 echo "$as_me:15547: \$? = $ac_status" >&5 15548 (exit $ac_status); }; then 15549 ac_cv_type_size_t=yes 15550else 15551 echo "$as_me: failed program was:" >&5 15552cat conftest.$ac_ext >&5 15553ac_cv_type_size_t=no 15554fi 15555rm -f conftest.$ac_objext conftest.$ac_ext 15556fi 15557echo "$as_me:15557: result: $ac_cv_type_size_t" >&5 15558echo "${ECHO_T}$ac_cv_type_size_t" >&6 15559if test $ac_cv_type_size_t = yes; then 15560 : 15561else 15562 15563cat >>confdefs.h <<EOF 15564#define size_t unsigned 15565EOF 15566 15567fi 15568 15569echo "$as_me:15569: checking for ssize_t" >&5 15570echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 15571if test "${ac_cv_type_ssize_t+set}" = set; then 15572 echo $ECHO_N "(cached) $ECHO_C" >&6 15573else 15574 cat >conftest.$ac_ext <<_ACEOF 15575#line 15575 "configure" 15576#include "confdefs.h" 15577#include <sys/types.h> 15578#if STDC_HEADERS 15579#include <stdlib.h> 15580#include <stddef.h> 15581#endif 15582#include <unistd.h> 15583_ACEOF 15584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15585 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 15586 ac_cv_type_ssize_t=yes 15587else 15588 ac_cv_type_ssize_t=no 15589fi 15590rm -f conftest* 15591 15592fi 15593echo "$as_me:15593: result: $ac_cv_type_ssize_t" >&5 15594echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 15595if test $ac_cv_type_ssize_t = no; then 15596 15597cat >>confdefs.h <<\EOF 15598#define ssize_t int 15599EOF 15600 15601fi 15602 15603echo "$as_me:15603: checking for pid_t" >&5 15604echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 15605if test "${ac_cv_type_pid_t+set}" = set; then 15606 echo $ECHO_N "(cached) $ECHO_C" >&6 15607else 15608 cat >conftest.$ac_ext <<_ACEOF 15609#line 15609 "configure" 15610#include "confdefs.h" 15611$ac_includes_default 15612int 15613main () 15614{ 15615if ((pid_t *) 0) 15616 return 0; 15617if (sizeof (pid_t)) 15618 return 0; 15619 ; 15620 return 0; 15621} 15622_ACEOF 15623rm -f conftest.$ac_objext 15624if { (eval echo "$as_me:15624: \"$ac_compile\"") >&5 15625 (eval $ac_compile) 2>&5 15626 ac_status=$? 15627 echo "$as_me:15627: \$? = $ac_status" >&5 15628 (exit $ac_status); } && 15629 { (eval echo "$as_me:15629: \"test -s conftest.$ac_objext\"") >&5 15630 (eval test -s conftest.$ac_objext) 2>&5 15631 ac_status=$? 15632 echo "$as_me:15632: \$? = $ac_status" >&5 15633 (exit $ac_status); }; then 15634 ac_cv_type_pid_t=yes 15635else 15636 echo "$as_me: failed program was:" >&5 15637cat conftest.$ac_ext >&5 15638ac_cv_type_pid_t=no 15639fi 15640rm -f conftest.$ac_objext conftest.$ac_ext 15641fi 15642echo "$as_me:15642: result: $ac_cv_type_pid_t" >&5 15643echo "${ECHO_T}$ac_cv_type_pid_t" >&6 15644if test $ac_cv_type_pid_t = yes; then 15645 : 15646else 15647 15648cat >>confdefs.h <<EOF 15649#define pid_t int 15650EOF 15651 15652fi 15653 15654echo "$as_me:15654: checking for uid_t in sys/types.h" >&5 15655echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 15656if test "${ac_cv_type_uid_t+set}" = set; then 15657 echo $ECHO_N "(cached) $ECHO_C" >&6 15658else 15659 cat >conftest.$ac_ext <<_ACEOF 15660#line 15660 "configure" 15661#include "confdefs.h" 15662#include <sys/types.h> 15663 15664_ACEOF 15665if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15666 egrep "uid_t" >/dev/null 2>&1; then 15667 ac_cv_type_uid_t=yes 15668else 15669 ac_cv_type_uid_t=no 15670fi 15671rm -f conftest* 15672 15673fi 15674echo "$as_me:15674: result: $ac_cv_type_uid_t" >&5 15675echo "${ECHO_T}$ac_cv_type_uid_t" >&6 15676if test $ac_cv_type_uid_t = no; then 15677 15678cat >>confdefs.h <<\EOF 15679#define uid_t int 15680EOF 15681 15682cat >>confdefs.h <<\EOF 15683#define gid_t int 15684EOF 15685 15686fi 15687 15688echo "$as_me:15688: checking for mode_t" >&5 15689echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 15690if test "${ac_cv_type_mode_t+set}" = set; then 15691 echo $ECHO_N "(cached) $ECHO_C" >&6 15692else 15693 cat >conftest.$ac_ext <<_ACEOF 15694#line 15694 "configure" 15695#include "confdefs.h" 15696#include <sys/types.h> 15697#if STDC_HEADERS 15698#include <stdlib.h> 15699#include <stddef.h> 15700#endif 15701 15702_ACEOF 15703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15704 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 15705 ac_cv_type_mode_t=yes 15706else 15707 ac_cv_type_mode_t=no 15708fi 15709rm -f conftest* 15710 15711fi 15712echo "$as_me:15712: result: $ac_cv_type_mode_t" >&5 15713echo "${ECHO_T}$ac_cv_type_mode_t" >&6 15714if test $ac_cv_type_mode_t = no; then 15715 15716cat >>confdefs.h <<\EOF 15717#define mode_t unsigned short 15718EOF 15719 15720fi 15721 15722echo "$as_me:15722: checking for sig_atomic_t" >&5 15723echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6 15724if test "${ac_cv_type_sig_atomic_t+set}" = set; then 15725 echo $ECHO_N "(cached) $ECHO_C" >&6 15726else 15727 cat >conftest.$ac_ext <<_ACEOF 15728#line 15728 "configure" 15729#include "confdefs.h" 15730#include <sys/types.h> 15731#if STDC_HEADERS 15732#include <stdlib.h> 15733#include <stddef.h> 15734#endif 15735#include <signal.h> 15736_ACEOF 15737if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15738 egrep "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 15739 ac_cv_type_sig_atomic_t=yes 15740else 15741 ac_cv_type_sig_atomic_t=no 15742fi 15743rm -f conftest* 15744 15745fi 15746echo "$as_me:15746: result: $ac_cv_type_sig_atomic_t" >&5 15747echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6 15748if test $ac_cv_type_sig_atomic_t = no; then 15749 15750cat >>confdefs.h <<\EOF 15751#define sig_atomic_t int 15752EOF 15753 15754fi 15755 15756cv=`echo "long long" | sed 'y%./+- %__p__%'` 15757echo "$as_me:15757: checking for long long" >&5 15758echo $ECHO_N "checking for long long... $ECHO_C" >&6 15759if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 15760 echo $ECHO_N "(cached) $ECHO_C" >&6 15761else 15762 cat >conftest.$ac_ext <<_ACEOF 15763#line 15763 "configure" 15764#include "confdefs.h" 15765#include <sys/types.h> 15766#if STDC_HEADERS 15767#include <stdlib.h> 15768#include <stddef.h> 15769#endif 15770 15771int 15772main () 15773{ 15774long long foo; 15775 ; 15776 return 0; 15777} 15778_ACEOF 15779rm -f conftest.$ac_objext 15780if { (eval echo "$as_me:15780: \"$ac_compile\"") >&5 15781 (eval $ac_compile) 2>&5 15782 ac_status=$? 15783 echo "$as_me:15783: \$? = $ac_status" >&5 15784 (exit $ac_status); } && 15785 { (eval echo "$as_me:15785: \"test -s conftest.$ac_objext\"") >&5 15786 (eval test -s conftest.$ac_objext) 2>&5 15787 ac_status=$? 15788 echo "$as_me:15788: \$? = $ac_status" >&5 15789 (exit $ac_status); }; then 15790 eval "ac_cv_type_$cv=yes" 15791else 15792 echo "$as_me: failed program was:" >&5 15793cat conftest.$ac_ext >&5 15794eval "ac_cv_type_$cv=no" 15795fi 15796rm -f conftest.$ac_objext conftest.$ac_ext 15797fi 15798ac_foo=`eval echo \\$ac_cv_type_$cv` 15799echo "$as_me:15799: result: $ac_foo" >&5 15800echo "${ECHO_T}$ac_foo" >&6 15801if test "$ac_foo" = yes; then 15802 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 15803if false; then 15804 echo "$as_me:15804: checking for long long" >&5 15805echo $ECHO_N "checking for long long... $ECHO_C" >&6 15806if test "${ac_cv_type_long_long+set}" = set; then 15807 echo $ECHO_N "(cached) $ECHO_C" >&6 15808else 15809 cat >conftest.$ac_ext <<_ACEOF 15810#line 15810 "configure" 15811#include "confdefs.h" 15812$ac_includes_default 15813int 15814main () 15815{ 15816if ((long long *) 0) 15817 return 0; 15818if (sizeof (long long)) 15819 return 0; 15820 ; 15821 return 0; 15822} 15823_ACEOF 15824rm -f conftest.$ac_objext 15825if { (eval echo "$as_me:15825: \"$ac_compile\"") >&5 15826 (eval $ac_compile) 2>&5 15827 ac_status=$? 15828 echo "$as_me:15828: \$? = $ac_status" >&5 15829 (exit $ac_status); } && 15830 { (eval echo "$as_me:15830: \"test -s conftest.$ac_objext\"") >&5 15831 (eval test -s conftest.$ac_objext) 2>&5 15832 ac_status=$? 15833 echo "$as_me:15833: \$? = $ac_status" >&5 15834 (exit $ac_status); }; then 15835 ac_cv_type_long_long=yes 15836else 15837 echo "$as_me: failed program was:" >&5 15838cat conftest.$ac_ext >&5 15839ac_cv_type_long_long=no 15840fi 15841rm -f conftest.$ac_objext conftest.$ac_ext 15842fi 15843echo "$as_me:15843: result: $ac_cv_type_long_long" >&5 15844echo "${ECHO_T}$ac_cv_type_long_long" >&6 15845if test $ac_cv_type_long_long = yes; then 15846 15847cat >>confdefs.h <<EOF 15848#define HAVE_LONG_LONG 1 15849EOF 15850 15851fi 15852 15853fi 15854 15855cat >>confdefs.h <<EOF 15856#define $ac_tr_hdr 1 15857EOF 15858 15859fi 15860 15861echo "$as_me:15861: checking whether time.h and sys/time.h may both be included" >&5 15862echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 15863if test "${ac_cv_header_time+set}" = set; then 15864 echo $ECHO_N "(cached) $ECHO_C" >&6 15865else 15866 cat >conftest.$ac_ext <<_ACEOF 15867#line 15867 "configure" 15868#include "confdefs.h" 15869#include <sys/types.h> 15870#include <sys/time.h> 15871#include <time.h> 15872 15873int 15874main () 15875{ 15876struct tm *tp; 15877 ; 15878 return 0; 15879} 15880_ACEOF 15881rm -f conftest.$ac_objext 15882if { (eval echo "$as_me:15882: \"$ac_compile\"") >&5 15883 (eval $ac_compile) 2>&5 15884 ac_status=$? 15885 echo "$as_me:15885: \$? = $ac_status" >&5 15886 (exit $ac_status); } && 15887 { (eval echo "$as_me:15887: \"test -s conftest.$ac_objext\"") >&5 15888 (eval test -s conftest.$ac_objext) 2>&5 15889 ac_status=$? 15890 echo "$as_me:15890: \$? = $ac_status" >&5 15891 (exit $ac_status); }; then 15892 ac_cv_header_time=yes 15893else 15894 echo "$as_me: failed program was:" >&5 15895cat conftest.$ac_ext >&5 15896ac_cv_header_time=no 15897fi 15898rm -f conftest.$ac_objext conftest.$ac_ext 15899fi 15900echo "$as_me:15900: result: $ac_cv_header_time" >&5 15901echo "${ECHO_T}$ac_cv_header_time" >&6 15902if test $ac_cv_header_time = yes; then 15903 15904cat >>confdefs.h <<\EOF 15905#define TIME_WITH_SYS_TIME 1 15906EOF 15907 15908fi 15909 15910echo "$as_me:15910: checking whether struct tm is in sys/time.h or time.h" >&5 15911echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 15912if test "${ac_cv_struct_tm+set}" = set; then 15913 echo $ECHO_N "(cached) $ECHO_C" >&6 15914else 15915 cat >conftest.$ac_ext <<_ACEOF 15916#line 15916 "configure" 15917#include "confdefs.h" 15918#include <sys/types.h> 15919#include <time.h> 15920 15921int 15922main () 15923{ 15924struct tm *tp; tp->tm_sec; 15925 ; 15926 return 0; 15927} 15928_ACEOF 15929rm -f conftest.$ac_objext 15930if { (eval echo "$as_me:15930: \"$ac_compile\"") >&5 15931 (eval $ac_compile) 2>&5 15932 ac_status=$? 15933 echo "$as_me:15933: \$? = $ac_status" >&5 15934 (exit $ac_status); } && 15935 { (eval echo "$as_me:15935: \"test -s conftest.$ac_objext\"") >&5 15936 (eval test -s conftest.$ac_objext) 2>&5 15937 ac_status=$? 15938 echo "$as_me:15938: \$? = $ac_status" >&5 15939 (exit $ac_status); }; then 15940 ac_cv_struct_tm=time.h 15941else 15942 echo "$as_me: failed program was:" >&5 15943cat conftest.$ac_ext >&5 15944ac_cv_struct_tm=sys/time.h 15945fi 15946rm -f conftest.$ac_objext conftest.$ac_ext 15947fi 15948echo "$as_me:15948: result: $ac_cv_struct_tm" >&5 15949echo "${ECHO_T}$ac_cv_struct_tm" >&6 15950if test $ac_cv_struct_tm = sys/time.h; then 15951 15952cat >>confdefs.h <<\EOF 15953#define TM_IN_SYS_TIME 1 15954EOF 15955 15956fi 15957 15958echo "$as_me:15958: checking for ANSI C header files" >&5 15959echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 15960if test "${ac_cv_header_stdc+set}" = set; then 15961 echo $ECHO_N "(cached) $ECHO_C" >&6 15962else 15963 cat >conftest.$ac_ext <<_ACEOF 15964#line 15964 "configure" 15965#include "confdefs.h" 15966#include <stdlib.h> 15967#include <stdarg.h> 15968#include <string.h> 15969#include <float.h> 15970 15971_ACEOF 15972if { (eval echo "$as_me:15972: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 15973 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 15974 ac_status=$? 15975 egrep -v '^ *\+' conftest.er1 >conftest.err 15976 rm -f conftest.er1 15977 cat conftest.err >&5 15978 echo "$as_me:15978: \$? = $ac_status" >&5 15979 (exit $ac_status); }; then 15980 if test -s conftest.err; then 15981 ac_cpp_err=$ac_c_preproc_warn_flag 15982 else 15983 ac_cpp_err= 15984 fi 15985else 15986 ac_cpp_err=yes 15987fi 15988if test -z "$ac_cpp_err"; then 15989 ac_cv_header_stdc=yes 15990else 15991 echo "$as_me: failed program was:" >&5 15992 cat conftest.$ac_ext >&5 15993 ac_cv_header_stdc=no 15994fi 15995rm -f conftest.err conftest.$ac_ext 15996 15997if test $ac_cv_header_stdc = yes; then 15998 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 15999 cat >conftest.$ac_ext <<_ACEOF 16000#line 16000 "configure" 16001#include "confdefs.h" 16002#include <string.h> 16003 16004_ACEOF 16005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16006 egrep "memchr" >/dev/null 2>&1; then 16007 : 16008else 16009 ac_cv_header_stdc=no 16010fi 16011rm -f conftest* 16012 16013fi 16014 16015if test $ac_cv_header_stdc = yes; then 16016 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 16017 cat >conftest.$ac_ext <<_ACEOF 16018#line 16018 "configure" 16019#include "confdefs.h" 16020#include <stdlib.h> 16021 16022_ACEOF 16023if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16024 egrep "free" >/dev/null 2>&1; then 16025 : 16026else 16027 ac_cv_header_stdc=no 16028fi 16029rm -f conftest* 16030 16031fi 16032 16033if test $ac_cv_header_stdc = yes; then 16034 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 16035 if test "$cross_compiling" = yes; then 16036 : 16037else 16038 cat >conftest.$ac_ext <<_ACEOF 16039#line 16039 "configure" 16040#include "confdefs.h" 16041#include <ctype.h> 16042#if ((' ' & 0x0FF) == 0x020) 16043# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 16044# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 16045#else 16046# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 16047 || ('j' <= (c) && (c) <= 'r') \ 16048 || ('s' <= (c) && (c) <= 'z')) 16049# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 16050#endif 16051 16052#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 16053int 16054main () 16055{ 16056 int i; 16057 for (i = 0; i < 256; i++) 16058 if (XOR (islower (i), ISLOWER (i)) 16059 || toupper (i) != TOUPPER (i)) 16060 exit(2); 16061 exit (0); 16062} 16063_ACEOF 16064rm -f conftest$ac_exeext 16065if { (eval echo "$as_me:16065: \"$ac_link\"") >&5 16066 (eval $ac_link) 2>&5 16067 ac_status=$? 16068 echo "$as_me:16068: \$? = $ac_status" >&5 16069 (exit $ac_status); } && { (eval echo "$as_me:16069: \"./conftest$ac_exeext\"") >&5 16070 (eval ./conftest$ac_exeext) 2>&5 16071 ac_status=$? 16072 echo "$as_me:16072: \$? = $ac_status" >&5 16073 (exit $ac_status); }; then 16074 : 16075else 16076 echo "$as_me: program exited with status $ac_status" >&5 16077echo "$as_me: failed program was:" >&5 16078cat conftest.$ac_ext >&5 16079ac_cv_header_stdc=no 16080fi 16081rm -f conftest$ac_exeext conftest.$ac_ext 16082fi 16083fi 16084fi 16085echo "$as_me:16085: result: $ac_cv_header_stdc" >&5 16086echo "${ECHO_T}$ac_cv_header_stdc" >&6 16087if test $ac_cv_header_stdc = yes; then 16088 16089cat >>confdefs.h <<\EOF 16090#define STDC_HEADERS 1 16091EOF 16092 16093fi 16094 16095for ac_header in \ 16096 arpa/ftp.h \ 16097 arpa/inet.h \ 16098 arpa/nameser.h \ 16099 arpa/telnet.h \ 16100 bind/bitypes.h \ 16101 bsdsetjmp.h \ 16102 crypt.h \ 16103 curses.h \ 16104 dbm.h \ 16105 dirent.h \ 16106 dlfcn.h \ 16107 err.h \ 16108 errno.h \ 16109 fcntl.h \ 16110 fnmatch.h \ 16111 gdbm/ndbm.h \ 16112 grp.h \ 16113 inttypes.h \ 16114 io.h \ 16115 limits.h \ 16116 maillock.h \ 16117 ndbm.h \ 16118 net/if.h \ 16119 netdb.h \ 16120 netinet/in.h \ 16121 netinet/in6.h \ 16122 netinet/in6_machtypes.h \ 16123 netinet/in6_var.h \ 16124 netinet/in_systm.h \ 16125 netinet6/in6.h \ 16126 netinfo/ni.h \ 16127 paths.h \ 16128 pthread.h \ 16129 pty.h \ 16130 pwd.h \ 16131 resolv.h \ 16132 rpcsvc/dbm.h \ 16133 sac.h \ 16134 security/pam_modules.h \ 16135 sgtty.h \ 16136 shadow.h \ 16137 siad.h \ 16138 signal.h \ 16139 stropts.h \ 16140 sys/bitypes.h \ 16141 sys/category.h \ 16142 sys/file.h \ 16143 sys/filio.h \ 16144 sys/ioccom.h \ 16145 sys/ioctl.h \ 16146 sys/param.h \ 16147 sys/proc.h \ 16148 sys/pty.h \ 16149 sys/ptyio.h \ 16150 sys/ptyvar.h \ 16151 sys/resource.h \ 16152 sys/select.h \ 16153 sys/socket.h \ 16154 sys/sockio.h \ 16155 sys/stat.h \ 16156 sys/str_tty.h \ 16157 sys/stream.h \ 16158 sys/stropts.h \ 16159 sys/strtty.h \ 16160 sys/syscall.h \ 16161 sys/sysctl.h \ 16162 sys/termio.h \ 16163 sys/time.h \ 16164 sys/timeb.h \ 16165 sys/times.h \ 16166 sys/tty.h \ 16167 sys/types.h \ 16168 sys/uio.h \ 16169 sys/un.h \ 16170 sys/utsname.h \ 16171 sys/wait.h \ 16172 syslog.h \ 16173 term.h \ 16174 termio.h \ 16175 termios.h \ 16176 time.h \ 16177 tmpdir.h \ 16178 udb.h \ 16179 unistd.h \ 16180 userconf.h \ 16181 usersec.h \ 16182 util.h \ 16183 utmp.h \ 16184 utmpx.h \ 16185 16186do 16187ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 16188echo "$as_me:16188: checking for $ac_header" >&5 16189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 16190if eval "test \"\${$ac_ac_Header+set}\" = set"; then 16191 echo $ECHO_N "(cached) $ECHO_C" >&6 16192else 16193 cat >conftest.$ac_ext <<_ACEOF 16194#line 16194 "configure" 16195#include "confdefs.h" 16196#include <$ac_header> 16197_ACEOF 16198if { (eval echo "$as_me:16198: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 16199 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 16200 ac_status=$? 16201 egrep -v '^ *\+' conftest.er1 >conftest.err 16202 rm -f conftest.er1 16203 cat conftest.err >&5 16204 echo "$as_me:16204: \$? = $ac_status" >&5 16205 (exit $ac_status); }; then 16206 if test -s conftest.err; then 16207 ac_cpp_err=$ac_c_preproc_warn_flag 16208 else 16209 ac_cpp_err= 16210 fi 16211else 16212 ac_cpp_err=yes 16213fi 16214if test -z "$ac_cpp_err"; then 16215 eval "$ac_ac_Header=yes" 16216else 16217 echo "$as_me: failed program was:" >&5 16218 cat conftest.$ac_ext >&5 16219 eval "$ac_ac_Header=no" 16220fi 16221rm -f conftest.err conftest.$ac_ext 16222fi 16223echo "$as_me:16223: result: `eval echo '${'$ac_ac_Header'}'`" >&5 16224echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 16225if test `eval echo '${'$ac_ac_Header'}'` = yes; then 16226 cat >>confdefs.h <<EOF 16227#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 16228EOF 16229 16230fi 16231done 16232 16233for ac_header in standards.h 16234do 16235ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 16236echo "$as_me:16236: checking for $ac_header" >&5 16237echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 16238if eval "test \"\${$ac_ac_Header+set}\" = set"; then 16239 echo $ECHO_N "(cached) $ECHO_C" >&6 16240else 16241 cat >conftest.$ac_ext <<_ACEOF 16242#line 16242 "configure" 16243#include "confdefs.h" 16244#include <$ac_header> 16245_ACEOF 16246if { (eval echo "$as_me:16246: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 16247 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 16248 ac_status=$? 16249 egrep -v '^ *\+' conftest.er1 >conftest.err 16250 rm -f conftest.er1 16251 cat conftest.err >&5 16252 echo "$as_me:16252: \$? = $ac_status" >&5 16253 (exit $ac_status); }; then 16254 if test -s conftest.err; then 16255 ac_cpp_err=$ac_c_preproc_warn_flag 16256 else 16257 ac_cpp_err= 16258 fi 16259else 16260 ac_cpp_err=yes 16261fi 16262if test -z "$ac_cpp_err"; then 16263 eval "$ac_ac_Header=yes" 16264else 16265 echo "$as_me: failed program was:" >&5 16266 cat conftest.$ac_ext >&5 16267 eval "$ac_ac_Header=no" 16268fi 16269rm -f conftest.err conftest.$ac_ext 16270fi 16271echo "$as_me:16271: result: `eval echo '${'$ac_ac_Header'}'`" >&5 16272echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 16273if test `eval echo '${'$ac_ac_Header'}'` = yes; then 16274 cat >>confdefs.h <<EOF 16275#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 16276EOF 16277 16278fi 16279done 16280 16281for i in netinet/ip.h netinet/tcp.h; do 16282 16283cv=`echo "$i" | sed 'y%./+-%__p_%'` 16284 16285echo "$as_me:16285: checking for $i" >&5 16286echo $ECHO_N "checking for $i... $ECHO_C" >&6 16287if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then 16288 echo $ECHO_N "(cached) $ECHO_C" >&6 16289else 16290 cat >conftest.$ac_ext <<_ACEOF 16291#line 16291 "configure" 16292#include "confdefs.h" 16293\ 16294#ifdef HAVE_STANDARDS_H 16295#include <standards.h> 16296#endif 16297#include <$i> 16298 16299_ACEOF 16300if { (eval echo "$as_me:16300: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 16301 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 16302 ac_status=$? 16303 egrep -v '^ *\+' conftest.er1 >conftest.err 16304 rm -f conftest.er1 16305 cat conftest.err >&5 16306 echo "$as_me:16306: \$? = $ac_status" >&5 16307 (exit $ac_status); }; then 16308 if test -s conftest.err; then 16309 ac_cpp_err=$ac_c_preproc_warn_flag 16310 else 16311 ac_cpp_err= 16312 fi 16313else 16314 ac_cpp_err=yes 16315fi 16316if test -z "$ac_cpp_err"; then 16317 eval "ac_cv_header_$cv=yes" 16318else 16319 echo "$as_me: failed program was:" >&5 16320 cat conftest.$ac_ext >&5 16321 eval "ac_cv_header_$cv=no" 16322fi 16323rm -f conftest.err conftest.$ac_ext 16324fi 16325echo "$as_me:16325: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5 16326echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6 16327ac_res=`eval echo \\$ac_cv_header_$cv` 16328if test "$ac_res" = yes; then 16329 ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 16330 cat >>confdefs.h <<EOF 16331#define $ac_tr_hdr 1 16332EOF 16333 16334fi 16335done 16336if false;then 16337 16338for ac_header in netinet/ip.h netinet/tcp.h 16339do 16340ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 16341echo "$as_me:16341: checking for $ac_header" >&5 16342echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 16343if eval "test \"\${$ac_ac_Header+set}\" = set"; then 16344 echo $ECHO_N "(cached) $ECHO_C" >&6 16345else 16346 cat >conftest.$ac_ext <<_ACEOF 16347#line 16347 "configure" 16348#include "confdefs.h" 16349#include <$ac_header> 16350_ACEOF 16351if { (eval echo "$as_me:16351: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 16352 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 16353 ac_status=$? 16354 egrep -v '^ *\+' conftest.er1 >conftest.err 16355 rm -f conftest.er1 16356 cat conftest.err >&5 16357 echo "$as_me:16357: \$? = $ac_status" >&5 16358 (exit $ac_status); }; then 16359 if test -s conftest.err; then 16360 ac_cpp_err=$ac_c_preproc_warn_flag 16361 else 16362 ac_cpp_err= 16363 fi 16364else 16365 ac_cpp_err=yes 16366fi 16367if test -z "$ac_cpp_err"; then 16368 eval "$ac_ac_Header=yes" 16369else 16370 echo "$as_me: failed program was:" >&5 16371 cat conftest.$ac_ext >&5 16372 eval "$ac_ac_Header=no" 16373fi 16374rm -f conftest.err conftest.$ac_ext 16375fi 16376echo "$as_me:16376: result: `eval echo '${'$ac_ac_Header'}'`" >&5 16377echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 16378if test `eval echo '${'$ac_ac_Header'}'` = yes; then 16379 cat >>confdefs.h <<EOF 16380#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 16381EOF 16382 16383fi 16384done 16385 16386fi 16387 16388# Check whether --enable-netinfo or --disable-netinfo was given. 16389if test "${enable_netinfo+set}" = set; then 16390 enableval="$enable_netinfo" 16391 16392fi; 16393 16394if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then 16395 16396cat >>confdefs.h <<\EOF 16397#define HAVE_NETINFO 1 16398EOF 16399 16400fi 16401 16402if test "$ac_cv_header_err_h" = yes; then 16403 have_err_h_TRUE= 16404 have_err_h_FALSE='#' 16405else 16406 have_err_h_TRUE='#' 16407 have_err_h_FALSE= 16408fi 16409 16410if test "$ac_cv_header_fnmatch_h" = yes; then 16411 have_fnmatch_h_TRUE= 16412 have_fnmatch_h_FALSE='#' 16413else 16414 have_fnmatch_h_TRUE='#' 16415 have_fnmatch_h_FALSE= 16416fi 16417 16418# Check whether --with-ipv6 or --without-ipv6 was given. 16419if test "${with_ipv6+set}" = set; then 16420 withval="$with_ipv6" 16421 16422if test "$withval" = "no"; then 16423 ac_cv_lib_ipv6=no 16424fi 16425fi; 16426if test "${ac_cv_lib_ipv6+set}" = set; then 16427 echo $ECHO_N "(cached) $ECHO_C" >&6 16428else 16429 v6type=unknown 16430v6lib=none 16431 16432echo "$as_me:16432: checking ipv6 stack type" >&5 16433echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 16434for i in v6d toshiba kame inria zeta linux; do 16435 case $i in 16436 v6d) 16437 cat >conftest.$ac_ext <<_ACEOF 16438#line 16438 "configure" 16439#include "confdefs.h" 16440 16441#include </usr/local/v6/include/sys/types.h> 16442#ifdef __V6D__ 16443yes 16444#endif 16445_ACEOF 16446if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16447 egrep "yes" >/dev/null 2>&1; then 16448 v6type=$i; v6lib=v6; 16449 v6libdir=/usr/local/v6/lib; 16450 CFLAGS="-I/usr/local/v6/include $CFLAGS" 16451fi 16452rm -f conftest* 16453 16454 ;; 16455 toshiba) 16456 cat >conftest.$ac_ext <<_ACEOF 16457#line 16457 "configure" 16458#include "confdefs.h" 16459 16460#include <sys/param.h> 16461#ifdef _TOSHIBA_INET6 16462yes 16463#endif 16464_ACEOF 16465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16466 egrep "yes" >/dev/null 2>&1; then 16467 v6type=$i; v6lib=inet6; 16468 v6libdir=/usr/local/v6/lib; 16469 CFLAGS="-DINET6 $CFLAGS" 16470fi 16471rm -f conftest* 16472 16473 ;; 16474 kame) 16475 cat >conftest.$ac_ext <<_ACEOF 16476#line 16476 "configure" 16477#include "confdefs.h" 16478 16479#include <netinet/in.h> 16480#ifdef __KAME__ 16481yes 16482#endif 16483_ACEOF 16484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16485 egrep "yes" >/dev/null 2>&1; then 16486 v6type=$i; v6lib=inet6; 16487 v6libdir=/usr/local/v6/lib; 16488 CFLAGS="-DINET6 $CFLAGS" 16489fi 16490rm -f conftest* 16491 16492 ;; 16493 inria) 16494 cat >conftest.$ac_ext <<_ACEOF 16495#line 16495 "configure" 16496#include "confdefs.h" 16497 16498#include <netinet/in.h> 16499#ifdef IPV6_INRIA_VERSION 16500yes 16501#endif 16502_ACEOF 16503if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16504 egrep "yes" >/dev/null 2>&1; then 16505 v6type=$i; CFLAGS="-DINET6 $CFLAGS" 16506fi 16507rm -f conftest* 16508 16509 ;; 16510 zeta) 16511 cat >conftest.$ac_ext <<_ACEOF 16512#line 16512 "configure" 16513#include "confdefs.h" 16514 16515#include <sys/param.h> 16516#ifdef _ZETA_MINAMI_INET6 16517yes 16518#endif 16519_ACEOF 16520if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16521 egrep "yes" >/dev/null 2>&1; then 16522 v6type=$i; v6lib=inet6; 16523 v6libdir=/usr/local/v6/lib; 16524 CFLAGS="-DINET6 $CFLAGS" 16525fi 16526rm -f conftest* 16527 16528 ;; 16529 linux) 16530 if test -d /usr/inet6; then 16531 v6type=$i 16532 v6lib=inet6 16533 v6libdir=/usr/inet6 16534 CFLAGS="-DINET6 $CFLAGS" 16535 fi 16536 ;; 16537 esac 16538 if test "$v6type" != "unknown"; then 16539 break 16540 fi 16541done 16542echo "$as_me:16542: result: $v6type" >&5 16543echo "${ECHO_T}$v6type" >&6 16544 16545if test "$v6lib" != "none"; then 16546 for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do 16547 if test -d $dir -a -f $dir/lib$v6lib.a; then 16548 LIBS="-L$dir -l$v6lib $LIBS" 16549 break 16550 fi 16551 done 16552fi 16553cat >conftest.$ac_ext <<_ACEOF 16554#line 16554 "configure" 16555#include "confdefs.h" 16556 16557#ifdef HAVE_SYS_TYPES_H 16558#include <sys/types.h> 16559#endif 16560#ifdef HAVE_SYS_SOCKET_H 16561#include <sys/socket.h> 16562#endif 16563#ifdef HAVE_NETINET_IN_H 16564#include <netinet/in.h> 16565#endif 16566#ifdef HAVE_NETINET_IN6_H 16567#include <netinet/in6.h> 16568#endif 16569 16570int 16571main () 16572{ 16573 16574 struct sockaddr_in6 sin6; 16575 int s; 16576 16577 s = socket(AF_INET6, SOCK_DGRAM, 0); 16578 16579 sin6.sin6_family = AF_INET6; 16580 sin6.sin6_port = htons(17); 16581 sin6.sin6_addr = in6addr_any; 16582 bind(s, (struct sockaddr *)&sin6, sizeof(sin6)); 16583 16584 ; 16585 return 0; 16586} 16587_ACEOF 16588rm -f conftest.$ac_objext conftest$ac_exeext 16589if { (eval echo "$as_me:16589: \"$ac_link\"") >&5 16590 (eval $ac_link) 2>&5 16591 ac_status=$? 16592 echo "$as_me:16592: \$? = $ac_status" >&5 16593 (exit $ac_status); } && 16594 { (eval echo "$as_me:16594: \"test -s conftest$ac_exeext\"") >&5 16595 (eval test -s conftest$ac_exeext) 2>&5 16596 ac_status=$? 16597 echo "$as_me:16597: \$? = $ac_status" >&5 16598 (exit $ac_status); }; then 16599 ac_cv_lib_ipv6=yes 16600else 16601 echo "$as_me: failed program was:" >&5 16602cat conftest.$ac_ext >&5 16603ac_cv_lib_ipv6=no 16604fi 16605rm -f conftest$ac_exeext conftest.$ac_ext 16606fi 16607 16608echo "$as_me:16608: checking for IPv6" >&5 16609echo $ECHO_N "checking for IPv6... $ECHO_C" >&6 16610echo "$as_me:16610: result: $ac_cv_lib_ipv6" >&5 16611echo "${ECHO_T}$ac_cv_lib_ipv6" >&6 16612if test "$ac_cv_lib_ipv6" = yes; then 16613 16614cat >>confdefs.h <<\EOF 16615#define HAVE_IPV6 1 16616EOF 16617 16618fi 16619 16620echo "$as_me:16620: checking for socket" >&5 16621echo $ECHO_N "checking for socket... $ECHO_C" >&6 16622if test "${ac_cv_funclib_socket+set}" = set; then 16623 echo $ECHO_N "(cached) $ECHO_C" >&6 16624else 16625 16626if eval "test \"\$ac_cv_func_socket\" != yes" ; then 16627 ac_save_LIBS="$LIBS" 16628 for ac_lib in "" socket; do 16629 if test -n "$ac_lib"; then 16630 ac_lib="-l$ac_lib" 16631 else 16632 ac_lib="" 16633 fi 16634 LIBS=" $ac_lib $ac_save_LIBS" 16635 cat >conftest.$ac_ext <<_ACEOF 16636#line 16636 "configure" 16637#include "confdefs.h" 16638 16639int 16640main () 16641{ 16642socket() 16643 ; 16644 return 0; 16645} 16646_ACEOF 16647rm -f conftest.$ac_objext conftest$ac_exeext 16648if { (eval echo "$as_me:16648: \"$ac_link\"") >&5 16649 (eval $ac_link) 2>&5 16650 ac_status=$? 16651 echo "$as_me:16651: \$? = $ac_status" >&5 16652 (exit $ac_status); } && 16653 { (eval echo "$as_me:16653: \"test -s conftest$ac_exeext\"") >&5 16654 (eval test -s conftest$ac_exeext) 2>&5 16655 ac_status=$? 16656 echo "$as_me:16656: \$? = $ac_status" >&5 16657 (exit $ac_status); }; then 16658 eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break 16659else 16660 echo "$as_me: failed program was:" >&5 16661cat conftest.$ac_ext >&5 16662fi 16663rm -f conftest$ac_exeext conftest.$ac_ext 16664 done 16665 eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}" 16666 LIBS="$ac_save_LIBS" 16667fi 16668 16669fi 16670 16671eval "ac_res=\$ac_cv_funclib_socket" 16672 16673if false; then 16674 16675for ac_func in socket 16676do 16677ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 16678echo "$as_me:16678: checking for $ac_func" >&5 16679echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16680if eval "test \"\${$ac_ac_var+set}\" = set"; then 16681 echo $ECHO_N "(cached) $ECHO_C" >&6 16682else 16683 cat >conftest.$ac_ext <<_ACEOF 16684#line 16684 "configure" 16685#include "confdefs.h" 16686/* System header to define __stub macros and hopefully few prototypes, 16687 which can conflict with char $ac_func (); below. */ 16688#include <assert.h> 16689/* Override any gcc2 internal prototype to avoid an error. */ 16690#ifdef __cplusplus 16691extern "C" 16692#endif 16693/* We use char because int might match the return type of a gcc2 16694 builtin and then its argument prototype would still apply. */ 16695char $ac_func (); 16696char (*f) (); 16697 16698int 16699main () 16700{ 16701/* The GNU C library defines this for functions which it implements 16702 to always fail with ENOSYS. Some functions are actually named 16703 something starting with __ and the normal name is an alias. */ 16704#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16705choke me 16706#else 16707f = $ac_func; 16708#endif 16709 16710 ; 16711 return 0; 16712} 16713_ACEOF 16714rm -f conftest.$ac_objext conftest$ac_exeext 16715if { (eval echo "$as_me:16715: \"$ac_link\"") >&5 16716 (eval $ac_link) 2>&5 16717 ac_status=$? 16718 echo "$as_me:16718: \$? = $ac_status" >&5 16719 (exit $ac_status); } && 16720 { (eval echo "$as_me:16720: \"test -s conftest$ac_exeext\"") >&5 16721 (eval test -s conftest$ac_exeext) 2>&5 16722 ac_status=$? 16723 echo "$as_me:16723: \$? = $ac_status" >&5 16724 (exit $ac_status); }; then 16725 eval "$ac_ac_var=yes" 16726else 16727 echo "$as_me: failed program was:" >&5 16728cat conftest.$ac_ext >&5 16729eval "$ac_ac_var=no" 16730fi 16731rm -f conftest$ac_exeext conftest.$ac_ext 16732fi 16733echo "$as_me:16733: result: `eval echo '${'$ac_ac_var'}'`" >&5 16734echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 16735if test `eval echo '${'$ac_ac_var'}'` = yes; then 16736 cat >>confdefs.h <<EOF 16737#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 16738EOF 16739 16740fi 16741done 16742 16743fi 16744# socket 16745eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16746eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16747eval "LIB_socket=$ac_res" 16748 16749case "$ac_res" in 16750 yes) 16751 eval "ac_cv_func_socket=yes" 16752 eval "LIB_socket=" 16753 cat >>confdefs.h <<EOF 16754#define $ac_tr_func 1 16755EOF 16756 16757 echo "$as_me:16757: result: yes" >&5 16758echo "${ECHO_T}yes" >&6 16759 ;; 16760 no) 16761 eval "ac_cv_func_socket=no" 16762 eval "LIB_socket=" 16763 echo "$as_me:16763: result: no" >&5 16764echo "${ECHO_T}no" >&6 16765 ;; 16766 *) 16767 eval "ac_cv_func_socket=yes" 16768 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 16769 cat >>confdefs.h <<EOF 16770#define $ac_tr_func 1 16771EOF 16772 16773 cat >>confdefs.h <<EOF 16774#define $ac_tr_lib 1 16775EOF 16776 16777 echo "$as_me:16777: result: yes, in $ac_res" >&5 16778echo "${ECHO_T}yes, in $ac_res" >&6 16779 ;; 16780esac 16781 16782if test -n "$LIB_socket"; then 16783 LIBS="$LIB_socket $LIBS" 16784fi 16785 16786echo "$as_me:16786: checking for gethostbyname" >&5 16787echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 16788if test "${ac_cv_funclib_gethostbyname+set}" = set; then 16789 echo $ECHO_N "(cached) $ECHO_C" >&6 16790else 16791 16792if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then 16793 ac_save_LIBS="$LIBS" 16794 for ac_lib in "" nsl; do 16795 if test -n "$ac_lib"; then 16796 ac_lib="-l$ac_lib" 16797 else 16798 ac_lib="" 16799 fi 16800 LIBS=" $ac_lib $ac_save_LIBS" 16801 cat >conftest.$ac_ext <<_ACEOF 16802#line 16802 "configure" 16803#include "confdefs.h" 16804 16805int 16806main () 16807{ 16808gethostbyname() 16809 ; 16810 return 0; 16811} 16812_ACEOF 16813rm -f conftest.$ac_objext conftest$ac_exeext 16814if { (eval echo "$as_me:16814: \"$ac_link\"") >&5 16815 (eval $ac_link) 2>&5 16816 ac_status=$? 16817 echo "$as_me:16817: \$? = $ac_status" >&5 16818 (exit $ac_status); } && 16819 { (eval echo "$as_me:16819: \"test -s conftest$ac_exeext\"") >&5 16820 (eval test -s conftest$ac_exeext) 2>&5 16821 ac_status=$? 16822 echo "$as_me:16822: \$? = $ac_status" >&5 16823 (exit $ac_status); }; then 16824 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break 16825else 16826 echo "$as_me: failed program was:" >&5 16827cat conftest.$ac_ext >&5 16828fi 16829rm -f conftest$ac_exeext conftest.$ac_ext 16830 done 16831 eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}" 16832 LIBS="$ac_save_LIBS" 16833fi 16834 16835fi 16836 16837eval "ac_res=\$ac_cv_funclib_gethostbyname" 16838 16839if false; then 16840 16841for ac_func in gethostbyname 16842do 16843ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 16844echo "$as_me:16844: checking for $ac_func" >&5 16845echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16846if eval "test \"\${$ac_ac_var+set}\" = set"; then 16847 echo $ECHO_N "(cached) $ECHO_C" >&6 16848else 16849 cat >conftest.$ac_ext <<_ACEOF 16850#line 16850 "configure" 16851#include "confdefs.h" 16852/* System header to define __stub macros and hopefully few prototypes, 16853 which can conflict with char $ac_func (); below. */ 16854#include <assert.h> 16855/* Override any gcc2 internal prototype to avoid an error. */ 16856#ifdef __cplusplus 16857extern "C" 16858#endif 16859/* We use char because int might match the return type of a gcc2 16860 builtin and then its argument prototype would still apply. */ 16861char $ac_func (); 16862char (*f) (); 16863 16864int 16865main () 16866{ 16867/* The GNU C library defines this for functions which it implements 16868 to always fail with ENOSYS. Some functions are actually named 16869 something starting with __ and the normal name is an alias. */ 16870#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16871choke me 16872#else 16873f = $ac_func; 16874#endif 16875 16876 ; 16877 return 0; 16878} 16879_ACEOF 16880rm -f conftest.$ac_objext conftest$ac_exeext 16881if { (eval echo "$as_me:16881: \"$ac_link\"") >&5 16882 (eval $ac_link) 2>&5 16883 ac_status=$? 16884 echo "$as_me:16884: \$? = $ac_status" >&5 16885 (exit $ac_status); } && 16886 { (eval echo "$as_me:16886: \"test -s conftest$ac_exeext\"") >&5 16887 (eval test -s conftest$ac_exeext) 2>&5 16888 ac_status=$? 16889 echo "$as_me:16889: \$? = $ac_status" >&5 16890 (exit $ac_status); }; then 16891 eval "$ac_ac_var=yes" 16892else 16893 echo "$as_me: failed program was:" >&5 16894cat conftest.$ac_ext >&5 16895eval "$ac_ac_var=no" 16896fi 16897rm -f conftest$ac_exeext conftest.$ac_ext 16898fi 16899echo "$as_me:16899: result: `eval echo '${'$ac_ac_var'}'`" >&5 16900echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 16901if test `eval echo '${'$ac_ac_var'}'` = yes; then 16902 cat >>confdefs.h <<EOF 16903#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 16904EOF 16905 16906fi 16907done 16908 16909fi 16910# gethostbyname 16911eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16912eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16913eval "LIB_gethostbyname=$ac_res" 16914 16915case "$ac_res" in 16916 yes) 16917 eval "ac_cv_func_gethostbyname=yes" 16918 eval "LIB_gethostbyname=" 16919 cat >>confdefs.h <<EOF 16920#define $ac_tr_func 1 16921EOF 16922 16923 echo "$as_me:16923: result: yes" >&5 16924echo "${ECHO_T}yes" >&6 16925 ;; 16926 no) 16927 eval "ac_cv_func_gethostbyname=no" 16928 eval "LIB_gethostbyname=" 16929 echo "$as_me:16929: result: no" >&5 16930echo "${ECHO_T}no" >&6 16931 ;; 16932 *) 16933 eval "ac_cv_func_gethostbyname=yes" 16934 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 16935 cat >>confdefs.h <<EOF 16936#define $ac_tr_func 1 16937EOF 16938 16939 cat >>confdefs.h <<EOF 16940#define $ac_tr_lib 1 16941EOF 16942 16943 echo "$as_me:16943: result: yes, in $ac_res" >&5 16944echo "${ECHO_T}yes, in $ac_res" >&6 16945 ;; 16946esac 16947 16948if test -n "$LIB_gethostbyname"; then 16949 LIBS="$LIB_gethostbyname $LIBS" 16950fi 16951 16952echo "$as_me:16952: checking for syslog" >&5 16953echo $ECHO_N "checking for syslog... $ECHO_C" >&6 16954if test "${ac_cv_funclib_syslog+set}" = set; then 16955 echo $ECHO_N "(cached) $ECHO_C" >&6 16956else 16957 16958if eval "test \"\$ac_cv_func_syslog\" != yes" ; then 16959 ac_save_LIBS="$LIBS" 16960 for ac_lib in "" syslog; do 16961 if test -n "$ac_lib"; then 16962 ac_lib="-l$ac_lib" 16963 else 16964 ac_lib="" 16965 fi 16966 LIBS=" $ac_lib $ac_save_LIBS" 16967 cat >conftest.$ac_ext <<_ACEOF 16968#line 16968 "configure" 16969#include "confdefs.h" 16970 16971int 16972main () 16973{ 16974syslog() 16975 ; 16976 return 0; 16977} 16978_ACEOF 16979rm -f conftest.$ac_objext conftest$ac_exeext 16980if { (eval echo "$as_me:16980: \"$ac_link\"") >&5 16981 (eval $ac_link) 2>&5 16982 ac_status=$? 16983 echo "$as_me:16983: \$? = $ac_status" >&5 16984 (exit $ac_status); } && 16985 { (eval echo "$as_me:16985: \"test -s conftest$ac_exeext\"") >&5 16986 (eval test -s conftest$ac_exeext) 2>&5 16987 ac_status=$? 16988 echo "$as_me:16988: \$? = $ac_status" >&5 16989 (exit $ac_status); }; then 16990 eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break 16991else 16992 echo "$as_me: failed program was:" >&5 16993cat conftest.$ac_ext >&5 16994fi 16995rm -f conftest$ac_exeext conftest.$ac_ext 16996 done 16997 eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}" 16998 LIBS="$ac_save_LIBS" 16999fi 17000 17001fi 17002 17003eval "ac_res=\$ac_cv_funclib_syslog" 17004 17005if false; then 17006 17007for ac_func in syslog 17008do 17009ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 17010echo "$as_me:17010: checking for $ac_func" >&5 17011echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17012if eval "test \"\${$ac_ac_var+set}\" = set"; then 17013 echo $ECHO_N "(cached) $ECHO_C" >&6 17014else 17015 cat >conftest.$ac_ext <<_ACEOF 17016#line 17016 "configure" 17017#include "confdefs.h" 17018/* System header to define __stub macros and hopefully few prototypes, 17019 which can conflict with char $ac_func (); below. */ 17020#include <assert.h> 17021/* Override any gcc2 internal prototype to avoid an error. */ 17022#ifdef __cplusplus 17023extern "C" 17024#endif 17025/* We use char because int might match the return type of a gcc2 17026 builtin and then its argument prototype would still apply. */ 17027char $ac_func (); 17028char (*f) (); 17029 17030int 17031main () 17032{ 17033/* The GNU C library defines this for functions which it implements 17034 to always fail with ENOSYS. Some functions are actually named 17035 something starting with __ and the normal name is an alias. */ 17036#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17037choke me 17038#else 17039f = $ac_func; 17040#endif 17041 17042 ; 17043 return 0; 17044} 17045_ACEOF 17046rm -f conftest.$ac_objext conftest$ac_exeext 17047if { (eval echo "$as_me:17047: \"$ac_link\"") >&5 17048 (eval $ac_link) 2>&5 17049 ac_status=$? 17050 echo "$as_me:17050: \$? = $ac_status" >&5 17051 (exit $ac_status); } && 17052 { (eval echo "$as_me:17052: \"test -s conftest$ac_exeext\"") >&5 17053 (eval test -s conftest$ac_exeext) 2>&5 17054 ac_status=$? 17055 echo "$as_me:17055: \$? = $ac_status" >&5 17056 (exit $ac_status); }; then 17057 eval "$ac_ac_var=yes" 17058else 17059 echo "$as_me: failed program was:" >&5 17060cat conftest.$ac_ext >&5 17061eval "$ac_ac_var=no" 17062fi 17063rm -f conftest$ac_exeext conftest.$ac_ext 17064fi 17065echo "$as_me:17065: result: `eval echo '${'$ac_ac_var'}'`" >&5 17066echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 17067if test `eval echo '${'$ac_ac_var'}'` = yes; then 17068 cat >>confdefs.h <<EOF 17069#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 17070EOF 17071 17072fi 17073done 17074 17075fi 17076# syslog 17077eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17078eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17079eval "LIB_syslog=$ac_res" 17080 17081case "$ac_res" in 17082 yes) 17083 eval "ac_cv_func_syslog=yes" 17084 eval "LIB_syslog=" 17085 cat >>confdefs.h <<EOF 17086#define $ac_tr_func 1 17087EOF 17088 17089 echo "$as_me:17089: result: yes" >&5 17090echo "${ECHO_T}yes" >&6 17091 ;; 17092 no) 17093 eval "ac_cv_func_syslog=no" 17094 eval "LIB_syslog=" 17095 echo "$as_me:17095: result: no" >&5 17096echo "${ECHO_T}no" >&6 17097 ;; 17098 *) 17099 eval "ac_cv_func_syslog=yes" 17100 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 17101 cat >>confdefs.h <<EOF 17102#define $ac_tr_func 1 17103EOF 17104 17105 cat >>confdefs.h <<EOF 17106#define $ac_tr_lib 1 17107EOF 17108 17109 echo "$as_me:17109: result: yes, in $ac_res" >&5 17110echo "${ECHO_T}yes, in $ac_res" >&6 17111 ;; 17112esac 17113 17114if test -n "$LIB_syslog"; then 17115 LIBS="$LIB_syslog $LIBS" 17116fi 17117 17118echo "$as_me:17118: checking for logwtmp" >&5 17119echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6 17120if test "${ac_cv_funclib_logwtmp+set}" = set; then 17121 echo $ECHO_N "(cached) $ECHO_C" >&6 17122else 17123 17124if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then 17125 ac_save_LIBS="$LIBS" 17126 for ac_lib in "" util; do 17127 if test -n "$ac_lib"; then 17128 ac_lib="-l$ac_lib" 17129 else 17130 ac_lib="" 17131 fi 17132 LIBS=" $ac_lib $ac_save_LIBS" 17133 cat >conftest.$ac_ext <<_ACEOF 17134#line 17134 "configure" 17135#include "confdefs.h" 17136 17137int 17138main () 17139{ 17140logwtmp() 17141 ; 17142 return 0; 17143} 17144_ACEOF 17145rm -f conftest.$ac_objext conftest$ac_exeext 17146if { (eval echo "$as_me:17146: \"$ac_link\"") >&5 17147 (eval $ac_link) 2>&5 17148 ac_status=$? 17149 echo "$as_me:17149: \$? = $ac_status" >&5 17150 (exit $ac_status); } && 17151 { (eval echo "$as_me:17151: \"test -s conftest$ac_exeext\"") >&5 17152 (eval test -s conftest$ac_exeext) 2>&5 17153 ac_status=$? 17154 echo "$as_me:17154: \$? = $ac_status" >&5 17155 (exit $ac_status); }; then 17156 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break 17157else 17158 echo "$as_me: failed program was:" >&5 17159cat conftest.$ac_ext >&5 17160fi 17161rm -f conftest$ac_exeext conftest.$ac_ext 17162 done 17163 eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}" 17164 LIBS="$ac_save_LIBS" 17165fi 17166 17167fi 17168 17169eval "ac_res=\$ac_cv_funclib_logwtmp" 17170 17171if false; then 17172 17173for ac_func in logwtmp 17174do 17175ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 17176echo "$as_me:17176: checking for $ac_func" >&5 17177echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17178if eval "test \"\${$ac_ac_var+set}\" = set"; then 17179 echo $ECHO_N "(cached) $ECHO_C" >&6 17180else 17181 cat >conftest.$ac_ext <<_ACEOF 17182#line 17182 "configure" 17183#include "confdefs.h" 17184/* System header to define __stub macros and hopefully few prototypes, 17185 which can conflict with char $ac_func (); below. */ 17186#include <assert.h> 17187/* Override any gcc2 internal prototype to avoid an error. */ 17188#ifdef __cplusplus 17189extern "C" 17190#endif 17191/* We use char because int might match the return type of a gcc2 17192 builtin and then its argument prototype would still apply. */ 17193char $ac_func (); 17194char (*f) (); 17195 17196int 17197main () 17198{ 17199/* The GNU C library defines this for functions which it implements 17200 to always fail with ENOSYS. Some functions are actually named 17201 something starting with __ and the normal name is an alias. */ 17202#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17203choke me 17204#else 17205f = $ac_func; 17206#endif 17207 17208 ; 17209 return 0; 17210} 17211_ACEOF 17212rm -f conftest.$ac_objext conftest$ac_exeext 17213if { (eval echo "$as_me:17213: \"$ac_link\"") >&5 17214 (eval $ac_link) 2>&5 17215 ac_status=$? 17216 echo "$as_me:17216: \$? = $ac_status" >&5 17217 (exit $ac_status); } && 17218 { (eval echo "$as_me:17218: \"test -s conftest$ac_exeext\"") >&5 17219 (eval test -s conftest$ac_exeext) 2>&5 17220 ac_status=$? 17221 echo "$as_me:17221: \$? = $ac_status" >&5 17222 (exit $ac_status); }; then 17223 eval "$ac_ac_var=yes" 17224else 17225 echo "$as_me: failed program was:" >&5 17226cat conftest.$ac_ext >&5 17227eval "$ac_ac_var=no" 17228fi 17229rm -f conftest$ac_exeext conftest.$ac_ext 17230fi 17231echo "$as_me:17231: result: `eval echo '${'$ac_ac_var'}'`" >&5 17232echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 17233if test `eval echo '${'$ac_ac_var'}'` = yes; then 17234 cat >>confdefs.h <<EOF 17235#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 17236EOF 17237 17238fi 17239done 17240 17241fi 17242# logwtmp 17243eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17244eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17245eval "LIB_logwtmp=$ac_res" 17246 17247case "$ac_res" in 17248 yes) 17249 eval "ac_cv_func_logwtmp=yes" 17250 eval "LIB_logwtmp=" 17251 cat >>confdefs.h <<EOF 17252#define $ac_tr_func 1 17253EOF 17254 17255 echo "$as_me:17255: result: yes" >&5 17256echo "${ECHO_T}yes" >&6 17257 ;; 17258 no) 17259 eval "ac_cv_func_logwtmp=no" 17260 eval "LIB_logwtmp=" 17261 echo "$as_me:17261: result: no" >&5 17262echo "${ECHO_T}no" >&6 17263 ;; 17264 *) 17265 eval "ac_cv_func_logwtmp=yes" 17266 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 17267 cat >>confdefs.h <<EOF 17268#define $ac_tr_func 1 17269EOF 17270 17271 cat >>confdefs.h <<EOF 17272#define $ac_tr_lib 1 17273EOF 17274 17275 echo "$as_me:17275: result: yes, in $ac_res" >&5 17276echo "${ECHO_T}yes, in $ac_res" >&6 17277 ;; 17278esac 17279 17280echo "$as_me:17280: checking for tgetent" >&5 17281echo $ECHO_N "checking for tgetent... $ECHO_C" >&6 17282if test "${ac_cv_funclib_tgetent+set}" = set; then 17283 echo $ECHO_N "(cached) $ECHO_C" >&6 17284else 17285 17286if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then 17287 ac_save_LIBS="$LIBS" 17288 for ac_lib in "" termcap ncurses curses; do 17289 if test -n "$ac_lib"; then 17290 ac_lib="-l$ac_lib" 17291 else 17292 ac_lib="" 17293 fi 17294 LIBS=" $ac_lib $ac_save_LIBS" 17295 cat >conftest.$ac_ext <<_ACEOF 17296#line 17296 "configure" 17297#include "confdefs.h" 17298 17299int 17300main () 17301{ 17302tgetent() 17303 ; 17304 return 0; 17305} 17306_ACEOF 17307rm -f conftest.$ac_objext conftest$ac_exeext 17308if { (eval echo "$as_me:17308: \"$ac_link\"") >&5 17309 (eval $ac_link) 2>&5 17310 ac_status=$? 17311 echo "$as_me:17311: \$? = $ac_status" >&5 17312 (exit $ac_status); } && 17313 { (eval echo "$as_me:17313: \"test -s conftest$ac_exeext\"") >&5 17314 (eval test -s conftest$ac_exeext) 2>&5 17315 ac_status=$? 17316 echo "$as_me:17316: \$? = $ac_status" >&5 17317 (exit $ac_status); }; then 17318 eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break 17319else 17320 echo "$as_me: failed program was:" >&5 17321cat conftest.$ac_ext >&5 17322fi 17323rm -f conftest$ac_exeext conftest.$ac_ext 17324 done 17325 eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}" 17326 LIBS="$ac_save_LIBS" 17327fi 17328 17329fi 17330 17331eval "ac_res=\$ac_cv_funclib_tgetent" 17332 17333if false; then 17334 17335for ac_func in tgetent 17336do 17337ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 17338echo "$as_me:17338: checking for $ac_func" >&5 17339echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17340if eval "test \"\${$ac_ac_var+set}\" = set"; then 17341 echo $ECHO_N "(cached) $ECHO_C" >&6 17342else 17343 cat >conftest.$ac_ext <<_ACEOF 17344#line 17344 "configure" 17345#include "confdefs.h" 17346/* System header to define __stub macros and hopefully few prototypes, 17347 which can conflict with char $ac_func (); below. */ 17348#include <assert.h> 17349/* Override any gcc2 internal prototype to avoid an error. */ 17350#ifdef __cplusplus 17351extern "C" 17352#endif 17353/* We use char because int might match the return type of a gcc2 17354 builtin and then its argument prototype would still apply. */ 17355char $ac_func (); 17356char (*f) (); 17357 17358int 17359main () 17360{ 17361/* The GNU C library defines this for functions which it implements 17362 to always fail with ENOSYS. Some functions are actually named 17363 something starting with __ and the normal name is an alias. */ 17364#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17365choke me 17366#else 17367f = $ac_func; 17368#endif 17369 17370 ; 17371 return 0; 17372} 17373_ACEOF 17374rm -f conftest.$ac_objext conftest$ac_exeext 17375if { (eval echo "$as_me:17375: \"$ac_link\"") >&5 17376 (eval $ac_link) 2>&5 17377 ac_status=$? 17378 echo "$as_me:17378: \$? = $ac_status" >&5 17379 (exit $ac_status); } && 17380 { (eval echo "$as_me:17380: \"test -s conftest$ac_exeext\"") >&5 17381 (eval test -s conftest$ac_exeext) 2>&5 17382 ac_status=$? 17383 echo "$as_me:17383: \$? = $ac_status" >&5 17384 (exit $ac_status); }; then 17385 eval "$ac_ac_var=yes" 17386else 17387 echo "$as_me: failed program was:" >&5 17388cat conftest.$ac_ext >&5 17389eval "$ac_ac_var=no" 17390fi 17391rm -f conftest$ac_exeext conftest.$ac_ext 17392fi 17393echo "$as_me:17393: result: `eval echo '${'$ac_ac_var'}'`" >&5 17394echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 17395if test `eval echo '${'$ac_ac_var'}'` = yes; then 17396 cat >>confdefs.h <<EOF 17397#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 17398EOF 17399 17400fi 17401done 17402 17403fi 17404# tgetent 17405eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17406eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17407eval "LIB_tgetent=$ac_res" 17408 17409case "$ac_res" in 17410 yes) 17411 eval "ac_cv_func_tgetent=yes" 17412 eval "LIB_tgetent=" 17413 cat >>confdefs.h <<EOF 17414#define $ac_tr_func 1 17415EOF 17416 17417 echo "$as_me:17417: result: yes" >&5 17418echo "${ECHO_T}yes" >&6 17419 ;; 17420 no) 17421 eval "ac_cv_func_tgetent=no" 17422 eval "LIB_tgetent=" 17423 echo "$as_me:17423: result: no" >&5 17424echo "${ECHO_T}no" >&6 17425 ;; 17426 *) 17427 eval "ac_cv_func_tgetent=yes" 17428 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 17429 cat >>confdefs.h <<EOF 17430#define $ac_tr_func 1 17431EOF 17432 17433 cat >>confdefs.h <<EOF 17434#define $ac_tr_lib 1 17435EOF 17436 17437 echo "$as_me:17437: result: yes, in $ac_res" >&5 17438echo "${ECHO_T}yes, in $ac_res" >&6 17439 ;; 17440esac 17441 17442echo "$as_me:17442: checking for gethostbyname2" >&5 17443echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6 17444if test "${ac_cv_funclib_gethostbyname2+set}" = set; then 17445 echo $ECHO_N "(cached) $ECHO_C" >&6 17446else 17447 17448if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then 17449 ac_save_LIBS="$LIBS" 17450 for ac_lib in "" inet6 ip6; do 17451 if test -n "$ac_lib"; then 17452 ac_lib="-l$ac_lib" 17453 else 17454 ac_lib="" 17455 fi 17456 LIBS=" $ac_lib $ac_save_LIBS" 17457 cat >conftest.$ac_ext <<_ACEOF 17458#line 17458 "configure" 17459#include "confdefs.h" 17460 17461int 17462main () 17463{ 17464gethostbyname2() 17465 ; 17466 return 0; 17467} 17468_ACEOF 17469rm -f conftest.$ac_objext conftest$ac_exeext 17470if { (eval echo "$as_me:17470: \"$ac_link\"") >&5 17471 (eval $ac_link) 2>&5 17472 ac_status=$? 17473 echo "$as_me:17473: \$? = $ac_status" >&5 17474 (exit $ac_status); } && 17475 { (eval echo "$as_me:17475: \"test -s conftest$ac_exeext\"") >&5 17476 (eval test -s conftest$ac_exeext) 2>&5 17477 ac_status=$? 17478 echo "$as_me:17478: \$? = $ac_status" >&5 17479 (exit $ac_status); }; then 17480 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break 17481else 17482 echo "$as_me: failed program was:" >&5 17483cat conftest.$ac_ext >&5 17484fi 17485rm -f conftest$ac_exeext conftest.$ac_ext 17486 done 17487 eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}" 17488 LIBS="$ac_save_LIBS" 17489fi 17490 17491fi 17492 17493eval "ac_res=\$ac_cv_funclib_gethostbyname2" 17494 17495if false; then 17496 17497for ac_func in gethostbyname2 17498do 17499ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 17500echo "$as_me:17500: checking for $ac_func" >&5 17501echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17502if eval "test \"\${$ac_ac_var+set}\" = set"; then 17503 echo $ECHO_N "(cached) $ECHO_C" >&6 17504else 17505 cat >conftest.$ac_ext <<_ACEOF 17506#line 17506 "configure" 17507#include "confdefs.h" 17508/* System header to define __stub macros and hopefully few prototypes, 17509 which can conflict with char $ac_func (); below. */ 17510#include <assert.h> 17511/* Override any gcc2 internal prototype to avoid an error. */ 17512#ifdef __cplusplus 17513extern "C" 17514#endif 17515/* We use char because int might match the return type of a gcc2 17516 builtin and then its argument prototype would still apply. */ 17517char $ac_func (); 17518char (*f) (); 17519 17520int 17521main () 17522{ 17523/* The GNU C library defines this for functions which it implements 17524 to always fail with ENOSYS. Some functions are actually named 17525 something starting with __ and the normal name is an alias. */ 17526#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17527choke me 17528#else 17529f = $ac_func; 17530#endif 17531 17532 ; 17533 return 0; 17534} 17535_ACEOF 17536rm -f conftest.$ac_objext conftest$ac_exeext 17537if { (eval echo "$as_me:17537: \"$ac_link\"") >&5 17538 (eval $ac_link) 2>&5 17539 ac_status=$? 17540 echo "$as_me:17540: \$? = $ac_status" >&5 17541 (exit $ac_status); } && 17542 { (eval echo "$as_me:17542: \"test -s conftest$ac_exeext\"") >&5 17543 (eval test -s conftest$ac_exeext) 2>&5 17544 ac_status=$? 17545 echo "$as_me:17545: \$? = $ac_status" >&5 17546 (exit $ac_status); }; then 17547 eval "$ac_ac_var=yes" 17548else 17549 echo "$as_me: failed program was:" >&5 17550cat conftest.$ac_ext >&5 17551eval "$ac_ac_var=no" 17552fi 17553rm -f conftest$ac_exeext conftest.$ac_ext 17554fi 17555echo "$as_me:17555: result: `eval echo '${'$ac_ac_var'}'`" >&5 17556echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 17557if test `eval echo '${'$ac_ac_var'}'` = yes; then 17558 cat >>confdefs.h <<EOF 17559#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 17560EOF 17561 17562fi 17563done 17564 17565fi 17566# gethostbyname2 17567eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17568eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17569eval "LIB_gethostbyname2=$ac_res" 17570 17571case "$ac_res" in 17572 yes) 17573 eval "ac_cv_func_gethostbyname2=yes" 17574 eval "LIB_gethostbyname2=" 17575 cat >>confdefs.h <<EOF 17576#define $ac_tr_func 1 17577EOF 17578 17579 echo "$as_me:17579: result: yes" >&5 17580echo "${ECHO_T}yes" >&6 17581 ;; 17582 no) 17583 eval "ac_cv_func_gethostbyname2=no" 17584 eval "LIB_gethostbyname2=" 17585 echo "$as_me:17585: result: no" >&5 17586echo "${ECHO_T}no" >&6 17587 ;; 17588 *) 17589 eval "ac_cv_func_gethostbyname2=yes" 17590 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 17591 cat >>confdefs.h <<EOF 17592#define $ac_tr_func 1 17593EOF 17594 17595 cat >>confdefs.h <<EOF 17596#define $ac_tr_lib 1 17597EOF 17598 17599 echo "$as_me:17599: result: yes, in $ac_res" >&5 17600echo "${ECHO_T}yes, in $ac_res" >&6 17601 ;; 17602esac 17603 17604if test -n "$LIB_gethostbyname2"; then 17605 LIBS="$LIB_gethostbyname2 $LIBS" 17606fi 17607 17608echo "$as_me:17608: checking for res_search" >&5 17609echo $ECHO_N "checking for res_search... $ECHO_C" >&6 17610if test "${ac_cv_funclib_res_search+set}" = set; then 17611 echo $ECHO_N "(cached) $ECHO_C" >&6 17612else 17613 17614if eval "test \"\$ac_cv_func_res_search\" != yes" ; then 17615 ac_save_LIBS="$LIBS" 17616 for ac_lib in "" resolv; do 17617 if test -n "$ac_lib"; then 17618 ac_lib="-l$ac_lib" 17619 else 17620 ac_lib="" 17621 fi 17622 LIBS=" $ac_lib $ac_save_LIBS" 17623 cat >conftest.$ac_ext <<_ACEOF 17624#line 17624 "configure" 17625#include "confdefs.h" 17626 17627#include <stdio.h> 17628#ifdef HAVE_SYS_TYPES_H 17629#include <sys/types.h> 17630#endif 17631#ifdef HAVE_NETINET_IN_H 17632#include <netinet/in.h> 17633#endif 17634#ifdef HAVE_ARPA_NAMESER_H 17635#include <arpa/nameser.h> 17636#endif 17637#ifdef HAVE_RESOLV_H 17638#include <resolv.h> 17639#endif 17640 17641int 17642main () 17643{ 17644res_search(0,0,0,0,0) 17645 ; 17646 return 0; 17647} 17648_ACEOF 17649rm -f conftest.$ac_objext conftest$ac_exeext 17650if { (eval echo "$as_me:17650: \"$ac_link\"") >&5 17651 (eval $ac_link) 2>&5 17652 ac_status=$? 17653 echo "$as_me:17653: \$? = $ac_status" >&5 17654 (exit $ac_status); } && 17655 { (eval echo "$as_me:17655: \"test -s conftest$ac_exeext\"") >&5 17656 (eval test -s conftest$ac_exeext) 2>&5 17657 ac_status=$? 17658 echo "$as_me:17658: \$? = $ac_status" >&5 17659 (exit $ac_status); }; then 17660 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break 17661else 17662 echo "$as_me: failed program was:" >&5 17663cat conftest.$ac_ext >&5 17664fi 17665rm -f conftest$ac_exeext conftest.$ac_ext 17666 done 17667 eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}" 17668 LIBS="$ac_save_LIBS" 17669fi 17670 17671fi 17672 17673eval "ac_res=\$ac_cv_funclib_res_search" 17674 17675if false; then 17676 17677for ac_func in res_search 17678do 17679ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 17680echo "$as_me:17680: checking for $ac_func" >&5 17681echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17682if eval "test \"\${$ac_ac_var+set}\" = set"; then 17683 echo $ECHO_N "(cached) $ECHO_C" >&6 17684else 17685 cat >conftest.$ac_ext <<_ACEOF 17686#line 17686 "configure" 17687#include "confdefs.h" 17688/* System header to define __stub macros and hopefully few prototypes, 17689 which can conflict with char $ac_func (); below. */ 17690#include <assert.h> 17691/* Override any gcc2 internal prototype to avoid an error. */ 17692#ifdef __cplusplus 17693extern "C" 17694#endif 17695/* We use char because int might match the return type of a gcc2 17696 builtin and then its argument prototype would still apply. */ 17697char $ac_func (); 17698char (*f) (); 17699 17700int 17701main () 17702{ 17703/* The GNU C library defines this for functions which it implements 17704 to always fail with ENOSYS. Some functions are actually named 17705 something starting with __ and the normal name is an alias. */ 17706#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17707choke me 17708#else 17709f = $ac_func; 17710#endif 17711 17712 ; 17713 return 0; 17714} 17715_ACEOF 17716rm -f conftest.$ac_objext conftest$ac_exeext 17717if { (eval echo "$as_me:17717: \"$ac_link\"") >&5 17718 (eval $ac_link) 2>&5 17719 ac_status=$? 17720 echo "$as_me:17720: \$? = $ac_status" >&5 17721 (exit $ac_status); } && 17722 { (eval echo "$as_me:17722: \"test -s conftest$ac_exeext\"") >&5 17723 (eval test -s conftest$ac_exeext) 2>&5 17724 ac_status=$? 17725 echo "$as_me:17725: \$? = $ac_status" >&5 17726 (exit $ac_status); }; then 17727 eval "$ac_ac_var=yes" 17728else 17729 echo "$as_me: failed program was:" >&5 17730cat conftest.$ac_ext >&5 17731eval "$ac_ac_var=no" 17732fi 17733rm -f conftest$ac_exeext conftest.$ac_ext 17734fi 17735echo "$as_me:17735: result: `eval echo '${'$ac_ac_var'}'`" >&5 17736echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 17737if test `eval echo '${'$ac_ac_var'}'` = yes; then 17738 cat >>confdefs.h <<EOF 17739#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 17740EOF 17741 17742fi 17743done 17744 17745fi 17746# res_search 17747eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17748eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17749eval "LIB_res_search=$ac_res" 17750 17751case "$ac_res" in 17752 yes) 17753 eval "ac_cv_func_res_search=yes" 17754 eval "LIB_res_search=" 17755 cat >>confdefs.h <<EOF 17756#define $ac_tr_func 1 17757EOF 17758 17759 echo "$as_me:17759: result: yes" >&5 17760echo "${ECHO_T}yes" >&6 17761 ;; 17762 no) 17763 eval "ac_cv_func_res_search=no" 17764 eval "LIB_res_search=" 17765 echo "$as_me:17765: result: no" >&5 17766echo "${ECHO_T}no" >&6 17767 ;; 17768 *) 17769 eval "ac_cv_func_res_search=yes" 17770 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 17771 cat >>confdefs.h <<EOF 17772#define $ac_tr_func 1 17773EOF 17774 17775 cat >>confdefs.h <<EOF 17776#define $ac_tr_lib 1 17777EOF 17778 17779 echo "$as_me:17779: result: yes, in $ac_res" >&5 17780echo "${ECHO_T}yes, in $ac_res" >&6 17781 ;; 17782esac 17783 17784if test -n "$LIB_res_search"; then 17785 LIBS="$LIB_res_search $LIBS" 17786fi 17787 17788echo "$as_me:17788: checking for dn_expand" >&5 17789echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6 17790if test "${ac_cv_funclib_dn_expand+set}" = set; then 17791 echo $ECHO_N "(cached) $ECHO_C" >&6 17792else 17793 17794if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then 17795 ac_save_LIBS="$LIBS" 17796 for ac_lib in "" resolv; do 17797 if test -n "$ac_lib"; then 17798 ac_lib="-l$ac_lib" 17799 else 17800 ac_lib="" 17801 fi 17802 LIBS=" $ac_lib $ac_save_LIBS" 17803 cat >conftest.$ac_ext <<_ACEOF 17804#line 17804 "configure" 17805#include "confdefs.h" 17806 17807#include <stdio.h> 17808#ifdef HAVE_SYS_TYPES_H 17809#include <sys/types.h> 17810#endif 17811#ifdef HAVE_NETINET_IN_H 17812#include <netinet/in.h> 17813#endif 17814#ifdef HAVE_ARPA_NAMESER_H 17815#include <arpa/nameser.h> 17816#endif 17817#ifdef HAVE_RESOLV_H 17818#include <resolv.h> 17819#endif 17820 17821int 17822main () 17823{ 17824dn_expand(0,0,0,0,0) 17825 ; 17826 return 0; 17827} 17828_ACEOF 17829rm -f conftest.$ac_objext conftest$ac_exeext 17830if { (eval echo "$as_me:17830: \"$ac_link\"") >&5 17831 (eval $ac_link) 2>&5 17832 ac_status=$? 17833 echo "$as_me:17833: \$? = $ac_status" >&5 17834 (exit $ac_status); } && 17835 { (eval echo "$as_me:17835: \"test -s conftest$ac_exeext\"") >&5 17836 (eval test -s conftest$ac_exeext) 2>&5 17837 ac_status=$? 17838 echo "$as_me:17838: \$? = $ac_status" >&5 17839 (exit $ac_status); }; then 17840 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break 17841else 17842 echo "$as_me: failed program was:" >&5 17843cat conftest.$ac_ext >&5 17844fi 17845rm -f conftest$ac_exeext conftest.$ac_ext 17846 done 17847 eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}" 17848 LIBS="$ac_save_LIBS" 17849fi 17850 17851fi 17852 17853eval "ac_res=\$ac_cv_funclib_dn_expand" 17854 17855if false; then 17856 17857for ac_func in dn_expand 17858do 17859ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 17860echo "$as_me:17860: checking for $ac_func" >&5 17861echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17862if eval "test \"\${$ac_ac_var+set}\" = set"; then 17863 echo $ECHO_N "(cached) $ECHO_C" >&6 17864else 17865 cat >conftest.$ac_ext <<_ACEOF 17866#line 17866 "configure" 17867#include "confdefs.h" 17868/* System header to define __stub macros and hopefully few prototypes, 17869 which can conflict with char $ac_func (); below. */ 17870#include <assert.h> 17871/* Override any gcc2 internal prototype to avoid an error. */ 17872#ifdef __cplusplus 17873extern "C" 17874#endif 17875/* We use char because int might match the return type of a gcc2 17876 builtin and then its argument prototype would still apply. */ 17877char $ac_func (); 17878char (*f) (); 17879 17880int 17881main () 17882{ 17883/* The GNU C library defines this for functions which it implements 17884 to always fail with ENOSYS. Some functions are actually named 17885 something starting with __ and the normal name is an alias. */ 17886#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17887choke me 17888#else 17889f = $ac_func; 17890#endif 17891 17892 ; 17893 return 0; 17894} 17895_ACEOF 17896rm -f conftest.$ac_objext conftest$ac_exeext 17897if { (eval echo "$as_me:17897: \"$ac_link\"") >&5 17898 (eval $ac_link) 2>&5 17899 ac_status=$? 17900 echo "$as_me:17900: \$? = $ac_status" >&5 17901 (exit $ac_status); } && 17902 { (eval echo "$as_me:17902: \"test -s conftest$ac_exeext\"") >&5 17903 (eval test -s conftest$ac_exeext) 2>&5 17904 ac_status=$? 17905 echo "$as_me:17905: \$? = $ac_status" >&5 17906 (exit $ac_status); }; then 17907 eval "$ac_ac_var=yes" 17908else 17909 echo "$as_me: failed program was:" >&5 17910cat conftest.$ac_ext >&5 17911eval "$ac_ac_var=no" 17912fi 17913rm -f conftest$ac_exeext conftest.$ac_ext 17914fi 17915echo "$as_me:17915: result: `eval echo '${'$ac_ac_var'}'`" >&5 17916echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 17917if test `eval echo '${'$ac_ac_var'}'` = yes; then 17918 cat >>confdefs.h <<EOF 17919#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 17920EOF 17921 17922fi 17923done 17924 17925fi 17926# dn_expand 17927eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17928eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17929eval "LIB_dn_expand=$ac_res" 17930 17931case "$ac_res" in 17932 yes) 17933 eval "ac_cv_func_dn_expand=yes" 17934 eval "LIB_dn_expand=" 17935 cat >>confdefs.h <<EOF 17936#define $ac_tr_func 1 17937EOF 17938 17939 echo "$as_me:17939: result: yes" >&5 17940echo "${ECHO_T}yes" >&6 17941 ;; 17942 no) 17943 eval "ac_cv_func_dn_expand=no" 17944 eval "LIB_dn_expand=" 17945 echo "$as_me:17945: result: no" >&5 17946echo "${ECHO_T}no" >&6 17947 ;; 17948 *) 17949 eval "ac_cv_func_dn_expand=yes" 17950 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 17951 cat >>confdefs.h <<EOF 17952#define $ac_tr_func 1 17953EOF 17954 17955 cat >>confdefs.h <<EOF 17956#define $ac_tr_lib 1 17957EOF 17958 17959 echo "$as_me:17959: result: yes, in $ac_res" >&5 17960echo "${ECHO_T}yes, in $ac_res" >&6 17961 ;; 17962esac 17963 17964if test -n "$LIB_dn_expand"; then 17965 LIBS="$LIB_dn_expand $LIBS" 17966fi 17967 17968echo "$as_me:17968: checking for working snprintf" >&5 17969echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6 17970if test "${ac_cv_func_snprintf_working+set}" = set; then 17971 echo $ECHO_N "(cached) $ECHO_C" >&6 17972else 17973 ac_cv_func_snprintf_working=yes 17974if test "$cross_compiling" = yes; then 17975 : 17976else 17977 cat >conftest.$ac_ext <<_ACEOF 17978#line 17978 "configure" 17979#include "confdefs.h" 17980 17981#include <stdio.h> 17982#include <string.h> 17983int main() 17984{ 17985 char foo[3]; 17986 snprintf(foo, 2, "12"); 17987 return strcmp(foo, "1"); 17988} 17989_ACEOF 17990rm -f conftest$ac_exeext 17991if { (eval echo "$as_me:17991: \"$ac_link\"") >&5 17992 (eval $ac_link) 2>&5 17993 ac_status=$? 17994 echo "$as_me:17994: \$? = $ac_status" >&5 17995 (exit $ac_status); } && { (eval echo "$as_me:17995: \"./conftest$ac_exeext\"") >&5 17996 (eval ./conftest$ac_exeext) 2>&5 17997 ac_status=$? 17998 echo "$as_me:17998: \$? = $ac_status" >&5 17999 (exit $ac_status); }; then 18000 : 18001else 18002 echo "$as_me: program exited with status $ac_status" >&5 18003echo "$as_me: failed program was:" >&5 18004cat conftest.$ac_ext >&5 18005ac_cv_func_snprintf_working=no 18006fi 18007rm -f conftest$ac_exeext conftest.$ac_ext 18008fi 18009fi 18010echo "$as_me:18010: result: $ac_cv_func_snprintf_working" >&5 18011echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6 18012 18013if test "$ac_cv_func_snprintf_working" = yes; then 18014 18015cat >>confdefs.h <<EOF 18016#define HAVE_SNPRINTF 1 18017EOF 18018 18019fi 18020if test "$ac_cv_func_snprintf_working" = yes; then 18021 18022if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then 18023echo "$as_me:18023: checking if snprintf needs a prototype" >&5 18024echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6 18025if test "${ac_cv_func_snprintf_noproto+set}" = set; then 18026 echo $ECHO_N "(cached) $ECHO_C" >&6 18027else 18028 cat >conftest.$ac_ext <<_ACEOF 18029#line 18029 "configure" 18030#include "confdefs.h" 18031#include <stdio.h> 18032int 18033main () 18034{ 18035struct foo { int foo; } xx; 18036extern int snprintf (struct foo*); 18037snprintf(&xx); 18038 18039 ; 18040 return 0; 18041} 18042_ACEOF 18043rm -f conftest.$ac_objext 18044if { (eval echo "$as_me:18044: \"$ac_compile\"") >&5 18045 (eval $ac_compile) 2>&5 18046 ac_status=$? 18047 echo "$as_me:18047: \$? = $ac_status" >&5 18048 (exit $ac_status); } && 18049 { (eval echo "$as_me:18049: \"test -s conftest.$ac_objext\"") >&5 18050 (eval test -s conftest.$ac_objext) 2>&5 18051 ac_status=$? 18052 echo "$as_me:18052: \$? = $ac_status" >&5 18053 (exit $ac_status); }; then 18054 eval "ac_cv_func_snprintf_noproto=yes" 18055else 18056 echo "$as_me: failed program was:" >&5 18057cat conftest.$ac_ext >&5 18058eval "ac_cv_func_snprintf_noproto=no" 18059fi 18060rm -f conftest.$ac_objext conftest.$ac_ext 18061fi 18062echo "$as_me:18062: result: $ac_cv_func_snprintf_noproto" >&5 18063echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6 18064 18065if test "$ac_cv_func_snprintf_noproto" = yes; then 18066 18067cat >>confdefs.h <<\EOF 18068#define NEED_SNPRINTF_PROTO 1 18069EOF 18070 18071fi 18072 18073fi 18074 18075fi 18076 18077echo "$as_me:18077: checking for working vsnprintf" >&5 18078echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6 18079if test "${ac_cv_func_vsnprintf_working+set}" = set; then 18080 echo $ECHO_N "(cached) $ECHO_C" >&6 18081else 18082 ac_cv_func_vsnprintf_working=yes 18083if test "$cross_compiling" = yes; then 18084 : 18085else 18086 cat >conftest.$ac_ext <<_ACEOF 18087#line 18087 "configure" 18088#include "confdefs.h" 18089 18090#include <stdio.h> 18091#include <string.h> 18092#include <stdarg.h> 18093 18094int foo(int num, ...) 18095{ 18096 char bar[3]; 18097 va_list arg; 18098 va_start(arg, num); 18099 vsnprintf(bar, 2, "%s", arg); 18100 va_end(arg); 18101 return strcmp(bar, "1"); 18102} 18103 18104int main() 18105{ 18106 return foo(0, "12"); 18107} 18108_ACEOF 18109rm -f conftest$ac_exeext 18110if { (eval echo "$as_me:18110: \"$ac_link\"") >&5 18111 (eval $ac_link) 2>&5 18112 ac_status=$? 18113 echo "$as_me:18113: \$? = $ac_status" >&5 18114 (exit $ac_status); } && { (eval echo "$as_me:18114: \"./conftest$ac_exeext\"") >&5 18115 (eval ./conftest$ac_exeext) 2>&5 18116 ac_status=$? 18117 echo "$as_me:18117: \$? = $ac_status" >&5 18118 (exit $ac_status); }; then 18119 : 18120else 18121 echo "$as_me: program exited with status $ac_status" >&5 18122echo "$as_me: failed program was:" >&5 18123cat conftest.$ac_ext >&5 18124ac_cv_func_vsnprintf_working=no 18125fi 18126rm -f conftest$ac_exeext conftest.$ac_ext 18127fi 18128fi 18129echo "$as_me:18129: result: $ac_cv_func_vsnprintf_working" >&5 18130echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6 18131 18132if test "$ac_cv_func_vsnprintf_working" = yes; then 18133 18134cat >>confdefs.h <<EOF 18135#define HAVE_VSNPRINTF 1 18136EOF 18137 18138fi 18139if test "$ac_cv_func_vsnprintf_working" = yes; then 18140 18141if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then 18142echo "$as_me:18142: checking if vsnprintf needs a prototype" >&5 18143echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6 18144if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then 18145 echo $ECHO_N "(cached) $ECHO_C" >&6 18146else 18147 cat >conftest.$ac_ext <<_ACEOF 18148#line 18148 "configure" 18149#include "confdefs.h" 18150#include <stdio.h> 18151int 18152main () 18153{ 18154struct foo { int foo; } xx; 18155extern int vsnprintf (struct foo*); 18156vsnprintf(&xx); 18157 18158 ; 18159 return 0; 18160} 18161_ACEOF 18162rm -f conftest.$ac_objext 18163if { (eval echo "$as_me:18163: \"$ac_compile\"") >&5 18164 (eval $ac_compile) 2>&5 18165 ac_status=$? 18166 echo "$as_me:18166: \$? = $ac_status" >&5 18167 (exit $ac_status); } && 18168 { (eval echo "$as_me:18168: \"test -s conftest.$ac_objext\"") >&5 18169 (eval test -s conftest.$ac_objext) 2>&5 18170 ac_status=$? 18171 echo "$as_me:18171: \$? = $ac_status" >&5 18172 (exit $ac_status); }; then 18173 eval "ac_cv_func_vsnprintf_noproto=yes" 18174else 18175 echo "$as_me: failed program was:" >&5 18176cat conftest.$ac_ext >&5 18177eval "ac_cv_func_vsnprintf_noproto=no" 18178fi 18179rm -f conftest.$ac_objext conftest.$ac_ext 18180fi 18181echo "$as_me:18181: result: $ac_cv_func_vsnprintf_noproto" >&5 18182echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6 18183 18184if test "$ac_cv_func_vsnprintf_noproto" = yes; then 18185 18186cat >>confdefs.h <<\EOF 18187#define NEED_VSNPRINTF_PROTO 1 18188EOF 18189 18190fi 18191 18192fi 18193 18194fi 18195 18196for ac_func in \ 18197 _getpty \ 18198 _scrsize \ 18199 fcntl \ 18200 gettimeofday \ 18201 getuid \ 18202 grantpt \ 18203 mktime \ 18204 ptsname \ 18205 rand \ 18206 random \ 18207 revoke \ 18208 select \ 18209 setitimer \ 18210 setpcred \ 18211 setpgid \ 18212 setproctitle \ 18213 setregid \ 18214 setresgid \ 18215 setresuid \ 18216 setreuid \ 18217 setsid \ 18218 setutent \ 18219 sigaction \ 18220 strstr \ 18221 timegm \ 18222 ttyname \ 18223 ttyslot \ 18224 umask \ 18225 unlockpt \ 18226 vhangup \ 18227 yp_get_default_domain \ 18228 18229do 18230ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 18231echo "$as_me:18231: checking for $ac_func" >&5 18232echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 18233if eval "test \"\${$ac_ac_var+set}\" = set"; then 18234 echo $ECHO_N "(cached) $ECHO_C" >&6 18235else 18236 cat >conftest.$ac_ext <<_ACEOF 18237#line 18237 "configure" 18238#include "confdefs.h" 18239/* System header to define __stub macros and hopefully few prototypes, 18240 which can conflict with char $ac_func (); below. */ 18241#include <assert.h> 18242/* Override any gcc2 internal prototype to avoid an error. */ 18243#ifdef __cplusplus 18244extern "C" 18245#endif 18246/* We use char because int might match the return type of a gcc2 18247 builtin and then its argument prototype would still apply. */ 18248char $ac_func (); 18249char (*f) (); 18250 18251int 18252main () 18253{ 18254/* The GNU C library defines this for functions which it implements 18255 to always fail with ENOSYS. Some functions are actually named 18256 something starting with __ and the normal name is an alias. */ 18257#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18258choke me 18259#else 18260f = $ac_func; 18261#endif 18262 18263 ; 18264 return 0; 18265} 18266_ACEOF 18267rm -f conftest.$ac_objext conftest$ac_exeext 18268if { (eval echo "$as_me:18268: \"$ac_link\"") >&5 18269 (eval $ac_link) 2>&5 18270 ac_status=$? 18271 echo "$as_me:18271: \$? = $ac_status" >&5 18272 (exit $ac_status); } && 18273 { (eval echo "$as_me:18273: \"test -s conftest$ac_exeext\"") >&5 18274 (eval test -s conftest$ac_exeext) 2>&5 18275 ac_status=$? 18276 echo "$as_me:18276: \$? = $ac_status" >&5 18277 (exit $ac_status); }; then 18278 eval "$ac_ac_var=yes" 18279else 18280 echo "$as_me: failed program was:" >&5 18281cat conftest.$ac_ext >&5 18282eval "$ac_ac_var=no" 18283fi 18284rm -f conftest$ac_exeext conftest.$ac_ext 18285fi 18286echo "$as_me:18286: result: `eval echo '${'$ac_ac_var'}'`" >&5 18287echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 18288if test `eval echo '${'$ac_ac_var'}'` = yes; then 18289 cat >>confdefs.h <<EOF 18290#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 18291EOF 18292 18293fi 18294done 18295 18296for ac_header in capability.h sys/capability.h 18297do 18298ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 18299echo "$as_me:18299: checking for $ac_header" >&5 18300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 18301if eval "test \"\${$ac_ac_Header+set}\" = set"; then 18302 echo $ECHO_N "(cached) $ECHO_C" >&6 18303else 18304 cat >conftest.$ac_ext <<_ACEOF 18305#line 18305 "configure" 18306#include "confdefs.h" 18307#include <$ac_header> 18308_ACEOF 18309if { (eval echo "$as_me:18309: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 18310 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 18311 ac_status=$? 18312 egrep -v '^ *\+' conftest.er1 >conftest.err 18313 rm -f conftest.er1 18314 cat conftest.err >&5 18315 echo "$as_me:18315: \$? = $ac_status" >&5 18316 (exit $ac_status); }; then 18317 if test -s conftest.err; then 18318 ac_cpp_err=$ac_c_preproc_warn_flag 18319 else 18320 ac_cpp_err= 18321 fi 18322else 18323 ac_cpp_err=yes 18324fi 18325if test -z "$ac_cpp_err"; then 18326 eval "$ac_ac_Header=yes" 18327else 18328 echo "$as_me: failed program was:" >&5 18329 cat conftest.$ac_ext >&5 18330 eval "$ac_ac_Header=no" 18331fi 18332rm -f conftest.err conftest.$ac_ext 18333fi 18334echo "$as_me:18334: result: `eval echo '${'$ac_ac_Header'}'`" >&5 18335echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 18336if test `eval echo '${'$ac_ac_Header'}'` = yes; then 18337 cat >>confdefs.h <<EOF 18338#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 18339EOF 18340 18341fi 18342done 18343 18344for ac_func in sgi_getcapabilitybyname cap_set_proc 18345do 18346ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 18347echo "$as_me:18347: checking for $ac_func" >&5 18348echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 18349if eval "test \"\${$ac_ac_var+set}\" = set"; then 18350 echo $ECHO_N "(cached) $ECHO_C" >&6 18351else 18352 cat >conftest.$ac_ext <<_ACEOF 18353#line 18353 "configure" 18354#include "confdefs.h" 18355/* System header to define __stub macros and hopefully few prototypes, 18356 which can conflict with char $ac_func (); below. */ 18357#include <assert.h> 18358/* Override any gcc2 internal prototype to avoid an error. */ 18359#ifdef __cplusplus 18360extern "C" 18361#endif 18362/* We use char because int might match the return type of a gcc2 18363 builtin and then its argument prototype would still apply. */ 18364char $ac_func (); 18365char (*f) (); 18366 18367int 18368main () 18369{ 18370/* The GNU C library defines this for functions which it implements 18371 to always fail with ENOSYS. Some functions are actually named 18372 something starting with __ and the normal name is an alias. */ 18373#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18374choke me 18375#else 18376f = $ac_func; 18377#endif 18378 18379 ; 18380 return 0; 18381} 18382_ACEOF 18383rm -f conftest.$ac_objext conftest$ac_exeext 18384if { (eval echo "$as_me:18384: \"$ac_link\"") >&5 18385 (eval $ac_link) 2>&5 18386 ac_status=$? 18387 echo "$as_me:18387: \$? = $ac_status" >&5 18388 (exit $ac_status); } && 18389 { (eval echo "$as_me:18389: \"test -s conftest$ac_exeext\"") >&5 18390 (eval test -s conftest$ac_exeext) 2>&5 18391 ac_status=$? 18392 echo "$as_me:18392: \$? = $ac_status" >&5 18393 (exit $ac_status); }; then 18394 eval "$ac_ac_var=yes" 18395else 18396 echo "$as_me: failed program was:" >&5 18397cat conftest.$ac_ext >&5 18398eval "$ac_ac_var=no" 18399fi 18400rm -f conftest$ac_exeext conftest.$ac_ext 18401fi 18402echo "$as_me:18402: result: `eval echo '${'$ac_ac_var'}'`" >&5 18403echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 18404if test `eval echo '${'$ac_ac_var'}'` = yes; then 18405 cat >>confdefs.h <<EOF 18406#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 18407EOF 18408 18409fi 18410done 18411 18412echo "$as_me:18412: checking for getpwnam_r" >&5 18413echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6 18414if test "${ac_cv_funclib_getpwnam_r+set}" = set; then 18415 echo $ECHO_N "(cached) $ECHO_C" >&6 18416else 18417 18418if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then 18419 ac_save_LIBS="$LIBS" 18420 for ac_lib in "" c_r; do 18421 if test -n "$ac_lib"; then 18422 ac_lib="-l$ac_lib" 18423 else 18424 ac_lib="" 18425 fi 18426 LIBS=" $ac_lib $ac_save_LIBS" 18427 cat >conftest.$ac_ext <<_ACEOF 18428#line 18428 "configure" 18429#include "confdefs.h" 18430 18431int 18432main () 18433{ 18434getpwnam_r() 18435 ; 18436 return 0; 18437} 18438_ACEOF 18439rm -f conftest.$ac_objext conftest$ac_exeext 18440if { (eval echo "$as_me:18440: \"$ac_link\"") >&5 18441 (eval $ac_link) 2>&5 18442 ac_status=$? 18443 echo "$as_me:18443: \$? = $ac_status" >&5 18444 (exit $ac_status); } && 18445 { (eval echo "$as_me:18445: \"test -s conftest$ac_exeext\"") >&5 18446 (eval test -s conftest$ac_exeext) 2>&5 18447 ac_status=$? 18448 echo "$as_me:18448: \$? = $ac_status" >&5 18449 (exit $ac_status); }; then 18450 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break 18451else 18452 echo "$as_me: failed program was:" >&5 18453cat conftest.$ac_ext >&5 18454fi 18455rm -f conftest$ac_exeext conftest.$ac_ext 18456 done 18457 eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}" 18458 LIBS="$ac_save_LIBS" 18459fi 18460 18461fi 18462 18463eval "ac_res=\$ac_cv_funclib_getpwnam_r" 18464 18465if false; then 18466 18467for ac_func in getpwnam_r 18468do 18469ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 18470echo "$as_me:18470: checking for $ac_func" >&5 18471echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 18472if eval "test \"\${$ac_ac_var+set}\" = set"; then 18473 echo $ECHO_N "(cached) $ECHO_C" >&6 18474else 18475 cat >conftest.$ac_ext <<_ACEOF 18476#line 18476 "configure" 18477#include "confdefs.h" 18478/* System header to define __stub macros and hopefully few prototypes, 18479 which can conflict with char $ac_func (); below. */ 18480#include <assert.h> 18481/* Override any gcc2 internal prototype to avoid an error. */ 18482#ifdef __cplusplus 18483extern "C" 18484#endif 18485/* We use char because int might match the return type of a gcc2 18486 builtin and then its argument prototype would still apply. */ 18487char $ac_func (); 18488char (*f) (); 18489 18490int 18491main () 18492{ 18493/* The GNU C library defines this for functions which it implements 18494 to always fail with ENOSYS. Some functions are actually named 18495 something starting with __ and the normal name is an alias. */ 18496#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18497choke me 18498#else 18499f = $ac_func; 18500#endif 18501 18502 ; 18503 return 0; 18504} 18505_ACEOF 18506rm -f conftest.$ac_objext conftest$ac_exeext 18507if { (eval echo "$as_me:18507: \"$ac_link\"") >&5 18508 (eval $ac_link) 2>&5 18509 ac_status=$? 18510 echo "$as_me:18510: \$? = $ac_status" >&5 18511 (exit $ac_status); } && 18512 { (eval echo "$as_me:18512: \"test -s conftest$ac_exeext\"") >&5 18513 (eval test -s conftest$ac_exeext) 2>&5 18514 ac_status=$? 18515 echo "$as_me:18515: \$? = $ac_status" >&5 18516 (exit $ac_status); }; then 18517 eval "$ac_ac_var=yes" 18518else 18519 echo "$as_me: failed program was:" >&5 18520cat conftest.$ac_ext >&5 18521eval "$ac_ac_var=no" 18522fi 18523rm -f conftest$ac_exeext conftest.$ac_ext 18524fi 18525echo "$as_me:18525: result: `eval echo '${'$ac_ac_var'}'`" >&5 18526echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 18527if test `eval echo '${'$ac_ac_var'}'` = yes; then 18528 cat >>confdefs.h <<EOF 18529#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 18530EOF 18531 18532fi 18533done 18534 18535fi 18536# getpwnam_r 18537eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18538eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18539eval "LIB_getpwnam_r=$ac_res" 18540 18541case "$ac_res" in 18542 yes) 18543 eval "ac_cv_func_getpwnam_r=yes" 18544 eval "LIB_getpwnam_r=" 18545 cat >>confdefs.h <<EOF 18546#define $ac_tr_func 1 18547EOF 18548 18549 echo "$as_me:18549: result: yes" >&5 18550echo "${ECHO_T}yes" >&6 18551 ;; 18552 no) 18553 eval "ac_cv_func_getpwnam_r=no" 18554 eval "LIB_getpwnam_r=" 18555 echo "$as_me:18555: result: no" >&5 18556echo "${ECHO_T}no" >&6 18557 ;; 18558 *) 18559 eval "ac_cv_func_getpwnam_r=yes" 18560 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 18561 cat >>confdefs.h <<EOF 18562#define $ac_tr_func 1 18563EOF 18564 18565 cat >>confdefs.h <<EOF 18566#define $ac_tr_lib 1 18567EOF 18568 18569 echo "$as_me:18569: result: yes, in $ac_res" >&5 18570echo "${ECHO_T}yes, in $ac_res" >&6 18571 ;; 18572esac 18573 18574if test "$ac_cv_func_getpwnam_r" = yes; then 18575 echo "$as_me:18575: checking if getpwnam_r is posix" >&5 18576echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6 18577if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then 18578 echo $ECHO_N "(cached) $ECHO_C" >&6 18579else 18580 ac_libs="$LIBS" 18581 LIBS="$LIBS $LIB_getpwnam_r" 18582 if test "$cross_compiling" = yes; then 18583 : 18584else 18585 cat >conftest.$ac_ext <<_ACEOF 18586#line 18586 "configure" 18587#include "confdefs.h" 18588 18589#include <pwd.h> 18590int main() 18591{ 18592 struct passwd pw, *pwd; 18593 return getpwnam_r("", &pw, NULL, 0, &pwd) < 0; 18594} 18595 18596_ACEOF 18597rm -f conftest$ac_exeext 18598if { (eval echo "$as_me:18598: \"$ac_link\"") >&5 18599 (eval $ac_link) 2>&5 18600 ac_status=$? 18601 echo "$as_me:18601: \$? = $ac_status" >&5 18602 (exit $ac_status); } && { (eval echo "$as_me:18602: \"./conftest$ac_exeext\"") >&5 18603 (eval ./conftest$ac_exeext) 2>&5 18604 ac_status=$? 18605 echo "$as_me:18605: \$? = $ac_status" >&5 18606 (exit $ac_status); }; then 18607 ac_cv_func_getpwnam_r_posix=yes 18608else 18609 echo "$as_me: program exited with status $ac_status" >&5 18610echo "$as_me: failed program was:" >&5 18611cat conftest.$ac_ext >&5 18612ac_cv_func_getpwnam_r_posix=no 18613fi 18614rm -f conftest$ac_exeext conftest.$ac_ext 18615fi 18616LIBS="$ac_libs" 18617fi 18618echo "$as_me:18618: result: $ac_cv_func_getpwnam_r_posix" >&5 18619echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6 18620if test "$ac_cv_func_getpwnam_r_posix" = yes; then 18621 18622cat >>confdefs.h <<\EOF 18623#define POSIX_GETPWNAM_R 1 18624EOF 18625 18626fi 18627fi 18628 18629echo "$as_me:18629: checking for getsockopt" >&5 18630echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6 18631if test "${ac_cv_funclib_getsockopt+set}" = set; then 18632 echo $ECHO_N "(cached) $ECHO_C" >&6 18633else 18634 18635if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then 18636 ac_save_LIBS="$LIBS" 18637 for ac_lib in "" ; do 18638 if test -n "$ac_lib"; then 18639 ac_lib="-l$ac_lib" 18640 else 18641 ac_lib="" 18642 fi 18643 LIBS=" $ac_lib $ac_save_LIBS" 18644 cat >conftest.$ac_ext <<_ACEOF 18645#line 18645 "configure" 18646#include "confdefs.h" 18647#ifdef HAVE_SYS_TYPES_H 18648#include <sys/types.h> 18649#endif 18650#ifdef HAVE_SYS_SOCKET_H 18651#include <sys/socket.h> 18652#endif 18653int 18654main () 18655{ 18656getsockopt(0,0,0,0,0) 18657 ; 18658 return 0; 18659} 18660_ACEOF 18661rm -f conftest.$ac_objext conftest$ac_exeext 18662if { (eval echo "$as_me:18662: \"$ac_link\"") >&5 18663 (eval $ac_link) 2>&5 18664 ac_status=$? 18665 echo "$as_me:18665: \$? = $ac_status" >&5 18666 (exit $ac_status); } && 18667 { (eval echo "$as_me:18667: \"test -s conftest$ac_exeext\"") >&5 18668 (eval test -s conftest$ac_exeext) 2>&5 18669 ac_status=$? 18670 echo "$as_me:18670: \$? = $ac_status" >&5 18671 (exit $ac_status); }; then 18672 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break 18673else 18674 echo "$as_me: failed program was:" >&5 18675cat conftest.$ac_ext >&5 18676fi 18677rm -f conftest$ac_exeext conftest.$ac_ext 18678 done 18679 eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}" 18680 LIBS="$ac_save_LIBS" 18681fi 18682 18683fi 18684 18685eval "ac_res=\$ac_cv_funclib_getsockopt" 18686 18687if false; then 18688 18689for ac_func in getsockopt 18690do 18691ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 18692echo "$as_me:18692: checking for $ac_func" >&5 18693echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 18694if eval "test \"\${$ac_ac_var+set}\" = set"; then 18695 echo $ECHO_N "(cached) $ECHO_C" >&6 18696else 18697 cat >conftest.$ac_ext <<_ACEOF 18698#line 18698 "configure" 18699#include "confdefs.h" 18700/* System header to define __stub macros and hopefully few prototypes, 18701 which can conflict with char $ac_func (); below. */ 18702#include <assert.h> 18703/* Override any gcc2 internal prototype to avoid an error. */ 18704#ifdef __cplusplus 18705extern "C" 18706#endif 18707/* We use char because int might match the return type of a gcc2 18708 builtin and then its argument prototype would still apply. */ 18709char $ac_func (); 18710char (*f) (); 18711 18712int 18713main () 18714{ 18715/* The GNU C library defines this for functions which it implements 18716 to always fail with ENOSYS. Some functions are actually named 18717 something starting with __ and the normal name is an alias. */ 18718#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18719choke me 18720#else 18721f = $ac_func; 18722#endif 18723 18724 ; 18725 return 0; 18726} 18727_ACEOF 18728rm -f conftest.$ac_objext conftest$ac_exeext 18729if { (eval echo "$as_me:18729: \"$ac_link\"") >&5 18730 (eval $ac_link) 2>&5 18731 ac_status=$? 18732 echo "$as_me:18732: \$? = $ac_status" >&5 18733 (exit $ac_status); } && 18734 { (eval echo "$as_me:18734: \"test -s conftest$ac_exeext\"") >&5 18735 (eval test -s conftest$ac_exeext) 2>&5 18736 ac_status=$? 18737 echo "$as_me:18737: \$? = $ac_status" >&5 18738 (exit $ac_status); }; then 18739 eval "$ac_ac_var=yes" 18740else 18741 echo "$as_me: failed program was:" >&5 18742cat conftest.$ac_ext >&5 18743eval "$ac_ac_var=no" 18744fi 18745rm -f conftest$ac_exeext conftest.$ac_ext 18746fi 18747echo "$as_me:18747: result: `eval echo '${'$ac_ac_var'}'`" >&5 18748echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 18749if test `eval echo '${'$ac_ac_var'}'` = yes; then 18750 cat >>confdefs.h <<EOF 18751#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 18752EOF 18753 18754fi 18755done 18756 18757fi 18758# getsockopt 18759eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18760eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18761eval "LIB_getsockopt=$ac_res" 18762 18763case "$ac_res" in 18764 yes) 18765 eval "ac_cv_func_getsockopt=yes" 18766 eval "LIB_getsockopt=" 18767 cat >>confdefs.h <<EOF 18768#define $ac_tr_func 1 18769EOF 18770 18771 echo "$as_me:18771: result: yes" >&5 18772echo "${ECHO_T}yes" >&6 18773 ;; 18774 no) 18775 eval "ac_cv_func_getsockopt=no" 18776 eval "LIB_getsockopt=" 18777 echo "$as_me:18777: result: no" >&5 18778echo "${ECHO_T}no" >&6 18779 ;; 18780 *) 18781 eval "ac_cv_func_getsockopt=yes" 18782 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 18783 cat >>confdefs.h <<EOF 18784#define $ac_tr_func 1 18785EOF 18786 18787 cat >>confdefs.h <<EOF 18788#define $ac_tr_lib 1 18789EOF 18790 18791 echo "$as_me:18791: result: yes, in $ac_res" >&5 18792echo "${ECHO_T}yes, in $ac_res" >&6 18793 ;; 18794esac 18795 18796echo "$as_me:18796: checking for setsockopt" >&5 18797echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 18798if test "${ac_cv_funclib_setsockopt+set}" = set; then 18799 echo $ECHO_N "(cached) $ECHO_C" >&6 18800else 18801 18802if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then 18803 ac_save_LIBS="$LIBS" 18804 for ac_lib in "" ; do 18805 if test -n "$ac_lib"; then 18806 ac_lib="-l$ac_lib" 18807 else 18808 ac_lib="" 18809 fi 18810 LIBS=" $ac_lib $ac_save_LIBS" 18811 cat >conftest.$ac_ext <<_ACEOF 18812#line 18812 "configure" 18813#include "confdefs.h" 18814#ifdef HAVE_SYS_TYPES_H 18815#include <sys/types.h> 18816#endif 18817#ifdef HAVE_SYS_SOCKET_H 18818#include <sys/socket.h> 18819#endif 18820int 18821main () 18822{ 18823setsockopt(0,0,0,0,0) 18824 ; 18825 return 0; 18826} 18827_ACEOF 18828rm -f conftest.$ac_objext conftest$ac_exeext 18829if { (eval echo "$as_me:18829: \"$ac_link\"") >&5 18830 (eval $ac_link) 2>&5 18831 ac_status=$? 18832 echo "$as_me:18832: \$? = $ac_status" >&5 18833 (exit $ac_status); } && 18834 { (eval echo "$as_me:18834: \"test -s conftest$ac_exeext\"") >&5 18835 (eval test -s conftest$ac_exeext) 2>&5 18836 ac_status=$? 18837 echo "$as_me:18837: \$? = $ac_status" >&5 18838 (exit $ac_status); }; then 18839 eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break 18840else 18841 echo "$as_me: failed program was:" >&5 18842cat conftest.$ac_ext >&5 18843fi 18844rm -f conftest$ac_exeext conftest.$ac_ext 18845 done 18846 eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}" 18847 LIBS="$ac_save_LIBS" 18848fi 18849 18850fi 18851 18852eval "ac_res=\$ac_cv_funclib_setsockopt" 18853 18854if false; then 18855 18856for ac_func in setsockopt 18857do 18858ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 18859echo "$as_me:18859: checking for $ac_func" >&5 18860echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 18861if eval "test \"\${$ac_ac_var+set}\" = set"; then 18862 echo $ECHO_N "(cached) $ECHO_C" >&6 18863else 18864 cat >conftest.$ac_ext <<_ACEOF 18865#line 18865 "configure" 18866#include "confdefs.h" 18867/* System header to define __stub macros and hopefully few prototypes, 18868 which can conflict with char $ac_func (); below. */ 18869#include <assert.h> 18870/* Override any gcc2 internal prototype to avoid an error. */ 18871#ifdef __cplusplus 18872extern "C" 18873#endif 18874/* We use char because int might match the return type of a gcc2 18875 builtin and then its argument prototype would still apply. */ 18876char $ac_func (); 18877char (*f) (); 18878 18879int 18880main () 18881{ 18882/* The GNU C library defines this for functions which it implements 18883 to always fail with ENOSYS. Some functions are actually named 18884 something starting with __ and the normal name is an alias. */ 18885#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18886choke me 18887#else 18888f = $ac_func; 18889#endif 18890 18891 ; 18892 return 0; 18893} 18894_ACEOF 18895rm -f conftest.$ac_objext conftest$ac_exeext 18896if { (eval echo "$as_me:18896: \"$ac_link\"") >&5 18897 (eval $ac_link) 2>&5 18898 ac_status=$? 18899 echo "$as_me:18899: \$? = $ac_status" >&5 18900 (exit $ac_status); } && 18901 { (eval echo "$as_me:18901: \"test -s conftest$ac_exeext\"") >&5 18902 (eval test -s conftest$ac_exeext) 2>&5 18903 ac_status=$? 18904 echo "$as_me:18904: \$? = $ac_status" >&5 18905 (exit $ac_status); }; then 18906 eval "$ac_ac_var=yes" 18907else 18908 echo "$as_me: failed program was:" >&5 18909cat conftest.$ac_ext >&5 18910eval "$ac_ac_var=no" 18911fi 18912rm -f conftest$ac_exeext conftest.$ac_ext 18913fi 18914echo "$as_me:18914: result: `eval echo '${'$ac_ac_var'}'`" >&5 18915echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 18916if test `eval echo '${'$ac_ac_var'}'` = yes; then 18917 cat >>confdefs.h <<EOF 18918#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 18919EOF 18920 18921fi 18922done 18923 18924fi 18925# setsockopt 18926eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18927eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18928eval "LIB_setsockopt=$ac_res" 18929 18930case "$ac_res" in 18931 yes) 18932 eval "ac_cv_func_setsockopt=yes" 18933 eval "LIB_setsockopt=" 18934 cat >>confdefs.h <<EOF 18935#define $ac_tr_func 1 18936EOF 18937 18938 echo "$as_me:18938: result: yes" >&5 18939echo "${ECHO_T}yes" >&6 18940 ;; 18941 no) 18942 eval "ac_cv_func_setsockopt=no" 18943 eval "LIB_setsockopt=" 18944 echo "$as_me:18944: result: no" >&5 18945echo "${ECHO_T}no" >&6 18946 ;; 18947 *) 18948 eval "ac_cv_func_setsockopt=yes" 18949 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 18950 cat >>confdefs.h <<EOF 18951#define $ac_tr_func 1 18952EOF 18953 18954 cat >>confdefs.h <<EOF 18955#define $ac_tr_lib 1 18956EOF 18957 18958 echo "$as_me:18958: result: yes, in $ac_res" >&5 18959echo "${ECHO_T}yes, in $ac_res" >&6 18960 ;; 18961esac 18962 18963for ac_func in getudbnam setlim 18964do 18965ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 18966echo "$as_me:18966: checking for $ac_func" >&5 18967echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 18968if eval "test \"\${$ac_ac_var+set}\" = set"; then 18969 echo $ECHO_N "(cached) $ECHO_C" >&6 18970else 18971 cat >conftest.$ac_ext <<_ACEOF 18972#line 18972 "configure" 18973#include "confdefs.h" 18974/* System header to define __stub macros and hopefully few prototypes, 18975 which can conflict with char $ac_func (); below. */ 18976#include <assert.h> 18977/* Override any gcc2 internal prototype to avoid an error. */ 18978#ifdef __cplusplus 18979extern "C" 18980#endif 18981/* We use char because int might match the return type of a gcc2 18982 builtin and then its argument prototype would still apply. */ 18983char $ac_func (); 18984char (*f) (); 18985 18986int 18987main () 18988{ 18989/* The GNU C library defines this for functions which it implements 18990 to always fail with ENOSYS. Some functions are actually named 18991 something starting with __ and the normal name is an alias. */ 18992#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18993choke me 18994#else 18995f = $ac_func; 18996#endif 18997 18998 ; 18999 return 0; 19000} 19001_ACEOF 19002rm -f conftest.$ac_objext conftest$ac_exeext 19003if { (eval echo "$as_me:19003: \"$ac_link\"") >&5 19004 (eval $ac_link) 2>&5 19005 ac_status=$? 19006 echo "$as_me:19006: \$? = $ac_status" >&5 19007 (exit $ac_status); } && 19008 { (eval echo "$as_me:19008: \"test -s conftest$ac_exeext\"") >&5 19009 (eval test -s conftest$ac_exeext) 2>&5 19010 ac_status=$? 19011 echo "$as_me:19011: \$? = $ac_status" >&5 19012 (exit $ac_status); }; then 19013 eval "$ac_ac_var=yes" 19014else 19015 echo "$as_me: failed program was:" >&5 19016cat conftest.$ac_ext >&5 19017eval "$ac_ac_var=no" 19018fi 19019rm -f conftest$ac_exeext conftest.$ac_ext 19020fi 19021echo "$as_me:19021: result: `eval echo '${'$ac_ac_var'}'`" >&5 19022echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 19023if test `eval echo '${'$ac_ac_var'}'` = yes; then 19024 cat >>confdefs.h <<EOF 19025#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 19026EOF 19027 19028fi 19029done 19030 19031echo "$as_me:19031: checking return type of signal handlers" >&5 19032echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 19033if test "${ac_cv_type_signal+set}" = set; then 19034 echo $ECHO_N "(cached) $ECHO_C" >&6 19035else 19036 cat >conftest.$ac_ext <<_ACEOF 19037#line 19037 "configure" 19038#include "confdefs.h" 19039#include <sys/types.h> 19040#include <signal.h> 19041#ifdef signal 19042# undef signal 19043#endif 19044#ifdef __cplusplus 19045extern "C" void (*signal (int, void (*)(int)))(int); 19046#else 19047void (*signal ()) (); 19048#endif 19049 19050int 19051main () 19052{ 19053int i; 19054 ; 19055 return 0; 19056} 19057_ACEOF 19058rm -f conftest.$ac_objext 19059if { (eval echo "$as_me:19059: \"$ac_compile\"") >&5 19060 (eval $ac_compile) 2>&5 19061 ac_status=$? 19062 echo "$as_me:19062: \$? = $ac_status" >&5 19063 (exit $ac_status); } && 19064 { (eval echo "$as_me:19064: \"test -s conftest.$ac_objext\"") >&5 19065 (eval test -s conftest.$ac_objext) 2>&5 19066 ac_status=$? 19067 echo "$as_me:19067: \$? = $ac_status" >&5 19068 (exit $ac_status); }; then 19069 ac_cv_type_signal=void 19070else 19071 echo "$as_me: failed program was:" >&5 19072cat conftest.$ac_ext >&5 19073ac_cv_type_signal=int 19074fi 19075rm -f conftest.$ac_objext conftest.$ac_ext 19076fi 19077echo "$as_me:19077: result: $ac_cv_type_signal" >&5 19078echo "${ECHO_T}$ac_cv_type_signal" >&6 19079 19080cat >>confdefs.h <<EOF 19081#define RETSIGTYPE $ac_cv_type_signal 19082EOF 19083 19084if test "$ac_cv_type_signal" = "void" ; then 19085 19086cat >>confdefs.h <<\EOF 19087#define VOID_RETSIGTYPE 1 19088EOF 19089 19090fi 19091 19092echo "$as_me:19092: checking if realloc if broken" >&5 19093echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6 19094if test "${ac_cv_func_realloc_broken+set}" = set; then 19095 echo $ECHO_N "(cached) $ECHO_C" >&6 19096else 19097 19098ac_cv_func_realloc_broken=no 19099if test "$cross_compiling" = yes; then 19100 : 19101else 19102 cat >conftest.$ac_ext <<_ACEOF 19103#line 19103 "configure" 19104#include "confdefs.h" 19105 19106#include <stddef.h> 19107#include <stdlib.h> 19108 19109int main() 19110{ 19111 return realloc(NULL, 17) == NULL; 19112} 19113 19114_ACEOF 19115rm -f conftest$ac_exeext 19116if { (eval echo "$as_me:19116: \"$ac_link\"") >&5 19117 (eval $ac_link) 2>&5 19118 ac_status=$? 19119 echo "$as_me:19119: \$? = $ac_status" >&5 19120 (exit $ac_status); } && { (eval echo "$as_me:19120: \"./conftest$ac_exeext\"") >&5 19121 (eval ./conftest$ac_exeext) 2>&5 19122 ac_status=$? 19123 echo "$as_me:19123: \$? = $ac_status" >&5 19124 (exit $ac_status); }; then 19125 : 19126else 19127 echo "$as_me: program exited with status $ac_status" >&5 19128echo "$as_me: failed program was:" >&5 19129cat conftest.$ac_ext >&5 19130ac_cv_func_realloc_broken=yes 19131fi 19132rm -f conftest$ac_exeext conftest.$ac_ext 19133fi 19134 19135fi 19136echo "$as_me:19136: result: $ac_cv_func_realloc_broken" >&5 19137echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6 19138if test "$ac_cv_func_realloc_broken" = yes ; then 19139 19140cat >>confdefs.h <<\EOF 19141#define BROKEN_REALLOC 1 19142EOF 19143 19144fi 19145 19146echo "$as_me:19146: checking for ut_addr in struct utmp" >&5 19147echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6 19148if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then 19149 echo $ECHO_N "(cached) $ECHO_C" >&6 19150else 19151 19152cat >conftest.$ac_ext <<_ACEOF 19153#line 19153 "configure" 19154#include "confdefs.h" 19155#include <utmp.h> 19156int 19157main () 19158{ 19159struct utmp x; x.ut_addr; 19160 ; 19161 return 0; 19162} 19163_ACEOF 19164rm -f conftest.$ac_objext 19165if { (eval echo "$as_me:19165: \"$ac_compile\"") >&5 19166 (eval $ac_compile) 2>&5 19167 ac_status=$? 19168 echo "$as_me:19168: \$? = $ac_status" >&5 19169 (exit $ac_status); } && 19170 { (eval echo "$as_me:19170: \"test -s conftest.$ac_objext\"") >&5 19171 (eval test -s conftest.$ac_objext) 2>&5 19172 ac_status=$? 19173 echo "$as_me:19173: \$? = $ac_status" >&5 19174 (exit $ac_status); }; then 19175 ac_cv_type_struct_utmp_ut_addr=yes 19176else 19177 echo "$as_me: failed program was:" >&5 19178cat conftest.$ac_ext >&5 19179ac_cv_type_struct_utmp_ut_addr=no 19180fi 19181rm -f conftest.$ac_objext conftest.$ac_ext 19182fi 19183echo "$as_me:19183: result: $ac_cv_type_struct_utmp_ut_addr" >&5 19184echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6 19185if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then 19186 19187cat >>confdefs.h <<\EOF 19188#define HAVE_STRUCT_UTMP_UT_ADDR 1 19189EOF 19190 19191fi 19192 19193echo "$as_me:19193: checking for ut_host in struct utmp" >&5 19194echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6 19195if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then 19196 echo $ECHO_N "(cached) $ECHO_C" >&6 19197else 19198 19199cat >conftest.$ac_ext <<_ACEOF 19200#line 19200 "configure" 19201#include "confdefs.h" 19202#include <utmp.h> 19203int 19204main () 19205{ 19206struct utmp x; x.ut_host; 19207 ; 19208 return 0; 19209} 19210_ACEOF 19211rm -f conftest.$ac_objext 19212if { (eval echo "$as_me:19212: \"$ac_compile\"") >&5 19213 (eval $ac_compile) 2>&5 19214 ac_status=$? 19215 echo "$as_me:19215: \$? = $ac_status" >&5 19216 (exit $ac_status); } && 19217 { (eval echo "$as_me:19217: \"test -s conftest.$ac_objext\"") >&5 19218 (eval test -s conftest.$ac_objext) 2>&5 19219 ac_status=$? 19220 echo "$as_me:19220: \$? = $ac_status" >&5 19221 (exit $ac_status); }; then 19222 ac_cv_type_struct_utmp_ut_host=yes 19223else 19224 echo "$as_me: failed program was:" >&5 19225cat conftest.$ac_ext >&5 19226ac_cv_type_struct_utmp_ut_host=no 19227fi 19228rm -f conftest.$ac_objext conftest.$ac_ext 19229fi 19230echo "$as_me:19230: result: $ac_cv_type_struct_utmp_ut_host" >&5 19231echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6 19232if test "$ac_cv_type_struct_utmp_ut_host" = yes; then 19233 19234cat >>confdefs.h <<\EOF 19235#define HAVE_STRUCT_UTMP_UT_HOST 1 19236EOF 19237 19238fi 19239 19240echo "$as_me:19240: checking for ut_id in struct utmp" >&5 19241echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6 19242if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then 19243 echo $ECHO_N "(cached) $ECHO_C" >&6 19244else 19245 19246cat >conftest.$ac_ext <<_ACEOF 19247#line 19247 "configure" 19248#include "confdefs.h" 19249#include <utmp.h> 19250int 19251main () 19252{ 19253struct utmp x; x.ut_id; 19254 ; 19255 return 0; 19256} 19257_ACEOF 19258rm -f conftest.$ac_objext 19259if { (eval echo "$as_me:19259: \"$ac_compile\"") >&5 19260 (eval $ac_compile) 2>&5 19261 ac_status=$? 19262 echo "$as_me:19262: \$? = $ac_status" >&5 19263 (exit $ac_status); } && 19264 { (eval echo "$as_me:19264: \"test -s conftest.$ac_objext\"") >&5 19265 (eval test -s conftest.$ac_objext) 2>&5 19266 ac_status=$? 19267 echo "$as_me:19267: \$? = $ac_status" >&5 19268 (exit $ac_status); }; then 19269 ac_cv_type_struct_utmp_ut_id=yes 19270else 19271 echo "$as_me: failed program was:" >&5 19272cat conftest.$ac_ext >&5 19273ac_cv_type_struct_utmp_ut_id=no 19274fi 19275rm -f conftest.$ac_objext conftest.$ac_ext 19276fi 19277echo "$as_me:19277: result: $ac_cv_type_struct_utmp_ut_id" >&5 19278echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6 19279if test "$ac_cv_type_struct_utmp_ut_id" = yes; then 19280 19281cat >>confdefs.h <<\EOF 19282#define HAVE_STRUCT_UTMP_UT_ID 1 19283EOF 19284 19285fi 19286 19287echo "$as_me:19287: checking for ut_pid in struct utmp" >&5 19288echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6 19289if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then 19290 echo $ECHO_N "(cached) $ECHO_C" >&6 19291else 19292 19293cat >conftest.$ac_ext <<_ACEOF 19294#line 19294 "configure" 19295#include "confdefs.h" 19296#include <utmp.h> 19297int 19298main () 19299{ 19300struct utmp x; x.ut_pid; 19301 ; 19302 return 0; 19303} 19304_ACEOF 19305rm -f conftest.$ac_objext 19306if { (eval echo "$as_me:19306: \"$ac_compile\"") >&5 19307 (eval $ac_compile) 2>&5 19308 ac_status=$? 19309 echo "$as_me:19309: \$? = $ac_status" >&5 19310 (exit $ac_status); } && 19311 { (eval echo "$as_me:19311: \"test -s conftest.$ac_objext\"") >&5 19312 (eval test -s conftest.$ac_objext) 2>&5 19313 ac_status=$? 19314 echo "$as_me:19314: \$? = $ac_status" >&5 19315 (exit $ac_status); }; then 19316 ac_cv_type_struct_utmp_ut_pid=yes 19317else 19318 echo "$as_me: failed program was:" >&5 19319cat conftest.$ac_ext >&5 19320ac_cv_type_struct_utmp_ut_pid=no 19321fi 19322rm -f conftest.$ac_objext conftest.$ac_ext 19323fi 19324echo "$as_me:19324: result: $ac_cv_type_struct_utmp_ut_pid" >&5 19325echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6 19326if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then 19327 19328cat >>confdefs.h <<\EOF 19329#define HAVE_STRUCT_UTMP_UT_PID 1 19330EOF 19331 19332fi 19333 19334echo "$as_me:19334: checking for ut_type in struct utmp" >&5 19335echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6 19336if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then 19337 echo $ECHO_N "(cached) $ECHO_C" >&6 19338else 19339 19340cat >conftest.$ac_ext <<_ACEOF 19341#line 19341 "configure" 19342#include "confdefs.h" 19343#include <utmp.h> 19344int 19345main () 19346{ 19347struct utmp x; x.ut_type; 19348 ; 19349 return 0; 19350} 19351_ACEOF 19352rm -f conftest.$ac_objext 19353if { (eval echo "$as_me:19353: \"$ac_compile\"") >&5 19354 (eval $ac_compile) 2>&5 19355 ac_status=$? 19356 echo "$as_me:19356: \$? = $ac_status" >&5 19357 (exit $ac_status); } && 19358 { (eval echo "$as_me:19358: \"test -s conftest.$ac_objext\"") >&5 19359 (eval test -s conftest.$ac_objext) 2>&5 19360 ac_status=$? 19361 echo "$as_me:19361: \$? = $ac_status" >&5 19362 (exit $ac_status); }; then 19363 ac_cv_type_struct_utmp_ut_type=yes 19364else 19365 echo "$as_me: failed program was:" >&5 19366cat conftest.$ac_ext >&5 19367ac_cv_type_struct_utmp_ut_type=no 19368fi 19369rm -f conftest.$ac_objext conftest.$ac_ext 19370fi 19371echo "$as_me:19371: result: $ac_cv_type_struct_utmp_ut_type" >&5 19372echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6 19373if test "$ac_cv_type_struct_utmp_ut_type" = yes; then 19374 19375cat >>confdefs.h <<\EOF 19376#define HAVE_STRUCT_UTMP_UT_TYPE 1 19377EOF 19378 19379fi 19380 19381echo "$as_me:19381: checking for ut_user in struct utmp" >&5 19382echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6 19383if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then 19384 echo $ECHO_N "(cached) $ECHO_C" >&6 19385else 19386 19387cat >conftest.$ac_ext <<_ACEOF 19388#line 19388 "configure" 19389#include "confdefs.h" 19390#include <utmp.h> 19391int 19392main () 19393{ 19394struct utmp x; x.ut_user; 19395 ; 19396 return 0; 19397} 19398_ACEOF 19399rm -f conftest.$ac_objext 19400if { (eval echo "$as_me:19400: \"$ac_compile\"") >&5 19401 (eval $ac_compile) 2>&5 19402 ac_status=$? 19403 echo "$as_me:19403: \$? = $ac_status" >&5 19404 (exit $ac_status); } && 19405 { (eval echo "$as_me:19405: \"test -s conftest.$ac_objext\"") >&5 19406 (eval test -s conftest.$ac_objext) 2>&5 19407 ac_status=$? 19408 echo "$as_me:19408: \$? = $ac_status" >&5 19409 (exit $ac_status); }; then 19410 ac_cv_type_struct_utmp_ut_user=yes 19411else 19412 echo "$as_me: failed program was:" >&5 19413cat conftest.$ac_ext >&5 19414ac_cv_type_struct_utmp_ut_user=no 19415fi 19416rm -f conftest.$ac_objext conftest.$ac_ext 19417fi 19418echo "$as_me:19418: result: $ac_cv_type_struct_utmp_ut_user" >&5 19419echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6 19420if test "$ac_cv_type_struct_utmp_ut_user" = yes; then 19421 19422cat >>confdefs.h <<\EOF 19423#define HAVE_STRUCT_UTMP_UT_USER 1 19424EOF 19425 19426fi 19427 19428echo "$as_me:19428: checking for ut_exit in struct utmpx" >&5 19429echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6 19430if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then 19431 echo $ECHO_N "(cached) $ECHO_C" >&6 19432else 19433 19434cat >conftest.$ac_ext <<_ACEOF 19435#line 19435 "configure" 19436#include "confdefs.h" 19437#include <utmpx.h> 19438int 19439main () 19440{ 19441struct utmpx x; x.ut_exit; 19442 ; 19443 return 0; 19444} 19445_ACEOF 19446rm -f conftest.$ac_objext 19447if { (eval echo "$as_me:19447: \"$ac_compile\"") >&5 19448 (eval $ac_compile) 2>&5 19449 ac_status=$? 19450 echo "$as_me:19450: \$? = $ac_status" >&5 19451 (exit $ac_status); } && 19452 { (eval echo "$as_me:19452: \"test -s conftest.$ac_objext\"") >&5 19453 (eval test -s conftest.$ac_objext) 2>&5 19454 ac_status=$? 19455 echo "$as_me:19455: \$? = $ac_status" >&5 19456 (exit $ac_status); }; then 19457 ac_cv_type_struct_utmpx_ut_exit=yes 19458else 19459 echo "$as_me: failed program was:" >&5 19460cat conftest.$ac_ext >&5 19461ac_cv_type_struct_utmpx_ut_exit=no 19462fi 19463rm -f conftest.$ac_objext conftest.$ac_ext 19464fi 19465echo "$as_me:19465: result: $ac_cv_type_struct_utmpx_ut_exit" >&5 19466echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6 19467if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then 19468 19469cat >>confdefs.h <<\EOF 19470#define HAVE_STRUCT_UTMPX_UT_EXIT 1 19471EOF 19472 19473fi 19474 19475echo "$as_me:19475: checking for ut_syslen in struct utmpx" >&5 19476echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6 19477if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then 19478 echo $ECHO_N "(cached) $ECHO_C" >&6 19479else 19480 19481cat >conftest.$ac_ext <<_ACEOF 19482#line 19482 "configure" 19483#include "confdefs.h" 19484#include <utmpx.h> 19485int 19486main () 19487{ 19488struct utmpx x; x.ut_syslen; 19489 ; 19490 return 0; 19491} 19492_ACEOF 19493rm -f conftest.$ac_objext 19494if { (eval echo "$as_me:19494: \"$ac_compile\"") >&5 19495 (eval $ac_compile) 2>&5 19496 ac_status=$? 19497 echo "$as_me:19497: \$? = $ac_status" >&5 19498 (exit $ac_status); } && 19499 { (eval echo "$as_me:19499: \"test -s conftest.$ac_objext\"") >&5 19500 (eval test -s conftest.$ac_objext) 2>&5 19501 ac_status=$? 19502 echo "$as_me:19502: \$? = $ac_status" >&5 19503 (exit $ac_status); }; then 19504 ac_cv_type_struct_utmpx_ut_syslen=yes 19505else 19506 echo "$as_me: failed program was:" >&5 19507cat conftest.$ac_ext >&5 19508ac_cv_type_struct_utmpx_ut_syslen=no 19509fi 19510rm -f conftest.$ac_objext conftest.$ac_ext 19511fi 19512echo "$as_me:19512: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5 19513echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6 19514if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then 19515 19516cat >>confdefs.h <<\EOF 19517#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1 19518EOF 19519 19520fi 19521 19522echo "$as_me:19522: checking for tm_gmtoff in struct tm" >&5 19523echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 19524if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then 19525 echo $ECHO_N "(cached) $ECHO_C" >&6 19526else 19527 19528cat >conftest.$ac_ext <<_ACEOF 19529#line 19529 "configure" 19530#include "confdefs.h" 19531#include <time.h> 19532int 19533main () 19534{ 19535struct tm x; x.tm_gmtoff; 19536 ; 19537 return 0; 19538} 19539_ACEOF 19540rm -f conftest.$ac_objext 19541if { (eval echo "$as_me:19541: \"$ac_compile\"") >&5 19542 (eval $ac_compile) 2>&5 19543 ac_status=$? 19544 echo "$as_me:19544: \$? = $ac_status" >&5 19545 (exit $ac_status); } && 19546 { (eval echo "$as_me:19546: \"test -s conftest.$ac_objext\"") >&5 19547 (eval test -s conftest.$ac_objext) 2>&5 19548 ac_status=$? 19549 echo "$as_me:19549: \$? = $ac_status" >&5 19550 (exit $ac_status); }; then 19551 ac_cv_type_struct_tm_tm_gmtoff=yes 19552else 19553 echo "$as_me: failed program was:" >&5 19554cat conftest.$ac_ext >&5 19555ac_cv_type_struct_tm_tm_gmtoff=no 19556fi 19557rm -f conftest.$ac_objext conftest.$ac_ext 19558fi 19559echo "$as_me:19559: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5 19560echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6 19561if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then 19562 19563cat >>confdefs.h <<\EOF 19564#define HAVE_STRUCT_TM_TM_GMTOFF 1 19565EOF 19566 19567fi 19568 19569echo "$as_me:19569: checking for tm_zone in struct tm" >&5 19570echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6 19571if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then 19572 echo $ECHO_N "(cached) $ECHO_C" >&6 19573else 19574 19575cat >conftest.$ac_ext <<_ACEOF 19576#line 19576 "configure" 19577#include "confdefs.h" 19578#include <time.h> 19579int 19580main () 19581{ 19582struct tm x; x.tm_zone; 19583 ; 19584 return 0; 19585} 19586_ACEOF 19587rm -f conftest.$ac_objext 19588if { (eval echo "$as_me:19588: \"$ac_compile\"") >&5 19589 (eval $ac_compile) 2>&5 19590 ac_status=$? 19591 echo "$as_me:19591: \$? = $ac_status" >&5 19592 (exit $ac_status); } && 19593 { (eval echo "$as_me:19593: \"test -s conftest.$ac_objext\"") >&5 19594 (eval test -s conftest.$ac_objext) 2>&5 19595 ac_status=$? 19596 echo "$as_me:19596: \$? = $ac_status" >&5 19597 (exit $ac_status); }; then 19598 ac_cv_type_struct_tm_tm_zone=yes 19599else 19600 echo "$as_me: failed program was:" >&5 19601cat conftest.$ac_ext >&5 19602ac_cv_type_struct_tm_tm_zone=no 19603fi 19604rm -f conftest.$ac_objext conftest.$ac_ext 19605fi 19606echo "$as_me:19606: result: $ac_cv_type_struct_tm_tm_zone" >&5 19607echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6 19608if test "$ac_cv_type_struct_tm_tm_zone" = yes; then 19609 19610cat >>confdefs.h <<\EOF 19611#define HAVE_STRUCT_TM_TM_ZONE 1 19612EOF 19613 19614fi 19615 19616echo "$as_me:19616: checking for timezone" >&5 19617echo $ECHO_N "checking for timezone... $ECHO_C" >&6 19618if test "${ac_cv_var_timezone+set}" = set; then 19619 echo $ECHO_N "(cached) $ECHO_C" >&6 19620else 19621 19622cat >conftest.$ac_ext <<_ACEOF 19623#line 19623 "configure" 19624#include "confdefs.h" 19625extern int timezone; 19626int foo() { return timezone; } 19627int 19628main () 19629{ 19630foo() 19631 ; 19632 return 0; 19633} 19634_ACEOF 19635rm -f conftest.$ac_objext conftest$ac_exeext 19636if { (eval echo "$as_me:19636: \"$ac_link\"") >&5 19637 (eval $ac_link) 2>&5 19638 ac_status=$? 19639 echo "$as_me:19639: \$? = $ac_status" >&5 19640 (exit $ac_status); } && 19641 { (eval echo "$as_me:19641: \"test -s conftest$ac_exeext\"") >&5 19642 (eval test -s conftest$ac_exeext) 2>&5 19643 ac_status=$? 19644 echo "$as_me:19644: \$? = $ac_status" >&5 19645 (exit $ac_status); }; then 19646 ac_cv_var_timezone=yes 19647else 19648 echo "$as_me: failed program was:" >&5 19649cat conftest.$ac_ext >&5 19650ac_cv_var_timezone=no 19651fi 19652rm -f conftest$ac_exeext conftest.$ac_ext 19653 19654fi 19655 19656ac_foo=`eval echo \\$ac_cv_var_timezone` 19657echo "$as_me:19657: result: $ac_foo" >&5 19658echo "${ECHO_T}$ac_foo" >&6 19659if test "$ac_foo" = yes; then 19660 19661cat >>confdefs.h <<EOF 19662#define HAVE_TIMEZONE 1 19663EOF 19664 19665echo "$as_me:19665: checking if timezone is properly declared" >&5 19666echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6 19667if test "${ac_cv_var_timezone_declaration+set}" = set; then 19668 echo $ECHO_N "(cached) $ECHO_C" >&6 19669else 19670 19671cat >conftest.$ac_ext <<_ACEOF 19672#line 19672 "configure" 19673#include "confdefs.h" 19674#include <time.h> 19675extern struct { int foo; } timezone; 19676int 19677main () 19678{ 19679timezone.foo = 1; 19680 ; 19681 return 0; 19682} 19683_ACEOF 19684rm -f conftest.$ac_objext 19685if { (eval echo "$as_me:19685: \"$ac_compile\"") >&5 19686 (eval $ac_compile) 2>&5 19687 ac_status=$? 19688 echo "$as_me:19688: \$? = $ac_status" >&5 19689 (exit $ac_status); } && 19690 { (eval echo "$as_me:19690: \"test -s conftest.$ac_objext\"") >&5 19691 (eval test -s conftest.$ac_objext) 2>&5 19692 ac_status=$? 19693 echo "$as_me:19693: \$? = $ac_status" >&5 19694 (exit $ac_status); }; then 19695 eval "ac_cv_var_timezone_declaration=no" 19696else 19697 echo "$as_me: failed program was:" >&5 19698cat conftest.$ac_ext >&5 19699eval "ac_cv_var_timezone_declaration=yes" 19700fi 19701rm -f conftest.$ac_objext conftest.$ac_ext 19702 19703fi 19704 19705echo "$as_me:19705: result: $ac_cv_var_timezone_declaration" >&5 19706echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6 19707if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then 19708 19709cat >>confdefs.h <<\EOF 19710#define HAVE_TIMEZONE_DECLARATION 1 19711EOF 19712 19713fi 19714 19715fi 19716 19717cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'` 19718echo "$as_me:19718: checking for sa_family_t" >&5 19719echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 19720if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 19721 echo $ECHO_N "(cached) $ECHO_C" >&6 19722else 19723 cat >conftest.$ac_ext <<_ACEOF 19724#line 19724 "configure" 19725#include "confdefs.h" 19726#include <sys/types.h> 19727#if STDC_HEADERS 19728#include <stdlib.h> 19729#include <stddef.h> 19730#endif 19731#include <sys/socket.h> 19732int 19733main () 19734{ 19735sa_family_t foo; 19736 ; 19737 return 0; 19738} 19739_ACEOF 19740rm -f conftest.$ac_objext 19741if { (eval echo "$as_me:19741: \"$ac_compile\"") >&5 19742 (eval $ac_compile) 2>&5 19743 ac_status=$? 19744 echo "$as_me:19744: \$? = $ac_status" >&5 19745 (exit $ac_status); } && 19746 { (eval echo "$as_me:19746: \"test -s conftest.$ac_objext\"") >&5 19747 (eval test -s conftest.$ac_objext) 2>&5 19748 ac_status=$? 19749 echo "$as_me:19749: \$? = $ac_status" >&5 19750 (exit $ac_status); }; then 19751 eval "ac_cv_type_$cv=yes" 19752else 19753 echo "$as_me: failed program was:" >&5 19754cat conftest.$ac_ext >&5 19755eval "ac_cv_type_$cv=no" 19756fi 19757rm -f conftest.$ac_objext conftest.$ac_ext 19758fi 19759ac_foo=`eval echo \\$ac_cv_type_$cv` 19760echo "$as_me:19760: result: $ac_foo" >&5 19761echo "${ECHO_T}$ac_foo" >&6 19762if test "$ac_foo" = yes; then 19763 ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 19764if false; then 19765 echo "$as_me:19765: checking for sa_family_t" >&5 19766echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 19767if test "${ac_cv_type_sa_family_t+set}" = set; then 19768 echo $ECHO_N "(cached) $ECHO_C" >&6 19769else 19770 cat >conftest.$ac_ext <<_ACEOF 19771#line 19771 "configure" 19772#include "confdefs.h" 19773$ac_includes_default 19774int 19775main () 19776{ 19777if ((sa_family_t *) 0) 19778 return 0; 19779if (sizeof (sa_family_t)) 19780 return 0; 19781 ; 19782 return 0; 19783} 19784_ACEOF 19785rm -f conftest.$ac_objext 19786if { (eval echo "$as_me:19786: \"$ac_compile\"") >&5 19787 (eval $ac_compile) 2>&5 19788 ac_status=$? 19789 echo "$as_me:19789: \$? = $ac_status" >&5 19790 (exit $ac_status); } && 19791 { (eval echo "$as_me:19791: \"test -s conftest.$ac_objext\"") >&5 19792 (eval test -s conftest.$ac_objext) 2>&5 19793 ac_status=$? 19794 echo "$as_me:19794: \$? = $ac_status" >&5 19795 (exit $ac_status); }; then 19796 ac_cv_type_sa_family_t=yes 19797else 19798 echo "$as_me: failed program was:" >&5 19799cat conftest.$ac_ext >&5 19800ac_cv_type_sa_family_t=no 19801fi 19802rm -f conftest.$ac_objext conftest.$ac_ext 19803fi 19804echo "$as_me:19804: result: $ac_cv_type_sa_family_t" >&5 19805echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6 19806if test $ac_cv_type_sa_family_t = yes; then 19807 19808cat >>confdefs.h <<EOF 19809#define HAVE_SA_FAMILY_T 1 19810EOF 19811 19812fi 19813 19814fi 19815 19816cat >>confdefs.h <<EOF 19817#define $ac_tr_hdr 1 19818EOF 19819 19820fi 19821 19822cv=`echo "socklen_t" | sed 'y%./+- %__p__%'` 19823echo "$as_me:19823: checking for socklen_t" >&5 19824echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 19825if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 19826 echo $ECHO_N "(cached) $ECHO_C" >&6 19827else 19828 cat >conftest.$ac_ext <<_ACEOF 19829#line 19829 "configure" 19830#include "confdefs.h" 19831#include <sys/types.h> 19832#if STDC_HEADERS 19833#include <stdlib.h> 19834#include <stddef.h> 19835#endif 19836#include <sys/socket.h> 19837int 19838main () 19839{ 19840socklen_t foo; 19841 ; 19842 return 0; 19843} 19844_ACEOF 19845rm -f conftest.$ac_objext 19846if { (eval echo "$as_me:19846: \"$ac_compile\"") >&5 19847 (eval $ac_compile) 2>&5 19848 ac_status=$? 19849 echo "$as_me:19849: \$? = $ac_status" >&5 19850 (exit $ac_status); } && 19851 { (eval echo "$as_me:19851: \"test -s conftest.$ac_objext\"") >&5 19852 (eval test -s conftest.$ac_objext) 2>&5 19853 ac_status=$? 19854 echo "$as_me:19854: \$? = $ac_status" >&5 19855 (exit $ac_status); }; then 19856 eval "ac_cv_type_$cv=yes" 19857else 19858 echo "$as_me: failed program was:" >&5 19859cat conftest.$ac_ext >&5 19860eval "ac_cv_type_$cv=no" 19861fi 19862rm -f conftest.$ac_objext conftest.$ac_ext 19863fi 19864ac_foo=`eval echo \\$ac_cv_type_$cv` 19865echo "$as_me:19865: result: $ac_foo" >&5 19866echo "${ECHO_T}$ac_foo" >&6 19867if test "$ac_foo" = yes; then 19868 ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 19869if false; then 19870 echo "$as_me:19870: checking for socklen_t" >&5 19871echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 19872if test "${ac_cv_type_socklen_t+set}" = set; then 19873 echo $ECHO_N "(cached) $ECHO_C" >&6 19874else 19875 cat >conftest.$ac_ext <<_ACEOF 19876#line 19876 "configure" 19877#include "confdefs.h" 19878$ac_includes_default 19879int 19880main () 19881{ 19882if ((socklen_t *) 0) 19883 return 0; 19884if (sizeof (socklen_t)) 19885 return 0; 19886 ; 19887 return 0; 19888} 19889_ACEOF 19890rm -f conftest.$ac_objext 19891if { (eval echo "$as_me:19891: \"$ac_compile\"") >&5 19892 (eval $ac_compile) 2>&5 19893 ac_status=$? 19894 echo "$as_me:19894: \$? = $ac_status" >&5 19895 (exit $ac_status); } && 19896 { (eval echo "$as_me:19896: \"test -s conftest.$ac_objext\"") >&5 19897 (eval test -s conftest.$ac_objext) 2>&5 19898 ac_status=$? 19899 echo "$as_me:19899: \$? = $ac_status" >&5 19900 (exit $ac_status); }; then 19901 ac_cv_type_socklen_t=yes 19902else 19903 echo "$as_me: failed program was:" >&5 19904cat conftest.$ac_ext >&5 19905ac_cv_type_socklen_t=no 19906fi 19907rm -f conftest.$ac_objext conftest.$ac_ext 19908fi 19909echo "$as_me:19909: result: $ac_cv_type_socklen_t" >&5 19910echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 19911if test $ac_cv_type_socklen_t = yes; then 19912 19913cat >>confdefs.h <<EOF 19914#define HAVE_SOCKLEN_T 1 19915EOF 19916 19917fi 19918 19919fi 19920 19921cat >>confdefs.h <<EOF 19922#define $ac_tr_hdr 1 19923EOF 19924 19925fi 19926 19927cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'` 19928echo "$as_me:19928: checking for struct sockaddr" >&5 19929echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6 19930if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 19931 echo $ECHO_N "(cached) $ECHO_C" >&6 19932else 19933 cat >conftest.$ac_ext <<_ACEOF 19934#line 19934 "configure" 19935#include "confdefs.h" 19936#include <sys/types.h> 19937#if STDC_HEADERS 19938#include <stdlib.h> 19939#include <stddef.h> 19940#endif 19941#include <sys/socket.h> 19942int 19943main () 19944{ 19945struct sockaddr foo; 19946 ; 19947 return 0; 19948} 19949_ACEOF 19950rm -f conftest.$ac_objext 19951if { (eval echo "$as_me:19951: \"$ac_compile\"") >&5 19952 (eval $ac_compile) 2>&5 19953 ac_status=$? 19954 echo "$as_me:19954: \$? = $ac_status" >&5 19955 (exit $ac_status); } && 19956 { (eval echo "$as_me:19956: \"test -s conftest.$ac_objext\"") >&5 19957 (eval test -s conftest.$ac_objext) 2>&5 19958 ac_status=$? 19959 echo "$as_me:19959: \$? = $ac_status" >&5 19960 (exit $ac_status); }; then 19961 eval "ac_cv_type_$cv=yes" 19962else 19963 echo "$as_me: failed program was:" >&5 19964cat conftest.$ac_ext >&5 19965eval "ac_cv_type_$cv=no" 19966fi 19967rm -f conftest.$ac_objext conftest.$ac_ext 19968fi 19969ac_foo=`eval echo \\$ac_cv_type_$cv` 19970echo "$as_me:19970: result: $ac_foo" >&5 19971echo "${ECHO_T}$ac_foo" >&6 19972if test "$ac_foo" = yes; then 19973 ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 19974if false; then 19975 echo "$as_me:19975: checking for struct sockaddr" >&5 19976echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6 19977if test "${ac_cv_type_struct_sockaddr+set}" = set; then 19978 echo $ECHO_N "(cached) $ECHO_C" >&6 19979else 19980 cat >conftest.$ac_ext <<_ACEOF 19981#line 19981 "configure" 19982#include "confdefs.h" 19983$ac_includes_default 19984int 19985main () 19986{ 19987if ((struct sockaddr *) 0) 19988 return 0; 19989if (sizeof (struct sockaddr)) 19990 return 0; 19991 ; 19992 return 0; 19993} 19994_ACEOF 19995rm -f conftest.$ac_objext 19996if { (eval echo "$as_me:19996: \"$ac_compile\"") >&5 19997 (eval $ac_compile) 2>&5 19998 ac_status=$? 19999 echo "$as_me:19999: \$? = $ac_status" >&5 20000 (exit $ac_status); } && 20001 { (eval echo "$as_me:20001: \"test -s conftest.$ac_objext\"") >&5 20002 (eval test -s conftest.$ac_objext) 2>&5 20003 ac_status=$? 20004 echo "$as_me:20004: \$? = $ac_status" >&5 20005 (exit $ac_status); }; then 20006 ac_cv_type_struct_sockaddr=yes 20007else 20008 echo "$as_me: failed program was:" >&5 20009cat conftest.$ac_ext >&5 20010ac_cv_type_struct_sockaddr=no 20011fi 20012rm -f conftest.$ac_objext conftest.$ac_ext 20013fi 20014echo "$as_me:20014: result: $ac_cv_type_struct_sockaddr" >&5 20015echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6 20016if test $ac_cv_type_struct_sockaddr = yes; then 20017 20018cat >>confdefs.h <<EOF 20019#define HAVE_STRUCT_SOCKADDR 1 20020EOF 20021 20022fi 20023 20024fi 20025 20026cat >>confdefs.h <<EOF 20027#define $ac_tr_hdr 1 20028EOF 20029 20030fi 20031 20032cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'` 20033echo "$as_me:20033: checking for struct sockaddr_storage" >&5 20034echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 20035if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 20036 echo $ECHO_N "(cached) $ECHO_C" >&6 20037else 20038 cat >conftest.$ac_ext <<_ACEOF 20039#line 20039 "configure" 20040#include "confdefs.h" 20041#include <sys/types.h> 20042#if STDC_HEADERS 20043#include <stdlib.h> 20044#include <stddef.h> 20045#endif 20046#include <sys/socket.h> 20047int 20048main () 20049{ 20050struct sockaddr_storage foo; 20051 ; 20052 return 0; 20053} 20054_ACEOF 20055rm -f conftest.$ac_objext 20056if { (eval echo "$as_me:20056: \"$ac_compile\"") >&5 20057 (eval $ac_compile) 2>&5 20058 ac_status=$? 20059 echo "$as_me:20059: \$? = $ac_status" >&5 20060 (exit $ac_status); } && 20061 { (eval echo "$as_me:20061: \"test -s conftest.$ac_objext\"") >&5 20062 (eval test -s conftest.$ac_objext) 2>&5 20063 ac_status=$? 20064 echo "$as_me:20064: \$? = $ac_status" >&5 20065 (exit $ac_status); }; then 20066 eval "ac_cv_type_$cv=yes" 20067else 20068 echo "$as_me: failed program was:" >&5 20069cat conftest.$ac_ext >&5 20070eval "ac_cv_type_$cv=no" 20071fi 20072rm -f conftest.$ac_objext conftest.$ac_ext 20073fi 20074ac_foo=`eval echo \\$ac_cv_type_$cv` 20075echo "$as_me:20075: result: $ac_foo" >&5 20076echo "${ECHO_T}$ac_foo" >&6 20077if test "$ac_foo" = yes; then 20078 ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 20079if false; then 20080 echo "$as_me:20080: checking for struct sockaddr_storage" >&5 20081echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 20082if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then 20083 echo $ECHO_N "(cached) $ECHO_C" >&6 20084else 20085 cat >conftest.$ac_ext <<_ACEOF 20086#line 20086 "configure" 20087#include "confdefs.h" 20088$ac_includes_default 20089int 20090main () 20091{ 20092if ((struct sockaddr_storage *) 0) 20093 return 0; 20094if (sizeof (struct sockaddr_storage)) 20095 return 0; 20096 ; 20097 return 0; 20098} 20099_ACEOF 20100rm -f conftest.$ac_objext 20101if { (eval echo "$as_me:20101: \"$ac_compile\"") >&5 20102 (eval $ac_compile) 2>&5 20103 ac_status=$? 20104 echo "$as_me:20104: \$? = $ac_status" >&5 20105 (exit $ac_status); } && 20106 { (eval echo "$as_me:20106: \"test -s conftest.$ac_objext\"") >&5 20107 (eval test -s conftest.$ac_objext) 2>&5 20108 ac_status=$? 20109 echo "$as_me:20109: \$? = $ac_status" >&5 20110 (exit $ac_status); }; then 20111 ac_cv_type_struct_sockaddr_storage=yes 20112else 20113 echo "$as_me: failed program was:" >&5 20114cat conftest.$ac_ext >&5 20115ac_cv_type_struct_sockaddr_storage=no 20116fi 20117rm -f conftest.$ac_objext conftest.$ac_ext 20118fi 20119echo "$as_me:20119: result: $ac_cv_type_struct_sockaddr_storage" >&5 20120echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6 20121if test $ac_cv_type_struct_sockaddr_storage = yes; then 20122 20123cat >>confdefs.h <<EOF 20124#define HAVE_STRUCT_SOCKADDR_STORAGE 1 20125EOF 20126 20127fi 20128 20129fi 20130 20131cat >>confdefs.h <<EOF 20132#define $ac_tr_hdr 1 20133EOF 20134 20135fi 20136 20137cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'` 20138echo "$as_me:20138: checking for struct addrinfo" >&5 20139echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 20140if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 20141 echo $ECHO_N "(cached) $ECHO_C" >&6 20142else 20143 cat >conftest.$ac_ext <<_ACEOF 20144#line 20144 "configure" 20145#include "confdefs.h" 20146#include <sys/types.h> 20147#if STDC_HEADERS 20148#include <stdlib.h> 20149#include <stddef.h> 20150#endif 20151#include <netdb.h> 20152int 20153main () 20154{ 20155struct addrinfo foo; 20156 ; 20157 return 0; 20158} 20159_ACEOF 20160rm -f conftest.$ac_objext 20161if { (eval echo "$as_me:20161: \"$ac_compile\"") >&5 20162 (eval $ac_compile) 2>&5 20163 ac_status=$? 20164 echo "$as_me:20164: \$? = $ac_status" >&5 20165 (exit $ac_status); } && 20166 { (eval echo "$as_me:20166: \"test -s conftest.$ac_objext\"") >&5 20167 (eval test -s conftest.$ac_objext) 2>&5 20168 ac_status=$? 20169 echo "$as_me:20169: \$? = $ac_status" >&5 20170 (exit $ac_status); }; then 20171 eval "ac_cv_type_$cv=yes" 20172else 20173 echo "$as_me: failed program was:" >&5 20174cat conftest.$ac_ext >&5 20175eval "ac_cv_type_$cv=no" 20176fi 20177rm -f conftest.$ac_objext conftest.$ac_ext 20178fi 20179ac_foo=`eval echo \\$ac_cv_type_$cv` 20180echo "$as_me:20180: result: $ac_foo" >&5 20181echo "${ECHO_T}$ac_foo" >&6 20182if test "$ac_foo" = yes; then 20183 ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 20184if false; then 20185 echo "$as_me:20185: checking for struct addrinfo" >&5 20186echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 20187if test "${ac_cv_type_struct_addrinfo+set}" = set; then 20188 echo $ECHO_N "(cached) $ECHO_C" >&6 20189else 20190 cat >conftest.$ac_ext <<_ACEOF 20191#line 20191 "configure" 20192#include "confdefs.h" 20193$ac_includes_default 20194int 20195main () 20196{ 20197if ((struct addrinfo *) 0) 20198 return 0; 20199if (sizeof (struct addrinfo)) 20200 return 0; 20201 ; 20202 return 0; 20203} 20204_ACEOF 20205rm -f conftest.$ac_objext 20206if { (eval echo "$as_me:20206: \"$ac_compile\"") >&5 20207 (eval $ac_compile) 2>&5 20208 ac_status=$? 20209 echo "$as_me:20209: \$? = $ac_status" >&5 20210 (exit $ac_status); } && 20211 { (eval echo "$as_me:20211: \"test -s conftest.$ac_objext\"") >&5 20212 (eval test -s conftest.$ac_objext) 2>&5 20213 ac_status=$? 20214 echo "$as_me:20214: \$? = $ac_status" >&5 20215 (exit $ac_status); }; then 20216 ac_cv_type_struct_addrinfo=yes 20217else 20218 echo "$as_me: failed program was:" >&5 20219cat conftest.$ac_ext >&5 20220ac_cv_type_struct_addrinfo=no 20221fi 20222rm -f conftest.$ac_objext conftest.$ac_ext 20223fi 20224echo "$as_me:20224: result: $ac_cv_type_struct_addrinfo" >&5 20225echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6 20226if test $ac_cv_type_struct_addrinfo = yes; then 20227 20228cat >>confdefs.h <<EOF 20229#define HAVE_STRUCT_ADDRINFO 1 20230EOF 20231 20232fi 20233 20234fi 20235 20236cat >>confdefs.h <<EOF 20237#define $ac_tr_hdr 1 20238EOF 20239 20240fi 20241 20242echo "$as_me:20242: checking for struct winsize" >&5 20243echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6 20244if test "${ac_cv_struct_winsize+set}" = set; then 20245 echo $ECHO_N "(cached) $ECHO_C" >&6 20246else 20247 20248ac_cv_struct_winsize=no 20249for i in sys/termios.h sys/ioctl.h; do 20250cat >conftest.$ac_ext <<_ACEOF 20251#line 20251 "configure" 20252#include "confdefs.h" 20253#include <$i> 20254 20255_ACEOF 20256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20257 egrep "struct[ ]*winsize" >/dev/null 2>&1; then 20258 ac_cv_struct_winsize=yes; break 20259fi 20260rm -f conftest* 20261done 20262 20263fi 20264 20265if test "$ac_cv_struct_winsize" = "yes"; then 20266 20267cat >>confdefs.h <<\EOF 20268#define HAVE_STRUCT_WINSIZE 1 20269EOF 20270 20271fi 20272echo "$as_me:20272: result: $ac_cv_struct_winsize" >&5 20273echo "${ECHO_T}$ac_cv_struct_winsize" >&6 20274cat >conftest.$ac_ext <<_ACEOF 20275#line 20275 "configure" 20276#include "confdefs.h" 20277#include <termios.h> 20278 20279_ACEOF 20280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20281 egrep "ws_xpixel" >/dev/null 2>&1; then 20282 20283cat >>confdefs.h <<\EOF 20284#define HAVE_WS_XPIXEL 1 20285EOF 20286 20287fi 20288rm -f conftest* 20289 20290cat >conftest.$ac_ext <<_ACEOF 20291#line 20291 "configure" 20292#include "confdefs.h" 20293#include <termios.h> 20294 20295_ACEOF 20296if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20297 egrep "ws_ypixel" >/dev/null 2>&1; then 20298 20299cat >>confdefs.h <<\EOF 20300#define HAVE_WS_YPIXEL 1 20301EOF 20302 20303fi 20304rm -f conftest* 20305 20306echo "$as_me:20306: checking for struct spwd" >&5 20307echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6 20308if test "${ac_cv_struct_spwd+set}" = set; then 20309 echo $ECHO_N "(cached) $ECHO_C" >&6 20310else 20311 20312cat >conftest.$ac_ext <<_ACEOF 20313#line 20313 "configure" 20314#include "confdefs.h" 20315#include <pwd.h> 20316#ifdef HAVE_SHADOW_H 20317#include <shadow.h> 20318#endif 20319int 20320main () 20321{ 20322struct spwd foo; 20323 ; 20324 return 0; 20325} 20326_ACEOF 20327rm -f conftest.$ac_objext 20328if { (eval echo "$as_me:20328: \"$ac_compile\"") >&5 20329 (eval $ac_compile) 2>&5 20330 ac_status=$? 20331 echo "$as_me:20331: \$? = $ac_status" >&5 20332 (exit $ac_status); } && 20333 { (eval echo "$as_me:20333: \"test -s conftest.$ac_objext\"") >&5 20334 (eval test -s conftest.$ac_objext) 2>&5 20335 ac_status=$? 20336 echo "$as_me:20336: \$? = $ac_status" >&5 20337 (exit $ac_status); }; then 20338 ac_cv_struct_spwd=yes 20339else 20340 echo "$as_me: failed program was:" >&5 20341cat conftest.$ac_ext >&5 20342ac_cv_struct_spwd=no 20343fi 20344rm -f conftest.$ac_objext conftest.$ac_ext 20345 20346fi 20347 20348echo "$as_me:20348: result: $ac_cv_struct_spwd" >&5 20349echo "${ECHO_T}$ac_cv_struct_spwd" >&6 20350 20351if test "$ac_cv_struct_spwd" = "yes"; then 20352 20353cat >>confdefs.h <<\EOF 20354#define HAVE_STRUCT_SPWD 1 20355EOF 20356 20357fi 20358 20359echo "$as_me:20359: checking for sa_len in struct sockaddr" >&5 20360echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6 20361if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then 20362 echo $ECHO_N "(cached) $ECHO_C" >&6 20363else 20364 20365cat >conftest.$ac_ext <<_ACEOF 20366#line 20366 "configure" 20367#include "confdefs.h" 20368#include <sys/types.h> 20369#include <sys/socket.h> 20370int 20371main () 20372{ 20373struct sockaddr x; x.sa_len; 20374 ; 20375 return 0; 20376} 20377_ACEOF 20378rm -f conftest.$ac_objext 20379if { (eval echo "$as_me:20379: \"$ac_compile\"") >&5 20380 (eval $ac_compile) 2>&5 20381 ac_status=$? 20382 echo "$as_me:20382: \$? = $ac_status" >&5 20383 (exit $ac_status); } && 20384 { (eval echo "$as_me:20384: \"test -s conftest.$ac_objext\"") >&5 20385 (eval test -s conftest.$ac_objext) 2>&5 20386 ac_status=$? 20387 echo "$as_me:20387: \$? = $ac_status" >&5 20388 (exit $ac_status); }; then 20389 ac_cv_type_struct_sockaddr_sa_len=yes 20390else 20391 echo "$as_me: failed program was:" >&5 20392cat conftest.$ac_ext >&5 20393ac_cv_type_struct_sockaddr_sa_len=no 20394fi 20395rm -f conftest.$ac_objext conftest.$ac_ext 20396fi 20397echo "$as_me:20397: result: $ac_cv_type_struct_sockaddr_sa_len" >&5 20398echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6 20399if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then 20400 20401cat >>confdefs.h <<\EOF 20402#define HAVE_STRUCT_SOCKADDR_SA_LEN 1 20403EOF 20404 20405fi 20406 20407for i in int8_t int16_t int32_t int64_t \ 20408 u_int8_t u_int16_t u_int32_t u_int64_t \ 20409 uint8_t uint16_t uint32_t uint64_t; do 20410 echo "$as_me:20410: checking for $i" >&5 20411echo $ECHO_N "checking for $i... $ECHO_C" >&6 20412 20413if eval "test \"\${ac_cv_type_$i+set}\" = set"; then 20414 echo $ECHO_N "(cached) $ECHO_C" >&6 20415else 20416 cat >conftest.$ac_ext <<_ACEOF 20417#line 20417 "configure" 20418#include "confdefs.h" 20419 20420#ifdef HAVE_INTTYPES_H 20421#include <inttypes.h> 20422#endif 20423#ifdef HAVE_SYS_TYPES_H 20424#include <sys/types.h> 20425#endif 20426#ifdef HAVE_SYS_BITYPES_H 20427#include <sys/bitypes.h> 20428#endif 20429#ifdef HAVE_BIND_BITYPES_H 20430#include <bind/bitypes.h> 20431#endif 20432#ifdef HAVE_NETINET_IN6_MACHTYPES_H 20433#include <netinet/in6_machtypes.h> 20434#endif 20435 20436int 20437main () 20438{ 20439$i x; 20440 20441 ; 20442 return 0; 20443} 20444_ACEOF 20445rm -f conftest.$ac_objext 20446if { (eval echo "$as_me:20446: \"$ac_compile\"") >&5 20447 (eval $ac_compile) 2>&5 20448 ac_status=$? 20449 echo "$as_me:20449: \$? = $ac_status" >&5 20450 (exit $ac_status); } && 20451 { (eval echo "$as_me:20451: \"test -s conftest.$ac_objext\"") >&5 20452 (eval test -s conftest.$ac_objext) 2>&5 20453 ac_status=$? 20454 echo "$as_me:20454: \$? = $ac_status" >&5 20455 (exit $ac_status); }; then 20456 eval ac_cv_type_$i=yes 20457else 20458 echo "$as_me: failed program was:" >&5 20459cat conftest.$ac_ext >&5 20460eval ac_cv_type_$i=no 20461fi 20462rm -f conftest.$ac_objext conftest.$ac_ext 20463fi 20464 20465 eval ac_res=\$ac_cv_type_$i 20466 if test "$ac_res" = yes; then 20467 type=HAVE_`echo $i | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 20468 cat >>confdefs.h <<EOF 20469#define $type 1 20470EOF 20471 20472 fi 20473 echo "$as_me:20473: result: $ac_res" >&5 20474echo "${ECHO_T}$ac_res" >&6 20475done 20476 20477for ac_header in \ 20478 openssl/md4.h \ 20479 openssl/md5.h \ 20480 openssl/sha.h \ 20481 openssl/des.h \ 20482 openssl/rc4.h \ 20483 20484do 20485ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 20486echo "$as_me:20486: checking for $ac_header" >&5 20487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 20488if eval "test \"\${$ac_ac_Header+set}\" = set"; then 20489 echo $ECHO_N "(cached) $ECHO_C" >&6 20490else 20491 cat >conftest.$ac_ext <<_ACEOF 20492#line 20492 "configure" 20493#include "confdefs.h" 20494#include <$ac_header> 20495_ACEOF 20496if { (eval echo "$as_me:20496: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 20497 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 20498 ac_status=$? 20499 egrep -v '^ *\+' conftest.er1 >conftest.err 20500 rm -f conftest.er1 20501 cat conftest.err >&5 20502 echo "$as_me:20502: \$? = $ac_status" >&5 20503 (exit $ac_status); }; then 20504 if test -s conftest.err; then 20505 ac_cpp_err=$ac_c_preproc_warn_flag 20506 else 20507 ac_cpp_err= 20508 fi 20509else 20510 ac_cpp_err=yes 20511fi 20512if test -z "$ac_cpp_err"; then 20513 eval "$ac_ac_Header=yes" 20514else 20515 echo "$as_me: failed program was:" >&5 20516 cat conftest.$ac_ext >&5 20517 eval "$ac_ac_Header=no" 20518fi 20519rm -f conftest.err conftest.$ac_ext 20520fi 20521echo "$as_me:20521: result: `eval echo '${'$ac_ac_Header'}'`" >&5 20522echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 20523if test `eval echo '${'$ac_ac_Header'}'` = yes; then 20524 cat >>confdefs.h <<EOF 20525#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 20526EOF 20527 20528fi 20529done 20530 20531echo "$as_me:20531: checking for MD4_Init" >&5 20532echo $ECHO_N "checking for MD4_Init... $ECHO_C" >&6 20533if test "${ac_cv_funclib_MD4_Init+set}" = set; then 20534 echo $ECHO_N "(cached) $ECHO_C" >&6 20535else 20536 20537if eval "test \"\$ac_cv_func_MD4_Init\" != yes" ; then 20538 ac_save_LIBS="$LIBS" 20539 for ac_lib in crypto des; do 20540 if test -n "$ac_lib"; then 20541 ac_lib="-l$ac_lib" 20542 else 20543 ac_lib="" 20544 fi 20545 LIBS="$LIB_krb4 $ac_lib $ac_save_LIBS" 20546 cat >conftest.$ac_ext <<_ACEOF 20547#line 20547 "configure" 20548#include "confdefs.h" 20549 20550int 20551main () 20552{ 20553MD4_Init() 20554 ; 20555 return 0; 20556} 20557_ACEOF 20558rm -f conftest.$ac_objext conftest$ac_exeext 20559if { (eval echo "$as_me:20559: \"$ac_link\"") >&5 20560 (eval $ac_link) 2>&5 20561 ac_status=$? 20562 echo "$as_me:20562: \$? = $ac_status" >&5 20563 (exit $ac_status); } && 20564 { (eval echo "$as_me:20564: \"test -s conftest$ac_exeext\"") >&5 20565 (eval test -s conftest$ac_exeext) 2>&5 20566 ac_status=$? 20567 echo "$as_me:20567: \$? = $ac_status" >&5 20568 (exit $ac_status); }; then 20569 eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD4_Init=$ac_lib; else ac_cv_funclib_MD4_Init=yes; fi";break 20570else 20571 echo "$as_me: failed program was:" >&5 20572cat conftest.$ac_ext >&5 20573fi 20574rm -f conftest$ac_exeext conftest.$ac_ext 20575 done 20576 eval "ac_cv_funclib_MD4_Init=\${ac_cv_funclib_MD4_Init-no}" 20577 LIBS="$ac_save_LIBS" 20578fi 20579 20580fi 20581 20582eval "ac_res=\$ac_cv_funclib_MD4_Init" 20583 20584if false; then 20585 20586for ac_func in MD4_Init 20587do 20588ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 20589echo "$as_me:20589: checking for $ac_func" >&5 20590echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20591if eval "test \"\${$ac_ac_var+set}\" = set"; then 20592 echo $ECHO_N "(cached) $ECHO_C" >&6 20593else 20594 cat >conftest.$ac_ext <<_ACEOF 20595#line 20595 "configure" 20596#include "confdefs.h" 20597/* System header to define __stub macros and hopefully few prototypes, 20598 which can conflict with char $ac_func (); below. */ 20599#include <assert.h> 20600/* Override any gcc2 internal prototype to avoid an error. */ 20601#ifdef __cplusplus 20602extern "C" 20603#endif 20604/* We use char because int might match the return type of a gcc2 20605 builtin and then its argument prototype would still apply. */ 20606char $ac_func (); 20607char (*f) (); 20608 20609int 20610main () 20611{ 20612/* The GNU C library defines this for functions which it implements 20613 to always fail with ENOSYS. Some functions are actually named 20614 something starting with __ and the normal name is an alias. */ 20615#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20616choke me 20617#else 20618f = $ac_func; 20619#endif 20620 20621 ; 20622 return 0; 20623} 20624_ACEOF 20625rm -f conftest.$ac_objext conftest$ac_exeext 20626if { (eval echo "$as_me:20626: \"$ac_link\"") >&5 20627 (eval $ac_link) 2>&5 20628 ac_status=$? 20629 echo "$as_me:20629: \$? = $ac_status" >&5 20630 (exit $ac_status); } && 20631 { (eval echo "$as_me:20631: \"test -s conftest$ac_exeext\"") >&5 20632 (eval test -s conftest$ac_exeext) 2>&5 20633 ac_status=$? 20634 echo "$as_me:20634: \$? = $ac_status" >&5 20635 (exit $ac_status); }; then 20636 eval "$ac_ac_var=yes" 20637else 20638 echo "$as_me: failed program was:" >&5 20639cat conftest.$ac_ext >&5 20640eval "$ac_ac_var=no" 20641fi 20642rm -f conftest$ac_exeext conftest.$ac_ext 20643fi 20644echo "$as_me:20644: result: `eval echo '${'$ac_ac_var'}'`" >&5 20645echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 20646if test `eval echo '${'$ac_ac_var'}'` = yes; then 20647 cat >>confdefs.h <<EOF 20648#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 20649EOF 20650 20651fi 20652done 20653 20654fi 20655# MD4_Init 20656eval "ac_tr_func=HAVE_`echo MD4_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20657eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20658eval "LIB_MD4_Init=$ac_res" 20659 20660case "$ac_res" in 20661 yes) 20662 eval "ac_cv_func_MD4_Init=yes" 20663 eval "LIB_MD4_Init=" 20664 cat >>confdefs.h <<EOF 20665#define $ac_tr_func 1 20666EOF 20667 20668 echo "$as_me:20668: result: yes" >&5 20669echo "${ECHO_T}yes" >&6 20670 ;; 20671 no) 20672 eval "ac_cv_func_MD4_Init=no" 20673 eval "LIB_MD4_Init=" 20674 echo "$as_me:20674: result: no" >&5 20675echo "${ECHO_T}no" >&6 20676 ;; 20677 *) 20678 eval "ac_cv_func_MD4_Init=yes" 20679 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 20680 cat >>confdefs.h <<EOF 20681#define $ac_tr_func 1 20682EOF 20683 20684 cat >>confdefs.h <<EOF 20685#define $ac_tr_lib 1 20686EOF 20687 20688 echo "$as_me:20688: result: yes, in $ac_res" >&5 20689echo "${ECHO_T}yes, in $ac_res" >&6 20690 ;; 20691esac 20692 20693echo "$as_me:20693: checking for MD5_Init" >&5 20694echo $ECHO_N "checking for MD5_Init... $ECHO_C" >&6 20695if test "${ac_cv_funclib_MD5_Init+set}" = set; then 20696 echo $ECHO_N "(cached) $ECHO_C" >&6 20697else 20698 20699if eval "test \"\$ac_cv_func_MD5_Init\" != yes" ; then 20700 ac_save_LIBS="$LIBS" 20701 for ac_lib in crypto des; do 20702 if test -n "$ac_lib"; then 20703 ac_lib="-l$ac_lib" 20704 else 20705 ac_lib="" 20706 fi 20707 LIBS="$LIB_krb4 $ac_lib $ac_save_LIBS" 20708 cat >conftest.$ac_ext <<_ACEOF 20709#line 20709 "configure" 20710#include "confdefs.h" 20711 20712int 20713main () 20714{ 20715MD5_Init() 20716 ; 20717 return 0; 20718} 20719_ACEOF 20720rm -f conftest.$ac_objext conftest$ac_exeext 20721if { (eval echo "$as_me:20721: \"$ac_link\"") >&5 20722 (eval $ac_link) 2>&5 20723 ac_status=$? 20724 echo "$as_me:20724: \$? = $ac_status" >&5 20725 (exit $ac_status); } && 20726 { (eval echo "$as_me:20726: \"test -s conftest$ac_exeext\"") >&5 20727 (eval test -s conftest$ac_exeext) 2>&5 20728 ac_status=$? 20729 echo "$as_me:20729: \$? = $ac_status" >&5 20730 (exit $ac_status); }; then 20731 eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD5_Init=$ac_lib; else ac_cv_funclib_MD5_Init=yes; fi";break 20732else 20733 echo "$as_me: failed program was:" >&5 20734cat conftest.$ac_ext >&5 20735fi 20736rm -f conftest$ac_exeext conftest.$ac_ext 20737 done 20738 eval "ac_cv_funclib_MD5_Init=\${ac_cv_funclib_MD5_Init-no}" 20739 LIBS="$ac_save_LIBS" 20740fi 20741 20742fi 20743 20744eval "ac_res=\$ac_cv_funclib_MD5_Init" 20745 20746if false; then 20747 20748for ac_func in MD5_Init 20749do 20750ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 20751echo "$as_me:20751: checking for $ac_func" >&5 20752echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20753if eval "test \"\${$ac_ac_var+set}\" = set"; then 20754 echo $ECHO_N "(cached) $ECHO_C" >&6 20755else 20756 cat >conftest.$ac_ext <<_ACEOF 20757#line 20757 "configure" 20758#include "confdefs.h" 20759/* System header to define __stub macros and hopefully few prototypes, 20760 which can conflict with char $ac_func (); below. */ 20761#include <assert.h> 20762/* Override any gcc2 internal prototype to avoid an error. */ 20763#ifdef __cplusplus 20764extern "C" 20765#endif 20766/* We use char because int might match the return type of a gcc2 20767 builtin and then its argument prototype would still apply. */ 20768char $ac_func (); 20769char (*f) (); 20770 20771int 20772main () 20773{ 20774/* The GNU C library defines this for functions which it implements 20775 to always fail with ENOSYS. Some functions are actually named 20776 something starting with __ and the normal name is an alias. */ 20777#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20778choke me 20779#else 20780f = $ac_func; 20781#endif 20782 20783 ; 20784 return 0; 20785} 20786_ACEOF 20787rm -f conftest.$ac_objext conftest$ac_exeext 20788if { (eval echo "$as_me:20788: \"$ac_link\"") >&5 20789 (eval $ac_link) 2>&5 20790 ac_status=$? 20791 echo "$as_me:20791: \$? = $ac_status" >&5 20792 (exit $ac_status); } && 20793 { (eval echo "$as_me:20793: \"test -s conftest$ac_exeext\"") >&5 20794 (eval test -s conftest$ac_exeext) 2>&5 20795 ac_status=$? 20796 echo "$as_me:20796: \$? = $ac_status" >&5 20797 (exit $ac_status); }; then 20798 eval "$ac_ac_var=yes" 20799else 20800 echo "$as_me: failed program was:" >&5 20801cat conftest.$ac_ext >&5 20802eval "$ac_ac_var=no" 20803fi 20804rm -f conftest$ac_exeext conftest.$ac_ext 20805fi 20806echo "$as_me:20806: result: `eval echo '${'$ac_ac_var'}'`" >&5 20807echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 20808if test `eval echo '${'$ac_ac_var'}'` = yes; then 20809 cat >>confdefs.h <<EOF 20810#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 20811EOF 20812 20813fi 20814done 20815 20816fi 20817# MD5_Init 20818eval "ac_tr_func=HAVE_`echo MD5_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20819eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20820eval "LIB_MD5_Init=$ac_res" 20821 20822case "$ac_res" in 20823 yes) 20824 eval "ac_cv_func_MD5_Init=yes" 20825 eval "LIB_MD5_Init=" 20826 cat >>confdefs.h <<EOF 20827#define $ac_tr_func 1 20828EOF 20829 20830 echo "$as_me:20830: result: yes" >&5 20831echo "${ECHO_T}yes" >&6 20832 ;; 20833 no) 20834 eval "ac_cv_func_MD5_Init=no" 20835 eval "LIB_MD5_Init=" 20836 echo "$as_me:20836: result: no" >&5 20837echo "${ECHO_T}no" >&6 20838 ;; 20839 *) 20840 eval "ac_cv_func_MD5_Init=yes" 20841 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 20842 cat >>confdefs.h <<EOF 20843#define $ac_tr_func 1 20844EOF 20845 20846 cat >>confdefs.h <<EOF 20847#define $ac_tr_lib 1 20848EOF 20849 20850 echo "$as_me:20850: result: yes, in $ac_res" >&5 20851echo "${ECHO_T}yes, in $ac_res" >&6 20852 ;; 20853esac 20854 20855echo "$as_me:20855: checking for SHA1_Init" >&5 20856echo $ECHO_N "checking for SHA1_Init... $ECHO_C" >&6 20857if test "${ac_cv_funclib_SHA1_Init+set}" = set; then 20858 echo $ECHO_N "(cached) $ECHO_C" >&6 20859else 20860 20861if eval "test \"\$ac_cv_func_SHA1_Init\" != yes" ; then 20862 ac_save_LIBS="$LIBS" 20863 for ac_lib in crypto des; do 20864 if test -n "$ac_lib"; then 20865 ac_lib="-l$ac_lib" 20866 else 20867 ac_lib="" 20868 fi 20869 LIBS="$LIB_krb4 $ac_lib $ac_save_LIBS" 20870 cat >conftest.$ac_ext <<_ACEOF 20871#line 20871 "configure" 20872#include "confdefs.h" 20873 20874int 20875main () 20876{ 20877SHA1_Init() 20878 ; 20879 return 0; 20880} 20881_ACEOF 20882rm -f conftest.$ac_objext conftest$ac_exeext 20883if { (eval echo "$as_me:20883: \"$ac_link\"") >&5 20884 (eval $ac_link) 2>&5 20885 ac_status=$? 20886 echo "$as_me:20886: \$? = $ac_status" >&5 20887 (exit $ac_status); } && 20888 { (eval echo "$as_me:20888: \"test -s conftest$ac_exeext\"") >&5 20889 (eval test -s conftest$ac_exeext) 2>&5 20890 ac_status=$? 20891 echo "$as_me:20891: \$? = $ac_status" >&5 20892 (exit $ac_status); }; then 20893 eval "if test -n \"$ac_lib\";then ac_cv_funclib_SHA1_Init=$ac_lib; else ac_cv_funclib_SHA1_Init=yes; fi";break 20894else 20895 echo "$as_me: failed program was:" >&5 20896cat conftest.$ac_ext >&5 20897fi 20898rm -f conftest$ac_exeext conftest.$ac_ext 20899 done 20900 eval "ac_cv_funclib_SHA1_Init=\${ac_cv_funclib_SHA1_Init-no}" 20901 LIBS="$ac_save_LIBS" 20902fi 20903 20904fi 20905 20906eval "ac_res=\$ac_cv_funclib_SHA1_Init" 20907 20908if false; then 20909 20910for ac_func in SHA1_Init 20911do 20912ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 20913echo "$as_me:20913: checking for $ac_func" >&5 20914echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20915if eval "test \"\${$ac_ac_var+set}\" = set"; then 20916 echo $ECHO_N "(cached) $ECHO_C" >&6 20917else 20918 cat >conftest.$ac_ext <<_ACEOF 20919#line 20919 "configure" 20920#include "confdefs.h" 20921/* System header to define __stub macros and hopefully few prototypes, 20922 which can conflict with char $ac_func (); below. */ 20923#include <assert.h> 20924/* Override any gcc2 internal prototype to avoid an error. */ 20925#ifdef __cplusplus 20926extern "C" 20927#endif 20928/* We use char because int might match the return type of a gcc2 20929 builtin and then its argument prototype would still apply. */ 20930char $ac_func (); 20931char (*f) (); 20932 20933int 20934main () 20935{ 20936/* The GNU C library defines this for functions which it implements 20937 to always fail with ENOSYS. Some functions are actually named 20938 something starting with __ and the normal name is an alias. */ 20939#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20940choke me 20941#else 20942f = $ac_func; 20943#endif 20944 20945 ; 20946 return 0; 20947} 20948_ACEOF 20949rm -f conftest.$ac_objext conftest$ac_exeext 20950if { (eval echo "$as_me:20950: \"$ac_link\"") >&5 20951 (eval $ac_link) 2>&5 20952 ac_status=$? 20953 echo "$as_me:20953: \$? = $ac_status" >&5 20954 (exit $ac_status); } && 20955 { (eval echo "$as_me:20955: \"test -s conftest$ac_exeext\"") >&5 20956 (eval test -s conftest$ac_exeext) 2>&5 20957 ac_status=$? 20958 echo "$as_me:20958: \$? = $ac_status" >&5 20959 (exit $ac_status); }; then 20960 eval "$ac_ac_var=yes" 20961else 20962 echo "$as_me: failed program was:" >&5 20963cat conftest.$ac_ext >&5 20964eval "$ac_ac_var=no" 20965fi 20966rm -f conftest$ac_exeext conftest.$ac_ext 20967fi 20968echo "$as_me:20968: result: `eval echo '${'$ac_ac_var'}'`" >&5 20969echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 20970if test `eval echo '${'$ac_ac_var'}'` = yes; then 20971 cat >>confdefs.h <<EOF 20972#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 20973EOF 20974 20975fi 20976done 20977 20978fi 20979# SHA1_Init 20980eval "ac_tr_func=HAVE_`echo SHA1_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20981eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 20982eval "LIB_SHA1_Init=$ac_res" 20983 20984case "$ac_res" in 20985 yes) 20986 eval "ac_cv_func_SHA1_Init=yes" 20987 eval "LIB_SHA1_Init=" 20988 cat >>confdefs.h <<EOF 20989#define $ac_tr_func 1 20990EOF 20991 20992 echo "$as_me:20992: result: yes" >&5 20993echo "${ECHO_T}yes" >&6 20994 ;; 20995 no) 20996 eval "ac_cv_func_SHA1_Init=no" 20997 eval "LIB_SHA1_Init=" 20998 echo "$as_me:20998: result: no" >&5 20999echo "${ECHO_T}no" >&6 21000 ;; 21001 *) 21002 eval "ac_cv_func_SHA1_Init=yes" 21003 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 21004 cat >>confdefs.h <<EOF 21005#define $ac_tr_func 1 21006EOF 21007 21008 cat >>confdefs.h <<EOF 21009#define $ac_tr_lib 1 21010EOF 21011 21012 echo "$as_me:21012: result: yes, in $ac_res" >&5 21013echo "${ECHO_T}yes, in $ac_res" >&6 21014 ;; 21015esac 21016 21017echo "$as_me:21017: checking for des_cbc_encrypt" >&5 21018echo $ECHO_N "checking for des_cbc_encrypt... $ECHO_C" >&6 21019if test "${ac_cv_funclib_des_cbc_encrypt+set}" = set; then 21020 echo $ECHO_N "(cached) $ECHO_C" >&6 21021else 21022 21023if eval "test \"\$ac_cv_func_des_cbc_encrypt\" != yes" ; then 21024 ac_save_LIBS="$LIBS" 21025 for ac_lib in crypto des; do 21026 if test -n "$ac_lib"; then 21027 ac_lib="-l$ac_lib" 21028 else 21029 ac_lib="" 21030 fi 21031 LIBS="$LIB_krb4 $ac_lib $ac_save_LIBS" 21032 cat >conftest.$ac_ext <<_ACEOF 21033#line 21033 "configure" 21034#include "confdefs.h" 21035 21036int 21037main () 21038{ 21039des_cbc_encrypt() 21040 ; 21041 return 0; 21042} 21043_ACEOF 21044rm -f conftest.$ac_objext conftest$ac_exeext 21045if { (eval echo "$as_me:21045: \"$ac_link\"") >&5 21046 (eval $ac_link) 2>&5 21047 ac_status=$? 21048 echo "$as_me:21048: \$? = $ac_status" >&5 21049 (exit $ac_status); } && 21050 { (eval echo "$as_me:21050: \"test -s conftest$ac_exeext\"") >&5 21051 (eval test -s conftest$ac_exeext) 2>&5 21052 ac_status=$? 21053 echo "$as_me:21053: \$? = $ac_status" >&5 21054 (exit $ac_status); }; then 21055 eval "if test -n \"$ac_lib\";then ac_cv_funclib_des_cbc_encrypt=$ac_lib; else ac_cv_funclib_des_cbc_encrypt=yes; fi";break 21056else 21057 echo "$as_me: failed program was:" >&5 21058cat conftest.$ac_ext >&5 21059fi 21060rm -f conftest$ac_exeext conftest.$ac_ext 21061 done 21062 eval "ac_cv_funclib_des_cbc_encrypt=\${ac_cv_funclib_des_cbc_encrypt-no}" 21063 LIBS="$ac_save_LIBS" 21064fi 21065 21066fi 21067 21068eval "ac_res=\$ac_cv_funclib_des_cbc_encrypt" 21069 21070if false; then 21071 21072for ac_func in des_cbc_encrypt 21073do 21074ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 21075echo "$as_me:21075: checking for $ac_func" >&5 21076echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21077if eval "test \"\${$ac_ac_var+set}\" = set"; then 21078 echo $ECHO_N "(cached) $ECHO_C" >&6 21079else 21080 cat >conftest.$ac_ext <<_ACEOF 21081#line 21081 "configure" 21082#include "confdefs.h" 21083/* System header to define __stub macros and hopefully few prototypes, 21084 which can conflict with char $ac_func (); below. */ 21085#include <assert.h> 21086/* Override any gcc2 internal prototype to avoid an error. */ 21087#ifdef __cplusplus 21088extern "C" 21089#endif 21090/* We use char because int might match the return type of a gcc2 21091 builtin and then its argument prototype would still apply. */ 21092char $ac_func (); 21093char (*f) (); 21094 21095int 21096main () 21097{ 21098/* The GNU C library defines this for functions which it implements 21099 to always fail with ENOSYS. Some functions are actually named 21100 something starting with __ and the normal name is an alias. */ 21101#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21102choke me 21103#else 21104f = $ac_func; 21105#endif 21106 21107 ; 21108 return 0; 21109} 21110_ACEOF 21111rm -f conftest.$ac_objext conftest$ac_exeext 21112if { (eval echo "$as_me:21112: \"$ac_link\"") >&5 21113 (eval $ac_link) 2>&5 21114 ac_status=$? 21115 echo "$as_me:21115: \$? = $ac_status" >&5 21116 (exit $ac_status); } && 21117 { (eval echo "$as_me:21117: \"test -s conftest$ac_exeext\"") >&5 21118 (eval test -s conftest$ac_exeext) 2>&5 21119 ac_status=$? 21120 echo "$as_me:21120: \$? = $ac_status" >&5 21121 (exit $ac_status); }; then 21122 eval "$ac_ac_var=yes" 21123else 21124 echo "$as_me: failed program was:" >&5 21125cat conftest.$ac_ext >&5 21126eval "$ac_ac_var=no" 21127fi 21128rm -f conftest$ac_exeext conftest.$ac_ext 21129fi 21130echo "$as_me:21130: result: `eval echo '${'$ac_ac_var'}'`" >&5 21131echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 21132if test `eval echo '${'$ac_ac_var'}'` = yes; then 21133 cat >>confdefs.h <<EOF 21134#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 21135EOF 21136 21137fi 21138done 21139 21140fi 21141# des_cbc_encrypt 21142eval "ac_tr_func=HAVE_`echo des_cbc_encrypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21143eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21144eval "LIB_des_cbc_encrypt=$ac_res" 21145 21146case "$ac_res" in 21147 yes) 21148 eval "ac_cv_func_des_cbc_encrypt=yes" 21149 eval "LIB_des_cbc_encrypt=" 21150 cat >>confdefs.h <<EOF 21151#define $ac_tr_func 1 21152EOF 21153 21154 echo "$as_me:21154: result: yes" >&5 21155echo "${ECHO_T}yes" >&6 21156 ;; 21157 no) 21158 eval "ac_cv_func_des_cbc_encrypt=no" 21159 eval "LIB_des_cbc_encrypt=" 21160 echo "$as_me:21160: result: no" >&5 21161echo "${ECHO_T}no" >&6 21162 ;; 21163 *) 21164 eval "ac_cv_func_des_cbc_encrypt=yes" 21165 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 21166 cat >>confdefs.h <<EOF 21167#define $ac_tr_func 1 21168EOF 21169 21170 cat >>confdefs.h <<EOF 21171#define $ac_tr_lib 1 21172EOF 21173 21174 echo "$as_me:21174: result: yes, in $ac_res" >&5 21175echo "${ECHO_T}yes, in $ac_res" >&6 21176 ;; 21177esac 21178 21179echo "$as_me:21179: checking for RC4" >&5 21180echo $ECHO_N "checking for RC4... $ECHO_C" >&6 21181if test "${ac_cv_funclib_RC4+set}" = set; then 21182 echo $ECHO_N "(cached) $ECHO_C" >&6 21183else 21184 21185if eval "test \"\$ac_cv_func_RC4\" != yes" ; then 21186 ac_save_LIBS="$LIBS" 21187 for ac_lib in crypto des; do 21188 if test -n "$ac_lib"; then 21189 ac_lib="-l$ac_lib" 21190 else 21191 ac_lib="" 21192 fi 21193 LIBS="$LIB_krb4 $ac_lib $ac_save_LIBS" 21194 cat >conftest.$ac_ext <<_ACEOF 21195#line 21195 "configure" 21196#include "confdefs.h" 21197 21198int 21199main () 21200{ 21201RC4() 21202 ; 21203 return 0; 21204} 21205_ACEOF 21206rm -f conftest.$ac_objext conftest$ac_exeext 21207if { (eval echo "$as_me:21207: \"$ac_link\"") >&5 21208 (eval $ac_link) 2>&5 21209 ac_status=$? 21210 echo "$as_me:21210: \$? = $ac_status" >&5 21211 (exit $ac_status); } && 21212 { (eval echo "$as_me:21212: \"test -s conftest$ac_exeext\"") >&5 21213 (eval test -s conftest$ac_exeext) 2>&5 21214 ac_status=$? 21215 echo "$as_me:21215: \$? = $ac_status" >&5 21216 (exit $ac_status); }; then 21217 eval "if test -n \"$ac_lib\";then ac_cv_funclib_RC4=$ac_lib; else ac_cv_funclib_RC4=yes; fi";break 21218else 21219 echo "$as_me: failed program was:" >&5 21220cat conftest.$ac_ext >&5 21221fi 21222rm -f conftest$ac_exeext conftest.$ac_ext 21223 done 21224 eval "ac_cv_funclib_RC4=\${ac_cv_funclib_RC4-no}" 21225 LIBS="$ac_save_LIBS" 21226fi 21227 21228fi 21229 21230eval "ac_res=\$ac_cv_funclib_RC4" 21231 21232if false; then 21233 21234for ac_func in RC4 21235do 21236ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 21237echo "$as_me:21237: checking for $ac_func" >&5 21238echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21239if eval "test \"\${$ac_ac_var+set}\" = set"; then 21240 echo $ECHO_N "(cached) $ECHO_C" >&6 21241else 21242 cat >conftest.$ac_ext <<_ACEOF 21243#line 21243 "configure" 21244#include "confdefs.h" 21245/* System header to define __stub macros and hopefully few prototypes, 21246 which can conflict with char $ac_func (); below. */ 21247#include <assert.h> 21248/* Override any gcc2 internal prototype to avoid an error. */ 21249#ifdef __cplusplus 21250extern "C" 21251#endif 21252/* We use char because int might match the return type of a gcc2 21253 builtin and then its argument prototype would still apply. */ 21254char $ac_func (); 21255char (*f) (); 21256 21257int 21258main () 21259{ 21260/* The GNU C library defines this for functions which it implements 21261 to always fail with ENOSYS. Some functions are actually named 21262 something starting with __ and the normal name is an alias. */ 21263#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21264choke me 21265#else 21266f = $ac_func; 21267#endif 21268 21269 ; 21270 return 0; 21271} 21272_ACEOF 21273rm -f conftest.$ac_objext conftest$ac_exeext 21274if { (eval echo "$as_me:21274: \"$ac_link\"") >&5 21275 (eval $ac_link) 2>&5 21276 ac_status=$? 21277 echo "$as_me:21277: \$? = $ac_status" >&5 21278 (exit $ac_status); } && 21279 { (eval echo "$as_me:21279: \"test -s conftest$ac_exeext\"") >&5 21280 (eval test -s conftest$ac_exeext) 2>&5 21281 ac_status=$? 21282 echo "$as_me:21282: \$? = $ac_status" >&5 21283 (exit $ac_status); }; then 21284 eval "$ac_ac_var=yes" 21285else 21286 echo "$as_me: failed program was:" >&5 21287cat conftest.$ac_ext >&5 21288eval "$ac_ac_var=no" 21289fi 21290rm -f conftest$ac_exeext conftest.$ac_ext 21291fi 21292echo "$as_me:21292: result: `eval echo '${'$ac_ac_var'}'`" >&5 21293echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 21294if test `eval echo '${'$ac_ac_var'}'` = yes; then 21295 cat >>confdefs.h <<EOF 21296#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 21297EOF 21298 21299fi 21300done 21301 21302fi 21303# RC4 21304eval "ac_tr_func=HAVE_`echo RC4 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21305eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21306eval "LIB_RC4=$ac_res" 21307 21308case "$ac_res" in 21309 yes) 21310 eval "ac_cv_func_RC4=yes" 21311 eval "LIB_RC4=" 21312 cat >>confdefs.h <<EOF 21313#define $ac_tr_func 1 21314EOF 21315 21316 echo "$as_me:21316: result: yes" >&5 21317echo "${ECHO_T}yes" >&6 21318 ;; 21319 no) 21320 eval "ac_cv_func_RC4=no" 21321 eval "LIB_RC4=" 21322 echo "$as_me:21322: result: no" >&5 21323echo "${ECHO_T}no" >&6 21324 ;; 21325 *) 21326 eval "ac_cv_func_RC4=yes" 21327 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 21328 cat >>confdefs.h <<EOF 21329#define $ac_tr_func 1 21330EOF 21331 21332 cat >>confdefs.h <<EOF 21333#define $ac_tr_lib 1 21334EOF 21335 21336 echo "$as_me:21336: result: yes, in $ac_res" >&5 21337echo "${ECHO_T}yes, in $ac_res" >&6 21338 ;; 21339esac 21340 21341if test "$ac_cv_func_des_cbc_encrypt" = "yes" -a \ 21342"$ac_cv_func_MD4_Init" = "yes" -a \ 21343"$ac_cv_func_MD5_Init" = "yes" -a \ 21344"$ac_cv_func_SHA1_Init" = "yes" -a \ 21345"$ac_cv_func_RC4" = "yes"; then 21346 DIR_des='' 21347 LIB_des="-R $krb4_libdir -L$krb4_libdir $ac_cv_funclib_MD4_Init" 21348 LIB_des_appl="$LIB_des" 21349else 21350 DIR_des='des' 21351 LIB_des='$(top_builddir)/lib/des/libdes.la' 21352 LIB_des_appl="-ldes" 21353fi 21354 21355echo "$as_me:21355: checking for el_init" >&5 21356echo $ECHO_N "checking for el_init... $ECHO_C" >&6 21357if test "${ac_cv_funclib_el_init+set}" = set; then 21358 echo $ECHO_N "(cached) $ECHO_C" >&6 21359else 21360 21361if eval "test \"\$ac_cv_func_el_init\" != yes" ; then 21362 ac_save_LIBS="$LIBS" 21363 for ac_lib in "" edit; do 21364 if test -n "$ac_lib"; then 21365 ac_lib="-l$ac_lib" 21366 else 21367 ac_lib="" 21368 fi 21369 LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS" 21370 cat >conftest.$ac_ext <<_ACEOF 21371#line 21371 "configure" 21372#include "confdefs.h" 21373 21374int 21375main () 21376{ 21377el_init() 21378 ; 21379 return 0; 21380} 21381_ACEOF 21382rm -f conftest.$ac_objext conftest$ac_exeext 21383if { (eval echo "$as_me:21383: \"$ac_link\"") >&5 21384 (eval $ac_link) 2>&5 21385 ac_status=$? 21386 echo "$as_me:21386: \$? = $ac_status" >&5 21387 (exit $ac_status); } && 21388 { (eval echo "$as_me:21388: \"test -s conftest$ac_exeext\"") >&5 21389 (eval test -s conftest$ac_exeext) 2>&5 21390 ac_status=$? 21391 echo "$as_me:21391: \$? = $ac_status" >&5 21392 (exit $ac_status); }; then 21393 eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break 21394else 21395 echo "$as_me: failed program was:" >&5 21396cat conftest.$ac_ext >&5 21397fi 21398rm -f conftest$ac_exeext conftest.$ac_ext 21399 done 21400 eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}" 21401 LIBS="$ac_save_LIBS" 21402fi 21403 21404fi 21405 21406eval "ac_res=\$ac_cv_funclib_el_init" 21407 21408if false; then 21409 21410for ac_func in el_init 21411do 21412ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 21413echo "$as_me:21413: checking for $ac_func" >&5 21414echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21415if eval "test \"\${$ac_ac_var+set}\" = set"; then 21416 echo $ECHO_N "(cached) $ECHO_C" >&6 21417else 21418 cat >conftest.$ac_ext <<_ACEOF 21419#line 21419 "configure" 21420#include "confdefs.h" 21421/* System header to define __stub macros and hopefully few prototypes, 21422 which can conflict with char $ac_func (); below. */ 21423#include <assert.h> 21424/* Override any gcc2 internal prototype to avoid an error. */ 21425#ifdef __cplusplus 21426extern "C" 21427#endif 21428/* We use char because int might match the return type of a gcc2 21429 builtin and then its argument prototype would still apply. */ 21430char $ac_func (); 21431char (*f) (); 21432 21433int 21434main () 21435{ 21436/* The GNU C library defines this for functions which it implements 21437 to always fail with ENOSYS. Some functions are actually named 21438 something starting with __ and the normal name is an alias. */ 21439#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21440choke me 21441#else 21442f = $ac_func; 21443#endif 21444 21445 ; 21446 return 0; 21447} 21448_ACEOF 21449rm -f conftest.$ac_objext conftest$ac_exeext 21450if { (eval echo "$as_me:21450: \"$ac_link\"") >&5 21451 (eval $ac_link) 2>&5 21452 ac_status=$? 21453 echo "$as_me:21453: \$? = $ac_status" >&5 21454 (exit $ac_status); } && 21455 { (eval echo "$as_me:21455: \"test -s conftest$ac_exeext\"") >&5 21456 (eval test -s conftest$ac_exeext) 2>&5 21457 ac_status=$? 21458 echo "$as_me:21458: \$? = $ac_status" >&5 21459 (exit $ac_status); }; then 21460 eval "$ac_ac_var=yes" 21461else 21462 echo "$as_me: failed program was:" >&5 21463cat conftest.$ac_ext >&5 21464eval "$ac_ac_var=no" 21465fi 21466rm -f conftest$ac_exeext conftest.$ac_ext 21467fi 21468echo "$as_me:21468: result: `eval echo '${'$ac_ac_var'}'`" >&5 21469echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 21470if test `eval echo '${'$ac_ac_var'}'` = yes; then 21471 cat >>confdefs.h <<EOF 21472#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 21473EOF 21474 21475fi 21476done 21477 21478fi 21479# el_init 21480eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21481eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 21482eval "LIB_el_init=$ac_res" 21483 21484case "$ac_res" in 21485 yes) 21486 eval "ac_cv_func_el_init=yes" 21487 eval "LIB_el_init=" 21488 cat >>confdefs.h <<EOF 21489#define $ac_tr_func 1 21490EOF 21491 21492 echo "$as_me:21492: result: yes" >&5 21493echo "${ECHO_T}yes" >&6 21494 ;; 21495 no) 21496 eval "ac_cv_func_el_init=no" 21497 eval "LIB_el_init=" 21498 echo "$as_me:21498: result: no" >&5 21499echo "${ECHO_T}no" >&6 21500 ;; 21501 *) 21502 eval "ac_cv_func_el_init=yes" 21503 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 21504 cat >>confdefs.h <<EOF 21505#define $ac_tr_func 1 21506EOF 21507 21508 cat >>confdefs.h <<EOF 21509#define $ac_tr_lib 1 21510EOF 21511 21512 echo "$as_me:21512: result: yes, in $ac_res" >&5 21513echo "${ECHO_T}yes, in $ac_res" >&6 21514 ;; 21515esac 21516 21517if test "$ac_cv_func_el_init" = yes ; then 21518 echo "$as_me:21518: checking for four argument el_init" >&5 21519echo $ECHO_N "checking for four argument el_init... $ECHO_C" >&6 21520if test "${ac_cv_func_el_init_four+set}" = set; then 21521 echo $ECHO_N "(cached) $ECHO_C" >&6 21522else 21523 21524 cat >conftest.$ac_ext <<_ACEOF 21525#line 21525 "configure" 21526#include "confdefs.h" 21527#include <stdio.h> 21528 #include <histedit.h> 21529int 21530main () 21531{ 21532el_init("", NULL, NULL, NULL); 21533 ; 21534 return 0; 21535} 21536_ACEOF 21537rm -f conftest.$ac_objext 21538if { (eval echo "$as_me:21538: \"$ac_compile\"") >&5 21539 (eval $ac_compile) 2>&5 21540 ac_status=$? 21541 echo "$as_me:21541: \$? = $ac_status" >&5 21542 (exit $ac_status); } && 21543 { (eval echo "$as_me:21543: \"test -s conftest.$ac_objext\"") >&5 21544 (eval test -s conftest.$ac_objext) 2>&5 21545 ac_status=$? 21546 echo "$as_me:21546: \$? = $ac_status" >&5 21547 (exit $ac_status); }; then 21548 ac_cv_func_el_init_four=yes 21549else 21550 echo "$as_me: failed program was:" >&5 21551cat conftest.$ac_ext >&5 21552ac_cv_func_el_init_four=no 21553fi 21554rm -f conftest.$ac_objext conftest.$ac_ext 21555fi 21556echo "$as_me:21556: result: $ac_cv_func_el_init_four" >&5 21557echo "${ECHO_T}$ac_cv_func_el_init_four" >&6 21558 if test "$ac_cv_func_el_init_four" = yes; then 21559 21560cat >>confdefs.h <<\EOF 21561#define HAVE_FOUR_VALUED_EL_INIT 1 21562EOF 21563 21564 fi 21565fi 21566 21567ac_foo=no 21568if test "$with_readline" = yes; then 21569 : 21570elif test "$ac_cv_func_readline" = yes; then 21571 : 21572elif test "$ac_cv_func_el_init" = yes; then 21573 ac_foo=yes 21574 LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la $LIB_el_init" 21575else 21576 LIB_readline='$(top_builddir)/lib/editline/libeditline.la' 21577fi 21578 21579if test "$ac_foo" = yes; then 21580 el_compat_TRUE= 21581 el_compat_FALSE='#' 21582else 21583 el_compat_TRUE='#' 21584 el_compat_FALSE= 21585fi 21586if test "$readline_libdir"; then 21587 LIB_readline="-rpath $readline_libdir $LIB_readline" 21588fi 21589LIB_readline="$LIB_readline \$(LIB_tgetent)" 21590 21591cat >>confdefs.h <<\EOF 21592#define HAVE_READLINE 1 21593EOF 21594 21595cat >>confdefs.h <<\EOF 21596#define AUTHENTICATION 1 21597EOF 21598 21599cat >>confdefs.h <<\EOF 21600#define ENCRYPTION 1 21601EOF 21602 21603cat >>confdefs.h <<\EOF 21604#define DES_ENCRYPTION 1 21605EOF 21606 21607cat >>confdefs.h <<\EOF 21608#define DIAGNOSTICS 1 21609EOF 21610 21611cat >>confdefs.h <<\EOF 21612#define OLD_ENVIRON 1 21613EOF 21614if false; then 21615 21616cat >>confdefs.h <<\EOF 21617#define ENV_HACK 1 21618EOF 21619 21620fi 21621 21622# Simple test for streamspty, based on the existance of getmsg(), alas 21623# this breaks on SunOS4 which have streams but BSD-like ptys 21624# 21625# And also something wierd has happend with dec-osf1, fallback to bsd-ptys 21626 21627echo "$as_me:21627: checking for getmsg" >&5 21628echo $ECHO_N "checking for getmsg... $ECHO_C" >&6 21629if test "${ac_cv_func_getmsg+set}" = set; then 21630 echo $ECHO_N "(cached) $ECHO_C" >&6 21631else 21632 cat >conftest.$ac_ext <<_ACEOF 21633#line 21633 "configure" 21634#include "confdefs.h" 21635/* System header to define __stub macros and hopefully few prototypes, 21636 which can conflict with char getmsg (); below. */ 21637#include <assert.h> 21638/* Override any gcc2 internal prototype to avoid an error. */ 21639#ifdef __cplusplus 21640extern "C" 21641#endif 21642/* We use char because int might match the return type of a gcc2 21643 builtin and then its argument prototype would still apply. */ 21644char getmsg (); 21645char (*f) (); 21646 21647int 21648main () 21649{ 21650/* The GNU C library defines this for functions which it implements 21651 to always fail with ENOSYS. Some functions are actually named 21652 something starting with __ and the normal name is an alias. */ 21653#if defined (__stub_getmsg) || defined (__stub___getmsg) 21654choke me 21655#else 21656f = getmsg; 21657#endif 21658 21659 ; 21660 return 0; 21661} 21662_ACEOF 21663rm -f conftest.$ac_objext conftest$ac_exeext 21664if { (eval echo "$as_me:21664: \"$ac_link\"") >&5 21665 (eval $ac_link) 2>&5 21666 ac_status=$? 21667 echo "$as_me:21667: \$? = $ac_status" >&5 21668 (exit $ac_status); } && 21669 { (eval echo "$as_me:21669: \"test -s conftest$ac_exeext\"") >&5 21670 (eval test -s conftest$ac_exeext) 2>&5 21671 ac_status=$? 21672 echo "$as_me:21672: \$? = $ac_status" >&5 21673 (exit $ac_status); }; then 21674 ac_cv_func_getmsg=yes 21675else 21676 echo "$as_me: failed program was:" >&5 21677cat conftest.$ac_ext >&5 21678ac_cv_func_getmsg=no 21679fi 21680rm -f conftest$ac_exeext conftest.$ac_ext 21681fi 21682echo "$as_me:21682: result: $ac_cv_func_getmsg" >&5 21683echo "${ECHO_T}$ac_cv_func_getmsg" >&6 21684 21685if test "$ac_cv_func_getmsg" = "yes"; then 21686 21687echo "$as_me:21687: checking for working getmsg" >&5 21688echo $ECHO_N "checking for working getmsg... $ECHO_C" >&6 21689if test "${ac_cv_func_getmsg_work+set}" = set; then 21690 echo $ECHO_N "(cached) $ECHO_C" >&6 21691else 21692 if test "$cross_compiling" = yes; then 21693 ac_cv_func_getmsg_work=no 21694else 21695 cat >conftest.$ac_ext <<_ACEOF 21696#line 21696 "configure" 21697#include "confdefs.h" 21698 21699#include <stdio.h> 21700#include <errno.h> 21701 21702int main() 21703{ 21704 int ret; 21705 ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL); 21706 if(ret < 0 && errno == ENOSYS) 21707 return 1; 21708 return 0; 21709} 21710 21711_ACEOF 21712rm -f conftest$ac_exeext 21713if { (eval echo "$as_me:21713: \"$ac_link\"") >&5 21714 (eval $ac_link) 2>&5 21715 ac_status=$? 21716 echo "$as_me:21716: \$? = $ac_status" >&5 21717 (exit $ac_status); } && { (eval echo "$as_me:21717: \"./conftest$ac_exeext\"") >&5 21718 (eval ./conftest$ac_exeext) 2>&5 21719 ac_status=$? 21720 echo "$as_me:21720: \$? = $ac_status" >&5 21721 (exit $ac_status); }; then 21722 ac_cv_func_getmsg_work=yes 21723else 21724 echo "$as_me: program exited with status $ac_status" >&5 21725echo "$as_me: failed program was:" >&5 21726cat conftest.$ac_ext >&5 21727ac_cv_func_getmsg_work=no 21728fi 21729rm -f conftest$ac_exeext conftest.$ac_ext 21730fi 21731fi 21732echo "$as_me:21732: result: $ac_cv_func_getmsg_work" >&5 21733echo "${ECHO_T}$ac_cv_func_getmsg_work" >&6 21734test "$ac_cv_func_getmsg_work" = "yes" && 21735 21736cat >>confdefs.h <<\EOF 21737#define HAVE_GETMSG 1 21738EOF 21739 21740fi 21741 21742if test "$ac_cv_func_getmsg_work" = yes; then 21743echo "$as_me:21743: checking for streamspty" >&5 21744echo $ECHO_N "checking for streamspty... $ECHO_C" >&6 21745case "$host" in 21746*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*) 21747 krb_cv_sys_streamspty=no 21748 ;; 21749*) 21750 krb_cv_sys_streamspty=yes 21751 ;; 21752esac 21753echo "$as_me:21753: result: $krb_cv_sys_streamspty" >&5 21754echo "${ECHO_T}$krb_cv_sys_streamspty" >&6 21755fi 21756if test "$krb_cv_sys_streamspty" = yes; then 21757 21758cat >>confdefs.h <<\EOF 21759#define STREAMSPTY 1 21760EOF 21761 21762fi 21763 21764echo "$as_me:21764: checking which authentication modules should be built" >&5 21765echo $ECHO_N "checking which authentication modules should be built... $ECHO_C" >&6 21766 21767LIB_AUTH_SUBDIRS= 21768 21769if test "$ac_cv_header_siad_h" = yes; then 21770 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia" 21771fi 21772 21773if test "$ac_cv_header_security_pam_modules_h" = yes -a "$enable_shared" = yes; then 21774 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam" 21775fi 21776 21777case "${host}" in 21778*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;; 21779esac 21780 21781echo "$as_me:21781: result: $LIB_AUTH_SUBDIRS" >&5 21782echo "${ECHO_T}$LIB_AUTH_SUBDIRS" >&6 21783 21784test "x$prefix" = xNONE && prefix=$ac_default_prefix 21785test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21786 21787for i in bin lib libexec sbin; do 21788 i=${i}dir 21789 foo=`echo $i | tr 'xindiscernible' 'XINDISCERNIBLE'` 21790 x="\$${i}" 21791 eval y="$x" 21792 while test "x$y" != "x$x"; do 21793 x="$y" 21794 eval y="$x" 21795 done 21796 cat >>confdefs.h <<EOF 21797#define $foo "$x" 21798EOF 21799 21800done 21801 21802if false; then 21803 # hack to shut up automake 21804 LIBOBJS="$LIBOBJS make-print-version.o" 21805fi 21806LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/\.lo/g'` 21807 21808ac_config_files="$ac_config_files Makefile include/Makefile include/kadm5/Makefile lib/Makefile lib/45/Makefile lib/auth/Makefile lib/auth/afskauthlib/Makefile lib/auth/pam/Makefile lib/auth/sia/Makefile lib/asn1/Makefile lib/com_err/Makefile lib/des/Makefile lib/editline/Makefile lib/gssapi/Makefile lib/hdb/Makefile lib/kadm5/Makefile lib/kafs/Makefile lib/kdfs/Makefile lib/krb5/Makefile lib/otp/Makefile lib/roken/Makefile lib/sl/Makefile lib/vers/Makefile kuser/Makefile kpasswd/Makefile kadmin/Makefile admin/Makefile kdc/Makefile appl/Makefile appl/afsutil/Makefile appl/ftp/Makefile appl/ftp/common/Makefile appl/ftp/ftp/Makefile appl/ftp/ftpd/Makefile appl/kx/Makefile appl/login/Makefile appl/otp/Makefile appl/popper/Makefile appl/push/Makefile appl/rsh/Makefile appl/rcp/Makefile appl/su/Makefile appl/xnlock/Makefile appl/telnet/Makefile appl/telnet/libtelnet/Makefile appl/telnet/telnet/Makefile appl/telnet/telnetd/Makefile appl/test/Makefile appl/kf/Makefile appl/dceutils/Makefile doc/Makefile tools/Makefile" 21809 21810cat >confcache <<\_ACEOF 21811# This file is a shell script that caches the results of configure 21812# tests run on this system so they can be shared between configure 21813# scripts and configure runs, see configure's option --config-cache. 21814# It is not useful on other systems. If it contains results you don't 21815# want to keep, you may remove or edit it. 21816# 21817# config.status only pays attention to the cache file if you give it 21818# the --recheck option to rerun configure. 21819# 21820# `ac_cv_env_foo' variables (set or unset) will be overriden when 21821# loading this file, other *unset* `ac_cv_foo' will be assigned the 21822# following values. 21823 21824_ACEOF 21825 21826# The following way of writing the cache mishandles newlines in values, 21827# but we know of no workaround that is simple, portable, and efficient. 21828# So, don't put newlines in cache variables' values. 21829# Ultrix sh set writes to stderr and can't be redirected directly, 21830# and sets the high bit in the cache file unless we assign to the vars. 21831{ 21832 (set) 2>&1 | 21833 case `(ac_space=' '; set | grep ac_space) 2>&1` in 21834 *ac_space=\ *) 21835 # `set' does not quote correctly, so add quotes (double-quote 21836 # substitution turns \\\\ into \\, and sed turns \\ into \). 21837 sed -n \ 21838 "s/'/'\\\\''/g; 21839 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21840 ;; 21841 *) 21842 # `set' quotes correctly as required by POSIX, so do not add quotes. 21843 sed -n \ 21844 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 21845 ;; 21846 esac; 21847} | 21848 sed ' 21849 t clear 21850 : clear 21851 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21852 t end 21853 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21854 : end' >>confcache 21855if cmp -s $cache_file confcache; then :; else 21856 if test -w $cache_file; then 21857 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 21858 cat confcache >$cache_file 21859 else 21860 echo "not updating unwritable cache $cache_file" 21861 fi 21862fi 21863rm -f confcache 21864 21865test "x$prefix" = xNONE && prefix=$ac_default_prefix 21866# Let make expand exec_prefix. 21867test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21868 21869# VPATH is dangerous, but if there is a colon in the path, we need to 21870# keep it. 21871if test "x$srcdir" = x.; then 21872 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 21873fi 21874 21875DEFS=-DHAVE_CONFIG_H 21876 21877: ${CONFIG_STATUS=./config.status} 21878ac_clean_files_save=$ac_clean_files 21879ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21880{ echo "$as_me:21880: creating $CONFIG_STATUS" >&5 21881echo "$as_me: creating $CONFIG_STATUS" >&6;} 21882cat >$CONFIG_STATUS <<\_ACEOF 21883#! /bin/sh 21884# Generated automatically by configure. 21885# Run this file to recreate the current configuration. 21886# Compiler output produced by configure, useful for debugging 21887# configure, is in config.log if it exists. 21888 21889debug=false 21890as_me=`echo "$0" | sed 's,.*/,,'` 21891SHELL=${CONFIG_SHELL-/bin/sh} 21892 21893# Be Bourne compatible 21894if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21895 emulate sh 21896 NULLCMD=: 21897elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21898 set -o posix 21899fi 21900 21901if expr a : '\(a\)' >/dev/null 2>&1; then 21902 as_expr=expr 21903else 21904 as_expr=false 21905fi 21906 21907rm -f conftest conftest.exe conftest.file 21908echo >conftest.file 21909if ln -s conftest.file conftest 2>/dev/null; then 21910 # We could just check for DJGPP; but this test a) works b) is more generic 21911 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 21912 if test -f conftest.exe; then 21913 # Don't use ln at all; we don't have any links 21914 as_ln_s='cp -p' 21915 else 21916 as_ln_s='ln -s' 21917 fi 21918elif ln conftest.file conftest 2>/dev/null; then 21919 as_ln_s=ln 21920else 21921 as_ln_s='cp -p' 21922fi 21923rm -f conftest conftest.exe conftest.file 21924 21925# Find out how to test for executable files. Don't use a zero-byte file, 21926# as systems may use methods other than mode bits to determine executability. 21927cat >conftest.file <<_ASEOF 21928#! /bin/sh 21929exit 0 21930_ASEOF 21931chmod +x conftest.file 21932if test -x conftest.file >/dev/null 2>&1; then 21933 as_executable_p="test -x" 21934elif test -f conftest.file >/dev/null 2>&1; then 21935 as_executable_p="test -f" 21936else 21937 { { echo "$as_me:21937: error: cannot check whether a file is executable on this system" >&5 21938echo "$as_me: error: cannot check whether a file is executable on this system" >&2;} 21939 { (exit 1); exit 1; }; } 21940fi 21941rm -f conftest.file 21942 21943# Support unset when possible. 21944if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 21945 as_unset=unset 21946else 21947 as_unset=false 21948fi 21949 21950# NLS nuisances. 21951$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 21952$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 21953$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 21954$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 21955$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 21956$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 21957$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 21958$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 21959 21960# IFS 21961# We need space, tab and new line, in precisely that order. 21962as_nl=' 21963' 21964IFS=" $as_nl" 21965 21966# CDPATH. 21967$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 21968 21969# File descriptor usage: 21970# 0 standard input 21971# 1 file creation 21972# 2 errors and warnings 21973# 5 compiler messages saved in config.log 21974# 6 checking for... messages and results 21975exec 5>>config.log 21976exec 6>&1 21977 21978cat >&5 << EOF 21979 21980## ----------------------- ## 21981## Running config.status. ## 21982## ----------------------- ## 21983 21984This file was extended by $as_me (heimdal 0.3e) 2.49d, executed with 21985 > $0 $@ 21986on `(hostname || uname -n) 2>/dev/null | sed 1q` 21987 21988EOF 21989 21990_ACEOF 21991 21992# Files that config.status was made for. 21993if test -n "$ac_config_files"; then 21994 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 21995fi 21996 21997if test -n "$ac_config_headers"; then 21998 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 21999fi 22000 22001if test -n "$ac_config_links"; then 22002 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 22003fi 22004 22005if test -n "$ac_config_commands"; then 22006 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 22007fi 22008 22009cat >>$CONFIG_STATUS <<\EOF 22010 22011ac_cs_usage="\ 22012\`$as_me' instantiates files from templates according to the 22013current configuration. 22014 22015Usage: $0 [OPTIONS] [FILE]... 22016 22017 -h, --help print this help, then exit 22018 -V, --version print version number, then exit 22019 -d, --debug don't remove temporary files 22020 --recheck update $as_me by reconfiguring in the same conditions 22021 --file=FILE[:TEMPLATE] 22022 instantiate the configuration file FILE 22023 --header=FILE[:TEMPLATE] 22024 instantiate the configuration header FILE 22025 22026Configuration files: 22027$config_files 22028 22029Configuration headers: 22030$config_headers 22031 22032Configuration commands: 22033$config_commands 22034 22035Report bugs to <bug-autoconf@gnu.org>." 22036EOF 22037 22038cat >>$CONFIG_STATUS <<EOF 22039ac_cs_version="\\ 22040$CONFIG_STATUS generated by $as_me (Autoconf 2.49d). 22041Configured on host $ac_hostname by 22042 `echo "$0 $ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`" 22043srcdir=$srcdir 22044INSTALL="$INSTALL" 22045EOF 22046 22047cat >>$CONFIG_STATUS <<\EOF 22048# If no file are specified by the user, then we need to provide default 22049# value. By we need to know if files were specified by the user. 22050ac_need_defaults=: 22051while test $# != 0 22052do 22053 case $1 in 22054 --*=*) 22055 ac_option=`expr "x$1" : 'x\([^=]*\)='` 22056 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 22057 shift 22058 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 22059 shift 22060 ;; 22061 -*);; 22062 *) # This is not an option, so the user has probably given explicit 22063 # arguments. 22064 ac_need_defaults=false;; 22065 esac 22066 22067 case $1 in 22068 # Handling of the options. 22069EOF 22070cat >>$CONFIG_STATUS <<EOF 22071 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22072 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 22073 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 22074EOF 22075cat >>$CONFIG_STATUS <<\EOF 22076 --version | --vers* | -V ) 22077 echo "$ac_cs_version"; exit 0 ;; 22078 --he | --h) 22079 # Conflict between --help and --header 22080 { { echo "$as_me:22080: error: ambiguous option: $1 22081Try \`$0 --help' for more information." >&5 22082echo "$as_me: error: ambiguous option: $1 22083Try \`$0 --help' for more information." >&2;} 22084 { (exit 1); exit 1; }; };; 22085 --help | --hel | -h ) 22086 echo "$ac_cs_usage"; exit 0 ;; 22087 --debug | --d* | -d ) 22088 debug=: ;; 22089 --file | --fil | --fi | --f ) 22090 shift 22091 CONFIG_FILES="$CONFIG_FILES $1" 22092 ac_need_defaults=false;; 22093 --header | --heade | --head | --hea ) 22094 shift 22095 CONFIG_HEADERS="$CONFIG_HEADERS $1" 22096 ac_need_defaults=false;; 22097 22098 # Handling of arguments. 22099 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22100 'include/Makefile' ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 22101 'include/kadm5/Makefile' ) CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;; 22102 'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 22103 'lib/45/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;; 22104 'lib/auth/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;; 22105 'lib/auth/afskauthlib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;; 22106 'lib/auth/pam/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;; 22107 'lib/auth/sia/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;; 22108 'lib/asn1/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;; 22109 'lib/com_err/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;; 22110 'lib/des/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/des/Makefile" ;; 22111 'lib/editline/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;; 22112 'lib/gssapi/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;; 22113 'lib/hdb/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;; 22114 'lib/kadm5/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;; 22115 'lib/kafs/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;; 22116 'lib/kdfs/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;; 22117 'lib/krb5/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;; 22118 'lib/otp/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;; 22119 'lib/roken/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;; 22120 'lib/sl/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;; 22121 'lib/vers/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;; 22122 'kuser/Makefile' ) CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;; 22123 'kpasswd/Makefile' ) CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;; 22124 'kadmin/Makefile' ) CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;; 22125 'admin/Makefile' ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;; 22126 'kdc/Makefile' ) CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;; 22127 'appl/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;; 22128 'appl/afsutil/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;; 22129 'appl/ftp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;; 22130 'appl/ftp/common/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;; 22131 'appl/ftp/ftp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;; 22132 'appl/ftp/ftpd/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;; 22133 'appl/kx/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;; 22134 'appl/login/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;; 22135 'appl/otp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;; 22136 'appl/popper/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;; 22137 'appl/push/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;; 22138 'appl/rsh/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;; 22139 'appl/rcp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;; 22140 'appl/su/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;; 22141 'appl/xnlock/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;; 22142 'appl/telnet/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;; 22143 'appl/telnet/libtelnet/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;; 22144 'appl/telnet/telnet/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;; 22145 'appl/telnet/telnetd/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;; 22146 'appl/test/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;; 22147 'appl/kf/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;; 22148 'appl/dceutils/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;; 22149 'doc/Makefile' ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 22150 'tools/Makefile' ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 22151 'default-1' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 22152 'default-2' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;; 22153 'include/config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 22154 22155 # This is an error. 22156 -*) { { echo "$as_me:22156: error: unrecognized option: $1 22157Try \`$0 --help' for more information." >&5 22158echo "$as_me: error: unrecognized option: $1 22159Try \`$0 --help' for more information." >&2;} 22160 { (exit 1); exit 1; }; } ;; 22161 *) { { echo "$as_me:22161: error: invalid argument: $1" >&5 22162echo "$as_me: error: invalid argument: $1" >&2;} 22163 { (exit 1); exit 1; }; };; 22164 esac 22165 shift 22166done 22167 22168EOF 22169 22170cat >>$CONFIG_STATUS <<\EOF 22171# If the user did not use the arguments to specify the items to instantiate, 22172# then the envvar interface is used. Set only those that are not. 22173# We use the long form for the default assignment because of an extremely 22174# bizarre bug on SunOS 4.1.3. 22175if $ac_need_defaults; then 22176 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22177 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22178 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22179fi 22180 22181# Create a temporary directory, and hook for its removal unless debugging. 22182$debug || 22183{ 22184 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 22185 trap '{ (exit $?); exit $?; }' 1 2 13 15 22186} 22187 22188# Create a (secure) tmp directory for tmp files. 22189: ${TMPDIR=/tmp} 22190{ 22191 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 22192 test -n "$tmp" && test -d "$tmp" 22193} || 22194{ 22195 tmp=$TMPDIR/cs$$-$RANDOM 22196 (umask 077 && mkdir $tmp) 22197} || 22198{ 22199 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 22200 { (exit 1); exit 1; } 22201} 22202 22203EOF 22204 22205cat >>$CONFIG_STATUS <<EOF 22206# 22207# INIT-COMMANDS section. 22208# 22209 22210AMDEP="$AMDEP" 22211ac_aux_dir="$ac_aux_dir" 22212 22213EOF 22214 22215cat >>$CONFIG_STATUS <<EOF 22216 22217# 22218# CONFIG_FILES section. 22219# 22220 22221# No need to generate the scripts if there are no CONFIG_FILES. 22222# This happens for instance when ./config.status config.h 22223if test -n "\$CONFIG_FILES"; then 22224 # Protect against being on the right side of a sed subst in config.status. 22225 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 22226 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 22227s,@SHELL@,$SHELL,;t t 22228s,@exec_prefix@,$exec_prefix,;t t 22229s,@prefix@,$prefix,;t t 22230s,@program_transform_name@,$program_transform_name,;t t 22231s,@bindir@,$bindir,;t t 22232s,@sbindir@,$sbindir,;t t 22233s,@libexecdir@,$libexecdir,;t t 22234s,@datadir@,$datadir,;t t 22235s,@sysconfdir@,$sysconfdir,;t t 22236s,@sharedstatedir@,$sharedstatedir,;t t 22237s,@localstatedir@,$localstatedir,;t t 22238s,@libdir@,$libdir,;t t 22239s,@includedir@,$includedir,;t t 22240s,@oldincludedir@,$oldincludedir,;t t 22241s,@infodir@,$infodir,;t t 22242s,@mandir@,$mandir,;t t 22243s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 22244s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 22245s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 22246s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 22247s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 22248s,@ECHO_C@,$ECHO_C,;t t 22249s,@ECHO_N@,$ECHO_N,;t t 22250s,@ECHO_T@,$ECHO_T,;t t 22251s,@DEFS@,$DEFS,;t t 22252s,@LIBS@,$LIBS,;t t 22253s,@CC@,$CC,;t t 22254s,@CFLAGS@,$CFLAGS,;t t 22255s,@LDFLAGS@,$LDFLAGS,;t t 22256s,@ac_ct_CC@,$ac_ct_CC,;t t 22257s,@OBJEXT@,$OBJEXT,;t t 22258s,@EXEEXT@,$EXEEXT,;t t 22259s,@CPP@,$CPP,;t t 22260s,@CPPFLAGS@,$CPPFLAGS,;t t 22261s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 22262s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 22263s,@INSTALL_DATA@,$INSTALL_DATA,;t t 22264s,@PACKAGE@,$PACKAGE,;t t 22265s,@VERSION@,$VERSION,;t t 22266s,@ACLOCAL@,$ACLOCAL,;t t 22267s,@AUTOCONF@,$AUTOCONF,;t t 22268s,@AUTOMAKE@,$AUTOMAKE,;t t 22269s,@AUTOHEADER@,$AUTOHEADER,;t t 22270s,@MAKEINFO@,$MAKEINFO,;t t 22271s,@AMTAR@,$AMTAR,;t t 22272s,@install_sh@,$install_sh,;t t 22273s,@AWK@,$AWK,;t t 22274s,@SET_MAKE@,$SET_MAKE,;t t 22275s,@AMDEP@,$AMDEP,;t t 22276s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 22277s,@DEPDIR@,$DEPDIR,;t t 22278s,@CCDEPMODE@,$CCDEPMODE,;t t 22279s,@build@,$build,;t t 22280s,@build_cpu@,$build_cpu,;t t 22281s,@build_vendor@,$build_vendor,;t t 22282s,@build_os@,$build_os,;t t 22283s,@host@,$host,;t t 22284s,@host_cpu@,$host_cpu,;t t 22285s,@host_vendor@,$host_vendor,;t t 22286s,@host_os@,$host_os,;t t 22287s,@CANONICAL_HOST@,$CANONICAL_HOST,;t t 22288s,@YACC@,$YACC,;t t 22289s,@LEX@,$LEX,;t t 22290s,@LEXLIB@,$LEXLIB,;t t 22291s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t 22292s,@RANLIB@,$RANLIB,;t t 22293s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 22294s,@LN_S@,$LN_S,;t t 22295s,@STRIP@,$STRIP,;t t 22296s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 22297s,@LIBTOOL@,$LIBTOOL,;t t 22298s,@WFLAGS@,$WFLAGS,;t t 22299s,@WFLAGS_NOUNUSED@,$WFLAGS_NOUNUSED,;t t 22300s,@WFLAGS_NOIMPLICITINT@,$WFLAGS_NOIMPLICITINT,;t t 22301s,@LIB_dbopen@,$LIB_dbopen,;t t 22302s,@LIB_dbm_firstkey@,$LIB_dbm_firstkey,;t t 22303s,@LIB_db_create@,$LIB_db_create,;t t 22304s,@DBLIB@,$DBLIB,;t t 22305s,@VOID_RETSIGTYPE@,$VOID_RETSIGTYPE,;t t 22306s,@have_err_h_TRUE@,$have_err_h_TRUE,;t t 22307s,@have_err_h_FALSE@,$have_err_h_FALSE,;t t 22308s,@have_fnmatch_h_TRUE@,$have_fnmatch_h_TRUE,;t t 22309s,@have_fnmatch_h_FALSE@,$have_fnmatch_h_FALSE,;t t 22310s,@have_ifaddrs_h_TRUE@,$have_ifaddrs_h_TRUE,;t t 22311s,@have_ifaddrs_h_FALSE@,$have_ifaddrs_h_FALSE,;t t 22312s,@have_vis_h_TRUE@,$have_vis_h_TRUE,;t t 22313s,@have_vis_h_FALSE@,$have_vis_h_FALSE,;t t 22314s,@LIB_socket@,$LIB_socket,;t t 22315s,@LIB_gethostbyname@,$LIB_gethostbyname,;t t 22316s,@LIB_syslog@,$LIB_syslog,;t t 22317s,@LIB_gethostbyname2@,$LIB_gethostbyname2,;t t 22318s,@LIB_res_search@,$LIB_res_search,;t t 22319s,@LIB_dn_expand@,$LIB_dn_expand,;t t 22320s,@have_glob_h_TRUE@,$have_glob_h_TRUE,;t t 22321s,@have_glob_h_FALSE@,$have_glob_h_FALSE,;t t 22322s,@LIB_getsockopt@,$LIB_getsockopt,;t t 22323s,@LIB_setsockopt@,$LIB_setsockopt,;t t 22324s,@LIB_hstrerror@,$LIB_hstrerror,;t t 22325s,@LIBOBJS@,$LIBOBJS,;t t 22326s,@LIB_pidfile@,$LIB_pidfile,;t t 22327s,@LIB_crypt@,$LIB_crypt,;t t 22328s,@DIR_roken@,$DIR_roken,;t t 22329s,@LIB_roken@,$LIB_roken,;t t 22330s,@INCLUDES_roken@,$INCLUDES_roken,;t t 22331s,@INCLUDE_openldap@,$INCLUDE_openldap,;t t 22332s,@LIB_openldap@,$LIB_openldap,;t t 22333s,@INCLUDE_krb4@,$INCLUDE_krb4,;t t 22334s,@LIB_krb4@,$LIB_krb4,;t t 22335s,@EXTRA_LIB45@,$EXTRA_LIB45,;t t 22336s,@LIB_krb_enable_debug@,$LIB_krb_enable_debug,;t t 22337s,@LIB_krb_disable_debug@,$LIB_krb_disable_debug,;t t 22338s,@LIB_krb_get_our_ip_for_realm@,$LIB_krb_get_our_ip_for_realm,;t t 22339s,@KRB4_TRUE@,$KRB4_TRUE,;t t 22340s,@KRB4_FALSE@,$KRB4_FALSE,;t t 22341s,@KRB5_TRUE@,$KRB5_TRUE,;t t 22342s,@KRB5_FALSE@,$KRB5_FALSE,;t t 22343s,@do_roken_rename_TRUE@,$do_roken_rename_TRUE,;t t 22344s,@do_roken_rename_FALSE@,$do_roken_rename_FALSE,;t t 22345s,@LIB_kdb@,$LIB_kdb,;t t 22346s,@DCE_TRUE@,$DCE_TRUE,;t t 22347s,@DCE_FALSE@,$DCE_FALSE,;t t 22348s,@dpagaix_CFLAGS@,$dpagaix_CFLAGS,;t t 22349s,@dpagaix_LDADD@,$dpagaix_LDADD,;t t 22350s,@LIB_otp@,$LIB_otp,;t t 22351s,@OTP_TRUE@,$OTP_TRUE,;t t 22352s,@OTP_FALSE@,$OTP_FALSE,;t t 22353s,@LIB_security@,$LIB_security,;t t 22354s,@NROFF@,$NROFF,;t t 22355s,@GROFF@,$GROFF,;t t 22356s,@CATMAN@,$CATMAN,;t t 22357s,@CATMAN_TRUE@,$CATMAN_TRUE,;t t 22358s,@CATMAN_FALSE@,$CATMAN_FALSE,;t t 22359s,@CATMANEXT@,$CATMANEXT,;t t 22360s,@INCLUDE_readline@,$INCLUDE_readline,;t t 22361s,@LIB_readline@,$LIB_readline,;t t 22362s,@INCLUDE_hesiod@,$INCLUDE_hesiod,;t t 22363s,@LIB_hesiod@,$LIB_hesiod,;t t 22364s,@AIX_TRUE@,$AIX_TRUE,;t t 22365s,@AIX_FALSE@,$AIX_FALSE,;t t 22366s,@AIX4_TRUE@,$AIX4_TRUE,;t t 22367s,@AIX4_FALSE@,$AIX4_FALSE,;t t 22368s,@AIX_DYNAMIC_AFS_TRUE@,$AIX_DYNAMIC_AFS_TRUE,;t t 22369s,@AIX_DYNAMIC_AFS_FALSE@,$AIX_DYNAMIC_AFS_FALSE,;t t 22370s,@LIB_dlopen@,$LIB_dlopen,;t t 22371s,@HAVE_DLOPEN_TRUE@,$HAVE_DLOPEN_TRUE,;t t 22372s,@HAVE_DLOPEN_FALSE@,$HAVE_DLOPEN_FALSE,;t t 22373s,@AIX_EXTRA_KAFS@,$AIX_EXTRA_KAFS,;t t 22374s,@IRIX_TRUE@,$IRIX_TRUE,;t t 22375s,@IRIX_FALSE@,$IRIX_FALSE,;t t 22376s,@X_CFLAGS@,$X_CFLAGS,;t t 22377s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 22378s,@X_LIBS@,$X_LIBS,;t t 22379s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 22380s,@HAVE_X_TRUE@,$HAVE_X_TRUE,;t t 22381s,@HAVE_X_FALSE@,$HAVE_X_FALSE,;t t 22382s,@LIB_XauWriteAuth@,$LIB_XauWriteAuth,;t t 22383s,@LIB_XauReadAuth@,$LIB_XauReadAuth,;t t 22384s,@LIB_XauFileName@,$LIB_XauFileName,;t t 22385s,@NEED_WRITEAUTH_TRUE@,$NEED_WRITEAUTH_TRUE,;t t 22386s,@NEED_WRITEAUTH_FALSE@,$NEED_WRITEAUTH_FALSE,;t t 22387s,@LIB_logwtmp@,$LIB_logwtmp,;t t 22388s,@LIB_tgetent@,$LIB_tgetent,;t t 22389s,@LIB_getpwnam_r@,$LIB_getpwnam_r,;t t 22390s,@LIB_MD4_Init@,$LIB_MD4_Init,;t t 22391s,@LIB_MD5_Init@,$LIB_MD5_Init,;t t 22392s,@LIB_SHA1_Init@,$LIB_SHA1_Init,;t t 22393s,@LIB_des_cbc_encrypt@,$LIB_des_cbc_encrypt,;t t 22394s,@LIB_RC4@,$LIB_RC4,;t t 22395s,@DIR_des@,$DIR_des,;t t 22396s,@LIB_des@,$LIB_des,;t t 22397s,@LIB_des_appl@,$LIB_des_appl,;t t 22398s,@LIB_el_init@,$LIB_el_init,;t t 22399s,@el_compat_TRUE@,$el_compat_TRUE,;t t 22400s,@el_compat_FALSE@,$el_compat_FALSE,;t t 22401s,@LIB_AUTH_SUBDIRS@,$LIB_AUTH_SUBDIRS,;t t 22402s,@LTLIBOBJS@,$LTLIBOBJS,;t t 22403CEOF 22404 22405EOF 22406 22407 cat >>$CONFIG_STATUS <<\EOF 22408 # Split the substitutions into bite-sized pieces for seds with 22409 # small command number limits, like on Digital OSF/1 and HP-UX. 22410 ac_max_sed_lines=48 22411 ac_sed_frag=1 # Number of current file. 22412 ac_beg=1 # First line for current file. 22413 ac_end=$ac_max_sed_lines # Line after last line for current file. 22414 ac_more_lines=: 22415 ac_sed_cmds= 22416 while $ac_more_lines; do 22417 if test $ac_beg -gt 1; then 22418 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 22419 else 22420 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 22421 fi 22422 if test ! -s $tmp/subs.frag; then 22423 ac_more_lines=false 22424 else 22425 # The purpose of the label and of the branching condition is to 22426 # speed up the sed processing (if there are no `@' at all, there 22427 # is no need to browse any of the substitutions). 22428 # These are the two extra sed commands mentioned above. 22429 (echo ':t 22430 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 22431 if test -z "$ac_sed_cmds"; then 22432 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 22433 else 22434 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 22435 fi 22436 ac_sed_frag=`expr $ac_sed_frag + 1` 22437 ac_beg=$ac_end 22438 ac_end=`expr $ac_end + $ac_max_sed_lines` 22439 fi 22440 done 22441 if test -z "$ac_sed_cmds"; then 22442 ac_sed_cmds=cat 22443 fi 22444fi # test -n "$CONFIG_FILES" 22445 22446EOF 22447cat >>$CONFIG_STATUS <<\EOF 22448for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 22449 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 22450 case $ac_file in 22451 - | *:- | *:-:* ) # input from stdin 22452 cat >$tmp/stdin 22453 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22454 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22455 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22456 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22457 * ) ac_file_in=$ac_file.in ;; 22458 esac 22459 22460 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 22461 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22462 X"$ac_file" : 'X\(//\)[^/]' \| \ 22463 X"$ac_file" : 'X\(//\)$' \| \ 22464 X"$ac_file" : 'X\(/\)' \| \ 22465 . : '\(.\)' 2>/dev/null || 22466echo X"$ac_file" | 22467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22468 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22469 /^X\(\/\/\)$/{ s//\1/; q; } 22470 /^X\(\/\).*/{ s//\1/; q; } 22471 s/.*/./; q'` 22472 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 22473 { case "$ac_dir" in 22474 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 22475 *) as_incr_dir=.;; 22476esac 22477as_dummy="$ac_dir" 22478for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 22479 case $as_mkdir_dir in 22480 # Skip DOS drivespec 22481 ?:) as_incr_dir=$as_mkdir_dir ;; 22482 *) 22483 as_incr_dir=$as_incr_dir/$as_mkdir_dir 22484 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 22485 ;; 22486 esac 22487done; } 22488 22489 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 22490 # A "../" for each directory in $ac_dir_suffix. 22491 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 22492 else 22493 ac_dir_suffix= ac_dots= 22494 fi 22495 22496 case $srcdir in 22497 .) ac_srcdir=. 22498 if test -z "$ac_dots"; then 22499 ac_top_srcdir=. 22500 else 22501 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 22502 fi ;; 22503 [\\/]* | ?:[\\/]* ) 22504 ac_srcdir=$srcdir$ac_dir_suffix; 22505 ac_top_srcdir=$srcdir ;; 22506 *) # Relative path. 22507 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 22508 ac_top_srcdir=$ac_dots$srcdir ;; 22509 esac 22510 22511 case $INSTALL in 22512 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22513 *) ac_INSTALL=$ac_dots$INSTALL ;; 22514 esac 22515 22516 if test x"$ac_file" != x-; then 22517 { echo "$as_me:22517: creating $ac_file" >&5 22518echo "$as_me: creating $ac_file" >&6;} 22519 rm -f "$ac_file" 22520 fi 22521 # Let's still pretend it is `configure' which instantiates (i.e., don't 22522 # use $as_me), people would be surprised to read: 22523 # /* config.h. Generated automatically by config.status. */ 22524 configure_input="Generated automatically from `echo $ac_file_in | 22525 sed 's,.*/,,'` by configure." 22526 22527 # First look for the input files in the build tree, otherwise in the 22528 # src tree. 22529 ac_file_inputs=`IFS=: 22530 for f in $ac_file_in; do 22531 case $f in 22532 -) echo $tmp/stdin ;; 22533 [\\/$]* | ?:[\\/]*) 22534 # Absolute 22535 test -f "$f" || { { echo "$as_me:22535: error: cannot find input file: $f" >&5 22536echo "$as_me: error: cannot find input file: $f" >&2;} 22537 { (exit 1); exit 1; }; } 22538 echo $f;; 22539 *) # Relative 22540 if test -f "$f"; then 22541 # Build tree 22542 echo $f 22543 elif test -f "$srcdir/$f"; then 22544 # Source tree 22545 echo $srcdir/$f 22546 else 22547 # /dev/null tree 22548 { { echo "$as_me:22548: error: cannot find input file: $f" >&5 22549echo "$as_me: error: cannot find input file: $f" >&2;} 22550 { (exit 1); exit 1; }; } 22551 fi;; 22552 esac 22553 done` || { (exit 1); exit 1; } 22554EOF 22555cat >>$CONFIG_STATUS <<EOF 22556 sed "$ac_vpsub 22557$extrasub 22558EOF 22559cat >>$CONFIG_STATUS <<\EOF 22560:t 22561/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22562s,@configure_input@,$configure_input,;t t 22563s,@srcdir@,$ac_srcdir,;t t 22564s,@top_srcdir@,$ac_top_srcdir,;t t 22565s,@INSTALL@,$ac_INSTALL,;t t 22566" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 22567 rm -f $tmp/stdin 22568 if test x"$ac_file" != x-; then 22569 mv $tmp/out $ac_file 22570 else 22571 cat $tmp/out 22572 rm -f $tmp/out 22573 fi 22574 22575done 22576EOF 22577cat >>$CONFIG_STATUS <<\EOF 22578 22579# 22580# CONFIG_HEADER section. 22581# 22582 22583# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 22584# NAME is the cpp macro being defined and VALUE is the value it is being given. 22585# 22586# ac_d sets the value in "#define NAME VALUE" lines. 22587ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 22588ac_dB='[ ].*$,\1#\2' 22589ac_dC=' ' 22590ac_dD=',;t' 22591# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 22592ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 22593ac_uB='$,\1#\2define\3' 22594ac_uC=' ' 22595ac_uD=',;t' 22596 22597for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 22598 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 22599 case $ac_file in 22600 - | *:- | *:-:* ) # input from stdin 22601 cat >$tmp/stdin 22602 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22603 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22604 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 22605 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 22606 * ) ac_file_in=$ac_file.in ;; 22607 esac 22608 22609 test x"$ac_file" != x- && { echo "$as_me:22609: creating $ac_file" >&5 22610echo "$as_me: creating $ac_file" >&6;} 22611 22612 # First look for the input files in the build tree, otherwise in the 22613 # src tree. 22614 ac_file_inputs=`IFS=: 22615 for f in $ac_file_in; do 22616 case $f in 22617 -) echo $tmp/stdin ;; 22618 [\\/$]* | ?:[\\/]*) 22619 # Absolute 22620 test -f "$f" || { { echo "$as_me:22620: error: cannot find input file: $f" >&5 22621echo "$as_me: error: cannot find input file: $f" >&2;} 22622 { (exit 1); exit 1; }; } 22623 echo $f;; 22624 *) # Relative 22625 if test -f "$f"; then 22626 # Build tree 22627 echo $f 22628 elif test -f "$srcdir/$f"; then 22629 # Source tree 22630 echo $srcdir/$f 22631 else 22632 # /dev/null tree 22633 { { echo "$as_me:22633: error: cannot find input file: $f" >&5 22634echo "$as_me: error: cannot find input file: $f" >&2;} 22635 { (exit 1); exit 1; }; } 22636 fi;; 22637 esac 22638 done` || { (exit 1); exit 1; } 22639 # Remove the trailing spaces. 22640 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 22641 22642EOF 22643 22644# Transform confdefs.h into two sed scripts, `conftest.defines' and 22645# `conftest.undefs', that substitutes the proper values into 22646# config.h.in to produce config.h. The first handles `#define' 22647# templates, and the second `#undef' templates. 22648# And first: Protect against being on the right side of a sed subst in 22649# config.status. Protect against being in an unquoted here document 22650# in config.status. 22651rm -f conftest.defines conftest.undefs 22652# Using a here document instead of a string reduces the quoting nightmare. 22653# Putting comments in sed scripts is not portable. 22654# 22655# `end' is used to avoid that the second main sed command (meant for 22656# 0-ary CPP macros) applies to n-ary macro definitions. 22657# See the Autoconf documentation for `clear'. 22658cat >confdef2sed.sed <<\EOF 22659s/[\\&,]/\\&/g 22660s,[\\$`],\\&,g 22661t clear 22662: clear 22663s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 22664t end 22665s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 22666: end 22667EOF 22668# If some macros were called several times there might be several times 22669# the same #defines, which is useless. Nevertheless, we may not want to 22670# sort them, since we want the *last* AC-DEFINE to be honored. 22671uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 22672sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 22673rm -f confdef2sed.sed 22674 22675# This sed command replaces #undef with comments. This is necessary, for 22676# example, in the case of _POSIX_SOURCE, which is predefined and required 22677# on some systems where configure will not decide to define it. 22678cat >>conftest.undefs <<\EOF 22679s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 22680EOF 22681 22682# Break up conftest.defines because some shells have a limit on the size 22683# of here documents, and old seds have small limits too (100 cmds). 22684echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 22685echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 22686echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 22687echo ' :' >>$CONFIG_STATUS 22688rm -f conftest.tail 22689while grep . conftest.defines >/dev/null 22690do 22691 # Write a limited-size here document to $tmp/defines.sed. 22692 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 22693 # Speed up: don't consider the non `#define' lines. 22694 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 22695 # Work around the forget-to-reset-the-flag bug. 22696 echo 't clr' >>$CONFIG_STATUS 22697 echo ': clr' >>$CONFIG_STATUS 22698 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 22699 echo 'CEOF 22700 sed -f $tmp/defines.sed $tmp/in >$tmp/out 22701 rm -f $tmp/in 22702 mv $tmp/out $tmp/in 22703' >>$CONFIG_STATUS 22704 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 22705 rm -f conftest.defines 22706 mv conftest.tail conftest.defines 22707done 22708rm -f conftest.defines 22709echo ' fi # egrep' >>$CONFIG_STATUS 22710echo >>$CONFIG_STATUS 22711 22712# Break up conftest.undefs because some shells have a limit on the size 22713# of here documents, and old seds have small limits too (100 cmds). 22714echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 22715rm -f conftest.tail 22716while grep . conftest.undefs >/dev/null 22717do 22718 # Write a limited-size here document to $tmp/undefs.sed. 22719 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 22720 # Speed up: don't consider the non `#undef' 22721 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 22722 # Work around the forget-to-reset-the-flag bug. 22723 echo 't clr' >>$CONFIG_STATUS 22724 echo ': clr' >>$CONFIG_STATUS 22725 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 22726 echo 'CEOF 22727 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 22728 rm -f $tmp/in 22729 mv $tmp/out $tmp/in 22730' >>$CONFIG_STATUS 22731 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 22732 rm -f conftest.undefs 22733 mv conftest.tail conftest.undefs 22734done 22735rm -f conftest.undefs 22736 22737cat >>$CONFIG_STATUS <<\EOF 22738 # Let's still pretend it is `configure' which instantiates (i.e., don't 22739 # use $as_me), people would be surprised to read: 22740 # /* config.h. Generated automatically by config.status. */ 22741 if test x"$ac_file" = x-; then 22742 echo "/* Generated automatically by configure. */" >$tmp/config.h 22743 else 22744 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 22745 fi 22746 cat $tmp/in >>$tmp/config.h 22747 rm -f $tmp/in 22748 if test x"$ac_file" != x-; then 22749 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 22750 { echo "$as_me:22750: $ac_file is unchanged" >&5 22751echo "$as_me: $ac_file is unchanged" >&6;} 22752 else 22753 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22754 X"$ac_file" : 'X\(//\)[^/]' \| \ 22755 X"$ac_file" : 'X\(//\)$' \| \ 22756 X"$ac_file" : 'X\(/\)' \| \ 22757 . : '\(.\)' 2>/dev/null || 22758echo X"$ac_file" | 22759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 22760 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 22761 /^X\(\/\/\)$/{ s//\1/; q; } 22762 /^X\(\/\).*/{ s//\1/; q; } 22763 s/.*/./; q'` 22764 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 22765 { case "$ac_dir" in 22766 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 22767 *) as_incr_dir=.;; 22768esac 22769as_dummy="$ac_dir" 22770for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 22771 case $as_mkdir_dir in 22772 # Skip DOS drivespec 22773 ?:) as_incr_dir=$as_mkdir_dir ;; 22774 *) 22775 as_incr_dir=$as_incr_dir/$as_mkdir_dir 22776 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 22777 ;; 22778 esac 22779done; } 22780 22781 fi 22782 rm -f $ac_file 22783 mv $tmp/config.h $ac_file 22784 fi 22785 else 22786 cat $tmp/config.h 22787 rm -f $tmp/config.h 22788 fi 22789done 22790EOF 22791cat >>$CONFIG_STATUS <<\EOF 22792 22793# 22794# CONFIG_COMMANDS section. 22795# 22796for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 22797 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 22798 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 22799 22800 case $ac_dest in 22801 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h ;; 22802 default-2 ) 22803test x"$AMDEP" != x"" || 22804for mf in $CONFIG_FILES; do 22805 case "$mf" in 22806 Makefile) dirpart=.;; 22807 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; 22808 *) continue;; 22809 esac 22810 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 22811 # Extract the definition of DEP_FILES from the Makefile without 22812 # running `make'. 22813 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 22814 test -z "$DEPDIR" && continue 22815 # When using ansi2knr, U may be empty or an underscore; expand it 22816 U=`sed -n -e '/^U = / s///p' < "$mf"` 22817 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 22818 # We invoke sed twice because it is the simplest approach to 22819 # changing $(DEPDIR) to its actual value in the expansion. 22820 for file in `sed -n -e ' 22821 /^DEP_FILES = .*\\\\$/ { 22822 s/^DEP_FILES = // 22823 :loop 22824 s/\\\\$// 22825 p 22826 n 22827 /\\\\$/ b loop 22828 p 22829 } 22830 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 22831 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22832 # Make sure the directory exists. 22833 test -f "$dirpart/$file" && continue 22834 fdir=`echo "$file" | sed -e 's|/[^/]*$||'` 22835 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1 22836 # echo "creating $dirpart/$file" 22837 echo '# dummy' > "$dirpart/$file" 22838 done 22839done 22840 ;; 22841 esac 22842done 22843EOF 22844 22845cat >>$CONFIG_STATUS <<\EOF 22846 22847exit 0 22848EOF 22849chmod +x $CONFIG_STATUS 22850ac_clean_files=$ac_clean_files_save 22851 22852test "$no_create" = yes || $SHELL $CONFIG_STATUS || { (exit 1); exit 1; } 22853 22854HEIMDALVERSION="$PACKAGE-$VERSION" 22855 22856cat > include/newversion.h.in <<EOF 22857const char *heimdal_long_version = "@(#)\$Version: $HEIMDALVERSION by @USER@ on @HOST@ ($host) @DATE@ \$"; 22858const char *heimdal_version = "$HEIMDALVERSION"; 22859EOF 22860 22861if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then 22862 echo "include/version.h is unchanged" 22863 rm -f include/newversion.h.in 22864else 22865 echo "creating include/version.h" 22866 User=${USER-${LOGNAME}} 22867 Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q` 22868 Date=`date` 22869 mv -f include/newversion.h.in include/version.h.in 22870 sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h 22871fi 22872